OSDN Git Service

* ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-09-21  Jan Hubicka  <jh@suse.cz>
2
3         * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
4         (ipcp_insert_stage): Update dead_nodes bitmap.
5
6 2008-09-22  Danny Smith  <dannysmith@users.sourceforge.net>
7
8         PR target/37528 
9         * config/i386/t-cygming (SHLIB_LC): Remove.
10         (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
11         * config/i386/t-cygwin (SHLIB_LC): Specify all required
12         libraries.
13
14 2008-09-22  Hans-Peter Nilsson  <hp@axis.com>
15
16         PR middle-end/37170
17         PR middle-end/37280
18         * final.c (mark_symbol_ref_as_used): New helper function.
19         (output_operand): Instead of just looking inside MEMs for
20         SYMBOL_REFs, use new helper function and for_each_rtx.
21         * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
22         to after weak-handling.  Don't mark decls with TREE_STATIC as weak.
23         Make head comment more general.
24         * config/darwin.c (machopic_output_indirection): Handle weak
25         references here, like in assemble_external.
26
27 2008-09-21  Eric Botcazou  <ebotcazou@adacore.com>
28
29         * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
30         (sparc_emit_float_lib_cmp): Change return type.
31         * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
32         (gen_compare_operator): New function.
33         (sparc_emit_float_lib_cmp): Return the new operator to be used in
34         the comparison sequence.  Minor tweaks.
35         * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
36         that the final operator and the result of sparc_emit_float_lib_cmp
37         match for software TFmode; use emit_insn in lieu of emit_jump_insn.
38         (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
39         buneq, bunge, bunle, bltgt): Assert that the final operator and the
40         result of sparc_emit_float_lib_cmp match for software TFmode.
41         (movqicc, movhicc, movsicc, movdicc): Merge into...
42         (mov<I:mode>cc): ...this.
43         (movsfcc, movdfcc, movtfcc): Merge into...
44         (mov<F:mode>cc): ...this.
45         (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
46         into...
47         (mov<I:mode>_cc_v9): ...this.
48         (movdi_cc_sp64_trunc): Delete.
49         (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
50         movdi_cc_reg_sp64): Merge into...
51         (mov<I:mode>_cc_reg_sp64): ...this.
52         (movsf_cc_sp64): Rename into...
53         (movsf_cc_v9): ...this.
54         (movdf_cc_sp64): Rename into...
55         (movdf_cc_v9): ...this.
56         (movtf_cc_hq_sp64): Rename into...
57         (movtf_cc_hq_v9): ...this.
58         (movtf_cc_sp64): Rename into...
59         (movtf_cc_v9): ...this.  Adjust for renaming of movdf_cc_sp64.
60
61 2008-09-21  Diego Novillo  <dnovillo@google.com>
62
63         * doc/gccint.texi: Include generic.texi and gimple.texi.
64         Re-order index.
65         * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
66         (GIMPLE): Move to gimple.texi.
67         (Annotations): Remove references to to stmt_ann_t and
68         ssa_name_ann_t.
69         (SSA Operands): Rename from 'Statement Operands'.
70         * doc/generic.texi: New.
71         * doc/gimple.texi: New.
72         * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and
73         gimple.texi.
74         * Makefile.in (TEXI_GCCINT_FILES):
75         * gimple.c (gimple_copy_call_skip_args): Rename from
76         giple_copy_call_skip_args.  Update all users.
77         * doc/gimple.texi (gimple_copy_call_skip_args): Document.
78
79 2008-09-21  Ira Rosen  <irar@il.ibm.com>
80
81         PR tree-optimization/37539
82         * tree-vect-transform.c (vect_transform_strided_load): Save vector
83         statement in related statement field only for the first load of the
84         group of loads with the same data reference.
85
86 2008-09-20  Adam Nemet  <anemet@caviumnetworks.com>
87
88         * config/mips/mips.h (TUNE_OCTEON): New macro.
89         * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
90         (mips_multipass_dfa_lookahead): Return 2 for Octeon.
91         * config/mips/octeon.md: New file.
92         * config/mips/mips.md: Include octeon.md.  Restore
93         semi-alphabetical order of include files.
94
95 2008-09-20  H.J. Lu  <hongjiu.lu@intel.com>
96
97         PR target/37571
98         * config/i386/i386.md (*jcc_fused_1): Removed.
99         (*jcc_fused_2): Likewise.
100         (*jcc_fused_3): Likewise.
101         (*jcc_fused_4): Likewise.
102
103 2008-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
104
105         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
106         (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
107         * target.h (gcc_target): Add ira_cover_classes.
108         * ira.c: Remove IRA_COVER_CLASSES guards.
109         (setup_cover_and_important_classes): Use targetm.ira_cover_classes
110         instead of IRA_COVER_CLASSES.
111         (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
112         (setup_class_translate): Likewise.
113         (setup_reg_class_intersect_union): Likewise.
114         (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
115         test of targetm.ira_cover_classes.
116         * opts.c (decode_options): Use targetm.ira_cover_classes instead
117         of IRA_COVER_CLASSES.
118         * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
119         (TARGET_INITIALIZER): Include it.
120         * targhooks.h (default_ira_cover_classes): Declare.
121         * targhooks.c (default_ira_cover_classes): New function.
122
123 2008-09-19  Bob Wilson  <bob.wilson@acm.org>
124         
125         * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
126         
127 2008-09-19  Ian Lance Taylor  <iant@google.com>
128
129         * varasm.c (narrowing_initializer_constant_valid_p): Return
130         NULL_TREE if ENDTYPE is not an integer.
131
132 2008-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
133
134         PR tree-opt/30930
135         * tree-ssa.c (execute_update_addresses_taken): Also update
136         DECL_GIMPLE_REG_P for vector and complex types.
137
138 2008-09-19  Andrew MacLeod  <amacleod@redhat.com>
139             Jan Hubicka  <jh@suse.cz>
140
141         PR middle-end/37567
142         * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
143         empty before freeing them.
144         (find_replaceable_exprs): Move asserts to free_temp_expr_table.
145
146 2008-09-18  Bob Wilson  <bob.wilson@acm.org>
147
148         * configure.ac: Add HAVE_AS_TLS check for Xtensa.
149         * config/xtensa/predicates.md (tls_symbol_operand): New.
150         * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
151         (TARGET_CANNOT_FORCE_MEM): Define.
152         (xtensa_tls_symbol_p): New.
153         (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
154         (xtensa_legitimate_address_p): Disallow constant pool TLS references.
155         (xtensa_tls_module_base): New.
156         (xtensa_call_tls_desc): New.
157         (xtensa_legitimize_tls_address): New.
158         (xtensa_legitimize_address): Handle TLS symbols.
159         (xtensa_tls_referenced_p_1): New.
160         (xtensa_tls_referenced_p): New.
161         (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and UNSPEC_DTPOFF.
162         (XTENSA_BUILTIN_THREAD_POINTER): New.
163         (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
164         (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3 builtin.
165         Add declarations for __builtin_thread_pointer and
166         __builtin_set_thread_pointer.
167         (xtensa_fold_builtin): Recognize new builtins.
168         (xtensa_expand_builtin): Expand new builtins.
169         * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
170         (TARGET_THREADPTR): Define.
171         (HAVE_AS_TLS): Define default value.
172         (LEGITIMATE_CONSTANT_P): Disallow TLS references.
173         * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
174         (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
175         (UNSPECV_SET_TP): New.
176         (sym_TPOFF, sym_DTPOFF): New.
177         (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
178         * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
179         * configure: Regenerated.
180         
181 2008-09-18  H.J. Lu  <hongjiu.lu@intel.com>
182
183         PR target/37394
184         * config/ia64/ia64.c (ia64_optimization_options): Move
185         checking and setting flag_schedule_insns_after_reload and
186         ia64_flag_schedule_insns2 back to ...
187         (ia64_override_options): Here.
188
189 2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
190
191         PR rtl-opt/37451
192         * loop-doloop.c (doloop_modify): New argument zero_extend_p and
193         zero extend count after the correction to it is done.
194         (doloop_optimize): Update call to doloop_modify, don't zero extend
195         count before call.
196
197 2008-09-18  Martin Jambor  <mjambor@suse.cz>
198
199         * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
200
201         * ipa-prop.c: Correct comments.
202         * ipa-prop.h: Likewise.
203
204 2008-09-18  Jan Hubicka  <jh@suse.cz>
205
206         PR middle-end/37448
207         * ipa-reference.c (ipa_reference_local_vars_info_d,
208         ipa_reference_global_vars_info_d,
209         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
210         ipa_reference_vars_info_t): Move here from ipa-reference.h
211         (node_duplication_hook_holder, node_removal_hook_holder): New.
212         (get_reference_vars_info_from_cgraph): Rename to ...
213         (get_reference_vars_info): ... this one, use cgraph uids.
214         (get_local_reference_vars_info, get_global_reference_vars_info):
215         Use cgraph instead of decl.
216         (ipa_reference_get_read_local, ipa_reference_get_written_local): Remove.
217         (ipa_reference_get_read_global, ipa_reference_get_not_read_global
218         ipa_reference_get_written_global, ipa_reference_get_not_written_global): Use
219         cgraph argument.
220         (check_call): Simplify avail check.
221         (scan_stmt_for_static_refs): Update.
222         (propagate_bits): Update.
223         (merge_callee_local_info): Remove.
224         (init_function_info): Use cgraph nodes.
225         (clean_function_local_data): Break out from ...
226         (clean_function): ... here.
227         (copy_local_bitmap, copy_global_bitmap): New functions.
228         (duplicate_node_data, remove_node_data): New functions.
229         (generate_summary): Register hooks; use visibility instead of
230         master clones.
231         (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
232         * ipa-reference.h (ipa_reference_local_vars_info_d,
233         ipa_reference_global_vars_info_d,
234         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
235         ipa_reference_vars_info_t): Move to ipa-reference.c
236         (ipa_reference_get_read_local, ipa_reference_get_written_local):
237         Remove.
238         (ipa_reference_get_read_global, ipa_reference_get_written_global,
239         ipa_reference_get_not_read_global, ipa_reference_get_not_written_global):
240         Update prototype.
241         * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
242         (init_state): Remove.
243         (node_duplication_hook_holder, node_removal_hook_holder): New.
244         (get_function_state, set_function_state): Use VECtor.
245         (analyze_function): Check body availability.
246         (add_new_function): Likewise.
247         (duplicate_node_data, remove_node_data): New.
248         (generate_summary): Register hooks; do not care about clones.
249         (propafate): Do not care about clones; recursive functions are not looping.
250         * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
251         * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
252         * edge_duplication_hook_holder, node_duplication_hook_holder): Make
253         static.
254         * tree-flow.h (function_ann_d): Remove reference_vars_info.
255         * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops): Update call of
256         ipa-reference accesors.
257
258 2008-09-18  Simon Baldwin  <simonb@google.com>
259
260         * c-opts.c (c_common_handle_option): Add handling for
261         -Wbuiltin-macro-redefined command line option.
262         * c.opt: Added builtin-macro-redefined option.
263         * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
264         documentation.
265
266 2008-09-18  Richard Guenther  <rguenther@suse.de>
267
268         PR tree-optimization/37258
269         * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
270         and signedness for integral types.
271         (vn_phi_eq): Require compatible types.
272
273 2008-09-18  Jakub Jelinek  <jakub@redhat.com>
274
275         PR debug/34037
276         * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
277         TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
278         VAR_DECL.
279         * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
280         !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
281         ggc_free other TREE_LIST nodes from that chain.
282         * function.c (instantiate_decls): Instantiate also DECL_RTL
283         of vars in cfun->local_decls, free that list afterwards.
284
285 2008-09-18  Eric Botcazou  <ebotcazou@adacore.com>
286
287         * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
288         * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
289
290 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
291
292         * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
293         * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
294
295 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
296
297         PR tree-optimization/37102
298         * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
299         from a node. Check to see if another PHI is dead.
300         (eliminate_useless_phis): Rename from eliminate_virtual_phis and 
301         remove real PHIs which have no uses.
302         (rewrite_out_of_ssa): Call eliminate_useless_phis.
303
304 2008-09-18  Richard Guenther  <rguenther@suse.de>
305
306         PR middle-end/37284
307         * tree-cfg.c (remove_useless_stmts_1): Remove
308         GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
309
310 2008-09-18  Nick Clifton  <nickc@redhat.com>
311
312         * config/frv/frv.h (IRA_COVER_CLASSES): Define.
313         (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
314         to frv_secondary_reload_class.
315         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
316         * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
317         (frv_secondary_reload_class): Omit unused parameter.
318         (frv_secondary_reload): New function.  Handle the case when
319         secondary_reload_class() is called before the reload_(in|out)
320         _optabs have been initialised.
321         * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
322         unused parameter.
323         * config/frv/frv.md: Define an exclusion set between fr550_m0
324         and fr550_f0.
325
326 2008-09-18  Richard Guenther  <rguenther@suse.de>
327
328         PR tree-optimization/37456
329         * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
330         want to insert after ends a BB insert on the single fallthru
331         outgoing edge.
332
333 2008-09-18  Andreas Krebbel  <krebbel1@de.ibm.com>
334
335         * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
336         Mention -march=z9-109, z9-ec and z10.
337
338 2008-09-18  Uros Bizjak  <ubizjak@gmail.com>
339
340         PR rtl-optimization/37544
341         * regrename.c (maybe_mode_change): Exit early when copy_mode
342         is narrower than orig_mode and narrower than new_mode.
343
344 2008-09-18  Alexander Monakov  <amonakov@ispras.ru>
345
346         PR middle-end/37499
347         * sched-int.h (struct _haifa_insn_data): Remove unused field
348         ref_count.
349
350         * sched-rgn.c (ref_counts): Remove.
351         (insn_referenced): New static variable.
352         (INSN_REF_COUNT): Remove.
353         (sched_run_compute_dependencies): Use insn_referenced instead of
354         INSN_REF_COUNT.
355         (add_branch_dependences): Likewise.  Delete dead assignment.
356
357 2008-09-17  Adam Nemet  <anemet@caviumnetworks.com>
358
359         * haifa-sched.c (dep_cost_1): Recognize the producer even if the
360         consumer is an asm.  Add comment why this is important.
361         (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
362         recog_memoized (insn) < 0" assert.  Put ENABLE_CHECKING around
363         it.
364
365 2008-09-17  Joseph Myers  <joseph@codesourcery.com>
366
367         * expr.c (emit_group_store): Do not shift before moving via a
368         stack slot.
369
370 2008-09-17  Eric Botcazou  <ebotcazou@adacore.com>
371
372         * varasm.c (initializer_constant_valid_p): Forbid view-conversions
373         from aggregate to non-aggregate type if the bit pattern is not fully
374         preserved afterwards.
375
376 2008-09-17  Richard Guenther  <rguenther@suse.de>
377
378         * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
379         (verify_gimple_assign): ... this.  Split into ...
380         (verify_gimple_assign_unary): ... this,
381         (verify_gimple_assign_binary): ... that,
382         (verify_gimple_assign_single): ... and this.
383         (verify_types_in_gimple_stmt): Call verify_gimple_assign.
384         Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
385         (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
386         (verify_types_in_gimple_reference): Be forgiving with
387         VIEW_CONVERT_EXPRs.
388         (verify_gimple_phi): Deal with virtual operands.
389
390         * tree.def (PREDICT_EXPR): Change to tcc_expression.
391
392 2008-09-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
393
394         * tree.c (get_callee_fndecl): Don't call the language hook.
395         * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
396         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
397         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
398
399 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
400
401         * tree.c (protected_set_expr_location): Don't unnecessarily
402         check for error_mark_node.
403
404 2008-09-17  Art Haas  <ahaas@impactweather.com>
405
406         * ipa-reference.c (analyze_function): Declare step only if
407         ENABLE_CHECKING is defined.
408
409 2008-09-17  Jan Hubicka  <jh@suse.cz>
410
411         PR c++/18071
412         * tree.h (DECL_INLINE): remove.
413         (DECL_DECLARED_INLINE_P): Update docs.
414         (DECL_NO_INLINE_WARNING_P): new.
415         (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
416         * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
417
418 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
419             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
420
421         PR bootstrap/37441
422         * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
423         false.
424
425 2008-09-17  Jan Hubicka  <jh@suse.cz>
426
427         * ipa-reference.c (ipa_obstack): Remove.
428         (local_info_obstack, global_info_obstack): New.
429         (add_static_var): We now handle variables only.
430         (mark_address_taken, mark_load, mark_store): New functions based on ...
431         (check_operand): ... remove.
432         (get_asm_stmt_operands): Rename to ...
433         (check_asm_memory_clobber): ... this. Look only for memory clobber.
434         (scan_stmt_for_static_refs): Rewrite.
435         (scan_op_for_static_refs): Rename to ...
436         (scan_initializer_for_static_refs): do not look for VAR_DECL
437         initializers; stop recursion on types and decls.
438         (ipa_init): Use proper obstacks.
439         (analyze_variable): Use scan_initializer_for_static_refs.
440         (init_function_info): Use local obstack.
441         (analyze_function): Simplify.
442         (add_new_function): We don't need visited_nodes obstack.
443         (generate_summary): Use proper obstacks; cleanup after propagation.
444
445 2008-09-17  Richard Guenther  <rguenther@suse.de>
446
447         PR middle-end/37385
448         PR tree-optimization/37491
449         * alias.c (get_alias_set): Use the canonical type.
450         * tree-vect-transform.c (vectorizable_store): Use the type of
451         the lhs for the vector type.  Adjust checking.
452         (vectorizable_load): Adjust checking.
453
454 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
455             Adam Nemet  <anemet@caviumnetworks.com>
456
457         PR rtl-optimization/37483
458         * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
459         if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
460         Rearrange code to better match the original comment.  Check
461         t_unconditional first.  Improve comment.
462
463 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
464
465         PR c/37529
466         * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
467         GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
468
469         PR c++/37530
470         * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
471         GIMPLE_TRY if cleanup sequence is empty.
472
473 2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>
474
475         PR middle-end/37263
476         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
477         eliminate IV if the cost are the same.
478
479 2008-09-16  Richard Guenther  <rguenther@suse.de>
480
481         PR middle-end/37380
482         * tree-sra.c (sra_build_assignment): Do not call the gimplifier
483         if not necessary.
484
485 2008-09-16  Richard Guenther  <rguenther@suse.de>
486
487         PR tree-optimization/37508
488         * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
489
490 2008-09-15  Kaz Kojima  <kkojima@gcc.gnu.org>
491
492         * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
493
494 2008-09-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
495
496         * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
497         use gen_floatdidf2 directly.
498         (floatunssidf2): Likewise.
499         (floatsidf_ppc64_mfpgpr): Remove.
500         (floatsidf_ppc64): Remove.
501         (floatunssidf_ppc64): Remove.
502
503 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
504
505         * ira-color.c (finish_cost_update): Free update_cost_queue_elems
506         rather than update_cost_queue.
507
508         * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
509         in every call starting with the second one, instead of only when
510         alias_bitmap_obstack.elements != NULL.
511
512         * tree-predcom.c (filter_suitable_components): Free all refs in
513         act->refs vector before calling release_component.
514         (add_ref_to_chain): Free ref if not adding it to chain->refs.
515
516         * tree-data-ref.c (free_subscripts): Free all subscript objects.
517
518         * tree-loop-linear.c (linear_transform_loops): Initialize
519         lambda_obstack only after calling perfect_loop_nest_depth.
520         Goto free_and_continue instead of just continue for later failures.
521
522         PR middle-end/37479
523         * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
524
525         PR libmudflap/36397
526         * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
527
528 2008-09-14  Andreas Schwab  <schwab@suse.de>
529
530         * tree-call-cdce.c (check_target_format): Accept Motorola formats.
531
532 2008-09-14  Jan Hubicka  <jh@suse.cz>
533
534         * invoke.texi (-fconserve-stack): Document.
535         * opts.c (decode_options): Handle conserve_stack.
536         * common.opt (fconvserve_stack): New.
537
538 2008-09-14  David Edelsohn  <edelsohn@gnu.org>
539
540         * config.host: Add x-aix to host_xmake_file.
541         * config/rs6000/t-aix52: Do not override LDFLAGS.
542         * config/rs6000/x-aix: New file.
543
544 2008-09-14  Andy Hutchinson  <hutchinsonandy@aim.com>
545
546         PR target/19636
547         PR target/24894
548         PR target/31644
549         PR target/31786
550         * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
551         is not recognized as a valid register usage. Allow REG_X to be used
552         as a base pointer.
553         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
554         forces a reload when using a base register.
555
556 2008-09-14  Danny Smith  <dannysmith@users.sourceforge.net>
557
558         * config/i386/cygming-crtend.c (register_frame_ctor): If
559         DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
560         directly with atexit.
561         (deregister_frame_ctor): Rename to ...
562         (deregister_frame_dtor): Use to call __gcc_deregister_frame
563         if !DEFAULT_USE_CXA_ATEXIT.
564
565 2008-09-13  Jan Hubicka  <jh@suse.cz>
566
567         * cgraph.c: Include value-prof.h
568         * Makefile.in (cgraph.o): Add value-prof.h dependency.
569
570 2008-09-13  Jan Hubicka  <jh@suse.cz>
571
572         PR middle-end/32581
573         * tree-profile.c (add_abnormal_goto_call_edges): New function.
574         (tree_gen_interval_profiler, tree_gen_pow2_profiler,
575         tree_gen_one_value_profiler, tree_gen_average_profiler,
576         tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
577
578 2008-09-13  Jan Hubicka  <jh@suse.cz>
579
580         * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
581         too many bytes on misalligned blocks.
582
583 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
584
585         * doc/cfg.texi: Fix some typos.
586         * doc/extend.texi: Likewise.
587         * doc/install.texi: Likewise.
588         * doc/invoke.texi: Likewise.
589         * doc/rtl.texi: Likewise.
590         * doc/tree-ssa.texi: Likewise.
591
592 2008-09-13  Richard Guenther  <rguenther@suse.de>
593
594         PR middle-end/30141
595         * tree-nested.c (finalize_nesting_tree_1): Generate valid
596         gimple stores for memory rhs.
597
598 2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>
599
600         PR rtl-optimization/37489
601         * cse.c (fold_rtx): Don't return const_true_rtx for float
602         compare if FLOAT_STORE_FLAG_VALUE is undefined.
603
604 2008-09-13  Jan Hubicka  <jh@suse.cz>
605
606         PR tree-optimization/37392
607         * tree-inline.c (remap_gimple_stmt): Do not remap return value.
608
609 2008-09-13  Martin Jambor  <mjambor@suse.cz>
610             Jan Hubicka  <jh@suse.cz>
611
612         * cgraph.c (free_edges): New variable.
613         (NEXT_FREE_EDGE): New macro.
614         (cgraph_free_edge): New function.
615         (cgraph_remove_edge): Call cgraph_remove_edge_1.
616         (cgraph_node_remove_callees): Likewise.
617         (cgraph_node_remove_callers): Likewise.
618         (cgraph_create_edge): Reuse edges from the free list.  Do not
619         update uid if doing so.
620         (cgraph_remove_*_hook): Add free call.
621
622 2008-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
623
624         * ira-color.c (conflict_allocno_vec): Delete.
625         (update_cost_queue_elem): New structure.
626         (update_cost_queue): New variable.
627         (update_cost_queue_tail): Likewise.
628         (update_cost_queue_elems): Likewise.
629         (allocno_update_cost_check): Delete.
630         (initiate_cost_update): Allocate update_cost_queue_elems
631         instead of allocno_update_cost_check.
632         (finish_cost_update): Update the free()s accordingly.
633         (start_update_cost): New function.
634         (queue_update_cost): Likewise.
635         (get_next_update_cost): Likewise.
636         (update_copy_costs_1): Inline into...
637         (update_copy_costs): ...here.  Use a queue instead of recursive calls.
638         Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
639         once we've established they are equal.  Don't allocate update
640         costs if there is nothing to add to them.
641         (update_conflict_hard_regno_costs): Remove ALLOCNO and
642         DIVISOR arguments.  Use a queue instead of recursive calls;
643         process all the allocnos in the initial queue, rather than
644         a single allocno.
645         (assign_hard_reg): Use queue_update_cost instead of
646         conflict_allocno_vec.  Queue coalesced allocnos instead
647         of calling update_conflict_hard_regno_costs for each one.
648         Just call update_conflict_hard_regno_costs once for the
649         entire queue.
650         (ira_color): Remove conflict_allocno_vec handling.
651
652 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
653
654         PR tree-optimization/37484
655         * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
656         (save_var_name): Same.
657         (initialize_cloog_names): Same.
658         (initialize_cloog_names): Same.
659
660 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
661
662         * tree-scalar-evolution.c (set_instantiated_value): Set
663         instantiated_below.
664
665 2008-09-12  Vladimir Makarov  <vmakarov@redhat.com>
666
667         PR rtl-opt/37377
668
669         * ira-build.c (common_loop_tree_node_dominator): Remove.
670         (copy_live_ranges_to_removed_store_destinations): New function.
671         (regno_top_level_allocno_map): Move to top level from ...
672         (ira_flattening): ... here.  Use
673         copy_live_ranges_to_removed_store_destinations.
674
675         * ira-emit.c (generate_edge_moves): Fix a comment.
676
677 2008-09-12  Anatoly Sokolov  <aesok@post.ru>
678
679         PR target/37466
680         * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
681         scratch register after 'set' pattern.
682
683 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
684
685         * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
686         information passed to mark_reg_pointer.
687         * explow.c (force_reg): Likewise.
688
689 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
690
691         * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
692         when building for the celledp architecture.
693
694 2008-09-12  Richard Guenther  <rguenther@suse.de>
695
696         * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
697
698 2008-09-12  Eric Botcazou  <ebotcazou@adacore.com>
699
700         PR rtl-optimization/37424
701         * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
702         the regnos instead of the addresses.
703
704 2008-09-11  Janis Johnson  <janis187@us.ibm.com>
705
706         * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
707
708 2008-09-11  Richard Guenther  <rguenther@suse.de>
709
710         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
711         entering the weaker equivalence recording.
712
713         * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
714
715 2008-09-11  Jeff Law <law@redhat.com>
716
717         * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
718         by assign_stack_local on the IRA path for stack slot sharing
719         as well as the non-IRA path.
720
721 2008-09-11  Uros Bizjak  <ubizjak@gmail.com>
722
723         * config/i386/i386.h: Fix whitespace issues.
724
725 2008-09-11  Martin Jambor  <mjambor@suse.cz>
726
727         * ipa-prop.h (struct ipa_param_flags): Removed.
728         (struct ipa_param_descriptor): New structure.
729         (struct ipa_node_params): ipcp_lattices, param_decls and
730         param_flags moved to ipa_param_description.
731         (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
732         descriptors.  Renamed all users.
733         (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
734         changed to access descriptors.  Renamed all users.
735         (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
736         to access descriptors. Renamed all users.
737         * ipa-cp.c (ipcp_init_cloned_node): Call
738         ipa_initialize_node_params instead of ipa_count_formal_params and
739         ipa_create_param_decls_array.
740         (ipcp_analyze_node): Likewise.
741         (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
742         descriptors.  Renamed all users.
743         (ipcp_initialize_node_lattices): Remove allocation.
744         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
745         ipa_initialize_node_params instead of ipa_count_formal_params and
746         ipa_create_param_decls_array.
747         * ipa-prop.c (ipa_create_param_decls_array): Renamed to
748         ipa_populate_param_decls, made static, added parameter info,
749         renamed mt to node, removed allocation, changed to use
750         descriptors.
751         (ipa_count_formal_params): Made static, added parameter info,
752         renamed mt to node.
753         (ipa_initialize_node_params): New function.
754         (ipa_check_stmt_modifications): Changed to use descriptors.
755         (ipa_detect_param_modifications): Removed allocation, changed to
756         use descriptors.
757         (ipa_note_param_call): Changed to use descriptors.
758         (ipa_analyze_params_uses): Removed allocation.
759         (ipa_free_node_params_substructures): Changed to use descriptors.
760         (ipa_edge_duplication_hook): Use the unused attribute.
761         (ipa_node_duplication_hook): Use the unused attribute, changed to
762         use descriptors, changed to duplicate descriptors.
763
764         * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
765         changed all callers.  Call ipa_propagate_indirect_call_infos if doing
766         indirect inlining.  Made static.
767         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
768         functions called only once.
769         (cgraph_decide_recursive_inlining): Don't call
770         ipa_propagate_indirect_call_infos, pass new_edges to
771         cgraph_mark_inline_edge instead.
772         (cgraph_decide_inlining_of_small_functions): Don't call
773         ipa_propagate_indirect_call_infos, pass new_edges to
774         cgraph_mark_inline_edge instead.
775         (cgraph_decide_inlining): Don't call
776         ipa_propagate_indirect_call_infos.
777         * ipa-prop.c: Check that vectors are allocated.
778
779         * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
780         iff a new cgraph edges have been created.
781         (cgraph_decide_inlining): New variable redo_always_inline.
782         Flattening and always_inlining loop until callgraph stabilizes.
783         * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
784         true iff new cgraph edges have been created.
785         (propagate_info_to_inlined_callees): Likewise.
786         (ipa_propagate_indirect_call_infos): Likewise.
787
788 2008-09-11  Richard Guenther  <rguenther@suse.de>
789
790         * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
791         (set_prologue_iterations): Likewise.
792         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
793         Likewise.
794         (vect_update_init_of_dr): Likewise.
795         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
796         type verification.
797         * fold-const.c (fold_unary): Do not generate calculations
798         in sub-types.
799
800 2008-09-11  Paolo Bonzini  <bonzini@gnu.org>
801
802         * dojump.c (do_jump) [BIT_AND_EXPR]: Move below.  Fall through to
803         TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
804         (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
805
806         * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
807         a bool.
808         * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
809         VRP's simplify_stmt_using_ranges.  Do simplify_stmt_using_ranges
810         before finalizing the changes.
811         * tree-vrp.c (extract_range_from_binary_expr): Add limited support
812         for BIT_IOR_EXPR.
813         (simplify_truth_ops_using_ranges): New.
814         (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
815         simplify_cond_using_ranges, simplify_switch_using_ranges): Return
816         whether a simplification was made.
817         (simplify_stmt_using_ranges): Ditto, and accept a GSI.  For GS_ASSIGN,
818         use a switch statement and also call simplify_truth_ops_using_ranges.
819
820 2008-09-11  Jan Hubicka  <jh@suse.cz>
821
822         * ggc-common.c (loc_array): Make static.
823         * dce.c (rest_of_handle_ud_dce): Free worklist.
824
825 2008-09-11  Jan Hubicka  <jh@suse.cz>
826
827         * cgraph.c (cgraph_release_function_body): Plug memory leak on
828         ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
829         function so we are sure we do not dangle it forever.
830         * function.c (outer_function_chain, find_function_data): Remove.
831         (function_context_stack): New.
832         (push_function_context, pop_function_context): Update.
833         * function.h (struct function): Remove pointer outer.
834         (outer_function_chain, find_function_data): Remove.
835         * stmt.c (force_label_rtx): Remove dead call of find_function_data.
836
837 2008-09-11  Jan Hubicka  <jh@suse.cz>
838
839         PR middle-end/37448
840         * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
841
842 2008-09-11  Jan Hubicka  <jh@suse.cz>
843
844         * tree-ssa-pre.c (phi_translate_1): Fix memory leak
845
846 2008-09-11  Jan Hubicka  <jh@suse.cz>
847
848         * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
849         (free_var_map_entry): New function.
850         (redirect_edge_var_map_destroy): Use it.
851
852 2008-09-11  Jan Hubicka  <jh@suse.cz>
853
854         PR middle-end/37448
855         * tree-inline.c (add_lexical_block): Replace with ...
856         (prepend_lexical_block): ... prepend at begginig.
857         (remap_blocks): Use it and reverse later.
858         (expand_call_inline): Use prepend_lexical_block.
859
860 2008-09-11  Jan Hubicka  <jh@suse.cz>
861
862         * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
863
864 2008-09-11  Jan Hubicka  <jh@suse.cz>
865
866         * function.c (free_after_compilation): Call insn_locators_free.
867         * cfglayout.c (insn_locators_free): New function.
868         * rtl.h (insn_locators_free): Declare.
869
870 2008-09-11  Jan Hubicka  <jh@suse.cz>
871
872         * ifcvt.c (check_cond_move_block): Make regs argument pointer to
873         vector pointer.
874         (cond_move_process_if_block): Update call.
875
876 2008-09-11  Jan Hubicka  <jh@suse.cz>
877
878         * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
879         * vec.c: Include hashtab.h
880         (vec_descriptor, ptr_hash_entry): New structures.
881         (vec_desc_hash, vec_ptr_map): New static variables.
882         (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
883         register_overhead, free_overhead, vec_heap_free): New functions.
884         (vec_gc_o_reserve_1): ggc_free when resizing to 0.
885         (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
886         (cmp_statistic, add_statistics, dump_vec_loc_statistics):
887         New functions.
888
889 2008-09-11  Ira Rosen  <irar@il.ibm.com>
890
891         PR tree-optimization/37474
892         * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
893         length of load permutation.
894
895 2008-09-11  Andreas Schwab  <schwab@suse.de>
896
897         * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
898
899 2008-09-11  Jakub Jelinek  <jakub@redhat.com>
900
901         PR target/37382
902         * expmed.c (extract_low_bits): Avoid creating invalid subregs.
903         * dse.c (find_shift_sequence): Use extract_low_bits instead of
904         simplify_gen_subreg.
905
906 2008-09-11  Ira Rosen  <irar@il.ibm.com>
907
908         * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
909         for alias check.
910
911 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
912
913         PR middle-end/37338
914         * gimplify.c (gimplify_body): Call default_rtl_profile.
915
916         PR target/36904
917         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
918         instead of tok->val.node if not expanding to something else.  Handle
919         intervening CPP_PADDING tokens.
920         (altivec_categorize_keyword): Remove unneeded comparisons.
921
922 2008-09-10  Richard Guenther  <rguenther@suse.de>
923
924         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
925
926 2008-09-10  Richard Guenther  <rguenther@suse.de>
927
928         PR middle-end/37432
929         * tree-inline.c (insert_init_stmt): Make sure to not
930         insert invalid gimple stores.
931
932 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
933
934         PR tree-optimization/37388
935         * toplev.c (process_options): Fail and warn when graphite
936         flags are used, but the compiler has not been configured
937         with graphite libraries.
938         * graphite.c (graphite_transform_loops): Remove printfs
939         to dump_file for the case when graphite is not available.
940
941 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
942
943         PR target/37434:
944         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
945         the even element into register.
946         (ix86_expand_vector_init_general): Don't use
947         ix86_expand_vector_init_interleave on V16QImode and V8HImode
948         if we can't move from GPR to SSE register directly.
949
950 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
951
952         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
953         not lose track of the number of NOPs needed.  Number of NOPs needed
954         for sync vs. loads workaround was switched; corrected.  Run second
955         pass for all workarounds.  No NOPs needed after call insns.  Change
956         second pass to use find_next_insn_start and find_load helpers in order
957         to properly detect parallel insns.
958         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
959
960 2008-09-10  Jan Hubicka  <jh@suse.cz>
961
962         * value-prof.c (gimple_ic): Fix tuplification bug.
963         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
964         var warning.
965
966 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
967
968         PR tree-optimization/37353
969         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
970         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
971         calls instead of cond_dead_built_in_calls.
972         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
973         initalize the vector only before adding first entry.  Use VEC_safe_push
974         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
975         shrink_wrap_conditional_dead_built_in_calls call.
976
977 2008-09-10  Ira Rosen  <irar@il.ibm.com>
978
979         PR tree-optimization/37385
980         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new argument,
981         and use it as a vector type if not NULL.
982         (vectorizable_store): Call vect_create_data_ref_ptr with the type of
983         vectorized rhs.
984         (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
985         argument.
986         (vectorizable_load): Likewise.
987
988 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
989
990         * config/i386/i386.md (SWI32): New mode iterator.
991         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
992         of SWI.
993
994 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
995
996         PR rtl-optimization/37435
997         * caller-save.c (insert_restore, insert_save): Check the mode by
998         reg_save_code.
999
1000 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1001
1002         PR other/37265
1003         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
1004         splay tree lookup.
1005         (dw2_output_indirect_constant_1): Use unstripped name in symbol
1006         reference.
1007
1008 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
1009
1010         * doc/invoke.texi (ARM Options): Correct errors in discussion
1011         of -mfloat-abi, -mhard-float, and -msoft-float.
1012
1013 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
1014             Jan Hubicka  <jh@suse.cz>
1015
1016         PR middle-end/37356
1017         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
1018         calling gimple_regimplify_operands on it.  Iterate over all newly
1019         added statements, not just the last one.
1020         (insert_init_stmt): Insert stmt into seq first, then call
1021         gimple_regimplify_operands on it.  Don't create new gimplification
1022         context, nor find referenced vars.
1023
1024 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
1025
1026         PR other/37419
1027         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
1028         to pointer to vector pointer.
1029         * ipa-prop.c (ipa_propagate_indirect_call_infos,
1030         propagate_info_to_inlined_callees): Likewise.
1031         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
1032         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
1033         ipa_check_create_edge_args.
1034         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
1035         to pointer to vector pointer.
1036         (cgraph_decide_inlining_of_small_function): Adjust
1037         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
1038         calls.
1039
1040         PR target/37438
1041         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
1042         optimizing for size, not speed.
1043
1044         PR rtl-optimization/37408
1045         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
1046         if parm is promoted.
1047
1048 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
1049
1050         PR tree-optimization/37375
1051         * tree-scalar-evolution.c (scev_info_str): Add field
1052         instantiated_below.
1053         (new_scev_info_str, eq_scev_info, find_var_scev_info,
1054         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
1055         set_instantiated_value): Pass instantiated_below.
1056         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
1057         to above functions.
1058         (instantiate_scev_1, instantiate_scev): Pass a basic block above which
1059         the definitions are not instantiated.
1060
1061         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
1062         (block_before_loop): New.
1063         * tree-data-ref.c (dr_analyze_indices): Update uses of
1064         instantiate_scev.
1065         * graphite.c (block_before_scop): New.
1066         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
1067         basic block, not a loop for determining the parameters.
1068         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
1069         scop.
1070         (idx_record_params, find_params_in_bb, find_scop_parameters,
1071         build_loop_iteration_domains, add_conditions_to_domain): Update calls
1072         to instantiate_scev.
1073
1074         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
1075
1076 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
1077
1078         PR rtl-opt/37333
1079
1080         * ira-build.c (ira_create_allocno): Setup frequency to 0.
1081
1082         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
1083         Check zero freq and increase if necessary.
1084
1085 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
1086
1087         * ira-conflicts.c (process_regs_for_copy): Check that the hard
1088         regno is in the right range.  Add comments.
1089
1090 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1091
1092         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
1093         warnings.
1094         * mips-tfile.c (copy_object): Cast alloca result to int *.
1095         * mips-tdump.c (print_symbol): Cast xmalloc return values to
1096         proper types.
1097         Rename class to sclass.
1098         (read_tfile): Cast read_seek return values to proper types.
1099         Cast xcalloc return value to proper type.
1100
1101 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1102
1103         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
1104         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
1105         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
1106
1107 2008-09-09  Jan Hubicka  <jh@suse.cz>
1108
1109         * profile.c (is_edge_inconsistent): Add debug output; ignore
1110         negative count on fake edges.
1111         (is_inconsistent): Add debug output.
1112
1113 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
1114
1115         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
1116         dump message.
1117         (choose_ready): When first insn is chosen from the ready list, also
1118         dump it.
1119
1120 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
1121
1122         PR rtl-optimization/37360
1123         * haifa-sched.c (max_issue): Do not assert that we never issue more
1124         insns than issue_rate.  Add comment.
1125
1126 2008-09-09  Richard Guenther  <rguenther@suse.de>
1127
1128         * tree-cfg.c (verify_types_in_gimple_op): Remove.
1129         (verify_types_in_gimple_call): Rename to ...
1130         (verify_gimple_call): ... this.  Enhance.
1131         (verify_types_in_gimple_cond): Remove.
1132         (verify_gimple_comparison): New function ...
1133         (verify_types_in_gimple_assign): ... split out from here.
1134         (verify_types_in_gimple_return): Rename to ...
1135         (verify_gimple_return): ... this.  Enhance.
1136         (verify_types_in_gimple_switch): Rename to ...
1137         (verify_gimple_switch): ... this.  Enhance.
1138         (verify_gimple_goto): New function.
1139         (verify_types_in_gimple_phi): Rename to ...
1140         (verify_gimple_phi): ... this.  Enhance.
1141         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
1142         Fold in single-statement cases from verify_types_in_gimple_seq_2.
1143         (verify_types_in_gimple_seq_2): Remove cases handled in
1144         verify_types_in_gimple_stmt.
1145
1146 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
1147
1148         * config/bfin/bfin.c (n_regs_to_save): New static variable.
1149         (push_multiple_operation, pop_multiple_operation): Set it.
1150         (workaround_rts_anomaly): New function.
1151         (workaround_speculation): New function, broken out of bfin_reorg.
1152         (bfin_reorg): Call the new functions.
1153
1154 2008-09-09  Richard Guenther  <rguenther@suse.de>
1155
1156         PR middle-end/37354
1157         PR middle-end/30165
1158         * gimplify.c (gimplify_conversion): Change conversions of
1159         non-register type to VIEW_CONVERT_EXPRs.
1160         (gimplify_addr_expr): If we need to make the operand
1161         addressable make sure to use a properly initialized
1162         temporary for that so it gets a valid gimple store.
1163
1164 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
1165
1166         * function.h (struct function): Add function_start_locus.
1167         * cfgexpand.c (gimple_expand_cfg): Use it.
1168         * c-parser.c (c_parser_declaration_or_fndef): Set it.
1169
1170 2008-09-09  Richard Guenther  <rguenther@suse.de>
1171
1172         PR tree-optimization/37433
1173         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
1174         function calls.
1175
1176 2008-09-09  Richard Guenther  <rguenther@suse.de>
1177
1178         PR tree-optimization/37387
1179         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
1180         and bits to a common type.
1181
1182 2008-09-09  Nick Clifton  <nickc@redhat.com>
1183
1184         * config/v850/v850.md (return): Restore frame size restriction.
1185
1186 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
1187
1188         * c-common.c (c_expand_decl): Remove.
1189         * c-common.h (anon_aggr_type_p): Remove prototype.
1190         (DECL_ANON_UNION_ELEMS): Remove.
1191         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
1192         * c-decl.c (anon_aggr_type_p): Remove.
1193         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
1194         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
1195         * langhooks.h (struct lang_hooks): Remove expand_decl.
1196         * langhooks.c (lhd_expand_decl): Remove.
1197         * stmt.c (expand_anon_union_decl): Remove.
1198         * tree.h (expand_anon_union_decl): Remove prototype.
1199
1200 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
1201
1202         PR target/36609
1203         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
1204         zero.
1205         * config/avr/avr.md  (QISI) : Define mode iterator.
1206         (negated_tst<mode>) : Redefine as split using mode macro.
1207         (reversed_tstqi): Define insn as reversed compare with zero.
1208         (reversed_tsthi): Ditto.
1209         (reversed_tstsi): Ditto.
1210
1211 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
1212
1213         PR middle-end/37393
1214         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
1215         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
1216
1217         PR middle-end/37414
1218         * predict.c (optimize_function_for_size_p): Don't segfault if
1219         FUN is NULL.
1220         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
1221         tree_swap_operands_p): Don't test cfun != NULL before calling
1222         optimize_function_for_s*_p.
1223
1224 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
1225
1226         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
1227         end of the search.
1228
1229 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
1230
1231         * crx/crx.h (IRA_COVER_CLASSES): Define.
1232
1233 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
1234
1235         PR middle-end/37337
1236         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
1237         even when a stmt has been gimple_modified_p, but after fold_stmt is
1238         not any longer.  Remove unneeded may_have_exposed_new_symbols
1239         initializations.
1240
1241 2008-09-08  Richard Guenther  <rguenther@suse.de>
1242
1243         PR tree-optimization/37421
1244         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
1245         valueize the RHS.
1246
1247 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
1248
1249         PR middle-end/37415
1250         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
1251
1252 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1253
1254         PR driver/37409
1255         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
1256         * pa-hpux10.h (LINK_SPEC): Likewise.
1257         * pa-hpux11.h (LINK_SPEC): Likewise.
1258
1259 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1260
1261         * pa32-regs.h (IRA_COVER_CLASSES): Define.
1262         * pa64-regs.h (IRA_COVER_CLASSES): Define.
1263
1264 2008-09-07  Helge Deller  <deller@gmx.de>
1265
1266         * pa/linux-atomic.c: New file.
1267         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
1268         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
1269
1270 2008-09-07  Richard Guenther  <rguenther@suse.de>
1271             Ira Rosen  <irar@il.ibm.com>
1272
1273         PR tree-optimization/36630
1274         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
1275         Call STRIP_NOPS before calling evolution_part_in_loop_num.
1276
1277 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
1278             Ira Rosen  <irar@il.ibm.com>
1279
1280         PR tree-optimization/35642
1281         * config/rs6000/altivec.md (mulv8hi3): Implement.
1282
1283 2008-09-06  Jeff Law <law@redhat.com>
1284
1285         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
1286
1287 2008-09-06  Jan Hubicka  <jh@suse.cz>
1288
1289         PR tree-optimization/14703
1290         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
1291         declarations.
1292         * passes.c (init_optimization_passes): Recompute inline parameters.
1293
1294 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
1295
1296         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
1297         DECL being null.
1298
1299 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
1300             Peter Fuerst  <post@pfrst.de>
1301
1302         * doc/invoke.texi: Document -mr10k-cache-barrier=.
1303         * doc/extend.texi: Document __builtin_mips_cache.
1304         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
1305         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
1306         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
1307         __GCC_HAVE_BUILTIN_MIPS_CACHE.
1308         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
1309         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
1310         (set_push_mips_isas): New variable.
1311         (mips_r10k_cache_barrier): New variable.
1312         (cache): New availability predicate.
1313         (mips_builtins): Add an entry for __builtin_mips_cache.
1314         (mips_build_cvpointer_type): New function.
1315         (MIPS_ATYPE_CVPOINTER): New macro.
1316         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
1317         mode is VOIDmode.
1318         (r10k_simplified_address_p, r10k_simplify_address)
1319         (r10k_uncached_address_p, r10k_safe_address_p)
1320         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
1321         (r10k_needs_protection_p_call, r10k_needs_protection_p)
1322         (r10k_insert_cache_barriers): New functions.
1323         (mips_reorg_process_insns): Delete cache barriers after a
1324         branch-likely instruction.
1325         (mips_reorg): Call r10k_insert_cache_barriers.
1326         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
1327         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
1328         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
1329         (mips_cache, r10k_cache_barrier): New define_insns.
1330
1331 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
1332
1333         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
1334         * ira-color.c (setup_allocno_left_conflicts_num): Use
1335         hard_reg_set_equal_p instead of a comparison with
1336         ira_zero_hard_reg_set.
1337         * ira.c (setup_reg_subclasses): Likewise.
1338         (setup_cover_and_important_classes): Likewise.
1339         (setup_class_translate): Likewise.
1340         (setup_reg_class_intersect_union): Likewise.
1341         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
1342         (ira_init_once): Don't initialize them.
1343
1344 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
1345
1346         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
1347
1348 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
1349
1350         * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
1351
1352 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
1353
1354         Improved branch hints, safe hints, and scheduling.
1355
1356         * haifa-sched.c (sched_emit_insn) : Define.
1357         * sched-int.h (sched_emit_insn) : Add prototype.
1358         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
1359         -mhint-max-distance -msafe-hints) : Document.
1360         * config/spu/spu.c (spu_flag_var_tracking): New.
1361         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
1362         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
1363         TARGET_ASM_FILE_START): Define.
1364         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
1365         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
1366         (spu_emit_branch_hint): Add blocks argument.
1367         (insert_branch_hints, insert_nops): Remove.
1368         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
1369         uses_ls_unit, spu_sched_init_global, spu_sched_init,
1370         spu_sched_reorder, asm_file_start): New functions.
1371         (clock_var, spu_sched_length, pipe0_clock,
1372         pipe1_clock, prev_clock_var, prev_priority,
1373         spu_ls_first, prev_ls_clock): New static variables.
1374         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
1375         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
1376         (nopn_nv): Add a non-volatile version of nop.
1377         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
1378         -mhint-max-distance, -msafe-hints): New options.
1379
1380 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
1381             Samuel Tardieu  <sam@rfc1149.net>
1382
1383         * opts.c (decode_options): Combine nested if statements.
1384
1385         PR target/37283
1386         * opts.c (decode_options): Handle more relationships among
1387         unit-at-a-time, toplevel-reorder, and section-anchors.
1388
1389 2008-09-05  David Daney  <ddaney@avtrex.com>
1390
1391         * doc/install.texi (--enable-reduced-reflection): Document new option.
1392
1393 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
1394
1395         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
1396         constantpool_mem_p.
1397         (constantpool_operand): New.
1398         (move_operand): Disallow sub-word modes for the constant pool.
1399         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
1400         (xtensa_secondary_reload_class): Replace with....
1401         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check.
1402         Set icode for sub-word reloads from the constant pool.
1403         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
1404         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
1405         * config/xtensa/xtensa.md (reload<mode>_literal): New.
1406         * config/xtensa/xtensa-protos.h: Update prototypes.
1407
1408 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
1409
1410         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
1411         (REG_CLASS_NAMES): Update.
1412         (REG_CLASS_CONTENTS): Update.
1413         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
1414         of ALL_REGS for regs 77 and 78.
1415         * function.c (instantiate_virtual_regs_in_insn): Assert that
1416         return value of simplify_gen_subreg is not NULL.
1417
1418 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
1419
1420         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
1421         (gen_rtvec_v): Fix coding standards.
1422
1423 2008-09-04  Jan Hubicka  <jh@suse.cz>
1424
1425         * i386.c (decide_alg): Be more conservative about optimizing for size.
1426
1427 2008-09-04  Ian Lance Taylor  <iant@google.com>
1428
1429         * varasm.c (narrowing_initializer_constant_valid_p): New
1430         static function.
1431         (initializer_constant_valid_p): Call it.
1432
1433 2008-09-04  Jeff Law  <law@redhat.com>
1434
1435         * fold-const.c (native_encode_real): Fix computation of WORDS.
1436         (native_interpret_real): Likewise.
1437
1438 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
1439
1440         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
1441
1442 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
1443
1444         * ira-conflicts.c (process_regs_for_copy): Check insn to check
1445         that the cost is already taken into account in ira-costs.c
1446
1447         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
1448
1449         * ira-build.c (print_copy, print_copies, ira_debug_copy,
1450         ira_debug_copies): New.
1451         (ira_bulid): Call print_copies.
1452
1453         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
1454
1455 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
1456
1457         PR target/32783
1458         * config/rs6000/rs6000.c (optimization_options): Remove check of
1459         flag_toplevel_order.
1460
1461 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
1462
1463         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
1464         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
1465         second operand is a reg_imm10_operand.
1466         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
1467         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
1468         (*seq_<GPR:mode><GPR2:mode>): Rename to
1469         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
1470         ISA_HAS_SEQ_SNE.
1471         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
1472         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
1473         ISA_HAS_SEQ_SNE.
1474         (*sne_<GPR:mode><GPR2:mode>): Rename to
1475         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
1476         ISA_HAS_SEQ_SNE.
1477
1478 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
1479
1480         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
1481         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
1482         combining an arithmetic right shift by more than 31 and a
1483         trunction.  Don't match for out-of-range shift amounts.  Set
1484         attribute mode to <MODE>.
1485         (*lshr32_trunc<mode>): Name the pattern combining a logical right
1486         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
1487         (*<optab>_trunc<mode>_exts): New pattern for truncated right
1488         shifts by less than 32.
1489         (extv): Change predicate on first operand to accept registers.
1490         Change predicate of the other operands from immediate_operand to
1491         const_int_operand.  Expand exts when source is a register.
1492         (extzv): Change predicate of the constant operands from
1493         immediate_operand to const_int_operand.
1494         (extzv<mode>): Change predicate of the constant operands from
1495         immediate_operand to const_int_operand and no constraint. Also
1496         remove mode.
1497         (*extzv_trunc<mode>_exts): New pattern.
1498
1499 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
1500
1501         * config/mips/mips.h (ISA_HAS_CINS): New macro.
1502         * config/mips/mips-protos.h (mask_low_and_shift_p,
1503         mask_low_and_shift_len): Declare.
1504         * config/mips/mips.c (mask_low_and_shift_p,
1505         mask_low_and_shift_len): New functions.
1506         (mips_print_operand): Handle new operand prefix "m".
1507         * config/mips/mips.md (*cins<mode>): New pattern.
1508
1509 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
1510
1511         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
1512         optimizing for size.
1513
1514 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
1515
1516         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
1517         regardless of epilogue_completed.
1518
1519 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
1520
1521         PR middle-end/37359
1522         * ira-lives.c (process_bb_node_lives): Check setjmp.
1523
1524 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
1525
1526         PR middle-end/37243
1527         * ira-build.c (form_loop_tree): Reverse BB walk.
1528         (create_bb_allocnos): Likewise.
1529         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
1530         (mark_reg_store): Rename to...
1531         (mark_ref_live): ...this and take a df_ref argument instead of
1532         note_stores arguments.  Assert that we have a register.
1533         (mark_reg_clobber): Delete.
1534         (def_conflicts_with_inputs_p): New function.
1535         (mark_reg_conflicts): Delete.
1536         (mark_reg_death): Rename to...
1537         (mark_ref_dead): ...this and take a df_ref argument instead of
1538         a register.  Assert that we have a register.
1539         (process_bb_node_lives): Hoist frequency calculation out of
1540         instruction walk.  Convert from a forwards scan to a backwards scan.
1541         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
1542         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
1543         (create_allocno_live_ranges): Don't create regs_set.
1544
1545 2008-09-04  Ian Lance Taylor  <iant@google.com>
1546
1547         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
1548         or REG_LABEL_TARGET.
1549         * calls.c (emit_library_call_value_1): Use MEM_P rather than
1550         comparing MODE with MEM.
1551         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
1552         comparing with GF_PREDICT_TAKEN.
1553         (gimple_get_lhs): Change code to enum gimple_code.
1554         (gimple_set_lhs): Likewise.
1555         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
1556         * omp-low.c (find_omp_clause): Change kind parameter to enum
1557         omp_clause_code.
1558         * tree-flow.h (find_omp_clause): Update declaration.
1559         * regrename.c (clear_dead_regs): Change kind parameter to enum
1560         reg_note.
1561         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
1562         GET_MODE.
1563         * see.c (see_get_extension_data): Change return type to enum
1564         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
1565         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
1566         (see_gen_normalized_extension): Change extension_code parameter to
1567         enum entry_type.
1568         (see_seek_pre_extension_expr): Change extension_code to enum
1569         entry_type.
1570         (see_merge_one_def_extension): Likewise.
1571         (see_handle_relevant_defs): Likewise.
1572         (see_handle_relevant_uses): Likewise.
1573         (see_analyze_one_def): Likewise.
1574         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
1575         GIMPLE_ASM rather than ASM_EXPR.
1576         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
1577         GIMPLE_RETURN rather than RETURN_EXPR.
1578         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
1579         (evaluate_stmt): Likewise.
1580         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
1581         to enum vect_relevant.
1582         (vect_mark_stmts_to_be_vectorized): Change assertion to not
1583         compare gimple codes with tree codes.
1584
1585 2008-09-04  Paul Brook  <paul@codesourcery.com>
1586
1587         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
1588
1589 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
1590
1591         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
1592         pointer check lost in the recent no-unit-at-a-time patch.
1593
1594 2008-09-04  Jan Hubicka  <jh@suse.cz>
1595
1596         PR middle-end/37343
1597         * tree-switch-conversion.c (check_final_bb): Accept only IP
1598         invariants.
1599
1600 2008-09-04  Jan Hubicka  <jh@suse.cz>
1601
1602         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
1603         Break out from ...
1604         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
1605         using_ranges argument.
1606         (vrp_evaluate_conditional): Avoid bogus warning for type range.
1607         (vrp_visit_cond_stmt): Update call of
1608         vrp_evaluate_conditional_warnv_with_ops
1609
1610 2008-09-04  Jan Hubicka  <jh@suse.cz>
1611
1612         PR tree-optimization/37345
1613         PR tree-optimization/37358
1614         PR tree-optimization/37357
1615         * tree.c (build_function_type_skip_args): Build distinct type copy;
1616         set TYPE_CONTEXT.
1617         (build_function_decl_skip_args): Set type of new decl not orig decl;
1618         clear DECL_VINDEX for methods turned into functions.
1619
1620 2008-09-04  Nick Clifton  <nickc@redhat.com>
1621
1622         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
1623         * configure: Regenerate.
1624         * config.in: Regenerate.
1625         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
1626         alignment field, if it is supported.
1627
1628 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
1629
1630         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
1631         libraries.
1632
1633 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
1634
1635         * config/rs6000/rs6000.c (processor_target_table): Do not
1636         enable VMX for POWER6.
1637
1638 2008-09-03  Anton Blanchard  <anton@samba.org>
1639
1640         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
1641         emit memory barrier before operation.
1642
1643 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
1644
1645         PR testsuite/37325
1646         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
1647         default_elf_asm_output_external.
1648
1649 2008-09-03  Jeff Law  <law@redhat.com>
1650
1651         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
1652
1653 2008-09-03  Richard Henderson  <rth@redhat.com>
1654
1655         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
1656         memory barrier to below the test-and-set.
1657         (alpha_split_lock_test_and_set_12): Likewise.
1658
1659 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
1660
1661         PR rtl-opt/37243
1662
1663         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
1664         all_allocnos.
1665
1666         * ira-color.c (print_loop_title): Use all_allocnos.
1667         (color_pass): Ditto.  Don't add border_allocnos.  Check that
1668         subloop allocno in the correspdoning bitmap all_allocnos.
1669
1670         * ira-emit.c (change_loop): Use all_allocnos.
1671
1672         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
1673         Ditto.
1674         (ira_create_allocno): Set up all_allocnos bit for the created
1675         allocno.
1676         (create_cap_allocno): Remove setting mentioned_allocnos.
1677         (create_insn_allocnos): Ditto.
1678         (remove_unnecessary_allocnos): Use all_allocnos.
1679         (check_allocno_creation): Check that allocnos are in the
1680         corresponding bitmap all_allocnos.
1681
1682 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
1683
1684         PR rtl-opt/37243
1685
1686         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
1687         (process_regs_for_copy): Process subregs.  Refine check when cost
1688         is taken into account in ira-costs.c.
1689         (process_reg_shuffles): Use REG_SUBREG_P.
1690         (add_insn_allocno_copies): Ditto.  Ignore modes.
1691
1692         * ira-color.c (conflict_allocno_vec): New.
1693         (COST_HOP_DIVISOR): New macro.
1694         (update_copy_costs_1): Use it.
1695         (update_conflict_hard_regno_costs): New function.
1696         (assign_hard_reg): Use it.
1697         (ira_color): Allocate and free conflict_allocno_vec.
1698
1699 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
1700
1701         PR rtl-opt/37296
1702
1703         * ira-int.h (ira_sort_insn_chain): Remove.
1704
1705         * ira.c (basic_block_order_nums, chain_insn_order,
1706         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
1707         (ira): Don't call ira_sort_insn_chain.
1708
1709         * reload1.c (reload): Don't call ira_sort_insn_chain.
1710
1711 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1712
1713         PR middle-end/37293
1714         * cgraphunit.c (update_call_expr): Remove eh regions from statements
1715         which become non throw.
1716         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
1717         update_call_expr after updating the flags on the decl.
1718
1719 2008-09-03  Jan Hubicka  <jh@suse.cz>
1720
1721         PR tree-optimization/37315
1722         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
1723         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
1724         (cgraph_analyze_functions): Use node->analyzed
1725         (cgraph_mark_functions_to_output): Likewise.
1726         (cgraph_expand_function): All functions can be released after
1727         expanding.
1728         (cgraph_optimize): Use gimple_has_body_p.
1729         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
1730         (cgraph_decide_inlining_incrementally): Likewise.
1731         (inline_transform): Inline transform.
1732         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
1733         copy fields needed.
1734         (inlinable_function_p): Drop gimple_body check.
1735         (expand_call_inline): Use gimple_has_body_p.
1736         * gimple.c (gimple_has_body_p): New.
1737         * gimple.h (gimple_has_body_p): Add prototype.
1738         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
1739         (dump_function_to_file): Use gimple_has_body_p check.
1740
1741 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
1742
1743         PR c++/37346
1744         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
1745         substatements.
1746         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
1747
1748 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
1749
1750         From Michael Frysinger  <michael.frysinger@analog.com>
1751         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
1752         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
1753         for bf538.
1754
1755 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
1756
1757         Add picoChip port.
1758         * doc/extend.texi: Document picoChip builtin functions.
1759         * doc/invoke.texi: Document picoChip options.
1760         * doc/contrib.texi: Add picoChip contribution.
1761         * doc/md.texi: Document picoChip constraints.
1762         * config.gcc: Add picochip-*-*.
1763         * config/picochip/: Add new port.
1764
1765 2008-09-03  Richard Guenther  <rguenther@suse.de>
1766
1767         PR tree-optimization/37328
1768         * tree-sra.c (sra_build_assignment): Gimplify properly.
1769         (generate_copy_inout): Take the correct stmt as definition,
1770         remove bogus assert.
1771
1772 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
1773
1774         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
1775         attributes.
1776
1777         From Michael Frysinger  <michael.frysinger@analog.com>
1778         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
1779
1780 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
1781
1782         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
1783         (__gthread_setspecific): Revert 2008-08-31 change to
1784         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API case.
1785
1786 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
1787
1788         * diagnostic.c (error_at): New.
1789         * toplev.h (error_at): New prototype.
1790         * c-typeck.c (build_array_ref): Call error_at instead of error.
1791         Pass location to pedwarn.
1792
1793 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
1794
1795         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
1796
1797 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1798
1799         * dwarf2out.c (tree_add_const_value_attribute): Only handle
1800         VAR_DECL and CONST_DECL.
1801
1802 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1803             Jakub Jelinek  <jakub@redhat.com>
1804
1805         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
1806         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
1807         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
1808         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
1809         Don't set ix86_save_varrargs_registers.
1810         (ix86_setup_incoming_varargs): Assume cum != NULL.
1811         (ix86_va_start): Check ix86_varargs_gpr_size and
1812         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
1813         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
1814         from frame pointer if ix86_varargs_gpr_size == 0.
1815         (ix86_compute_frame_layout): Updated.
1816         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
1817         (ix86_varargs_gpr_size): Define.
1818         (ix86_varargs_fpr_size): Likewise.
1819         (machine_function): Remove save_varrargs_registers.
1820         Add varargs_gpr_size and varargs_fpr_size.
1821
1822 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1823
1824         * config/alpha/alpha.c (va_list_skip_additions,
1825         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
1826         (alpha_gimplify_va_arg): Call unshare_expr on second use of
1827         offset_field.
1828
1829         PR tree-optimization/36766
1830         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
1831         for already removed basic blocks.
1832
1833         PR target/36332
1834         * real.c (real_maxval): Clear a lower bit to make real_maxval
1835         match get_max_float for IBM long double format.
1836
1837 2008-09-02  Andreas Schwab  <schwab@suse.de>
1838
1839         * configure.ac: Use m4_quote to quote the expansion of m4_do.
1840         * configure: Regenerate.
1841
1842 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
1843
1844         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
1845         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
1846         checking for a non-VOID CONSTANT_P.
1847
1848 2008-09-02  Jan Hubicka  <jh@suse.cz>
1849
1850         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
1851         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
1852         sdiv_pow2_cheap
1853
1854 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1855
1856         * expr.c (emit_group_store): Don't assert stack temp mode size.
1857
1858 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
1859             Tobias Grosser  <grosser@fim.uni-passau.de>
1860             Jan Sjodin  <jan.sjodin@amd.com>
1861             Harsha Jagasia  <harsha.jagasia@amd.com>
1862             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1863             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
1864             Adrien Eliche  <aeliche@isty.uvsq.fr>
1865
1866         Merge from graphite branch.
1867         * graphite.c: New.
1868         * graphite.h: New.
1869         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
1870         * doc/invoke.texi (-floop-block, -floop-interchange,
1871         -floop-strip-mine): Document new flags.
1872         * tree-into-ssa.c (gimple_vec): Moved...
1873         * tree-loop-distribution.c (rdg_component): Moved...
1874         * cfgloopmanip.c: Include tree-flow.h.
1875         (update_dominators_in_loop): New.
1876         (create_empty_if_region_on_edge): New.
1877         (create_empty_loop_on_edge): New.
1878         (loopify): Use update_dominators_in_loop.
1879         * tree-pass.h (pass_graphite_transforms): Declared.
1880         * configure: Regenerate.
1881         * tree-phinodes.c (make_phi_node): Export.
1882         (add_phi_node_to_bb): New, split from create_phi_node.
1883         * tree-chrec.c (for_each_scev_op): New.
1884         * tree-chrec.h (for_each_scev_op): Declared.
1885         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
1886         (remove_statement): Call get_phi_with_result.
1887         * config.in (HAVE_cloog): Undef.
1888         * gdbinit.in (pgg): New.
1889         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
1890         * tree-ssa-loop.c (graphite_transforms): New.
1891         (gate_graphite_transforms): New.
1892         (pass_graphite_transforms): New.
1893         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
1894         HAVE_cloog): Defined.
1895         * tree-vectorizer.c (rename_variables_in_bb): Export.
1896         * tree-data-ref.c (dr_may_alias_p): Export.
1897         (stmt_simple_memref_p): New.
1898         (find_data_references_in_stmt): Export.
1899         (find_data_references_in_loop): Export.
1900         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
1901         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
1902         (create_rdg_vertices): Export.
1903         (build_empty_rdg): New.
1904         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
1905         * tree-data-ref.h (rdg_component): ... here.
1906         (scop_p): New.
1907         (struct data_reference): Add a field scop.
1908         (DR_SCOP): New.
1909         (find_data_references_in_loop): Declared.
1910         (find_data_references_in_stmt): Declared.
1911         (create_rdg_vertices): Declared.
1912         (dr_may_alias_p): Declared.
1913         (stmt_simple_memref_p): Declared.
1914         (struct rdg_edge): Add a field ddr_p relation.
1915         (build_empty_rdg): Declared.
1916         * lambda.h (lambda_matrix): Declare a VEC of.
1917         (find_induction_var_from_exit_cond): Declared.
1918         (lambda_vector_compare): New.
1919         * common.opt (fgraphite, floop-strip-mine,
1920         floop-interchange, floop-block): New flags.
1921         * lambda-code.c (find_induction_var_from_exit_cond): Export.
1922         * cfgloop.c (is_loop_exit): New.
1923         * cfgloop.h (is_loop_exit): Declared.
1924         (create_empty_if_region_on_edge): Declared.
1925         (create_empty_loop_on_edge): Declared.
1926         * tree-flow.h (add_phi_node_to_bb): Declared.
1927         (make_phi_node): Declared.
1928         (rename_variables_in_bb): Declared.
1929         (perfect_loop_nest_depth): Declared.
1930         (graphite_transform_loops): Declared.
1931         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
1932         (graphite.o-warn): Add -Wno-error.
1933         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
1934         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
1935         (INCLUDES): Add PPLINC, CLOOGINC.
1936         (OBJS-common): Add graphite.o.
1937         (graphite.o): Add rule.
1938         * gimple.h (gimple_vec): ... here.
1939         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
1940         * passes.c (init_optimization_passes): Schedule
1941         pass_graphite_transforms.
1942
1943 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
1944
1945         PR target/37283
1946         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
1947         and -fno-toplevel-reorder after handle_options.
1948
1949 2008-09-02  Paul Brook  <paul@codesourcery.com>
1950
1951         * config/arm/arm.c (arm_tune_cortex_a9): Define.
1952         (arm_override_options): Set arm_tune_cortex_a9.
1953         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
1954         (arm_issue_rate): Handle cortexa9.
1955         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
1956         * config/arm/arm-cores.def: Add cortex-a9.
1957         * config/arm/arm-tune.md: Regenerate.
1958         * config/arm/arm.md: Include cortex-a9.md.
1959         (generic_sched, generic_vfp): Add cortexa9.
1960         * config/arm/cortex-a9.md: New file.
1961
1962 2008-09-02  Richard Guenther  <rguenther@suse.de>
1963
1964         PR tree-optimization/37327
1965         * tree-vrp.c (register_new_assert_for): Make sure to not have
1966         TREE_OVERFLOW set on the bound.
1967
1968 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
1969
1970         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
1971
1972         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
1973         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
1974         spec_info->mask.
1975
1976 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
1977
1978         * gcc/config/spu/spu.md (divdf3): Removed.
1979
1980 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1981
1982         PR tree-optimization/37095
1983         * cgraph.c (cgraph_node): When creating new cgraph node after
1984         assembler_name_hash has been populated, record it in the hash
1985         table.
1986
1987 2008-09-01  Paul Brook  <paul@codesourcery.com>
1988
1989         * doc/invoke.texi: Document -mword-relocations.
1990         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1991         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1992         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1993         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
1994         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
1995         (arm_emit_movpair): New function.
1996         (arm_print_operand <c>): Handle sybolic addresses.
1997         * config/arm/arm.h (TARGET_USE_MOVT): Define.
1998         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1999         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
2000         * config/arm/arm.opt: Add -mword-relocations.
2001         * config/arm/arm.md (movsi): Use arm_emit_movpair.
2002         (arm_movt, arm_movw): New.
2003
2004 2008-09-01  Paul Brook  <paul@codesourcery.com>
2005
2006         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
2007         Allow Interworking on ARMv4 EABI based targets.
2008         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
2009         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
2010
2011 2008-09-01  Paul Brook  <paul@codesourcery.com>
2012
2013         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
2014         optimized LT0 test.  Remove optimization for GT.
2015
2016 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2017
2018         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
2019         openmp applications.
2020         * pa-hpux11.h (LIB_SPEC): Likewise.
2021
2022         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
2023         is defined.
2024
2025 2008-09-01  Jan Hubicka  <jh@suse.cz>
2026
2027         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
2028         present, use only counts; when guessed use only frequencies.
2029         (estimate_bb_frequencies): Use function_frequency.
2030         * profile.c (compute_branch_probabilities): Exit early when
2031         profile reading failed. Set profile_status.
2032         (branch_prob): Do not set profile_status.
2033
2034 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
2035
2036         * tree.c (protected_set_expr_location): New.
2037         * tree.h (protected_set_expr_location): New prototype.
2038         * c-tree.h (build_array_ref): Add argument.
2039         (parser_build_unary_op): Same.
2040         * c-typeck.c (build_indirect_ref): Handle new location argument.
2041         (build_array_ref): Same.
2042         (parser_build_unary_op): Same.
2043         * gimplify.c (gimplify_asm_expr): Set input_location before calling
2044         error.
2045         * c-omp.c (c_finish_omp_atomic): Pass location when calling
2046         build_indirect_ref.
2047         * c-common.c (finish_label_address_expr): Handle new location argument.
2048         * c-common.h (build_indirect_ref): Add argument.
2049         (finish_label_address_expr): Same.
2050         * c-parser.c (c_parser_unary_expression): Pass location to build
2051         functions.
2052         (c_parser_postfix_expression): Same.
2053
2054 2008-09-01  Paul Brook  <paul@codesourcery.com>
2055
2056         * config/arm/arm.md: Include cortex-r4f.md.
2057         (attr fpu): Update type list.
2058         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
2059         fconstd, fcmps and fcmpd.
2060         (attr tune_cortexr4): Define.
2061         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
2062         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
2063         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
2064         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
2065         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
2066         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
2067         cortex_a8_vfp_farith: Ditto.
2068         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
2069         * config/arm/cortex-r4.md: Use tune_cortexr4.
2070         * config/arm/cortex-r4f.md: New file.
2071
2072 2008-09-01  Richard Guenther  <rguenther@suse.de>
2073
2074         PR tree-optimization/37305
2075         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
2076         the result of constant conversions.
2077         (fold_gimple_assign): Likewise.
2078
2079 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
2080
2081         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
2082         #ifdef ENABLE_CHECKING.
2083
2084 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
2085
2086         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
2087         * sched-int.h (print_insn, print_pattern, print_value): Declare also
2088         when !INSN_SCHEDULING.
2089
2090 2008-09-01  Andreas Schwab  <schwab@suse.de>
2091
2092         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
2093
2094 2008-09-01  Paul Brook  <paul@codesourcery.com>
2095
2096         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
2097
2098 2008-09-01  Jan Hubicka  <jh@suse.cz>
2099
2100         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
2101
2102         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
2103         Pass speed operand.
2104         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
2105         * gimplify.c (gimplify_init_constructor): Add speed operand.
2106         * tree-sra.c (decide_block_copy): Likewise.
2107         * tree-inline.c (estimate_move_cost): Likewise.
2108         * config/alpha/alpha.h (MOVE_RATIO): Update.
2109         * config/frv/frv.c (MOVE_RATIO): Update.
2110         * config/spu/spu.h (MOVE_RATIO): Update.
2111         * config/sparc/sparc.h (MOVE_RATIO): Update.
2112         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
2113         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
2114         * config/cris/cris.h (MOVE_RATIO): Update.
2115         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
2116         * config/arm/arm.h (MOVE_RATIO): Update.
2117         * config/pa/pa.md: Update uses of MOVE_RATIO
2118         * config/pa/pa.h (MOVE_RATIO): Update.
2119         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
2120         CLEAR_RATIO, SET_RATIO): Update.
2121         * config/h8300/h8300.h (MOVE_RATIO): Update.
2122         * config/v850/v850.h (MOVE_RATIO): Update.
2123         * config/bfin/bfin.h (MOVE_RATIO): Update.
2124
2125 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
2126             Dmitry Melnik  <dm@ispras.ru>
2127             Dmitry Zhurikhin  <zhur@ispras.ru>
2128             Alexander Monakov  <amonakov@ispras.ru>
2129             Maxim Kuvyrkov  <maxim@codesourcery.com>
2130
2131         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
2132         sel-sched-dump.c, sel-sched-ir.c: New files.
2133         * Makefile.in (OBJS-common): Add selective scheduling object files.
2134         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
2135         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
2136         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
2137         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
2138         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
2139         (make_forwarder_block): Update loop latch if we have redirected
2140         the loop latch edge.
2141         * cfgloop.c (get_loop_body_in_custom_order): New function.
2142         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
2143         (CP_FALLTHRU_PREHEADERS): Likewise.
2144         (get_loop_body_in_custom_order): Declare.
2145         * cfgloopmanip.c (has_preds_from_loop): New.
2146         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
2147         Assert that the preheader edge will be fall thru when it is set.
2148         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
2149         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
2150         fsel-sched-substitution, fselective-scheduling): New flags.
2151         * cse.c (hash_rtx_cb): New.
2152         (hash_rtx): Use it.
2153         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
2154         sel_sched_insn_cnt): New counters.
2155         * final.c (compute_alignments): Export.  Free dominance
2156         info after loop_optimizer_finalize.
2157         * genattr.c (main): Output maximal_insn_latency prototype.
2158         * genautomata.c (output_default_latencies): New.
2159         Factor its code from ...
2160         (output_internal_insn_latency_func): ... here.
2161         (output_internal_maximal_insn_latency_func): New.
2162         (output_maximal_insn_latency_func): New.
2163         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
2164         (struct hard_reg_set_iterator): New.
2165         (hard_reg_set_iter_init, hard_reg_set_iter_set,
2166         hard_reg_set_iter_next): New functions.
2167         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
2168         * lists.c (remove_free_INSN_LIST_node,
2169         remove_free_EXPR_LIST_node): New functions.
2170         * loop-init.c (loop_optimizer_init): When
2171         LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
2172         calling create_preheaders.
2173         (loop_optimizer_finalize): Do not verify flow info after reload.
2174         * recog.c (validate_replace_rtx_1): New parameter simplify.
2175         Default it to true.  Update all uses.  Factor out simplifying
2176         code to ...
2177         (simplify_while_replacing): ... this new function.
2178         (validate_replace_rtx_part,
2179         validate_replace_rtx_part_nosimplify): New.
2180         * recog.h (validate_replace_rtx_part,
2181         validate_replace_rtx_part_nosimplify): Declare.
2182         * rtl.c (rtx_equal_p_cb): New.
2183         (rtx_equal_p): Use it.
2184         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
2185         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
2186         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
2187         * vecprim.h: Add a vector type for unsigned int.
2188         * haifa-sched.c: Include vecprim.h and cfgloop.h.
2189         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
2190         ready_try, cycle_issued_insns, spec_info): Make global.
2191         (readyp): Initialize.
2192         (dfa_lookahead): New global variable.
2193         (old_max_uid, old_last_basic_block): Remove.
2194         (h_i_d): Make it a vector.
2195         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
2196         through HID macro.
2197         (after_recovery, adding_bb_to_current_region_p):
2198         New variables to handle correct insertion of the recovery code.
2199         (struct ready_list): Move declaration to sched-int.h.
2200         (rgn_n_insns): Removed.
2201         (rtx_vec_t): Move to sched-int.h.
2202         (find_insn_reg_weight): Remove.
2203         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
2204         (haifa_init_h_i_d, haifa_finish_h_i_d):
2205         New functions to initialize / finalize haifa instruction data.
2206         (extend_h_i_d, init_h_i_d): Rewrite.
2207         (unlink_other_notes): Move logic to add_to_note_list.  Handle
2208         selective scheduler.
2209         (ready_lastpos, ready_element, ready_sort, reemit_notes,
2210         find_fallthru_edge): Make global, remove static prototypes.
2211         (max_issue): Make global.  Add privileged_n and state parameters.  Use
2212         them.
2213         (extend_global, extend_all): Removed.
2214         (init_before_recovery): Add new param.  Fix the handling of the case
2215         when we insert a recovery code before the EXIT which has a predecessor
2216         with a fallthrough edge to it.
2217         (create_recovery_block): Make global.  Rename to
2218         sched_create_recovery_block.  Update.
2219         (change_pattern): Rename to sched_change_pattern.  Make global.
2220         (speculate_insn): Rename to sched_speculate_insn.  Make global.
2221         Split haifa-specific functionality into ...
2222         (haifa_change_pattern): New static function.
2223         (sched_extend_bb): New static function.
2224         (sched_init_bbs): New function.
2225         (current_sched_info): Change type to struct haifa_sched_info.
2226         (insn_cost): Adjust for selective scheduling.
2227         (dep_cost_1): New function.  Move logic from ...
2228         (dep_cost): ... here.
2229         (dep_cost): Use dep_cost_1.
2230         (contributes_to_priority_p): Use sched_deps_info instead of
2231         current_sched_info.
2232         (priority): Adjust to work with selective scheduling.  Process the
2233         corner case when all dependencies don't contribute to priority.
2234         (rank_for_schedule): Use ds_weak instead of dep_weak.
2235         (advance_state): New function.  Move logic from ...
2236         (advance_one_cycle): ... here.
2237         (add_to_note_list, concat_note_lists): New functions.
2238         (rm_other_notes): Make static.  Adjust for selective scheduling.
2239         (remove_notes, restore_other_notes): New functions.
2240         (move_insn): Add two arguments.  Update assert.  Don't call
2241         reemit_notes.
2242         (choose_ready): Remove lookahead variable, use dfa_lookahead.
2243         Remove more_issue, max_points.  Move the code to initialize
2244         max_lookahead_tries to max_issue.
2245         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
2246         ready.  Adjust use of move_insn.  Call restore_other_notes.
2247         (luid): Remove.
2248         (sched_init, sched_finish): Move Haifa-specific initialization/
2249         finalization to ...
2250         (haifa_sched_init, haifa_sched_finish): ... respectively.
2251         New functions.
2252         (setup_sched_dump): New function.
2253         (haifa_init_only_bb): New static function.
2254         (haifa_speculate_insn): New static function.
2255         (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
2256         (extend_ready, extend_all): Remove.
2257         (sched_extend_ready_list, sched_finish_ready_list): New functions.
2258         (create_check_block_twin, add_to_speculative_block): Use
2259         haifa_insns_init instead of extend_global.  Update to use new
2260         initialization functions.  Change parameter.  Factor out code from
2261         create_check_block_twin to ...
2262         (sched_create_recovery_edges) ... this new function.
2263         (add_block): Remove.
2264         (sched_scan_info): New.
2265         (extend_bb): Use sched_scan_info.
2266         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
2267         static functions for walking through scheduling region.
2268         (sched_luids): New vector variable to replace uid_to_luid.
2269         (luids_extend_insn): New function.
2270         (sched_max_luid): New variable.
2271         (luids_init_insn): New function.
2272         (sched_init_luids, sched_finish_luids): New functions.
2273         (insn_luid): New debug function.
2274         (sched_extend_target): New function.
2275         (haifa_init_insn): New static function.
2276         (sched_init_only_bb): New hook.
2277         (sched_split_block): New hook.
2278         (sched_split_block_1): New function.
2279         (sched_create_empty_bb): New hook.
2280         (sched_create_empty_bb_1): New function.
2281         (common_sched_info, ready): New global variables.
2282         (current_sched_info_var): Remove.
2283         (move_block_after_check): Use common_sched_info.
2284         (haifa_luid_for_non_insn): New static function.
2285         (init_before_recovery): Use haifa_init_only_bb instead of add_block.
2286         (increase_insn_priority): New.
2287         * modulo-sched.c: (issue_rate): Remove static declaration.
2288         (sms_sched_info): Change type to haifa_sched_info.
2289         (sms_sched_deps_info, sms_common_sched_info): New variables.
2290         (setup_sched_infos): New.
2291         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
2292         Do not call regstat_free_calls_crossed.
2293         (sms_print_insn): Use const_rtx.
2294         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
2295         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
2296         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
2297         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
2298         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
2299         current_sched_info to use it.
2300         (enum reg_pending_barrier_mode): Move to sched-int.h.
2301         (h_d_i_d): New variable. Initialize to NULL.
2302         ({true, output, anti, spec, forward}_dependency_cache): Initialize
2303         to NULL.
2304         (estimate_dep_weak): Remove static declaration.
2305         (sched_has_condition_p): New function.  Adjust users of
2306         sched_get_condition to use it instead.
2307         (conditions_mutex_p): Add arguments indicating which conditions are
2308         reversed.  Use them.
2309         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
2310         argument to indicate whether returned condition is reversed.  Do not
2311         generate new rtx when condition should be reversed; indicate it by
2312         setting new argument instead.
2313         (add_dependence_list_and_free): Add deps parameter.
2314         Update all users.  Do not free dependence list when
2315         deps context is readonly.
2316         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
2317         contexts.
2318         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
2319         (remove_from_deps): New. Use the above functions.
2320         (cur_insn, can_start_lhs_rhs_p): New static variables.
2321         (add_or_update_back_dep_1): Initialize present_dep_type.
2322         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
2323         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
2324         haifa_note_dep): New functions implementing dependence hooks for
2325         the Haifa scheduler.
2326         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
2327         note_dep): New functions.
2328         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
2329         functions.
2330         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
2331         (free_deps): Initialize deps->reg_last.
2332         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
2333         sched_analyze_insn): Update to use dependency hooks infrastructure
2334         and readonly contexts.
2335         (deps_analyze_insn): New function.  Move part of logic from ...
2336         (sched_analyze): ... here.  Also move some logic to ...
2337         (deps_start_bb): ... here.  New function.
2338         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
2339         sel_sched_p.
2340         (sched_deps_init): New function.  Move code from ...
2341         (init_dependency_caches): ... here.  Remove.
2342         (init_deps_data_vector): New.
2343         (sched_deps_finish): New function.  Move code from ...
2344         (free_dependency_caches): ... here.  Remove.
2345         (init_deps_global, finish_deps_global): Adjust for use with
2346         selective scheduling.
2347         (get_dep_weak): Move logic to ...
2348         (get_dep_weak_1): New function.
2349         (ds_merge): Move logic to ...
2350         (ds_merge_1): New static function.
2351         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
2352         (ds_get_max_dep_weak): New function.
2353         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
2354         (n_insns): Rename to rgn_n_insns.
2355         (debug_ebb_dependencies): New function.
2356         (init_ready_list): Use it.
2357         (begin_schedule_ready): Use sched_init_only_bb.
2358         (ebb_print_insn): Indicate when an insn starts a new cycle.
2359         (contributes_to_priority, compute_jump_reg_dependencies,
2360         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
2361         (add_block1): Remove to ebb_add_block.
2362         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
2363         (schedule_ebb): Initialize them.  Use remove_notes instead of
2364         rm_other_notes.  Use haifa_local_init/finish.
2365         (schedule_ebbs): Use haifa_sched_init/finish.
2366         * sched-int.h: Include vecprim.h, remove rtl.h.
2367         (struct ready_list): Delete declaration.
2368         (sched_verbose_param, enum sched_pass_id_t,
2369         bb_vec_t, insn_vec_t, rtx_vec_t): New.
2370         (struct sched_scan_info_def): New structure.
2371         (sched_scan_info, sched_scan, sched_init_bbs,
2372         sched_init_luids, sched_finish_luids, sched_extend_target,
2373         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
2374         (struct common_sched_info_def): New.
2375         (common_sched_info, haifa_common_sched_info,
2376         sched_emulate_haifa_p): Declare.
2377         (sel_sched_p): New.
2378         (sched_luids): Declare.
2379         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
2380         (sched_max_luid, insn_luid): Declare.
2381         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
2382         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
2383         print_insn, print_pattern, print_value, haifa_classify_insn,
2384         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
2385         setup_sched_dump, sched_init, sched_finish,
2386         sel_insn_is_speculation_check): Export.
2387         (struct ready_list): Move from haifa-sched.c.
2388         (ready_try, ready, max_issue): Export.
2389         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
2390         sched_init_only_bb, sched_split_block, sched_split_block_1,
2391         sched_create_empty_bb, sched_create_empty_bb_1,
2392         sched_create_recovery_block, sched_create_recovery_edges): Export.
2393         (enum reg_pending_barrier_mode): Export.
2394         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
2395         (deps_t): New.
2396         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
2397         print_insn field.  Move add_block and fix_recovery_cfg to
2398         common_sched_info_def.  Move compute_jump_reg_dependencies,
2399         use_cselib  ...
2400         (struct sched_deps_info_def): ... this new structure.
2401         (sched_deps_info): Declare.
2402         (struct spec_info_def): Remove weakness_cutoff, add
2403         data_weakness_cutoff and control_weakness_cutoff.
2404         (spec_info): Declare.
2405         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
2406         dep_count field.
2407         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
2408         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
2409         (current_sched_info): Change type to struct haifa_sched_info.
2410         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
2411         (h_d_i_d): New variable.
2412         (HDID): New accessor macro.
2413         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
2414         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
2415         and HDID.
2416         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
2417         (enum SCHED_FLAGS): Update for selective scheduler.
2418         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
2419         (init_dependency_caches, free_dependency_caches): Delete declarations.
2420         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
2421         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
2422         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
2423         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
2424         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
2425         ds_to_dt): Export.
2426         (rm_other_notes): Delete declaration.
2427         (schedule_block): Remove one argument.
2428         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
2429         ready_element, ready_lastpos, sched_extend_ready_list,
2430         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
2431         concat_note_lists): Export.
2432         (struct region): Move from sched-rgn.h.
2433         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
2434         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
2435         BLOCK_TO_BB, CONTAINING_RGN): Export.
2436         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
2437         (current_nr_blocks, current_blocks, target_bb): Likewise.
2438         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
2439         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
2440         sched_rgn_local_init, extend_regions,
2441         rgn_make_new_region_out_of_new_block, compute_priorities,
2442         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
2443         extend_rgns, deps_join rgn_setup_common_sched_info,
2444         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
2445         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
2446         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
2447         increase_insn_priority): Likewise.
2448         * sched-rgn.c: Include sel-sched.h.
2449         (ref_counts): New static variable.  Use it ...
2450         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
2451         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
2452         (sched_is_disabled_for_current_region_p): Delete static declaration.
2453         (struct region): Move to sched-int.h.
2454         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
2455         ebb_head): Define and initialize.
2456         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
2457         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
2458         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
2459         sched-int.h.
2460         (find_single_block_region): Add new argument to indicate that EBB
2461         regions should be constructed.
2462         (debug_live): Delete declaration.
2463         (current_nr_blocks, current_blocks, target_bb):
2464         Remove static qualifiers.
2465         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
2466         declaration.
2467         (init_regions): Delete declaration.
2468         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
2469         rgn_estimate_number_of_insns): New.
2470         (too_large): Use estimate_number_of_insns.
2471         (haifa_find_rgns): New. Move the code from ...
2472         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
2473         (free_trg_info): New.
2474         (compute_trg_info): Allocate candidate tables here instead of ...
2475         (init_ready_list): ... here.
2476         (rgn_print_insn): Use const_rtx.
2477         (contributes_to_priority, extend_regions): Delete static declaration.
2478         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
2479         (add_block1): Rename to rgn_add_block.
2480         (debug_rgn_dependencies): Delete static qualifier.
2481         (new_ready): Use sched_deps_info.  Simplify.
2482         (rgn_common_sched_info, rgn_const_sched_deps_info,
2483         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
2484         New.
2485         (region_sched_info): Rename to rgn_const_sched_info.
2486         (deps_join): New, extracted from ...
2487         (propagate_deps): ... here.
2488         (compute_block_dependences, debug_dependencies): Update for selective
2489         scheduling.
2490         (free_rgn_deps, compute_priorities): New functions.
2491         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
2492         sched_rgn_compute_dependencies): New functions.
2493         (schedule_region): Use them.
2494         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
2495         rgn_setup_common_sched_info, rgn_setup_sched_infos):
2496         New functions.
2497         (schedule_insns): Call new functions that were split out.
2498         (rgn_make_new_region_out_of_new_block): New.
2499         (get_rgn_sched_max_insns_priority): New.
2500         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
2501         scheduling when appropriate.
2502         * sched-vis.c: Include insn-attr.h.
2503         (print_value, print_pattern): Make global.
2504         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
2505         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
2506         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
2507         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2508         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
2509         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
2510         hooks.  Initialize them to 0.
2511         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
2512         * target.h (struct gcc_target): Add them.  Rename gen_check field to
2513         gen_spec_check.
2514         * flags.h (sel_sched_switch_set): Declare.
2515         * opts.c (sel_sched_switch_set): New variable.
2516         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
2517         pipelining is disabled from command line.
2518         (common_handle_option): Record whether selective scheduling is
2519         requested from command line.
2520         * doc/invoke.texi: Document new flags and parameters.
2521         * doc/tm.texi: Document new target hooks.
2522         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
2523         ia64_gen_check.
2524         (dfa_state_size): Do not declare locally.
2525         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
2526         * config/rs6000/rs6000.c (rs6000_init_sched_context,
2527         rs6000_alloc_sched_context, rs6000_set_sched_context,
2528         rs6000_free_sched_context): New functions.
2529         (struct _rs6000_sched_context): New.
2530         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
2531         scheduling.
2532         (rs6000_sched_finish): Do not run for selective scheduling.
2533
2534 2008-08-31  Jan Hubicka  <jh@suse.cz>
2535
2536         * frv.c (frv_rtx_costs): Update forward declaration.
2537         * spu.c (spu_rtx_costs): Likewise.
2538         * pdp11.c: Include df.h
2539         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
2540         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
2541         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
2542         * iq2000.c (iq2000_address_cost): Add speed argument.
2543         (iq2000_rtx_costs): Likewise.
2544         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
2545         update call of mn10300_address_cost.
2546         * mcore.c: Include df.h
2547         (mcore_rtx_costs): Update prototype.
2548         * score3.c: Include df.h
2549         (score3_rtx_costs): Remove speed argument.
2550         * score7.c: Include df.h
2551         (score7_address_cost): Remove speed argument.
2552         * score-protos.h (score_address_cost): Update prototype.
2553         * score.c: Include df.h
2554         (score_rtx_costs): Update call of costs functions.
2555         * v850.c (v850_rtx_costs): Add bool argument.
2556
2557 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
2558
2559         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
2560
2561 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2562
2563         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
2564         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
2565
2566 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2567
2568         * mkmap-flat.awk: Add option pe_dll.
2569         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
2570         * config/i386/t-cygwin (SHLIB_LC): Add.
2571         * config/i386/t-mingw32 (SHLIB_LC): Add.
2572         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
2573         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
2574         (LINK_SPEC): Support libgcc_s.
2575         (LIBGCC_SPEC): Support libgcc_s.
2576         (LIBGCC_SONAME): New.
2577
2578 2008-08-31  Jan Hubicka  <jh@suse.cz>
2579
2580         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
2581         mistakely had old version of patch.
2582
2583         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
2584         (ipcp_estimate_growth): New.
2585         (ipcp_insert_stage): Use ipcp_estimate_growth.
2586         * profile.c (branch_prob): When reading failed, do not consider
2587         profile as read.
2588
2589 2008-08-31  Jan Hubicka  <jh@suse.cz>
2590
2591         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
2592         loop is optimized for speed.
2593
2594 2008-08-31  Richard Guenther  <rguenther@suse.de>
2595
2596         PR middle-end/37289
2597         * fold-const.c (fold_binary): Retain conversions in folding
2598         ~A + 1 to -A.
2599
2600 2008-08-31  Jan Hubicka  <jh@suse.cz>
2601
2602         * postreload-gcse.c (eliminate_partially_redundant_loads):
2603         Use optimize_bb_for_size_p.
2604         * predict.c (maybe_hot_frequency_p): Make inline.
2605         (maybe_hot_count_p): Break out from ...
2606         (maybe_hot_bb_p): ... this one.
2607         (maybe_hot_edge_p): Simplify.
2608         * basic-block.h (probably_cold_bb_p): Remove.
2609
2610 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
2611
2612         PR target/37168
2613         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
2614         prototype.
2615         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
2616         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
2617         Also split V4SFmode.
2618         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
2619         vector float modes.
2620
2621 2008-08-31  Jan Hubicka  <jh@suse.cz>
2622
2623         * predict.c (PROB_VERY_LIKELY): Make small enough so things
2624         become cold.
2625         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
2626
2627 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
2628
2629         PR debug/37287
2630         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
2631         add source coords.
2632
2633         * dwarf2out.c (native_encode_initializer): Subtract min_index for
2634         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
2635
2636 2008-08-31  Jan Hubicka  <jh@suse.cz>
2637
2638         * sparc.h (BRANCH_COST): Fix macro definition.
2639         * avr.c (avr_operand_rtx_cost): Add speed argument.
2640         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
2641
2642 2008-08-31  Richard Guenther  <rguenther@suse.de>
2643
2644         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
2645         types instead of operands.  Re-instantiate verifying of
2646         binary expression operands.
2647
2648 2008-08-30  Jan Hubicka  <jh@suse.cz>
2649
2650         * fwprop.c (should_replace_address): Add speed attribute.
2651         (PR_OPTIMIZE_FOR_SPEED): New flag.
2652         (propagate_rtx_1): Use it.
2653         (propagate_rtx): Set it.
2654         (try_fwprop_subst): Update call of rtx_costs.
2655         (forward_propagate_and_simplify): LIkewise.
2656         * hooks.c (hook_int_rtx_bool_0): New
2657         (hook_bool_rtx_int_int_intp_false): Replace by ...
2658         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
2659         * hooks.h (hook_int_rtx_bool_0): New
2660         (hook_bool_rtx_int_int_intp_false): Replace by ...
2661         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
2662         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
2663         (prepare_cmp_insn): UPdate call of rtx_cost.
2664         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
2665         (reload_cse_simplify_operands): Update call of rtx_cost.
2666         (reload_cse_move2add): call of rtx_cost.
2667         * target.h (struct gcc_target): Update rtx_costs and address_costs.
2668         * rtlanal.c (rtx_cost): Add speed argument.
2669         (address_cost): Add speed argument
2670         (default_address_cost): Likewise.
2671         (insn_rtx_cost): Likewise.
2672         * cfgloopanal.c (seq_cost): Add speed argument.
2673         (target_reg_cost, target_spill_cost): Turn to array.
2674         (init_set_costs): Update for speed.
2675         (estimate_reg_pressure_cost): Add speed argument.
2676         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
2677         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
2678         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
2679         (seq_cost): Add speed argument.
2680         (computation_cost): Add speed arugment.
2681         (add_cost, multiply_by_const, get_address_cost): add speed argument.
2682         (force_expr_to_var_cost): Update for profile info.
2683         (force_var_cost): Likewise.
2684         (split_address_cost): Likewise.
2685         (ptr_difference_cost): Likewise.
2686         (difference_cost): Likewise.
2687         (get_computation_cost_at): Likewise.
2688         (determine_iv_cost): Likewise.
2689         (ivopts_global_cost_for_size): Likewise.
2690         (rewrite_use_address): Likewise.
2691         (tree_ssa_iv_optimize_loop): Initialize speed field.
2692         * cse.c (optimize_this_for_speed_p): New static var.
2693         (notreg_cost): Update call of rtx_cost.
2694         (cse_extended_basic_block): set optimize_this_for_speed_p.
2695         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
2696         (noce_try_cmove_arith): Likewise.
2697         (noce_try_sign_mask): LIkewise.
2698         * expr.c (compress_float_constant): Update rtx_cost calls.
2699         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
2700         argument.
2701         (addr_to_parts): Likewise.
2702         (create_mem_ref): Likewise.
2703         * dse.c (find_shift_sequence): Add speed argument.
2704         (replace_read): Update call.
2705         * calls.c (precompute_register_parameters): Update call of rtx_cost.
2706         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
2707         * neg_cost, shift_cost, shiftadd_cost,
2708         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
2709         mul_highpart_cost): Increase dimension.
2710         (init_expmed): Initialize for both size and speed.
2711         (expand_shift): Use profile.
2712         (synth_mult): Use profile.
2713         (choose_mult_variant): Use profile.
2714         (expand_mult): Use profile.
2715         (expand_mult_highpart_optab): Use profile.
2716         (expand_mult_highpart): Use profile.
2717         (expand_smod_pow2): Use profile.
2718         (expand_divmod): Use profile.
2719         * simplify-rtx.c (simplify_binary_operation_1): Update call of
2720         rtx_cost.
2721         * loop-invariant.c (create_new_invariant): Use profile.
2722         (gain_for_invariant): Add speed parameter.
2723         (best_gain_for_invariant): Likewise.
2724         (find_invariants_to_move): Likewise.
2725         (move_single_loop_invariants): Set it.
2726         * target-def.h (TARGET_RTX_COSTS): Use hook.
2727         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
2728         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
2729         * output.h (default_address_cost): Update prototype.
2730         * combine.c (optimize_this_for_speed_p): New static var.
2731         (combine_validate_cost): Update call of rtx_cost.
2732         (combine_instructions): Set optimize_this_for_speed_p.
2733         (expand_compound_operation): Update call of rtx_cost.
2734         (make_extraction):Update call of rtx_cost.
2735         (force_to_mode):Update call of rtx_cost.
2736         (distribute_and_simplify_rtx):Update call of rtx_cost.
2737         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
2738         (estimate_reg_pressure_cost): Update prototype.
2739         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
2740         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
2741         Remove.
2742         * config/alpha/alpha.c (alpha_rtx_costs): Update.
2743         (alpha_rtx_costs): Update.
2744         * config/frv/frv.c (frv_rtx_costs): Update.
2745         * config/s390/s390.c (s390_rtx_costs): Update.
2746         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
2747         (m32c_rtx_costs): Update.
2748         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
2749         (spu_rtx_costs): Update.
2750         * config/sparc/sparc.c (sparc_rtx_costs): Update.
2751         * config/m32r/m32r.c (m32r_rtx_costs): Update.
2752         * config/i386/i386.c (:ix86_address_cost): Update.
2753         (ix86_rtx_costs): Update.
2754         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
2755         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
2756         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
2757         * config/crx/crx.c (crx_address_cost): Update.
2758         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
2759         * config/stormy16/stormy16.c
2760         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
2761         * config/m68hc11/m68hc11.c
2762         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
2763         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
2764         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
2765         Update.
2766         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
2767         Update
2768         * config/ia64/ia64.c (ia64_rtx_costs): Update.
2769         * config/m68k/m68k.c (m68k_rtx_costs): Update.
2770         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
2771         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
2772         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
2773         (mcore_rtx_costs): update.
2774         * config/score/score3.c (score3_rtx_costs): Update.
2775         * config/score/score7.c (score7_rtx_costs): Update.
2776         * config/score/score3.h (score3_rtx_costs):Update.
2777         * config/score/score7.h (score7_rtx_costs): Update.
2778         * config/score/score.c (score_rtx_costs): Update.
2779         * config/arm/arm.c (arm_address_cost): Update.
2780         (arm_rtx_costs_1): Update.
2781         (arm_rtx_costs_1): Update.
2782         (arm_size_rtx_costs): Update.
2783         (arm_size_rtx_costs): Update.
2784         (arm_size_rtx_costs): Update.
2785         (arm_xscale_rtx_costs): Update.
2786         (arm_thumb_address_cost): Update.
2787         * config/pa/pa.c (hppa_address_cost): Update.
2788         * config/mips/mips.c (mips_rtx_costs): Update.
2789         * config/vax/vax.c (vax_address_cost): Update.
2790         * config/h8300/h8300.c (h8300_shift_costs): Update.
2791         (h8300_rtx_costs): Update.
2792         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
2793         (v850_rtx_costs): Update.
2794         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
2795         * config/bfin/bfin.c
2796         (bfin_address_cost): Update.
2797         (bfin_rtx_costs): Update.
2798         * stmt.c (lshift_cheap_p): Update.
2799
2800 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2801
2802         PR middle-end/36444
2803         * expmed.c (extract_bit_field_1): Check the mode size to make
2804         sure the vector modes have the same size.
2805
2806 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
2807
2808         * dojump.c (top level): Include basic-block.h to declare
2809         optimize_insn_for_speed_p
2810
2811         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
2812
2813         * opts.h (CL_SAVE): New option class for marking options that are
2814         target specific options usable in the target attribute.
2815         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
2816
2817         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
2818         can easily find the target specific options that are safe to use
2819         in the attribute or pragma.
2820
2821         * attribs.c (decl_attributes): Change #pragma GCC option to
2822         #pragma GCC target, and attribute((option(...))) to
2823         attribute((target(...))).
2824
2825         * doc/extend.texi (target attribute): Change from option
2826         attribute.  Delete push/pop/reset.
2827         (#pragma GCC target): Change from #pragma GCC option.  Delete
2828         push/pop/reset.
2829         (#pragma GCC push_options): Document new pragma.
2830         (#pragma GCC pop_options): Document new pragma.
2831         (#pragma GCC reset_options): Document new pragma.
2832
2833         * targhooks.c (default_target_option_valid_attribute_p): Add
2834         warning about port not supporting target attributes.
2835         (default_target_option_pragma_parse): New function, warn about
2836         #pragma GCC target not being supported.
2837
2838         * targhooks.h (default_target_option_pragma_parse): Add
2839         declaration.
2840
2841         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
2842         TI_CURRENT_OPTION_PRAGMA.
2843         (current_target_pragma): Rename from current_option_pragma.
2844
2845         * target.h: (struct target_option): Delete booleans for changing
2846         the optimization level on hot/cold functions.  Change signature of
2847         pragma_parse hook to take a second tree.
2848
2849         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
2850
2851         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
2852         that the declaration is done at global scope.
2853
2854         * langhooks.c (add_builtin_function_common): Move most of the code
2855         from add_builtin_function here, calling the hook passed in.
2856         (add_builtin_function): Call add_builtin_function_common with
2857         standard builtin hook.
2858         (add_builtin_function_ext_scope): New function to add builtins to
2859         global scope.
2860
2861         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
2862         hook.
2863         (add_builtin_function_ext_scope): Add declaration.
2864
2865         * c-pragma.c (handle_pragma_target): Rename from
2866         handle_pragma_option, #pragma GCC option is now #pragma GCC
2867         target.  Move warning about port not supporting target options to
2868         default pragma parse hook.  Remove push/pop/reset from this
2869         pragma.
2870         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
2871         (option_stack): Delete static variable.
2872         (optimize_stack): Ditto.
2873         (optons_stack): New stack of saved target and optimization
2874         options.
2875         (handle_pragma_push_options): New function to handle pushing both
2876         target and optimization options.
2877         (handle_pragma_pop_options): New function to handle popping both
2878         target and optimization options.
2879         (handle_pragma_reset_options): New function to handle resetting
2880         both target and optimization options to their initial state.
2881         (init_pragma): Rename handle_pragma_option to
2882         handle_pragma_target.  Add support for push_options, pop_options,
2883         and reset_options pragmas.
2884
2885         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
2886         default_target_option_pragma_parse.
2887         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
2888         default_target_option_valid_attribute_p.
2889         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2890         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2891         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
2892         optimization level on hot/cold functions.
2893
2894         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
2895         if the caller and callee have different optimization levels.
2896
2897         * c-common.c (handle_target_attribute): Rename from
2898         handle_option_attribute, attribute((option(...))) is now
2899         attribute((target(...))).  Move warning if the port does not
2900         support target attributes to the default hook.
2901         (handle_hot_attribute): Delete code to change the optimization
2902         level of hot functions.
2903         (handle_cold_attribute): Ditto.
2904
2905         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
2906         argument that is the binary tree options to use if there are no
2907         arguments.  Call ix86_valid_target_attribute_tree instead of
2908         ix86_valid_option_attribute_tree.
2909         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
2910         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
2911         ix86_pragma_option_parse.
2912
2913         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2914         Rename from ix86_valid_option_attribute_tree.
2915
2916         * config/i386/i386.c (ix86_add_new_builtins): New function to add
2917         new builtins when the ISA changes.
2918         (ix86_valid_target_attribute_tree): Rename from
2919         ix86_valid_option_attribute_tree.  Change callers.  If the
2920         function specified optimization options, use those as the starting
2921         point before setting up the target attributes.  If the
2922         optimization options were changed in the course of setting the
2923         target attributes, record the new optimization options.
2924         (ix86_valid_target_attribute_tree_inner_p): Rename from
2925         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
2926         ix86_add_new_builtins if the ISA changed.
2927         (ix86_valid_target_attribute_p): Rename from
2928         ix86_valid_option_attribute_p.  Change callers.
2929         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
2930         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
2931         as delayed builtin functions.
2932         (struct builtin_isa): New structure to record builtin functions
2933         that should be delayed until the ISA for that function is used.
2934         (ix86_builtins_isa): Change from int to struct to track builtin
2935         functions we want to declare at some point.
2936         (def_builtin): If the front end can delay defining the builtin
2937         functions, don't create builtins for ISAs not part of the default
2938         options.
2939         (def_builtin_const): Ditto.
2940         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
2941         __builtin_ia32_pcmov_v2di to be different builtin functions.
2942         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
2943         a structure instead of an int.
2944         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
2945         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
2946         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2947         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2948
2949         * config/ia64/ia64.h
2950         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2951         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2952
2953         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
2954         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
2955         (LANG_HOOKS_INITIALIZER): Add
2956         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
2957
2958 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2959
2960         PR target/37270
2961         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
2962         the reload address with the index register for SFmode
2963         access with a displacement.
2964
2965 2008-08-30  Jan Hubicka  <jh@suse.cz>
2966
2967         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
2968         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
2969         * dojump.c (do_jump): Likewise.
2970         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
2971         (note-if_info): Add BRANCH_COST.
2972         (noce_try_store_flag_constants, noce_try_addcc,
2973         noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
2974         noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
2975         find_if_case_2): Use computed branch cost.
2976         * expr.h (BRANCH_COST): Update default.
2977         * predict.c (predictable_edge_p): New function.
2978         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
2979         Update BRANCH_COST call.
2980         * basic-block.h (predictable_edge_p): Declare.
2981         * config/alpha/alpha.h (BRANCH_COST): Update.
2982         * config/frv/frv.h (BRANCH_COST): Update.
2983         * config/s390/s390.h (BRANCH_COST): Update.
2984         * config/spu/spu.h (BRANCH_COST): Update.
2985         * config/sparc/sparc.h (BRANCH_COST): Update.
2986         * config/m32r/m32r.h (BRANCH_COST): Update.
2987         * config/i386/i386.h (BRANCH_COST): Update.
2988         * config/i386/i386.c (ix86_expand_int_movcc): Update use of
2989         BRANCH_COST.
2990         * config/sh/sh.h (BRANCH_COST): Update.
2991         * config/pdp11/pdp11.h (BRANCH_COST): Update.
2992         * config/avr/avr.h (BRANCH_COST): Update.
2993         * config/crx/crx.h (BRANCH_COST): Update.
2994         * config/xtensa/xtensa.h (BRANCH_COST): Update.
2995         * config/stormy16/stormy16.h (BRANCH_COST): Update.
2996         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
2997         * config/iq2000/iq2000.h (BRANCH_COST): Update.
2998         * config/ia64/ia64.h (BRANCH_COST): Update.
2999         * config/rs6000/rs6000.h (BRANCH_COST): Update.
3000         * config/arc/arc.h (BRANCH_COST): Update.
3001         * config/score/score.h (BRANCH_COST): Update.
3002         * config/arm/arm.h (BRANCH_COST): Update.
3003         * config/pa/pa.h (BRANCH_COST): Update.
3004         * config/mips/mips.h (BRANCH_COST): Update.
3005         * config/vax/vax.h (BRANCH_COST): Update.
3006         * config/h8300/h8300.h (BRANCH_COST): Update.
3007         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
3008         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
3009         * doc/tm.texi (BRANCH_COST): Update.
3010
3011 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
3012
3013         PR target/37283
3014         * config/arm/arm.c (arm_optimization_options): Set
3015         flag_section_anchors to 2 instead of 1 to distinguish it from
3016         -fsection-anchors given explicitely on the command line.
3017
3018 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
3019
3020         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
3021         final insn of a split.
3022
3023 2008-08-30  Jan Hubicka  <jh@suse.cz>
3024
3025         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
3026         optimized for speed.
3027         * final.c (compute_alignments): Use optimize_bb_for_size_p.
3028         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
3029         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
3030         flag_gcse_after_reload_set): New static vars.
3031         (common_handle_option): Enable those flags for profile-use.
3032         (decode_options): Remove optimize_size flags that are handled
3033         on higher granuality.
3034         * tree-vectorizer.c (vectorize_loops): Use
3035         optimize_loop_nest_for_speed_p.
3036         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
3037         * tree-predcom.c (tree_predictive_commoning): Use
3038         optimize_loop_for_speed_p.
3039         * varasm.c (assemble_start_function): Use
3040         optimize_function_for_speed_p.
3041         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
3042         * predict.c (optimize_loop_for_speed_p): Fix walk.
3043
3044 2008-08-30  Jan Hubicka  <jh@suse.cz>
3045
3046         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
3047         functions.
3048         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
3049         profile presence locally.
3050
3051 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
3052
3053         PR bootstrap/37086
3054         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
3055         versions before 4.0.
3056
3057 2008-08-29  Jan Hubicka  <jh@suse.cz>
3058
3059         * tree-inline.c (insert_init_stmt): Insert sequence even when
3060         not in SSA form.
3061
3062 2008-08-29  Jeff Law  <law@redhat.com>
3063
3064         * mn10300.c (mn10300_secondary_reload_class): We need secondary
3065         reloads for AM33-2 if IN is a pseudo with an equivalent memory
3066         location and class is an FP register.
3067
3068 2008-08-29  Jan Hubicka  <jh@suse.cz>
3069
3070         * see.c (see_merge_one_def_extension): Silence used uninitialized
3071         warning.
3072         * matrix-reorg.c (check_allocation_function): Likewise.
3073         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
3074
3075 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
3076
3077         PR c/37261
3078         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
3079         compute new & and | in type rather than TREE_TYPE (arg0).
3080
3081         * dwarf2out.c (fortran_common): Update comment.
3082         (gen_variable_die): Swap com_die and var_die variables in Fortran
3083         COMMON block handling code.
3084
3085         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
3086
3087         * dwarf2out.c (gen_const_die): New function.
3088         (size_of_die, value_format, output_die): Output larger
3089         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
3090         (native_encode_initializer): New function.
3091         (tree_add_const_value_attribute): Call it.
3092         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
3093
3094         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
3095         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
3096         TREE_THIS_VOLATILE to add_type_attribute.
3097
3098         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
3099         types.
3100         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
3101         types.
3102
3103         * dwarf2out.c (loc_by_reference): New function.
3104         (add_location_or_const_value_attribute): Use it.
3105
3106         PR fortran/23057
3107         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
3108         as DW_TAG_variable children of DW_TAG_common_block rather than
3109         DW_TAG_member children.  Put DW_AT_external to individual
3110         DW_TAG_variable DIEs, not to DW_TAG_common_block.
3111
3112         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
3113         loc_descriptor_from_tree_1.
3114
3115         PR fortran/29635
3116         PR fortran/23057
3117         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
3118         arguments to imported_module_or_decl.
3119         (debug_nothing_tree_tree): Removed.
3120         (debug_nothing_tree_tree_tree_bool): New prototype.
3121         * debug.c (do_nothing_debug_hooks): Adjust.
3122         (debug_nothing_tree_tree): Removed.
3123         (debug_nothing_tree_tree_tree_bool): New function.
3124         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
3125         (gen_variable_die): Put all common vars for the
3126         same COMMON block under one DW_TAG_common_block.
3127         (declare_in_namespace): Return new context_die, for Fortran
3128         return the module DIE instead of adding extra declarations into
3129         the namespace.
3130         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
3131         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
3132         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
3133         DW_AT_declaration.
3134         (dwarf2out_global_decl): Don't skip Fortran global vars.
3135         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
3136         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
3137         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
3138         DW_TAG_imported_declaration as child of previous
3139         DW_TAG_imported_module.
3140         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
3141         * sdbout.c (sdb_debug_hooks): Likewise.
3142         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3143
3144 2008-08-29  Jan Hubicka  <jh@suse.cz>
3145
3146         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
3147
3148         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
3149         * ipa-cp.c (n_cloning_candidates): New static variable.
3150         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
3151         (ipcp_print_all_lattices): Improve debug output.
3152         (ipcp_cloning_candidate_p): New function.
3153         (ipcp_initialize_node_lattices): Use it.
3154         (ipcp_init_stage): Do only analyzis here; prettier debug output.
3155         (ipcp_propagate_stage): Prettier debug output.
3156         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
3157         (ipcp_print_all_structures): Remove.
3158         (ipcp_need_redirect_p): Test !n_cloning_candidates.
3159         (ipcp_insert_stage): Prettier debug output; call
3160         cgraph_remove_unreachable_nodes before propagating.
3161         (pass_ipa_cp): Schedule function removal pass.
3162         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
3163         debug output.
3164         (cgraph_maybe_hot_edge_p): Move to ...
3165         * predict.c (cgraph_maybe_hot_edge_p) ... here.
3166         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
3167         (common_handle_option): Set them; enable ipa-cp when profiling.
3168         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
3169         (ipa_print_all_jump_functions): Likewise.
3170         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
3171         (ipa_print_node_params, ipa_print_all_params): New.
3172         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
3173         ipa_print_all_param_flags): Remove.
3174         (ipa_print_node_params, ipa_print_all_params): New.
3175
3176 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
3177
3178         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
3179         change from 2008-04-03.
3180         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
3181
3182 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
3183
3184         PR rtl-opt/37251
3185         * ira-color.c (push_allocnos_to_stack): Truncate
3186         removed_splay_allocno_vec.
3187
3188 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
3189
3190         PR rtl-opt/37243
3191         * ira-color (ira_fast_allocation): Don't assign hard registers to
3192         global allocnos.
3193
3194 2008-08-29  Jan Hubicka  <jh@suse.cz>
3195
3196         PR middle-end/37278
3197         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
3198         for cold internal loops.
3199
3200 2008-08-29  Richard Guenther  <rguenther@suse.de>
3201
3202         * tree-ssa-structalias.c (create_variable_info_for): Do not
3203         create fields for heap vars or vars with a noalias state.
3204         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
3205         from ESCAPED.
3206
3207 2008-08-29  Richard Guenther  <rguenther@suse.de>
3208
3209         * common.opt (ftree-store-ccp): Mark as preserved for
3210         backward compatibility.
3211         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
3212         * tree-pass.h (pass_store_ccp): Remove.
3213         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
3214         (first_vdef): Remove declaration.
3215         (get_value_loaded_by): Likewise.
3216         * tree-ssa-ccp.c (do_store_ccp): Remove.
3217         (get_default_value): Simplify as do_store_ccp is always false
3218         now.  Do not initialize mem_ref.
3219         (set_value_varying): Likewise.
3220         (canonicalize_float_value): Likewise.
3221         (set_lattice_value): Likewise.
3222         (likely_value): Likewise.
3223         (surely_varying_stmt_p): Likewise.
3224         (ccp_initialize): Likewise.
3225         (ccp_lattice_meet): Likewise.
3226         (ccp_visit_phi_node): Likewise.
3227         (ccp_fold): Likewise.
3228         (evaluate_stmt): Likewise.
3229         (visit_assignment): Likewise.
3230         (ccp_visit_stmt): Likewise.
3231         (execute_ssa_ccp): Fold into ...
3232         (do_ssa_ccp): ... this.
3233         (do_ssa_store_ccp): Remove.
3234         (gate_store_ccp): Likewise.
3235         (pass_store_ccp): Likewise.
3236         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
3237         initialize mem_ref.
3238         * tree-ssa-propagate.c (first_vdef): Remove.
3239         (get_value_loaded_by): Likewise.
3240         (replace_vuses_in): Likewise.
3241         (substitute_and_fold): Do not call replace_vuses_in.
3242         * opts.c (decode_options): Do not set flag_tree_store_ccp.
3243
3244 2008-08-29  Richard Guenther  <rguenther@suse.de>
3245
3246         PR middle-end/37236
3247         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
3248         PARAM_NOALIAS tags with is_heapvar.
3249         * tree-ssa-operands.c (access_can_touch_variable): Offset
3250         based tests do not apply for heapvars.  Fix offset test.
3251
3252 2008-08-29  Jan Hubicka  <jh@suse.cz>
3253
3254         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
3255         (-fipa-cp-clone): Enabled by default at -O3.
3256         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
3257         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
3258
3259 2008-08-29  Jan Hubicka  <jh@suse.cz>
3260
3261         * tree.c (build_function_type_skip_args,
3262         build_function_decl_skip_args): New functions.
3263         * tree.h (build_function_type_skip_args,
3264         build_function_decl_skip_args): Declare.
3265         * gimple.c (giple_copy_call_skip_args): New function.
3266         (giple_copy_call_skip_args): Declare.
3267
3268         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
3269         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
3270         (ipcp_node_modifiable_p): ... this one; use
3271         tree_versionable_function_p.
3272         (ipcp_create_replace_map): Improve debug output.
3273         (ipcp_need_redirect_p): Return false when not clonning.
3274         (ipcp_update_callgraph): Skip args.
3275         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
3276         skip args.
3277         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
3278         (save_inline_function_body): Update call of tree_function_versioning.
3279         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
3280         * tree-inline.c (copy_arguments_for_versioning): Add skip_args
3281         argument.
3282         (tree_function_versioning): Likewise.
3283         * tree-inline.h (tree_function_versioning): Update prototype.
3284
3285 2008-08-29  Jan Hubicka  <jh@suse.cz>
3286
3287         * loop-unswitch.c (unswitch_single_loop): Use
3288         optimize_loop_for_speed_p.
3289         * tree-ssa-threadupdate.c (mark_threaded_blocks):
3290         Use optimize_function_for_size_p.
3291         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
3292         * postreload-gcse.c (eliminate_partially_redundant_load):
3293         Use optimize_bb_for_size_p.
3294         * value-prof.c (gimple_divmod_fixed_value_transform,
3295         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
3296         gimple_stringops_transform): Use optimize_bb_for_size_p.
3297         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
3298         * final.c (compute_alignments): Use optimize_function_for_size_p.
3299         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
3300         (fold_builtin_strcpy, fold_builtin_fputs): Use
3301         optimize_function_for_size_p.
3302         * fold-const.c (tree_swap_operands_p): Use
3303         optimize_function_for_size_p.
3304         * recog.c (relax_delay_slots): Likewise.
3305         * tree-ssa-math-opts.c (replace_reciprocal):
3306         Use optimize_bb_for_speed_p.
3307         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
3308         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
3309         optimize_function_for_size_p.
3310         (cgraph_decide_inlining_of_small_function): Use
3311         optimize_function_for_size_p.
3312         * global.c (find_reg): Use optimize_function_for_size_p.
3313         * opts.c (decode_options): Do not clear flag_tree_ch,
3314         flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
3315         flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
3316         work it out from profile.
3317         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
3318         optimize_loop_for_speed_p.
3319         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
3320         Constify argument.
3321         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
3322         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
3323         * tree-eh.c (decide_copy_try_finally): Use
3324         optimize_function_for_size_p.
3325         * local-alloc.c (block_alloc): Pass BB pointer.
3326         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
3327         * gcse.c (gcse_main): Use optimize_function_for_size_p.
3328         * loop-unroll.c (decide_unrolling_and_peeling):
3329         Use optimize_loop_for_size_p.
3330         (decide_peel_completely): Likewise.
3331         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
3332         optimize_loop_for_size_p.
3333         (vect_enhance_data_refs_alignment): Likewise.
3334         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
3335         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
3336         Update call.
3337         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
3338         (try_crossjump_bb): Use optimize_bb_for_size_p.
3339         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
3340         optimize_loop_for_speed_p.
3341         * bb-reorder.c (find_traces_1_round): Likewise.
3342         (copy_bb): Use optimize_bb_for_speed_p.
3343         (duplicate_computed_gotos): Likewise.
3344         * basic-block.h (optimize_loop_nest_for_size_p,
3345         optimize_loop_nest_for_speed_p): New.
3346         * stmt.c (expand_case): Use optimize_insn_for_size_p.
3347
3348 2008-08-29  Tristan Gingold  <gingold@adacore.com>
3349
3350         * gcov.c (main): Call expandargv.
3351
3352 2008-08-29  Jan Hubicka  <jh@suse.cz>
3353
3354         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
3355         is not cold.
3356         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
3357         Constify arguments.
3358         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
3359         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
3360         Constify.
3361         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
3362
3363 2008-08-29  Jan Hubicka  <jh@suse.cz>
3364
3365         * tree-pass.h (pass_strip_predict_hints): Declare.
3366         * predict.c (strip_builtin_expect): Rename to ...
3367         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
3368         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
3369         (tree_estimate_probability): Do not strip builtin_expect.
3370         (pass_strip_predict_hints): New pass.
3371         * tree-inline.c (expand_call_inline): When inlining cold function,
3372         predict it as unlikely.
3373         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
3374
3375 2008-08-29  Richard Guenther  <rguenther@suse.de>
3376
3377         PR tree-optimization/37207
3378         * tree-vrp.c (extract_range_from_binary_expr): Also try
3379         to constant fold if only one of the operands is a constant.
3380
3381 2008-08-29  Nick Clifton  <nickc@redhat.com>
3382
3383         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
3384         the same way as SYMBOL_REFs.
3385
3386 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
3387
3388         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
3389
3390 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
3391
3392         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
3393         * config/mips/mips.md (branch_likely): Remove const.  Fix
3394         comment formatting.
3395         (define_delay for type "branch"): Change to only apply for branch
3396         with likely variant.
3397         (define_delay for type "branch" and "branch_likely" no).  New delay
3398         definition.
3399         (equality_op): New code iterator.
3400         (bbv, bbinv): New code attributes.
3401         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
3402         patterns.
3403
3404 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3405             Andrew Pinski  <pinskia@gcc.gnu.org>
3406
3407         PR 18050
3408         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
3409
3410 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
3411
3412         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
3413         rule that a symbolic constant must be defined and >= 0 for the
3414         corresponding facility to be present at compile-time.
3415         * gthr-posix.c: Likewise.
3416
3417 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
3418
3419         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
3420         * config/mips/mips.md (D): New mode attribute.
3421         (mulsi3, muldi3): Merge it into ...
3422         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op patterns.
3423         (muldi3_mul3): New pattern.
3424         (mulsi3_mult3): Rename to mulsi3_mul3.
3425
3426 2008-08-28  Jan Hubicka  <jh@suse.cz>
3427
3428         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
3429         to fail.
3430         * predict.c (always_optimize_for_size_p): Rename to ...
3431         (optimize_function_for_size): ... this one; make extern.
3432         (optimize_function_for_speed_p): New.
3433         (optimize_bb_for_size_p, optimize_bb_for_size_p,
3434         optimize_edge_for_size_p,optimize_edge_for_size_p,
3435         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
3436         * basic-block.h (optimize_function_for_size_p,
3437         optimize_function_for_speed_p): Declare.
3438         * i386.md (optimize_size checks): Replace them by appropriate
3439         predicate.
3440         (standard_80387_constant_p, ix86_compute_frame_layout,
3441         ix86_expand_epilogue, ix86_decompose_address,
3442         print_operand, emit_i387_cw_initialization,
3443         inline_memory_move_cost, ix86_pad_returns,
3444         ix86_reorg): Replace optimize_size checks.
3445
3446 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
3447
3448         * rtl.h (simplify_subreg_regno): Declare.
3449         * rtlanal.c (simplify_subreg_regno): New function, split out from...
3450         * simplify-rtx.c (simplify_subreg): ...here.
3451         * reload.c (find_reloads): Use simplify_subreg_regno instead of
3452         subreg_offset_representable_p.
3453
3454 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3455
3456         PR c/30949
3457         * c-typeck.c (convert_for_assignment): Give a note describing what
3458         was passed and what was expected.
3459
3460 2008-08-28  Joey Ye  <joey.ye@intel.com>
3461
3462         * doc/extend.texi: Document AVX built-in functions.
3463         * doc/invoke.texi: Document -mavx.
3464
3465 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
3466             Joey Ye  <joey.ye@intel.com>
3467             Xuepeng Guo  <xuepeng.guo@intel.com>
3468
3469         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
3470
3471         * config/i386/cpuid.h (bit_FMA): New.
3472         (bit_XSAVE): Likewise.
3473         (bit_OSXSAVE): Likewise.
3474         (bit_AVX): Likewise.
3475
3476         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
3477         define.  Use ASM_OUTPUT_AVX_PREFIX.
3478
3479         * config/i386/gmmintrin.h: New.
3480
3481         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
3482         (OPTION_MASK_ISA_AVX_SET): New.
3483         (OPTION_MASK_ISA_FMA_SET): Likewise.
3484         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
3485         (OPTION_MASK_ISA_FMA_SET): Likewise.
3486         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
3487         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
3488         (pta_flags): Add PTA_AVX and PTA_FMA.
3489         (override_options): Handle PTA_AVX and PTA_FMA.
3490         (init_cumulative_args): Handle warn_avx.
3491         (classify_argument): Return 0 for COImode and OImode.  Return
3492         1 and X86_64_AVX_CLASS for 256bit vector types.
3493         (examine_argument): Handle X86_64_AVX_CLASS.
3494         (construct_container): Likewise.
3495         (function_arg_advance_32): Pass OImode and 256bit vector types
3496         in AVX register.
3497         (function_arg_advance_64): Take a new argument to indicate if a
3498         parameter is named.  Handle 256bit vector types.  Return
3499         immediately for unnamed 256bit vector mode parameters.
3500         (function_arg_advance): Updated.
3501         (function_arg_32): Add comments for TImode.  Handle OImode
3502         and 256bit vector types.
3503         (function_arg_64): Take a new argument to indicate if a
3504         parameter is named.  Handle 256bit vector types.  Return NULL
3505         for unnamed 256bit vector mode parameters.
3506         (function_arg): Updated.
3507         (setup_incoming_varargs_64): Support
3508         AVX encoding for *sse_prologue_save_insn.
3509         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
3510         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
3511         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
3512         enabled, otherwise return -3.
3513         (standard_sse_constant_opcode): Handle AVX and 256bit vector
3514         modes.
3515         (print_reg): Support AVX registers.  Handle 'x' and 't'.
3516         Handle 'd' to duplicate the operand.
3517         (print_operand): Likewise.  Also support AVX vector compare
3518         instructions.
3519         (output_387_binary_op): Support AVX.
3520         (output_fp_compare): Likewise.
3521         (ix86_expand_vector_move_misalign): Likewise.
3522         (ix86_attr_length_vex_default): New.
3523         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
3524         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
3525         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
3526         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
3527         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
3528         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
3529         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
3530         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
3531         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
3532         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
3533         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
3534         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
3535         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
3536         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
3537         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
3538         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
3539         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
3540         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
3541         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
3542         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
3543         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
3544         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
3545         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
3546         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
3547         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
3548         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
3549         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
3550         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
3551         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
3552         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
3553         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
3554         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
3555         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
3556         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
3557         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
3558         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
3559         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
3560         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
3561         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
3562         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
3563         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
3564         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
3565         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
3566         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
3567         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
3568         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
3569         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
3570         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
3571         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
3572         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
3573         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
3574         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
3575         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
3576         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
3577         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
3578         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
3579         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
3580         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
3581         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
3582         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
3583         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
3584         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
3585         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
3586         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
3587         and IX86_BUILTIN_MOVMSKPS256,
3588         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
3589         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
3590         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
3591         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
3592         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
3593         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
3594         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
3595         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
3596         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
3597         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
3598         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
3599         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
3600         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
3601         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
3602         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
3603         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
3604         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
3605         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
3606         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
3607         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
3608         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
3609         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
3610         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
3611         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
3612         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
3613         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
3614         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
3615         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
3616         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
3617         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
3618         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
3619         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
3620         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
3621         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
3622         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
3623         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
3624         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
3625         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
3626         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
3627         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
3628         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
3629         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
3630         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
3631         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
3632         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
3633         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
3634         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
3635         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
3636         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
3637         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
3638         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
3639         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
3640         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
3641         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
3642         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
3643         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
3644         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
3645         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
3646         IX86_BUILTIN_CMPPS,
3647         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
3648         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
3649         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
3650         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
3651         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
3652         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
3653         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
3654         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
3655         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
3656         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
3657         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
3658         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
3659         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
3660         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
3661         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
3662         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
3663         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
3664         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
3665         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
3666         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
3667         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
3668         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
3669         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
3670         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
3671         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
3672         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
3673         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
3674         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
3675         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
3676         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
3677         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
3678         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
3679         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
3680         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
3681         IX86_BUILTIN_MOVMSKPS256.
3682         (ix86_init_mmx_sse_builtins): Support AVX builtins.
3683         (ix86_expand_args_builtin): Likewise.
3684         (ix86_expand_special_args_builtin): Likewise.
3685         (ix86_hard_regno_mode_ok): Handle AVX modes.
3686         (ix86_expand_vector_init_duplicate): Likewise.
3687         (ix86_expand_vector_init_one_nonzero): Likewise.
3688         (ix86_expand_vector_init_one_var): Likewise.
3689         (ix86_expand_vector_init_concat): Likewise.
3690         (ix86_expand_vector_init_general): Likewise.
3691         (ix86_expand_vector_set): Likewise.
3692         (ix86_vector_mode_supported_p): Likewise.
3693         (x86_extended_reg_mentioned_p): Check INSN_P before using
3694         PATTERN.
3695
3696         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3697         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
3698
3699         * config/i386/i386.h (TARGET_AVX): New.
3700         (TARGET_FMA): Likewise.
3701         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
3702         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
3703         (VALID_AVX256_REG_MODE): New.
3704         (AVX256_VEC_FLOAT_MODE_P): Likewise.
3705         (AVX_FLOAT_MODE_P): Likewise.
3706         (AVX128_VEC_FLOAT_MODE_P): Likewise.
3707         (AVX256_VEC_FLOAT_MODE_P): Likewise.
3708         (AVX_VEC_FLOAT_MODE_P): Likewise.
3709         (ASM_OUTPUT_AVX_PREFIX): Likewise.
3710         (ASM_OUTPUT_OPCODE): Likewise.
3711         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
3712         support.
3713         (SSE_REG_MODE_P): Allow 256bit vector modes.
3714         (ix86_args): Add a warn_avx field.
3715
3716         * config/i386/i386.md (UNSPEC_PCMP): New.
3717         (UNSPEC_VPERMIL): Likewise.
3718         (UNSPEC_VPERMIL2): Likewise.
3719         (UNSPEC_VPERMIL2F128): Likewise.
3720         (UNSPEC_MASKLOAD): Likewise.
3721         (UNSPEC_MASKSTORE): Likewise.
3722         (UNSPEC_CAST): Likewise.
3723         (UNSPEC_VTESTP): Likewise.
3724         (UNSPECV_VZEROALL): Likewise.
3725         (UNSPECV_VZEROUPPER): Likewise.
3726         (XMM0_REG): Likewise.
3727         (XMM1_REG): Likewise.
3728         (XMM2_REG): Likewise.
3729         (XMM3_REG): Likewise.
3730         (XMM4_REG): Likewise.
3731         (XMM5_REG): Likewise.
3732         (XMM6_REG): Likewise.
3733         (XMM8_REG): Likewise.
3734         (XMM9_REG): Likewise.
3735         (XMM10_REG): Likewise.
3736         (XMM11_REG): Likewise.
3737         (XMM12_REG): Likewise.
3738         (XMM13_REG): Likewise.
3739         (XMM14_REG): Likewise.
3740         (XMM15_REG): Likewise.
3741         (prefix): Likewise.
3742         (prefix_vex_imm8): Likewise.
3743         (prefix_vex_w): Likewise.
3744         (length_vex): Likewise.
3745         (maxmin): Likewise.
3746         (movoi): Likewise.
3747         (*avx_ashlti3): Likewise.
3748         (*avx_lshrti3): Likewise.
3749         (*avx_setcc<mode>): Likewise.
3750         (*fop_<mode>_comm_mixed_avx): Likewise.
3751         (*fop_<mode>_comm_avx): Likewise.
3752         (*fop_<mode>_1_mixed_avx): Likewise.
3753         (*fop_<mode>_1_avx): Likewise.
3754         (*avx_<code><mode>3): Likewise.
3755         (*avx_ieee_smin<mode>3): Likewise.
3756         (*avx_ieee_smax<mode>3): Likewise.
3757         (mode): Add OI, V8SF and V4DF.
3758         (length): Support VEX prefix.
3759         (*cmpfp_i_mixed): Set prefix attribute.
3760         (*cmpfp_i_sse): Likewise.
3761         (*cmpfp_iu_mixed): Likewise.
3762         (*cmpfp_iu_sse): Likewise.
3763         (*movsi_1): Support AVX.
3764         (*movdi_2): Likewise.
3765         (*movdi_1_rex64): Likewise.
3766         (*movti_internal): Likewise.
3767         (*movti_rex64): Likewise.
3768         (*movsf_1): Likewise.
3769         (*movdf_nointeger): Likewise.
3770         (*movdf_integer_rex64): Likewise.
3771         (*movtf_internal): Likewise.
3772         (zero_extendsidi2_32): Likewise.
3773         (zero_extendsidi2_rex64): Likewise.
3774         (*extendsfdf2_mixed): Likewise.
3775         (*extendsfdf2_sse): Likewise.
3776         (*truncdfsf_fast_mixed): Likewise.
3777         (*truncdfsf_fast_sse): Likewise.
3778         (*truncdfsf_mixed): Likewise.
3779         (fix_trunc<mode>di_sse): Likewise.
3780         (fix_trunc<mode>si_sse): Likewise.
3781         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
3782         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
3783         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
3784         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
3785         (*rcpsf2_sse): Likewise.
3786         (*rsqrtsf2_sse): Likewise.
3787         (*sqrt<mode>2_sse): Likewise.
3788         (sse4_1_round<mode>2): Likewise.
3789         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
3790         Support AVX.  Set length attribute properly for AVX.
3791
3792         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
3793         (VECTOR_MODES (FLOAT, 32)): Likewise.
3794         (VECTOR_MODE (INT, DI, 8)): Likewise.
3795         (VECTOR_MODE (INT, HI, 32)): Likewise.
3796         (VECTOR_MODE (INT, QI, 64)): Likewise.
3797         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
3798         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
3799         (VECTOR_MODE (INT, DI, 4)): Removed.
3800         (VECTOR_MODE (INT, SI, 8)): Likewise.
3801         (VECTOR_MODE (INT, HI, 16)): Likewise.
3802         (VECTOR_MODE (INT, QI, 32)): Likewise.
3803         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
3804         (INT_MODE (OI, 32)): Likewise.
3805
3806         * config/i386/i386.opt (mavx): New.
3807         (mfma): Likewise.
3808
3809         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
3810
3811         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
3812         (*mov<mode>_internal_avx): New.
3813         (*movv2sf_internal_rex64_avx): Likewise.
3814         (*movv2sf_internal_avx): Likewise.
3815
3816         * config/i386/predicates.md (const_4_to_5_operand): New.
3817         (const_6_to_7_operand): Likewise.
3818         (const_8_to_11_operand): Likewise.
3819         (const_12_to_15_operand): Likewise.
3820         (avx_comparison_float_operator): Likewise.
3821
3822         * config/i386/sse.md (AVX256MODEI): New.
3823         (AVX256MODE): Likewise.
3824         (AVXMODEQI): Likewise.
3825         (AVXMODE): Likewise.
3826         (AVX256MODEF2P): Likewise.
3827         (AVX256MODE2P): Likewise.
3828         (AVX256MODE4P): Likewise.
3829         (AVX256MODE8P): Likewise.
3830         (AVXMODEF2P): Likewise.
3831         (AVXMODEF4P): Likewise.
3832         (AVXMODEDCVTDQ2PS): Likewise.
3833         (AVXMODEDCVTPS2DQ): Likewise.
3834         (avxvecmode): Likewise.
3835         (avxvecpsmode): Likewise.
3836         (avxhalfvecmode): Likewise.
3837         (avxscalarmode): Likewise.
3838         (avxcvtvecmode): Likewise.
3839         (avxpermvecmode): Likewise.
3840         (avxmodesuffixf2c): Likewise.
3841         (avxmodesuffixp): Likewise.
3842         (avxmodesuffixs): Likewise.
3843         (avxmodesuffix): Likewise.
3844         (vpermilbits): Likewise.
3845         (pinsrbits): Likewise.
3846         (mov<mode>): Likewise.
3847         (*mov<mode>_internal): Likewise.
3848         (push<mode>1): Likewise.
3849         (movmisalign<mode>): Likewise.
3850         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3851         (avx_movdqu<avxmodesuffix>): Likewise.
3852         (avx_lddqu<avxmodesuffix>): Likewise.
3853         (<plusminus_insn><mode>3): Likewise.
3854         (*avx_<plusminus_insn><mode>3): Likewise.
3855         (*avx_vm<plusminus_insn><mode>3): Likewise.
3856         (mul<mode>3): Likewise.
3857         (*avx_mul<mode>3): Likewise.
3858         (*avx_vmmul<mode>3): Likewise.
3859         (divv8sf3): Likewise.
3860         (divv4df3): Likewise.
3861         (avx_div<mode>3): Likewise.
3862         (*avx_div<mode>3): Likewise.
3863         (*avx_vmdiv<mode>3): Likewise.
3864         (avx_rcpv8sf2): Likewise.
3865         (*avx_vmrcpv4sf2): Likewise.
3866         (sqrtv8sf2): Likewise.
3867         (avx_sqrtv8sf2): Likewise.
3868         (*avx_vmsqrt<mode>2): Likewise.
3869         (rsqrtv8sf2): Likewise.
3870         (avx_rsqrtv8sf2): Likewise.
3871         (*avx_vmrsqrtv4sf2): Likewise.
3872         (<code><mode>3): Likewise.
3873         (*avx_<code><mode>3_finite): Likewise.
3874         (*avx_<code><mode>3): Likewise.
3875         (*avx_vm<code><mode>3): Likewise.
3876         (*avx_ieee_smin<mode>3): Likewise.
3877         (*avx_ieee_smax<mode>3): Likewise.
3878         (avx_addsubv8sf3): Likewise.
3879         (avx_addsubv4df3): Likewise.
3880         (*avx_addsubv4sf3): Likewise.
3881         (*avx_addsubv2df3): Likewise.
3882         (avx_h<plusminus_insn>v4df3): Likewise.
3883         (avx_h<plusminus_insn>v8sf3): Likewise.
3884         (*avx_h<plusminus_insn>v4sf3): Likewise.
3885         (*avx_h<plusminus_insn>v2df3): Likewise.
3886         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
3887         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
3888         (*avx_maskcmp<mode>3): Likewise.
3889         (avx_nand<mode>3): Likewise.
3890         (*avx_<code><mode>3): Likewise.
3891         (*avx_nand<mode>3): Likewise.
3892         (*avx_<code><mode>3): Likewise.
3893         (*avx_cvtsi2ss): Likewise.
3894         (*avx_cvtsi2ssq): Likewise.
3895         (*avx_cvtsi2sd): Likewise.
3896         (*avx_cvtsi2sdq): Likewise.
3897         (*avx_cvtsd2ss): Likewise.
3898         (avx_cvtss2sd): Likewise.
3899         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
3900         (avx_cvtps2dq<avxmodesuffix>): Likewise.
3901         (avx_cvttps2dq<avxmodesuffix>): Likewise.
3902         (*avx_cvtsi2sd): Likewise.
3903         (*avx_cvtsi2sdq): Likewise.
3904         (avx_cvtdq2pd256): Likewise.
3905         (avx_cvtpd2dq256): Likewise.
3906         (avx_cvttpd2dq256): Likewise.
3907         (*avx_cvtsd2ss): Likewise.
3908         (*avx_cvtss2sd): Likewise.
3909         (avx_cvtpd2ps256): Likewise.
3910         (avx_cvtps2pd256): Likewise.
3911         (*avx_movhlps): Likewise.
3912         (*avx_movlhps): Likewise.
3913         (avx_unpckhps256): Likewise.
3914         (*avx_unpckhps): Likewise.
3915         (avx_unpcklps256): Likewise.
3916         (*avx_unpcklps): Likewise.
3917         (avx_movshdup256): Likewise.
3918         (avx_movsldup256): Likewise.
3919         (avx_shufps256): Likewise.
3920         (avx_shufps256_1): Likewise.
3921         (*avx_shufps_<mode>): Likewise.
3922         (*avx_loadhps): Likewise.
3923         (*avx_storelps): Likewise.
3924         (*avx_loadlps): Likewise.
3925         (*avx_movss): Likewise.
3926         (*vec_dupv4sf_avx): Likewise.
3927         (*vec_concatv2sf_avx): Likewise.
3928         (*vec_concatv4sf_avx): Likewise.
3929         (*vec_setv4sf_0_avx): Likewise.
3930         (*vec_setv4sf_avx): Likewise.
3931         (*avx_insertps): Likewise.
3932         (avx_vextractf128<mode>): Likewise.
3933         (vec_extract_lo_<mode>): Likewise.
3934         (vec_extract_hi_<mode>): Likewise.
3935         (vec_extract_lo_<mode>): Likewise.
3936         (vec_extract_hi_<mode>): Likewise.
3937         (vec_extract_lo_v16hi): Likewise.
3938         (vec_extract_hi_v16hi): Likewise.
3939         (vec_extract_lo_v32qi): Likewise.
3940         (vec_extract_hi_v32qi): Likewise.
3941         (avx_unpckhpd256): Likewise.
3942         (*avx_unpckhpd): Likewise.
3943         (avx_movddup256): Likewise.
3944         (*avx_movddup): Likewise.
3945         (avx_unpcklpd256): Likewise.
3946         (*avx_unpcklpd): Likewise.
3947         (avx_shufpd256): Likewise.
3948         (avx_shufpd256_1): Likewise.
3949         (*avx_punpckhqdq): Likewise.
3950         (*avx_punpcklqdq): Likewise.
3951         (*avx_shufpd_<mode>): Likewise.
3952         (*avx_storehpd): Likewise.
3953         (*avx_loadhpd): Likewise.
3954         (*avx_loadlpd): Likewise.
3955         (*avx_movsd): Likewise.
3956         (*vec_concatv2df_avx): Likewise.
3957         (*avx_<plusminus_insn><mode>3): Likewise.
3958         (*avx_<plusminus_insn><mode>3): Likewise.
3959         (*avx_mulv8hi3): Likewise.
3960         (*avxv8hi3_highpart): Likewise.
3961         (*avx_umulv8hi3_highpart): Likewise.
3962         (*avx_umulv2siv2di3): Likewise.
3963         (*avx_mulv2siv2di3): Likewise.
3964         (*avx_pmaddwd): Likewise.
3965         (*avx_mulv4si3): Likewise.
3966         (*avx_ashr<mode>3): Likewise.
3967         (*avx_lshr<mode>3): Likewise.
3968         (*avx_ashl<mode>3): Likewise.
3969         (*avx_<code><mode>3): Likewise.
3970         (*avx_eq<mode>3): Likewise.
3971         (*avx_gt<mode>3): Likewise.
3972         (*avx_nand<mode>3): Likewise.
3973         (*avx_nand<mode>3): Likewise.
3974         (*avx_<code><mode>3): Likewise.
3975         (*avx_<code><mode>3): Likewise.
3976         (*avx_packsswb): Likewise.
3977         (*avx_packssdw): Likewise.
3978         (*avx_packuswb): Likewise.
3979         (*avx_punpckhbw): Likewise.
3980         (*avx_punpcklbw): Likewise.
3981         (*avx_punpckhwd): Likewise.
3982         (*avx_punpcklwd): Likewise.
3983         (*avx_punpckhdq): Likewise.
3984         (*avx_punpckldq): Likewise.
3985         (*avx_pinsr<avxmodesuffixs>): Likewise.
3986         (*avx_pinsrq): Likewise.
3987         (*avx_loadld): Likewise.
3988         (*vec_extractv2di_1_rex64_avx): Likewise.
3989         (*vec_extractv2di_1_avx): Likewise.
3990         (*vec_dupv2di_avx): Likewise.
3991         (*vec_concatv2si_avx): Likewise.
3992         (*vec_concatv4si_1_avx): Likewise.
3993         (*vec_concatv2di_avx): Likewise.
3994         (*vec_concatv2di_rex64_avx): Likewise.
3995         (*avx_uavgv16qi3): Likewise.
3996         (*avx_uavgv8hi3): Likewise.
3997         (*avx_psadbw): Likewise.
3998         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
3999         (*avx_phaddwv8hi3): Likewise.
4000         (*avx_phadddv4si3): Likewise.
4001         (*avx_phaddswv8hi3): Likewise.
4002         (*avx_phsubwv8hi3): Likewise.
4003         (*avx_phsubdv4si3): Likewise.
4004         (*avx_phsubswv8hi3): Likewise.
4005         (*avx_pmaddubsw128): Likewise.
4006         (*avx_pmulhrswv8hi3): Likewise.
4007         (*avx_pshufbv16qi3): Likewise.
4008         (*avx_psign<mode>3): Likewise.
4009         (*avx_palignrti): Likewise.
4010         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4011         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4012         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4013         (*avx_mpsadbw): Likewise.
4014         (*avx_packusdw): Likewise.
4015         (*avx_pblendvb): Likewise.
4016         (*avx_pblendw): Likewise.
4017         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4018         (avx_ptest256): Likewise.
4019         (avx_roundp<avxmodesuffixf2c>256): Likewise.
4020         (*avx_rounds<ssemodesuffixf2c>): Likewise.
4021         (*avx_aesenc): Likewise.
4022         (*avx_aesenclast): Likewise.
4023         (*avx_aesdec): Likewise.
4024         (*avx_aesdeclast): Likewise.
4025         (avx_vzeroupper): Likewise.
4026         (avx_vzeroupper_rex64): Likewise.
4027         (avx_vpermil<mode>): Likewise.
4028         (avx_vpermilvar<mode>3): Likewise.
4029         (avx_vpermil2<mode>3): Likewise.
4030         (avx_vperm2f128<mode>3): Likewise.
4031         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4032         (avx_vbroadcastss256): Likewise.
4033         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
4034         (avx_vinsertf128<mode>): Likewise.
4035         (vec_set_lo_<mode>): Likewise.
4036         (vec_set_hi_<mode>): Likewise.
4037         (vec_set_lo_<mode>): Likewise.
4038         (vec_set_hi_<mode>): Likewise.
4039         (vec_set_lo_v16hi): Likewise.
4040         (vec_set_hi_v16hi): Likewise.
4041         (vec_set_lo_v32qi): Likewise.
4042         (vec_set_hi_v32qi): Likewise.
4043         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4044         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
4045         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4046         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
4047         (vec_init<mode>): Likewise.
4048         (*vec_concat<mode>_avx): Likewise.
4049         (blendbits): Support V8SF and V4DF.
4050         (sse2_movq128): Support AVX.
4051         (<sse>_movnt<mode>): Likewise.
4052         (sse2_movntv2di): Likewise.
4053         (sse_rcpv4sf2): Likewise.
4054         (sse_sqrtv4sf2): Likewise.
4055         (sse_rsqrtv4sf2): Likewise.
4056         (<sse>_comi): Likewise.
4057         (<sse>_ucomi): Likewise.
4058         (sse_cvtss2si): Likewise.
4059         (sse_cvtss2si_2): Likewise.
4060         (sse_cvtss2siq): Likewise.
4061         (sse_cvtss2siq_2): Likewise.
4062         (sse_cvttss2si): Likewise.
4063         (sse_cvttss2siq): Likewise.
4064         (sse2_cvtsd2si): Likewise.
4065         (sse2_cvtsd2si_2): Likewise.
4066         (sse2_cvtsd2siq): Likewise.
4067         (sse2_cvtsd2siq_2): Likewise.
4068         (sse2_cvttsd2si): Likewise.
4069         (sse2_cvttsd2siq): Likewise.
4070         (sse2_cvtdq2pd): Likewise.
4071         (*sse2_cvtpd2dq): Likewise.
4072         (*sse2_cvttpd2dq): Likewise.
4073         (*sse2_cvtpd2ps): Likewise.
4074         (sse2_cvtps2pd): Likewise.
4075         (sse3_movshdup): Likewise.
4076         (sse3_movsldup): Likewise.
4077         (sse_storehps): Likewise.
4078         (*sse4_1_extractps): Likewise.
4079         (sse2_storelpd): Likewise.
4080         (vec_dupv2df_sse3): Likewise.
4081         (*vec_concatv2df_sse3): Likewise.
4082         (*sse4_1_pextrb): Likewise.
4083         (*sse4_1_pextrb_memory): Likewise.
4084         (*sse2_pextrw): Likewise.
4085         (*sse4_1_pextrw_memory): Likewise.
4086         (*sse4_1_pextrd): Likewise.
4087         (*sse4_1_pextrq): Likewise.
4088         (sse2_pshufd_1): Likewise.
4089         (sse2_pshuflw_1): Likewise.
4090         (sse2_pshufhw_1): Likewise.
4091         (*sse2_storeq_rex64): Likewise.
4092         (*vec_dupv4si): Likewise.
4093         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
4094         (sse2_pmovmskb): Likewise.
4095         (*sse2_maskmovdqu): Likewise.
4096         (*sse2_maskmovdqu_rex64): Likewise.
4097         (sse_ldmxcsr): Likewise.
4098         (sse_stmxcsr): Likewise.
4099         (abs<mode>2): Likewise.
4100         (sse4_1_movntdqa): Likewise.
4101         (sse4_1_phminposuw): Likewise.
4102         (sse4_1_extendv8qiv8hi2): Likewise.
4103         (*sse4_1_extendv8qiv8hi2): Likewise.
4104         (sse4_1_extendv4qiv4si2): Likewise.
4105         (*sse4_1_extendv4qiv4si2): Likewise.
4106         (sse4_1_extendv2qiv2di2): Likewise.
4107         (*sse4_1_extendv2qiv2di2): Likewise.
4108         (sse4_1_extendv4hiv4si2): Likewise.
4109         (*sse4_1_extendv4hiv4si2): Likewise.
4110         (sse4_1_extendv2hiv2di2): Likewise.
4111         (*sse4_1_extendv2hiv2di2): Likewise.
4112         (sse4_1_extendv2siv2di2): Likewise.
4113         (*sse4_1_extendv2siv2di2): Likewise.
4114         (sse4_1_zero_extendv8qiv8hi2): Likewise.
4115         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
4116         (sse4_1_zero_extendv4qiv4si2): Likewise.
4117         (*sse4_1_zero_extendv4qiv4si2): Likewise.
4118         (sse4_1_zero_extendv2qiv2di2): Likewise.
4119         (*sse4_1_zero_extendv2qiv2di2): Likewise.
4120         (sse4_1_zero_extendv4hiv4si2): Likewise.
4121         (*sse4_1_zero_extendv4hiv4si2): Likewise.
4122         (sse4_1_zero_extendv2hiv2di2): Likewise.
4123         (*sse4_1_zero_extendv2hiv2di2): Likewise.
4124         (sse4_1_zero_extendv2siv2di2): Likewise.
4125         (*sse4_1_zero_extendv2siv2di2): Likewise.
4126         (sse4_1_ptest): Likewise.
4127         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
4128         (sse4_2_pcmpestri): Likewise.
4129         (sse4_2_pcmpestrm): Likewise.
4130         (sse4_2_pcmpistri): Likewise.
4131         (sse4_2_pcmpistrm): Likewise.
4132         (aesimc): Likewise.
4133         (aeskeygenassist): Likewise.
4134
4135 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
4136
4137         * config/i386/predicates.md (vzeroall_operation): New.
4138
4139         * config/i386/sse.md (avx_vzeroall): New.
4140         (*avx_vzeroall): Likewise.
4141
4142 2008-08-28  Paul Brook  <paul@codesourcery.com>
4143             Mark Shinwell  <shinwell@codesourcery.com>
4144             Richard Earnshaw  <richard.earnshaw@arm.com>
4145
4146         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
4147         (TARGET_MIN_ANCHOR_OFFSET): New.
4148         (arm_override_options): Set correct anchor ranges for Thumb-1
4149         and Thumb-2 if required.
4150         (legitimize_pic_address): Handle case involving a TLS symbol
4151         reference with an addend.
4152         (arm_optimization_options): Enable section anchors at -O1 and
4153         above.
4154         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
4155         * config/arm/arm-protos.h (arm_optimization_options): New.
4156
4157 2008-08-28  Nick Clifton  <nickc@redhat.com>
4158
4159         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
4160         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
4161         attribute.
4162
4163         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
4164         * config/v850/v850.md (return): Remove frame size restriction.
4165
4166         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
4167
4168         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
4169
4170         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
4171
4172         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
4173
4174 2008-08-28  Paul Brook  <paul@codesourcery.com>
4175
4176         * config/arm/vfp11.md: Update license notice.
4177         * config/arm/cortex-r4.md: Ditto.
4178
4179 2008-08-28  Richard Guenther  <rguenther@suse.de>
4180
4181         PR tree-optimization/37207
4182         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
4183         tuplification bug.
4184
4185 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
4186
4187         PR c++/36741
4188         * tree.c (int_fits_type_p): Don't forget unsigned integers
4189           of type sizetype which higher end word equals -1.
4190
4191 2008-08-28  Ira Rosen  <irar@il.ibm.com>
4192
4193         * target.h (struct vectorize): Add new target builtin.
4194         * tree-vectorizer.c (destroy_loop_vec_info): Call
4195         vect_free_slp_instance instead of vect_free_slp_node.
4196         * tree-vectorizer.h (enum slp_load_perm_type): New.
4197         (struct _slp_instance): Add new fields.
4198         (SLP_INSTANCE_LOAD_PERMUTATION): New.
4199         (SLP_INSTANCE_LOADS): New.
4200         (vect_free_slp_tree): Remove.
4201         (vect_free_slp_instance): Declare.
4202         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
4203         (vectorizable_load): Add argument.
4204         (vect_transform_slp_perm_load): New.
4205         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
4206         vectorizable_load.
4207         (vect_get_place_in_interleaving_chain): New function.
4208         (vect_free_slp_tree): Make static.
4209         (vect_free_slp_instance): New function.
4210         (vect_build_slp_tree): Add new arguments. Allow load permutations and
4211         collect the load location in the interleaving chain.
4212         (vect_supported_slp_permutation_p): New function.
4213         (vect_supported_load_permutation_p): Likewise.
4214         (vect_analyze_slp_instance): In case of loads permutation, call
4215         vect_supported_load_permutation_p to check that the permutation is
4216         supported.
4217         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
4218         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
4219         (vect_create_mask_and_perm): New function.
4220         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
4221         (vectorizable_load): Add an argument. Don't keep the created vectors
4222         statements in the node if permutation is required. Call
4223         vect_transform_slp_perm_load to generate the permutation.
4224         (vect_transform_stmt): Add new argument. Call vectorizable_load with
4225         additional argument.
4226         (vect_schedule_slp_instance): In case of loads permutation, allocate
4227         vectorized statements structure for all the related SLP nodes. Call
4228         vect_transform_stmt with addditional argument.
4229         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
4230         * config/spu/spu.c (spu_builtin_vec_perm): New.
4231         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
4232         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
4233         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
4234         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
4235
4236 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
4237
4238         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
4239         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
4240         __gthread_cond_signal, __gthread_cond_timedwait,
4241         __gthread_cond_timedwait_recursive): New functions.
4242         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
4243         Likewise.
4244         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
4245         thread interfaces.
4246
4247 2008-08-28  Richard Guenther  <rguenther@suse.de>
4248
4249         PR middle-end/37005
4250         * fold-const.c (maybe_canonicalize_comparison_1): Require
4251         undefined overflow only for canonicalizing A +- CST cmp CST.
4252         Make sure to not generate new constants that are not inside
4253         their TYPE_MIN/MAX_VALUE range.
4254         (maybe_canonicalize_comparison): Remove undefined overflow
4255         checking from here.
4256         (fold_binary): Remove now duplicate folding.
4257
4258 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
4259
4260         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
4261         use not updated in the last change.
4262
4263 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4264
4265         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
4266         (IRA_COVER_CLASSES): Add FPUL_REGS.
4267
4268 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4269
4270         PR 37217
4271         * c-common.c (conversion_warning): Check for null operands.
4272
4273 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4274
4275         PR c/31673
4276         * c-decl.c (check_for_loop_decls): Improve error message. Give
4277         hint.
4278
4279 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4280
4281         PR c/37186
4282         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
4283         (convert_for_assignment): Pass corrent OPT_W* parameter to
4284         WARN_FOR_ASSIGNMENT.
4285
4286 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
4287
4288         PR c++/35321
4289         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
4290
4291 2008-08-27  Paul Brook  <paul@codesourcery.com>
4292
4293         * config.gcc: Loosen checks for arm uclinux eabi targets.
4294
4295 2008-08-27  Paul Brook  <paul@codesourcery.com>
4296
4297         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
4298         _clzsi2.
4299         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4300
4301 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
4302
4303         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
4304         the enumerators of an ENUMERAL_TYPE.
4305         * dbxout.c (dbxout_type): Ditto.
4306
4307 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4308
4309         PR rtl-opt/37219
4310         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
4311         (fwprop_addr): Check that the loop_father is not the outer loop.
4312
4313 2008-08-26  Paul Brook  <paul@codesourcery.com>
4314
4315         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
4316         Remove documentation entry for fmul type.
4317         Use fmuls to annotate single-precision multiplication patterns,
4318         fmuld to annotate double-precision multiplication patterns,
4319         fmacs to annotate single-precision multiply-accumulate patterns
4320         and fmacd to annotate double-precision multiply-accumulate patterns.
4321         * config/arm/vfp11.md: Update reservations accordingly.
4322         * config/arm/arm.md: Note that certain values of the "type"
4323         attribute are documented in vfp.md.
4324         * config/arm/arm1020e.md: Remove out of date duplicate comment.
4325         (v10_cvt): Use new fmul types.
4326
4327 2008-08-26  Paul Brook  <paul@codesourcery.com>
4328
4329         * config/arm/vfp.md: Move pipeline description for VFP11 to...
4330         * config/arm/vfp11.md: ...here.  New.
4331         * config/arm/arm.md: Include vfp11.md.
4332
4333 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
4334
4335         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
4336         parameter to inform call.
4337
4338 2008-08-26  Jeff Law  <law@redhat.com>
4339
4340         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
4341         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
4342         preferred class when copying a constant into a partial word register.
4343
4344 2008-08-26  Ben Elliston  <bje@au.ibm.com>
4345
4346         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
4347         * cp/typeck.c: Likewise.
4348         * cp/tree.c: Likewise.
4349         * gimple-low.c: Likewise.
4350         * jump.c: Likewise.
4351
4352 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
4353
4354         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
4355         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
4356
4357         * doc/passes.texi: Describe IRA.
4358
4359         * doc/tm.texi (IRA_COVER_CLASSES,
4360         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
4361
4362         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
4363         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
4364         -fira-propagate-cost, -fno-ira-share-save-slots,
4365         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
4366
4367         * flags.h (ira_algorithm): New enumeration.
4368         (flag_ira_algorithm, flag_ira_verbose): New external variable
4369         declarations.
4370
4371         * postreload.c (gate_handle_postreload): Don't do post reload
4372         optimizations unless the reload is completed.
4373
4374         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
4375         IRA.
4376
4377         * tree-pass.h (pass_ira): New external variable declaration.
4378
4379         * reload.h: Add 2008 to the Copyright.
4380
4381         * cfgloopanal.c: Include params.h.
4382         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
4383         mode.
4384
4385         * params.h (IRA_MAX_LOOPS_NUM): New macro.
4386
4387         * toplev.c (ira.h): New include.
4388         (flag_ira_algorithm, flag_ira_verbose): New external variables.
4389         (backend_init_target): Call ira_init.
4390         (backend_init): Call ira_init_once.
4391         (finalize): Call finish_ira_once.
4392
4393         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
4394         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
4395         external variables.
4396
4397         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
4398         may_move_out_cost): New external variable declarations.
4399         (move_table): New typedef.
4400
4401         * caller-save.c: Include headers output.h and ira.h.
4402         (no_caller_save_reg_set): New global variable.
4403         (save_slots_num, save_slots): New variables.
4404         (reg_save_code, reg_restore_code, add_stored_regs): Add
4405         prototypes.
4406         (init_caller_save): Set up no_caller_save_reg_set.
4407         (init_save_areas): Reset save_slots_num.
4408         (saved_hard_reg): New structure.
4409         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
4410         (initiate_saved_hard_regs, new_saved_hard_reg,
4411         finish_saved_hard_regs, saved_hard_reg_compare_func): New
4412         functions.
4413         (setup_save_areas): Add code for sharing stack slots.
4414         (all_blocks): New variable.
4415         (save_call_clobbered_regs): Process pseudo-register too.
4416         (mark_set_regs): Process pseudo-register too.
4417         (insert_one_insn): Put the insn after bb note in a empty basic
4418         block.  Add insn check.
4419
4420         * global.c (eliminable_regset): Make it external.
4421         (mark_elimination): Use DF_LR_IN for IRA.
4422         (pseudo_for_reload_consideration_p): New.
4423         (build_insn_chain): Make it external.  Don't ignore spilled
4424         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
4425         (gate_handle_global_alloc): New function.
4426         (pass_global_alloc): Add the gate function.
4427
4428         * opts.c (decode_options): Set up flag_ira.  Print the warning for
4429         -fira.
4430         (common_handle_option): Process -fira-algorithm and -fira-verbose.
4431
4432         * timevar.def (TV_IRA, TV_RELOAD): New passes.
4433
4434         * regmove.c (regmove_optimize): Don't do replacement of output for
4435         IRA.
4436
4437         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
4438         New external variable declarations.
4439
4440         * local-alloc.c (update_equiv_regs): Make it external.  Return
4441         true if jump label rebuilding should be done.  Rescan new_insn for
4442         notes.
4443         (gate_handle_local_alloc): New function.
4444         (pass_local_alloc): Add the gate function.
4445
4446         * alias.c (value_addr_p, stack_addr_p): New functions.
4447         (nonoverlapping_memrefs_p): Use them for IRA.
4448
4449         * common.opt (fira, fira-algorithm, fira-coalesce,
4450         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
4451         fira-verbose): New options.
4452
4453         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
4454         move_cost, may_move_in_cost, may_move_out_cost): Make the
4455         variables external.
4456         (move_table): Remove typedef.
4457         (init_move_cost): Make it external.
4458         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
4459         functions.
4460
4461         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
4462         setup_reg_classes): New function prototypes.
4463         (eliminable_regset): New external variable declaration.
4464         (build_insn_chain, update_equiv_regs): New function prototypes.
4465
4466         * Makefile.in (IRA_INT_H): New definition.
4467         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
4468         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
4469         (reload1.o, toplev.o): Add dependence on ira.h.
4470         (cfgloopanal.o): Add PARAMS_H.
4471         (caller-save.o): Add dependence on output.h and ira.h.
4472         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
4473         ira-emit.o, ira-lives.o): New entries.
4474
4475         * passes.c (pass_ira): New pass.
4476
4477         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
4478
4479         * reload1.c (ira.h): Include the header.
4480         (changed_allocation_pseudos): New bitmap.
4481         (init_reload): Initiate the bitmap.
4482         (compute_use_by_pseudos): Permits spilled registers in FROM.
4483         (temp_pseudo_reg_arr): New variable.
4484         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
4485         IRA.  Call alter_reg with the additional parameter.  Don't clear
4486         spilled_pseudos for IRA.  Restore original insn chain for IRA.
4487         Clear changed_allocation_pseudos at the end of reload.
4488         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
4489         (hard_regno_to_pseudo_regno): New variable.
4490         (count_pseudo): Check spilled pseudos.  Set up
4491         hard_regno_to_pseudo_regno.
4492         (count_spilled_pseudo): Check spilled pseudos. Update
4493         hard_regno_to_pseudo_regno.
4494         (find_reg): Use better_spill_reload_regno_p.  Check
4495         hard_regno_to_pseudo_regno.
4496         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
4497         code for IRA.
4498         (eliminate_regs_1): Use additional parameter for alter_reg.
4499         (finish_spills): Set up pseudo_previous_regs only for spilled
4500         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
4501         more arguments.  Don't clear live_throughout and dead_or_set for
4502         spilled pseudos.  Use additional parameter for alter_reg.  Call
4503         mark_allocation_change.  Set up changed_allocation_pseudos.
4504         Remove sanity check.
4505         (emit_input_reload_insns, delete_output_reload): Use additional
4506         parameter for alter_reg.  Call mark_allocation_change.
4507         (substitute, gen_reload_chain_without_interm_reg_p): New
4508         functions.
4509         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
4510
4511         * testsuite/gcc.dg/20080410-1.c: New file.
4512
4513         * config/s390/s390.h (IRA_COVER_CLASSES,
4514         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
4515
4516         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
4517
4518         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
4519
4520         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4521
4522         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
4523
4524         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4525
4526         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
4527
4528         2008-08-24  Jeff Law  <law@redhat.com>
4529         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
4530         when ignoring unavailable registers.
4531
4532         2008-08-24  Jeff Law  <law@redhat.com>
4533         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
4534         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
4535         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
4536         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
4537
4538         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
4539         * ira-build.c (allocno_range_compare_func): Stabilize sort.
4540
4541         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
4542         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
4543         * reload1.c (find_reg): Process registers in register allocation order.
4544
4545         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
4546         * toplev.c (backend_init_target): Move ira_init call from
4547         here...
4548         (lang_dependent_init_target): ...to here.
4549
4550         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
4551         * ira.c (setup_class_subset_and_memory_move_costs): Don't
4552         calculate memory move costs for NO_REGS.
4553
4554         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
4555         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
4556         STACK_REGS is defined.
4557
4558         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
4559         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
4560
4561         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
4562         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
4563
4564         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
4565         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
4566         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
4567         barrier.
4568
4569 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
4570             Dorit Nuzman  <dorit@il.ibm.com>
4571
4572         * gcc/config/spu/spu.md (vec_extract_evenv4si,
4573         vec_extract_evenv4sf, vec_extract_evenv8hi,
4574         vec_extract_evenv16qi, vec_extract_oddv4si,
4575         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
4576         vec_interleave_highv4sf, vec_interleave_lowv4sf,
4577         vec_interleave_highv4si, vec_interleave_lowv4si,
4578         vec_interleave_highv8hi, vec_interleave_lowv8hi,
4579         vec_interleave_highv16qi, vec_interleave_lowv16qi,
4580         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
4581
4582 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
4583
4584         PR target/36756
4585         * config/rs6000/rs6000.c (optimization_options): Don't default to
4586         section anchors without toplevel reorder.
4587
4588 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4589
4590         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
4591         (mfc_end_critical_section): Likewise.
4592
4593 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4594
4595         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
4596         all type qualifiers from element type to vector type.
4597
4598 2008-08-25  David Daney  <ddaney@avtrex.com>
4599
4600         * config/mips/mips.md (immediate_insn): Move up in file, fix
4601         comment typo, reformat.
4602         (fetchop_bit, atomic_hiqi_op memory_barrier,
4603         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
4604         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
4605         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
4606         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
4607         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
4608         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
4609         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
4610         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
4611         sync_old_nand<mode>, sync_new_nand<mode>,
4612         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
4613         test_and_set_12): Moved to sync.md.
4614         (sync.md): Include.
4615         * config/mips/sync.md: New file.
4616
4617 2008-08-25  Richard Henderson  <rth@redhat.com>
4618
4619         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
4620         (regsave): Likewise.
4621         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
4622         (output_cfi_directive): Likewise.
4623         (div_data_align): New.
4624         (output_cfi): Use it.
4625
4626 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
4627
4628         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
4629         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
4630         (TARGET_OCTEON): New macro.
4631         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
4632         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
4633         (ISA_HAS_POP): New macro.
4634         * config/mips/driver-native.c (host_detect_local_cpu): Handle
4635         Octeon.
4636         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
4637         Handle Octeon.
4638         * config/mips/mips.md (cpu): Add octeon.
4639         (type): Add pop attribute value.
4640         (popcount<mode>2): New pattern.
4641         * doc/invoke.texi (-march=@var{arch}): Add octeon.
4642
4643 2008-08-24  Jan Hubicka  <jh@suse.cz>
4644
4645         * doc/invoke.texi (-fipa-cp-clone): New option.
4646         (-fipa-cp): Update docs.
4647         (--param ipcp-unit-growth):New.
4648         * ipa-cp.c: Include fibheap.h, params.h
4649         (ipcp_initialize_node_lattices): When not cloning, all externally
4650         visible functions are bottom.
4651         (ipcp_need_redirect_p): Accept clones.
4652         (ipcp_insert_stage): Use cost driven heuristics.
4653         (max_count, dead_nodes): New static vars.
4654         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
4655         ipcp_const_param_count): New functions.
4656         * common.opt (ipa-cp-clone): New command line option.
4657         * params.def (ipcp-unit-growth): New.
4658
4659 2008-08-24  Jan Hubicka  <jh@suse.cz>
4660
4661         * tree-inline.c (tree_function_versioning): Look harder
4662         for referenced vars.
4663
4664 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
4665
4666         PR tree-optimization/37185
4667         * matrix-reorg.c (transform_access_sites): Update changed stmt.
4668
4669 2008-08-23  Jan Hubicka  <jh@suse.cz>
4670
4671         * ipa-cp.c (ipcp_analyze_node): New function.
4672         (ipcp_update_cloned_node): Use it.
4673         (ipcp_init_stage): Likewise.
4674         * ipa-inline.c (function_insertion_hook_holder): New static var.
4675         (analyze_function): Break out from ....
4676         (inline_generate_summary): Here; register insertion hook.
4677         (cgraph_decide_inlining): Remove hook.
4678         (add_new_function): New function.
4679
4680 2008-08-23  Jan Hubicka  <jh@suse.cz>
4681
4682         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
4683
4684 2008-08-23  Jan Hubicka  <jh@suse.cz>
4685
4686         * ipa-cp.c (constant_val_insert): Remove.
4687         (ipcp_propagate_one_const): Remove.
4688         (ipcp_create_replace_map): Always insert replacements to the map.
4689         (ipcp_insert_stage): Do not try to insert statements by hand.
4690         * tree-inline.c (insert_init_stmt): Break out from ...
4691         (setup_one_parameter): ... here; allow NULL BB pointer.
4692         (tree_function_versioning): Use setup_one_parameter to process
4693         replacement map.
4694
4695 2008-08-23  Jan Hubicka  <jh@suse.cz>
4696
4697         * tree.c (decl_address_ip_invariant_p): New function.
4698         * tree.h (decl_address_ip_invariant_p): Declare.
4699         * gimple.c (strip_invariant_refs): Break out from ...
4700         (is_gimple_invariant_address): ... here
4701         (is_gimple_ip_invariant_address): New function.
4702         (is_gimple_ip_invariant): New function.
4703         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
4704         Declare.
4705
4706         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
4707         (ipcp_lat_is_insertable): All constants are insertable.
4708         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
4709         IPA_CONST_VALUE_REF.
4710         (ipcp_initialize_node_lattices): Propagate all types of operands.
4711         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
4712         (ipcp_create_replace_map): Reformat.
4713         (ipcp_need_redirect_p): Simplify.
4714         (ipcp_insert_stage): Check that argument is used before clonning.
4715         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
4716         IPA_CONST_REF.
4717         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
4718         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
4719         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
4720         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
4721         (jump_func_type): Remove IPA_CONST_VALUE_REF.
4722         * tree-inline.c (tree_function_versioning): Add variables referenced
4723         by replacing trees.
4724
4725 2008-08-23  Jan Hubicka  <jh@suse.cz>
4726
4727         PR target/37094
4728         * i386.c (standard_80387_constant_p): Use optimize_size.
4729
4730 2008-08-23  Ira Rosen  <irar@il.ibm.com>
4731
4732         PR tree-optimization/37161
4733         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
4734         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
4735         (vect_determine_vectorization_factor): Move the scalar type
4736         retrieval to vect_get_smallest_scalar_type.
4737         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
4738         scalar type. Remove redundant computation.
4739         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
4740         (vect_get_slp_defs): Take the type of RHS into account if
4741         necessary by calling vect_get_smallest_scalar_type. Call
4742         vect_get_constant_vectors with additional argument.
4743
4744 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4745
4746         PR 35648
4747         * doc/invoke.texi (Wwrite-strings): Clarify description.
4748
4749 2008-08-23  Ira Rosen  <irar@il.ibm.com>
4750
4751         PR tree-optimization/37174
4752         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
4753         def stmt is a part of the loop before accessing its stmt_vec_info.
4754
4755 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
4756
4757         PR target/11259
4758         * config/avr/avr.md (UNSPEC_SWAP): New constants.
4759         (*swap): New insn pattern.
4760         (*ashlqi3): Rename from ashlqi3 insn pattern.
4761         (ashlqi3): New expanders.
4762         (*lshrqi3): Rename from lshrqi3 insn pattern.
4763         (lshrqi3): New expanders.
4764         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
4765         lshrqi3_const5, lshrqi3_const6): New splitters.
4766         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
4767         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
4768         peephole2 patterns.
4769
4770 2008-08-22  Richard Guenther  <rguenther@suse.de>
4771
4772         PR tree-optimization/37078
4773         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
4774         [+INF, +INF] ranges.
4775
4776 2008-08-22  Richard Guenther  <rguenther@suse.de>
4777
4778         PR tree-optimization/37143
4779         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
4780         a conversion statement instead of a copy.
4781
4782 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
4783
4784         PR target/37184
4785         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
4786         CCCmode, CCOmode and CCSmode destination modes.
4787
4788         PR target/37191
4789         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
4790         from different units in a single alternative.
4791         (*vec_extractv2sf_1): Ditto.
4792         (*vec_extractv2si_0): Ditto.
4793         (*vec_extractv2si_1): Ditto.
4794         * config/i386/sse.md (sse2_storehpd): Ditto.
4795         (sse2_storelpd): Ditto.
4796         (sse2_loadhpd): Ditto.
4797         (sse2_loadlpd): Ditto.
4798
4799         PR target/37197
4800         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
4801         (popcountsi2): Ditto.
4802         (clzdi2_abm): Ditto.
4803         (popcountdi2): Ditto.
4804         (clzhi2_abm): Ditto.
4805         (popcounthi2): Ditto.
4806
4807 2008-08-22  Richard Guenther  <rguenther@suse.de>
4808
4809         PR middle-end/36548
4810         PR middle-end/37125
4811         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
4812         if the multiplication does not overflow.
4813
4814 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
4815
4816         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
4817
4818 2008-08-21  Richard Henderson  <rth@redhat.com>
4819
4820         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
4821         spurrious comma from test.
4822         * configure: Rebuild.
4823
4824 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4825
4826         PR 30457
4827         * builtins.c (fold_builtin_next_arg): Add warning about undefined
4828         behaviour.
4829
4830 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
4831
4832         * c-tree.h (grokfield): New argument.
4833         * c-decl.c (grokfield): Handle new location argument.
4834         * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
4835
4836 2008-08-21  Richard Guenther  <rguenther@suse.de>
4837
4838         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
4839
4840 2008-08-21  Jan Hubicka  <jh@suse.cz>
4841
4842         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
4843         (cgraph_add_function_insertion_hook,
4844         cgraph_remove_function_insertion_hook,
4845         cgraph_call_function_insertion_hooks): New functions.
4846         * cgraph.h (cgraph_add_function_insertion_hook,
4847         cgraph_remove_function_insertion_hook,
4848         cgraph_call_function_insertion_hooks): Declare.
4849         * ipa-reference.c (function_insertion_hook_holder): New variable.
4850         (check_operand, look_for_address_of): When checking late, do not care
4851         about module bitmaps.
4852         (add_new_function): New function.
4853         (generate_summary): Register hooks; zero module bitmaps.
4854         (propagate): Unregister hooks.
4855         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
4856         (add_new_function): New function.
4857         (generate_summary): Register hook.
4858         (propagate): Remove hook.
4859
4860         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
4861
4862         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
4863         * ipa-cp.c (ipcp_update_cloned_node): New function.
4864         (build_const_val): Handle functions correctly; bring type logic
4865         into sync with tree-inline.c
4866         (ipcp_init_stage):  Take care of computing stuff needed by
4867         indirect inlining; update clones.
4868         (ipcp_generate_summary): Break out of ipcp_driver.
4869         (ipcp_driver): Do only execution and transformation.
4870         (pass_ipa_cp): Make IPA_PASS.
4871         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
4872         offset to address.
4873         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
4874         ipcp, some info is already available.
4875         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
4876         * tree-inline.c (remap_ssa_name): Unshare expression.
4877
4878 2008-08-21  Richard Guenther  <rguenther@suse.de>
4879
4880         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
4881         a PHI ask VN if it is already available.
4882         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
4883         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
4884
4885 2008-08-21  Richard Guenther  <rguenther@suse.de>
4886
4887         PR middle-end/36817
4888         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
4889         makes sure to produce a result of the correct type.
4890
4891 2008-08-21  Jan Hubicka  <jh@suse.cz>
4892         Backport from LTO branch:
4893
4894         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
4895                     Jan Hubicka  <jh@suse.cz>
4896
4897         * ipa-pure-const.c
4898         (init_state, finish_state, set_function_state, generate_summary):
4899         New functions.
4900         (scan_stmt): Renamed from scan_function.  Changed to keep state in
4901         local static vars rather than cgraph aux field.
4902         (propagate): Renamed from static_execute. Changed to keep state in
4903         local static vars rather than cgraph aux field.
4904         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
4905         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
4906
4907         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
4908
4909         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
4910         * ipa-reference.c (init_function_info, generate_summary,
4911         propagate): New functions.
4912         (analyze_function):  Call init_function_info.
4913         (static_execute): Stripped into generate_summary and propagate.
4914         (pass_ipa_reference): Made into ipa_opt_pass.
4915
4916 2008-08-21  Richard Guenther  <rguenther@suse.de>
4917
4918         PR tree-optimization/37181
4919         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
4920         folding result.
4921         (extract_range_from_unary_expr): Likewise.
4922
4923 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4924
4925         * diagnostic.c (pedwarn_at): Rename as pedwarn.
4926         (pedwarn): Delete.
4927         * toplev.h (pedwarn_at): Likewise.
4928         * builtins.c: Update all calls to pedwarn.
4929         * c-lex.c: Likewise.
4930         * toplev.c: Likewise.
4931         * c-tree.h: Likewise.
4932         * c-decl.c: Likewise.
4933         * c-errors.c: Likewise.
4934         * c-typeck.c: Likewise.
4935         * c-common.c: Likewise.
4936         * c-parser.c: Likewise.
4937
4938 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
4939
4940         PR target/31070
4941         * config/sparc/sparc.c (function_arg_slotno): Handle structure
4942         with MODE_VECTOR_INT mode.
4943
4944 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4945
4946         PR middle-end/179
4947         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
4948         initialized outside the current module.
4949         (warn_uninitialized_var): Ignore left-hand side when walking the
4950         trees. Ignore address expressions. Examine VUSE operands in gimple
4951         statements with a variable declaration on the right-hand side.
4952
4953 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4954
4955         PR bootstrap/37155
4956         * rtlanal.c (subreg_offset_representable_p): Revert last change.
4957
4958 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4959
4960         PR 35701
4961         * c-common.c (conversion_warning): Do not warn if applying bit-and
4962         operator to unsigned constant that fits in the target type.
4963
4964 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4965
4966         PR c++/35602
4967         * c-common.c (conversion_warning): Do not warn for artificial
4968         expressions.
4969
4970 2008-08-20  Richard Guenther  <rguenther@suse.de>
4971
4972         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
4973         (extract_range_from_binary_expr): Fall back to constant propagation.
4974         (extract_range_from_unary_expr): Likewise.
4975
4976 2008-08-20  Richard Guenther  <rguenther@suse.de>
4977
4978         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
4979         with TREE_THIS_VOLATILE on shared nodes.
4980         (fold_stmt_r): Likewise.
4981
4982 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
4983
4984         PR c/37171
4985         * c-parser.c (c_parser_attributes): For keywords use canonical
4986         spelling for attr_name.
4987
4988 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4989
4990         * value-prof.c (check_counter): Revert wrong call to error.
4991
4992 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4993
4994         * profile.c: Update calls to inform.
4995         * value-prof.c: Update calls to inform.
4996
4997 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4998
4999         * diagnostic.c (inform): Add an explicit location_t parameter.
5000         * toplev.h (inform): Update declaration.
5001         * builtins.c: Update all calls to inform.
5002         * c-common.c: Likewise.
5003         * c-decl.c: Likewise.
5004         * c-opts.c: Likewise.
5005         * c-pch.c: Likewise.
5006         * c-pragma.c: Likewise.
5007         * c-typeck.c: Likewise.
5008         * coverage.c: Likewise.
5009         * opts.c: Likewise.
5010         * toplev.c: Likewise.
5011         * tree-cfg.c: Likewise.
5012         * tree-ssa.c: Likewise.
5013
5014 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5015
5016         PR target/37169
5017         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
5018         V2DI mode, for SSE4.1, use movq instead of vector set if the
5019         second element is zero and inter-unit moves are OK.
5020
5021 2008-08-20  Richard Guenther  <rguenther@suse.de>
5022
5023         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
5024         properly handle conversion/copy chains after tuplification.
5025
5026 2008-08-20  Richard Guenther  <rguenther@suse.de>
5027
5028         * passes.c (init_optimization_passes): Move the second
5029         forwprop pass before alias computation.  Remove the second
5030         DCE pass.  Remove the first dominator and phi copy/const
5031         prop passes.
5032
5033 2008-08-20  Nick Clifton  <nickc@redhat.com>
5034
5035         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
5036         support of this feature.  Do not assume that a sufficiently new
5037         assembler will support the feature regardless of the target type.
5038         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5039         * configure: Regenerate.
5040
5041 2008-08-20  Richard Guenther  <rguenther@suse.de>
5042
5043         * tree-vrp.c (found_in_subgraph): Remove.
5044         (live): New global static.
5045         (live_on_edge): New function.
5046         (blocks_visited): Remove.
5047         (register_edge_assert_for_2): Use live_on_edge.
5048         (find_conditional_asserts): Remove code dealing with
5049         found_in_subgraph.  Do not walk the CFG.
5050         (find_switch_asserts): Likewise.
5051         (find_assert_locations_1): Renamed from find_assert_locations.
5052         Move finding assert locations for conditional and switch
5053         statements first.  Update live bitmap.  Do not walk the CFG.
5054         (find_assert_locations): New function.
5055         (insert_range_assertions): Remove entry of CFG walk.
5056         Adjust call to find_assert_locations.
5057         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
5058         that only can appear because of fake exit edges but assert we
5059         never try to insert on those.
5060         (fini_pre): Do not remove fake exit edges here...
5061         (execute_pre): ...but here, before committing edge inserts.
5062
5063 2008-08-19  Richard Guenther  <rguenther@suse.de>
5064
5065         * passes.c (init_optimization_passes): Exchange store-ccp
5066         with a ccp pass.
5067
5068 2008-08-19  Rafael Espíndola  <espindola@google.com>
5069
5070         * varasm.c (weak_decls): Move earlier in the file.
5071         (assemble_external): Add weak decls to the weak_decls list.
5072         (declare_weak): Don't add decls to the weak_decls list.
5073
5074 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
5075
5076         PR target/37157
5077         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
5078         before (sse2_shufpd_<mode>).
5079
5080 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
5081
5082         PR debug/37156
5083         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
5084         * tree.c (block_nonartificial_location): Likewise.
5085
5086 2008-08-19  Richard Guenther  <rguenther@suse.de>
5087
5088         PR tree-optimization/35972
5089         PR tree-optimization/23094
5090         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
5091         parameter.
5092         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
5093         handle MISALIGNED_INDIRECT_REF.
5094         (get_ref_from_reference_ops): New helper.
5095         (vn_reference_lookup_pieces): Walk the use-def chain using the
5096         alias-oracle if requested.
5097         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
5098         walking the use-def chain.
5099         (compute_avail): But not here.
5100         (create_component_ref_by_pieces_1): Properly handle
5101         MISALIGNED_INDIRECT_REF.
5102         (do_regular_insertion): Handle fully redundant
5103         expressions after PHI-translation also for SSA_NAME values, not
5104         only constants.  Correctly use edoubleprime for that.
5105
5106 2008-08-19  Ira Rosen  <irar@il.ibm.com>
5107
5108         * tree-vectorizer.c (supportable_widening_operation): Support
5109         multi-step conversion, return the number of steps in such conversion
5110         and the required intermediate types.
5111         (supportable_narrowing_operation): Likewise.
5112         * tree-vectorizer.h (vect_pow2): New function.
5113         (supportable_widening_operation): Change argument types.
5114         (supportable_narrowing_operation): Likewise.
5115         (vectorizable_type_promotion): Add an argument.
5116         (vectorizable_type_demotion): Likewise.
5117         * tree-vect-analyze.c (vect_analyze_operations): Call
5118         vectorizable_type_promotion and vectorizable_type_demotion with
5119         additional argument.
5120         (vect_get_and_check_slp_defs): Detect patterns.
5121         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
5122         types.
5123         (vect_analyze_slp_instance): Don't fail in case of multiple types.
5124         Call vect_build_slp_tree with correct arguments. Calculate unrolling
5125         factor according to the smallest type in the loop.
5126         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
5127         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
5128         supportable_widening_operation with correct arguments.
5129         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
5130         operands lists according to the number of vector statements in left
5131         or right node, if exists.
5132         (vect_gen_widened_results_half): Remove unused argument.
5133         (vectorizable_conversion): Call supportable_widening_operation,
5134         supportable_narrowing_operation, and vect_gen_widened_results_half
5135         with correct arguments.
5136         (vectorizable_assignment): Change documentation, support multiple
5137         types in SLP.
5138         (vectorizable_operation): Likewise.
5139         (vect_get_loop_based_defs): New function.
5140         (vect_create_vectorized_demotion_stmts): Likewise.
5141         (vectorizable_type_demotion): Support loop-aware SLP and general
5142         multi-step conversion. Call vect_get_loop_based_defs and
5143         vect_create_vectorized_demotion_stmts for transformation.
5144         (vect_create_vectorized_promotion_stmts): New function.
5145         (vectorizable_type_promotion): Support loop-aware SLP and general
5146         multi-step conversion. Call vect_create_vectorized_promotion_stmts
5147         for transformation.
5148         (vectorizable_store): Change documentation, support multiple
5149         types in SLP.
5150         (vectorizable_load): Likewise.
5151         (vect_transform_stmt): Pass SLP_NODE to
5152         vectorizable_type_promotion and vectorizable_type_demotion.
5153         (vect_schedule_slp_instance): Move here the calculation of number
5154         of vectorized statements for each node from...
5155         (vect_schedule_slp): ... here.
5156         (vect_transform_loop): Call vect_schedule_slp without the last
5157         argument.
5158
5159 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
5160
5161         PR bootstrap/37152
5162         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
5163         to == in assert statement.
5164         (vectorizable_reduction): Fix typo.
5165
5166 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5167
5168         PR bootstrap/37153
5169         * value-prof.c (check_counter): Dereference pointer to overall
5170         count when printing it.
5171
5172 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5173
5174         * profile.h: Really add it.
5175
5176 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5177
5178         * mcf.c: Really add it.
5179
5180 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
5181             Vinodha Ramasamy  <vinodha@google.com>
5182
5183         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
5184         count_scale.
5185         * value-prof.c (check_counter): Fix the counter if
5186         flag_profile_correction is true.
5187         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
5188         tree_mod_subtract_transform):
5189         Follow check_counter parameter change.
5190         * common.opt (fprofile-correction): New option.
5191         * mcf.c: New file.
5192         * profile.h: Likewise.
5193         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
5194         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
5195         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
5196         functions.
5197         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
5198         flag_profile_correction is set.
5199
5200 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
5201
5202         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
5203
5204 2008-08-18  Tomas Bily  <tbily@suse.cz>
5205
5206         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
5207         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
5208         CONVERT_EXPR_P.
5209         * tree-data-ref.c (split_constant_offset_1): Likewise.
5210         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
5211         * tree-sra.c (sra_walk_expr): Likewise.
5212         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
5213         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
5214         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
5215         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
5216         Likewise.
5217         * gimple.c (gimple_assign_unary_nop_p): Likewise.
5218         * tree-vect-transform.c (vectorizable_type_demotion)
5219         (vectorizable_type_promotion): Likewise.
5220         * tree-inline.c (expand_call_inline):
5221         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
5222         (forward_propagate_addr_expr_1, forward_propagate_comparison)
5223         (tree_ssa_forward_propagate_single_use_vars): Likewise.
5224         * expr.c (expand_expr_real_1): Likewise.
5225         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
5226         (gimple_assign_unary_useless_conversion_p): Likewise.
5227         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5228         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
5229         * fold-const.c (fold_unary): Likewise.
5230         * tree.h (CONVERT_EXPR_P): Likewise.
5231         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
5232         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
5233         * tree-vrp.c:
5234         (register_edge_assert_for_2, extract_range_from_unary_expr)
5235         (register_edge_assert_for_1): Likewise.
5236
5237 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5238
5239         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
5240         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
5241         (enum real_value_const): Delete.
5242         (get_real_const): Delete.
5243         * real.c (get_real_const): Delete.
5244         (dconst_e_ptr): Define.
5245         (dconst_third_ptr): Define.
5246         (dconst_sqrt2_ptr): Define.
5247         * builtins.c: Update all callers.
5248
5249 2008-08-18  Richard Guenther  <rguenther@suse.de>
5250
5251         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
5252         statement iterator after statement removal.
5253
5254 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
5255
5256         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
5257         (detect_processor_freebsd): Likewise.
5258         (host_detect_local_cpu): Call newly added functions for FreeBSD.
5259
5260 2008-08-18  Richard Guenther  <rguenther@suse.de>
5261
5262         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
5263         and loads have the correct types.
5264
5265 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5266
5267         PR cpp/7263
5268         * c-opts.c (cpp_opts): Remove static.
5269         * c-parser.c (cpp_opts): Declare it extern.
5270         (disable_extension_diagnostics): Handle cpp options.
5271         (enable_extension_diagnostics): Likewise.
5272
5273 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5274
5275         * diagnostics.c (permerror_at): Rename as permerror.
5276         (permerror): Delete.
5277         * toplev.h: Likewise.
5278
5279 2008-08-18  Richard Guenther  <rguenther@suse.de>
5280
5281         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
5282         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
5283         Move call_cdce before build_alias.  Move copyrename2,
5284         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
5285         right after final inlining.
5286         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
5287         (pass_build_cfg): But instead via TODO_dump_func.
5288
5289 2008-08-18  Richard Guenther  <rguenther@suse.de>
5290
5291         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
5292         element index.
5293         (scalarize_init): If we failed to generate some initializers
5294         do not generate zeros for not instantiated members.  Instead
5295         rely on the copy out.
5296         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
5297         about missing flow-sensitive alias info only if we have
5298         aliases computed.
5299
5300 2008-08-17  Nick Clifton  <nickc@redhat.com>
5301
5302         * doc/extend.texi (Function Attributes): Fix typo in description
5303         if hot function attribute.
5304
5305 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
5306             Richard Sandiford  <rdsandiford@googlemail.com>
5307
5308         * doc/install.texi (--with-mips-plt): Document.
5309         * doc/invoke.texi (-mplt, -mno-plt): Document.
5310         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
5311         and handle ${with_mips_plt}.
5312         * config/mips/mips.opt (mplt): New option.
5313         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
5314         (TARGET_ABICALLS_PIC2): Likewise.
5315         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
5316         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
5317         (ASM_SPEC): Use !mabi=* instead of !mabi*.
5318         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
5319         to decide whether to output ".option picX" directives.
5320         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
5321         Pass -call_nonpic rather than -KPIC for -mplt.
5322         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
5323         on the command line.  Also remove it when -mabi=64 is used without
5324         -msym32.
5325         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
5326         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
5327         TARGET_ABICALLS_PIC0.
5328         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
5329         TARGET_ABICALLS.
5330         (mips16_build_function_stub): Only output ".option pic" directives
5331         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
5332         (mips16_build_call_stub): Fix comment and remove redundant
5333         ".set at"/"set .noat" directives.
5334         (mips_function_rodata_section): Use the default behaviour for
5335         TARGET_ABSOLUTE_ABICALLS.
5336         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
5337         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
5338         (mips_restore_gp): Do nothing if the current function doesn't use
5339         a global pointer.
5340         (mips_expand_prologue): Only save $gp if the current function uses it.
5341         Use a normal move for TARGET_ABICALLS_PIC0.
5342         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
5343
5344 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
5345
5346         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
5347         of function when handling GLOBAL_POINTER_REGNUM.
5348
5349 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
5350
5351         PR ada/20548
5352         * common.opt (-fstack-check): Do not declare the variable here.
5353         (-fstack-check=): New option variant.
5354         * doc/invoke.texi (Code Gen Options): Document it.
5355         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
5356         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
5357         (STACK_CHECK_STATIC_BUILTIN): New macro.
5358         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
5359         * opts.c: Include expr.h.
5360         (common_handle_option) <OPT_fold_stack_check_>: New case.
5361         <OPT_fstack_check>: Likewise.
5362         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
5363         consistently in the test for variable-sized types.  Adjust for
5364         new behaviour of flag_stack_check.
5365         * explow.c: Include except.h.
5366         (allocate_dynamic_stack_space): Do not take into account
5367         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
5368         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
5369         for variable-sized parameters.  Treat all parameters whose size is
5370         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
5371         stack checking is enabled.
5372         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
5373         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
5374         if generic stack checking is enabled.
5375         (expand_function_end): Adjust for new behaviour of flag_stack_check.
5376         * reload1.c (reload): Likewise.
5377         * stmt.c (expand_decl): Assert that all automatic variables have
5378         fixed size at this point and remove dead code.
5379         * flags.h (stack_check_type): New enumeration type.
5380         (flag_stack_check): Declare.
5381         * toplev.c (flag_stack_check): New global variable.
5382         * Makefile.in (opts.o): Add dependency on EXPR_H.
5383         (explow.o): Add dependency on except.h.
5384
5385 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
5386
5387         * config/avr/avr.c (avr_override_options): Reduce value of
5388         PARAM_INLINE_CALL_COST.
5389
5390 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
5391
5392         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
5393         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
5394         lieu of TYPE_MODE (type) throughout.
5395
5396 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
5397
5398         * config/arm/arm.c (add_minipool_backward_ref): Check for
5399         8-byte-aligned entries in second case of forcing insertion after a
5400         particular entry.  Change third case to avoid inserting
5401         non-8-byte-aligned entries before 8-byte-aligned ones.
5402
5403 2008-08-15  Richard Guenther  <rguenther@suse.de>
5404
5405         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
5406         strip components for unknown size accesses.
5407
5408 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
5409
5410         * config/s390/2097.md New file.
5411         * config/s390/s390.md ("z10prop" attribute): Define none,
5412         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
5413         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
5414         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
5415         possible values and apply them to insns as appropriate.
5416         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
5417         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
5418         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
5419         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
5420         ("bfp" mode attribute): Removed.  Every occurence replaced
5421         with <mode>.
5422         * config/s390/s390.c (struct "z10_cost"): Updated entries.
5423         * config/s390/2084.md (insn_reservation "x_itof"): Updated
5424         type attribute.
5425
5426 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5427
5428         PR c/28152
5429         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
5430         for keywords.
5431
5432 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
5433
5434         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
5435         additional argument. Support reduction when duplication is needed due
5436         to data-types of different sizes in the loop.
5437         (get_initial_def_for_induction): Fix printout.
5438         (vect_get_vec_def_for_stmt_copy): Support case where the
5439         vec_stmt_for_operand is a phi node.
5440         (vectorizable_reduction): Support reduction when duplication is needed
5441         due to data-types of different sizes in the loop.
5442         (vectorizable_call): Remove restriction to not vectorize in case we
5443         have data-types of different sizes in the loop.
5444         (vectorizable_conversion): Likewise.
5445         (vectorizable_operation): Likewise.
5446         (vectorizable_type_demotion): Likewise.
5447         (vectorizable_type_promotion): Likewise.
5448         (vectorizable_induction): Add restriction to not vectorize in case
5449         we have data-types of different sizes in the loop.
5450
5451 2008-08-14  Christophe Saout  <christophe@saout.de>
5452             Uros Bizjak  <ubizjak@gmail.com>
5453
5454         PR target/37101
5455         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
5456         (*vec_concatv2di_rex64_sse4_1): Ditto.
5457         (*vec_concatv2di_rex64_sse): Ditto.
5458
5459 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
5460
5461         PR middle-end/37103
5462         * fold-const.c (fold_widened_comparison): Do not allow
5463         sign changes that change the result even if shorter type
5464         is wider than arg1_unw's type.
5465
5466 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
5467
5468         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
5469         Skip if the multilib testing specifies -march that does not
5470         agree with the one specified in the testcase.
5471
5472 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
5473
5474         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
5475         zero extend SImode values being converted to TFmode before passing
5476         to libcalls.
5477
5478 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5479
5480         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5481         __PPU__ when targeting the Cell/B.E. PPU processor.
5482
5483 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
5484
5485         * gimple.h (gimple_call_set_chain): Accept SSA variables.
5486         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
5487         Rematerialize the static chain, if any.
5488         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
5489         static chain.
5490
5491 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
5492
5493         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
5494         (new_loc_descr): Likewise.
5495         (add_loc_descr): Likewise.
5496         (size_of_loc_descr): Likewise.
5497         (size_of_locs): Likewise.
5498         (output_loc_operands): Likewise.
5499         (output_loc_sequence): Likewise.
5500         (new_reg_loc_descr): New.
5501         (build_cfa_loc): Use it.
5502         (build_cfa_aligned_loc): Likewise.
5503         (one_reg_loc_descriptor): Likewise.
5504         (based_loc_descr): Likewise.
5505
5506 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5507
5508         PR 30551
5509         * doc/invoke.texi (Wmain): Update.
5510         * c-decl.c (start_decl): warn_main is only 0 or 1.
5511         (start_function): Likewise. Fix formatting.
5512         (finish_function): Delete redundant warning.
5513         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
5514         * c-opts (c_common_handle_option): -Wall only has effect if
5515         warn_main is uninitialized. OPT_Wmain is automatically
5516         handled. -pedantic also enables Wmain.
5517         (c_common_post_options): Handle all logic for Wmain here.
5518         * c-common.c (warn_main): Delete.
5519         (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
5520         * c-common.h (warn_main): Delete.
5521
5522 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
5523
5524         PR middle-end/36701
5525         * expr.c (emit_group_store): Allocate stack temp with the
5526         largest alignment when copying from register to stack.
5527
5528 2008-08-13  Richard Guenther  <rguenther@suse.de>
5529
5530         * tree.h (maybe_fold_offset_to_address): Declare.
5531         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
5532         (ccp_fold): Handle pointer conversions the same as fold_stmt.
5533         Likewise for POINTER_PLUS_EXPR.
5534         (maybe_fold_offset_to_reference): Enable disabled code.
5535         (maybe_fold_offset_to_address): New function.
5536         (fold_stmt_r): Use it.
5537         (fold_gimple_assign): Likewise.
5538         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
5539         (gimplify_expr): Likewise.
5540
5541 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5542
5543         * toplev.h (pedwarn_at): Fix declaration.
5544
5545 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
5546
5547         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
5548         LINK_SPEC): Use %R in -Y P argument.
5549
5550 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5551
5552         PR c/15236
5553         * diagnostic.c (pedwarn_at): New.
5554         * toplev.h (pedwarn_at): Declare.
5555         * c-tree.h (build_enumerator): Update declaration.
5556         * c-decl.c (finish_enum): Update comment.
5557         (build_enumerator): Take a location parameter. Give a pedwarn but do
5558         not perform any conversion.
5559         * c-parser.c (c_parser_enum_specifier): Set correct location for
5560         enumerator.
5561
5562 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5563
5564         PR 35635
5565         * c-common.c (conversion_warning): Use a switch. Ignore boolean
5566         expressions except for conversions to signed:1 bitfields. Handle
5567         COND_EXPR with constant operands.
5568
5569 2008-08-13  Richard Guenther  <rguenther@suse.de>
5570
5571         PR tree-optimization/15255
5572         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
5573         (struct oecount_s): New struct and VEC types.
5574         (cvec): New global.
5575         (oecount_hash): New function.
5576         (oecount_eq): Likewise.
5577         (oecount_cmp): Likewise.
5578         (zero_one_operation): New function.
5579         (build_and_add_sum): Likewise.
5580         (undistribute_ops_list): Perform un-distribution of multiplication
5581         and division on the chain of summands.
5582         (should_break_up_subtract): Also break up subtracts for factors.
5583         (reassociate_bb): Delete dead visited statements.
5584         Call undistribute_ops_list.  Re-sort and optimize if it did something.
5585         * passes.c (init_optimization_passes): Move DSE before
5586         reassociation.
5587         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
5588         PHI nodes.
5589
5590 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
5591
5592         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
5593
5594         * doc/invoke.texi: Revert unintended checkin.
5595
5596 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
5597
5598         PR libgomp/26165
5599         * gcc.c (include_spec_function): Tweak call to find_a_file.
5600
5601 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
5602
5603         PR middle-end/37014
5604         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
5605         and TRUTH_ORIF_EXPR.
5606         * dojump.c (do_jump): Likewise.
5607
5608         PR tree-optimization/37084
5609         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
5610         if id->regimplify, don't assume stmt is a cast assignment.
5611
5612 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
5613
5614         * final.c (final_scan_insn): Use app_enable/app_disable functions.
5615
5616 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5617
5618         PR bootstrap/37097
5619         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
5620         by last change.
5621
5622 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5623
5624         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
5625         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
5626
5627         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
5628         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
5629         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
5630         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
5631         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
5632
5633         * doc/tm.texi (Storage Layout): Remove documentation for
5634         TARGET_FLOAT_FORMAT.
5635
5636         * simplify-rtx.c (simplify_binary_operation_1): Replace
5637         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
5638
5639 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5640
5641         * real.h (struct real_format): New member has_sign_dependent_rounding.
5642         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
5643         spu_single_format, ieee_double_format, mips_double_format,
5644         motorola_double_format, ieee_extended_motorola_format,
5645         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
5646         ieee_extended_intel_96_round_53_format, ibm_extended_format,
5647         mips_extended_format, ieee_quad_format, mips_quad_format,
5648         vax_f_format, vax_d_format, vax_g_format): Initialize it.
5649         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
5650
5651         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
5652         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
5653         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
5654         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
5655         (ROUND_TOWARDS_ZERO): Likewise.
5656
5657         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
5658         (FLOAT_MODE_FORMAT): New macro.
5659         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
5660         (MODE_COMPOSITE_P): ... this new macro.
5661         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
5662         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
5663         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
5664
5665         * flags.h: Include "real.h".
5666
5667         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
5668         REAL_MODE_FORMAT_COMPOSITE_P.
5669         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
5670
5671         * doc/tm.texi (Storage Layout): Remove documentation of
5672         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
5673         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
5674         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
5675         they only apply to libgcc2.a.
5676
5677 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5678
5679         * config/spu/float_disf.c: New file.
5680         * config/spu/float_unsdisf.c: New file.
5681         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
5682         (LIB2FUNCS_EXCLUDE): Define.
5683
5684 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5685             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5686
5687         * real.h (struct real_format): New member round_towards_zero.
5688         * real.c (round_for_format): Respect fmt->round_towards_zero.
5689         (ieee_single_format, mips_single_format, motorola_single_format,
5690         spu_single_format, ieee_double_format, mips_double_format,
5691         motorola_double_format, ieee_extended_motorola_format,
5692         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
5693         ieee_extended_intel_96_round_53_format, ibm_extended_format,
5694         mips_extended_format, ieee_quad_format, mips_quad_format,
5695         vax_f_format, vax_d_format, vax_g_format): Initialize it.
5696         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
5697
5698         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
5699         real_format to choose rounding mode when calling MPFR functions.
5700         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
5701         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
5702
5703         * real.h (real_to_decimal_for_mode): Add prototype.
5704         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
5705         Respect target rounding mode when generating decimal representation.
5706         (real_to_decimal): New stub for backwards compatibility.
5707         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
5708         real_to_decimal_for_mode instead of real_to_decimal.
5709
5710         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
5711
5712 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5713             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5714
5715         * real.c (spu_single_format): New variable.
5716         * real.h (spu_single_format): Declare.
5717
5718         * config/spu/spu.c (spu_override_options): Install SFmode format.
5719         (spu_split_immediate): Use integer mode to operate on pieces of
5720         floating-point values in all cases.
5721
5722         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
5723         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
5724         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
5725
5726 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5727
5728         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
5729
5730 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5731
5732         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
5733
5734 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
5735
5736         PR c++/36688
5737         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
5738         on the VAR_DECL instead of TYPE_READONLY on its type.
5739
5740 2008-08-12  Ira Rosen  <irar@il.ibm.com>
5741
5742         * tree-vectorizer.c: Depend on langhooks.h.
5743         (supportable_widening_operation): Add two arguments. Support double
5744         type conversions.
5745         (supportable_narrowing_operation): Likewise.
5746         * tree-vectorizer.h (supportable_widening_operation): Add two
5747         arguments.
5748         (supportable_narrowing_operation): Likewise.
5749         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
5750         supportable_widening_operation with correct arguments.
5751         * tree-vect-transform.c (vectorizable_conversion): Likewise.
5752         (vectorizable_type_demotion): Support double type conversions.
5753         (vectorizable_type_promotion): Likewise.
5754         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
5755
5756 2008-08-11  Michael Matz  <matz@suse.de>
5757
5758         * i386/i386.c (override_options): Move initialisation from
5759         flag_schedule_insns_after_reload to here from ...
5760         (optimization_options): ... here.
5761
5762 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
5763
5764         PR rtl-optimization/36998
5765         * dwarf2out.c (compute_barrier_args_size_1,
5766         compute_barrier_args_size): Temporarily remove assertions.
5767
5768 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5769
5770         PR middle-end/20644
5771         * tree-ssa.c (struct walk_data): Add new flag
5772         warn_possibly_uninitialized.
5773         (warn_uninitialized_var): Use it.
5774         (warn_uninitialized_vars): New.
5775         (execute_early_warn_uninitialized): Call it.
5776         (execute_late_warn_uninitialized): Likewise.
5777
5778 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5779
5780         PR middle-end/36238
5781         * reload1.c (gen_reload): Guard calls to get_secondary_mem
5782         for memory subregs.
5783
5784 2008-08-09  Jan Hubicka  <jh@suse.cz>
5785
5786         PR target/37055
5787         * optabs.c (maybe_emit_unop_insn): Remove produced code if
5788         expansion failed.
5789         (expand_fix): Be prepared for expansion to fail.
5790         (expand_sfix_optab): Remove instructions if expansion failed.
5791
5792 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
5793
5794         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
5795         avr31 architecture.
5796         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
5797         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5798
5799 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5800
5801         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
5802         mips/t-libgcc-mips16 to tmake_file.
5803         * config/mips/mips-protos.h (mips_call_type): New enum.
5804         (mips_pic_base_register, mips_got_load): Declare.
5805         (mips_restore_gp): Take an rtx argument.
5806         (mips_use_pic_fn_addr_reg_p): Declare.
5807         (mips_expand_call): Replace the sibcall_p argument with
5808         a mips_call_type argument.  Add a lazy_p parameter.
5809         (mips_split_call): Declare.
5810         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
5811         (MIPS16_PIC_TEMP): Likewise.
5812         (reg_class): Delete M16_NA_REGS.
5813         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
5814         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
5815         (mips_split_hi_p): Declare.
5816         * config/mips/mips.c (mips_split_hi_p): New array.
5817         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
5818         (mips_got_symbol_type_p): New function.
5819         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
5820         (mips16_stub_function_p): New function.
5821         (mips16_local_function_p): Likewise.
5822         (mips_use_pic_fn_addr_reg_p): Likewise.
5823         (mips_cannot_force_const_mem): Return false for HIGHs.
5824         Extend CONST_INT and symbolic handling to MIPS16, using
5825         mips_symbol_insns to check that the base symbol type is a
5826         legitimate constant.  Reject GOT-based constants if
5827         TARGET_MIPS16_PCREL_LOADS.
5828         (mips_const_insns): Check targetm.cannot_force_const_mem when
5829         decomposing a symbolic base and a large offset.
5830         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
5831         When calling a function that needs $25 from MIPS16 code,
5832         move the target address into $25 separately and add a USE
5833         to the call insn.
5834         (mips16_gp_pseudo_reg): Insert the initializer immediately
5835         before the first real insn.
5836         (mips_pic_base_register, mips_got_load): New functions.
5837         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
5838         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
5839         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
5840         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
5841         (mips_call_tls_get_addr): Update the call to mips_expand_call,
5842         also passing NULL_RTX rather than const0_rtx as the aux argument.
5843         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
5844         instead of TARGET_EXPLICIT_RELOCS.
5845         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
5846         (mips_load_call_address): Replace the sibcall_p argument with
5847         a mips_call_type argument.  Use mips_got_load.
5848         (mips16_local_alias): New structure.
5849         (mips16_local_aliases): New variable.
5850         (mips16_local_aliases_hash): New function.
5851         (mips16_local_aliases_eq): Likewise.
5852         (mips16_local_alias): Likewise.
5853         (mips16_stub_function): Likewise.
5854         (mips16_build_function_stub): Create a local alias for the target
5855         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
5856         .cpload directive and an R_MIPS_NONE relocation for the target
5857         function, then load the alias rather than the function itself.
5858         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
5859         (mips16_copy_fpr_return_value): Use mips16_stub_function and
5860         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
5861         (mips16_build_call_stub): Replace the FN parameter with an
5862         FN_PTR parameter.  Force the address into a register if it
5863         isn't a call_insn_operand; don't rely on the caller to do this.
5864         If a call to a locally-defined and locally-binding MIPS16
5865         function must be made indirectly, redirect the call to the
5866         function's local alias.  Use mips16_stub_function_p,
5867         mips16_stub_function, mips_expand_call and use_reg.
5868         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
5869         Use explicit %hi and %lo accesses where possible.
5870         Use MIPS_CALL to generate the correct code form of a
5871         jal instruction.  Add clobbers of $18 instead of uses.
5872         Update the call to mips_emit_call_insn.
5873         (mips_expand_call): Replace the SIBCALL_P argument with a
5874         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
5875         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
5876         allowing it to modify the call address.  Update the calls to
5877         mips_load_call_address and mips_emit_call_insn.
5878         (mips_split_call): New function.
5879         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
5880         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
5881         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
5882         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
5883         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
5884         if TARGET_MIPS16.
5885         (mips_cprestore_slot): New function.
5886         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
5887         and use mips_cprestore_slot.
5888         (mips_output_function_prologue): Handle TARGET_MIPS16 for
5889         LOADGP_OLDABI.
5890         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
5891         then use a copygp_mips16 instruction to set up $28.
5892         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
5893         (mips16_lay_out_constants): Call split_all_insns_noflow.
5894         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
5895         false if TARGET_MIPS16.
5896         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
5897         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
5898         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
5899         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
5900         MIPS16 code.  Allow MIPS16 o32 PIC.
5901         (mips_override_options): Allow MIPS16 o32 PIC.
5902         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
5903         after reload if TARGET_USE_GOT.
5904         (UNSPEC_COPYGP): New constant.
5905         (length): Use a default length of 8 for MIPS16 GOT loads.
5906         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
5907         (*got_page<mode>): Check mips_split_hi_p.
5908         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
5909         (unspec_got<mode>, unspec_call<mode>): New expanders.
5910         (load_got<mode>, load_call<mode>): Remove the length attributes.
5911         Use a got attribute instead of a type attribute.
5912         (copygp_mips16): New insn.
5913         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
5914         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
5915         (sibcall, sibcall_value, call, call_value): Update the calls
5916         to mips_expand_call.
5917         (call_internal, call_value_internal): Use mips_split_call.
5918         (call_value_multiple_internal): Likewise.
5919         (call_split): Move after call_internal (the insn it is split from).
5920         (call_internal_direct, call_value_internal_direct): Turn into
5921         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
5922         (call_direct_split, call_value_direct_split): New patterns.
5923         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
5924         and use M16_REGS instead of M16_NA_REGS.
5925         * config/mips/predicates.md (const_call_insn_operand): Replace
5926         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
5927         mips_use_pic_fn_addr_reg_p check.
5928         (move_operand): Reject HIGHs if mips_split_hi_p.
5929         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
5930         (__mips16_floatunsisf): Inline __mips16_floatsisf.
5931         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
5932         * config/mips/libgcc-mips16.ver: New file.
5933         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
5934         $(srcdir)/config/mips/libgcc-mips16.ver.
5935
5936 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5937
5938         * config/mips/mips.c (mips_unspec_address_offset): Move earlier
5939         in file.
5940         (mips_unspec_address, mips_unspec_offset_high): Likewise.
5941         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
5942         (mips16_cfun_returns_in_fpr_p): Likewise.
5943
5944 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5945
5946         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
5947         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
5948         rather than 4 to PC.
5949
5950 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5951
5952         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
5953         (FUNCTION_PROFILER): Save the static chain pointer into $2
5954         beforehand and restore it aftewards.
5955         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
5956         address directly into $25 and call the function through $25;
5957         do not clobber $3.  Pad the DImode version to cover the space
5958         left by the deleted $25 <- $3 move.
5959         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
5960         the removal of the $25 <- $3 move.
5961         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
5962         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
5963
5964 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5965             Daniel Jacobowitz  <dan@codesourcery.com>
5966
5967         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
5968         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
5969         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
5970         * config/mips/mips.c (mips_start_function_definition): New function.
5971         (mips_end_function_definition): Likewise.
5972         (mips_output_function_prologue): Use mips_start_function_definition.
5973         (mips_output_function_epilogue): Use mips_end_function_definition.
5974         (build_mips16_function_stub): Use mips_start_function_definition
5975         and mips_end_function_definition.
5976         (build_mips16_call_stub): Likewise.
5977
5978 2008-08-09  Richard Guenther  <rguenther@suse.de>
5979
5980         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
5981         * gimple.h (gimple_call_fn): Adjust comment.
5982         (gimple_call_set_fndecl): New function.
5983         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
5984         longer having bare FUNCTION_DECL operand.
5985         (gimple_call_return_type): Likewise.
5986         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
5987
5988         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
5989         (gimple_mod_pow2): Likewise.
5990         (gimple_mod_subtract): Likewise.
5991         (gimple_ic): Likewise.
5992         (gimple_stringop_fixed_value): Likewise.
5993         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
5994         longer having bare FUNCTION_DECL operand.
5995         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
5996         * omp-low.c (optimize_omp_library_calls): Likewise.
5997         * cgraphunit.c (update_call_expr): Likewise.
5998         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5999         (execute_convert_to_rsqrt): Likewise.
6000         * cfgexpand.c (gimple_to_tree): Simplify.
6001         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
6002         bare FUNCTION_DECL operand.
6003         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
6004         (convert_gimple_call): Use gimple_call_fndecl.
6005         * c-common.c (c_warn_unused_result): Likewise.
6006
6007 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6008
6009         PR c/17880
6010         * c-typeck.c (digest_init): Call verify_sequence_points from here.
6011         (c_finish_return): Likewise.
6012         (c_start_case): Likewise.
6013         * c-common.c (warn_for_collisions_1): Use explicit location in warning.
6014         * c-parser.c (c_parser_condition): New. Call
6015         verify_sequence_points.
6016         (c_parser_paren_condition): Call c_parser_condition.
6017         (c_parser_for_statement): Call c_parser_condition.
6018
6019 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6020
6021         PR 36901
6022         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
6023         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
6024         Moved from diagnostic.h
6025         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
6026         DK_PERMERROR.
6027         (emit_diagnostic): New.
6028         (warning0, pedwarn0): Delete.
6029         (warning, warning_at, pedwarn, permerror): Return bool.
6030         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
6031         Moved to diagnostic.c.
6032         (struct diagnostic_context): Use correct type for
6033         classify_diagnostic.
6034         (diagnostic_report_diagnostic): Update declaration.
6035         (emit_diagnostic): Declare.
6036         * errors.c (warning): Return bool.
6037         * errors.h (warning): Update declaration.
6038         * toplev.h (warning0, pedwarn0): Delete.
6039         (warning, warning_at, pedwarn, permerror): Return bool.
6040         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
6041         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
6042         inform. Update all calls.
6043         (diagnose_mismatched_decls): Check return value of warning/pedwarn
6044         before giving informative note.
6045         (implicit_decl_warning): Likewise.
6046         * c-typeck.c (build_function_call): Likewise.
6047         * tree-sssa.c (warn_uninit): Likewise.
6048         * builtins.c (gimplify_va_arg_expr): Likewise.
6049
6050 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6051
6052         PR 7651
6053         * doc/invoke.texi (-Wextra): Move warning from here...
6054         (-Wuninitialized): ... to here.
6055
6056 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6057
6058         PR 28875
6059         * flags.h (set_Wunused): Delete
6060         * toplev.c (process_options): Handle Wunused flags here.
6061         * opts.c (maybe_warn_unused_parameter): Delete.
6062         (common_handle_option): Replace set_Wunused by warn_unused.
6063         (set_Wextra): Do not handle Wunused-parameter here.
6064         (set_Wunused): Delete.
6065         * c-opts.c (c_common_handle_option): Replace set_Wunused by
6066         warn_unused.
6067         * common.opt (Wunused): Add Var and Init.
6068         (Wunused-function): Likewise.
6069         (Wunused-label): Likewise.
6070         (Wunused-parameter): Likewise.
6071         (Wunused-value): Likewise.
6072         (Wunused-variable): Likewise.
6073
6074 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
6075
6076         * doc/invoke.texi: Add cpu_type power7.
6077         * config.in (HAVE_AS_VSX): New.
6078         * config.gcc: Add cpu_type power7.
6079         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
6080         VSX instructions.
6081         * configure: Regenerate.
6082         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
6083         power5.
6084         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
6085         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
6086         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
6087
6088 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
6089
6090         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
6091         type to vectorize.builtin_conversion.
6092         (vectorizable_conversion): Likewise.
6093         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
6094         integral type as input.
6095         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
6096         FIX_TRUNC_EXPR.
6097         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
6098         and ALTIVEC_BUILTIN_VCTSXS.
6099         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
6100         formatting.
6101
6102 2008-08-08  Richard Guenther  <rguenther@suse.de>
6103
6104         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
6105         (surely_varying_stmt_p): Calls are varying only if they are
6106         non-builtin and not indirect or have no result.
6107         (ccp_fold): Re-instantiate code before the tuples merge.
6108
6109 2008-08-08  Richard Guenther  <rguenther@suse.de>
6110
6111         PR tree-optimization/37056
6112         * gimple.h (gimple_assign_rhs_class): New helper function.
6113         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
6114         unary operations properly.
6115
6116 2008-08-07  Jan Hubicka  <jh@suse.cz>
6117
6118         * i386.h (ix86_size_cost): Declare.
6119         (ix86_cur_cost): New function macro.
6120         * i386.md (peepholes expanding size and splitters): Predicate by
6121         optimize_insn_for_speed_p.
6122         (peepholes reduce size and splitters): Predicate by
6123         optimize_insn_for_size_p.
6124         * i386.c (ix86_size_cost): Rename from ...
6125         (size_cost): This one.
6126         (override_options): Update.
6127         (decide_alg): Likewise.
6128         (ix86_expand_clear): Use RTL profile.
6129         (ix86_pad_returns): Use RTL profile.
6130
6131 2008-08-07  Jan Hubicka  <jh@suse.cz>
6132
6133         * recog.c (split_all_insns): Set RTL profile
6134         (peephole2_optimize): Likewise.
6135         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6136         * combine.c (combine_instructions): Likewise.
6137
6138 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6139
6140         * c-common.c (c_common_reswords): Also warn about keyword "bool".
6141
6142 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
6143
6144         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
6145         value in a6 after the set_frame_ptr insn.
6146
6147 2008-08-07  Richard Henderson  <rth@redhat.com>
6148
6149         PR debug/37033
6150         * gcc.c (cpp_options): Pass along -g*.
6151
6152 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
6153
6154         * config/arm/arm.c (output_move_neon): Update comment describing
6155         big-endian vector layout.
6156         (arm_assemble_integer): Do not handle big-endian NEON vectors
6157         specially.
6158         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
6159         neon_vget_lane<mode>_sext_internal,
6160         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
6161         element indices for big-endian.
6162
6163 2008-08-07  Richard Henderson  <rth@redhat.com>
6164
6165         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
6166         * configure, config.in: Rebuild.
6167         * debug.h (dwarf2out_do_cfi_asm): Declare.
6168         * c-cppbuiltin.c (c_cpp_builtins): Use it.
6169         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
6170         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
6171         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
6172
6173 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
6174
6175         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6176         movv2si_internal): Combine into mov<mode>_internal.
6177         (movv2si_internal_2): Remove.
6178
6179 2008-08-07  Jan Hubicka  <jh@suse.cz>
6180
6181         PR target/37048
6182         * i386.md (single stringop patterns): Enable unconditionally.
6183
6184 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
6185
6186         PR target/36992
6187         * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
6188
6189         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
6190         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
6191
6192         * config/i386/sse.md (sse2_movq128): New.
6193
6194         * doc/extend.texi: Document __builtin_ia32_movq128.
6195
6196 2008-08-07  Richard Guenther  <rguenther@suse.de>
6197
6198         PR middle-end/37042
6199         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
6200         pointers can access anything.
6201
6202 2008-08-06  Jan Hubicka  <jh@suse.cz>
6203
6204         * optabs.c (emit_unop_insn): Break out to ...
6205         (maybe_emit_unop_insn): ... this one.
6206         (expand_sfix_optab): Use maybe variant.
6207         * optabs.h (maybe_emit_unop_insn): Declare.
6208
6209         * i386.md (mov0 patterns): Enable by default.
6210         (FP conversion expanders): Disable expansion of code expanding
6211         sequences when instruction should be optimized for size.
6212         (single strinop patterns): Enable when optimizing for size.
6213         (string expanders): Disable expanding of code expanding sequences
6214         when optimizning instruction for size.
6215         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
6216         per BB basis.
6217         (ix86_fp_comparison_sahf_cost): Likewise.
6218         (ix86_expand_branch): Likewise.
6219         (ix86_expand_ashl_const): Likewise.
6220         (ix86_split_ashl): Likewise.
6221         (ix86_expand_strlen): Likewise.
6222         (ix86_emit_fp_unordered_jump): Likewie.
6223
6224 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6225
6226         * c-common.c: Fix typo.
6227         (c_common_reswords): Activate more C++ keyword warnings.
6228
6229         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
6230
6231 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6232
6233         PR 26785
6234         * diagnostic.c (permerror_at): New.
6235         * toplev.h (permerror_at): Declare.
6236
6237 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
6238             Ira Rosen  <irar@il.ibm.com>
6239
6240         * tree-vect-transform.c (vect_model_simple_cost): Return
6241         immediately if stmt is pure SLP.
6242         (vect_model_store_cost): Ditto.
6243         (vect_model_load_cost): Ditto.
6244         (vectorizable_store): Remove PURE_SLP check before call
6245         to vect_model_store_cost.
6246         (vect_model_store_cost): When checking whether stmt describe
6247         strided access, add a check that it is not slp_node.
6248
6249 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6250
6251         PR 8715
6252         * c-common.c (warn_for_sign_compare): New. Handle separately the
6253         case that 'constant' is zero.
6254         * c-typeck.c (build_binary_op): Move code to c-common.c
6255
6256 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6257
6258         * config/alpha/alpha.c (alpha_preferred_reload_class,
6259         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
6260         alpha_output_mi_thunk_osf): Avoid C++ keywords.
6261         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
6262         * config/arm/arm.md: Likewise.
6263         * config/avr/avr-protos.h (preferred_reload_class,
6264         test_hard_reg_class, avr_simplify_comparison_p,
6265         out_shift_with_cnt, class_max_nregs): Likewise.
6266         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
6267         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
6268         preferred_reload_class, test_hard_reg_class): Likewise.
6269         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
6270         bfin_memory_move_cost, bfin_secondary_reload,
6271         bfin_output_mi_thunk): Likewise.
6272         * config/crx/crx.c (crx_secondary_reload_class,
6273         crx_memory_move_cost): Likewise.
6274         * config/frv/frv-protos.h (frv_secondary_reload_class,
6275         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
6276         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
6277         frv_secondary_reload_class, frv_class_likely_spilled_p,
6278         frv_class_max_nregs): Likewise.
6279         * config/h8300/h8300.c (h8300_classify_operand,
6280         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
6281         Likewise.
6282         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
6283         * config/ia64/ia64.c (ia64_preferred_reload_class,
6284         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
6285         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
6286         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
6287         Likewise.
6288         * config/m68hc11/m68hc11.c (preferred_reload_class,
6289         m68hc11_memory_move_cost): Likewise.
6290         * config/mcore/mcore.c (mcore_secondary_reload_class,
6291         mcore_reload_class): Likewise.
6292         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
6293         mips_class_max_nregs, mips_cannot_change_mode_class,
6294         mips_preferred_reload_class, mips_secondary_reload_class,
6295         mips_output_mi_thunk): Likewise.
6296         * config/mmix/mmix.c (mmix_preferred_reload_class,
6297         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
6298         Likewise.
6299         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
6300         Likewise.
6301         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
6302         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
6303         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6304         * config/rs6000/rs6000.c (paired_expand_vector_init,
6305         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
6306         compare_section_name, rs6000_memory_move_cost): Likewise.
6307         * config/s390/s390.c (s390_emit_compare_and_swap,
6308         s390_preferred_reload_class, s390_secondary_reload,
6309         legitimize_pic_address, legitimize_tls_address,
6310         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
6311         s390_class_max_nregs): Likewise.
6312         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6313         * config/s390/s390.md: Likewise.
6314         * config/score/score-protos.h (score_secondary_reload_class,
6315         score_preferred_reload_class): Likewise.
6316         * config/score/score.c (score_preferred_reload_class,
6317         score_secondary_reload_class): Likewise.
6318         * config/score/score3.c (score3_output_mi_thunk,
6319         score3_preferred_reload_class, score3_secondary_reload_class,
6320         score3_hard_regno_mode_ok): Likewise.
6321         * config/score/score3.h (score3_preferred_reload_class,
6322         score3_secondary_reload_class): Likewise.
6323         * config/score/score7.c (score7_output_mi_thunk,
6324         score7_preferred_reload_class, score7_secondary_reload_class,
6325         score7_hard_regno_mode_ok): Likewise.
6326         * config/score/score7.h (score7_preferred_reload_class,
6327         score7_secondary_reload_class): Likewise.
6328         * config/sh/sh.c (prepare_move_operands, output_far_jump,
6329         output_branchy_insn, add_constant, gen_block_redirect,
6330         sh_insn_length_adjustment, sh_cannot_change_mode_class,
6331         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
6332         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6333         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
6334         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
6335         xstormy16_preferred_reload_class): Likewise.
6336         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
6337         xtensa_expand_atomic, override_options,
6338         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
6339         Likewise.
6340         * reorg.c (try_merge_delay_insns): Likewise.
6341         * tree.c (merge_dllimport_decl_attributes): Likewise.
6342
6343         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
6344
6345 2008-08-06  Michael Matz  <matz@suse.de>
6346
6347         * Makefile.in (write_entries_to_file): Quote words.
6348         * gengtype.c: (read_input_line): Skip over leading white-space.
6349
6350 2008-08-06  Marc Gauthier  <marc@tensilica.com>
6351
6352         * config.gcc: Match more processor names for Xtensa.
6353         * configure.ac: Likewise.
6354         * doc/install.texi (Specific): Likewise.
6355         * configure: Regenerate.
6356
6357 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6358
6359         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
6360         * calls.c (avoid_likely_spilled_reg): Likewise.
6361         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
6362         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
6363         * config/i386/i386.c (ix86_expand_special_args_builtin,
6364         ix86_secondary_reload): Likewise.
6365         * except.c (struct eh_region, gen_eh_region_catch,
6366         remove_unreachable_regions, duplicate_eh_regions,
6367         assign_filter_values, build_post_landing_pads,
6368         sjlj_find_directly_reachable_regions, remove_eh_handler,
6369         reachable_next_level, foreach_reachable_handler,
6370         can_throw_internal_1, can_throw_external_1,
6371         collect_one_action_chain): Likewise.
6372         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
6373         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
6374         * function.c (update_temp_slot_address, instantiate_new_reg,
6375         instantiate_virtual_regs_in_rtx,
6376         instantiate_virtual_regs_in_insn): Likewise.
6377         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
6378         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
6379         gimplify_cleanup_point_expr): Likewise.
6380         * ipa-cp.c (ipcp_lattice_changed): Likewise.
6381         * passes.c (next_pass_1): Likewise.
6382         * print-tree.c (print_node_brief, print_node): Likewise.
6383         * profile.c (branch_prob): Likewise.
6384         * tree-dump.c (dump_register): Likewise.
6385         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
6386         Likewise.
6387         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
6388         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
6389         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
6390         copy_arguments_for_versioning, copy_static_chain): Likewise.
6391         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
6392         add_new_name_mapping, register_new_name_mapping): Likewise.
6393         * tree-mudflap.c (mf_xform_derefs): Likewise.
6394         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
6395         get_init_expr, combine_chains): Likewise.
6396         * tree-pretty-print.c (dump_generic_node): Likewise.
6397         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
6398         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
6399         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
6400         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
6401
6402 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
6403
6404         PR middle-end/37010
6405         * calls.c (expand_call): Use the biggest preferred stack
6406         boundary.
6407
6408 2008-08-06  Michael Matz  <matz@suse.de>
6409
6410         PR target/36613
6411         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
6412         for reused reload, instead of overwriting them.
6413
6414 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
6415
6416         PR middle-end/37009
6417         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
6418         for incoming stack boundary.
6419
6420         * function.c (assign_parm_find_entry_rtl): Update
6421         parm_stack_boundary.
6422
6423         * function.h (rtl_data): Add parm_stack_boundary.
6424
6425         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
6426         parm_stack_boundary for incoming stack boundary.
6427
6428 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
6429
6430         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
6431         for unrepresentable subregs or treat them as equal to other regs
6432         or subregs with the same register number.
6433
6434 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
6435
6436         PR middle-end/35432
6437         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
6438         if want_value.
6439
6440 2008-08-06  Jan Hubicka  <jh@suse.cz>
6441
6442         * predict.c (maybe_hot_frequency_p): When profile is absent, all
6443         frequencies might be hot.
6444
6445 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
6446
6447         * reload.c (find_reloads): Force constants into literal pool
6448         also if they are wrapped in a SUBREG.
6449
6450 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
6451
6452         PR target/35659
6453         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
6454         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
6455         Don't allow predicated instructions for data speculation.
6456         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
6457         declaration.
6458
6459 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
6460
6461         * haifa-sched.c (extend_global): Split to extend_global_data and
6462         extend_region_data.  Update all uses.
6463         (extend_all): Rename to extend_block_data.
6464
6465 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
6466
6467         * sched-rgn.c (new_ready): Check if instruction can be
6468         speculatively scheduled before attempting speculation.
6469         (debug_rgn_dependencies): Remove wrongful assert.
6470
6471 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
6472
6473         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
6474
6475 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
6476
6477         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
6478         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
6479         va_size, and type_size.
6480
6481 2008-08-04  Jason Merrill  <jason@redhat.com>
6482
6483         PR c++/37016
6484         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
6485         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
6486
6487 2008-08-05  Richard Henderson  <rth@redhat.com>
6488
6489         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
6490         * configure: Rebuild.
6491
6492 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6493
6494         PR tree-opt/37024
6495         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
6496         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
6497         is a conversion.
6498
6499 2008-08-05  Richard Henderson  <rth@redhat.com>
6500
6501         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
6502         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
6503         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
6504         * common.opt (fdwarf2-cfi-asm): New.
6505         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
6506         * config.in, configure: Rebuild.
6507         * dwarf2asm.c (dw2_asm_output_data_raw): New.
6508         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
6509         New.
6510         (dw2_force_const_mem): Externalize.
6511         * dwarf2asm.h: Update.
6512         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
6513         generate a real label.
6514         (output_cfi_directive): New.
6515         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
6516         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
6517         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
6518         and .cfi_lsda.
6519         (dwarf2out_end_epilogue): Emit .cfi_endproc.
6520         (output_loc_operands_raw, output_loc_sequence_raw): New.
6521         (output_cfa_loc_raw): New.
6522
6523 2008-08-05  Paul Brook  <paul@codesourcery.com>
6524
6525         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
6526         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
6527         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
6528         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
6529         * config/arm/arm.h (TARGET_VFPD32): Define.
6530         (TARGET_VFP3): Use TARGET_VFPD32.
6531         (fputype): Add FPUTYPE_VFP3D16.
6532         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
6533         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
6534         * config/arm/arm-cores.def: Add cortex-r4f.
6535         * config/arm/arm-tune.md: Regenerate.
6536
6537 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6538
6539         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
6540         Reword some comments throughout the file.
6541
6542         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
6543         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
6544         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
6545         MFC_MIN_DMA_LIST_ELEMENTS.
6546         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
6547         MFC_MAX_DMA_LIST_ELEMENTS.
6548
6549         (MFC_START_ENABLE): Remove PPU-only define.
6550         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
6551         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
6552
6553         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
6554         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
6555         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
6556         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
6557         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
6558         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
6559         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
6560
6561         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
6562         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
6563         (mfc_sdcrt, mfc_sdcrtst): Likewise.
6564         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
6565
6566         (spu_read_machine_status): Fix typo.
6567
6568 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6569
6570         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
6571         SUBREG of multi-word hard register.
6572         * config/spu/spu.c (valid_subreg): Likewise.
6573         (adjust_operand): Handle SUBREGs of multi-word hard registers.
6574
6575 2008-08-04  Richard Guenther  <rguenther@suse.de>
6576
6577         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
6578         the candidate with the stripped base if that base is different
6579         from the original base even for offset zero.
6580
6581 2008-08-04  Richard Guenther  <rguenther@suse.de>
6582
6583         PR middle-end/36691
6584         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
6585         check for no_overflow.
6586
6587 2008-08-04  Richard Guenther  <rguenther@suse.de>
6588
6589         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
6590
6591 2008-08-04  Paul Brook  <paul@codesourcery.com>
6592
6593         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
6594         (arm_order_regs_for_local_alloc): New function.
6595         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
6596         prototype.
6597         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
6598
6599 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6600
6601         PR target/37012
6602         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
6603         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
6604         (ix86_expand_epilogue): Likewise.
6605
6606 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6607
6608         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
6609         in comments.
6610
6611 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
6612
6613         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
6614         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
6615         (*movv2sf_internal_rex64): Ditto.
6616
6617 2008-08-03  Jan Hubicka  <jh@suse.cz>
6618
6619         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
6620         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
6621         * expmed.c (expand_smod_pow2): Likewise.
6622
6623 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
6624
6625         PR target/36992
6626         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
6627         alternative 0 of operand 1.
6628         (*vec_concatv2di_rex64_sse): Ditto.
6629         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
6630         of operand 1.
6631         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
6632         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
6633         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
6634         (*movv2sf_internal_rex64): Ditto.
6635
6636 2008-08-02  Richard Guenther  <rguenther@suse.de>
6637
6638         PR target/35252
6639         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
6640         (ssedoublesizemode): New mode attribute.
6641         (sse_shufps): Call gen_sse_shufps_v4sf.
6642         (sse_shufps_1): Macroize.
6643         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
6644         (sse2_shufpd_1): Macroize.
6645         (vec_extract_odd, vec_extract_even): New expanders.
6646         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
6647         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
6648         * i386.c (ix86_expand_vector_init_one_nonzero): Call
6649         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
6650         (ix86_expand_vector_set): Likewise.
6651         (ix86_expand_reduc_v4sf): Likewise.
6652
6653 2008-08-01  Doug Kwan  <dougkwan@google.com>
6654
6655         * matrix-reorg.c: Re-enable all code.
6656         (struct malloc_call_data): Change CALL_STMT to gimple type.
6657         (collect_data_for_malloc_call): Tuplify.
6658         (struct access_site_info): Change STMT to gimple type.
6659         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
6660         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
6661         (struct free_info): Change STMT to gimple type.
6662         (struct matrix_access_phi_node):  Change PHI to gimple type.
6663         (get_inner_of_cast_expr): Remove.
6664         (may_flatten_matrices_1): Tuplify.
6665         (may_flatten_matrices): Ditto.
6666         (mark_min_matrix_escape_level): Ditto.
6667         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
6668         (ssa_accessed_in_call_rhs): New
6669         (ssa_accessed_in_assign_rhs): New
6670         (record_access_alloc_site_info): Tuplify.
6671         (add_allocation_site): Ditto.
6672         (analyze_matrix_allocation_site): Ditto.
6673         (analyze_transpose): Ditto.
6674         (get_index_from_offset): Ditto.
6675         (update_type_size): Ditto.
6676         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
6677         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
6678         (analyze_accesses_for_phi_node): Tuplify.
6679         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
6680         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
6681         (analyze_matrix_accesses): Tuplify.
6682         (check_var_data): New call-back type for check_var_notmodified_p.
6683         (check_var_notmodified_p): Tuplify and use call-back struct to
6684         return statement found.
6685         (can_calculate_expr_before_stmt): Factor out statement related code
6686         into ...
6687         (can_calculate_stmt_before_stmt): New.
6688         (check_allocation_function): Tuplify.
6689         (find_sites_in_func): Ditto.
6690         (record_all_accesses_in_func): Ditto.
6691         (transform_access_sites): Ditto.
6692         (transform_allocation_sites): Ditto.
6693         (matrix_reorg): Re-enable.
6694         (gate_matrix_reorg): Re-enable.
6695
6696 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
6697
6698         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
6699         for labels for which it hasn't been set yet.  If it has been set,
6700         stop walking insns and continue with next worklist item.
6701         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
6702         if the only BARRIER is at the very end of a function.
6703
6704 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6705
6706         * cfgexpand.c (expand_stack_alignment): Assert that
6707         stack_realign_drap and drap_rtx must match.
6708
6709         * function.c (instantiate_new_reg): If DRAP is used to realign
6710         stack, replace virtual_incoming_args_rtx with internal arg
6711         pointer.
6712
6713 2008-08-01  Richard Guenther  <rguenther@suse.de>
6714
6715         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
6716         loop information only if we initialized it.
6717         (execute_pre): Call fini_pre with in_fre.
6718         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
6719         if we do not unroll because we hit max-completely-peeled-insns.
6720         Use our estimation for consistency, do allow shrinking.
6721
6722 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6723
6724         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
6725         with MIN_STACK_BOUNDARY.
6726         (ix86_update_stack_boundary): Likewise.
6727         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
6728         STACK_BOUNDARY.
6729
6730         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
6731         (MIN_STACK_BOUNDARY): This.
6732
6733 2008-08-01  Richard Guenther  <rguenther@suse.de>
6734
6735         PR middle-end/36997
6736         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
6737
6738 2008-08-01  Richard Guenther  <rguenther@suse.de>
6739
6740         PR tree-optimization/36988
6741         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
6742         do not matter if that doesn't change volatile qualification.
6743
6744 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
6745
6746         * configure.ac: Do not generate libada-mk.  Do not subst
6747         host_cc_for_libada.
6748         * libada-mk.in: Remove.
6749         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
6750         * configure: Regenerate.
6751
6752 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
6753
6754         * tree-pass.h: Added comment about not dumping passes with name
6755         starting with star in struct opt_pass.
6756         * passes.c (register_dump_files_1): Don't do dump for a pass with
6757         name starting with star.
6758         * doc/passes.texi (Pass manager): Mention pass names and special
6759         meaning of star prefix to avoid dump.
6760
6761 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
6762
6763         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
6764         to MIPS64r2.
6765         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
6766         (ISA_MIPS64R2): New macro.
6767         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
6768         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
6769         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
6770         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
6771         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
6772         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
6773         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
6774         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
6775         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
6776         Move up to keep list alphabetically sorted.
6777         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
6778         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
6779         processor.
6780         * doc/invoke.texi (MIPS Options): Add -mips64r2.
6781         (-march=@var{arch}): Add mips64r2.
6782
6783 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6784
6785         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
6786
6787 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
6788
6789         * expr.c (expand_assignment): Check for complete type.
6790
6791 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6792
6793         PR debug/36977
6794         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
6795
6796         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
6797         for stack alignment.
6798
6799         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
6800
6801 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6802
6803         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
6804         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
6805
6806 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
6807
6808         PR rtl-optimization/36419
6809         * dwarf2out.c (barrier_args_size): New variable.
6810         (compute_barrier_args_size, compute_barrier_args_size_1): New
6811         functions.
6812         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
6813         if not called yet in the current function, use barrier_args_size
6814         array to find the new args_size value.
6815         (dwarf2out_frame_debug): Free and clear barrier_args_size.
6816
6817 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6818
6819         PR debug/36980
6820         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
6821         rule 19.
6822
6823 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6824
6825         PR debug/36976
6826         * dwarf2out.c (dwarf2out_args_size_adjust): New.
6827         (dwarf2out_stack_adjust): Use it.
6828         (dwarf2out_frame_debug_expr): Likewise.
6829
6830 2008-07-31  Richard Guenther  <rguenther@suse.de>
6831
6832         PR tree-optimization/36978
6833         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
6834         the generated condition.
6835
6836 2008-07-31  Richard Guenther  <rguenther@suse.de>
6837
6838         * passes.c (init_optimization_passes): Always call
6839         pass_early_warn_uninitialized.
6840         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
6841         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
6842         * doc/passes.texi (Warn for uninitialized variables): Adjust.
6843
6844 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
6845
6846         PR c/36970
6847         * builtins.c (maybe_emit_free_warning): New function.
6848         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
6849         maybe_emit_free_warning for BUILT_IN_FREE.
6850
6851         PR debug/36278
6852         * dwarf2out.c (get_context_die): New function.
6853         (force_decl_die, force_type_die): Use it.
6854         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
6855         returns NULL, force generation of DW_TAG_typedef and put that into
6856         DW_AT_import.
6857
6858         PR preprocessor/36649
6859         * c-pch.c (c_common_read_pch): Save and restore
6860         line_table->trace_includes across PCH restore.
6861
6862 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6863
6864         PR ada/36554
6865         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
6866
6867 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
6868
6869         PR 36974
6870         * final.c (call_from_call_insn): Handle COND_EXEC.
6871
6872 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
6873
6874         * builtins.c (std_gimplify_va_arg_expr): Replace
6875         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
6876         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6877
6878 2008-07-30  Joey Ye  <joey.ye@intel.com>
6879             H.J. Lu  <hongjiu.lu@intel.com>
6880
6881         * builtins.c (expand_builtin_setjmp_receiver): Replace
6882         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
6883         (expand_builtin_apply_args_1): Likewise.
6884         (expand_builtin_longjmp): Need DRAP for stack alignment.
6885         (expand_builtin_apply): Likewise.
6886
6887         * caller-save.c (setup_save_areas): Call assign_stack_local_1
6888         instead of assign_stack_local to allow alignment reduction.
6889
6890         * calls.c (emit_call_1): Need DRAP for stack alignment if
6891         return pops.
6892         (expand_call): Replace virtual_incoming_args_rtx with
6893         crtl->args.internal_arg_pointer.
6894         * stmt.c (expand_nl_goto_receiver): Likewise.
6895
6896         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
6897         alignment and store to stack_alignment_estimated and
6898         max_used_stack_slot_alignment.
6899         (expand_one_var): Likewise.
6900         (expand_stack_alignment): New function.
6901         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
6902         and stack_alignment_estimated fields in rtl_data.  Call
6903         expand_stack_alignment at end.
6904
6905         * defaults.h (INCOMING_STACK_BOUNDARY): New.
6906         (MAX_STACK_ALIGNMENT): Likewise.
6907         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
6908         (SUPPORTS_STACK_ALIGNMENT): Likewise.
6909
6910         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
6911         stack alignment when generating virtual registers.
6912
6913         * function.c (assign_stack_local): Renamed to ...
6914         (assign_stack_local_1): This.  Add a parameter to indicate
6915         if it is OK to reduce alignment.
6916         (assign_stack_local): Use it.
6917         (instantiate_new_reg): Instantiate virtual incoming args rtx
6918         to vDRAP if stack realignment and DRAP is needed.
6919         (assign_parms): Collect parameter/return type alignment and
6920         contribute to stack_alignment_estimated.
6921         (locate_and_pad_parm): Likewise.
6922         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
6923         with crtl->args.internal_arg_pointer.
6924
6925         * function.h (rtl_data): Add new field drap_reg,
6926         max_used_stack_slot_alignment, stack_alignment_estimated,
6927         stack_realign_needed, need_drap, stack_realign_processed and
6928         stack_realign_finalized.
6929         (stack_realign_fp): New macro.
6930         (stack_realign_drap): Likewise.
6931
6932         * global.c (compute_regsets): Frame pointer is needed when
6933         stack is realigned.  Can eliminate frame pointer when stack is
6934         realigned and dynamic realigned argument pointer isn't used.
6935
6936         * reload1.c (update_eliminables):  Frame pointer is needed
6937         when stack is realigned.
6938         (init_elim_table): Can eliminate frame pointer when stack is
6939         realigned and dynamic realigned argument pointer isn't used.
6940
6941         * rtl.h (assign_stack_local_1): Declare new funtion.
6942
6943         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
6944         (TARGET_GET_DRAP_RTX): Likewise.
6945         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
6946         TARGET_GET_DRAP_RTX.
6947
6948         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
6949
6950         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
6951         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
6952
6953 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
6954             H.J. Lu  <hongjiu.lu@intel.com>
6955
6956         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
6957         vdrap_reg, stack_realign and drap_reg_saved.
6958         (add_cfi): Don't allow redefining CFA when DRAP is used.
6959         (reg_save): Handle stack alignment.
6960         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
6961         alignment.  Don't generate DWARF information for (set fp sp)
6962         when DRAP is used.
6963         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
6964         to INVALID_REGNUM.
6965         (int_loc_descriptor): Move prototype forward.  Also define if
6966         DWARF2_UNWIND_INFO is true.
6967         (output_cfa_loc): Handle DW_CFA_expression.
6968         (build_cfa_aligned_loc): New.
6969         (based_loc_descr): Update assert for stack realign.  For local
6970         variables, use sp+offset when stack is aligned without drap and
6971         fp+offset when stack is aligned with drap.  For arguments, use
6972         cfa+offset when drap is used to align stack.
6973
6974 2008-07-30  Joey Ye  <joey.ye@intel.com>
6975             H.J. Lu  <hongjiu.lu@intel.com>
6976
6977         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
6978         Break long line.
6979         (ix86_gen_andsp): New.
6980         (ix86_user_incoming_stack_boundary): Likewise.
6981         (ix86_default_incoming_stack_boundary): Likewise.
6982         (ix86_incoming_stack_boundary): Likewise.
6983         (ix86_can_eliminate): Likewise.
6984         (find_drap_reg): Likewise.
6985         (ix86_update_stack_boundary): Likewise.
6986         (ix86_get_drap_rtx): Likewise.
6987         (ix86_finalize_stack_realign_flags): Likewise.
6988         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
6989         (TARGET_GET_DRAP_RTX): Likewise.
6990         (override_options): Overide option value for new options.
6991         (ix86_function_ok_for_sibcall): Remove check for
6992         force_align_arg_pointer.
6993         (ix86_handle_cconv_attribute): Likewise.
6994         (ix86_function_regparm): Likewise.
6995         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
6996         (ix86_va_start): Replace virtual_incoming_args_rtx with
6997         crtl->args.internal_arg_pointer.
6998         (ix86_select_alt_pic_regnum): Check DRAP register.
6999         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
7000         (ix86_compute_frame_layout): Compute frame layout wrt stack
7001         realignment.
7002         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
7003         (ix86_expand_prologue): Decide if stack realignment is needed
7004         and generate prologue code accordingly.
7005         (ix86_expand_epilogue): Generate epilogue code wrt stack
7006         realignment is really needed or not.
7007
7008         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
7009         (ABI_STACK_BOUNDARY): Likewise.
7010         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
7011         (STACK_REALIGN_DEFAULT): Likewise.
7012         (INCOMING_STACK_BOUNDARY): Likewise.
7013         (MAX_STACK_ALIGNMENT): Likewise.
7014         (ix86_incoming_stack_boundary): Likewise.
7015         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
7016         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
7017         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
7018         (machine_function): Remove force_align_arg_pointer.
7019
7020         * config/i386/i386.md (BX_REG): New.
7021         (R13_REG): Likewise.
7022
7023         * config/i386/i386.opt (mforce_drap): New.
7024         (mincoming-stack-boundary): Likewise.
7025         (mstackrealign): Add Init(-1).
7026
7027         * config/i386/i386-protos.h (ix86_can_eliminate): New
7028
7029 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
7030
7031         * doc/extend.texi: Update force_align_arg_pointer.
7032
7033         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
7034         -mstackrealign.
7035
7036         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
7037         (INCOMING_STACK_BOUNDARY): Likewise.
7038         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
7039         (TARGET_GET_DRAP_RTX): Likewise.
7040
7041 2008-07-30  Andreas Schwab  <schwab@suse.de>
7042
7043         PR rtl-optimization/36929
7044         * dse.c (replace_inc_dec): Use emit_insn_before instead of
7045         add_insn_before and fix argument order.
7046         (replace_inc_dec_mem): Handle NULL rtx.
7047
7048 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
7049
7050         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
7051         function.
7052         (arm_compute_initial_elimination_offset): Use it.
7053         (arm_compute_save_reg_mask): Include static chain save slot when
7054         calculating alignment.
7055         (arm_get_frame_offsets): Ditto.
7056         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
7057         that we can use to decrement the stack when the stack decrement
7058         could be too big for an immediate value in a single insn.
7059         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
7060
7061 2008-07-30  Richard Guenther  <rguenther@suse.de>
7062
7063         PR tree-optimization/36967
7064         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
7065         Release defs of statements we remove.
7066
7067 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
7068
7069         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
7070         instead of NULL_RTVEC.
7071
7072 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
7073
7074         PR target/35866
7075
7076         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
7077         vector modes.
7078
7079 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
7080
7081         * final.c (call_from_call_insn): New.
7082         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
7083
7084 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
7085
7086         * configure.ac: Substitute ADA_CFLAGS.
7087         * configure: Regenerate.
7088         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
7089         * Makefile.in: Remove mention of X_* variables.
7090         * config/pa/x-ada-hpux10: Remove.
7091         * config/pa/x-ada: Remove.
7092
7093         * doc/fragments.texi: Update.
7094
7095 2008-07-30  Olivier Hainque  <hainque@adacore.com>
7096
7097         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
7098         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
7099         __dso_handle explicitly here.
7100
7101 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7102
7103         PR 34389
7104         * c-typeck.c (build_binary_op): Encapsulate code into...
7105         * c-common.c (shorten_binary_op): ...this new function.
7106         (conversion_warning): Use the new function. Handle non-negative
7107         constant in bitwise-and.
7108         * c-common.h (shorten_binary_op): Declare.
7109
7110 2008-07-30  Olivier Hainque  <hainque@adacore.com>
7111
7112         * scan.c (make_sstring_space): Add explicit conversions of
7113         allocator's return value.
7114         * fix-header.c (recognized_function): Likewise.
7115
7116 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7117
7118         * doc/cpp.texi: Update to GFDL 1.2.
7119         * doc/gcc.texi: Do not list GPL as Invariant Section.
7120         * doc/gccint.texi: Likewise.  Update copyright years.
7121         * doc/install.texi: Update copyright years.
7122
7123 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
7124
7125         PR target/36955
7126         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
7127         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
7128
7129 2008-07-29  Jan Hubicka  <jh@suse.cz>
7130
7131         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
7132         (grokdeclarator): Likewise.
7133         * langhooks.c (lhd_warn_unused_global_decl): Use
7134         DECL_DECLARED_INLINE_P.
7135         * print-tree.c (print_node): Remove DECL_INLINE check.
7136
7137 2008-07-29  Richard Guenther  <rguenther@suse.de>
7138
7139         PR tree-optimization/36945
7140         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
7141         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
7142         Record invariant addresses un-decomposed.
7143         (copy_reference_ops_from_call): Record reference call
7144         arguments properly.  Simplify.
7145         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
7146         helper split out from ...
7147         (create_component_ref_by_pieces): ... here.  Simplify.
7148         Prepare for recursive invocation for call arguments.
7149         (create_expression_by_pieces): Adjust call to
7150         create_component_ref_by_pieces.
7151         (compute_avail): Process operand 2 of reference ops.
7152
7153 2008-07-29  Richard Guenther  <rguenther@suse.de>
7154
7155         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
7156
7157 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
7158
7159         * c-format.c (check_format_types): Revert unwanted checkin.
7160
7161 2008-07-29  Jan Hubicka  <jh@suse.cz>
7162
7163         * flags.h (flag_really_no_inline): Remove.
7164         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
7165         * toplev.c (flag_really_no_inline): Remove.
7166         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
7167         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
7168         (cgraph_decide_inlining_incrementally): Likewise.
7169         (compute_inline_parameters): Likewise.
7170         * opts.c (decode_options): Simplify.
7171         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
7172         * common.opt (finline): Initialize to 1.
7173         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
7174
7175 2008-07-29  Jan Hubicka  <jh@suse.cz>
7176
7177         * predict.c (always_optimize_for_size_p): New function.
7178         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
7179         optimize_edge_for_size_p, optimize_edge_for_speed_p,
7180         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
7181         functions.
7182         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
7183         * function.c (prepare_function_start): Set default profile.
7184         * function.h (rtl_data): Add maybe_hot_insn_p.
7185         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
7186         (construct_exit_block): Likewise.
7187         (tree_expand_cfg): Likewise.
7188         * basic-block.h
7189         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
7190         optimize_edge_for_size_p, optimize_edge_for_speed_p,
7191         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
7192         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
7193         Declare.
7194
7195 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7196
7197         PR 34985
7198         * c-decl.c (merge_decls): Merge USED flags.
7199
7200 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7201
7202         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
7203         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
7204         next_stack, lab_false and lab_over trees.
7205
7206 2008-07-28  Richard Guenther  <rguenther@suse.de>
7207
7208         PR tree-optimization/36957
7209         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
7210         (useless_type_conversion_p): Remove.
7211         (types_compatible_p): Remove.
7212         * gimple.h (tree_ssa_useless_type_conversion): Declare.
7213         (useless_type_conversion_p): Declare.
7214         (types_compatible_p): Declare.
7215         (gimple_expr_type): Return the base type only if it is
7216         trivially convertible to the subtype.
7217
7218 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
7219
7220         * configure.ac: Use the m4_do macro to concatenate the warnings into
7221         one string in ACX_PROG_CC_WARNING_OPTS,
7222         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
7223         ACX_PROG_CC_WARNINGS_ARE_ERRORS.
7224         * configure: Regenerate.
7225
7226 2008-07-28  Richard Guenther  <rguenther@suse.de>
7227
7228         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
7229         (insert_fake_stores): Remove.
7230         (realify_fake_stores): Likewise.
7231         (execute_pre): Remove dead code.
7232         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
7233         (find_func_aliases): Deal with it here instead.
7234         Re-enable gcc_unreachable call.
7235
7236 2008-07-28  Richard Guenther  <rguenther@suse.de>
7237
7238         Merge from gimple-tuples-branch.
7239
7240         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
7241         * gimple.def: New file.
7242         * gsstruct.def: Likewise.
7243         * gimple-iterator.c: Likewise.
7244         * gimple-pretty-print.c: Likewise.
7245         * tree-gimple.c: Removed.  Merged into ...
7246         * gimple.c: ... here.  New file.
7247         * tree-gimple.h: Removed.  Merged into ...
7248         * gimple.h: ... here.  New file.
7249
7250         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
7251         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
7252         --enable-checking=gimple flag.
7253         * config.in: Likewise.
7254         * configure: Regenerated.
7255
7256         * tree-ssa-operands.h: Tuplified.
7257         * tree-vrp.c: Likewise.
7258         * tree-loop-linear.c: Likewise.
7259         * tree-into-ssa.c: Likewise.
7260         * tree-ssa-loop-im.c: Likewise.
7261         * tree-dump.c: Likewise.
7262         * tree-complex.c: Likewise.
7263         * cgraphbuild.c: Likewise.
7264         * tree-ssa-threadupdate.c: Likewise.
7265         * tree-ssa-loop-niter.c: Likewise.
7266         * tree-pretty-print.c: Likewise.
7267         * tracer.c: Likewise.
7268         * gengtype.c: Likewise.
7269         * tree-loop-distribution.c: Likewise.
7270         * tree-ssa-loop-unswitch.c: Likewise.
7271         * cgraph.c: Likewise.
7272         * cgraph.h: Likewise.
7273         * tree-ssa-loop-manip.c: Likewise.
7274         * value-prof.c: Likewise.
7275         * tree-ssa-loop-ch.c: Likewise.
7276         * tree-tailcall.c: Likewise.
7277         * value-prof.h: Likewise.
7278         * tree.c: Likewise.
7279         * tree.h: Likewise.
7280         * tree-pass.h: Likewise.
7281         * ipa-cp.c: Likewise.
7282         * tree-scalar-evolution.c: Likewise.
7283         * tree-scalar-evolution.h: Likewise.
7284         * target.h: Likewise.
7285         * lambda-mat.c: Likewise.
7286         * tree-phinodes.c: Likewise.
7287         * diagnostic.h: Likewise.
7288         * builtins.c: Likewise.
7289         * tree-ssa-alias-warnings.c: Likewise.
7290         * cfghooks.c: Likewise.
7291         * fold-const.c: Likewise.
7292         * cfghooks.h: Likewise.
7293         * omp-low.c: Likewise.
7294         * tree-ssa-dse.c: Likewise.
7295         * ipa-reference.c: Likewise.
7296         * tree-ssa-uncprop.c: Likewise.
7297         * toplev.c: Likewise.
7298         * tree-gimple.c: Likewise.
7299         * tree-gimple.h: Likewise.
7300         * tree-chrec.c: Likewise.
7301         * tree-chrec.h: Likewise.
7302         * tree-ssa-sccvn.c: Likewise.
7303         * tree-ssa-sccvn.h: Likewise.
7304         * cgraphunit.c: Likewise.
7305         * tree-ssa-copyrename.c: Likewise.
7306         * tree-ssa-ccp.c: Likewise.
7307         * tree-ssa-loop-ivopts.c: Likewise.
7308         * tree-nomudflap.c: Likewise.
7309         * tree-call-cdce.c: Likewise.
7310         * ipa-pure-const.c: Likewise.
7311         * c-format.c: Likewise.
7312         * tree-stdarg.c: Likewise.
7313         * tree-ssa-math-opts.c: Likewise.
7314         * tree-ssa-dom.c: Likewise.
7315         * tree-nrv.c: Likewise.
7316         * tree-ssa-propagate.c: Likewise.
7317         * ipa-utils.c: Likewise.
7318         * tree-ssa-propagate.h: Likewise.
7319         * tree-ssa-alias.c: Likewise.
7320         * gimple-low.c: Likewise.
7321         * tree-ssa-sink.c: Likewise.
7322         * ipa-inline.c: Likewise.
7323         * c-semantics.c: Likewise.
7324         * dwarf2out.c: Likewise.
7325         * expr.c: Likewise.
7326         * tree-ssa-loop-ivcanon.c: Likewise.
7327         * predict.c: Likewise.
7328         * tree-ssa-loop.c: Likewise.
7329         * tree-parloops.c: Likewise.
7330         * tree-ssa-address.c: Likewise.
7331         * tree-ssa-ifcombine.c: Likewise.
7332         * matrix-reorg.c: Likewise.
7333         * c-decl.c: Likewise.
7334         * tree-eh.c: Likewise.
7335         * c-pretty-print.c: Likewise.
7336         * lambda-trans.c: Likewise.
7337         * function.c: Likewise.
7338         * langhooks.c: Likewise.
7339         * ebitmap.h: Likewise.
7340         * tree-vectorizer.c: Likewise.
7341         * function.h: Likewise.
7342         * langhooks.h: Likewise.
7343         * tree-vectorizer.h: Likewise.
7344         * ipa-type-escape.c: Likewise.
7345         * ipa-type-escape.h: Likewise.
7346         * domwalk.c: Likewise.
7347         * tree-if-conv.c: Likewise.
7348         * profile.c: Likewise.
7349         * domwalk.h: Likewise.
7350         * tree-data-ref.c: Likewise.
7351         * tree-data-ref.h: Likewise.
7352         * tree-flow-inline.h: Likewise.
7353         * tree-affine.c: Likewise.
7354         * tree-vect-analyze.c: Likewise.
7355         * c-typeck.c: Likewise.
7356         * gimplify.c: Likewise.
7357         * coretypes.h: Likewise.
7358         * tree-ssa-phiopt.c: Likewise.
7359         * calls.c: Likewise.
7360         * tree-ssa-coalesce.c: Likewise.
7361         * tree.def: Likewise.
7362         * tree-dfa.c: Likewise.
7363         * except.c: Likewise.
7364         * except.h: Likewise.
7365         * cfgexpand.c: Likewise.
7366         * tree-cfgcleanup.c: Likewise.
7367         * tree-ssa-pre.c: Likewise.
7368         * tree-ssa-live.c: Likewise.
7369         * tree-sra.c: Likewise.
7370         * tree-ssa-live.h: Likewise.
7371         * tree-predcom.c: Likewise.
7372         * lambda.h: Likewise.
7373         * tree-mudflap.c: Likewise.
7374         * ipa-prop.c: Likewise.
7375         * print-tree.c: Likewise.
7376         * tree-ssa-copy.c: Likewise.
7377         * ipa-prop.h: Likewise.
7378         * tree-ssa-forwprop.c: Likewise.
7379         * ggc-page.c: Likewise.
7380         * c-omp.c: Likewise.
7381         * tree-ssa-dce.c: Likewise.
7382         * tree-vect-patterns.c: Likewise.
7383         * tree-ssa-ter.c: Likewise.
7384         * tree-nested.c: Likewise.
7385         * tree-ssa.c: Likewise.
7386         * lambda-code.c: Likewise.
7387         * tree-ssa-loop-prefetch.c: Likewise.
7388         * tree-inline.c: Likewise.
7389         * tree-inline.h: Likewise.
7390         * tree-iterator.c: Likewise.
7391         * tree-optimize.c: Likewise.
7392         * tree-ssa-phiprop.c: Likewise.
7393         * tree-vect-transform.c: Likewise.
7394         * tree-object-size.c: Likewise.
7395         * tree-outof-ssa.c: Likewise.
7396         * cfgloop.c: Likewise.
7397         * system.h: Likewise.
7398         * tree-profile.c: Likewise.
7399         * cfgloop.h: Likewise.
7400         * c-gimplify.c: Likewise.
7401         * c-common.c: Likewise.
7402         * tree-vect-generic.c: Likewise.
7403         * tree-flow.h: Likewise.
7404         * c-common.h: Likewise.
7405         * basic-block.h: Likewise.
7406         * tree-ssa-structalias.c: Likewise.
7407         * tree-switch-conversion.c: Likewise.
7408         * tree-ssa-structalias.h: Likewise.
7409         * tree-cfg.c: Likewise.
7410         * passes.c: Likewise.
7411         * ipa-struct-reorg.c: Likewise.
7412         * ipa-struct-reorg.h: Likewise.
7413         * tree-ssa-reassoc.c: Likewise.
7414         * cfgrtl.c: Likewise.
7415         * varpool.c: Likewise.
7416         * stmt.c: Likewise.
7417         * tree-ssanames.c: Likewise.
7418         * tree-ssa-threadedge.c: Likewise.
7419         * langhooks-def.h: Likewise.
7420         * tree-ssa-operands.c: Likewise.
7421         * config/alpha/alpha.c: Likewise.
7422         * config/frv/frv.c: Likewise.
7423         * config/s390/s390.c: Likewise.
7424         * config/m32c/m32c.c: Likewise.
7425         * config/m32c/m32c-protos.h: Likewise.
7426         * config/spu/spu.c: Likewise.
7427         * config/sparc/sparc.c: Likewise.
7428         * config/i386/i386.c: Likewise.
7429         * config/sh/sh.c: Likewise.
7430         * config/xtensa/xtensa.c: Likewise.
7431         * config/stormy16/stormy16.c: Likewise.
7432         * config/ia64/ia64.c: Likewise.
7433         * config/rs6000/rs6000.c: Likewise.
7434         * config/pa/pa.c: Likewise.
7435         * config/mips/mips.c: Likewise.
7436
7437 2008-07-28  Simon Baldwin  <simonb@google.com>
7438
7439         * c-pragma.c (handle_pragma_message): New function.
7440         (init_pragma): Register handle_pragma_message.
7441         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
7442         documentation.
7443
7444 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
7445
7446         PR tree-optimization/35252
7447         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
7448         REALPART_EXPR to be considered as same load operation.
7449
7450 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
7451
7452         PR tree-optimization/36830
7453         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
7454         (expressions_equal_p): Return false if only one operand is null.
7455
7456 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
7457
7458         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
7459         version requirements.
7460
7461 2008-07-26  Olivier Hainque  <hainque@adacore.com>
7462
7463         * collect2.c (symkind): New enum.  Symbol kinds we care about.
7464         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
7465         code and head comment accordingly.
7466         (scan_prog_file): Use symkind names instead of bare integers.
7467
7468 2008-07-25  Jan Hubicka  <jh@suse.cz>
7469
7470         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
7471         DECL_INLINE.
7472         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
7473         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
7474         * dojump.c (clear_pending_stack_adjust): Likewise.
7475         * print-tree.c (print_node): Ignore DECL_INLINE.
7476         * tree-inline.c (inlinable_function_p): Likewise.
7477
7478 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
7479
7480         * doc/extend.texi (hot attribute): Document that the hot attribute
7481         turns on -O3 for some ports.
7482         (cold attribute): Document that the cold attribute turns on -Os
7483         for some ports
7484
7485         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
7486         reflect function specific option support.
7487
7488         * target.h (struct target_option_hooks): Add fields to say whether
7489         the cold attribute implies -Os and the hot attribute implies -O3.
7490
7491         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
7492         By default, do not turn on -Os for cold functions.
7493         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
7494         not turn on -O3 for hot functions.
7495
7496         * c-common.c (handle_hot_attribute): Use target hook to determine
7497         if hot functions should enable -O3.
7498         (handle_cold_attribute): Use target hook to determine if cold
7499         functions should enable -Os.
7500
7501         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
7502         (override_options): Move disable scheduling to
7503         optimization_options.
7504         (optimization_options): Disable scheduling here, not
7505         override_options.
7506         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
7507         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
7508
7509         * config/ia64/ia64.c (ia64_override_options): Move setting
7510         scheduling flags to ia64_optimization_options.
7511         (ia64_optimization_options): Disable scheduling options here, and
7512         not in ia64_override_options.
7513         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
7514         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
7515
7516 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
7517
7518         PR target/36936
7519         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
7520
7521 2008-07-25  Martin Jambor  <mjambor@suse.cz>
7522
7523         PR tree-optimization/36926
7524         * ipa-prop.c (ipa_analyze_call_uses): Call
7525         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
7526
7527 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
7528
7529         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
7530         movv2si_internal): Add mem = reg alternative.
7531
7532 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
7533
7534         PR bootstrap/36918
7535         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
7536         DEFAULT_PCC_STRUCT_RETURN to 127.
7537
7538 2008-07-24  Jan Hubicka  <jh@suse.cz>
7539
7540         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
7541         (build_cgraph_edges): Likewise.
7542         * cgraph.c (cgraph_node): Do not update assembler hash.
7543         (cgraph_remove_node): Drop non-unit-at-a-time code.
7544         * tree-pass.h (pass_O0_always_inline): Remove.
7545         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
7546         * toplev.c (process_options): Flag unit-at-a-time does not imply
7547         no section anchors.
7548         * cgraphunit.c: Update comments.
7549         (decide_is_function_needed): Drop non-unit-at-a-time mode.
7550         (cgraph_assemble_pending_functions): Remove.
7551         (cgraph_reset_node): Drop non-unit-at-a-time code.
7552         (cgraph_finalize_function): Likewise.
7553         (cgraph_analyze_function): Likewise.
7554         (cgraph_finalize_compilation_unit): Likewise.
7555         (cgraph_expand_function): Likewise.
7556         (cgraph_optimize): Likesise.
7557         (save_inline_function_body): Likewise.
7558         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
7559         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
7560         * ipa-inline.c: Update comments.
7561         (enum inlining_mode): remove INLINE_SPEED.
7562         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
7563         (cgraph_mark_inline_edge): Likewise.
7564         (try_inline): Likewise.
7565         (cgraph_decide_inlining_incrementally): Likewise.
7566         (cgraph_gate_inlining): Remove.
7567         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
7568         (cgraph_gate_early_inlining): Likewise.
7569         (gate_inline_passes): Remove.
7570         (pass_inline_parameters, pass_ipa_inline): Remove gates.
7571         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7572         pass_O0_always_inline): Remove.
7573         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
7574         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
7575         * opts.c (no_unit_at_a_time_default): Remove.
7576         (decode_options): Remove flag_unit_at_a_time reset and warning.
7577         * opts.h (no_unit_at_a_time_default): Remove.
7578         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
7579         early in GNU dialect.
7580         (merge_decls): Update comment; drop unit-at-a-time check.
7581         (finish_decl): Likewise.
7582         (grok_declaration): Remove flag_inline_trees code.
7583         (finish_functions): Return on function returning non-void on all
7584         statics.
7585         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
7586         * cfgexpand.c (expand_one_static_var): Remove.
7587         (expand_one_var): Remove expand_one_static_var call.
7588         (expand_used_vars_for_block): Remove flag_unit_a_time check.
7589         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
7590         and flag_unit_at_a-time compatibility checks.
7591         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
7592         * tree-inline.c (flag_inline_trees): Remove.
7593         (inlinable_function_p): Don't check it.
7594         (expand_call_inline): Remove non-unit-at-a-time code.
7595         * tree-inline.h (flag_inline_trees): Remove.
7596         * tree-optimize.c (execute_early_local_optimizations): Remove
7597         unit-at-a-time checks.
7598         (tree_rest_of_compilation): Likewise.
7599         * combine.c (setup_incoming_promotions): Likewise.
7600         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
7601         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
7602         * passes.c (pass_inline_parameters): Update comments; remove
7603         O0_alwaysinline pass.
7604         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
7605         (execute_one_pass): Likewise.
7606         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
7607         (ix86_function_sseregparm): Likewise.
7608         * arm.c (arm_function_in_section_p): Likewise.
7609         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
7610         * varpool.c: Update comments.
7611         (decide_is_variable_needed): Remove unit-at-a-time checks.
7612         (varpool_finalize_decl): Likewise.
7613
7614 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7615
7616         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
7617         to 2 instead of -1.
7618         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
7619
7620 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
7621
7622         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
7623         imp symbol extension.
7624
7625         2008-07-23  Ian Lance Taylor  <iant@google.com>
7626
7627         * tree-vrp.c (infer_value_range): Ignore asm statements when
7628         looking for memory accesses for -fdelete-null-pointer-checks.
7629
7630 2008-07-24  Ben Elliston  <bje@au.ibm.com>
7631
7632         * config/spu/spu-c.c (__vector_keyword): New variable.
7633         (vector_keyword): Likewise.
7634         (spu_categorize_keyword): New function.
7635         (spu_macro_to_expand): Likewise.
7636         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
7637         compiling an ISO C dialect.
7638
7639 2008-07-24  Ben Elliston  <bje@au.ibm.com>
7640
7641         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
7642         conventional usage.
7643
7644 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7645
7646         * configure: Regenerate.
7647         * configure.ac: Require texinfo 4.7.
7648         * doc/install.texi: Document texinfo 4.7 requirement.
7649
7650 2008-07-23  Martin Jambor  <mjambor@suse.cz>
7651
7652         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
7653         rather than for DECL_SAVED_TREE.
7654         * ipa-prop.c: Include diagnostic.h.
7655         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
7656         thoroughly.
7657         (ipa_detect_param_modifications): Function rewritten from scratch.
7658         (ipa_compute_jump_functions): Changed accesses to modification flags.
7659         (ipa_free_node_params_substructures): Update flags destruction.
7660         (ipa_node_duplication_hook): Update flags duplication.
7661         (ipa_print_all_params_modified): Updated flag access.
7662         * ipa-prop.h (struct ipa_param_flags): New structure.
7663         (struct ipa_node_params): New field modification_analysis_done,
7664         modified_flags changed into param_flags.
7665         (ipa_is_ith_param_modified): Changed to use new flags.
7666         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
7667
7668         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
7669         ipa-cp.c and split into two functions.
7670         (ipa_print_node_jump_functions): New function.
7671         (compute_scalar_jump_functions): New function.
7672         (type_like_member_ptr_p): New function.
7673         (compute_pass_through_member_ptrs): New function.
7674         (fill_member_ptr_cst_jump_function): New function.
7675         (determine_cst_member_ptr): New function.
7676         (compute_cst_member_ptr_arguments): New function.
7677         (ipa_compute_jump_functions): Complete rewrite.
7678         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
7679         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
7680         (struct ipa_member_ptr_cst): New structure.
7681         (union jump_func_value): New field member_cst.
7682         * ipa-cp.c (ipcp_lat_is_insertable): New function.
7683         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
7684         jump function types.
7685         (ipcp_print_all_lattices): Slight fprintf rearrangement.
7686         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
7687         instead of ipcp_print_all_jump_functions.
7688         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
7689         only for replacable scalars.
7690
7691         * doc/invoke.texi (Optimize options): Add description of
7692         -findirect-inlining.
7693         * common.opt (flag_indirect_inlining): New flag.
7694         * opts.c (decode_options): Set flag_indirect_inlining when
7695         optimize >= 3.
7696
7697         * ipa-inline.c: Include ipa-prop.h.
7698         (inline_indirect_intraprocedural_analysis): New function.
7699         (inline_generate_summary): Allocate parameter and argument info
7700         structures, call inline_indirect_intraprocedural_analysis on each
7701         node when doing indirect inlining and deallocate indirect inlining
7702         data structures in the end.
7703         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
7704         (free_all_ipa_structures_after_iinln): New function.
7705         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
7706         done.
7707         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
7708
7709         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
7710         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
7711         of computing the frequency separately.
7712         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
7713         of computing the frequency separately.
7714         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
7715         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
7716         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
7717         (ipa_get_stmt_member_ptr_load_param): New function.
7718         (ipa_is_ssa_with_stmt_def): New function.
7719         (ipa_note_param_call): New function.
7720         (ipa_analyze_call_uses): New function.
7721         (ipa_analyze_stmt_uses): New function.
7722         (ipa_analyze_params_uses): New function.
7723         (ipa_free_node_params_substructures): Also free the param_calls linked
7724         list.
7725         (ipa_node_duplication_hook): Also duplicate the param_calls
7726         linked list.
7727         (ipa_print_node_param_flags): New function.
7728         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
7729         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
7730         * ipa-prop.h (struct ipa_param_flags): New field called.
7731         (struct ipa_param_call_note): New structure.
7732         (struct ipa_node_params): New fields param_calls and
7733         uses_analysis_done.
7734         (ipa_is_ith_param_called): New function.
7735         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7736         ipa_analyze_params_uses and dump parameter flags.
7737
7738         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
7739         ipa_propagate_indirect_call_infos if performing indirect inlining,
7740         pass a new parameter new_edges to it.
7741         (add_new_edges_to_heap): New fucntion.
7742         (cgraph_decide_inlining_of_small_functions): New vector
7743         new_indirect_edges for newly found indirect edges , call
7744         ipa_propagate_indirect_call_infos after inlining.
7745         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
7746         inlining if performing indirect inlining.  Call
7747         free_all_ipa_structures_after_iinln when doing so too.
7748         (inline_generate_summary): Do not call
7749         free_all_ipa_structures_after_iinln here.
7750         * ipa-prop.c (update_jump_functions_after_inlining): New function.
7751         (print_edge_addition_message): New function.
7752         (update_call_notes_after_inlining): New function.
7753         (propagate_info_to_inlined_callees): New function.
7754         (ipa_propagate_indirect_call_infos): New function.
7755         * ipa-prop.h: Include cgraph.h
7756         (struct ipa_param_call_note): Fields reordered, new field processed.
7757         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
7758         flag indirect_call.
7759         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
7760         rediscovered call statements.
7761         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
7762         (dump_cgraph_node): Dump also the indirect_call flag.
7763         (cgraph_clone_edge): Copy also the indirect_call flag.
7764         * tree-inline.c (copy_bb): Do not check for fndecls from call
7765         expressions, check for edge availability when moving clones.
7766         (get_indirect_callee_fndecl): New function.
7767         (expand_call_inline): If callee declaration is not apprent from
7768         the statement, try calling get_indirect_callee_fndecl.  Do not
7769         issue warnings or call sorry when not inlinings an indirect edge.
7770         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
7771
7772         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
7773         bit more frandly to matching.
7774         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
7775         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
7776         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
7777
7778 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7779
7780         PR 36907
7781         * opth-gen.awk: Suppress function specific features when building
7782         target libraries.
7783         * optc-gen.awk: Ditto.
7784
7785 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7786
7787         PR 35058
7788         * diagnostic.c (pedwarn): Add opt parameter.
7789         (pedwarn0): New.
7790         * c-tree.h (pedwarn_init): Add opt parameter.
7791         (pedwarn_c90): Likewise.
7792         (pedwarn_c99): Likewise.
7793         * c-errors.c (pedwarn_c99): Likewise.
7794         (pedwarn_c90): Likewise.
7795         * toplev.h (pedwarn): Update declaration.
7796         (pedwarn0): Declare.
7797         * c-lex.c: All calls to pedwarn changed.
7798         * builtins.c: All calls to pedwarn changed.
7799         * toplev.c: All calls to pedwarn changed.
7800         * c-decl.c: All calls to pedwarn changed.
7801         * c-typeck.c: All calls to pedwarn changed.
7802         * c-common.c: All calls to pedwarn changed.
7803         * c-parser.c: All calls to pedwarn changed.
7804
7805 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7806             Karthik Kumar  <karthikkumar@gmail.com>
7807
7808         * attribs.c (file scope): Include c-common.h.
7809         (decl_attributes): Add support for #pragma GCC optimize and
7810         #pragma GCC option.
7811
7812         * targhooks.c (default_can_inline_p): New function that is the
7813         default for the TARGET_CAN_INLINE_P target hook.
7814
7815         * targhooks.h (default_can_inline_p): Add declaration.
7816
7817         * tree.c (cl_optimization_node): New static tree for building
7818         OPTIMIZATION_NODE tree.
7819         (cl_target_option_node): New static tree for building
7820         TARGET_OPTION_NODE tree.
7821         (cl_option_hash_table): New hash table for hashing
7822         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7823         (cl_option_hash_hash): New function to provide the hash value for
7824         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7825         (cl_option_hash_eq): New function to provide an equality test for
7826         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7827         (tree_code_size): Add support for OPTIMIZATION_NODE and
7828         TARGET_OPTION_NODE trees.
7829         (tree_code_structure): Add support for OPTIMIZATION_NODE and
7830         TARGET_OPTION_NODE trees.
7831         (build_optimization_node): Build a tree that has all of the
7832         current optimization options.
7833         (build_target_option_node): Build a tree that has the target
7834         options that might be changed on a per function basis.
7835
7836         * tree.h (file scope): Include options.h.
7837         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
7838         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7839         (TREE_OPTIMIZATION): Ditto.
7840         (TREE_TARGET_SPECIFIC): Ditto.
7841         (struct tree_function_decl): Add fields for remembering the
7842         current optimization options and target specific options.
7843         (struct tree_optimization_option): New tree variant that remembers
7844         the optimization options.
7845         (struct tree_target_option): New tree variant that remembers the
7846         target specific flags that might change for compiling a particular
7847         function.
7848         (union tree_node): Include tree_optimization_option and
7849         tree_target_option fields.
7850         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
7851         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
7852         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
7853         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
7854         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
7855         optimization and target options.
7856         (optimization_default_node): New macro to refer to global_trees
7857         field.
7858         (optimization_current_node): Ditto.
7859         (optimization_cold_node): Ditto.
7860         (optimization_hot_node): Ditto.
7861         (target_option_default_node): Ditto.
7862         (target_option_current_node): Ditto.
7863         (current_option_pragma): Ditto.
7864         (current_optimize_pragma): Ditto.
7865
7866         * target.h (struct gcc_target): Add valid_option_attribute_p,
7867         target_option_save, target_option_restore, target_option_print,
7868         target_option_pragma_parse, and can_inline_p hooks.
7869
7870         * toplev.h (parse_optimize_options): Add declaration.
7871         (fast_math_flags_struct_set_p): Ditto.
7872
7873         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
7874         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
7875         optimize is used.
7876
7877         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
7878         tree_can_inline_p hook to see if one function can inline another.
7879         (cgraph_decide_inlining): Ditto.
7880         (cgraph_decide_inlining_incrementally): Ditto.
7881
7882         * opts.c (decode_options): Add support for running multiple times
7883         to allow functions with different target or optimization options
7884         than was specified on the command line.
7885         (fast_math_flags_struct_set_p): New function that is similar to
7886         fast_math_flags_set_p, except it uses the values in the
7887         cl_optimization structure instead of global variables.
7888
7889         * optc-gen.awk: Add support for TargetSave to allow a back end to
7890         declare new fields that need to be saved when using function
7891         specific options.  Include flags.h and target.h in the options.c
7892         source.  Add support for Save to indicate which options can be set
7893         for individual functions.  Generate cl_optimize_save,
7894         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
7895         cl_target_option_restore, cl_target_option_print functions to
7896         allow functions to use different optimization or target options.
7897
7898         * opt-functions.awk (var_type_struct): Return the type used for
7899         storing the field in a structure.
7900
7901         * opth-gen.awk: Add support for TargetSave to allow a back end to
7902         declare new fields that need to be saved when using function
7903         specific options.  Add support for Save to indicate which options
7904         can be set for individual functions.  Only generate one extern for
7905         Mask fields.  Generate cl_optimization and cl_target_option
7906         structures to remember optimization and target options.
7907
7908         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
7909         collecting new tree nodes.
7910         (TS_TARGET_OPTION): Ditto.
7911
7912         * c-decl.c (merge_decls): Merge function specific target and
7913         optimization options.
7914
7915         * function.c (invoke_set_current_function_hook): If the function
7916         uses different optimization options, change the global variables
7917         to reflect this.
7918
7919         * coretypes.h (struct cl_optimization): Add forward reference.
7920         (struct cl_target_option): Ditto.
7921
7922         * c-pragma.c (option_stack): New static vector to remember the
7923         current #pragma GCC option stack.
7924         (handle_pragma_option): New function to support #pragma GCC option
7925         to change target options.
7926         (optimize_stack): New static vector to remember the current
7927         #pragma GCC optimize stack.
7928         (handle_pragma_optimize): New function to support #pragma GCC
7929         optimize to change optimization options.
7930         (init_pragma): Add support for #pragma GCC optimize and #pragma
7931         GCC option.
7932
7933         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
7934         optimization options.
7935         (TARGET_OPTION_NODE): New tree code for remembering certain target
7936         options.
7937
7938         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
7939         TARGET_OPTION_NODE trees.
7940
7941         * common.opt (-O): Add Optimization flag.
7942         (-Os): Ditto.
7943         (-fmath-errno): Ditto.
7944         (-falign-functions): Add UInteger flag to make sure flag gets full
7945         int in cl_optimization structure.
7946         (-falign-jumps): Ditto.
7947         (-falign-labels): Ditto.
7948         (-falign-loops): Ditto.
7949         (-fsched-stalled-insns): Ditto.
7950         (-fsched-stalled-insns-dep): Ditto.
7951
7952         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
7953         definition.
7954         (TARGET_OPTION_SAVE): Ditto.
7955         (TARGET_OPTION_RESTORE): Ditto.
7956         (TARGET_OPTION_PRINT): Ditto.
7957         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7958         (TARGET_CAN_INLINE_P): Ditto.
7959         (TARGET_INITIALIZER): Add new hooks.
7960
7961         * tree-inline.c (tree_can_inline_p): New function to determine
7962         whether one function can inline another.  Check if the functions
7963         use compatible optimization options, and also call the backend
7964         can_inline_p hook.
7965
7966         * tree-inline.h (tree_can_inline_p): Add declaration.
7967
7968         * c-common.c (c_common_attribute): Add support for option and
7969         optimize attributes.
7970         (handle_option_attribute): Add support for the option attribute to
7971         allow the user to specify different target options for compiling a
7972         specific function.
7973         (handle_optimize_attribute): Add support for the optimize
7974         attribute to allow the user to specify different optimization
7975         options for compiling a specific function.
7976         (handle_hot_attribute): Turn on -O3 optimization for this one
7977         function if it isn't the default optimization level.
7978         (handle_cold_attribute): Turn on -Os optimization for this one
7979         function if it insn't the default optimization.
7980         (const_char_p): New const char * typedef.
7981         (optimize_args): New static vector to remember the optimization
7982         arguments.
7983         (parse_optimize_options): New function to set up the optimization
7984         arguments from either the optimize attribute or #pragma GCC optimize.
7985
7986         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
7987         (builtin_define_std): Ditto.
7988
7989         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
7990         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
7991         (x86_64-*-*): Ditto.
7992
7993         * Makefile.in (TREE_H): Add options.h.
7994         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
7995
7996         * doc/extend.texi (option attribute): Document new attribute.
7997         (optimize attribute): Ditto.
7998         (hot attribute): Document hot attribute sets -O3.
7999         (cold attribute): Document cold attribute sets -Os.
8000         (#pragma GCC option): Document new pragma.
8001         (#pragma GCC optimize): Ditto.
8002
8003         * doc/options.texi (TargetSave): Document TargetSave syntax.
8004         (UInteger): Document UInteger must be used for certain flags.
8005         (Save): Document Save option to create target specific options
8006         that can be saved/restored on a function specific context.
8007
8008         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
8009         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
8010
8011         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
8012         (TARGET_OPTION_SAVE): Ditto.
8013         (TARGET_OPTION_RESTORE): Ditto.
8014         (TARGET_OPTION_PRINT): Ditto.
8015         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
8016         (TARGET_CAN_INLINE_P): Ditto.
8017
8018         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
8019         -mfpmath=sse,387.
8020         (-mfpmath=both): Ditto.
8021
8022 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
8023             Karthik Kumar  <karthikkumar@gmail.com>
8024
8025         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
8026         (TARGET_POPCNT): Ditto.
8027         (TARGET_SAHF): Ditto.
8028         (TARGET_AES): Ditto.
8029         (TARGET_PCLMUL): Ditto.
8030         (TARGET_CMPXCHG16B): Ditto.
8031         (TARGET_RECIP): Move switch into target_flags.
8032         (TARGET_FUSED_MADD): Ditto.
8033         (ix86_arch_features): Make an unsigned char type.
8034         (ix86_tune_features): Ditto.
8035         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
8036         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
8037         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
8038
8039         * config/i386/i386.opt (arch): New TargetSave field to define
8040         fields that need to be saved for function specific option support.
8041         (tune): Ditto.
8042         (fpmath): Ditto.
8043         (branch_cost): Ditto.
8044         (ix86_isa_flags_explicit): Ditto.
8045         (tune_defaulted): Ditto.
8046         (arch_specified): Ditto.
8047         (-m128-long-double): Add Save flag to save option for target
8048         specific option support.
8049         (-m80387): Ditto.
8050         (-maccumulate-outgoing-args): Ditto.
8051         (-malign-double): Ditto.
8052         (-malign-stringops): Ditto.
8053         (-mfancy-math-387): Ditto.
8054         (-mhard-float): Ditto.
8055         (-mieee-fp): Ditto.
8056         (-minline-all-stringops): Ditto.
8057         (-minline-stringops-dynamically): Ditto.
8058         (-mms-bitfields): Ditto.
8059         (-mno-align-stringops): Ditto.
8060         (-mno-fancy-math-387): Ditto.
8061         (-mno-push-args): Ditto.
8062         (-mno-red-zone): Ditto.
8063         (-mpush-args): Ditto.
8064         (-mred-zone): Ditto.
8065         (-mrtd): Ditto.
8066         (-msseregparm): Ditto.
8067         (-mstack-arg-probe): Ditto.
8068         (-m32): Ditto.
8069         (-m64): Ditto.
8070         (-mmmx): Ditto.
8071         (-m3dnow): Ditto.
8072         (-m3dnowa): Ditto.
8073         (-msse): Ditto.
8074         (-msse2): Ditto.
8075         (-msse3): Ditto.
8076         (-msse4.1): Ditto.
8077         (-msse4.2): Ditto.
8078         (-msse4): Ditto.
8079         (-mno-sse4): Ditto.
8080         (-msse4a): Ditto.
8081         (-msse5): Ditto.
8082         (-mrecip): Move flag into target_flags.
8083         (-mcld): Ditto.
8084         (-mno-fused-madd): Ditto.
8085         (-mfused-madd): Ditto.
8086         (-mabm): Move flag into ix86_isa_flags.
8087         (-mcx16): Ditto.
8088         (-mpopcnt): Ditto.
8089         (-msahf): Ditto.
8090         (-maes): Ditto.
8091         (-mpclmul): Ditto.
8092
8093         * config/i386/i386-c.c: New file for #pragma support.
8094         (ix86_target_macros_internal): New function to #define or #undef
8095         target macros based when the user uses the #pragma GCC option to
8096         change target options.
8097         (ix86_pragma_option_parse): New function to add #pragma GCC option
8098         support.
8099         (ix86_target_macros): Move defining the target macros here from
8100         TARGET_CPU_CPP_BUILTINS in i386.h.
8101         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
8102         defined, initialize any subtarget #pragmas.
8103
8104         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
8105         REGISTER_TARGET_PRAGMAS.
8106
8107         * config/i386/t-i386: New file for x86 dependencies.
8108         (i386.o): Make dependencies mirror the include files used.
8109         (i386-c.o): New file, add dependencies.
8110
8111         * config/i386/i386-protos.h (override_options): Add bool argument.
8112         (ix86_valid_option_attribute_tree): Add declaration.
8113         (ix86_target_macros): Ditto.
8114         (ix86_register_macros): Ditto.
8115
8116         * config/i386/i386.c (ix86_tune_features): Move initialization of
8117         the target masks to initial_ix86_tune_features to allow functions
8118         to have different target options.  Make type unsigned char,
8119         instead of unsigned int.
8120         (initial_ix86_tune_features): New static vector to hold processor
8121         masks for the tune variables.
8122         (ix86_arch_features): Move initialization of the target masks to
8123         initial_ix86_arch_features to allow functions to have different
8124         target options.  Make type unsigned char, instead of unsigned int.
8125         (initial_ix86_arch_features): New static vector to hold processor
8126         masks for the arch variables.
8127         (enum ix86_function_specific_strings): New enum to describe the
8128         string options used for attribute((option(...))).
8129         (ix86_target_string): New function to return a string that
8130         describes the target options.
8131         (ix86_debug_options): New function to print the current options in
8132         the debugger.
8133         (ix86_function_specific_save): New function hook to save the
8134         function specific global variables in the cl_target_option structure.
8135         (ix86_function_specific_restore): New function hook to restore the
8136         function specific variables from the cl_target_option structure to
8137         the global variables.
8138         (ix86_function_specific_print): New function hook to print the
8139         target specific options in the cl_target_option structure.
8140         (ix86_valid_option_attribute_p): New function hook to validate
8141         attribute((option(...))) arguments.
8142         (ix86_valid_option_attribute_tree): New function that is common
8143         code between attribute((option(...))) and #pragma GCC option
8144         support that parses the options and returns a tree holding the options.
8145         (ix86_valid_option_attribute_inner_p): New helper function for
8146         ix86_valid_option_attribute_tree.
8147         (ix86_can_inline_p): New function hook to decide if one function
8148         can inline another on a target specific basis.
8149         (ix86_set_current_function); New function hook to switch target
8150         options if the user used attribute((option(...))) or #pragma GCC
8151         option.
8152         (ix86_tune_defaulted): Move to static file scope from
8153         override_options.
8154         (ix86_arch_specified): Ditto.
8155         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
8156         ix86_isa_flags.
8157         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
8158         (OPTION_MASK_ISA_ABM_SET): Ditto.
8159         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
8160         (OPTION_MASK_ISA_CX16_SET): Ditto.
8161         (OPTION_MASK_ISA_SAHF_SET): Ditto.
8162         (OPTION_MASK_ISA_AES_UNSET): Ditto.
8163         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
8164         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
8165         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
8166         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
8167         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
8168         (struct ptt): Move to static file scope from override_options.
8169         (processor_target_table): Ditto.
8170         (cpu_names): Ditto.
8171         (ix86_handle_option): Add support for options that are now isa options.
8172         (override_options): Add support for declaring functions that
8173         support different target options than were specified on the
8174         command line.  Move struct ptt, processor_target_table, cpu_names,
8175         ix86_tune_defaulted, ix86_arch_specified to static file scope.
8176         Add bool argument.  Fix up error messages so the appropriate error
8177         is given for either command line or attribute.
8178         (ix86_previous_fndecl): New static to remember previous function
8179         declaration to see if we need to change target options.
8180         (ix86_builtins_isa): New array to record the ISA of each builtin
8181         function.
8182         (def_builtin): Always create the builtin function, even if the
8183         current ISA doesn't support it.
8184         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
8185         tests for those builtins.
8186         (ix86_init_builtins): Remove TARGET_MMX test for calling
8187         ix86_init_mmx_sse_builtins.
8188         (ix86_expand_builtin): If the current ISA doesn't support a given
8189         builtin, signal an error.
8190         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
8191         (TARGET_SET_CURRENT_FUNCTION): Ditto.
8192         (TARGET_OPTION_SAVE): Ditto.
8193         (TARGET_OPTION_RESTORE): Ditto.
8194         (TARGET_OPTION_PRINT): Ditto.
8195         (TARGET_CAN_INLINE_P): Ditto.
8196
8197 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
8198
8199         * c-typeck.c (build_external_ref): Don't call assemble_external.
8200         * final.c (output_operand): Call assemble_external.
8201
8202 2008-07-21  DJ Delorie  <dj@redhat.com>
8203
8204         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
8205         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
8206
8207 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8208
8209         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
8210         original insn and splitter contents into ...
8211         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
8212         flag_unsafe_math_optimizations.  Add dummy scratch register.
8213         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
8214         !flag_unsafe_math_optimizations.  Returns number with next
8215         highest magnitude if this is still less or equal to the true
8216         quotient in magnitude.
8217
8218 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
8219
8220         * Makefile.in: Replace toplev.h with TOPLEV_H.
8221         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
8222         * c-lex.c (fe_file_change): Don't set in_system_header.
8223         * c-parser.c (c_token): Remove in_system_header.
8224         (c_lex_one_token): Don't set in_system_header.
8225         (c_parser_set_source_position_from_token): Don't set in_system_header.
8226         * diagnostic.c (diagnostic_report_diagnostic): Use location from
8227         diagnostic_info.
8228         (warning_at): New.
8229         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
8230         * flags.h (in_system_header): Remove.
8231         * function.c (saved_in_system_header): Remove.
8232         (push_cfun): Don't set in_system_header.
8233         (pop_cfun): Don't set in_system_header.
8234         (push_struct_function): Don't set in_system_header.
8235         * input.h (expanded_location): Add sysp.
8236         (in_system_header_at): New.
8237         (in_system_header): New.
8238         * toplev.c (in_system_header): Remove.
8239         * toplev.h: Include input.h
8240         (warning_at): New.
8241         * tree-cfg.c (execute_warn_function_return): Call warning_at.
8242         * tree-ssa.c (warn_uninit): Call warning_at.
8243         (warn_uninitialized_var): Update calls to warn_uninit.
8244         (warn_uninitialized_phi): Update calls to warn_uninit.
8245         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
8246         (expand_location): Initialize xloc.sysp.
8247         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
8248         (tree_decl_with_vis): Remove in_system_header_flag.
8249
8250 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
8251
8252         PR target/36822
8253         * recog.c (asm_operand_ok): Change the order of the extra
8254         memory constraint checks.
8255
8256 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8257
8258         PR tree-opt/36879
8259         * tree-switch-conversion.c (build_one_array): Call
8260         varpool_mark_needed_node and varpool_finalize_decl
8261         instead of assemble_variable.
8262
8263 2008-07-19  Jan Hubicka  <jh@suse.cz>
8264
8265         * cgraph.c (cgraph_add_new_function): Do early local passes.
8266         * tree-nrv.c (gate_pass_return_slot): New gate.
8267         (pass_nrv): Add the gate.
8268         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
8269         functions.
8270         (coalesce_ssa_name): Coalesce SSA names.
8271         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
8272         not optimizing so unused user vars remains visible.
8273         * common.opt (flag_tree_ter): Always enable by default.
8274         * tree-ssa-ter.c: Include flags.h
8275         (is_replaceable_p): Check that locations match; when aliasing
8276         is missing be conservative about loads.
8277         * tree-optimize.c (gate_init_datastructures): Remove.
8278         (pass_init_datastructures): New.
8279         * passes.c: Reorder passes so we always go into SSA.
8280
8281 2008-07-19  Jan Hubicka  <jh@suse.cz>
8282
8283         * doc/extend.texi (flatten attribute): Remove note about
8284         unit-at-a-time.
8285         * doc/invoke.texi (--combine): Likewise.
8286         (-finline-functions-called-once): Update levels when enabled.
8287         (-funit-at-a-time): Document new behaviour.
8288         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
8289         -fno-section-anchors when disabled explicitly.
8290         (inline params): They are not ignored now.
8291         (precompiled headers): Remove unit-at-a-time as being incompatible.
8292         * opts.c (decode_options): Handle unit-at-a-time as alias;
8293         imply -fno-section-anchors when toplevel reorder is disabled
8294         explicitly.
8295         * common.opt (ftoplevel-reorder): Set default value to 2.
8296         (funit-at-a-time): Set default value to 1.
8297         * config/rs6000/rs6000.c (optimization_options): Set section anchors
8298         to 2.
8299
8300 2008-07-19  Jan Hubicka  <jh@suse.cz>
8301
8302         * builtins.c (expand_builtin_int_roundingfn,
8303         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
8304         it is not useful.
8305
8306 2008-07-19  Richard Guenther  <rguenther@suse.de>
8307
8308         PR bootstrap/36864
8309         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
8310         * tree-ssa-sccvn.c (get_constant_value_id): New function.
8311         * tree-ssa-pre.c (get_expr_value_id): For newly created
8312         constant value-ids make sure to add the expression to its
8313         expression-set.
8314
8315 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
8316
8317         PR middle-end/36877
8318         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
8319         return value of the builtin is ignored.
8320
8321 2008-07-19  Olivier Hainque  <hainque@adacore.com>
8322
8323         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
8324         bits, a C conformant malloc implementation has to provide.
8325         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
8326
8327 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
8328
8329         PR target/36780
8330         PR target/36827
8331         * reload.c (find_reloads_subreg_address): Only reload address if
8332         reloaded == 0, not for reloaded != 1.
8333
8334         Revert:
8335         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
8336         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
8337         (m32c_legitimate_address_p): Handle "++rii" addresses created by
8338         m32c_legitimize_reload_address.
8339
8340         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
8341         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
8342         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
8343
8344 2008-07-19  Olivier Hainque  <hainque@adacore.com>
8345
8346         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
8347         argument, saying whether nested array are to be collapsed
8348         into a single array type DIE with multiple subscripts.
8349         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
8350         issues, centralize the nested array types collapsing control and
8351         disable the transformation for Ada.
8352
8353 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
8354
8355         PR target/36786
8356         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
8357         x86_64_shift_adj.
8358         (x86_64_shift_adj_2): New expander.
8359         (x86_64_shift_adj_3): Ditto.
8360         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
8361         to split TImode operands.
8362         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
8363         (ix86_split_lshr): Ditto.
8364
8365 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
8366
8367         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
8368         and __CHAR32_TYPE__.
8369         * c-typeck.c (digest_init): Support char16_t and char32_t.
8370         (set_nonincremental_init_from_string): Idem.
8371
8372 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
8373
8374         PR middle-end/36859
8375         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
8376         PREFERRED_STACK_BOUNDARY.
8377         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8378
8379 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
8380
8381         PR middle-end/36858
8382         * function.c (locate_and_pad_parm): Cap boundary earlier.
8383
8384 2008-07-17  Julian Brown  <julian@codesourcery.com>
8385
8386         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
8387         no-op for targets which don't use DLLs.
8388
8389 2008-07-17  Martin Jambor  <mjambor@suse.cz>
8390
8391         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
8392         that nodes are relevant by examining the node->analyzed flag.
8393         (ipcp_init_stage): Check which nodes are relevant, assert that the
8394         relevant ones are also required.
8395         (ipcp_propagate_stage): Check on the side arrays are properly
8396         allocated.
8397         (ipcp_print_all_jump_functions): Make sure not to touch any node
8398         that is not analyzed or an edge that does not have a corresponding
8399         entry in the on-the-side vectors.
8400         (ipcp_function_scale_print): Likewise.
8401         (ipcp_update_callgraph): Check that the node is relevant.
8402         (ipcp_insert_stage): Check that the node is relevant.  Check there is
8403         an info for every node and edge.
8404         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
8405         (ipa_print_all_tree_maps): Likewise and a new variable info.
8406         (ipa_print_all_params_modified): Likewise.
8407         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
8408
8409 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
8410
8411         PR target/25343
8412         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
8413
8414 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
8415
8416         PR rtl-optimization/36753
8417         * fwprop.c (use_killed_between): Don't shortcut
8418         single-definition global registers.
8419
8420 2008-07-16  Jan Hubicka  <jh@suse.cz>
8421
8422         * cgraph.h (varpool_empty_needed_queue): Declare.
8423         * cgraphunit.c (output_in_order): Mark all variables as needed;
8424         empty the queue.
8425         * varpool.c (varpool_assemble_node): Update debug queue.
8426         (varpool_assemble_pending_decls): Don't do it here.
8427         (varpool_empty_needed_queue):  New function.
8428
8429 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8430
8431         * recog.c (peephole2_optimize): Fix formatting.
8432
8433 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8434
8435         * c-pch.c (get_ident): Avoid C++ keywords.
8436         * combine-stack-adj.c (single_set_for_csa): Likewise.
8437         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
8438         output_asm_insn): Likewise.
8439         * reload.c (push_secondary_reload, find_reusable_reload,
8440         push_reload, combine_reloads, find_reloads,
8441         debug_reload_to_stream): Likewise.
8442         * reload.h (struct reload): Likewise.
8443         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
8444         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
8445         emit_output_reload_insns): Likewise.
8446         * targhooks.c (default_secondary_reload): Likewise.
8447         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
8448
8449 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8450
8451         * recog.c (validate_change_1, validate_change,
8452         validate_unshare_change, validate_replace_rtx_1, struct
8453         funny_match, constrain_operands, peephole2_optimize): Avoid C++
8454         keywords.
8455         * reload.c (push_secondary_reload, secondary_reload_class,
8456         scratch_reload_class, find_valid_class, find_reusable_reload,
8457         push_reload, find_dummy_reload, find_reloads_address_1,
8458         find_reloads_address_part, find_equiv_reg): Likewise.
8459         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
8460         choose_reload_regs): Likewise.
8461         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
8462         Likewise.
8463         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
8464         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
8465         * sched-rgn.c (concat_INSN_LIST): Likewise.
8466         * stor-layout.c (mode_for_size, mode_for_size_tree,
8467         smallest_mode_for_size): Likewise.
8468
8469 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8470
8471         * cfg.c (dump_reg_info): Avoid C++ keywords.
8472         * dwarf2asm.c (dw2_force_const_mem,
8473         dw2_asm_output_encoded_addr_rtx): Likewise.
8474         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
8475         * expmed.c (expand_shift): Likewise.
8476         * global.c (find_reg): Likewise.
8477         * graph.c (draw_edge): Likewise.
8478         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
8479         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
8480         widen_clz, widen_bswap, expand_parity, expand_unop,
8481         emit_cmp_and_jump_insn_1): Likewise.
8482         * postreload.c (reload_cse_simplify_operands): Likewise.
8483         * ra.h (add_neighbor): Likewise.
8484         * reg-stack.c (remove_regno_note, change_stack): Likewise.
8485         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
8486         record_reg_classes, copy_cost, record_address_regs,
8487         invalid_mode_change_p): Likewise.
8488         * regrename.c (regrename_optimize, scan_rtx_reg,
8489         dump_def_use_chain, find_oldest_value_reg,
8490         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
8491
8492 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
8493
8494         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
8495         MASK_POWERPC64 for power4 in previous commit.
8496
8497 2008-07-16  Olivier Hainque  <hainque@adacore.com>
8498
8499         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
8500         instead of bare conversion to cast const-ness away.
8501
8502 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
8503
8504         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
8505         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
8506         * config/xtensa/xtensa.c (xtensa_function_value): New function.
8507         (TARGET_FUNCTION_VALUE): Define.
8508
8509 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
8510
8511         * config/rs6000/rs6000.c (processor_target_table): Add
8512         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
8513
8514 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
8515
8516         PR target/36827
8517         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
8518         (m32c_legitimate_address_p): Handle "++rii" addresses created by
8519         m32c_legitimize_reload_address.
8520
8521 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
8522
8523         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
8524         DECL_IN_SYSTEM_HEADER in sync.
8525
8526 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
8527
8528         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
8529         * tree-ssa-pre.c (pre_expr_eq): Ditto
8530         (get_constant_for_value_id): Take a type as an argument.
8531         (fully_constant_expression): Pass in type.
8532         (find_or_generate_expression): Short circuit constant case.
8533         (create_expression_by_pieces): Remove special casing of
8534         pointer_plus.
8535         (do_regular_insertion): Short circuit constant case.
8536         (do_partial_partial_insertion): Ditto.
8537
8538 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
8539
8540         PR target/36782
8541         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
8542
8543 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
8544
8545         * config/xtensa/libgcc-xtensa.ver: New file.
8546         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
8547
8548 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8549
8550         * df-problems.c (df_set_note): Avoid C++ keywords.
8551         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
8552         * dse.c (record_store, remove_useless_values): Likewise.
8553         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
8554         gen_reg_rtx_offset, operand_subword, change_address_1,
8555         change_address, adjust_address_1, offset_address,
8556         widen_memory_access, emit_copy_of_insn_after): Likewise.
8557         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
8558         * fwprop.c (should_replace_address, propagate_rtx_1,
8559         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
8560         Likewise.
8561         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
8562         gcse_emit_move_after, update_ld_motion_stores): Likewise.
8563         * lcm.c (compute_insert_delete, pre_edge_lcm,
8564         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
8565         * lower-subreg.c (resolve_reg_notes): Likewise.
8566         * mode-switching.c (optimize_mode_switching): Likewise.
8567
8568 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8569
8570         * bt-load.c (add_btr_def, migrate_btr_def,
8571         branch_target_load_optimize): Avoid C++ keywords.
8572         * caller-save.c (insert_restore, insert_save, insert_one_insn):
8573         Likewise.
8574         * combine.c (subst, simplify_set, make_extraction,
8575         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
8576         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
8577         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
8578
8579 2008-07-15  Richard Guenther  <rguenther@suse.de>
8580
8581         PR middle-end/36369
8582         * c-common.c (strict_aliasing_warning): Do not warn for
8583         TYPE_REF_CAN_ALIAS_ALL pointers.
8584         (c_common_get_alias_set): may_alias types are not special.
8585         * tree.c (build_pointer_type_for_mode): Look up the may_alias
8586         attribute and set can_ref_all accordingly.
8587         (build_reference_type_for_mode): Likewise.
8588         * doc/extend.texi (may_alias): Clarify.
8589
8590 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
8591
8592         PR target/36780
8593         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
8594         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
8595
8596 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8597
8598         PR target/31568
8599         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
8600         gcc_assert, instead call output_operand_lossage.
8601
8602 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
8603
8604         * builtins.c (std_canonical_va_list): Treat structure based
8605         va_list types.
8606
8607 2008-07-15  Ben Elliston  <bje@au.ibm.com>
8608
8609         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
8610
8611 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
8612
8613         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
8614         is set.
8615
8616 2008-07-14  Jan Hubicka  <jh@suse.cz>
8617
8618         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
8619         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
8620         fix predicates and constraints.
8621         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
8622         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
8623
8624 2008-07-14  Doug Kwan  <dougkwan@google.com>
8625
8626         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
8627         additional option file arm/eabi.opt.
8628         * config/arm/eabi.h (File): New configuration file for EABI targets.
8629         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
8630         SUBSUBTARGET_EXTRA_SPECS.
8631         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
8632         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
8633         from STARTFILE_SPEC so that it can be referenced in an override.
8634         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
8635         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
8636         can be referenced in an override.
8637         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
8638         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
8639         so that it can be referenced in an override.
8640         (LINK_SPEC): Use BPABI_LINK_SPEC.
8641         * config/arm/eabi.opt (File): New.
8642
8643 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8644
8645         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
8646         (FIXED_VALUE_H): New variable.
8647         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
8648         input.h, fixed-value.h.
8649         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
8650         (BASIC_BLOCK_H): Use $(BITMAP_H).
8651         (FUNCTION_H): Add varray.h.
8652         (IPA_REFERENCE_H): Use $(BITMAP_H).
8653         (CGRAPH_H): Add $(BASIC_BLOCK_H).
8654         (DF_H): Use $(BITMAP_H).
8655         (GGC_H): Add statistics.h.
8656         (INSN_ADDR_H): New.
8657         (INSN_ATTR_H): Use it.
8658         (SYSTEM_H): Add safe-ctype.h, filenames.h.
8659         (INPUT_H): New.
8660         (SYMTAB_H): Add $(OBSTACK_H).
8661         (CPP_INTERNAL_H): New.
8662         (TREE_DUMP_H): Add tree-pass.h.
8663         (TREE_FLOW_H): Use $(BITMAP_H)
8664         (PRETTY_PRINT_H): Use $(INPUT_H).
8665         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
8666         (GSTAB_H): New.
8667         (BITMAP_H): New.
8668         (many object files): Fix lots of header dependencies throughout.
8669
8670 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8671
8672         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
8673         New macros.
8674         (s-gtyp-input): Use them to write tmp-gi.list.
8675         (echo_to_gi.list): Remove.
8676
8677 2008-07-14  Richard Guenther  <rguenther@suse.de>
8678
8679         * tree-ssa-sccvn.c (pre_info): Remove.
8680         (switch_to_PRE_table): Likewise.
8681         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
8682         (set_hashtable_value_ids): Do not create value-ids for the
8683         optimistic tables.
8684         (run_scc_vn): Remove double test.  Remove bogus special-case
8685         in value-number printing.
8686         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
8687         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
8688         SSA_NAME_VALUE.
8689         * tree-flow-inline.h (get_value_handle): Remove.
8690         * tree-flow.h (get_value_handle): Remove.
8691
8692 2008-07-14  Martin Jambor  <mjambor@suse.cz>
8693
8694         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
8695         in which we generate arithmetics is not a subrange.
8696
8697 2008-07-14  Martin Jambor  <mjambor@suse.cz>
8698
8699         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
8700
8701 2008-07-14  Richard Guenther  <rguenther@suse.de>
8702
8703         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
8704
8705 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
8706
8707         PR target/36745
8708         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
8709         reload for symbol refs moved to r0 with -fPIC.
8710         (legitimize_pic_address): Use the target register as temporary
8711         reg if possible.
8712         (emit_symbolic_move): Adjust comment.
8713         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
8714         New expanders.
8715
8716 2008-07-14  Ben Elliston  <bje@au.ibm.com>
8717
8718         * c-common.h (C_CPP_HASHNODE): New macro.
8719         * coretypes.h (struct cpp_token): Forward declare.
8720         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8721         the context-sensitive keyword method.
8722         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
8723         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
8724         expand_bool_pixel): New.
8725         (altivec_categorize_keyword): New function.
8726         (init_vector_keywords): New function.
8727         (rs6000_macro_to_expand): Likewise.
8728         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
8729         compiling an ISO C dialect.
8730
8731 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
8732
8733         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
8734         (create_expression_by_pieces): Fix typo.
8735         (do_regular_insertion): Use debug counter here too.
8736
8737 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
8738
8739         PR target/35492.
8740         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
8741         CONST_OK_FOR_LETTER_P.  All port-local users changed.
8742         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
8743         implement Kp matching power-of-two.
8744         (CONSTRAINT_LEN): Define to match.
8745         * config/cris/cris.md: Replace all use of constraint K with Kc.
8746         ("*btst*): Use Kp for operand 0 of last alternative.
8747
8748 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8749
8750         PR testsuite/36440
8751         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
8752         and quad formats.
8753
8754 2008-07-13  Jan Hubicka  <jh@suse.cz>
8755
8756         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
8757         to be mangled too.
8758
8759 2008-07-13  Richard Guenther  <rguenther@suse.de>
8760
8761         PR middle-end/36811
8762         * langhooks.c (lhd_print_error_function): Deal with recursive
8763         BLOCK trees.
8764
8765 2008-07-12  Jan Hubicka  <jh@suse.cz>
8766
8767         * cgraph.c (assembler_name_hash): New static var.
8768         (hash_node_by_assembler_name, eq_assembler_name): New.
8769         (cgraph_node_for_asm): Use hashtable.
8770         (cgraph_remove_node): Maintain hashtable.
8771         (change_decl_assembler_name): Sanity check that names are not changing
8772         after aliasing was processed.
8773         * cgraph.h (varpoon_node): Add next GGC marker.
8774         * tree.c (decl_assembler_name_equal): Constify.
8775         (decl_assembler_name_hash): New.
8776         * tree.h (decl_assembler_name_equal): Constify.
8777         (decl_assembler_name_hash): Update.
8778
8779 2008-07-12  David Daney  <ddaney@avtrex.com>
8780
8781         * config/mips/driver-native.c (host_detect_local_cpu): Handle
8782         sb1 and r5000 cpus.
8783
8784 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
8785
8786         * doc/md.texi: Document the MIPS "v" constraint.
8787         * config/mips/mips.h (reg_class): Revert last change.
8788         (REG_CLASS_NAMES): Likewise.
8789         (REG_CLASS_CONTENTS): Likewise.
8790         * config/mips/mips.c (mips_regno_to_class): Likewise.
8791         * config/mips/constraints.md (v): Likewise, but add documentation.
8792         Add a comment to say that this constraint should not be used in
8793         gcc code.
8794
8795 2008-07-11  DJ Delorie  <dj@redhat.com>
8796
8797         * config/h8300/h8300.md (length): Fix branch offset limit.
8798
8799 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
8800
8801         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
8802         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
8803         (avr_hard_regno_scratch_ok): New function.
8804         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
8805         * config/avr/avr.md (all peepholes that request a scratch register):
8806         Remove avr_peep2_scratch_safe use.
8807
8808 2008-07-11  Tom Tromey  <tromey@redhat.com>
8809             Ian Lance Taylor  <iant@google.com>
8810
8811         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
8812         (struct c_common_resword): Define.
8813         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
8814         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
8815         (c_common_reswords, num_c_common_reswords): Declare.
8816         * c-common.c (c_common_reswords): New global const array.
8817         (num_c_common_reswords): New const int.
8818         * c-parser.c (struct resword, reswords): Don't define.
8819         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
8820         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
8821         than reswords.  If warning about C++ keywords, give them a special
8822         RID code.
8823         (c_lex_one_token): Warn about C++ keywords.  Call
8824         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
8825         (c_parser_external_declaration): Look for RID_xxx rather than
8826         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
8827         (c_parser_statement_after_labels): Likewise.
8828         (c_parser_objc_class_instance_variables): Likewise.
8829         (c_parser_objc_class_declaration): Likewise.
8830         (c_parser_objc_try_catch_statement): Likewise.
8831         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
8832         (declspecs_add_type): Likewise.
8833
8834 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
8835
8836         * ggc-page.c (alloc_page):
8837         Substituting xmalloc, xcalloc with
8838         XNEWVEC and XCNEWVAR macros which add the
8839         needed casts.
8840
8841 2008-07-11  Richard Guenther  <rguenther@suse.de>
8842
8843         PR tree-optimization/36765
8844         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
8845         aliases from HEAP vars to SMTs.
8846
8847 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8848
8849         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
8850         * configure.ac (loose_warn): Move -Wc++-compat from here...
8851         (strict_warn): ...to here.
8852         * configure: Regenerate.
8853
8854 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
8855
8856         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
8857         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
8858         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
8859         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
8860         excluding more specific h8300-*-* and sh-*-* targets.
8861
8862 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
8863
8864         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
8865         (eliminate): Ditto.
8866         (execute_pre): Call loop_optimizer_finalize in early exit.
8867
8868 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
8869
8870         PR middle-end/36790
8871         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
8872         uids in the bitmap, not just VAR_DECL uids.
8873
8874         PR rtl-optimization/36419
8875         * combine-stack-adj.c (adjust_frame_related_expr): New function.
8876         (combine_stack_adjustments_for_block): Call it if needed.  Delete
8877         correct insn.
8878         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
8879         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
8880         prologue sp adjustment.
8881
8882 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
8883
8884         PR other/28322
8885         * opts.c (print_ignored_options): Report postponed diagnostics for
8886         unknown -Wno-* options as warnings, not errors.
8887         (postpone_unknown_option_error): Renamed to...
8888         (postpone_unknown_option_warning): ... this.
8889
8890 2008-07-09  Doug Kwan  <dougkwan@google.com>
8891
8892         Revert:
8893         2008-07-08  Doug Kwan  <dougkwan@google.com>
8894
8895         * config/arm/arm.opt (mandroid): New option.
8896         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8897         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8898         (CC1_SPEC): Same.
8899         (CC1PLUS_SPEC): Same.
8900         (LIB_SPEC): Same.
8901         (STARTFILE_SPEC): Same.
8902         (ENDFILE_SPEC): Same.
8903         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8904         used.
8905
8906 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
8907
8908         PR target/35802
8909         * config/mips/mips.h (reg_class): Remove V1_REG.
8910         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
8911         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
8912         instead of V1_REGS.
8913         (mips_get_tp): New function.
8914         (mips_legitimize_tls_address): Use it.
8915         * config/mips/constraints.md (v): Delete.
8916         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
8917         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
8918         After reload, split into a move and ...
8919         (*tls_get_tp_<mode>_split): ...this new instruction.
8920
8921 2008-07-09  David Daney  <ddaney@avtrex.com>
8922
8923         * config/mips/driver-native.c: Include coretypes.h and tm.h.
8924
8925 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
8926
8927         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
8928         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
8929         Add c argument.
8930         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
8931         htab_delete should be called.  Don't free c.
8932         (lookup_tmp_var): Create temp_htab lazily.
8933         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
8934         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
8935         callers.
8936         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
8937         lower_omp_ordered, lower_omp_critical, lower_omp_for,
8938         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
8939         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
8940         * tree-sra.c (generate_element_init): Likewise.
8941         * tree-mudflap.c (execute_mudflap_function_ops,
8942         execute_mudflap_function_decls): Likewise.
8943         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
8944         * tree-gimple.h (struct gimplify_ctx): New type.
8945         (push_gimplify_context): Adjust prototype.
8946
8947 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
8948
8949         * tree-ssa-pre.c (phi_translate_1): Update placement of
8950         add_to_value calls.
8951
8952 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
8953
8954         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
8955         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
8956         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
8957         * targhooks.c (default_hard_regno_scratch_ok): New function.
8958         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
8959         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
8960         * recog.c:  Include "target.h".
8961         (peep2_find_free_register): Add check for global regs. Add target
8962         specific check.
8963         * Makefile.in (recog.o): Depend on target.h.
8964
8965 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
8966
8967         * config/sh/sh.c (sh_canonical_va_list_type): New.
8968         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
8969
8970 2008-07-09  Raksit Ashok <raksit@google.com>
8971
8972         * doc/invoke.texi (Option Summary): Mention new option
8973         -Wdisallowed-function-list=...
8974         (Warning Options): Document -Wdisallowed-function-list=...
8975         * common.opt (Wdisallowed-function-list=): New flag.
8976         * flags.h (warn_disallowed_functions): External definition of new
8977         boolean warning flag.
8978         (warn_if_disallowed_function_p): Declare new function.
8979         * opts.c (warning_disallowed_functions): New static variable.
8980         (warn_disallowed_functions): New boolean warning flag.
8981         (warn_if_disallowed_function_p): New function.
8982         (add_comma_separated_to_vector): Rename
8983         add_instrument_functions_exclude_list to this.
8984         (common_handle_option): Handle new option. Rename calls to
8985         add_instrument_functions_exclude_list into calls to
8986         add_comma_separated_to_vector.
8987         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
8988         based on flag warn_disallowed_functions.
8989
8990 2008-07-09  Christian Bruel  <christian.bruel@st.com>
8991
8992         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
8993          instead of get_attr_length.
8994
8995 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8996
8997         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
8998         keywords.
8999         * genemit.c (gen_insn): Likewise.
9000         * gengtype.c (note_def_vec): Likewise.
9001         * gengtype.h (note_def_vec): Likewise.
9002         * genoutput.c (struct data, output_insn_data, process_template,
9003         gen_expand, gen_split, note_constraint): Likewise.
9004         * genrecog.c (new_decision, add_to_sequence, factor_tests,
9005         make_insn_sequence): Likewise.
9006         * gensupport.c (record_insn_name): Likewise.
9007
9008 2008-07-08  Doug Kwan  <dougkwan@google.com>
9009
9010         * config/arm/arm.opt (mandroid): New option.
9011         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
9012         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
9013         (CC1_SPEC): Same.
9014         (CC1PLUS_SPEC): Same.
9015         (LIB_SPEC): Same.
9016         (STARTFILE_SPEC): Same.
9017         (ENDFILE_SPEC): Same.
9018         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
9019         used.
9020
9021 2008-07-08  Raksit Ashok  <raksit@google.com>
9022
9023         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
9024         (set_storage_via_setmem): Fix expected_align parameter.
9025         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
9026         missing from the list.
9027         * doc/md.texi (movmem): Explicitly state that expected alignment is
9028         to be expressed in bytes.
9029         (setmem): Explicitly state that expected alignment is to be expressed
9030         in bytes.
9031
9032 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
9033
9034         * reload.c (find_reloads_subreg_address): Do not require validity
9035         of address in original mode before reloading address.
9036
9037 2008-07-07  Tianwei Sheng  <tianweis@google.com>
9038
9039         * df-core.c (df_remove_problem): Adjust the access to avoid out of
9040         bounds array access.
9041
9042 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
9043
9044         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
9045
9046 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
9047
9048         Fix PR tree-optimization/23455
9049         Fix PR tree-optimization/35286
9050         Fix PR tree-optimization/35287
9051         * Makefile.in (OBJS-common): Remove tree-vn.o.
9052         (tree-vn.o): Remove.
9053         * dbgcnt.def: Add treepre_insert debug counter.
9054         * gcc/tree-flow.h (add_to_value): Updated for other changes.
9055         (debug_value_expressions): Ditto.
9056         (print_value_expressions): Ditto.
9057         * tree-pretty-print.c (dump_generic_node): Updated for
9058         VALUE_HANDLE removal.
9059         * tree-ssa-dom.c (record_equality): Ditto.
9060         (cprop_operand): Ditto.
9061         (lookup_avail_expr): Ditto.
9062         * tree-ssa-threadedge.c
9063         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
9064         (simplify_control_stmt_condition): Ditto.
9065         * tree.c (tree_code_size): Ditto.
9066         (tree_node_structure): Ditto.
9067         (iterative_hash_expr): Ditto.
9068         * tree.def: Ditto.
9069         * tree.h (VALUE_HANDLE_ID): Ditto.
9070         (VALUE_HANDLE_EXPR_SET): Ditto.
9071         (struct tree_value_handle): Ditto.
9072         (union tree_node): Ditto.
9073         * treestruct.def: Ditto.
9074         * tree-vn.c: Removed.
9075         * tree-ssa-pre.c: Rewritten entirely.
9076         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
9077         (constant_value_ids): Ditto.
9078         (vn_nary_op_t): Moved to header.
9079         (vn_phi_t): Ditto.
9080         (vn_reference_op_t): Ditto
9081         (vn_reference_t): Ditto.
9082         (next_value_id): New variable.
9083         (VN_INFO): Add an assert.
9084         (vn_constant_eq): New function.
9085         (vn_constant_hash): Ditto.
9086         (get_or_alloc_constant_value_id): Ditto.
9087         (value_id_constant_p): Ditto.
9088         (vn_reference_compute_hash): De-staticify.
9089         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
9090         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
9091         (valueize_refs): Update opcode if it changes from ssa name to constant.
9092         (vn_reference_lookup_1): Add new argument.
9093         (vn_reference_lookup):  Ditto.
9094         (vn_reference_lookup_pieces): New function.
9095         (vn_reference_insert): Add return type. Modify to deal with value ids.
9096         (vn_reference_insert_pieces):  New function.
9097         (vn_nary_op_compute_hash): De-staticify.
9098         (vn_nary_op_eq): Ditto.
9099         (vn_nary_op_lookup_pieces): New function.
9100         (vn_nary_op_lookup): Add new argument.
9101         (vn_nary_op_insert_pieces): New function.
9102         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
9103         (vn_phi_insert): Ditto.
9104         (visit_unary_op): Update for callee changes.
9105         (visit_binary_op): Ditto.
9106         (visit_reference_op_load): Ditto.
9107         (visit_reference_op_store): Ditto.
9108         (init_scc_vn): Init next_value_id, constant_to_value_id and
9109         constant_value_ids.
9110         (free_scc_vn): Free them.
9111         (set_hashtable_value_ids): New function.
9112         (run_scc_vn): Use it.
9113         (get_max_value_id): New function.
9114         (get_next_value_id): Ditto.
9115         (expressions_equal_p): Moved from tree-vn.c
9116         (sort_vuses): Ditto.
9117         (sort_vuses_heap): Ditto.
9118         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
9119         above).
9120         * tree.c (iterative_hash_hashval_t): Made non-static
9121         * tree.h (iterative_hash_hashval_t): Declare it.
9122
9123 2008-07-08  Martin Jambor  <mjambor@suse.cz>
9124
9125         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
9126         instead of ipa_create_node_params.
9127         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
9128         ipa_check_create_edge_args, free them with
9129         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
9130
9131         * ipa-prop.c: Include flags.h and tree-inline.h.
9132         (ipa_node_params_vector): New variable.
9133         (ipa_edge_args_vector): New variable.
9134         (edge_removal_hook_holder): New variable.
9135         (node_removal_hook_holder): New variable.
9136         (edge_duplication_hook_holder): New variable.
9137         (node_duplication_hook_holder): New variable.
9138         (ipa_detect_param_modifications): Check for presence of modified flags.
9139         (ipa_compute_jump_functions): Check for presence of jump functions.
9140         (ipa_free_edge_args_substructures): New function.
9141         (ipa_create_node_params): Removed.
9142         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
9143         (ipa_free_node_params_substructures): New function.
9144         (ipa_free_all_node_params): Changed to deallocate the on-the-side
9145         vector.
9146         (ipa_edge_removal_hook): New function.
9147         (ipa_node_removal_hook): New function.
9148         (duplicate_array): New function.
9149         (ipa_edge_duplication_hook): New function.
9150         (ipa_node_duplication_hook): New function.
9151         (ipa_register_cgraph_hooks): New function.
9152         (ipa_unregister_cgraph_hooks): New function.
9153         (free_all_ipa_structures_after_ipa_cp): New function.
9154
9155         * ipa-prop.h: Include vec.h.
9156         (ipa_node_params_t): New typedef with vector types for it.
9157         (ipa_edge_args_t):  New typedef with vector types for it.
9158         (IPA_NODE_REF): Changed to access an on-the-side vector.
9159         (IPA_EDGE_REF): Changed to access an on-the-side vector.
9160         (ipa_check_create_node_params): New function.
9161         (ipa_check_create_edge_args): New function.
9162
9163         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
9164         all users.
9165
9166 2008-07-07  Tom Tromey  <tromey@redhat.com>
9167
9168         * configure, config.in: Rebuilt.
9169         * configure.ac: Don't check for scandir or alphasort.
9170
9171 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
9172
9173         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
9174         types immediately after creating them.
9175
9176 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
9177
9178         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
9179
9180 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
9181
9182         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
9183         dump_constraint_graph.
9184         (dump_constraint_edge): New function.
9185         (dump_constraint_graph): New function.
9186         (debug_constraint_graph): New function.
9187         (dump_constraint): Removed useless comparison.
9188         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
9189         (dump_constraint_graph): Declare.
9190         (debug_constraint_graph): Declare.
9191         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
9192
9193 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
9194
9195         * config/i386/i386.c (is_va_list_char_pointer): New.
9196         (ix86_va_start): Replace compare with ms_va_list_type_node
9197         by is_va_list_char_pointer.
9198         (ix86_gimplify_va_arg): Likewise.
9199
9200 2008-07-07  Martin Jambor  <mjambor@suse.cz>
9201
9202         * cgraph.c (cgraph_edge_max_uid): New variable.
9203         (struct cgraph_edge_hook_list): New type.
9204         (struct cgraph_node_hook_list): New type.
9205         (struct cgraph_2edge_hook_list): New type.
9206         (struct cgraph_2node_hook_list): New type.
9207         (first_cgraph_edge_removal_hook): New variable.
9208         (first_cgraph_node_removal_hook): New variable.
9209         (first_cgraph_edge_duplicated_hook): New variable.
9210         (first_cgraph_node_duplicated_hook): New variable.
9211         (cgraph_add_edge_removal_hook): New function.
9212         (cgraph_remove_edge_removal_hook): New function.
9213         (cgraph_call_edge_removal_hooks):  New function.
9214         (cgraph_add_node_removal_hook):  New function.
9215         (cgraph_remove_node_removal_hook):  New function.
9216         (cgraph_call_node_removal_hooks):  New function.
9217         (cgraph_add_edge_duplication_hook):  New function.
9218         (cgraph_remove_edge_duplication_hook):  New function.
9219         (cgraph_call_edge_duplication_hooks):  New function.
9220         (cgraph_add_node_duplication_hook):  New function.
9221         (cgraph_remove_node_duplication_hook):  New function.
9222         (cgraph_call_node_duplication_hooks):  New function.
9223         (cgraph_create_edge): Assign to edge uid.
9224         (cgraph_remove_edge): Call edge removal hooks.
9225         (cgraph_node_remove_callees): Call edge removal hooks.
9226         (cgraph_node_remove_callers): Call edge removal hooks.
9227         (cgraph_remove_node): Call node removal hooks.
9228         (cgraph_clone_edge): Call edge duplication hooks.
9229         (cgraph_clone_node): Call node duplication hooks.
9230
9231         * cgraph.h (cgraph_edge): New field uid.
9232         (cgraph_edge_hook): New type.
9233         (cgraph_node_hook): New type.
9234         (cgraph_2edge_hook): New type.
9235         (cgraph_2node_hook): New type.
9236
9237 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
9238
9239         * config.in: Regenerate.
9240
9241 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
9242
9243         * gcc.c (print_sysroot): New.
9244         (option_map, display_help, process_command): Handle the
9245         -print-sysroot option.
9246         (main): Print the sysroot if requested.
9247         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
9248
9249 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9250
9251         PR target/34780
9252         * unwind-pe.h (size_of_encoded_value): add attribute unused.
9253
9254 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
9255
9256         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
9257         (assign_parm_setup_block_p): Also check mode of entry_parm.
9258
9259 2008-07-07  Richard Guenther  <rguenther@suse.de>
9260
9261         * tree-ssa-structalias.h (set_used_smts): Remove.
9262         * tree-ssa-structalias.c (used_smts): Likewise.
9263         (set_used_smts): Likewise.
9264         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
9265         call to set_used_smts.
9266
9267 2008-07-07  Richard Guenther  <rguenther@suse.de>
9268
9269         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
9270         (new_var_info): Set it to false.
9271         (solution_set_add): Correctly handle pointers outside a var and
9272         inside a field.
9273         (type_safe): Treat variables with is_full_var properly.
9274         (do_sd_constraint): Likewise.
9275         (do_ds_constraint): Likewise.
9276         (process_constraint): Remove zeroing offset for !use_field_sensitive.
9277         (get_constraint_for_ptr_offset): New function.
9278         (get_constraint_for_component_ref): For addresses at least include
9279         the last field of the variable.  Handle is_full_vars properly.
9280         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
9281         (handle_ptr_arith): Remove.
9282         (find_func_aliases): Simplify assignment handling.
9283         (create_function_info_for): For parameter and result varinfos set
9284         is_full_var flag.
9285         (create_variable_info_for): Set is_full_var flag whenever we
9286         just created a single varinfo for a decl.
9287         (init_alias_vars): Initialize use_field_sensitive from
9288         max-fields-for-field-sensitive parameter.
9289
9290 2008-07-07  Richard Guenther  <rguenther@suse.de>
9291
9292         PR tree-optimization/36713
9293         * tree-flow-inline.h (is_call_used): New function.
9294         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
9295         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
9296         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
9297
9298 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
9299
9300         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
9301
9302 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
9303
9304         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
9305
9306 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
9307             Nathan Sidwell  <nathan@codesourcery.com>
9308
9309         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
9310         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
9311         tmake_file.
9312         * config/m68k/t-linux: New.
9313         * doc/install.texi: Document m68k-*-linux is now multilibbed by
9314         default.
9315
9316 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
9317
9318         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
9319         * config/m68k/m68k-devices.def: Remove multilibs that only differ
9320         by MAC/EMAC.
9321
9322 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9323
9324         * gcc.c (execute): Fix -Wc++-compat warning.
9325
9326 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9327
9328         PR target/36720
9329         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
9330         constant for little endian.
9331
9332 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
9333
9334         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
9335         mips_base_mips16 instead of TARGET_MIPS16.
9336         (mips_base_mips16): Declare.
9337         * config/mips/mips.c (mips_base_mips16): Make global.
9338         (was_mips16_p): Remove GTY marker.
9339         (was_mips16_pch_p): New variable.
9340         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
9341         (mips_override_options): Force to non-MIPS16 mode initially.
9342         Do not complain about MIPS16 PIC incompatibilities here.
9343         Only allow -mgpopt if -mexplicit-relocs is in force for
9344         non-MIPS16 code.
9345
9346 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
9347
9348         * configure.ac: Check for caddr_t, define to char * if not defined.
9349         * configure: Regenerate.
9350         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
9351         (mmap_gt_pch_use_address): Likewise.
9352         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
9353
9354 2008-07-06  Richard Guenther  <rguenther@suse.de>
9355
9356         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
9357         (new_var_info): Deal with it.
9358         (solution_set_add): Likewise.
9359         (bitpos_of_field): Make signed, fix.
9360         (struct fieldoff): Remove type and decl fields.  Make size field
9361         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
9362         flags.
9363         (fieldoff_compare): Deal with it.
9364         (push_fields_onto_fieldstack): Remove has_union argument, glob
9365         adjacent non-pointer fields together.
9366         (create_function_info_for): Do not set has_union.
9367         (create_variable_info_for): Simplify.
9368
9369 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
9370
9371         * config.gcc (extra_headers): Add cross-stdarg.h for target
9372         x86_64-*-* and i?86-*-*.
9373         * config/i386/cross-stdarg.h: New.
9374         * builtins.c (std_fn_abi_va_list): New.
9375         (std_canonical_va_list_type): New.
9376         (stabilize_va_list): Replace va_list_type_node use by
9377         mtarget.canonical_va_list_type.
9378         (gimplify_va_arg_expr): Likewise.
9379         (expand_builtin_va_copy): Replace va_list_type_node use by
9380         mtarget.fn_abi_va_list.
9381         * tree-sra.c (is_va_list_type): New helper.
9382         (decl_can_be_decomposed_p): Replace
9383         va_list_type_node use by is_va_list_type.
9384         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
9385         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9386         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
9387         * config/i386/i386-protos.h (ix86_get_valist_type): New.
9388         (ix86_enum_va_list): New.
9389         * config/i386/i386.c (sysv_va_list_type_node): New.
9390         (ms_va_list_type_node): New.
9391         (ix86_function_type_abi): Remove sorry.
9392         (ix86_build_builtin_va_list_abi): New.
9393         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
9394         for 64-bit targets.
9395         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
9396         (ix86_init_builtins_va_builtins_abi): New.
9397         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
9398         for 64-bit targets.
9399         (ix86_handle_abi_attribute): New.
9400         (attribute_spec): Add sysv_abi and ms_abi.
9401         (ix86_fn_abi_va_list): New.
9402         (ix86_canonical_va_list_type): New.
9403         (ix86_enum_va_list): New.
9404         (TARGET_FN_ABI_VA_LIST): New.
9405         (TARGET_CANONICAL_VA_LIST_TYPE): New.
9406         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
9407         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
9408         (TARGET_CANONICAL_VA_LIST_TYPE): New.
9409         (TARGET_ENUM_VA_LIST): New.
9410         * expr.h (std_fn_abi_va_list): New.
9411         (std_canonical_va_list_type): New.
9412         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
9413         (TARGET_CANONICAL_VA_LIST_TYPE): New.
9414         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
9415         TARGET_CANONICAL_VA_LIST_TYPE.
9416         * target.h (struct gcc_target): Add fn_abi_va_list hook
9417         and canonical_va_list_type hook.
9418
9419 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9420
9421         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
9422         integral and pointer types.
9423
9424 2008-07-04  Roger Sayle  <roger@eyesopen.com>
9425
9426         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
9427         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
9428
9429 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
9430
9431         PR target/36684
9432         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
9433
9434 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
9435
9436         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
9437         build_gimple_modify_stmt.
9438         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
9439         gimple operand.  Use fold_build* instead of build*.
9440
9441 2008-07-04  Richard Guenther  <rguenther@suse.de>
9442
9443         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
9444         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
9445         properly to compute the reachability set if we do field-sensitive PTA.
9446         * invoke.texi (max-fields-for-field-sensitive): Document default.
9447         * opts.c (decode_options): Set max-fields-for-field-sensitive to
9448         100 for optimize >= 2.
9449
9450 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9451
9452         * ggc-zone.c (lookup_page_table_if_allocated,
9453         set_page_table_entry, zone_find_object_size, alloc_small_page,
9454         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
9455         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
9456         -Wc++-compat and/or -Wcast-qual warnings.
9457
9458 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
9459
9460         PR target/36634
9461         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
9462         pic_offset_table_rtx to be marked as used here.
9463         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
9464         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
9465         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
9466         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
9467         !TARGET_SECURE_PLT.
9468
9469 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9470
9471         * alloc-pool.c (hash_descriptor, eq_descriptor,
9472         alloc_pool_descriptor): Fix -Wc++-compat warnings.
9473         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
9474         Likewise.
9475         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
9476         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
9477         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
9478         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
9479         Likewise.
9480
9481 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
9482
9483         * tree-flow.h (loop_only_exit_p): Declare.
9484         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
9485         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
9486         the number of iterations if it is constant.  Otherwise, if this is the
9487         only possible exit of the loop, use the conservative estimate on the
9488         number of iterations of the entire loop if available.
9489
9490 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
9491
9492         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
9493         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
9494         Add synchronization functions.
9495         * config/sync.c: New file.
9496         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
9497         (LIBGCC_SYNC_CFLAGS): Likewise.
9498
9499 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
9500
9501         PR target/36710
9502         * config/i386/i386.md (mode): Add TF to "mode" attribute.
9503         (*pushtf_sse): New insn pattern.
9504         (pushtf splitters): New splitters.
9505
9506 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
9507
9508         PR middle-end/35736
9509         * predict.c (build_predict_expr): Use void_type_node for the tree
9510         type, instead of NULL_TREE.
9511
9512 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
9513
9514         * config/i386/i386.c (contains_aligned_value_p): Return true
9515         for TCmode.
9516         (ix86_data_alignment): Align TCmode to 128bits.
9517         (ix86_local_alignment): Likewise.
9518
9519 2008-07-03  Andrew Haley  <aph@redhat.com>
9520
9521         PR bootstrap/33304
9522         * vec.h (VEC_TA): New.
9523         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
9524         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
9525         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
9526         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
9527         (C_COMMON_FIXED_TYPES): Remove first arg.
9528         (C_COMMON_FIXED_MODE_TYPES): Likewise.
9529         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
9530         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
9531         not to use empty macro arguments.
9532
9533 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
9534
9535         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
9536         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
9537         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
9538         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
9539         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
9540         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
9541         config/ia64/crtn.asm, config/m68hc11/larith.asm,
9542         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
9543         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
9544         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
9545         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
9546         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
9547         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
9548         config/rs6000/e500crtres64gpr.asm,
9549         config/rs6000/e500crtres64gprctr.asm,
9550         config/rs6000/e500crtrest32gpr.asm,
9551         config/rs6000/e500crtrest64gpr.asm,
9552         config/rs6000/e500crtresx32gpr.asm,
9553         config/rs6000/e500crtresx64gpr.asm,
9554         config/rs6000/e500crtsav32gpr.asm,
9555         config/rs6000/e500crtsav64gpr.asm,
9556         config/rs6000/e500crtsav64gprctr.asm,
9557         config/rs6000/e500crtsavg32gpr.asm,
9558         config/rs6000/e500crtsavg64gpr.asm,
9559         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
9560         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
9561         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
9562         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
9563         config/sparc/sol2-cn.asm: Remove .file directives.
9564
9565 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
9566
9567         * resource.c (mark_referenced_resources): Look inside
9568         UNSPEC_VOLATILEs and ASM_INPUTs.
9569
9570 2008-07-02  Ian Lance Taylor  <iant@google.com>
9571
9572         * rtlanal.c (add_reg_note): New function.
9573         * rtl.h (add_reg_note): Declare.
9574         * auto-inc-dec.c (attempt_change): Use add_reg_note.
9575         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
9576         * builtins.c (expand_builtin_longjmp): Likewise.
9577         (expand_builtin_nonlocal_goto): Likewise.
9578         * calls.c (emit_call_1, expand_call): Likewise.
9579         * cfgexpand.c (add_reg_br_prob_note): Likewise.
9580         * cfglayout.c (fixup_reorder_chain): Likewise.
9581         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
9582         (commit_one_edge_insertion): Likewise.
9583         * combine.c (move_deaths, distribute_notes): Likewise.
9584         * df-problems.c (df_set_note): Likewise.
9585         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
9586         (set_unique_reg_note): Likewise.
9587         (emit_copy_of_insn_after): Likewise.
9588         * expr.c (expand_expr_real): Likewise.
9589         * gcse.c (add_label_notes): Likewise.
9590         * haifa-sched.c (create_check_block_twin): Likewise.
9591         * jump.c (mark_jump_label_1): Likewise.
9592         * loop-doloop.c (add_test, doloop_modify): Likewise.
9593         * loop-unswitch.c (compare_and_jump_seq): Likewise.
9594         * lower-subreg.c (move_eh_region_note): Likewise.
9595         * optabs.c (emit_libcall_block): Likewise.
9596         * predict.c (predict_insn): Likewise.
9597         (combine_predictions_for_insn): Likewise.
9598         * recog.c (peephole2_optimize): Likewise.
9599         * regmove.c (try_auto_increment): Likewise.
9600         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
9601         * reload.c (find_reloads): Likewise.
9602         * reload1.c (fixup_eh_region_note): Likewise.
9603         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
9604         * reorg.c (delete_prior_computation): Likewise.
9605         (delete_computation, dbr_schedule): Likewise.
9606         * config/pa/pa.c (legitimize_pic_address): Likewise.
9607         * config/sh/sh.c (sh_reorg): Likewise.
9608
9609 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
9610
9611         PR target/36669
9612         * config/libgcc-glibc.ver: Add %exclude.
9613         * config/m32r/libgcc-glibc.ver: Likwise.
9614         * config/s390/libgcc-glibc.ver: Likwise.
9615         * config/sh/libgcc-glibc.ver: Likwise.
9616         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
9617
9618         * config/i386/libgcc-glibc.ver: New.
9619
9620         * config/i386/libgcc-x86_64-glibc.ver: Removed.
9621
9622 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
9623
9624         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
9625         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
9626         i[34567]86-*-linux*, x86_64-*-linux*.  Add
9627         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
9628         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
9629         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
9630         i[34567]86-*-linux*, x86_64-*-linux*.
9631
9632         * libgcc-std.ver: Add empty GCC_4.4.0.
9633
9634         * mkmap-symver.awk: Support multiple versions per symbol.
9635
9636         * config/i386/i386.c (ix86_init_builtins): Always define
9637         __builtin_fabsq and __builtin_copysignq with fallbacks.
9638         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
9639         and __builtin_copysignq if SSE2 isn't available.
9640
9641         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
9642         (LIBGCC2_TF_CEXT): Likwise.
9643         (TF_SIZE): Likwise.
9644
9645         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
9646
9647         * config/i386/sfp-machine.h: Moved to libgcc.
9648
9649         * config/i386/sfp-machine.h: New.
9650         * config/i386/t-linux: Likwise.
9651
9652         * config/i386/t-darwin: Remove softfp_wrap_start and
9653         softfp_wrap_end.
9654         * config/i386/t-darwin64: Likewise.
9655
9656         * config/i386/t-fprules-softfp64: Renamed to ...
9657         * config/i386/t-fprules-softfp: This.
9658
9659         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
9660         and softfp_wrap_end.
9661
9662 2008-07-02  Jason Merrill  <jason@redhat.com>
9663
9664         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
9665
9666         * tree.c (ctor_to_list): New fn.
9667         * tree.h: Declare it.
9668         (CONSTRUCTOR_ELT): New macro.
9669         (CONSTRUCTOR_NELTS): New macro.
9670
9671 2008-07-02  Richard Guenther  <rguenther@suse.de>
9672
9673         * tree-ssa-structalias.c (struct variable_info): Reorder
9674         to fill padding on 64bit hosts.  Make collapsed_to an int.
9675         (get_varinfo_fc): Deal with that.
9676         (new_var_info): Likewise.
9677         (collapse_rest_of_var): Likewise.
9678
9679 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
9680
9681         * doc/install.texi (--enable-java-home): Document.
9682         (--enable-aot-compile-rpm): Likewise.
9683         (--with-arch-directory): Likewise.
9684         (--with-os-directory): Likewise.
9685         (--with-origin-name): Likewise.
9686         (--with-arch-suffix): Likewise.
9687         (--with-jvm-root-dir): Likewise.
9688         (--with-jvm-jar-dir): Likewise.
9689         (--with-python-dir): Likewise.
9690
9691 2008-07-02  Richard Guenther  <rguenther@suse.de>
9692
9693         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
9694         from decls explicitly.  Merge operand checking from tuples.
9695
9696 2008-07-02  Martin Jambor  <mjambor@suse.cz>
9697
9698         * tree-switch-conversion.c: Included timevar.h which I forgot before.
9699
9700 2008-07-02  Martin Jambor  <mjambor@suse.cz>
9701
9702         * tree-switch-conversion.c: Included timevar.h
9703         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
9704
9705         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
9706
9707 2008-07-02  Martin Jambor  <mjambor@suse.cz>
9708
9709         * tree-switch-conversion.c: Corrected various comments and
9710         whitespace issues
9711         (build_constructors): Fixed minor formatting mistakes.
9712
9713         * invoke.texi (Optimize Options): Corrected the
9714         switch-conversion-max-branch-ratio parameter.
9715
9716 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
9717
9718         * final.c (asm_insn_count): Return zero for an empty asm body.
9719
9720 2008-07-02  Richard Guenther  <rguenther@suse.de>
9721
9722         * bitmap.h (bitmap_set_bit): Return bool.
9723         (bitmap_clear_bit): Likewise.
9724         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
9725         write to the bitmap if it would.
9726         (bitmap_clear_bit): Likewise.
9727         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
9728         bitmap_set_bit return value.
9729         (add_pred_graph_edge): Likewise.
9730         (add_graph_edge): Likewise.
9731         (do_sd_constraint): Likewise.
9732         (do_ds_constraint): Likewise.
9733
9734 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9735
9736         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
9737         Fix -Wc++-compat and/or -Wcast-qual warnings.
9738         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
9739         gen_regparm_prefix): Likewise.
9740         * vmsdbgout.c (write_modbeg, lookup_filename,
9741         vmsdbgout_source_line, vmsdbgout_init): Likewise.
9742
9743 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
9744
9745         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
9746         defaults.h definition apply.
9747
9748 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
9749
9750         * function.c (assign_parm_remove_parallels): New.
9751         (assign_parm_setup_block_p): Do not return true for non-BLKmode
9752         PARALLELs.
9753         (assign_parm_setup_block): Do not handle them.
9754         (assign_parm_setup_reg, assign_parm_setup_stack): Call
9755         assign_parm_remove_parallels.
9756
9757 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
9758
9759         * c-typeck.c (convert_for_assignment): Use
9760         vector_targets_convertible_p.
9761         * c-common.c (vector_targets_convertible_p): New.
9762         * c-common.h (vector_targets_convertible_p): New prototype.
9763         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
9764         opaque_p_V2SI_type_node.
9765
9766 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
9767
9768         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
9769         RFmode constants.
9770
9771 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
9772
9773         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
9774         TFmode constants via two element DImode vector for hosts with
9775         HOST_BITS_PER_WIDE_INT < 64.
9776         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
9777         also for HOST_BITS_PER_WIDE_INT < 64.
9778
9779 2008-07-01  Richard Guenther  <rguenther@suse.de>
9780
9781         PR tree-optimization/36666
9782         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
9783         (get_constraint_exp_from_ssa_var): Split into ...
9784         (get_constraint_exp_for_temp): ... this ...
9785         (get_constraint_for_ssa_var): ... and that.
9786         Return constraint expressions for all touched sub-fields
9787         if the results address is not taken.
9788         (process_constraint): Remove assertion that aggregate
9789         assignments do not happen at this place.
9790         (get_constraint_for_component_ref): Add address_p argument.
9791         Return constraint expressions for all touched sub-fields
9792         if the results address is not taken.
9793         (do_deref): Use get_constraint_exp_for_temp.
9794         (get_constraint_for_1): Rename from ...
9795         (get_constraint_for): ... this.  Add the old function as wrapper.
9796         (do_structure_copy): Use get_constraint_for_1.
9797
9798 2008-07-01  Martin Jambor  <mjambor@suse.cz>
9799
9800         * Makefile.in (tree-switch-conversion.o): Add.
9801         (OBJS-common): Add tree-swtch-conversion.o.
9802         * passes.c (init_optimization_passes): Add pass_convert_switch.
9803         * tree-pass.h: (pass_convert_switch): Add.
9804         * tree-switch-conversion.c: New file.
9805         * gcc.dg/tree-ssa/cswtch.c: New testcase.
9806         * common.opt (ftree-cswtch): New option.
9807         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9808         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9809         * opts.c (decode_options): Set flag_tree_switch_conversion when
9810         optimization level is >= 2.
9811         * doc/invoke.texi (Optimize Options): Added description of
9812         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
9813
9814 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9815
9816         * config/darwin-driver.c (darwin_default_min_version): Fix
9817         -Wc++-compat warnings.
9818
9819 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
9820
9821         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
9822         of operand 0.
9823
9824 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
9825
9826         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
9827
9828 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
9829
9830         PR rtl-optimization/34744
9831         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
9832         (df_scan_free_internal): Free data structures not
9833         allocated in storage pools.
9834         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
9835         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
9836         df_scan_free_mws_vec.
9837         * dse.c (dse_step6): Free offset_map_p and offset_map_n
9838         unconditionally.
9839
9840 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9841
9842         * config/i386/i386.c (contains_aligned_value_p): Return true
9843         for __float128.
9844         (ix86_function_arg_boundary): Return its natural boundary
9845         for __float128.
9846         (return_in_memory_32): Don't check TDmode.
9847         (ix86_split_to_parts): Support splitting into 4 parts and
9848         support TFmode for 32bit target.
9849         (ix86_split_long_move): Support splitting into 4 parts.
9850         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
9851         for SSE2.
9852         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
9853         (ix86_init_builtins): Here.
9854         (ix86_scalar_mode_supported_p): Always return true for TFmode.
9855         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
9856         'q' and 'w', respectively.
9857
9858         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
9859         TARGET_64BIT.
9860         (movtf_internal): Likewise.
9861         (<code>tf2): Likewise.
9862         (*absnegtf2_sse): Likewise.
9863         (copysign<mode>3): Likewise.
9864         (copysign<mode>3_const): Likewise.
9865         (copysign<mode>3_var): Likewise.
9866         (define_split UNSPEC_COPYSIGN): Likewise.
9867         * config/i386/sse.md (*nandtf3): Likewise.
9868         (<code>tf3): Likewise.
9869         (*<code>tf3): Likewise.
9870
9871 2008-06-30  Joey Ye  <joey.ye@intel.com>
9872             H.J. Lu  <hongjiu.lu@intel.com>
9873
9874         * global.c (compute_regsets): Set frame_pointer_needed here.
9875         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
9876
9877 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9878
9879         * doc/install.texi (specific): Expand Windows build notes.
9880
9881 2008-06-30  Ira Rosen  <irar@il.ibm.com>
9882
9883         PR tree-optimization/36648
9884         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
9885         number of prolog iterations by step. Fix the comment.
9886
9887 2008-06-30  Richard Guenther  <rguenther@suse.de>
9888
9889         PR middle-end/36671
9890         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
9891         handle calls from ECF_MALLOC functions.
9892         (handle_pure_call): ECF_MALLOC functions do not return
9893         call-used memory.
9894         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
9895
9896 2008-06-29  Andreas Schwab  <schwab@suse.de>
9897
9898         * config/m68k/m68k.c (print_operand): Always print a float
9899         constant in hex.
9900         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
9901         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
9902         Remove macros.
9903
9904         * config/rs6000/x-linux64: Remove never used file.
9905
9906 2008-06-29  Richard Guenther  <rguenther@suse.de>
9907
9908         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
9909         prototype.
9910         (struct alias_info): Move ...
9911         * tree-ssa-alias.c: ... here.
9912         (update_alias_info): Declare.
9913         (compute_may_aliases): Call it.
9914         (update_alias_info): New function.
9915         * tree-ssa-structalias.c (update_alias_info): Move ...
9916         * tree-ssa-alias.c (update_alias_info_1): ... here.
9917         * tree-ssa-structalias.c (process_constraint_1): Remove
9918         unused from_call argument.  Rename to ...
9919         (process_constraint): ... this.  Delete old wrapper.
9920         (make_constraint_to): Adjust callers.
9921         (handle_const_call): Likewise.
9922         (handle_pure_call): Likewise.
9923         (init_base_vars): Likewise.
9924         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
9925         (find_func_aliases): We don't need structure copies for
9926         complex types.
9927         (make_constraint_from_anything): Remove.
9928         (create_variable_info_for): For globals make constraints
9929         from escaped, not from anything.
9930         (compute_points_to_sets): Do not call update_alias_info.
9931         (ipa_pta_execute): Use make_constraint_from.
9932
9933 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9934
9935         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
9936         (bitmap.o-warn, dominance.o-warn): New.
9937         * configure.ac (cxx_compat_warn): Delete.
9938         (loose_warn): Add -Wcast-qual and -Wc++-compat.
9939         * system.h: Remove #pragma diagnostic for -Wcast-qual and
9940         -Wc++-compat.
9941         * configure: Regenerate.
9942
9943         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
9944         warnings.
9945
9946 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9947
9948         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
9949         * df-scan.c (df_notes_rescan): Likewise.
9950         * ggc-page.c (set_page_table_entry): Likewise.
9951         * intl.c (gcc_gettext_width): Likewise.
9952         * varasm.c (get_unnamed_section, get_noswitch_section,
9953         get_section): Likewise.
9954
9955 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
9956
9957         * regrename.c (build_def_use): Don't copy RTX.
9958
9959 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
9960
9961         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
9962         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
9963         punctuation.  Use @ref instead of @xref.
9964         (Function Names): Remove stray @display/@end display.
9965         (C++ Attributes): Use @ref instead of @xref.
9966         (Deprecated Features): Fix punctuation around @xref.
9967         (Backwards Compatibility): Likewise.
9968         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
9969
9970 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
9971
9972         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
9973         constants for E500 double.
9974
9975 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9976
9977         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
9978         element type of const_vector.
9979
9980 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
9981
9982         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
9983         Remove FLAGS_REG clobber from expander pattern.
9984         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
9985         (anddi3, andsi3, andhi3, andqi3): Ditto.
9986         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
9987         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
9988         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
9989         (ashlsi3, ashlhi3, ashlqi3): Ditto.
9990         (ashrsi3, ashrhi3, ashrqi3): Ditto.
9991         (lshrsi3, lshrhi3, lshrqi3): Ditto.
9992         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
9993         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
9994
9995 2008-06-28  Richard Guenther  <rguenther@suse.de>
9996
9997         * tree-ssa-structalias.c (callused_id, var_callused,
9998         callused_tree): Add.
9999         (handle_pure_call): New function.
10000         (find_func_aliases): Call it.
10001         (find_what_p_points_to): Handle the call-used set.
10002         (clobber_what_escaped): Likewise.
10003         (compute_call_used_vars): New function.
10004         (init_base_vars): Init the call-used variable.
10005         (do_sd_constraint): Do not propagate the solution from CALLUSED
10006         but use CALLUSED as a placeholder.
10007         (solve_graph): Likewise.
10008         * tree-flow-inline.h (gimple_call_used_vars): New function.
10009         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
10010         (compute_call_used_vars): Declare.
10011         * tree-ssa-alias.c (set_initial_properties): Call
10012         compute_call_used_vars.
10013         (reset_alias_info): Clear call-used variables.
10014         (add_call_clobber_ops): Assert we are not called for const/pure
10015         functions.  Remove handling of them.
10016         (add_call_read_ops): Handle pure functions by adding the
10017         call-used set of variables as VUSEs.
10018         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
10019         (delete_tree_ssa): Free it.
10020         * tree-dfa.c (remove_referenced_var): Clear the var from the
10021         call-used bitmap.
10022
10023 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
10024
10025         * tree.c (build_varargs_function_type_list): New.
10026         (build_function_type_list_1): New.
10027         (build_function_type_list): Use build_function_type_list_1.
10028         * tree.h (build_varargs_function_type_list): New.
10029
10030 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10031
10032         PR target/34856
10033         * config/spu/spu.c (spu_builtin_splats): Do not generate
10034         invalid CONST_VECTOR expressions.
10035         (spu_expand_vector_init): Likewise.
10036
10037 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
10038
10039         * optabs.c (libfunc_decls): New variable.
10040         (libfunc_decl_hash, libfunc_decl_eq): New functions.
10041         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
10042         for the same function twice.
10043
10044 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
10045
10046         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
10047         ix86_expand_binary_operator directly.
10048         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
10049         for operand 2.
10050         (*ashrti3_1): Ditto.
10051         (*lshrti3_1): Ditto.
10052         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
10053         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
10054         using only one splitter.  Conditionaly execute splitter before or
10055         after peephole2 pass.
10056         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
10057         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
10058         Use only one alternative in asm template.
10059         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
10060         in asm template.
10061         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
10062         "J" operand constraint for operand 2.
10063         (*ashldi3_cconly_rex64): Ditto.
10064         (*ashrdi3_cmp_rex64): Ditto.
10065         (*ashrdi3_cconly_rex64): Ditto.
10066         (*lshrdi3_cmp_rex64): Ditto.
10067         (*lshrdi3_cconly_rex64): Ditto.
10068         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
10069         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
10070         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
10071         gen_x86_shrd_1.
10072
10073 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
10074
10075         * gimplify.c (omp_is_private): Don't return true if decl is not
10076         already private on #pragma omp for or #pragma omp parallel for.
10077
10078         PR debug/36617
10079         * tree-cfg.c (struct move_stmt_d): Replace block field with
10080         orig_block and new_block fields.
10081         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
10082         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
10083         (move_block_to_fn): Replace vars_map and new_label_map arguments
10084         with struct move_stmt_d pointer.
10085         (replace_block_vars_by_duplicates): New function.
10086         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
10087         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
10088         all subblocks of ORIG_BLOCK to the new function.  Call
10089         replace_block_vars_by_duplicates.
10090         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
10091         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
10092         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
10093         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
10094         (expand_omp): Temporarily set input_location to the location of
10095         region's controlling stmt.
10096         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
10097         BIND_EXPR, push ctx->block_vars and gimplification vars into
10098         the BIND_EXPR and its block's BLOCK_VARS instead of directly
10099         into dest function.
10100         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
10101         there are any BLOCK_VARS.
10102         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
10103         OMP_PARALLEL or OMP_TASK stmt.
10104         (lower_omp): Save and restore input_location around the lower_omp_1
10105         call.
10106
10107 2008-06-27  Richard Guenther  <rguenther@suse.de>
10108
10109         PR tree-optimization/36400
10110         PR tree-optimization/36373
10111         PR tree-optimization/36344
10112         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
10113         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
10114         (update_alias_info): Remove call clobbering code.
10115         (make_constraint_to): New helper function.
10116         (make_escape_constraint): Likewise.
10117         (handle_rhs_call): Use it on all pointer containing arguments.
10118         Also mark the static chain escaped.
10119         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
10120         instead of ANYTHING.
10121         (make_constraint_from): New helper split out from ...
10122         (make_constraint_from_anything): ... here.
10123         (find_func_aliases): Add constraints for escape sites.
10124         (intra_create_variable_infos): Make constraints from NONLOCAL
10125         for parameters.
10126         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
10127         as ANYTHING.
10128         (clobber_what_p_points_to): Remove.
10129         (clobber_what_escaped): New function.
10130         (init_base_vars): Init NONLOCAL and ESCAPED.
10131         (do_sd_constraint): Do not propagate the solution from ESCAPED
10132         but use ESCAPED as a placeholder.
10133         (solve_graph): Likewise.
10134         * tree-flow.h (clobber_what_p_points_to): Remove.
10135         (clobber_what_escaped): Declare.
10136         * tree-ssa-alias.c (set_initial_properties): Call it.
10137         Remove code clobbering escaped pointers.
10138
10139 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
10140
10141         * function.c (allocate_struct_function): Only allocate a unique
10142         funcdef_no if the decl is nonzero.
10143
10144 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
10145
10146         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
10147         * config/mips/mips.c (mips_split_const_insns): New function.
10148         * config/mips/mips.md (move_type): New attribute.
10149         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
10150         (dword_mode): New attribute.
10151         (type): Avoid long line.  Map "move_type"s to "type"s,
10152         choosing "multi" for doubleword moves if appropriate.
10153         Swap MTC/MFC comments to match their declaration order.
10154         (extended_mips16): Default to "yes" if "move_type" is "sll0",
10155         "type" is "branch" or "jal" is "direct".
10156         (length): Handle "extended_mips16" first.  Make the default
10157         "0" for "ghost" instructions.  Set the length from "move_type".
10158         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
10159         of "type", with "sll0" for the register alternative.  Remove the
10160         "extended_mips16" attribute.
10161         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
10162         of "type", with "shift_shift" for the register alternative.
10163         Remove the "length" attribute.
10164         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
10165         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
10166         of "type", with "andi" for the register alternative.
10167         (*zero_extendqihi2): Likewise.
10168         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
10169         of "andi" instead of a "type" of "arith".
10170         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
10171         instead of "type".
10172         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
10173         (mov_<store>r, *mov<mode>_ra): Likewise.
10174         (extendsidi2): Use "move_type" instead of "type", with "move"
10175         for the register alternative.
10176         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
10177         of "type", with "signext" for the register alternative.
10178         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
10179         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
10180         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
10181         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
10182         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
10183         (unnamed branch insn): Likewise.
10184         (*movdi_gp32_fp64): Fold into...
10185         (*movdi_32bit): ...here.
10186         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
10187         (*movdf_hardfloat): ...this new pattern.
10188         (*movdf_softfloat): Remove redundant FPR alternatives.
10189         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
10190         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
10191         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
10192         the "move" attribute.
10193         (*movdi_32bit): Use "move_type" instead of "type" and remove the
10194         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
10195         and "store" for COP loads and stores.
10196         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
10197         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
10198         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
10199         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
10200         (*movtf_mips16, *movv2sf): Likewise.
10201         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
10202         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
10203         (mfhc1<mode>): Use "move_type" instead of "move".
10204         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
10205         (loadgp_blockage): Remove the "length" attribute.
10206         (blockage, set_got_version, update_got_version): Likewise.
10207         (call_internal): Remove the "extended_mips16" attribute.
10208         (call_value_internal, call_value_multiple_internal): Likewise.
10209         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
10210         instead of "move".
10211         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
10212         the "length" attribute.
10213
10214 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10215
10216         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
10217         -Wcast-qual warnings.
10218         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
10219         handle_pragma_pop_macro): Likewise.
10220         * collect2.c (resolve_lib_name): Likewise.
10221         * config/arc/arc.c (arc_init): Likewise.
10222         * config/arm/arm.c (neon_builtin_compare,
10223         locate_neon_builtin_icode): Likewise.
10224         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
10225         * config/bfin/bfin.c (bfin_init_machine_status,
10226         bfin_optimize_loop): Likewise.
10227         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
10228         * config/cris/cris.c (cris_init_expanders): Likewise.
10229         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
10230         * config/darwin.c (machopic_indirection_eq,
10231         machopic_indirection_name, machopic_output_indirection): Likewise.
10232         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
10233         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
10234         frv_optimize_membar): Likewise.
10235         * config/i386/cygwin.h (mingw_scan,
10236         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
10237         * config/i386/cygwin1.c (mingw_scan): Likewise.
10238         * config/i386/i386.c (machopic_output_stub): Likewise.
10239         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
10240         i386_pe_unique_section): Likewise.
10241         * config/ia64/ia64.c (ia64_init_machine_status,
10242         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
10243         Likewise.
10244         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
10245         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
10246         * config/m68k/m68k.c (m68k_handle_option,
10247         m68k_sched_md_init_global): Likewise.
10248         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
10249         mcore_unique_section): Likewise.
10250         * config/mips/mips.c (mips_block_move_straight,
10251         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
10252         Likewise.
10253         * config/mmix/mmix.c (mmix_init_machine_status,
10254         mmix_encode_section_info): Likewise.
10255         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
10256         * config/rs6000/rs6000.c (rs6000_init_machine_status,
10257         print_operand_address, output_toc, redefine_groups,
10258         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
10259         * config/s390/s390.c (s390_init_machine_status): Likewise.
10260         * config/score/score.c (score_block_move_straight,
10261         score_block_move_loop_body): Likewise.
10262         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10263         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10264         * emit-rtl.c (find_auto_inc): Likewise.
10265         * gcc.c (translate_options, process_command): Likewise.
10266         * reorg.c (dbr_schedule): Likewise.
10267         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
10268         * xcoffout.c (xcoffout_declare_function): Likewise.
10269
10270 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
10271
10272         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
10273         ipa-pta working again.
10274
10275 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
10276
10277         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
10278         genautomata.
10279
10280 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
10281
10282         * config.gcc (powerpc*-*-*): Add new core e500mc.
10283         * config/rs6000/e500mc.md: New file.
10284         * config/rs6000/rs6000.c (processor_costs): Add new costs for
10285         e500mc.
10286         (rs6000_override_options): Add e500mc case to
10287         processor_target_table. Altivec and Spe options not allowed
10288         with e500mc. Add isel instruction to e500mc by
10289         default. Initialize rs6000_cost for e500mc.
10290         (rs6000_issue_rate): Set issue rate for e500mc.
10291         * config/rs6000/rs6000.h (processor_type): Add
10292         PROCESSOR_PPCE500MC.
10293         (ASM_CPU_SPEC): Add e500mc.
10294         Set TARGET_ISEL to rs6000_isel.
10295         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
10296         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
10297         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
10298         Include e500mc.md.
10299         * doc/invoke.texi: Add e500mc to list of cpus.
10300
10301 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10302
10303         PR c/34867
10304         * c-lex.c (lex_charconst): Initialize unsignedp.
10305
10306 2008-06-27  Olivier Hainque  <hainque@adacore.com>
10307
10308         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
10309         documented assumptions.
10310
10311 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
10312
10313         * dwarf2out.c: Remove trailing white spaces.  Break long line
10314         in comments.
10315
10316 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
10317
10318         * libfuncs.h (LTI_synchronize): New libfunc_index.
10319         (synchronize_libfunc): Declare.
10320         * builtins.c (expand_builtin_synchronize): Consider using
10321         synchronize_libfunc before falling back on an asm blockage.
10322         * config/mips/mips.c: Include libfuncs.h
10323         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
10324
10325 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
10326
10327         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
10328         parameter.  Copy stack_reg to r11 where appropriate.
10329         (no_global_regs_above): Add gpr parameter.
10330         (rs6000_stack_info): Only add padding for SPE save area if we
10331         are saving SPE GPRs and CR.
10332         (saveres_routine_syms): New variable.
10333         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
10334         Define.
10335         (rs6000_savres_routine_sym): New function.
10336         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
10337         split out of...
10338         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
10339         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
10340         Tweak FPR out-of-line saving.
10341         (rs6000_make_savres_rtx): New function.
10342         (rs6000_use_multiple_p): New function.
10343         (rs6000_savres_strategy): New function.
10344         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
10345         out-of-line if appropriate.
10346         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
10347         if we are optimizing for size.
10348         (GP_SAVE_INLINE): Define.
10349         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
10350         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
10351         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
10352         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
10353         (*save_fpregs_<mode>): Add use of r11.
10354         (*restore_gpregs_<mode>): New insn.
10355         (*return_and_restore_gpregs_<mode>): New insn.
10356         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
10357         use r11.
10358         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
10359         (*restore_gpregs_spe): New insn.
10360         (*return_and_restore_gpregs_spe): New insn.
10361         * config/rs6000/predicates.md (save_world_operation): Fix check.
10362
10363 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
10364
10365         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
10366         this point, so assert that.
10367
10368 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
10369
10370         * cfganal.c: Include vec.h and vecprim.h.
10371         (compute_idf): Import from...
10372         * tree-into-ssa (compute_idf): ...here.
10373         * basic-block.h (compute_idf): Export.
10374
10375 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
10376
10377         * c-decl.c (merge_decls): Use !current_function_decl to check for
10378         extern declaration of C99 inline function being at file scope.
10379
10380 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
10381
10382         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
10383
10384 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10385
10386         * alias.c (record_alias_subset, init_alias_analysis): Fix
10387         -Wc++-compat and/or -Wcast-qual warnings.
10388         * attribs.c (lookup_attribute_spec): Likewise.
10389         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
10390         copy_bb, connect_traces,
10391         find_rarely_executed_basic_blocks_and_cr): Likewise.
10392         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
10393         note_btr_set, migrate_btr_defs): Likewise.
10394         * builtins.c (result_vector, expand_builtin_memcpy,
10395         expand_builtin_mempcpy_args, expand_builtin_strncpy,
10396         builtin_memset_read_str, expand_builtin_printf,
10397         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
10398         Likewise.
10399         * caller-save.c (mark_set_regs): Likewise.
10400         * calls.c (expand_call, emit_library_call_value_1): Likewise.
10401         * cgraph.c (cgraph_edge): Likewise.
10402         * combine.c (likely_spilled_retval_1): Likewise.
10403         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
10404         htab_counts_entry_del, get_coverage_counts): Likewise.
10405         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
10406         new_cselib_val): Likewise.
10407         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
10408         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
10409         Likewise.
10410         * df-core.c (df_compact_blocks): Likewise.
10411         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
10412         * df-scan.c (df_grow_reg_info, df_ref_create,
10413         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
10414         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
10415         df_record_entry_block_defs, df_record_exit_block_uses,
10416         df_bb_verify): Likewise.
10417         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
10418         DF_REF_EXTRACT_MODE_CONST): New.
10419         * dominance.c (get_immediate_dominator, get_dominated_by,
10420         nearest_common_dominator, root_of_dom_tree,
10421         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
10422         -Wc++-compat and/or -Wcast-qual warnings.
10423         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
10424         record_store, replace_read, check_mem_read_rtx, scan_insn,
10425         dse_step1, dse_record_singleton_alias_set): Likewise.
10426         * dwarf2asm.c (dw2_force_const_mem): Likewise.
10427
10428 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10429
10430         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
10431         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
10432         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
10433         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
10434         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
10435         add_ranges_num, add_ranges_by_labels, file_info_cmp,
10436         file_name_acquire, output_file_names, add_const_value_attribute,
10437         premark_used_types_helper, file_table_eq, file_table_hash,
10438         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
10439         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
10440         -Wcast-qual warnings.
10441         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
10442         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
10443         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
10444         gen_reg_rtx, start_sequence, init_emit): Likewise.
10445         * et-forest.c (et_new_occ, et_new_tree): Likewise.
10446         * except.c (init_eh_for_function, gen_eh_region,
10447         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
10448         arh_to_landing_pad, arh_to_label, add_action_record,
10449         add_call_site, switch_to_exception_section): Likewise.
10450         * expmed.c (synth_mult): Likewise.
10451         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
10452         store_expr): Likewise.
10453         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
10454         Likewise.
10455         * function.c (assign_stack_temp_for_type,
10456         allocate_struct_function, match_asm_constraints_1): Likewise.
10457         * gcov-io.c (gcov_allocate): Likewise.
10458         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
10459         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
10460         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
10461         record_one_set, insert_expr_in_table, insert_set_in_table,
10462         dump_hash_table, compute_hash_table_work, alloc_hash_table,
10463         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
10464         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
10465         -Wcast-qual warnings.
10466
10467 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10468
10469         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
10470         -Wcast-qual warnings.
10471         * gcc.c (process_command): Likewise.
10472         * genattrtab.c (oballoc): Use XOBNEW.
10473         (oballocvec): Define.
10474         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
10475         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
10476         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
10477         -Wc++-compat and/or -Wcast-qual warnings.
10478         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
10479         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
10480         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
10481         gen_presence_absence_set, gen_automaton, gen_regexp_el,
10482         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
10483         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
10484         add_excls, process_presence_absence_names,
10485         process_presence_absence_patterns, add_presence_absence,
10486         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
10487         get_free_state, add_arc, get_free_automata_list_el,
10488         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
10489         transform_3, cache_presence, create_ainsns, create_automata,
10490         create_state_ainsn_table, dfa_insn_code_enlarge,
10491         output_trans_func, output_min_issue_delay_func,
10492         output_dead_lock_func, output_reset_func,
10493         output_get_cpu_unit_code_func, output_dfa_start_func,
10494         expand_automata): Likewise.
10495         * genextract.c (gen_insn): Likewise.
10496         * gengtype-lex.l: Likewise.
10497         * gengtype.c (read_input_list, adjust_field_type,
10498         process_gc_options): Likewise.
10499         * genoutput.c (note_constraint): Likewise.
10500         * genpreds.c (mangle, add_constraint): Likewise.
10501         * genrecog.c (process_define_predicate, new_decision,
10502         add_to_sequence): Likewise.
10503         * gensupport.c (record_insn_name): Likewise.
10504
10505 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10506
10507         * config/i386/driver-i386.c (detect_caches_amd,
10508         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
10509         and/or -Wcast-qual warnings.
10510         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
10511         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
10512         gt_pch_save): Likewise.
10513         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
10514         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
10515         * global.c (compute_regsets): Likewise.
10516         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
10517         finish_graph_dump_file): Likewise.
10518         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
10519         unlink_bb_notes): Likewise.
10520         * integrate.c (get_hard_reg_initial_val): Likewise.
10521         * ipa-prop.c (ipa_push_func_to_list): Likewise.
10522         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
10523         * local-alloc.c (update_equiv_regs): Likewise.
10524         * loop-invariant.c (check_invariant_table_size,
10525         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
10526         Likewise.
10527         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
10528         altered_reg_used, mark_altered): Likewise.
10529         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
10530         insert_var_expansion_initialization,
10531         combine_var_copies_in_loop_exit, apply_opt_in_copies,
10532         release_var_copies): Likewise.
10533         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
10534         analyze_matrix_decl, add_allocation_site, analyze_transpose,
10535         analyze_accesses_for_phi_node, check_var_notmodified_p,
10536         check_allocation_function, find_sites_in_func,
10537         record_all_accesses_in_func, transform_access_sites,
10538         transform_allocation_sites): Likewise.
10539         * omp-low.c (new_omp_region, create_omp_child_function_name,
10540         check_omp_nesting_restrictions, check_combined_parallel,
10541         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
10542         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
10543         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
10544         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
10545         Likewise.
10546         * opts-common.c (prune_options): Likewise.
10547         * opts.c (add_input_filename, print_filtered_help,
10548         get_option_state): Likewise.
10549         * params.c (add_params): Likewise.
10550         * passes.c (set_pass_for_id, next_pass_1,
10551         do_per_function_toporder, pass_fini_dump_file): Likewise.
10552         * postreload.c (reload_cse_simplify_operands): Likewise.
10553         * predict.c (tree_predicted_by_p, tree_predict_edge,
10554         clear_bb_predictions, combine_predictions_for_bb): Likewise.
10555
10556 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10557
10558         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
10559         warnings.
10560         * recog.c (check_asm_operands, validate_change_1): Likewise.
10561         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
10562         subst_asm_stack_regs): Likewise.
10563         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
10564         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
10565         * regmove.c (reg_is_remote_constant_p): Likewise.
10566         * regrename.c (regrename_optimize, scan_rtx_reg,
10567         kill_clobbered_value, kill_set_value, kill_autoinc_value):
10568         Likewise.
10569         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
10570         regstat_compute_calls_crossed): Likewise.
10571         * reload1.c (init_reload, new_insn_chain,
10572         has_nonexceptional_receiver, reload, copy_reloads,
10573         calculate_needs_all_insns, init_elim_table): Likewise.
10574         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
10575         * rtl.c (shallow_copy_rtx_stat): Likewise.
10576         * rtlanal.c (parms_set): Likewise.
10577         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
10578         sbitmap_resize, sbitmap_vector_alloc): Likewise.
10579         * sched-ebb.c (earliest_block_with_similiar_load,
10580         add_deps_for_risky_insns): Likewise.
10581         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
10582         schedule_region): Likewise.
10583         * see.c (eq_descriptor_pre_extension,
10584         hash_descriptor_pre_extension, hash_del_pre_extension,
10585         eq_descriptor_properties, hash_descriptor_properties,
10586         hash_del_properties, see_seek_pre_extension_expr,
10587         see_initialize_data_structures, see_print_register_properties,
10588         see_print_pre_extension_expr, see_delete_merged_def_extension,
10589         see_delete_unmerged_def_extension, see_emit_use_extension,
10590         see_pre_delete_extension, see_map_extension, see_commit_changes,
10591         see_analyze_merged_def_local_prop,
10592         see_analyze_merged_def_local_prop,
10593         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
10594         see_set_prop_merged_def, see_set_prop_unmerged_def,
10595         see_set_prop_unmerged_use, see_print_one_extension,
10596         see_merge_one_use_extension, see_merge_one_def_extension,
10597         see_store_reference_and_extension, see_update_uses_relevancy,
10598         see_update_defs_relevancy): Likewise.
10599         * statistics.c (hash_statistics_hash, hash_statistics_eq,
10600         hash_statistics_free, curr_statistics_hash): Likewise.
10601         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
10602         expand_asm_operands, expand_return, case_bit_test_cmp,
10603         expand_case): Likewise.
10604         * stor-layout.c (start_record_layout): Likewise.
10605         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
10606         gt_pch_save_stringpool): Likewise.
10607         * tree-data-ref.c (hash_stmt_vertex_info,
10608         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
10609         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
10610
10611 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
10612
10613         PR target/36627
10614         * config/i386/i386.md : Change constraints of HImode and QImode
10615         immediate operands from "i" to "n".  Change SImode "ni" constraint to
10616         "i" and SImode "rmi" constraint to "g".  Remove all constraints
10617         from const0_operand and const1_operand predicated operands.
10618         (i): Change QImode and HImode attribute from "i" to "n".
10619         (*subqi_2): Change HImode operands to QImode.
10620         (*subqi_3): Ditto.
10621
10622 2008-06-25  Olivier Hainque  <hainque@adacore.com>
10623
10624         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
10625         sed substitutions.
10626
10627 2008-06-25  Richard Guenther  <rguenther@suse.de>
10628
10629         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
10630         not overflow the result type.
10631
10632 2008-06-25  Richard Guenther  <rguenther@suse.de>
10633
10634         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
10635         (vn_lookup): Likewise.
10636
10637 2008-06-25  Richard Guenther  <rguenther@suse.de>
10638
10639         PR tree-optimization/35518
10640         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
10641         * tree-sra.c (instantiate_element): Use fold_build3 to build
10642         BIT_FIELD_REFs.
10643         (try_instantiate_multiple_fields): Likewise.
10644
10645 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10646
10647         * config/rs6000/rs6000.md: Change all string instruction's clobber to
10648         be early clobbers.
10649
10650 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10651
10652         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
10653         use_backchain_to_restore_sp to true
10654         if the offset of the link register save area would go over the 32k - 1
10655         offset limit of the load
10656         instructions.
10657
10658 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
10659
10660         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
10661         anchor for the type-punning blurb.  Cross-reference "Structures
10662         unions enumerations and bit-fields implementation".  Provide a
10663         cast-through-pointer example.  Make final sentence self-contained.
10664         * doc/implement-c.texi (Structures unions enumerations and
10665         bit-fields implementation): Cross-reference the type-punning blurb
10666         in the -fstrict-aliasing documentation.
10667
10668 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10669
10670         PR middle-end/36594
10671         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
10672         the memory instead of the memory itself for the save area.
10673
10674 2008-06-24  Olivier Hainque  <hainque@adacore.com>
10675             Nicolas Roche  <roche@adacore.com>
10676
10677         * gengtype.c (srcdir_len): size_t instead of int.
10678         (get_file_realbasename): New function.  For F a filename, the real
10679         basename of F, with all the path components stripped.
10680         (get_file_srcdir_relative_path): New function.  For F a filename, the
10681         relative path to F from $(srcdir).
10682         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
10683         get_file_realbasename.  Adjust the head comment.
10684         (get_prefix_langdir_index): New function. For F a filename, return the
10685         lang_dir_names[] relative index of the language directory that is
10686         a prefix in F.
10687         (get_file_langdir): For F a filename, return the name of the language
10688         directory where F is located.
10689         (get_file_gtfilename): New function. The gt- output file name for an
10690         input filename F.
10691         (get_output_file_with_visibility): Replace in-line computations with
10692         uses of get_file_gtfilename and get_prefix_langdir_index.
10693         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
10694
10695 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
10696
10697         PR tree-optimization/36504
10698         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
10699         references without base address.
10700
10701 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
10702
10703         PR middle-end/36584
10704         * calls.c (expand_call): Increase alignment for recursive functions.
10705
10706 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
10707
10708         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
10709         (TARGET_FUNCTION_VALUE): New define.
10710         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
10711         * config/avr/avr.h (FUNCTION_VALUE): Remove.
10712
10713 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
10714
10715         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
10716         (fmod<mode>3): Ditto.
10717         (remainderxf3): Ditto.
10718         (remainder<mode>3): Ditto.
10719
10720 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
10721
10722         PR target/36533
10723         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
10724         REG is a hard register.
10725
10726         PR tree-optimization/36508
10727         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
10728         499, don't check it at all in release compilers.
10729
10730 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
10731
10732         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
10733         together with SSE_TARGET_MATH to disable insn pattern.
10734         (*fop_<MODEF:mode>_2_i387): Ditto.
10735         (*fop_<MODEF:mode>_3_i387): Ditto.
10736
10737 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
10738
10739         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
10740
10741 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10742
10743         PR middle-end/34906
10744         * gimplify.c (gimplify_asm_expr): Check the return code of
10745         parse_output_constraint call, set function return and is_inout
10746         value if it failed.
10747
10748 2008-06-22  Ian Lance Taylor  <iant@google.com>
10749
10750         * c-lex.c (narrowest_unsigned_type): Change itk to int.
10751         (narrowest_signed_type): Likewise.
10752         * c-typeck.c (c_common_type): Change local variable mclass to enum
10753         mode_class, twice.
10754         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
10755         tcc_comparison, not the tree code itself.
10756         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
10757         (c_expand_expr): Cast modifier to enum expand_modifier.
10758         * c-common.h (C_RID_CODE): Add casts.
10759         (C_SET_RID_CODE): Define.
10760         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
10761         (c_lex_one_token): Add cast to avoid warning.
10762         (c_parser_objc_type_name): Rename local typename to type_name.
10763         (check_no_duplicate_clause): Change code parameter to enum
10764         omp_clause_code.
10765         (c_parser_omp_var_list_parens): Change kind parameter to enum
10766         omp_clause_code.
10767         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
10768         c_parser_omp_list_var_parens.
10769         (c_parser_omp_threadprivate): Likewise.
10770         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
10771         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
10772         * c-format.c (NO_FMT): Define.
10773         (printf_length_specs): Use NO_FMT.
10774         (asm_fprintf_length_specs): Likewise.
10775         (gcc_diag_length_specs): Likewise.
10776         (scanf_length_specs): Likewise.
10777         (strfmon_length_specs): Likewise.
10778         (gcc_gfc_length_specs): Likewise.
10779         (printf_flag_specs): Change 0 to STD_C89.
10780         (asm_fprintf_flag_specs): Likewise.
10781         (gcc_diag_flag_specs): Likewise.
10782         (gcc_cxxdiag_flag_specs): Likewise.
10783         (scanf_flag_specs): Likewise.
10784         (strftime_flag_specs): Likewise.
10785         (strfmon_flag_specs): Likewise.
10786         (print_char_table): Likewise.
10787         (asm_fprintf_char_table): Likewise.
10788         (gcc_diag_char_table): Likewise.
10789         (gcc_tdiag_char_table): Likewise.
10790         (gcc_cdiag_char_table): Likewise.
10791         (gcc_cxxdiag_char_table): Likewise.
10792         (gcc_gfc_char_table): Likewise.
10793         (scan_char_table): Likewise.
10794         (time_char_table): Likewis.
10795         (monetary_char_table): Likewise.
10796         * c-format.h (BADLEN): Likewise.
10797
10798 2008-06-21  Ian Lance Taylor  <iant@google.com>
10799
10800         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
10801         Define END_OF_BASE_TREE_CODES around inclusion.
10802         * tree.c (tree_code_type): New global array.
10803         (tree_code_length, tree_code_name): Likewise.
10804         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
10805         $(lang_tree_files).
10806         (all-tree.def, s-alltree): New targets.
10807         (gencheck.h, s-gencheck): Remove.
10808         (tree.o): Depend upon all-tree.def.
10809         (build/gencheck.o): Remove gencheck.h dependency.
10810         (mostlyclean): Don't remove gencheck.h.
10811         * c-common.h (enum c_tree_code): Remove.
10812         * c-lang.c (tree_code_type): Remove.
10813         (tree_code_length, tree_code_name): Remove.
10814         * gencheck.c (tree_codes): Include all-tree.def, rather than
10815         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
10816         after it is used.
10817         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
10818         than tree.def.
10819         * cp/cp-tree.h (enum cplus_tree_code): Remove.
10820         (operator_name_info): Size to MAX_TREE_CODES.
10821         (assignment_operator_name_info): Likewise.
10822         * cp/cp-lang.c (tree_code_type): Remove.
10823         (tree_code_length, tree_code_name): Remove.
10824         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
10825         (assignment_operator_name_info): Likewise.
10826         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
10827         MAX_TREE_CODES.
10828         * cp/mangle.c (write_expression): Likewise.
10829         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
10830         * fortran/f95-lang.c (tree_code_type): Remove.
10831         (tree_code_length, tree_code_name): Remove.
10832         * java/java-tree.h (enum java_tree_code): Remove.
10833         * java/lang.c (tree_code_type): Remove.
10834         (tree_code_length, tree_code_name): Remove.
10835         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
10836         * objc/objc-act.h (enum objc_tree_code): Remove.
10837         * objc/objc-lang.c (tree_code_type): Remove.
10838         (tree_code_length, tree_code_name): Remove.
10839         * objcp/objcp-lang.c (tree_code_type): Remove.
10840         (tree_code_length, tree_code_name): Remove.
10841         * ada/ada-tree.h (enum gnat_tree_code): Remove.
10842         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
10843         * ada/misc.c (tree_code_type): Remove.
10844         (tree_code_length, tree_code_name): Remove.
10845
10846 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
10847
10848         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
10849         the grand_bitmap_obstack.
10850
10851 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10852
10853         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
10854         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
10855         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
10856         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
10857         move_stmt_r, new_label_mapper): Likewise.
10858         * tree-complex.c (cvc_lookup): Likewise.
10859         * tree-dfa.c (create_function_ann): Likewise.
10860         * tree-dump.c (dump_register): Likewise.
10861         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
10862         find_phi_replacement_condition): Likewise.
10863         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
10864         tree_function_versioning): Likewise.
10865         * tree-into-ssa.c (cmp_dfsnum): Likewise.
10866         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
10867         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
10868         get_nonlocal_debug_decl, convert_nonlocal_reference,
10869         convert_nonlocal_omp_clauses, get_local_debug_decl,
10870         convert_local_reference, convert_local_omp_clauses,
10871         convert_nl_goto_reference, convert_nl_goto_receiver,
10872         convert_tramp_reference, convert_call_expr): Likewise.
10873         * tree-outof-ssa.c (contains_tree_r): Likewise.
10874         * tree-parloops.c (reduction_phi, initialize_reductions,
10875         eliminate_local_variables_1, add_field_for_reduction,
10876         add_field_for_name, create_phi_for_local_result,
10877         create_call_for_reduction_1, create_loads_for_reductions,
10878         create_stores_for_reduction, create_loads_and_stores_for_name):
10879         Likewise.
10880         * tree-phinodes.c (allocate_phi_node): Likewise.
10881         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
10882         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
10883         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
10884         * tree-ssa-coalesce.c (compare_pairs): Likewise.
10885         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
10886         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
10887         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
10888         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10889         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
10890         vn_nary_op_insert): Likewise.
10891         * tree-ssa.c (redirect_edge_var_map_add,
10892         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
10893         * tree-vectorizer.c (vectorize_loops): Likewise.
10894         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
10895         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
10896         tree_cons_stat, build1_stat, build_variant_type_copy,
10897         decl_init_priority_lookup, decl_fini_priority_lookup,
10898         decl_priority_info, decl_restrict_base_lookup,
10899         decl_restrict_base_insert, decl_debug_expr_lookup,
10900         decl_debug_expr_insert, decl_value_expr_lookup,
10901         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
10902         type_hash_add, get_file_function_name, tree_check_failed,
10903         tree_not_check_failed, tree_range_check_failed,
10904         omp_clause_range_check_failed, build_omp_clause,
10905         build_vl_exp_stat): Likewise.
10906         * value-prof.c (gimple_histogram_value,
10907         gimple_duplicate_stmt_histograms): Likewise.
10908         * var-tracking.c (attrs_list_insert, attrs_list_copy,
10909         unshare_variable, variable_union_info_cmp_pos, variable_union,
10910         dataflow_set_different_1, dataflow_set_different_2,
10911         vt_find_locations, variable_was_changed, set_variable_part,
10912         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
10913         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
10914         section_entry_hash, object_block_entry_eq,
10915         object_block_entry_hash, create_block_symbol,
10916         initialize_cold_section_name, default_function_rodata_section,
10917         strip_reg_name, set_user_assembler_name, const_desc_eq,
10918         build_constant_desc, output_constant_def, lookup_constant_def,
10919         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
10920         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
10921         default_internal_label): Likewise.
10922         * varray.c (varray_init, varray_grow): Likewise.
10923         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
10924
10925 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
10926
10927         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
10928         operators for "test" insn.  Macroize insn using SWI mode macro.
10929         (*jcc_fused_2): Ditto.
10930         (*jcc_fused_3): Macroize insn using SWI mode macro.
10931         (*jcc_fused_4): Ditto.
10932
10933 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
10934
10935         * tree-ssa-pre.c: Fix typo in comment.
10936         (init_antic, fini_antic): Add explicit funtions for
10937         initializing and deinitializing ANTIC and AVAIL sets.
10938         (create_expression_by_pieces): Fix typo in comment.
10939         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
10940         (execute_pre): Eventually dump details about ANTIC_IN.
10941
10942 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10943
10944         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
10945         * gcc.c (translate_options, init_spec, store_arg, read_specs,
10946         add_to_obstack, file_at_path, find_a_file, execute,
10947         add_preprocessor_option, add_assembler_option, add_linker_option,
10948         process_command, insert_wrapper, do_option_spec, do_self_spec,
10949         spec_path, do_spec_1, is_directory, main, used_arg,
10950         getenv_spec_function): Likewise.
10951         * tlink.c (symbol_hash_lookup, file_hash_lookup,
10952         demangled_hash_lookup, symbol_push, file_push, frob_extension):
10953         Likewise.
10954
10955 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
10956
10957         * doc/rtl.texi: Updated subreg section.
10958
10959 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
10960
10961         PR c++/36523
10962         * cgraphunit.c (cgraph_process_new_functions): Don't clear
10963         node->needed and node->reachable.
10964         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
10965         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
10966         (expand_task_call): Don't call expand_task_copyfn.
10967         (expand_task_copyfn): Renamed to...
10968         (finalize_task_copyfn): ... this.
10969
10970 2008-06-19  Jan Hubicka  <jh@suse.cz>
10971
10972         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
10973         clobbering framepointer.
10974
10975 2008-06-19  Jan Hubicka  <jh@suse.cz>
10976
10977         * tree-optimize.c (execute_early_local_optimizations): Set
10978         cgraph_state only at first invocation.
10979
10980 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10981
10982         * system.h (-Wc++-compat): Activate as a warning, no an error.
10983
10984 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
10985
10986         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
10987         instead of "#" in insn asm template.
10988         (*jcc_fused_2): Ditto.
10989
10990 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
10991
10992         * config/i386/i386.h (ix86_tune_indices)
10993         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
10994         (TARGET_FUSE_CMP_AND_BRANCH): New define.
10995         * config/i386/i386.md (*jcc_fused_1): New insn pattern
10996         (*jcc_fused_2): Ditto.
10997         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
10998         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
10999         (print operand): Handle 'E' and 'e' code.
11000
11001 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
11002
11003         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
11004         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
11005         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11006
11007 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
11008
11009         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
11010         node->decl.
11011         (cgraph_expand_function): Use local copy of decl.
11012         (cgraph_expand_all_functions): Remove redundant initialization of
11013         order_pos.
11014         (cgraph_optimize): Reword internal_error message.
11015
11016 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
11017
11018         * arm-protos.h (arm_return_in_memory): Remove public
11019         arm_return_in_memory() prototype.
11020         * arm.c (arm_return_in_memory): Add static prototype, add target
11021         hook macro, change definition and comments.
11022         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
11023
11024 2008-06-19  Ben Elliston  <bje@au.ibm.com>
11025
11026         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
11027         real.c: Remove references to IEEE 754R.
11028         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
11029         * doc/libgcc.texi (Decimal float library routines): Likewise.
11030
11031 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11032
11033         * targhooks.h (struct gcc_target): New member unwind_word_mode.
11034         (default_unwind_word_mode): Add prototype.
11035         * targhooks.c (default_unwind_word_mode): New function.
11036         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
11037         instead of word_mode.
11038         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
11039         (TARGET_INITIALIZER): Use it.
11040
11041         * c-common.c (handle_mode_attribute): Support "unwind_word"
11042         mode attribute.
11043         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
11044
11045         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
11046         word_mode to access SjLj_Function_Context member "data".
11047         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
11048         conversion from targetm.eh_return_filter_mode () to
11049         targetm.unwind_word_mode () if they differ.
11050
11051         * builtin-types.def (BT_UNWINDWORD): New primitive type.
11052         (BT_FN_UNWINDWORD_PTR): New function type.
11053         (BT_FN_WORD_PTR): Remove.
11054         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
11055         * except.c (expand_builtin_extend_pointer): Convert pointer to
11056         targetm.unwind_word_mode () instead of word_mode.
11057
11058         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
11059         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
11060         (spu_unwind_word_mode): New function.
11061         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
11062         (TARGET_UNWIND_WORD_MODE): Define.
11063         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
11064
11065 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11066
11067         * config/spu/spu.c (reg_align): Remove.
11068         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
11069         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
11070         (spu_split_store): Likewise.
11071
11072 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
11073
11074         * gcc/tree-vn.c: Fix typo in comment.
11075
11076 2008-06-18  Jan Hubicka  <jh@suse.cz>
11077
11078         * cgraphunit.c (cgraph_optimize): Output debug info when doing
11079         toplevel reorder too.
11080
11081 2008-06-18  Jan Hubicka  <jh@suse.cz>
11082
11083         * c-opts.c (c_common_post_options): PCH is not compatible with
11084         no-unit-at-a-time.
11085         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
11086         -fno-toplevel-reorder by default now.
11087
11088 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11089
11090         PR documentation/30739
11091         * doc/install.texi (Prerequisites): Document dependency on awk.
11092
11093 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
11094             Ian Lance Taylor  <iant@google.com>
11095
11096         PR rtl-optimization/35604
11097         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
11098         only want to change jump destinations, not eventual label comparisons.
11099
11100 2008-06-16  Jan Hubicka  <jh@suse.cz>
11101
11102         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
11103         syntax errors.
11104         (cgraph_analyze_function): Likewise.
11105
11106 2008-06-16  Jan Hubicka  <jh@suse.cz>
11107
11108         * cgraph.h (cgraph_mark_if_needed): New function.
11109         * cgraphunit.c (cgraph_mark_if_needed): New function.
11110         * c-decl.c (duplicate_decl): Use it.
11111
11112 2008-06-16  Jan Hubicka  <jh@suse.cz>
11113
11114         * cgraph.c (cgraph_add_new_function): When in expansion state, do
11115         lowering.
11116
11117 2008-06-16  Jan Hubicka  <jh@suse.cz>
11118
11119         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
11120
11121 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
11122             Kazu Hirata  <kazu@codesourcery.com>
11123             Maxim Kuvyrkov  <maxim@codesourcery.com
11124
11125         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
11126         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
11127         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
11128         EXTRA_SPEC_FUNCTIONS.
11129         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
11130         (DRIVER_SELF_SPECS): Adjust.
11131         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
11132         * config/mips/st.h, config/mips/t-st: New.
11133         * config/mips/driver-native.c, config/mips/x-native: New.
11134         * doc/invoke.texi (MIPS): Document 'native' value for -march and
11135         -mtune options.
11136
11137 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11138
11139         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
11140         from it.
11141         (ISA_HAS_FP_CONDMOVE): New macro.
11142         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
11143         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
11144         (ISA_HAS_NMADD3_NMSUB3): New macro.
11145         * config/mips/mips.c (mips_rtx_costs): Update.
11146         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
11147         compiling for ST Loongson 2E/2F.
11148         (madd<mode>): Rename to madd4<mode>.  Update.
11149         (madd3<mode>): New pattern.
11150         (msub<mode>): Rename to msub4<mode>.  Update.
11151         (msub3<mode>): New pattern.
11152         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
11153         (nmadd3<mode>): New pattern.
11154         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
11155         (nmadd3<mode>_fastmath): New pattern.
11156         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
11157         (nmsub3<mode>): New pattern.
11158         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
11159         (nmsub3<mode>_fastmath): New pattern.
11160         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
11161
11162 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
11163
11164         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
11165         (DF_REF_INSN_INFO): New.
11166         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
11167         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
11168         with a NULL DF_REF_INSN_INFO.
11169         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
11170         DF_INSN_SET.
11171         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
11172         DF_INSN_INFO_EQ_USES): New.
11173         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
11174         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
11175         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
11176         * df-core.c: Update comment for above changes.
11177         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
11178         DF_INSN_UID_* macros.
11179         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
11180         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
11181         insn rtx.  Update all callers.
11182         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
11183         df_ref_create_structure, df_insn_refs_collect): Likewise.
11184         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
11185         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
11186         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
11187         macros to access the insn refs.
11188         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
11189         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
11190         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
11191         for accessing the refs.
11192         (try_fwprop_subst): Likewise.
11193         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
11194         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
11195         for accessing the refs.
11196         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
11197         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
11198         to look at the insn refs.
11199         (record_uses): Likewise.
11200         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
11201         function anymore.
11202         (mark_artificial_uses): Don't mark_insn for artificial refs.
11203         (mark_reg_rependencies): Likewise.
11204
11205         * doc/rtl.texi: Remove documentation of ADDRESSOF.
11206
11207 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11208
11209         * configure: Regenerate.
11210
11211 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
11212
11213         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
11214         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11215         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11216
11217 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
11218
11219         * config/avr/avr.c (avr_mcu_t): Add attiny167.
11220         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11221         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11222
11223 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
11224
11225         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
11226         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11227         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11228
11229 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
11230
11231         * tree-ssa-sccvn.c: Fix format of comments.
11232
11233 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
11234
11235         * cgraph.c: Remove unneeded forward declarations of eq_node()
11236         and hash_node().
11237
11238 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
11239
11240         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
11241         REG_RETVAL notes.
11242         (see_update_relevancy): Likewise.
11243         * fwprop.c (try_fwprop_subst): Likewise.
11244         * rtlanal.c (noop_move_p): Likewise.
11245         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
11246         notes to non-existing libcall blocks.
11247         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
11248         Remove orig_set.
11249         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
11250         (dead_libcall_p): Remove.
11251         (delete_trivially_dead_insns): Don't use it.
11252         * web.c (union_defs): Remove comment about keeping nops.
11253         * gcse.c (hash_scan_insn): Don't take libcall pointers.
11254         (compute_hash_table_work): Don't track libcall notes.
11255         (do_local_cprop): Don't take libcall pointers.  Don't update
11256         libcall notes.
11257         (adjust_libcall_notes): Deleted.
11258         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
11259         ever have existed in the first place).
11260         (replace_store_insn): Don't try to remove libcall notes.
11261         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
11262         (resolve_reg_notes): Don't call them.
11263         (resolve_simple_move): Likewise.
11264         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
11265         Don't remove REG_RETVAL notes.
11266         * emit-rtl.c (try_split): Don't update libcall notes.
11267         (emit_copy_of_insn_after): Dito.
11268         * cselib.c (cselib_current_insn_in_libcall): Remove.
11269         (cselib_process_insn): Don't set/clear it.
11270         (new_elt_loc_list): Don't record it.
11271         (cselib_init): Don't initialize it.
11272         * cselib.c (struct elt_loc_list): Remove in_libcall field.
11273         * loop-invariant.c (find_invariant_insn): Don't look for libcall
11274         notes.
11275         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
11276         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
11277         (init_deps): Don't initialize it.
11278         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
11279         * combine.c (delete_noop_moves): Don't update libcall notes.
11280         (can_combine_p): Remove now pointless #if 0 block.
11281         (try_combine): Remove another obsolete #if 0 block.
11282         (distribute_notes): Don't distribute libcall notes.
11283         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
11284         * dce.c (libcall_dead_p): Remove.
11285         (delete_unmarked_insns): Don't handle libcall blocks.
11286         (preserve_libcall_for_dce): Remove.
11287         (prescan_insns_for_dce): Don't special-case libcall block insns.
11288         * reload1 (reload): Don't handle libcall notes.
11289         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
11290         documentation.
11291
11292 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
11293
11294         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
11295         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11296         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11297
11298 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
11299
11300         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
11301         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
11302         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11303
11304 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11305
11306         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
11307
11308 2008-06-16  Ira Rosen  <irar@il.ibm.com>
11309
11310         PR tree-optimization/36493
11311         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
11312         the arguments list. Use VECTYPE to create vector pointer.
11313         (vectorizable_store): Fail if accesses through a pointer to vectype
11314         do not alias the original memory reference operands.
11315         Call vect_create_data_ref_ptr without the removed argument.
11316         (vectorizable_load): Likewise.
11317         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
11318         removed argument.
11319
11320 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
11321
11322         PR target/36336
11323         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
11324         reg_equiv_constant.
11325
11326 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
11327
11328         * config/mips/loongson2ef.md: New file.
11329         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11330         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11331         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11332         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
11333         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
11334         and loongson_2f.
11335         (loongson2ef.md): New include.
11336         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
11337         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
11338         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
11339         (loongson_gt_<mode>, loongson_extract_halfword)
11340         (loongson_insert_halfword_0, loongson_insert_halfword_2)
11341         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
11342         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
11343         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
11344         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
11345         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
11346         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
11347         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
11348         (vec_interleave_low<mode>): Define type attribute.
11349         * config/mips/mips.c (mips_ls2): New static variable.
11350         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
11351         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
11352         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
11353         Implement target scheduling hooks.
11354         (mips_multipass_dfa_lookahead): Update to handle tuning for
11355         Loongson 2E/2F.
11356         (mips_sched_init): Initialize data for Loongson scheduling.
11357         (mips_ls2_variable_issue): New static function.
11358         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
11359         Add sanity check.
11360         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
11361         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
11362         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
11363         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
11364         Handle ST Loongson 2E/2F cores.
11365         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
11366
11367 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11368
11369         * omp-low.c (extract_omp_for_data): Fix comment typo.
11370         * c.opt: Fix typo.
11371
11372 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11373
11374         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
11375         FIXME note about gcc/config.guess.
11376         * doc/options.texi (Option file format): Remove non-ASCII bytes.
11377         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
11378         * doc/cppopts.texi: Likewise.
11379         * doc/extend.texi: Likewise.
11380         * doc/gcc.texi: Likewise.
11381         * doc/gccint.texi: Likewise.
11382         * doc/gcov.texi: Likewise.
11383         * doc/gty.texi: Likewise.
11384         * doc/hostconfig.texi: Likewise.
11385         * doc/install.texi: Likewise.
11386         * doc/invoke.texi: Likewise.
11387         * doc/loop.texi: Likewise.
11388         * doc/makefile.texi: Likewise.
11389         * doc/md.texi: Likewise.
11390         * doc/passes.texi: Likewise.
11391         * doc/tm.texi: Likewise.
11392         * doc/tree-ssa.texi: Likewise.
11393         * doc/trouble.texi: Likewise.
11394
11395 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
11396             Nathan Sidwell  <nathan@codesourcery.com>
11397             Maxim Kuvyrkov  <maxim@codesourcery.com>
11398             Richard Sandiford  <rdsandiford@googlemail.com>
11399
11400         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
11401         * config/mips/mips-protos.h (mips_expand_vector_init): New.
11402         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
11403         builtins.
11404         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
11405         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
11406         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
11407         V8QImode cases.
11408         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
11409         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
11410         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
11411         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
11412         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
11413         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
11414         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
11415         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
11416         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
11417         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
11418         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
11419         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
11420         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
11421         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
11422         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
11423         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
11424         (mips_builtins): Add Loongson builtins.
11425         (mips_loongson_2ef_bdesc): New.
11426         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
11427         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
11428         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
11429         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
11430         New.
11431         (mips_expand_vector_init): New.
11432         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
11433         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
11434         if appropriate.
11435         * config/mips/mips.md: Add unspec numbers for Loongson
11436         builtins.  Include loongson.md.
11437         (MOVE64): Include Loongson vector modes.
11438         (SPLITF): Include Loongson vector modes.
11439         (HALFMODE): Handle Loongson vector modes.
11440         * config/mips/loongson.md: New.
11441         * config/mips/loongson.h: New.
11442         * config.gcc: Add loongson.h header for mips*-*-* targets.
11443         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
11444
11445 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
11446
11447         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
11448         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
11449         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
11450         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
11451         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
11452         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
11453         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
11454         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
11455         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
11456         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
11457         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
11458         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
11459         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
11460         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
11461         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
11462         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
11463         Remove use_fixproto=yes.
11464         (ia64*-*-hpux*): Remove comment about using fixproto.
11465         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
11466
11467 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11468
11469         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
11470         library rebuilds.
11471         * configure: Regenerate.
11472
11473 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
11474
11475         PR middle-end/36520
11476         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
11477         before evaluating it.
11478
11479 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
11480
11481         PR c/36507
11482         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
11483         nested inline functions.
11484         (start_decl, start_function): Don't invert DECL_EXTERNAL
11485         for nested inline functions.
11486
11487 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
11488
11489         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
11490         splits that must be made for correctness.
11491
11492 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
11493
11494         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
11495         (AVAIL_NON_MIPS16): Likewise.
11496         (mips_builtin_description): Replace target_flags with a predicate.
11497         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
11498         (dspr2_32): New availability predicates.
11499         (MIPS_BUILTIN): New macro.
11500         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
11501         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
11502         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
11503         Replace the TARGET_FLAGS parameters with AVAIL parameters.
11504         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
11505         (mips_dsp_32only_bdesc): Merge into...
11506         (mips_builtins): ...this new array.
11507         (mips_bdesc_map, mips_bdesc_arrays): Delete.
11508         (mips_init_builtins): Update after above changes.
11509         (mips_expand_builtin_1): Merge into...
11510         (mips_expand_builtin): ...here and update after above changes.
11511
11512 2008-06-12  Paul Brook  <paul@codesourcery.com>
11513
11514         * longlong.h (__arm__): Define count_leading_zeros.
11515         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
11516         (clzsi2, clzdi2): New functions.
11517         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
11518         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
11519         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
11520         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
11521         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
11522         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
11523         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
11524         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
11525         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
11526         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
11527
11528 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
11529
11530         * config/m68k/m68k.c (m68k_tune_flags): New.
11531         (override_options): Compute m68k_tune_flags.
11532         (MULL_COST, MULW_COST): Update for various variants of CFV2.
11533         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
11534
11535 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
11536
11537         PR middle-end/36506
11538         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
11539
11540 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
11541
11542         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
11543         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
11544
11545 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
11546
11547         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
11548         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
11549
11550 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
11551
11552         PR middle-end/36506
11553         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
11554         reductions.
11555
11556 2008-06-12  Richard Guenther  <rguenther@suse.de>
11557
11558         PR tree-optimization/36345
11559         * tree-flow.h (struct ptr_info_def): Align escape_mask,
11560         add memory_tag_needed flag.
11561         (may_alias_p): Declare.
11562         * tree-ssa-alias.c (may_alias_p): Export.
11563         (set_initial_properties): Use memory_tag_needed flag.
11564         (update_reference_counts): Likewise.
11565         (reset_alias_info): Reset memory_tag_needed flag.
11566         (create_name_tags): Check memory_tag_needed flag.
11567         (dump_points_to_info_for): Dump it.
11568         * tree-ssa-structalias.c (struct variable_info): Remove
11569         directly_dereferenced flag.
11570         (new_var_info): Do not initialize it.
11571         (process_constraint_1): Do not set it.
11572         (update_alias_info): Set is_dereferenced flag.
11573         (set_uids_in_ptset): Use may_alias_p.
11574         (set_used_smts): Check memory_tag_needed flag.
11575         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
11576         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
11577         memory_tag_needed flag.
11578         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
11579         from broken design.
11580
11581 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
11582
11583         * config/i386/i386.c (ix86_compute_frame_layout): Disable
11584         red zone for w64 abi.
11585         (ix86_expand_prologue): Likewise.
11586         (ix86_force_to_memory): Likewise.
11587         (ix86_free_from_memory): Likewise.
11588
11589 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
11590
11591         PR target/36425
11592         * config/rs6000/rs6000.c (rs6000_override_options): Set
11593         rs6000_isel conditionally to the absence of comand line override.
11594         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
11595         Remove duplicate rs6000_isel setting.
11596         * config/rs6000/eabispe.h: Ditto.
11597
11598 2008-06-11  Richard Guenther  <rguenther@suse.de>
11599
11600         * alias.c (get_alias_set): Use the element alias-set for arrays.
11601         (record_component_aliases): For arrays and vectors do nothing.
11602         * c-common.c (strict_aliasing_warning): Handle the cases
11603         of alias set zero explicitly.
11604         * Makefile.in (dfp.o-warn): Add -Wno-error.
11605
11606 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
11607
11608         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
11609         tune_32 tune_64.
11610         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
11611         tune_32 tune_64 to supported_defaults.  Allow values not
11612         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
11613         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
11614         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
11615         with_cpu_64 to generic for 64-bit-supporting configurations, not
11616         with_cpu.  Remove FIXMEs.
11617         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
11618         --with-arch-64, --with-tune-32, --with-tune-64): Document.
11619         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
11620         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
11621         arch_32 and arch_64.
11622
11623 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
11624             Olivier Hainque  <hainque@adacore.com>
11625
11626         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
11627         Use DECL_SIZE_UNIT to retrieve the size of the field.
11628
11629 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
11630
11631         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
11632         with function calls after declarations.  Lay out
11633         neon_float_type_node before further use.
11634
11635 2008-06-11  Richard Guenther  <rguenther@suse.de>
11636
11637         * tree-flow.h (may_point_to_global_var): Declare.
11638         * tree-ssa-alias.c (may_point_to_global_var): New function.
11639         * tree-ssa-sink.c (is_hidden_global_store): Use it.
11640
11641 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
11642
11643         * configure.ac: Teach that fido supports .debug_line.
11644         * configure: Regenerate.
11645
11646 2008-06-10  Tom Tromey  <tromey@redhat.com>
11647
11648         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
11649         debug hook.
11650
11651 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
11652
11653         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
11654         (encode_decimal64, decode_decimal64, encode_decimal128,
11655         decode_decimal128): Reverse order of 32-bit parts of value if host
11656         and target endianness differ.
11657
11658 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
11659
11660         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
11661         Avoid division by 0.
11662         (tree_mod_pow2_value_transform): Likewise.
11663         (tree_ic_transform): Likewise.
11664         (tree_stringops_transform): Likewise.
11665         (tree_mod_subtract_transform): Likewise.
11666         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
11667         (copy_edges_for_bb): Likewise.
11668         (initialize_cfun): Likewise.
11669
11670 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
11671
11672         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
11673         nonmemory_operand. Add "N" operand constraint.
11674         (*btsi): Ditto.
11675         (*jcc_btdi_mask_rex64): New instruction and split pattern.
11676         (*jcc_btsi_mask): Ditto.
11677         (*jcc_btsi_mask_1): Ditto.
11678
11679 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
11680
11681         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
11682         TYPE_CANONICAL for copied element type.
11683
11684 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
11685
11686         PR target/36473
11687         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
11688         Add m_CORE2 and m_GENERIC.
11689         * config/i386/predicates.md (bt_comparison_operator): New predicate.
11690         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
11691         (*btsi): Ditto.
11692         (*jcc_btdi_rex64): New instruction and split pattern.
11693         (*jcc_btsi): Ditto.
11694         (*jcc_btsi_1): Ditto.
11695         (*btsq): Fix Intel asm dialect operand order.
11696         (*btrq): Ditto.
11697         (*btcq): Ditto.
11698
11699 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
11700
11701         PR middle-end/36447
11702         * simplify-rtx.c (simplify_subreg): Add check for shift count
11703         greater than size.
11704
11705 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
11706
11707         * doc/md.texi: Synchronize with later constraints.md change.
11708         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
11709         with a C implementation.
11710         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
11711         MFLO handling.
11712         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
11713         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
11714         when moving to and from MD_REGNUM.
11715         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
11716         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
11717         Handle byte and halfword moves.
11718         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
11719         separately.
11720         * config/mips/constraints.md (h): Turn into NO_REGS.
11721         (l, x): Update documentation.
11722         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
11723         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
11724         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
11725         (HILO): New mode iterator.
11726         (MOVE128): Add TI.
11727         (any_div): New code iterator.
11728         (u): Extend code attribute to div and udiv.
11729         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
11730         d_operand in the splitters.  Remove redundant CONST_INT checks.
11731         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
11732         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
11733         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
11734         accordingly, using normal moves instead of unspecs to move LO into
11735         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
11736         (<u>mulsidi3): Handle expansion in C code.
11737         (<u>mulsidi3_32bit_internal): Rename to...
11738         (<u>mulsidi3_32bit): ...this.
11739         (<u>mulsidi3_32bit_r4000): Fix insn separator.
11740         (*<u>mulsidi3_64bit): Rename to...
11741         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
11742         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
11743         to set LO and HI to the multiplication result.  Use a normal move
11744         for MFLO and an unspec for MFHI.
11745         (*<u>mulsidi3_64bit_parts): Replace with...
11746         (<u>mulsidi3_64bit_hilo): ...this new instruction.
11747         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
11748         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
11749         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
11750         instead of HI.  Split the instruction into a separate multiplication
11751         and MFHI if !TARGET_FIX_R4000.
11752         (<su>muldi3_highpart): Likewise.
11753         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
11754         and the "=h" clobber.
11755         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
11756         (<u>mulditi3): New expander.
11757         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
11758         (madsi): Remove "=h" clobber.
11759         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
11760         Force the modulus result to be a GPR and split the instruction into
11761         a division followed by an MFHI after reload.
11762         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
11763         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
11764         the MIPS16 HIGH define_split.
11765         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
11766         of acc<->gpr moves to "multi".
11767         (*movdi_64bit): Replace the single "x" alternative with
11768         alternatives for moving into and out of "a".
11769         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
11770         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
11771         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
11772         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
11773         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
11774         (movti): New expander.
11775         (*movti, *movti_mips16): New insns.
11776         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
11777         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
11778         (mthi<GPR:mode>_<HILO:mode>): Likewise.
11779         * config/mips/predicates.md (fpr_operand): Delete.
11780         (d_operand): New predicate.
11781
11782 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
11783
11784         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
11785         failure on some Bourne shells.
11786         (x86_64-*-*): Ditto.
11787
11788 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
11789
11790         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
11791
11792 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
11793
11794         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
11795         (sparc-sun-solaris2*): Likewise.
11796
11797 2008-06-09  Arnaud Charlet  <charlet@adacore.com
11798
11799         * doc/install.texi: Update requirements to build the Ada compiler.
11800
11801 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
11802
11803         * df-scan.c (struct df_scan_problem_data): Remove the
11804         mw_link_pool alloc pool.
11805         (df_scan_free_internal): Don't free it.
11806         (df_scan_alloc): Don't allocate it.
11807         * df.h (struct df_link): Update comment.
11808
11809 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
11810
11811         * except.h: Correct checks for when SJLJ exceptions must be used.
11812
11813 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11814
11815         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
11816         default.
11817
11818 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
11819
11820         PR tree-optimization/36218
11821         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
11822         configure for the build system.
11823         (BUILD_LDFLAGS): Define.
11824         * configure: Regenerate.
11825         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
11826
11827 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
11828
11829         PR target/36424
11830         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
11831         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
11832         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
11833
11834 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
11835
11836         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
11837
11838 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
11839
11840         * config.gcc (Obsolete configurations): Remove list of
11841         configurations.
11842         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
11843         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
11844         targets matched by those patterns.
11845         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
11846         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
11847         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
11848         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
11849         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
11850         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
11851         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
11852         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
11853         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
11854         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
11855         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
11856         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
11857         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
11858         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
11859         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
11860         Make code for Solaris 7 and greater unconditional for Solaris.
11861         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
11862         Remove --with-* handling.
11863         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
11864         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
11865         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
11866         LINK_OS_WINDISS_SPEC): Remove.
11867         * config/rs6000/sysv4.opt (mwindiss): Remove.
11868         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
11869         * configure: Regenerate.
11870         * doc/cpp.texi: Don't mention BeOS.
11871         * doc/extend.texi (interrupt): Don't mention MS1.
11872         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
11873         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
11874         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
11875         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
11876         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
11877         Remove.
11878         * doc/invoke.texi (MT Options): Remove.
11879         (-mwindiss): Remove.
11880         (CRIS Options): Remove cris-axis-aout references.
11881         (HPPA Options): Don't mention hppa1.1-*-pro.
11882         * doc/md.texi: (MorphoTech family): Remove.
11883         * libgcc2.c: Don't handle UWIN.
11884         * config/alpha/t-unicosmk: Remove.
11885         * config/alpha/unicosmk.h: Remove.
11886         * config/arm/kaos-arm.h: Remove.
11887         * config/arm/kaos-strongarm.h: Remove.
11888         * config/arm/strongarm-coff.h: Remove.
11889         * config/arm/strongarm-elf.h: Remove.
11890         * config/arm/strongarm-pe.h: Remove.
11891         * config/arm/t-strongarm-pe: Remove.
11892         * config/arm/t-xscale-coff: Remove.
11893         * config/arm/t-xscale-elf: Remove.
11894         * config/arm/xscale-coff.h: Remove.
11895         * config/arm/xscale-elf.h: Remove.
11896         * config/chorus.h: Remove.
11897         * config/cris/aout.h: Remove.
11898         * config/cris/aout.opt: Remove.
11899         * config/cris/t-aout: Remove.
11900         * config/i386/beos-elf.h: Remove.
11901         * config/i386/kaos-i386.h: Remove.
11902         * config/i386/ptx4-i.h: Remove.
11903         * config/i386/sco5.h: Remove.
11904         * config/i386/sco5.opt: Remove.
11905         * config/i386/sysv4-cpp.h: Remove.
11906         * config/i386/sysv5.h: Remove.
11907         * config/i386/t-beos: Remove.
11908         * config/i386/t-sco5: Remove.
11909         * config/i386/t-uwin: Remove.
11910         * config/i386/uwin.asm: Remove.
11911         * config/i386/uwin.h: Remove.
11912         * config/kaos.h: Remove.
11913         * config/mips/windiss.h: Remove.
11914         * config/mt: Remove directory.
11915         * config/pa/pa-osf.h: Remove.
11916         * config/pa/pa-pro-end.h: Remove.
11917         * config/pa/t-pro: Remove.
11918         * config/ptx4.h: Remove.
11919         * config/rs6000/beos.h: Remove.
11920         * config/rs6000/kaos-ppc.h: Remove.
11921         * config/rs6000/t-beos: Remove.
11922         * config/rs6000/windiss.h: Remove.
11923         * config/sh/kaos-sh.h: Remove.
11924         * config/sol2-6.h: Remove.
11925         * config/sparc/sol26-sld.h: Remove.
11926         * config/sparc/sysv4-only.h: Remove.
11927         * config/vax/bsd.h: Remove.
11928         * config/vax/t-memfuncs: Remove.
11929         * config/vax/ultrix.h: Remove.
11930         * config/vax/vaxv.h: Remove.
11931         * config/windiss.h: Remove.
11932
11933 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
11934
11935         PR rtl-optimization/36438
11936         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
11937         for vector shifts with constant scalar shift operands.
11938
11939 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
11940
11941         * doc/invoke.texi: Document -march=xlr.
11942         * config/mips/xlr.md: New file.
11943         * config/mips/mips.md: Include it.
11944         (cpu): Add "xlr".
11945         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
11946         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
11947         (mips_rtx_cost_data): Likewise.
11948
11949 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
11950
11951         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
11952         PRE_INC and PRE_DEC cases.
11953
11954 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11955
11956         PR rtl-optimization/36419
11957         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
11958         the emitting jump insn.
11959
11960         PR target/36362
11961         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
11962         is not bool, boolify the whole *expr_p and convert to the desired type.
11963
11964 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11965
11966         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
11967         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
11968         Add omp_private_outer_ref hook, add another argument to
11969         omp_clause_default_ctor hook.
11970         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
11971         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
11972         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
11973         hook_tree_tree_tree_tree_null.
11974         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
11975         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
11976         * hooks.c (hook_tree_tree_tree_tree_null): New function.
11977         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
11978         * tree.def (OMP_TASK): New tree code.
11979         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
11980         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
11981         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
11982         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
11983         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
11984         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
11985         OMP_CLAUSE_COLLAPSE_EXPR): Define.
11986         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11987         (OMP_DIRECTIVE_P): Add OMP_TASK.
11988         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
11989         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
11990         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
11991         and OMP_CLAUSE_UNTIED entries.
11992         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
11993         num_ops to 2.
11994         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11995         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
11996         * tree-pretty-print.c (dump_omp_clause): Handle
11997         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
11998         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11999         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
12000         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
12001         warning about unsigned iterators.  Change decl/init/cond/incr
12002         arguments to TREE_VECs, check arguments for all collapsed loops.
12003         (c_finish_omp_taskwait): New function.
12004         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
12005         ws_clauses.
12006         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
12007         default_function_array_conversion on init.  Add par_clauses argument.
12008         If decl is present in parallel's lastprivate clause, change it to
12009         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
12010         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
12011         collapse count in clauses.
12012         (c_parser_omp_for, c_parser_omp_parallel): Adjust
12013         c_parser_omp_for_loop callers.
12014         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
12015         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
12016         (c_parser_omp_clause_name): Handle collapse and untied clauses.
12017         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
12018         functions.
12019         (c_parser_omp_clause_schedule): Handle schedule(auto).
12020         Include correct location in the error message.
12021         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
12022         and PRAGMA_OMP_CLAUSE_UNTIED.
12023         (OMP_TASK_CLAUSE_MASK): Define.
12024         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
12025         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
12026         * tree-nested.c (convert_nonlocal_omp_clauses,
12027         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
12028         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
12029         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12030         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
12031         OMP_CLAUSE_DECL.
12032         (conver_nonlocal_reference, convert_local_reference,
12033         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
12034         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
12035         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
12036         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
12037         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
12038         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
12039         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
12040         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
12041         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
12042         OMP_CLAUSE_UNTIED.
12043         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
12044         * c-common.h (c_finish_omp_taskwait): New prototype.
12045         * gimple-low.c (lower_stmt): Handle OMP_TASK.
12046         * tree-parloops.c (create_parallel_loop): Create 1 entry
12047         vectors for OMP_FOR_{INIT,COND,INCR}.
12048         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
12049         (make_edges): Handle OMP_TASK.
12050         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
12051         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12052         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
12053         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
12054         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
12055         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
12056         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
12057         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
12058         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
12059         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
12060         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
12061         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
12062         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
12063         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
12064         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
12065         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
12066         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
12067         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
12068         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
12069         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
12070         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
12071         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
12072         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
12073         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
12074         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
12075         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
12076         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
12077         original iterator is present in lastprivate clause or if
12078         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
12079         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12080         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
12081         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
12082         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
12083         if it is set, lookup var in outer contexts too.  Handle
12084         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
12085         to be implicitly determined firstprivate for task regions.
12086         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
12087         if it is set, lookup var in outer contexts too.  Set
12088         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
12089         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
12090         OMP_CLAUSE_UNTIED.  Take region_type as last argument
12091         instead of in_parallel and in_combined_parallel.
12092         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
12093         Adjust callers.
12094         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
12095         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
12096         (new_omp_context): Set default_kind to
12097         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
12098         (omp_region_type): New enum.
12099         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
12100         fields, add region_type.
12101         (new_omp_context): Take region_type as argument instead of is_parallel
12102         and is_combined_parallel.
12103         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
12104         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
12105         ctx->is_combined_parallel checks.
12106         (gimplify_omp_task): New function.
12107         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
12108         OMP_CLAUSE_UNTIED.
12109         * omp-low.c (extract_omp_for_data): Use schedule(static)
12110         for schedule(auto).  Handle pointer and unsigned iterators.
12111         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
12112         Add loops argument.  Extract data for collapsed OMP_FOR loops.
12113         (expand_parallel_call): Assert sched_kind isn't auto,
12114         map runtime schedule to index 3.
12115         (struct omp_for_data_loop): New type.
12116         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
12117         Add loop, loops, collapse and iter_type fields.
12118         (workshare_safe_to_combine_p): Disallow combined for if
12119         iter_type is unsigned long long.  Don't combine collapse > 1 loops
12120         unless all bounds and steps are constant.  Adjust extract_omp_for_data
12121         caller.
12122         (expand_omp_for_generic): Handle pointer, unsigned and long long
12123         iterators.  Handle collapsed OMP_FOR loops.  Adjust
12124         for struct omp_for_data changes.  If libgomp function doesn't return
12125         boolean_type_node, add comparison of the return value with 0.
12126         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
12127         pointer, unsigned and long long iterators.  Adjust for struct
12128         omp_for_data changes.
12129         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
12130         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
12131         unsigned long long.  Allocate loops array, pass it to
12132         extract_omp_for_data.  For collapse > 1 loops use always
12133         expand_omp_for_generic.
12134         (omp_context): Add sfield_map and srecord_type fields.
12135         (is_task_ctx, lookup_sfield): New functions.
12136         (use_pointer_for_field): Use is_task_ctx helper.  Change first
12137         argument's type from const_tree to tree.  Clarify comment.
12138         In OMP_TASK disallow copy-in/out sharing.
12139         (build_sender_ref): Call lookup_sfield instead of lookup_field.
12140         (install_var_field): Add mask argument.  Populate both record_type
12141         and srecord_type if needed.
12142         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
12143         in srecord_type.
12144         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
12145         and DECL_FIELD_OFFSET.
12146         (scan_sharing_clauses): Adjust install_var_field callers.  For
12147         firstprivate clauses on explicit tasks allocate the var by value in
12148         record_type unconditionally, rather than by reference.
12149         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
12150         Use is_taskreg_ctx instead of is_parallel_ctx.
12151         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
12152         (create_omp_child_function_name): Add task_copy argument, use
12153         *_omp_cpyfn* names if it is true.
12154         (create_omp_child_function): Add task_copy argument, if true create
12155         *_omp_cpyfn* helper function.
12156         (scan_omp_parallel): Adjust create_omp_child_function callers.
12157         Rename parallel_nesting_level to taskreg_nesting_level.
12158         (scan_omp_task): New function.
12159         (lower_rec_input_clauses): Don't run constructors for firstprivate
12160         explicit task vars which are initialized by *_omp_cpyfn*.
12161         Pass outer var ref to omp_clause_default_ctor hook if
12162         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
12163         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
12164         OMP_CLAUSE_REDUCTION_INIT.
12165         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
12166         avoid duplicate setting of fields.  Handle
12167         OMP_CLAUSE_PRIVATE_OUTER_REF.
12168         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
12169         copy-out if TREE_READONLY, only copy-in.
12170         (expand_task_copyfn): New function.
12171         (expand_task_call): New function.
12172         (struct omp_taskcopy_context): New type.
12173         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
12174         New functions.
12175         (lower_omp_parallel): Rename to...
12176         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
12177         Call create_task_copyfn if srecord_type is needed.  Adjust
12178         sender_decl type.
12179         (task_shared_vars): New variable.
12180         (check_omp_nesting_restrictions): Warn if work-sharing,
12181         barrier, master or ordered region is closely nested inside OMP_TASK.
12182         Add warnings for barrier if closely nested inside of work-sharing,
12183         ordered, or master region.
12184         (scan_omp_1): Call check_omp_nesting_restrictions even for
12185         GOMP_barrier calls.  Rename parallel_nesting_level to
12186         taskreg_nesting_level.  Handle OMP_TASK.
12187         (lower_lastprivate_clauses): Even if some lastprivate is found on a
12188         work-sharing construct, continue looking for them on parent parallel
12189         construct.
12190         (lower_omp_for_lastprivate): Add lastprivate clauses
12191         to the beginning of dlist rather than end.  Adjust for struct
12192         omp_for_data changes.
12193         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
12194         not after it.  Handle collapsed OMP_FOR loops, adjust for
12195         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
12196         (get_ws_args_for): Adjust extract_omp_for_data caller.
12197         (scan_omp_for): Handle collapsed OMP_FOR
12198         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
12199         (lower_omp_single_simple): If libgomp function doesn't return
12200         boolean_type_node, add comparison of the return value with 0.
12201         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
12202         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
12203         (parallel_nesting_level): Rename to...
12204         (taskreg_nesting_level): ... this.
12205         (is_taskreg_ctx): New function.
12206         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
12207         of is_parallel_ctx.
12208         (execute_lower_omp): Rename parallel_nesting_level to
12209         taskreg_nesting_level.
12210         (expand_omp_parallel): Rename to...
12211         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
12212         Call omp_task_call for OMP_TASK regions.
12213         (expand_omp): Adjust caller, handle OMP_TASK.
12214         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
12215
12216         * bitmap.c (bitmap_default_obstack_depth): New variable.
12217         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
12218         if argument is NULL and bitmap_default_obstack is already initialized.
12219         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
12220         at the end.
12221         * matrix-reorg.c (matrix_reorg): Likewise.
12222
12223 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
12224
12225         * config/i386/i386.md (*indirect_jump): Macroize using P
12226         mode iterator.  Remove !TARGET_64BIT from insn constraints.
12227         (*tablejump_1): Ditto.
12228         (*indirect_jump_rex64): Remove insn pattern.
12229         (*tablejump_1_rex64): Ditto.
12230         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
12231         and eh_return_si insn patterns.
12232
12233 2008-06-06  Richard Guenther  <rguenther@suse.de>
12234
12235         * tree-ssa-structalias.c (merge_smts_into): Remove.
12236         (find_what_p_points_to): Do not bother to compute the
12237         points-to set for pt_anything pointers.
12238         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
12239         for pt_anything pointers is ok.
12240
12241 2008-06-06  Jan Hubicka  <jh@suse.cz>
12242
12243         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
12244
12245 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12246
12247         * cgraph.c: Fix typos in comments.
12248         (cgraph_availability_names): Fix string typo.
12249         * fold-const.c: Fix typos in comments.
12250         (fold_binary): Fix typo in warning.
12251         * genautomata.c: Fix typos in comments.
12252         (check_presence_pattern_sets): Fix typo in local variable.
12253         (output_description): Fix typo in output.
12254         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
12255         * hwint.h: Likewise.
12256         * matrix-reorg.c (check_allocation_function): Likewise.
12257         * omega.c (smooth_weird_equations): Likewise.
12258         * auto-inc-dec.c: Fix typos in comments.
12259         * bb-reorder.c: Likewise.
12260         * builtins.c: Likewise.
12261         * c-common.c: Likewise.
12262         * c-cppbuiltin.c: Likewise.
12263         * c-parser.c: Likewise.
12264         * c-pretty-print.c: Likewise.
12265         * cfgcleanup.c: Likewise.
12266         * cfgexpand.c: Likewise.
12267         * cfghooks.c: Likewise.
12268         * cfglayout.c: Likewise.
12269         * cfgloopmanip.c: Likewise.
12270         * cgraphunit.c: Likewise.
12271         * coverage.c: Likewise.
12272         * dbxout.c: Likewise.
12273         * df-byte-scan.c: Likewise.
12274         * df-core.c: Likewise.
12275         * df-problems.c: Likewise.
12276         * df-scan.c: Likewise.
12277         * dfp.c: Likewise.
12278         * dominance.c: Likewise.
12279         * domwalk.c: Likewise.
12280         * dse.c: Likewise.
12281         * dwarf2out.c: Likewise.
12282         * emit-rtl.c: Likewise.
12283         * et-forest.c: Likewise.
12284         * function.c: Likewise.
12285         * function.h: Likewise.
12286         * gcc.c: Likewise.
12287         * gcov-io.c: Likewise.
12288         * gcov.c: Likewise.
12289         * gcse.c: Likewise.
12290         * genattrtab.c: Likewise.
12291         * ggc-page.c: Likewise.
12292         * gimplify.c: Likewise.
12293         * gthr-lynx.h: Likewise.
12294         * haifa-sched.c: Likewise.
12295         * ipa-cp.c: Likewise.
12296         * ipa-inline.c: Likewise.
12297         * ipa-prop.h: Likewise.
12298         * ipa-pure-const.c: Likewise.
12299         * ipa-struct-reorg.c: Likewise.
12300         * ipa-struct-reorg.h: Likewise.
12301         * ipa-type-escape.c: Likewise.
12302         * ipa.c: Likewise.
12303         * loop-doloop.c: Likewise.
12304         * mips-tfile.c: Likewise.
12305         * mkmap-flat.awk: Likewise.
12306         * mkmap-symver.awk: Likewise.
12307         * modulo-sched.c: Likewise.
12308         * omp-low.c: Likewise.
12309         * optabs.c: Likewise.
12310         * optabs.h: Likewise.
12311         * opts.c: Likewise.
12312         * passes.c: Likewise.
12313         * postreload-gcse.c: Likewise.
12314         * postreload.c: Likewise.
12315         * predict.c: Likewise.
12316         * pretty-print.h: Likewise.
12317         * profile.c: Likewise.
12318         * protoize.c: Likewise.
12319         * ra-conflict.c: Likewise.
12320         * real.c: Likewise.
12321         * recog.c: Likewise.
12322         * regclass.c: Likewise.
12323         * regs.h: Likewise.
12324         * reload.c: Likewise.
12325         * rtl-error.c: Likewise.
12326         * rtlanal.c: Likewise.
12327         * scan.h: Likewise.
12328         * sched-rgn.c: Likewise.
12329         * see.c: Likewise.
12330         * stmt.c: Likewise.
12331         * target.h: Likewise.
12332         * tree-dfa.c: Likewise.
12333         * tree-eh.c: Likewise.
12334         * tree-flow-inline.h: Likewise.
12335         * tree-inline.c: Likewise.
12336         * tree-into-ssa.c: Likewise.
12337         * tree-loop-distribution.c: Likewise.
12338         * tree-nested.c: Likewise.
12339         * tree-parloops.c: Likewise.
12340         * tree-pass.h: Likewise.
12341         * tree-pretty-print.c: Likewise.
12342         * tree-profile.c: Likewise.
12343         * tree-scalar-evolution.c: Likewise.
12344         * tree-sra.c: Likewise.
12345         * tree-ssa-alias-warnings.c: Likewise.
12346         * tree-ssa-ccp.c: Likewise.
12347         * tree-ssa-coalesce.c: Likewise.
12348         * tree-ssa-dom.c: Likewise.
12349         * tree-ssa-dse.c: Likewise.
12350         * tree-ssa-forwprop.c: Likewise.
12351         * tree-ssa-live.c: Likewise.
12352         * tree-ssa-live.h: Likewise.
12353         * tree-ssa-loop-im.c: Likewise.
12354         * tree-ssa-loop-ivopts.c: Likewise.
12355         * tree-ssa-loop-niter.c: Likewise.
12356         * tree-ssa-loop-prefetch.c: Likewise.
12357         * tree-ssa-phiopt.c: Likewise.
12358         * tree-ssa-phiprop.c: Likewise.
12359         * tree-ssa-sccvn.c: Likewise.
12360         * tree-ssa-ter.c: Likewise.
12361         * tree-ssa-threadupdate.c: Likewise.
12362         * tree-ssa.c: Likewise.
12363         * tree-vect-analyze.c: Likewise.
12364         * tree-vect-transform.c: Likewise.
12365         * tree-vectorizer.c: Likewise.
12366         * tree-vn.c: Likewise.
12367         * tree-vrp.c: Likewise.
12368         * tree.c: Likewise.
12369         * tree.def: Likewise.
12370         * tree.h: Likewise.
12371         * unwind-dw2-fde.c: Likewise.
12372         * unwind.inc: Likewise.
12373         * value-prof.c: Likewise.
12374         * vmsdbgout.c: Likewise.
12375
12376 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
12377
12378         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
12379         always place FP constants in the TOC for TARGET_POWERPC64.
12380         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
12381
12382 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
12383
12384         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
12385         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
12386         enable for TARGET_E500_DOUBLE.
12387         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
12388         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
12389         floating-point modes like integer modes for E500 double.
12390         (rs6000_legitimate_offset_address_p): Likewise.
12391         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
12392         addressing for DDmode for E500 double.
12393         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
12394         modes as using 64-bits of registers for E500 double.
12395         (spe_build_register_parallel): Do not handle DDmode or TDmode.
12396         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
12397         specially for E500 double.
12398         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
12399         TDmode for E500 double.
12400         (rs6000_gimplify_va_arg): Only handle SDmode in registers
12401         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
12402         (rs6000_split_multireg_move): Do not handle TDmode specially for
12403         E500 double.
12404         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
12405         using 64-bit registers for E500 double.
12406         (emit_frame_save): Do not handle DDmode specially for E500 double.
12407         (gen_frame_mem_offset): Likewise.
12408         (rs6000_function_value): Do not call spe_build_register_parallel
12409         for DDmode or TDmode.
12410         (rs6000_libcall_value): Likewise.
12411         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
12412         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
12413         for E500 double.
12414
12415 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12416
12417         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
12418         in comments.
12419
12420 2008-06-04  Junjie Gu <jgu@tensilica.com>
12421
12422         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
12423         comparison for frame pointers.
12424
12425 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
12426
12427         PR target/27386
12428         * config/avr/avr.h (PUSH_ROUNDING): Remove.
12429
12430 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
12431
12432         PR target/30243
12433         * builtins.c (expand_builtin_signbit): Don't take lowpart when
12434         register is already smaller or equal to required mode.
12435
12436 2008-06-04  Xinliang David Li  <davidxl@google.com>
12437
12438         * tree-call-cdce.c: New file.
12439         (cond_dead_built_in_calls): New static variable.
12440         (input_domain): New struct.
12441         (check_pow): New function.
12442         (check_builtin_call): Ditto.
12443         (check_target_format): Ditto.
12444         (is_call_dce_candidate): Ditto.
12445         (gen_one_condition): Ditto.
12446         (gen_conditions_for_domain): Ditto.
12447         (get_domain): Ditto.
12448         (gen_conditions_for_pow_cst_base): Ditto.
12449         (gen_conditions_for_pow_int_base): Ditto.
12450         (gen_conditions_for_pow): Ditto.
12451         (get_no_error_domain): Ditto.
12452         (gen_shrink_wrap_conditions): Ditto.
12453         (shrink_wrap_one_built_in_call): Ditto.
12454         (shink_wrap_conditional_dead_built_in_calls): Ditto.
12455         (tree_call_cdce): Ditto.
12456         (gate_call_cdce): Ditto.
12457         (pass_call_cdce): New gimple pass.
12458         * passes.c: (init_optimization_passes): New pass.
12459         * tree-pass.h: New pass declaration.
12460         * opts.c (decode_options): New flag setting.
12461         * common.opt: Add -ftree-builtin-call-dce flag.
12462         * Makefile.in: Add new source file.
12463         * tempvar.def: New tv_id.
12464         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
12465
12466 2008-06-04  Richard Guenther  <rguenther@suse.de>
12467
12468         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
12469         (is_call_clobbered): Always check var_ann->call_clobbered.
12470         (mark_call_clobbered): Always set var_ann->call_clobbered.
12471         (clear_call_clobbered): Always clear var_ann->call_clobbered.
12472         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
12473         (reset_alias_info): Clear call clobbering info on MTAGs and
12474         globals as well.
12475         (set_pt_anything): Set pt_global_mem.
12476         (create_tag_raw): Adjust comment.
12477         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
12478
12479 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
12480             Maxim Kuvyrkov  <maxim@codesourcery.com>
12481
12482         * config/m68k/m68k.opt (mxgot): New option.
12483         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
12484         (m68k_output_addr_const_extra): New.
12485         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
12486         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
12487         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
12488         * doc/invoke.texi (M680x0 Options): Document -mxgot.
12489
12490 2008-06-04  Richard Guenther  <rguenther@suse.de>
12491
12492         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
12493         negative or non-representable offsets.
12494
12495 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
12496
12497         * config/i386/i386.c (ix86_gen_leave): New.
12498         (ix86_gen_pop1): Likewise.
12499         (ix86_gen_add3): Likewise.
12500         (ix86_gen_sub3): Likewise.
12501         (ix86_gen_sub3_carry): Likewise.
12502         (ix86_gen_one_cmpl2): Likewise.
12503         (ix86_gen_monitor): Likewise.
12504         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
12505         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
12506         ix86_gen_one_cmpl2 and ix86_gen_monitor.
12507         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
12508         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
12509         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
12510         (ix86_expand_epilogue): Updated.
12511         (print_operand): Handle integer register operand for 'z'.
12512         (ix86_expand_strlensi_unroll_1): Likewise.
12513         (ix86_expand_strlen): Likewise.
12514         (ix86_expand_builtin): Likewise.
12515         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
12516         mov{q}/mov{l} and add{q}/add{l}.
12517
12518 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
12519
12520         * config/i386/i386.md (P): New mode iterator.
12521         (SFmode push_operand splitter): Macroize DImode and SImode pushes
12522         using P mode iterator.
12523         (DFmode push_operand splitter): Ditto.
12524         (XFmode push_operand splitter): Ditto.
12525         (DFmode float_extend SFmode push_operand splitter): Ditto.
12526         (XFmode float_extend SFmode push_operand splitter): Do not generate
12527         SImode pushes for 64bit target.  Macroize Dimode and SImode
12528         pushes using P mode iterator.
12529         (XFmode float_extend DFmode push_operand splitter): Ditto.
12530
12531 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
12532
12533         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
12534         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
12535         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
12536         return type to int.
12537         (ix86_call_abi_override): Remove check for call_used_regs.
12538
12539 2008-06-03  Richard Guenther  <rguenther@suse.de>
12540
12541         * tree-ssa-structalias.c (find_func_aliases): Add constraints
12542         for the lhs of calls if the return type contains pointers.
12543
12544 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
12545
12546         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
12547         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
12548         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
12549         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
12550         of cfun and DEFAULT_ABI to deceide abi mode.
12551         (DEFAULT_ABI): New.
12552         (REG_PARM_STACK_SPACE): Removed.
12553         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
12554         (STACK_BOUNDARY): Use default target to deceide stack boundary.
12555         * config/i386/i386-protos.h (ix86_cfun_abi): New.
12556         (ix86_function_abi): Likewise.
12557         (ix86_function_type_abi): Likewise.
12558         (ix86_call_abi_override): Likewise.
12559         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
12560         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
12561         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
12562         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
12563         specific defines.
12564         (X86_64_REGPARM_MAX): New.
12565         (X86_64_SSE_REGPARM_MAX): New.
12566         (X64_REGPARM_MAX): New.
12567         (X64_SSE_REGPARM_MAX): New.
12568         (X86_32_REGPARM_MAX): New.
12569         (X86_32_SSE_REGPARM_MAX): New.
12570         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
12571         (ix86_function_regparm): Handle user calling abi.
12572         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
12573         by DEFAULT_ABI versus SYSV_ABI check.
12574         (ix86_reg_parm_stack_space): New.
12575         (ix86_function_type_abi): New.
12576         (ix86_call_abi_override): New.
12577         (ix86_function_abi): New.
12578         (ix86_cfun_abi): New.
12579         (init_cumulative_args): Call abi specific initialization.
12580         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
12581         (function_arg_64): Extend SSE_REGPARM_MAX check.
12582         (function_arg (): Remove TARGET_64BIT_MS_ABI.
12583         (ix86_pass_by_reference): Likewise.
12584         (ix86_function_value_regno_p): Likewise.
12585         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
12586         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
12587         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
12588         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
12589         (setup_incoming_varargs_64): Adjust regparm for call abi.
12590         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
12591         (ix86_va_start): Likewise.
12592         (ix86_gimplify_va_arg): Likewise.
12593         (ix86_expand_prologue): Likewise.
12594         (output_pic_addr_const): Likewise.
12595         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
12596         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
12597         (x86_output_mi_thunk): Likewise.
12598         (x86_function_profiler): Likewise.
12599         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
12600         (SYSV_ABI, MS_ABI): New constants.
12601         (DEFAULT_ABI): New.
12602         (init_regs): Add prototype of function in regclass.c file.
12603         (OVERRIDE_ABI_FORMAT): New.
12604         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
12605         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
12606         (OUTGOING_REG_PARM_STACK_SPACE): New.
12607         (ix86_reg_parm_stack_space): New prototype.
12608         (CUMULATIVE_ARGS): Add call_abi member.
12609         (machine_function): Add call_abi member.
12610         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
12611         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
12612
12613 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
12614
12615         PR target/34879
12616         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
12617         (avr_builtin_setjmp_frame_value): New function.
12618         * config/avr/avr.md (nonlocal_goto_receiver): Define.
12619         (nonlocal_goto): Define.
12620
12621 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
12622
12623         * config/mips/mips.c (mips_emit_loadgp): Return early if
12624         there is nothing do to, otherwise emit a blockage if
12625         !TARGET_EXPLICIT_RELOCS || crtl->profile.
12626         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
12627
12628 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12629
12630         * configure.ac: Drop unneeded backslash ending up in config.in.
12631         * acinclude.m4: Likewise.
12632         * config.in: Regenerate.
12633
12634 2008-05-26  Jan Hubicka  <jh@suse.cz>
12635
12636         * predict.c (maybe_hot_frequency_p): Break out of...
12637         (maybe_hot_bb_p): ... here.
12638         (maybe_hot_edge_p): New.
12639         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
12640         * basic-block.h (maybe_hot_edge_p): Declare.
12641
12642 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
12643
12644         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
12645         (*cmpfp_<mode>_cc): Ditto.
12646         (*fp_jcc_8<mode>_387): Ditto.
12647         (*fop_<MODEF:mode>_2_i387): Ditto.
12648         (*fop_<MODEF:mode>_3_i387): Ditto.
12649         (*fop_xf_2_i387): Ditto.
12650         (*fop_xf_3_i387): Ditto.
12651
12652 2008-06-02  Tomas Bily  <tbily@suse.cz>
12653
12654         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
12655
12656 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12657
12658         * config/mips/mips.c (mips_valid_offset_p): New function.
12659         (mips_valid_lo_sum_p): Likewise.
12660         (mips_classify_address): Use them.
12661         (mips_force_address): New function.
12662         (mips_legitimize_address): Use it.
12663         * config/mips/mips.md (MOVE128): New mode iterator.
12664         (movtf): Require TARGET_64BIT.  Remove empty strings.
12665         (*movtf_internal): Rename to...
12666         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
12667         of "R" and use {,fp}{load,store} attributes instead of "multi".
12668         Use a separate define_split.
12669         (*movtf_mips16): New pattern.
12670
12671 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12672
12673         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
12674         * config/mips/mips.c (mips_expand_before_return): New function.
12675         (mips_expand_epilogue): Call it.
12676         * config/mips/mips.md (return): Turn into a define_expand.
12677         (*return): New insn.
12678
12679 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12680
12681         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
12682         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
12683         functions.  Do not emit uses and clobbers of CONCATs; individually
12684         use and clobber their operands.
12685         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
12686         gen_clobber, emit_use and gen_use.
12687         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
12688         (expand_builtin_return): Likewise.
12689         * cfgbuild.c (count_basic_blocks): Likewise.
12690         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
12691         * explow.c (emit_stack_restore): Likewise.
12692         * expmed.c (extract_bit_field_1): Likewise.
12693         * expr.c (convert_move, emit_move_complex_parts): Likewise.
12694         (emit_move_multi_word, store_constructor): Likewise.
12695         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
12696         (thread_prologue_and_epilogue_insns): Likewise.
12697         * lower-subreg.c (resolve_simple_move): Likewise.
12698         * optabs.c (widen_operand, expand_binop): Likewise.
12699         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
12700         * reload.c (find_reloads): Likewise.
12701         * reload1.c (eliminate_regs_in_insn): Likewise.
12702         * stmt.c (expand_nl_goto_receiver): Likewise.
12703         * config/alpha/alpha.md (builtin_longjmp): Likewise.
12704         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
12705         * config/arm/arm.c (arm_load_pic_register): Likewise.
12706         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
12707         * config/arm/arm.md (untyped_return): Likewise.
12708         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
12709         * config/avr/avr.c (expand_prologue): Likewise.
12710         * config/bfin/bfin.c (do_unlink): Likewise.
12711         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
12712         * config/cris/cris.c (cris_expand_prologue): Likewise.
12713         * config/darwin.c (machopic_indirect_data_reference): Likewise.
12714         (machopic_legitimize_pic_address): Likewise.
12715         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
12716         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
12717         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
12718         (ix86_expand_convert_uns_didf_sse): Likewise.
12719         (ix86_expand_vector_init_general): Likewise.
12720         * config/ia64/ia64.md (eh_epilogue): Likewise.
12721         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
12722         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
12723         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
12724         (config/iq2000/iq2000.c): Likewise.
12725         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
12726         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12727         (builtin_longjmp): Likewise.
12728         * config/mn10300/mn10300.md (call, call_value): Likewise.
12729         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
12730         * config/pdp11/pdp11.md (abshi2): Likewise.
12731         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
12732         * config/s390/s390.c (s390_emit_prologue): Likewise.
12733         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
12734         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
12735         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
12736         * config/sh/sh.c (prepare_move_operands): Likewise.
12737         (output_stack_adjust, sh_expand_epilogue): Likewise.
12738         (sh_set_return_address, sh_expand_t_scc): Likewise.
12739         * config/sparc/sparc.c (load_pic_register): Likewise.
12740         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
12741         * config/spu/spu.c (spu_expand_epilogue): Likewise.
12742         * config/v850/v850.c (expand_epilogue): Likewise.
12743
12744 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
12745
12746         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
12747         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
12748         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
12749         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
12750         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
12751         stack pointer register.
12752         (output_movhi): Remove code for interrupt specific writing to the
12753         stack pointer register.
12754
12755 2008-05-31  Richard Guenther  <rguenther@suse.de>
12756
12757         PR tree-optimization/34244
12758         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
12759         (tree_expr_nonzero_warnv_p): Likewise.
12760         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
12761         ssa_name_nonnegative_p.
12762         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
12763         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
12764         not tree_expr_nonzero_warnv_p.
12765
12766         PR tree-optimization/36262
12767         Revert
12768         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
12769
12770         PR tree-optimization/34244
12771         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
12772         (record_numbers_of_iterations): New function.
12773         (execute_vrp): Cache the numbers of iterations of loops.
12774         * tree-scalar-evolution.c (scev_reset_except_niters):
12775         New function.
12776         (scev_reset): Use scev_reset_except_niters.
12777         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
12778
12779 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
12780
12781         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12782         __WORKAROUND_RETS when appropriate.
12783
12784 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
12785
12786         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
12787         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
12788         mode iterator.
12789         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
12790         *fop_df_comm_sse insn patterns using MODEF mode iterator.
12791         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
12792         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
12793         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
12794         *fop_df_1_mixed insn patterns using MODEF mode iterator.
12795         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
12796         *fop_df_1_sse insn patterns using MODEF mode iterator.
12797         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
12798         *fop_df_1_i387 insn patterns using MODEF mode iterator.
12799         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
12800         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
12801         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
12802         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
12803         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
12804         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
12805         (*fop_xf_4_i387): Use <MODE> for mode attribute.
12806         (*fop_xf_5_i387): Ditto.
12807         (*fop_xf_6_i387): Ditto.
12808
12809 2008-05-30  Richard Guenther  <rguenther@suse.de>
12810
12811         * builtins.c (build_string_literal): Avoid generating
12812         a non-gimple_val result.
12813
12814 2008-05-30  DJ Delorie  <dj@redhat.com>
12815
12816         * exec-tool.in: Use an environment variable (private) instead of a
12817         file (shared) as a semaphore, so as to not break parallel builds.
12818
12819 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
12820
12821         * optabs.c (maybe_encapsulate_block): Remove.
12822         (emit_libcall_block): Adjust accordingly.
12823         * optabs.h (maybe_encapsulate_block): Remove prototype.
12824
12825         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
12826         Don't use maybe_encapsulate_block.
12827
12828 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
12829
12830         * config/rs6000/rs6000.c (rs6000_legitimize_address,
12831         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
12832         rtx is a SYMBOL_REF before calling get_pool_constant.
12833
12834 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12835
12836         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
12837
12838 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
12839
12840         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
12841         rather than OS names to choose INO_T_EQ definition.
12842         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
12843         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
12844
12845 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
12846
12847         PR target/36348
12848         * config/darwin-f.c: New.
12849         * config/t-darwin: Added rule to build darwin-f.o.
12850         * config.gcc: Defined new variable, fortran_target_objs.
12851         (*-*-darwin*): Set fortran_target_objs.
12852         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
12853         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
12854         * configure: Regenerated.
12855
12856 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12857
12858         PR target/35771
12859         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
12860         canonical type if needed.
12861
12862 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
12863
12864         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
12865
12866 2008-05-29  Richard Guenther  <rguenther@suse.de>
12867
12868         PR tree-optimization/36343
12869         PR tree-optimization/36346
12870         PR tree-optimization/36347
12871         * tree-flow.h (clobber_what_p_points_to): Declare.
12872         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
12873         pointed-to variable is dereferenced is irrelevant to whether
12874         the pointer can access the pointed-to variable.
12875         (clobber_what_p_points_to): New function.
12876         * tree-ssa-alias.c (set_initial_properties): Use it.
12877         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
12878         call clobber check for NMTs.
12879
12880 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
12881
12882         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
12883         for printing gcov_type.
12884
12885 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
12886
12887         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
12888         and the eh region information.
12889         * value-prof.c (gimple_move_stmt_histograms): New function.
12890         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
12891
12892 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
12893
12894         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
12895
12896 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
12897
12898         * value-prof.c (tree_ic_transform): Print counts.
12899         * tree-profile.c (tree_gen_ic_func_profiler):
12900         Clear __gcov_indreict_call_callee variable to avoid misattribution
12901         of the profile.
12902
12903 2008-05-28  Rafael Espíndola  <espindola@google.com>
12904
12905         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
12906         invalid sharing.
12907
12908 2008-05-28  Richard Guenther  <rguenther@suse.de>
12909
12910         PR tree-optimization/36339
12911         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
12912         and clobbering code out of the loop.
12913
12914 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
12915
12916         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
12917         letters defined.
12918
12919         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
12920         s390_contiguous_bitmask_p, s390_symref_operand_p,
12921         s390_check_symref_alignment, s390_reload_larl_operand,
12922         s390_reload_symref_address): New functions.
12923         (s390_branch_condition_mnemonic): Support compare and branch
12924         instructions.
12925         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
12926         and 'W' constraints.
12927         (s390_secondary_reload): Add secondary reloads for unaligned
12928         symbol refs or symbol refs to floating point or QI/TI mode
12929         integer values.
12930         (legitimate_address_p): Accept symbol references as addresses.
12931         (s390_expand_insv): Use rotate and insert selected bits
12932         instruction for insv when building for z10.
12933         (print_operand_address): Handle symbol ref addresses.
12934         (print_operand): Output modifier 'c' added for signed byte values.
12935         (s390_encode_section_info): Mark symbol refs with
12936         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
12937
12938         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
12939         (length attribute): RRF, RRR have 4 byte length.
12940         (FPALL, INTALL): New mode iterators added.
12941         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
12942         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
12943         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
12944         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
12945         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
12946         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
12947         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
12948         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
12949         instructions.
12950         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
12951         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
12952         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
12953         reload<INTALL:mode><P:mode>_toreg_z10,
12954         reload<FPALL:mode><P:mode>_tomem_z10,
12955         reload<FPALL:mode><P:mode>_toreg_z10,
12956         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
12957         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
12958         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
12959         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
12960         definition.
12961         (movmem, clrmem, cmpmem): New splitters added.
12962
12963         * config/s390/predicates.md (larl_operand): Use
12964         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
12965         SYMBOL_REF_ALIGN1_P.
12966         (s390_signed_integer_comparison,
12967         s390_unsigned_integer_comparison): New predicates.
12968
12969         * config/s390/s390-protos.h (s390_check_symref_alignment,
12970         s390_contiguous_bitmask_p, s390_reload_larl_operand,
12971         s390_reload_symref_address,
12972         s390_compare_and_branch_condition_mask): Prototypes added.
12973
12974         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
12975         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
12976         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
12977
12978 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
12979
12980         * config/s390/s390.c (z10_cost): New cost function for z10.
12981         (s390_handle_arch_option, override_options): Support -march=z10 switch.
12982         (s390_issue_rate): Adjust issue rate for z10.
12983         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
12984         (processor_flags): Add PF_Z10.
12985         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
12986         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
12987         * gcc/config.gcc: Add z10.
12988
12989 2008-05-28  Richard Guenther  <rguenther@suse.de>
12990
12991         PR tree-optimization/36291
12992         * tree-flow. h (struct gimple_df): Remove var_anns member.
12993         * tree-flow-inline.h (gimple_var_anns): Remove.
12994         (var_ann): Simplify.
12995         * tree-dfa.c (create_var_ann): Simplify.
12996         (remove_referenced_var): Clear alias info from var_anns of globals.
12997         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
12998         (delete_tree_ssa): Clear alias info from var_anns of globals.
12999         Do not free var_anns.
13000         (var_ann_eq): Remove.
13001         (var_ann_hash): Likewise.
13002
13003 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
13004
13005         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
13006         and loongson2f entries.
13007         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
13008         * config/mips/mips.h (processor_type): Add Loongson-2E
13009         and Loongson-2F entries.
13010         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
13011         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
13012         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
13013         * doc/invoke.texi (MIPS Options): Document loongson2e
13014         and loongson2f processor names.
13015
13016 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
13017
13018         PR target/35767
13019         PR target/35771
13020         * config/i386/i386.c (ix86_function_arg_boundary): Use
13021         alignment of canonical type.
13022         (ix86_expand_vector_move): Check unaligned memory access for
13023         all SSE modes.
13024
13025 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
13026
13027         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
13028         Moved to the front of file.
13029
13030 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
13031             H.J. Lu  <hongjiu.lu@intel.com>
13032
13033         * dwarf2out.c (current_fde): New.
13034         (add_cfi): Use it.
13035         (lookup_cfa:): Likewise.
13036         (dwarf2out_end_epilogue): Likewise.
13037         (dwarf2out_note_section_used): Likewise.
13038
13039 2008-05-27  Michael Matz  <matz@suse.de>
13040
13041         PR c++/27975
13042         * c.opt (Wenum-compare): New warning option.
13043         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
13044
13045 2008-05-27  Michael Matz  <matz@suse.de>
13046
13047         PR middle-end/36326
13048         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
13049         non-BLKmode types.
13050         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
13051         into memory as tail calls.
13052
13053 2008-05-27  Richard Guenther  <rguenther@suse.de>
13054
13055         PR tree-optimization/36339
13056         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
13057         pointers cause all addressable variables to be call clobbered.
13058
13059 2008-05-27  Richard Guenther  <rguenther@suse.de>
13060
13061         PR tree-optimization/36245
13062         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
13063
13064 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
13065
13066         * config/s390/s390.md: Replace all occurences of the 'm'
13067         constraint with 'RT'.
13068
13069 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
13070
13071         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
13072         definitions added.
13073         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
13074         "*movdi_64".
13075         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
13076         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
13077         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
13078
13079 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
13080
13081         * reload.c: (find_reloads): Skip alternatives according to the
13082         "enabled" attribute. Constify the constraint variable.
13083         * recog.c (get_attr_enabled): Add default implementation.
13084         (extract_insn): Set the alternative_enabled_p array
13085         in the recog_data struct.
13086         (preprocess_constraints, constrain_operands): Skip
13087         alternatives according to the "enabled" attribute
13088         * recog.h (struct recog_data): New field alternative_enabled_p.
13089         (skip_alternative): New inline function.
13090         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
13091         (record_reg_classes): Skip alternative according to the
13092         "enabled" attribute.
13093
13094         * doc/md.texi: Add documention for the "enabled" attribute.
13095
13096 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
13097
13098         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
13099         * postreload.c (reload_cse_simplify_operands): Replace 'm'
13100         constraint with TARGET_MEM_CONSTRAINT.
13101         * recog.c (asm_operand_ok, preprocess_constraints,
13102         constrain_operands): Likewise.
13103         * regclass.c (record_reg_classes): Likewise.
13104         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
13105         * reload1.c (maybe_fix_stack_asms): Likewise.
13106         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
13107         * recog.h: Adjust comment.
13108         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
13109         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
13110         * doc/md.texi: Add a note to description of 'm' constraint.
13111         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
13112
13113 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13114
13115         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
13116         that the bitfield is of integral type before testing its precision.
13117
13118 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
13119             Sa Liu  <saliu@de.ibm.com>
13120
13121         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
13122         __modti3, __udivti3, __umodti3 and __udivmodti4.
13123         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
13124         that implement TImode mul and div functions.
13125         * config/spu/multi3.c: New. Implement __multi3.
13126         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
13127         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
13128         functions on SPU.
13129
13130 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
13131
13132         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
13133         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
13134         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
13135         tls_sysv_suffix): New mode and mode attribute iterators.
13136         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
13137         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
13138         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
13139         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
13140         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
13141         iterators.
13142
13143 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
13144
13145         PR tree-optimization/36329
13146         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
13147         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
13148         * cgraphbuild.c (initialize_inline_failed): Use the latter
13149         macro in lieu of the former.
13150         * ipa-inline.c (cgraph_mark_inline): Likewise.
13151         (cgraph_decide_inlining_of_small_function): Likewise.
13152         (cgraph_decide_inlining): Likewise.
13153         (cgraph_decide_inlining_incrementally): Likewise.
13154
13155 2008-05-26  Tristan Gingold  <gingold@adacore.com>
13156             Anatoly Sokolov  <aesok@post.ru>
13157
13158         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
13159         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
13160         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
13161         optimization for 'avr6' architecture.
13162
13163 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
13164
13165         PR target/34932
13166         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
13167
13168 2008-05-26  Richard Guenther  <rguenther@suse.de>
13169
13170         * tree-ssa-sccvn.c (expr_has_constants): Declare.
13171         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
13172
13173 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
13174
13175         PR middle-end/36253
13176         * caller-save.c (insert_restore): Verify alignment of spill space.
13177         (insert_save): Likewise.
13178         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
13179         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
13180         (STACK_SLOT_ALIGNMENT): Likewise.
13181         * function.c (LOCAL_ALIGNMENT): Removed.
13182         (get_stack_local_alignment): New.
13183         (assign_stack_local): Use it.  Set alignment on stack slot.
13184         (assign_stack_temp_for_type): Use get_stack_local_alignment.
13185         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
13186         (STACK_SLOT_ALIGNMENT): New.
13187         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
13188         stack slot in XFmode.
13189
13190         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
13191
13192 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
13193
13194         PR/36321
13195         * config/i386/i386.md (allocate_stack_worker_64): Make sure
13196         argument operand in rax isn't removed.
13197
13198 2008-05-26  Richard Guenther  <rguenther@suse.de>
13199
13200         PR middle-end/36300
13201         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
13202         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
13203
13204 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
13205
13206         PR bootstrap/36331
13207         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
13208
13209 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
13210
13211         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
13212         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
13213
13214 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13215
13216         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
13217         build a trampoline if we don't want one.
13218         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
13219         return zero for nested functions if we don't want a trampoline.
13220
13221 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
13222
13223         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
13224
13225 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
13226
13227         PR fortran/18428
13228         * c.opt: Removed undocumented option '-lang-fortran'.
13229         * c-common.h: Removed global variable 'lang_fortran'.
13230         * c-opts.c (c_common_handle_option): Removed code to handle
13231         option '-lang-fortran'. Updated includes.
13232         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
13233         definition of '__GFORTRAN__'.
13234         (define__GNUC__): Reimplemented to use BASEVER and
13235         cpp_define_formatted.
13236         (builtin_define_with_value_n): Removed.
13237         * c-incpath.h: Renamed to ...
13238         * incpath.h: ... this.
13239         * c-incpath.c: Renamed to ...
13240         * incpath.c: ... this. Updated includes.
13241         * fix-header.c: Updated includes.
13242         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
13243         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
13244         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
13245
13246 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13247
13248         * tree.h: Update the table of flags used on tree nodes.
13249         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
13250         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
13251         (FORCED_LABEL): Add access check.
13252         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
13253         (ASM_INPUT_P): Likewise.
13254         (ASM_VOLATILE_P): Likewise.
13255         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
13256         (OMP_SECTION_LAST): Access private_flag directly.
13257         (OMP_RETURN_NOWAIT): Likewise.
13258         (OMP_PARALLEL_COMBINED): Likewise.
13259         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
13260         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
13261         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
13262         deprecated_flag directly.
13263
13264 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13265
13266         * final.c (frame_pointer_needed): Removed.
13267         * flags.h (frame_pointer_needed): Likewise.
13268
13269         * function.h (rtl_data): Add frame_pointer_needed.
13270         (frame_pointer_needed): New.
13271
13272 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
13273
13274         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
13275
13276 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
13277
13278         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
13279         SRC is a REG.
13280
13281 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
13282
13283         * c-common.c (strip_array_types): Move function to..
13284         * tree.c: ..here.
13285         (get_inner_array_type): Delete.
13286         * c-common.h (strip_array_types): Move declaration to..
13287         * tree.h: ..here.
13288         (get_inner_array_type): Delete.
13289         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
13290         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
13291         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
13292         * config/pa/pa.c (emit_move_sequence): Likewise.
13293
13294 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13295
13296         * config/i386/i386.md (*sse_prologue_save_insn): Set length
13297         attribute to 34.
13298
13299 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
13300
13301         * function.c: Include target hook for nonlocal_goto frame value.
13302
13303 2008-05-24  Richard Guenther  <rguenther@suse.de>
13304
13305         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
13306         variable can be only accessed through a pointer or a union.
13307
13308 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13309
13310         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
13311         * doc/extend.texi: Likewise.
13312
13313 2008-05-23  DJ Delorie  <dj@redhat.com>
13314
13315         * config/m32c/jump.md (untyped_call): Add.
13316
13317         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
13318         for A24 to PSImode.
13319         (m32c_address_cost): Detail costs for indirect offsets.
13320
13321 2008-05-23  Rafael Espíndola  <espindola@google.com>
13322
13323         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
13324         if a node is a SUBREG.
13325         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
13326         is a SUBREG.
13327
13328 2008-05-23  Paul Brook  <paul@codesourcery.com>
13329             Carlos O'Donell  <carlos@codesourcery.com>
13330
13331         * doc/extend.texi: Clarify use of __attribute__((naked)).
13332         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
13333         * target.h (gcc_target): Add allocate_stack_slots_for_args.
13334         * function.c (use_register_for_decl): Use
13335         targetm.calls.allocate_stack_slots_for_args.
13336         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
13337         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
13338         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
13339
13340 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
13341
13342         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
13343
13344 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
13345
13346         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
13347         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
13348         is only rounded once.
13349
13350 2008-05-23  Richard Guenther  <rguenther@suse.de>
13351
13352         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
13353
13354 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
13355             Jakub Jelinek  <jakub@redhat.com>
13356
13357         PR target/36079
13358         * configure.ac: Handle --enable-cld.
13359         * configure: Regenerated.
13360         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
13361         * config/i386/i386.h (struct machine_function): Add needs_cld field.
13362         (ix86_current_function_needs_cld): New define.
13363         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
13364         (cld): New isns pattern.
13365         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
13366         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
13367         * config/i386/i386.opt (mcld): New option.
13368         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
13369         TARGET_CLD and ix86_current_function_needs_cld.
13370         (override_options): Use -mcld by default for 32-bit code if
13371         USE_IX86_CLD.
13372
13373         * doc/install.texi (Options specification): Document --enable-cld.
13374         * doc/invoke.texi (Machine Dependent Options)
13375         [i386 and x86-64 Options]: Add -mcld option.
13376         (Intel 386 and AMD x86-64 Options): Document -mcld option.
13377
13378 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
13379         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
13380         (return_in_memory_64): Likewise.
13381         (return_in_memory_ms_64): Likewise.
13382
13383 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13384
13385         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
13386         * builtins.c (fold_builtin_fpclassify): New.
13387         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
13388         * builtins.def (BUILT_IN_FPCLASSIFY): New.
13389         * c-common.c (handle_type_generic_attribute): Adjust to accept
13390         fixed arguments before an elipsis.
13391         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
13392         * doc/extend.texi: Document __builtin_fpclassify.
13393
13394 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
13395
13396         * omp-low.c (gate_expand_omp_ssa): Remove.
13397         (pass_expand_omp_ssa): Remove.
13398         (gate_expand_omp): Do not check for flag_openmp_ssa.
13399         * common.opt (-fopenmp-ssa): Remove.
13400         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
13401
13402 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
13403
13404         * config/sh/sh.opt (mfixed-range): New option.
13405         * config/sh/sh-protos.h (sh_fix_range): Declare.
13406         * config/sh/sh.c (sh_fix_range): New function.
13407         * config/sh/sh.h (sh_fixed_range_str): Declare.
13408         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
13409         is not empty.
13410         * doc/invoke.texi (SH Options): Document -mfixed-range.
13411
13412 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
13413
13414         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
13415         it before the redeclaration.
13416
13417 2008-05-22  Anatoly Sokolov <aesok@post.ru>
13418
13419         * config/avr/avr.c (get_sequence_length): Add new function.
13420         (expand_prologue, expand_epilogue): Remove duplicate code.
13421
13422 2008-05-22  Rafael Espíndola  <espindola@google.com>
13423
13424         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
13425         sharing.
13426
13427 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13428
13429         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
13430         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
13431
13432         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
13433         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
13434         (vect_update_misalignment_for_peel): Likewise.
13435         (vector_alignment_reachable_p): Likewise.
13436         * tree-vect-transform.c (vectorizable_load): Likewise.
13437         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
13438         (get_vectype_for_scalar_type): Pass mode of scalar_type
13439         to UNITS_PER_SIMD_WORD.
13440
13441         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
13442         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
13443         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
13444         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
13445         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
13446
13447 2008-05-22  Ira Rosen  <irar@il.ibm.com>
13448
13449         PR tree-optimization/36293
13450         * tree-vect-transform.c (vect_transform_strided_load): Don't check
13451         if the first load must be skipped because of a gap.
13452
13453 2008-05-22  Richard Guenther  <rguenther@suse.de>
13454
13455         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
13456         more cases of offset disambiguation that is possible if
13457         strict-aliasing rules apply.
13458         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
13459         for basic offset and type-based disambiguation.
13460
13461 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13462
13463         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
13464         ix86_expand_vector_set on V16QImode for SSE4.1.
13465
13466 2008-05-21  Tom Tromey  <tromey@redhat.com>
13467
13468         * c.opt (Wimport): Mark as undocumented.
13469         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
13470         -Wno-import.
13471         (Warning Options): Likewise.
13472         * doc/cppopts.texi: Don't mention -Wimport.
13473
13474 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
13475
13476         PR tree-optimization/36287
13477         PR tree-optimization/36286
13478         * lambda-code.c (build_access_matrix): Do not use the loop->num
13479         for computing the number of induction variables: use the loop depth
13480         instead.
13481
13482 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
13483
13484         PR/36280
13485         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
13486         option -f(no-)leading-underscore.
13487
13488 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13489
13490         * config/i386/i386.c (ix86_expand_vector_init_general): Use
13491         GET_MODE_NUNITS (mode).
13492
13493 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
13494
13495         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
13496         (-mmulhw): Add 464 to description.
13497         (-mdlmzb): Likewise.
13498         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
13499         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
13500         464fp entries.
13501         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
13502         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
13503         * config/rs6000/rs6000.md: Update comments for 464.
13504
13505 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
13506
13507         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
13508
13509 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13510
13511         * config/i386/sse.md (vec_extractv4sf): Removed.
13512         (vec_extractv2df): Likewise.
13513         (vec_extractv2di): Likewise.
13514         (vec_extractv4si): Likewise.
13515         (vec_extractv8hi): Likewise.
13516         (vec_extractv16qi): Likewise.
13517         (vec_extract<mode>): New.
13518
13519 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13520
13521         * config/i386/sse.md (vec_setv4sf): Removed.
13522         (vec_setv2df): Likewise.
13523         (vec_setv2di): Likewise.
13524         (vec_setv4si): Likewise.
13525         (vec_setv8hi): Likewise.
13526         (vec_setv16qi): Likewise.
13527         (vec_set<mode>): New.
13528
13529 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13530
13531         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
13532         goto for vec_concat and vec_interleave.
13533
13534 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13535
13536         * config/i386/sse.md (vec_initv4sf): Removed.
13537         (vec_initv2df): Likewise.
13538         (vec_initv2di): Likewise.
13539         (vec_initv4si): Likewise.
13540         (vec_initv8hi): Likewise.
13541         (vec_initv16qi): Likewise.
13542         (vec_init<mode>): New.
13543
13544 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
13545
13546         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
13547
13548 2008-05-21  Tom Tromey  <tromey@redhat.com>
13549
13550         * ggc-zone.c (lookup_page_table_if_allocated): New function.
13551         (zone_find_object_offset): Likewise.
13552         (gt_ggc_m_S): Likewise.
13553         (highest_bit): Likewise.
13554         * ggc-page.c (gt_ggc_m_S): New function.
13555         * stringpool.c (string_stack): Remove.
13556         (init_stringpool): Update.
13557         (ggc_alloc_string): Use ggc_alloc.
13558         (maybe_delete_ident): New function.
13559         (ggc_purge_stringpool): Likewise.
13560         (gt_ggc_m_S): Remove.
13561         * ggc-common.c (ggc_protect_identifiers): New global.
13562         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
13563         ggc_protect_identifiers.
13564         * ggc.h (ggc_protect_identifiers): Declare.
13565         (gt_ggc_m_S): Update.
13566         (ggc_purge_stringpool): Declare.
13567         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
13568         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
13569         special case.
13570         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
13571
13572 2008-05-21  David S. Miller  <davem@davemloft.net>
13573
13574         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
13575         tmake_file.
13576
13577 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13578
13579         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
13580         once finished.
13581
13582 2008-05-20  David Daney  <ddaney@avtrex.com>
13583
13584         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
13585         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
13586         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
13587         UNSPEC_UPDATE_GOT_VERSION): Renumber.
13588         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
13589         (atomic_hiqi_op): New define_code_iterator.
13590         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
13591         mips_expand_compare_and_swap_12.
13592         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
13593         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
13594         (sync_<optab><mode>, sync_old_<optab><mode>,
13595         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
13596         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
13597         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
13598         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
13599         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
13600         (test_and_set_12): New insn.
13601         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
13602         sync_new_<optab><mode>, sync_old_nand<mode>,
13603         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
13604         clobber to operand 0 for SI and DI mode insns.
13605         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
13606         mips_gen_fn_4): New typedefs.
13607         (mips_gen_fn_ptrs): Define new union type.
13608         (mips_expand_compare_and_swap_12): Remove declaration.
13609         (mips_expand_atomic_qihi): Declare function.
13610         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
13611         (mips_expand_atomic_qihi): ... this.  Use new generator function
13612         parameter.
13613         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
13614         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
13615         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
13616         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
13617         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
13618         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
13619         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
13620         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
13621         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
13622         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
13623         New macros.
13624
13625 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
13626
13627         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
13628         the missing break.
13629
13630 2008-05-20  Anatoly Sokolov <aesok@post.ru>
13631
13632         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
13633         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
13634         (avr_attribute_table): Add 'OS_main' function attribute.
13635         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
13636         functions with 'OS_main' attribute.
13637
13638 2008-05-20  Richard Guenther  <rguenther@suse.de>
13639
13640         PR tree-optimization/35204
13641         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
13642         helper, split out from ...
13643         (DFS): ... here.  Make the DFS walk non-recursive.
13644
13645 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
13646             Jan Sjodin  <jan.sjodin@amd.com>
13647
13648         PR tree-optimization/36181
13649         * tree-parloops.c (loop_has_vector_phi_nodes): New.
13650         (parallelize_loops): Don't parallelize when the loop has vector
13651         phi nodes.
13652
13653 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
13654             Sebastian Pop  <sebastian.pop@amd.com>
13655
13656         * tree-loop-linear.c (gather_interchange_stats): Look in the access
13657         matrix, and never look at the tree representation of the memory
13658         accesses.
13659         (linear_transform_loops): Computes parameters and access matrices.
13660         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
13661         when fails.
13662         (access_matrix_get_index_for_parameter): New.
13663         * tree-data-ref.h (struct access_matrix): New.
13664         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
13665         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
13666         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
13667         am_vector_index_for_loop): New.
13668         (struct data_reference): Add field access_matrix.
13669         (DR_ACCESS_MATRIX): New.
13670         (compute_data_dependences_for_loop): Update declaration.
13671         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
13672         * lambda.h (lambda_vector_vec_p): Declared.
13673         * lambda-code.c: Depend on pointer-set.h.
13674         (lambda_collect_parameters_from_af, lambda_collect_parameters,
13675         av_for_af_base, av_for_af, build_access_matrix,
13676         lambda_compute_access_matrices): New.
13677         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
13678
13679 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
13680
13681         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
13682         $SOURCEDIR/include.
13683
13684 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
13685             Sebastian Pop  <sebastian.pop@amd.com>
13686
13687         PR tree-optimization/36206
13688         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
13689         FOLD_CONVERSIONS.
13690         (instantiate_scev_1): Rename flags to fold_conversions.
13691         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
13692         outeside instantiation_loop.
13693         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
13694         (evolution_function_is_affine_or_constant_p): Removed.
13695         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
13696         instantiate_scev.
13697         (analyze_siv_subscript): Pass in the loop nest number.
13698         Call evolution_function_is_affine_in_loop instead of
13699         evolution_function_is_affine_p.
13700         (analyze_overlapping_iterations): Pass in the loop nest number.
13701
13702 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
13703             Sebastian Pop  <sebastian.pop@amd.com>
13704
13705         PR tree-optimization/36206
13706         * tree-chrec.h (chrec_fold_op): New.
13707         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
13708         and other trees.
13709
13710 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
13711
13712         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
13713         (DIRS_EQ): New.
13714         (remove_duplicates): Do not set inode on non-inode systems.
13715         Use DIRS_EQ.
13716
13717 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
13718
13719         * config.gcc (tm_file): Update comments about relative pathnames.
13720
13721 2008-05-20  Richard Guenther  <rguenther@suse.de>
13722
13723         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
13724         * tree-ssa-sccvn.c (process_scc): Likewise.
13725         * tree-ssa-sink.c (execute_sink_code): Likewise.
13726         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13727         * tree-vrp.c (process_assert_insertions): Likewise.
13728         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
13729         (perform_tree_ssa_dce): Likewise.
13730         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
13731         (dump_dominator_optimization_stats): Likewise.
13732         * tree-vectorizer.c (vectorize_loops): Likewise.
13733
13734 2008-05-20  Richard Guenther  <rguenther@suse.de>
13735
13736         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
13737
13738 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
13739
13740         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
13741         (ix86_i386elf_return_in_memory): Likewise.
13742         (ix86_i386interix_return_in_memory): Likewise.
13743         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
13744         (SUBTARGET_RETURN_IN_MEMORY): New.
13745         * config/i386/i386elf.h: Likewise.
13746         * config/i386/ptx4-i.h: Likewise.
13747         * config/i386/sol2-10.h: Likewise.
13748         * config/i386/sysv4.h: Likewise.
13749         * config/i386/vx-common.h: Likewise.
13750         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
13751         * config/i386/i386.c (ix86_return_in_memory): Made static and
13752         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
13753         (ix86_i386elf_return_in_memory): Removed.
13754         (ix86_i386interix_return_in_memory): Removed.
13755         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
13756         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
13757
13758 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
13759
13760         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
13761
13762 2008-05-19  Xinliang David Li  <davidxl@google.com>
13763
13764         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
13765         * opts.c: Ditto.
13766         * common.opt: Ditto.
13767         * doc/invoke.texi: Ditto.
13768
13769 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
13770
13771         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
13772         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
13773
13774 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13775
13776         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
13777         sizes of operand array from 8/4 to 4/2.
13778         (ix86_expand_vector_init_general): Change size of operand array
13779         from 32 to 16.  Remove op0, op1 and half_mode.
13780
13781 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13782
13783         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
13784         (ix86_expand_vector_init_interleave): Likewise.
13785         (ix86_expand_vector_init_general): Use them.  Assert
13786         word_mode == SImode when n_words == 4.
13787
13788 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
13789
13790         * config/i386/i386.c (ix86_secondary_reload): New static function.
13791         (TARGET_SECONDARY_RELOAD): New define.
13792         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
13793         * config/i386/i386.md (reload_outqi): Remove.
13794
13795 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13796
13797         PR middle-end/35509
13798         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
13799         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
13800         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
13801         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
13802         (fold_builtin_1): Likewise.
13803         * builtins.def (BUILT_IN_ISINF_SIGN): New.
13804         c-common.c (check_builtin_function_arguments): Handle
13805         BUILT_IN_ISINF_SIGN.
13806         * doc/extend.texi: Document __builtin_isinf_sign.
13807         * fold-const.c (operand_equal_p): Handle COND_EXPR.
13808
13809 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
13810
13811         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
13812         EH cleanup at the end of the pass, search for those that have been
13813         turned into forwarder blocks and do the cleanup on their successor.
13814
13815 2008-05-18  Richard Guenther  <rguenther@suse.de>
13816
13817         * tree-cfg.c (verify_gimple_expr): Allow conversions from
13818         pointers to sizetype and vice versa.
13819
13820 2008-05-18 Xinliang David Li   <davidxl@google.com>
13821
13822         * gcc/tree-ssa-dce.c: Coding style fix.
13823         (check_pow): Documentation comment.
13824         (check_log): Documenation comment. Coding style fix.
13825         (is_unnecessary_except_errno_call): Ditto.
13826         (gen_conditions_for_pow): Ditto.
13827         (gen_conditions_for_log): Ditto.
13828         (gen_shrink_wrap_conditions): Ditto.
13829         (shrink_wrap_one_built_in_calls): Ditto.
13830         * gcc/doc/invoke.texi: Better documentation string.
13831         * ChangeLog: Fix wrong change log entries from
13832         May 17 checkin on function call DCE.
13833
13834 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
13835
13836         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
13837
13838 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
13839
13840         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
13841         * df-problems.c (simulation routines): Fixed block comment to
13842         properly say how to add forwards scanning functions.
13843
13844 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
13845
13846         * tree-inline.c (setup_one_parameter): Remove dead code.
13847
13848 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
13849
13850         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
13851         a BIT_AND_EXPR only for an INTEGER_TYPE.
13852
13853 2008-05-17 Xinliang David Li   <davidxl@google.com>
13854
13855         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
13856         (check_pow, check_log, is_unnecessary_except_errno_call): New
13857         functions to check for eliminating math functions that are pure
13858         except for setting errno.
13859         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
13860         general condition expressions for shrink-wrapping pow/log calls.
13861         (gen_shrink_wrap_conditions): Ditto.
13862         (shrink_wrap_one_built_in_call): Ditto.
13863         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
13864         (mark_operand_necessary): If debugging, output if OP is necessary.
13865         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
13866         unnecessary.
13867         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
13868         opt level >= 2.
13869         * gcc/common.opt: New user flag -ftree-builtin-dce.
13870         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
13871
13872 2008-05-16  David S. Miller  <davem@davemloft.net>
13873
13874         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
13875         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13876
13877 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
13878
13879         PR target/36246
13880         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
13881
13882 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13883
13884         * ifcvt.c (dead_or_predicable): Rename
13885         df_simulate_one_insn_backwards to df_simulate_one_insn.
13886         * recog.c (peephole2_optimize): Ditto.
13887         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
13888         Ditto.
13889         * df.h: Rename df_simulate_one_insn_backwards to
13890         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
13891         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
13892         scanning of defs and uses.
13893         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
13894         (df_simulate_one_insn_forwards): Removed.
13895
13896 2008-05-16  Doug Kwan  <dougkwan@google.com>
13897
13898         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
13899         QNaN & SNaN.
13900         (real_from_string): Handle NaNs and Inf as approriate.
13901
13902 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
13903
13904         * doc/gty.texi (Source Files Containing Type Information): Note
13905         that headers should appear first in the gtfiles list.
13906
13907 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13908
13909         * tree.def (COND_EXEC): Properly documented this code.
13910
13911 2008-05-16  Diego Novillo  <dnovillo@google.com>
13912
13913         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
13914         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
13915         the new field.
13916
13917 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13918
13919         * tree-ssa-dse (max_stmt_uid): Removed.
13920         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
13921         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
13922         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
13923         * function.h (cfun.last_stmt_uid): New field.
13924         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
13925         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
13926         New functions.
13927         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
13928         (create_stmt_ann): Initialize the ann->uid field.
13929         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
13930         with new calls.
13931         * tree-flow.h (renumber_gimple_stmt_uids): New function.
13932
13933 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
13934
13935         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
13936         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
13937         (init_empty_tree_cfg): Call it.
13938
13939 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13940
13941         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
13942         Update all users.
13943
13944 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13945
13946         * doc/invoke.text (-fdump-tree-*-verbose): New option.
13947         * tree-dump.c (dump_options): New verbose option.
13948         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
13949         Add verbose dump.
13950         * tree-pass.h (TDF_VERBOSE): New dump flag.
13951         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
13952         (tree-flow.h): Added include.
13953         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
13954
13955 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
13956
13957         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
13958
13959         From Jie Zhang  <jie.zhang@analog.com>
13960         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13961         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
13962         mcpu=bf561-none and mcpu=bf561-0.2.
13963         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13964         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13965         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13966         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13967         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
13968         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
13969         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
13970         option.
13971         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
13972         (cputype_selected): Remove.
13973         (bfin_handle_option): Don't use cputype_selected.
13974         (override_options): When no mcpu option, enable all workarounds.
13975         Don't use bfin_workarounds.
13976         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
13977         processor type.
13978         (DEFAULT_CPU_TYPE): Don't define.
13979
13980 2008-05-16  Richard Guenther  <rguenther@suse.de>
13981
13982         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
13983         on deletion of the last stmt.
13984
13985 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13986
13987         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
13988         V8HImode for SSE2 and V16QImode for SSE4.1.
13989
13990 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
13991
13992         * cgraph.h (compute_inline_parameters): Made public.
13993         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
13994         variable_generate_summary, function_write_summary,
13995         variable_write_summary, variable_read_summary.  Added generate_summary,
13996         write_summary, read_summary.
13997         * cgraphunit.c (cgraph_process_new_functions): Changed call from
13998         pass_ipa_inline.function_generate_summary, to
13999         compute_inline_parameters.
14000         * ipa-inline.c (compute_inline_parameters): Made public and added
14001         node parameter.
14002         (compute_inline_parameters_for_current): New function.
14003         (pass_inline_param): Now calls compute_inline_parameters_for_current.
14004         (inline_generate_summary): Removed parameter and made to loop over
14005         all cgraph nodes.
14006         (pass_ipa_inline): Updated for new IPA_PASS structure.
14007         * passes.c (execute_ipa_summary_passes): Now is called once per
14008         pass rather than once per node*pass.
14009
14010 2008-05-15  Anatoly Sokolov <aesok@post.ru>
14011
14012         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
14013         avr_have_mul_p, avr_asm_only_p): Remove variables.
14014         (avr_override_options): Remove initialization of removed variables.
14015         (avr_file_start):  Convert removed variables to fields of
14016         'struct base_arch_s *avr_current_arch'.
14017         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
14018         (AVR_HAVE_MUL): (Ditto.).
14019         (AVR_HAVE_MOVW): (Ditto.).
14020         (AVR_HAVE_LPMX): (Ditto.).
14021         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
14022         avr_asm_only_p): Remove declaration.
14023
14024 2008-05-15  Diego Novillo  <dnovillo@google.com>
14025
14026         * config/arm/arm.c (arm_return_in_memory): Fix return type.
14027         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
14028
14029 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
14030
14031         PR middle-end/36194
14032         * combine.c (check_conversion): Rename back to check_promoted_subreg.
14033         Don't call record_truncated_value from here.
14034         (record_truncated_value): Turn it into a for_each_rtx callback.
14035         (record_truncated_values): New function.
14036         (combine_instructions): Call note_uses with record_truncated_values.
14037         Change name of check_conversion to check_promoted_subreg.
14038
14039 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
14040
14041         * doc/sourcebuild.texi: Document support for torture tests.
14042
14043 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
14044
14045         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
14046         to alternative 4 of operand 2.
14047
14048 2008-05-15  Richard Guenther  <rguenther@suse.de>
14049
14050         * tree-pass.h (current_pass): Declare.
14051         (get_pass_for_id): Likewise.
14052         * passes.c (passes_by_id, passes_by_id_size): New globals.
14053         (set_pass_for_id): New function.
14054         (get_pass_for_id): Likewise.
14055         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
14056         (execute_function_todo): Flush per function statistics.
14057         * toplev.c (compile_file): Init statistics.
14058         (general_init): Do early statistics initialization.
14059         (finalize): Finish statistics.
14060         * statistics.h (statistics_early_init): Declare.
14061         (statistics_init): Likewise.
14062         (statistics_fini): Likewise.
14063         (statistics_fini_pass): Likewise.
14064         (statistics_counter_event): Likewise.
14065         (statistics_histogram_event): Likewise.
14066         * statistics.c: New file.
14067         * Makefile.in (OBJS-common): Add statistics.o.
14068         (statistics.o): Add dependencies.
14069         * doc/invoke.texi (-fdump-statistics): Document.
14070
14071         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
14072         (insert): Likewise.
14073         (execute_pre): Use statistics_counter_event.
14074         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
14075         (substitute_and_fold): Increment it.  Use statistics_counter_event.
14076
14077 2008-05-15  Diego Novillo  <dnovillo@google.com>
14078
14079         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
14080
14081         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
14082         * tree-ssa-alias.c (new_type_alias): Remove references to
14083         sub-variables from comment.
14084         * tree-ssa-operands.c (swap_tree_operands): Likewise.
14085
14086 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
14087
14088         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
14089         attribute to 1 only for insertps alternative.
14090
14091 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
14092
14093         * config/bfin/bfin.md (loadbytes): New pattern.
14094         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
14095         (bfin_init_builtins): Initialize it.
14096         (bdesc_1arg): Add it.
14097
14098 2008-05-15  Sa Liu  <saliu@de.ibm.com>
14099
14100         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
14101         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
14102         * testsuite/lib/target-supports.exp: Add
14103         check_effective_target_fortran_integer_16.
14104
14105 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
14106
14107         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
14108         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
14109         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
14110         (TARGET_RETURN_IN_MEMORY): Define.
14111
14112 2008-05-15  Richard Guenther  <rguenther@suse.de>
14113
14114         PR middle-end/36244
14115         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
14116         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
14117         represent unmodifiable vars.
14118
14119 2008-05-15  Richard Guenther  <rguenther@suse.de>
14120
14121         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
14122         INDIRECT_REF and TARGET_MEM_REF.
14123         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
14124         TARGET_MEM_REF.
14125
14126 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
14127             H.J. Lu  <hongjiu.lu@intel.com>
14128
14129         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
14130         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
14131         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
14132         insn alternatives.  Add missing alternatives.
14133         (*vec_concatv2di_rex64_sse4_1): Likewise.
14134         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
14135         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
14136         Require TARGET_SSE.
14137
14138 2008-05-15  Richard Guenther  <rguenther@suse.de>
14139
14140         PR tree-optimization/36009
14141         PR tree-optimization/36204
14142         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
14143         (determine_invariantness_stmt): Record the loop a store is
14144         always executed in.
14145         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
14146         dependency.
14147
14148 2008-05-15  Richard Guenther  <rguenther@suse.de>
14149
14150         PR tree-optimization/34330
14151         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
14152         through the pointer will alias the SMT.
14153
14154 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
14155
14156         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
14157
14158 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14159
14160         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
14161
14162 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
14163             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
14164
14165         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
14166         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
14167         (vashl_optab): New optab for vector/vector shifts.
14168         (vashr_optab): Ditto.
14169         (vlshr_optab): Ditto.
14170         (vrotl_optab): Ditto.
14171         (vrotr_optab): Ditto.
14172         (optab_subtype): New enum for optab_for_tree_code call.
14173         (optab_for_tree_code): Add enum optab_subtype argument.
14174
14175         * optabs.c (optab_for_tree_code): Take an additional argument to
14176         distinguish between a vector shift by a scalar and vector shift by
14177         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
14178         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
14179         vector shift by a vector.
14180         (expand_widen_pattern_expr): Pass additional argument to
14181         optab_for_tree_code.
14182
14183         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
14184         vrotl_optab, vrotr_optab.
14185
14186         * expr.c (expand_expr_real_1): Update calls to
14187         optab_for_tree_code to distinguish between vector shifted by a
14188         scalar and vector shifted by a vector.
14189         * tree-vectorizer.c (supportable_widening_operation): Ditto.
14190         (supportable_narrowing_operation): Ditto.
14191         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
14192         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
14193         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
14194         (vect_create_epilog_for_reduction): Ditto.
14195         (vectorizable_reduction): Ditto.
14196         (vectorizable_operation): Ditto.
14197         (vect_strided_store_supported): Ditto.
14198         (vect_strided_load_supported): Ditto.
14199         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
14200         * expmed.c (expand_shift): Ditto.
14201
14202         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
14203         scalar type.
14204         (ashr@var{m}3): Ditto.
14205         (vashl@var{m}3): Document new vector/vector shift standard name.
14206         (vashr@var{m}3): Ditto.
14207         (vlshr@var{m}3): Ditto.
14208         (vrotl@var{m}3): Ditto.
14209         (vrotr@var{m}3): Ditto.
14210
14211         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
14212         (PPERM_INVERT): Ditto.
14213         (PPERM_REVERSE): Ditto.
14214         (PPERM_REV_INV): Ditto.
14215         (PPERM_ZERO): Ditto.
14216         (PPERM_ONES): Ditto.
14217         (PPERM_SIGN): Ditto.
14218         (PPERM_INV_SIGN): Ditto.
14219         (PPERM_SRC1): Ditto.
14220         (PPERM_SRC2): Ditto.
14221
14222         * config/i386/sse.md (mulv2di3): Add SSE5 support.
14223         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
14224         allows a memory operand to be the value being added, and split it
14225         to improve vectorization.
14226         (sse5_pmacsdqh_mem): Ditto.
14227         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
14228         (sse5_mulv2div2di3_high): Ditto.
14229         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
14230         (vec_pack_trunc_v4si): Ditto.
14231         (vec_pack_trunc_v2di): Ditto.
14232         (sse5_pcmov_<mode>): Remove code that tried to use use
14233         andps/andnps instead of pcmov.
14234         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
14235         pmacsdqh instructions.
14236         (vec_widen_smult_lo_v4si): Ditto.
14237
14238         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
14239         (PPERM_INVERT): Ditto.
14240         (PPERM_REVERSE): Ditto.
14241         (PPERM_REV_INV): Ditto.
14242         (PPERM_ZERO): Ditto.
14243         (PPERM_ONES): Ditto.
14244         (PPERM_SIGN): Ditto.
14245         (PPERM_INV_SIGN): Ditto.
14246         (PPERM_SRC1): Ditto.
14247         (PPERM_SRC2): Ditto.
14248         (ix86_expand_sse_movcc): Move the SSE5 test after the if
14249         true/false tests.
14250         (ix86_expand_int_vcond): If SSE5 generate all possible integer
14251         comparisons.
14252         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
14253         says ignore whether the last reference is a memory operand.
14254
14255 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
14256             Paolo Bonzini <bonzini at gnu dot org>
14257
14258         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
14259         shift patterns.
14260
14261         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
14262         (vlshr<mode>3): Rename from vlshr<mode>3.
14263         (vashr<mode>3): Rename from vashr<mode>3.
14264         (mulv4sf3): Change the names of vector shift patterns.
14265         (mulv4si3): Ditto.
14266         (negv4sf2): Ditt.
14267
14268         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
14269         shift insns.
14270
14271         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
14272         (SI_SHLHI): Ditto.
14273         (SI_SHL): Ditto.
14274         (SI_SHLI): Ditto.
14275         (SI_ROTH): Ditto.
14276         (SI_ROTHI): Ditto.
14277         (SI_ROT): Ditto.
14278         (SI_ROTI): Ditto.
14279         (SPU_RL_0): Ditto.
14280         (SPU_RL_1): Ditto.
14281         (SPU_RL_2): Ditto.
14282         (SPU_RL_3): Ditto.
14283         (SPU_RL_4): Ditto.
14284         (SPU_RL_5): Ditto.
14285         (SPU_RL_6): Ditto.
14286         (SPU_RL_7): Ditto.
14287         (SPU_SL_0): Ditto.
14288         (SPU_SL_1): Ditto.
14289         (SPU_SL_2): Ditto.
14290         (SPU_SL_3): Ditto.
14291         (SPU_SL_4): Ditto.
14292         (SPU_SL_5): Ditto.
14293         (SPU_SL_6): Ditto.
14294         (SPU_SL_7): Ditto.
14295
14296         * config/spu/spu.md (v): New iterator macro to add v for vector types.
14297         (floatunssidf2_internal): Change vector/vector shift names.
14298         (floatunsdidf2_internal): Ditto.
14299         (mulv8hi3): Ditto.
14300         (ashrdi3): Ditto.
14301         (ashrti3): Ditto.
14302         (cgt_df): Ditto.
14303         (cgt_v2df): Ditto.
14304         (dftsv): Ditto.
14305         (vashl<mode>3): Rename from ashl<mode>3.
14306         (vashr<mode>3): Rename from ashr<mode>3.
14307         (vlshr<mode>3): Rename from lshr<mode>3.
14308         (vrotl<mode>3): Rename from rotl<mode>3.
14309
14310 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
14311
14312         PR target/36224
14313         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
14314         multiply gives the wrong value when doing widening multiplies.
14315         (vec_widen_smult_lo_v4si): Ditto.
14316
14317 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
14318
14319         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
14320         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
14321         emit_library_call_value.
14322         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
14323         * tree.h (ECF_LIBCALL_BLOCK): Removed.
14324         * calls.c (initialize_argument_information, precompute_arguments,
14325         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
14326         (precompute_arguments): Removed flags parameter.
14327         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
14328
14329 2008-05-14  Richard Guenther  <rguenther@suse.de>
14330
14331         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
14332         Make sure to register the store if the use is a PHI_NODE.
14333
14334 2008-05-14  Olivier Hainque  <hainque@adacore.com>
14335
14336         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
14337         memory if the component is to be referenced in BLKmode according
14338         to get_inner_reference.
14339
14340 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
14341
14342         * calls.c (emit_library_call_value_1): Restore code clearing
14343         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
14344
14345 2008-05-14  Olivier Hainque  <hainque@adacore.com>
14346             Nicolas Roche  <roche@adacore.com>
14347
14348         * configure.ac: Add support for a "gcc_subdir" variable in
14349         config-lang.in, to denote a subdirectory where the language/GCC
14350         integration files are to be found.
14351         * configure: Regenerate.
14352
14353 2008-05-14  Ira Rosen  <irar@il.ibm.com>
14354
14355         PR tree-optimization/36098
14356         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
14357         value for the first load in the group in case of a gap.
14358         (vect_build_slp_tree): Check that there are no gaps in loads.
14359
14360 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
14361
14362         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
14363         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
14364         expand_copysign_bit, ): Change call to emit_no_conflict_block to
14365         emit_insn and remove unneeded code to construct extra args.
14366         (emit_no_conflict_block): Removed.
14367         * optabls.h: (emit_no_conflict_block): Removed.
14368         * cse.c (cse_extended_basic_block): Remove search for
14369         REG_NO_CONFLICT note.
14370         * global.c: Removed incorrect comment added in revision 117.
14371         * expr.c (convert_move): Change call to emit_no_conflict_block to
14372         emit_insn.
14373         * recog.c: Change comments so that they do not mention
14374         REG_NO_CONFLICT.
14375         * local_alloc.c (combine_regs): Removed last parameter.
14376         (no_conflict_p): Removed.
14377         (block_alloc): Removed note, no_conflict_combined_regno and set
14378         local vars. Removed all code to process REG_NO_CONFLICT blocks.
14379         (combine_regs): Removed already_dead and code to look for
14380         REG_NO_CONFLICT notes.
14381         * lower_subreg (remove_retval_note): Removed code to look for
14382         REG_NO_CONFLICT block.
14383         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
14384         (resolve_clobber): Remove code to process libcalls that have
14385         REG_NO_CONFLICT notes.
14386         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
14387         case.
14388         * combine.c (can_combine_p, distribute_notes):  Removed
14389         REG_NO_CONFLICT case.
14390         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
14391         to emit_insns.
14392         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
14393         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
14394         Ditto.
14395         * reg-notes.def (NO_CONFLICT): Removed.
14396
14397 2008-05-14  David S. Miller  <davem@davemloft.net>
14398
14399         * config/sparc/sparc.c (sparc_profile_hook): If
14400         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
14401         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
14402         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
14403
14404 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
14405
14406         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
14407
14408 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
14409
14410         PR target/36222
14411         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
14412         and op1 expansion before vector concat to have less live pseudos.
14413
14414 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14415
14416         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
14417         ix86_expand_vector_set if supported.
14418
14419 2008-05-13  Diego Novillo  <dnovillo@google.com>
14420             Kenneth Zadeck  <zadeck@naturalbridge.com>
14421
14422         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
14423
14424         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
14425         phinodes_print_statistics, init_ssanames, fini_ssanames,
14426         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
14427         release_ssa_name, release_defs, replace_ssa_name_symbol,
14428         ssanames_print_statistics): Move ...
14429         * tree-flow.h: ... here.
14430         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
14431         Use FN instead of cfun.
14432         (make_ssa_name_fn): Rename from make_ssa_name.
14433         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
14434         * tree-flow-inline.h (make_ssa_name): Move from
14435         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
14436         * omp-low.c (expand_omp_parallel):
14437         * tree-flow-inline.h (redirect_edge_var_map_result):
14438         * tree-ssa.c (init_tree_ssa): Add argument FN.
14439         Use it instead of cfun.  Update all users.
14440
14441 2008-05-13  Tom Tromey  <tromey@redhat.com>
14442
14443         PR preprocessor/22168:
14444         * doc/cpp.texi (Top): Update menu.
14445         (Alternatives to Wrapper #ifndef): New node.
14446         (Other Directives): Document deprecation.
14447         (Obsolete Features): Remove menu.
14448         (Assertions): Merge node into Obsolete Features.
14449         (Obsolete once-only headers): Move earlier; rename to Alternatives
14450         to Wrapper #ifndef.
14451         * doc/cppopts.texi: Update.
14452         * c.opt (Wdeprecated): Enable for C and ObjC.
14453         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
14454         (C++ Dialect Options): Move -Wno-deprecated from here to...
14455         (Warning Options): ... here.
14456
14457 2008-05-13  Richard Guenther  <rguenther@suse.de>
14458
14459         PR middle-end/36227
14460         * fold-const.c (fold_sign_changed_comparison): Do not allow
14461         changes in pointer-ness.
14462
14463 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
14464
14465         PR target/24713
14466         * config/sh/sh.c (sh_expand_prologue): Don't clear
14467         RTX_FRAME_RELATED_P for push insns.
14468
14469 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
14470
14471         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
14472
14473 2008-05-12  Anatoly Sokolov <aesok@post.ru>
14474
14475         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
14476         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
14477         Use 'machine->is_leaf' instead of 'leaf_func_p'.
14478
14479 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14480
14481         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
14482         (*vec_concatv4sf_sse): This.
14483         (*sse2_concatv2si): Renamed to ...
14484         (*vec_concatv2si_sse2): This.
14485         (*sse1_concatv2si): Renamed to ...
14486         (*vec_concatv2si_sse): This.
14487         (*vec_concatv2di_rex): Renamed to ...
14488         (*vec_concatv2di_rex64): This.
14489         (*vec_concatv2si_sse4_1): New.
14490         (*vec_concatv2di_rex64_sse4_1): Likewise.
14491
14492 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
14493
14494         PR rtl-optimization/36111
14495         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
14496         that was created for swappable operands.
14497
14498 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
14499
14500         PR ada/36001
14501         * Makefile.in: Substitute GNATMAKE and GNATBIND.
14502         * configure.ac: Add call to ACX_PROG_GNAT.
14503
14504 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
14505
14506         * optc-gen.awk: Fix comment typo.
14507
14508 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
14509
14510         * pretty-print.c (pp_integer_with_precision): Use
14511         HOST_LONG_LONG_FORMAT.
14512
14513 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
14514
14515         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
14516
14517 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14518
14519         * config/i386/i386.c (bdesc_ptest): Removed.
14520         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
14521         (bdesc_args): Add __builtin_ia32_ptestz128,
14522         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
14523         (ix86_init_mmx_sse_builtins): Updated.
14524         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
14525         (ix86_expand_builtin): Updated.
14526
14527 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
14528
14529         * tree-cfg.c (valid_fixed_convert_types_p): New function.
14530         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
14531
14532 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
14533
14534         * value-prof.c (interesting_stringop_to_profile): Do not
14535         return early for BUILT_IN_MEMPCPY.
14536
14537 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14538
14539         * calls.c (expand_call): Don't use callgraph to increase
14540         preferred_stack_boundary.
14541
14542         * cgraph.h (cgraph_rtl_info): Use unsigned on
14543         preferred_incoming_stack_boundary.
14544
14545         * final.c (rest_of_clean_state): Use unsigned on
14546         preferred_stack_boundary.
14547
14548 2008-05-09  Tom Tromey  <tromey@redhat.com>
14549
14550         PR preprocessor/22231:
14551         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
14552         proceeding.
14553
14554 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
14555
14556         PR tree-optimization/36129
14557         * tree-ssa-ccp.c: Include value-prof.h.
14558         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
14559         built-in function was folded to a constant.
14560         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
14561
14562 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
14563             Sebastian Pop  <sebastian.pop@amd.com>
14564
14565         * tree-scalar-evolution.c: Document instantiate_scev.
14566         (instantiate_parameters_1): Renamed instantiate_scev_1.
14567         Don't use the same loop for instantiation_loop and evolution_loop.
14568         (instantiate_scev): New.
14569         (instantiate_parameters): Moved...
14570         (resolve_mixers): Update call to instantiate_scev_1 to pass the
14571         same loop twice.  Maintains the semantics for this function.
14572         * tree-scalar-evolution.h (instantiate_scev): Declare.
14573         (instantiate_parameters): ...here.  Now static inline.
14574         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
14575         instead of resolve_mixers.
14576
14577 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
14578
14579         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
14580
14581 2008-05-09  Tomas Bily  <tbily@suse.cz>
14582
14583         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
14584         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
14585         * tree-ssa-structalias.c (get_constraint_for): Likewise.
14586         * c-common.c (c_common_truthvalue_conversion): Likewise.
14587         * tree-object-size.c (compute_object_offset): Likewise.
14588         * tree-inline.c (estimate_num_insns_1): Likewise.
14589         * varasm.c (const_hash_1, compare_constant, copy_constant)
14590         (compute_reloc_for_constant, output_addressed_constants)
14591         (initializer_constant_valid_p): Likewise.
14592         * c-omp.c (check_omp_for_incr_expr): Likewise.
14593         * gimplify.c (gimplify_expr): Likewise.
14594         * c-typeck.c (c_finish_return): Likewise.
14595         * tree-vectorizer.c (supportable_widening_operation)
14596         (supportable_narrowing_operation): Likewise.
14597         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
14598         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
14599         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
14600         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
14601         (descr_info_loc): Likewise.
14602         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
14603         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
14604         (fold_unary): Likewise.
14605         * builtins.c (get_pointer_alignment): Likewise.
14606         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
14607         (instantiate_parameters_1): Likewise.
14608         * tree.c (expr_align, stabilize_reference): Likewise.
14609         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
14610         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
14611         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
14612         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
14613         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
14614         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
14615         Likewise.
14616         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
14617         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
14618         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
14619         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
14620         (forward_propagate_comparison)
14621         (tree_ssa_forward_propagate_single_use_vars): Likewise.
14622         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
14623         * emit-rtl.c (component_ref_for_mem_expr)
14624         (set_mem_attributes_minus_bitpos): Likewise.
14625         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
14626         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
14627         Likewise.
14628         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
14629         (build_function_call, pointer_diff, build_compound_expr)
14630         (c_finish_return): Likewise.
14631         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
14632         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
14633         Likewise.
14634         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
14635         * expr.c (is_aligning_offset): Likewise.
14636         * tree-ssa-alias.c (is_escape_site): Likewise.
14637         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
14638         (check_all_va_list_escapes): Likewise.
14639         * tree-ssa-loop-ivopts.c (determine_base_object)
14640         (determine_common_wider_type): Likewise.
14641         * dojump.c (do_jump): Likewise.
14642         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
14643         * tree-gimple.c (is_gimple_cast): Likewise.
14644         * fold-const.c (decode_field_reference, )
14645         (fold_sign_changed_comparison, fold_unary, fold_comparison)
14646         (fold_binary): Likewise.
14647         * tree-ssa-alias-warnings.c (find_alias_site_helper)
14648         (already_warned_in_frontend_p): Likewise.
14649         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
14650         * tree.c (really_constant_p, get_unwidened): Likewise.
14651         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
14652         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
14653         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
14654         Likewise.
14655         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
14656         CONVERT_EXPR_P.
14657         (CONVERT_EXPR_P): Define.
14658         (CASE_CONVERT): Define.
14659
14660 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
14661
14662         PR middle-end/36117
14663         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
14664         (delete_unmarked_insns): When deleting a call, call
14665         delete_unreachable_blocks.
14666         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
14667         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
14668
14669 2008-05-08  Richard Guenther  <rguenther@suse.de>
14670
14671         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
14672         (-ftree-salias): Likewise.
14673         (salias-max-implicit-fields): Remove param documentation.
14674         (salias-max-array-elements): Likewise.
14675         * tree-pass.h (pass_create_structure_vars): Remove.
14676         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
14677         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
14678         * tree-ssa-alias.c (create_structure_vars): Remove.
14679         (gate_structure_vars): Likewise.
14680         (pass_create_structure_vars): Likewise.
14681         (gate_build_alias): Likewise.
14682         (pass_build_alias): Adjust to run always and dump the function.
14683         * common.opt (ftree-salias): Hide.
14684         * passes.c (init_optimization_passes): Remove
14685         pass_create_structure_vars, adjust comment.
14686         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
14687         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
14688         * opts.c (decode_options): Do not set flag_tree_salias.
14689         (common_handle_option): Add OPT_ftree_salias to the backward
14690         compatibility section.
14691
14692 2008-05-08  Richard Guenther  <rguenther@suse.de>
14693
14694         * tree-flow-inline.h (var_can_have_subvars): Move ...
14695         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
14696         * tree-flow.h (var_can_have_subvars): Remove.
14697         (push_fields_onto_fieldstack): Remove.
14698         (sort_fieldstack): Likewise.
14699         (struct fieldoff): Move ...
14700         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
14701         alias_set and base_for_components fields.
14702         (sort_fieldstack): Make static.
14703         (push_fields_onto_fieldstack): Likewise.  Remove code that
14704         handles anything but RECORD_TYPEs.  Remove alias_set and
14705         base_for_components handling.
14706         (create_variable_info_for): Adjust.
14707
14708 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
14709
14710         * common.opt (Wframe-larger-than=): Shorten the help message
14711         to one line.
14712         * doc/invoke.texi (Wframe-larger-than=): Add more description.
14713
14714 2008-05-08  Rafael Espíndola  <espindola@google.com>
14715
14716         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
14717         trap.
14718         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
14719         trap and that both operands are gimple values.
14720         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
14721         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
14722         is a fp operation.
14723
14724 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
14725
14726         * read-rtl.c (join_c_conditions): Return the first string if the
14727         two strings are equal.
14728
14729 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
14730
14731         * gensupport.h (pred_data): Add a "num_codes" field.
14732         (add_predicate_code): Declare.
14733         * gensupport.c (add_predicate_code): New function.
14734         (std_pred_table): Add an "allows_const_p" field.
14735         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
14736         Remove the (incomplete) list of such codes from the codes field.
14737         (init_predicate_table): Use add_predicate_code.  Add all
14738         RTX_CONST_OBJs if allows_const_p is true.
14739         * genrecog.c (process_define_predicate): Use add_predicate_code.
14740
14741 2008-05-08  David Daney  <ddaney@avtrex.com>
14742             Richard Sandiford  <rsandifo@nildram.co.uk>
14743
14744         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
14745         special case of constant zero operands.
14746         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
14747         old and new values.  Special case constant zero values.
14748         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
14749         fails.
14750         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
14751         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
14752
14753 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
14754
14755         PR target/36090
14756         * simplify-rtx.c (simplify_plus_minus): Create CONST of
14757         similar RTX_CONST_OBJ before CONST_INT.
14758
14759 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
14760
14761         * stmt.c (expand_stack_restore): Change sa mode if needed.
14762
14763 2008-05-08  Richard Guenther  <rguenther@suse.de>
14764
14765         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
14766         return type to bool.
14767         (ix86_sol10_return_in_memory): Likewise.
14768         (ix86_i386elf_return_in_memory): Likewise.
14769         (ix86_i386interix_return_in_memory): Likewise.
14770         * config/i386/i386.c (ix86_return_in_memory): Likewise.
14771         (ix86_sol10_return_in_memory): Likewise.
14772         (ix86_i386elf_return_in_memory): Likewise.
14773         (ix86_i386interix_return_in_memory): Likewise.
14774
14775 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
14776
14777         PR bootstrap/36180
14778         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
14779         fndecl argument.
14780         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
14781         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
14782         declared in front.
14783
14784 2008-05-08  Richard Guenther  <rguenther@suse.de>
14785
14786         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
14787         * tree-data-ref.h (struct dr_alias): Remove subvars field.
14788         (DR_SUBVARS): Remove.
14789         * tree-dfa.c (dump_subvars_for): Remove.
14790         (debug_subvars_for): Likewise.
14791         (dump_variable): Do not dump subvars.
14792         (remove_referenced_var): Do not remove subvars.
14793         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
14794         (lookup_subvars_for_var): Remove.
14795         (get_subvars_for_var): Likewise.
14796         (get_subvars_at): Likewise.
14797         (get_first_overlapping_subvar): Likewise.
14798         (overlap_subvar): Likewise.
14799         * tree-flow.h (subvar_t): Remove.
14800         (struct var_ann_d): Remove subvars field.
14801         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
14802         argument.  Remove special handling of SFTs.
14803         (compute_tag_properties): Likewise.
14804         (set_initial_properties): Likewise.
14805         (compute_call_clobbered): Likewise.
14806         (count_mem_refs): Likewise.
14807         (compute_memory_partitions): Likewise.
14808         (compute_flow_insensitive_aliasing): Likewise.
14809         (setup_pointers_and_addressables): Likewise.
14810         (new_type_alias): Likewise.
14811         (struct used_part): Remove.
14812         (used_portions): Likewise.
14813         (struct used_part_map): Likewise.
14814         (used_part_map_eq): Likewise.
14815         (used_part_map_hash): Likewise.
14816         (free_used_part_map): Likewise.
14817         (up_lookup): Likewise.
14818         (up_insert): Likewise.
14819         (get_or_create_used_part_for): Likewise.
14820         (create_sft): Likewise.
14821         (create_overlap_variables_for): Likewise.
14822         (find_used_portions): Likewise.
14823         (create_structure_vars): Likewise.
14824         * tree.def (STRUCT_FIELD_TAG): Remove.
14825         * tree.h (MTAG_P): Adjust.
14826         (struct tree_memory_tag): Remove base_for_components and
14827         unpartitionable flags.
14828         (struct tree_struct_field_tag): Remove.
14829         (SFT_PARENT_VAR): Likewise.
14830         (SFT_OFFSET): Likewise.
14831         (SFT_SIZE): Likewise.
14832         (SFT_NONADDRESSABLE_P): Likewise.
14833         (SFT_ALIAS_SET): Likewise.
14834         (SFT_UNPARTITIONABLE_P): Likewise.
14835         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
14836         (union tree_node): Remove sft field.
14837         * alias.c (get_alias_set): Remove special handling of SFTs.
14838         * print-tree.c (print_node): Remove handling of SFTs.
14839         * tree-dump.c (dequeue_and_dump): Likewise.
14840         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
14841         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
14842         * tree-predcom.c (set_alias_info): Do not set subvars.
14843         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
14844         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
14845         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
14846         (add_vars_for_offset): Remove.
14847         (add_virtual_operand): Remove special handling of SFTs.
14848         (add_call_clobber_ops): Likewise.
14849         (add_call_read_ops): Likewise.
14850         (get_asm_expr_operands): Likewise.
14851         (get_modify_stmt_operands): Likewise.
14852         (get_expr_operands): Likewise.
14853         (add_to_addressable_set): Likewise.
14854         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
14855         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
14856         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
14857         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
14858         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
14859         (tree_node_structure): Likewise.
14860         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
14861         handling of SFTs.
14862         (find_what_p_points_to): Likewise.
14863
14864 2008-05-08  Sa Liu  <saliu@de.ibm.com>
14865
14866         * config/spu/spu.md: Fixed subti3 pattern.
14867
14868 2008-05-08  Richard Guenther  <rguenther@suse.de>
14869
14870         PR middle-end/36154
14871         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14872         sure to create a representative for trailing arrays for PTA.
14873
14874 2008-05-08  Richard Guenther  <rguenther@suse.de>
14875
14876         PR middle-end/36172
14877         * fold-const.c (operand_equal_p): Two objects which types
14878         differ in pointerness are not equal.
14879
14880 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
14881
14882         * calls.c (compute_argument_block_size): Add argument tree fndecl.
14883         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
14884         (emit_library_call_value_1): Add new variable fndecl initialized by
14885         NULL_TREE. It should be the decl type of orgfun, but this information
14886         seems not to be available here, so it uses the default calling abi.
14887         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
14888         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
14889         by TARGET_RETURN_IN_MEMORY.
14890         * config/i386/i386-interix.h: Likewise.
14891         * config/i386/i386.h: Likewise.
14892         * config/i386/i386elf.h: Likewise.
14893         * config/i386/ptx4-i.h: Likewise.
14894         * config/i386/sol2-10.h: Likewise.
14895         * config/i386/sysv4.h: Likewise.
14896         * config/i386/vx-common.h: Likewise.
14897         * config/cris/cris.h: Removed #if 0 clause.
14898         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
14899         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
14900         argument.
14901         (ix86_sol10_return_in_memory): Likewise.
14902         (ix86_i386elf_return_in_memory): New.
14903         (ix86_i386interix_return_in_memory): New.
14904         * config/mt/mt-protos.h (mt_return_in_memory): New.
14905         * config/mt/mt.c: Likewise.
14906         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14907         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
14908         * config/bfin/bfin.h: Likewise.
14909         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
14910         argument.
14911         * config/bfin/bfin.c: Likewise.
14912         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14913         * config/alpha/unicosmk.h: Likewise.
14914         * config/i386/cygming.h: Likewise.
14915         * config/iq2000/iq2000.h: Likewise.
14916         * config/mips/mips.h: Likewise.
14917         * config/mn10300/mn10300.h: Likewise.
14918         * config/rs6000/rs6000.h: Likewise.
14919         * config/score/score.h: Likewise.
14920         * config/spu/spu.h: Likewise.
14921         * config/v850/v850.h: Likewise.
14922         * defaults.h: Likewise.
14923         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
14924         * expr.c (emit_block_move): Adjust use of
14925         OUTGOING_REG_PARM_STACK_SPACE.
14926         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
14927         OUTGOING_REG_PARM_STACK_SPACE.
14928         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
14929
14930 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
14931
14932         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
14933         on OMP_RETURN for OMP_FOR.
14934
14935         PR debug/35896
14936         * dwarf2out.c (dw_expand_expr, common_check): Removed.
14937         (fortran_common): New function.
14938         (gen_variable_die): Call fortran_common instead of common_check,
14939         adjust for it returning tree instead of rtx.  Formatting.
14940
14941 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
14942
14943         PR rtl/7335
14944         PR rtl/33826
14945         * see.c (see_copy_insn): Copy new pure const attributes for new call.
14946         * c-decl.c (merge_decls): Ditto.
14947         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
14948         to RTL_CONST_OR_PURE_CALL_P.
14949         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
14950         Initialized DECL_LOOPING_CONST_PURE.
14951         (process_call_operands): Set tree_side_effects properly.
14952         * tree.h (TREE_READONLY_DECL_P): Removed.
14953         (DECL_IS_PURE): Renamed to DECL_PURE_P.
14954         (DECL_LOOPING_OR_CONST_P): New macro.
14955         (struct tree_function_decl): Added looping_const_or_pure_p.
14956         (ECF_*) Renumbered.
14957         (ECF_LOOPING_OR_CONST_P): New macro.
14958         * rtlanal.c (pure_const_p): Removed.
14959         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
14960         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
14961         to RTL_CONST_CALL_P.
14962         * ipa-pure-const.c (pure_const_state_e): Added looping field.
14963         (check_decl, check_tree, check_call, scan_function): Initialize
14964         looping.
14965         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
14966         (static_execute): Set looping true for recursive functions.
14967         Undo setting state to IPA_NEITHER for recursive functions.
14968         * cse.c (cse_insn):
14969         * ifcvt.c (noce_can_store_speculate_p): Changed
14970         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
14971         RTL_CONST_OR_PURE_CALL_P.
14972         * dse.c (scan_insn): Ditto.
14973         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
14974         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
14975         RTL_CONST_OR_PURE_CALL_P.
14976         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
14977         pure_call_p to RTL_CONST_CALL_P.
14978         * gimplify.c (gimplify_call_expr): Clear side effects for
14979         non-looping pure and constant calls.
14980         * calls.c (emit_call_1): Set rtl flags from ecf flags.
14981         (flags_from_decl_or_type): Set ecf flags from decl flags.
14982         (initialize_argument_information): Turn off
14983         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
14984         Change const to pure if callee_copies is true rather than just
14985         turning off const.
14986         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
14987         way of marking pure calls.
14988         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
14989         Remove hack that was supposed to fix pr7335 and remove old
14990         way of marking pure calls.
14991         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
14992         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
14993         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
14994         RTL_CONST_OR_PURE_CALL_P.
14995         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
14996         * loop-invariant.c (find_exits, find_invariant_bb): Changed
14997         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
14998         * sched-deps.c (schedule_analyze): Ditto.
14999         * rtl.h (struct rtx_def): Use call field, unchanging field, and
15000         return_val field of calls to represent pure and const function info.
15001         (CONST_OR_PURE_CALL_P): Deleted macro.
15002         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15003         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
15004         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
15005         TREE_READONLY.
15006         * tree-optimize.c (execute_fixup_cfg): Added test for
15007         ECF_LOOPING_CONST_OR_PURE.
15008         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
15009         DECL_PURE_P.
15010         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
15011         effects for looping pure or const calls.
15012         (verify_gimple_expr): Added verification code.
15013         * config/alpha/alpha.c (alpha_legitimize_address,
15014         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
15015         RTL_CONST_CALL_P.
15016         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
15017         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
15018         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
15019         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
15020         RTL_CONST_OR_PURE_CALL_P.
15021         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
15022         and const calls to be deleted.
15023
15024 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
15025
15026         PR target/35714
15027         * config/i386/mmx.md (mmx_subv2sf3): New expander.
15028         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
15029         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
15030         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
15031         to handle nonimmediate operands.
15032         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
15033         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
15034         to handle nonimmediate operands.
15035         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
15036         (mmx_pmulhrwv4hi3): New expander.  Use
15037         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15038         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
15039         (sse2_umulv1siv1di3): New expander.  Use
15040         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15041         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
15042         (mmx_eq<mode>3): New expander.  Use
15043         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15044         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
15045         (mmx_uavgv8qi3): New expander.  Use
15046         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15047         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
15048         (mmx_uavgv4hi3): New expander.  Use
15049         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15050
15051         * config/i386/sse.md
15052         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
15053         to handle nonimmediate operands.
15054         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
15055         to handle nonimmediate operands.
15056         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
15057         to handle nonimmediate operands.
15058         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
15059         to handle nonimmediate operands.
15060         (sse2_unpckhpd_exp): New expander.  Use
15061         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15062         (sse2_unpcklpd_exp): New expander.  Use
15063         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15064         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
15065         to handle nonimmediate operands.
15066         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
15067         to handle nonimmediate operands.
15068         (*sse2_<plusminus_insn><mode>3): Rename from
15069         sse2_<plusminus_insn><mode>3 insn pattern.
15070         (sse2_<plusminus_insn><mode>3): New expander.  Use
15071         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15072         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
15073         (sse2_umulv2siv2di3): New expander.  Use
15074         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15075         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
15076         (sse4_1_mulv2siv2di3): New expander.  Use
15077         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15078         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
15079         (sse2_pmaddwd): New expander.  Use
15080         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15081         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
15082         (sse2_eq<mode>3): New expander.  Use
15083         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15084         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
15085         (sse4_1_eqv2di3): New expander.  Use
15086         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15087         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
15088         (sse2_uavgv16qi3): New expander.  Use
15089         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15090         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
15091         (sse2_uavgv16qi3): New expander.  Use
15092         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15093         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
15094         (sse2_uavgv8hi3): New expander.  Use
15095         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15096         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
15097         (ssse3_pmulhrswv8hi3): New expander.  Use
15098         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15099         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
15100         (ssse3_pmulhrswv4hi3): New expander.  Use
15101         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15102
15103         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
15104         (<sse>_vmmul<mode>3): Ditto.
15105         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
15106         (divv2df3): Ditto.
15107         (ssse3_pmaddubsw128): Use register_operand for operand 1.
15108         (ssse3_pmaddubsw): Ditto.
15109
15110         * config/i386/i386.c (struct_builtin_description)
15111         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
15112         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
15113         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
15114         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
15115         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
15116         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
15117         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
15118         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
15119         (ix86_fixup_binary_operands): Assert that src1
15120         and src2 must have the same mode when swapped.
15121         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
15122         and ix86_binary_operator_ok.  Do not force operands in registers
15123         when optimizing.
15124
15125 2008-05-07  Jan Hubicka  <jh@suse.cz>
15126
15127         * cgraph.c (dump_cgraph_node): Update.
15128         * cgraph.h (cgraph_local_info): Break out inline summary.
15129         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
15130         hook.
15131         * ipa-inline (inline_summary): New accestor function.
15132         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
15133         cgraph_decide_inlining, compute_inline_parameters): Update.
15134         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
15135
15136 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
15137
15138         Cleanup ColdFire scheduling support and add V4 pipeline model.
15139
15140         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
15141         (define_attr cpu): Add cfv4 value.
15142         (define_attr type, define_attr type1): Merge into a single 'type'
15143         attribute.  Update all uses.
15144         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
15145         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
15146         Update all uses.
15147         (define_attr opx_mem, define_attr opy_mem): Remove.
15148         (define_attr op_mem): Clean up, update comment.
15149         (define_attr size): Use specific values instead of general int.
15150         (define_attr guess, define_attr split): Remove.  Update all uses.
15151         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
15152         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
15153         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
15154         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
15155         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
15156         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
15157         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
15158         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
15159         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
15160         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
15161         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
15162         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
15163         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
15164         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
15165         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
15166         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
15167         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
15168         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
15169         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
15170         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
15171         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
15172         Update or set attributes.
15173         (stack_tie): New fake instruction.
15174
15175         * config/m68k/m68k.h (TUNE_CFV4): New macro.
15176         (m68k_sched_attr_size): Update declaration.
15177         (m68k_sched_attr_type2): Remove.
15178         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
15179         Declare new bypass predicates.
15180
15181         * config/m68k/m68k.c (m68k_sched_issue_rate,
15182         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
15183         implementations.
15184         (TARGET_SCHED_ISSUE_RATE,
15185         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
15186         (override_options): Handle scheduling for ColdFire V4 core.
15187         (m68k_expand_prologue): Emit stack_tie.
15188         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
15189         'OP_TYPE_FPN'.  Update all uses.
15190         (sched_guess_p): Remove.
15191         (sched_address_type): Handle symbolic addresses.
15192         (sched_get_operand): New static function.
15193         (sched_operand_type): Merge into sched_attr_op_type.
15194         (sched_attr_op_type): Handle FP registers, handle quick constants,
15195         update.
15196         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
15197         (m68k_sched_attr_size): Update.  Move logic to ...
15198         (sched_get_attr_size_int): New static function.
15199         (sched_get_opxy_mem_type): New static function.
15200         (m68k_sched_attr_op_mem): Update.
15201         (m68k_sched_attr_type2): Remove.
15202         (sched_cfv4_bypass_data): New static variable.
15203         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
15204         (m68k_sched_issue_rate): Implement scheduler hook.
15205         (struct _sched_ib: enabled_p): New field.
15206         (m68k_sched_variable_issue): Update.  Handle V4.
15207         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
15208         sched_dump_class_func_t, sched_dump_split_class,
15209         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
15210         sched_dump_dfa_class, m68k_sched_dump): Remove.
15211         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
15212         hook.
15213         (m68k_sched_init_global): Remove statisctics dumping, introduce
15214         sanity check that all instructions have pipeline reservations.  Handle
15215         ColdFire V4 core.
15216         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15217         Handle ColdFire V4 core.
15218         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
15219         New static functions.
15220         (m68k_sched_address_bypass_p): New bypass predicate.
15221         (sched_get_indexed_address_scale): New static function.
15222         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
15223
15224         * cf.md: Update comments.
15225         (define_attr type2): Remove.  Use 'type' attribute instead.
15226         Update all uses.
15227         (cf_ib): Rename to cfv123_ib.  Update all uses.
15228         (cf_oep): Rename to cfv123_oep.  Update all uses.
15229         (cf_chr): Rename to cfv123_chr.  Update all uses.
15230         (cf_mem): Rename to cfv123_mem.  Update all uses.
15231         (cf_mac): Move to more appropriate place.
15232         (cfv123_guess): New automaton and cpu_unit.
15233         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
15234         Update uses of 'size' attribute.  Handle before reload scheduling.
15235         (cfv123_guess): New dummy reservation for unhandled instructions.
15236         (cfv4_*): Pipeline description of ColdFire V4 core.
15237         (ignore): New reservation to handle 'ignore' type.
15238
15239 2008-05-07  Ian Lance Taylor  <iant@google.com>
15240
15241         PR middle-end/36013
15242         * gimplify.c (find_single_pointer_decl_1): Don't look through
15243         indirections.
15244         (find_single_pointer_decl): Adjust comments.
15245
15246 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
15247
15248         PR middle-end/36137
15249         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
15250         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
15251
15252         PR middle-end/36106
15253         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
15254         integral type rather than floating point, then VIEW_CONVERT_EXPR
15255         to the floating point type.
15256
15257 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
15258
15259         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
15260         TFmode op0 to register.
15261
15262 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
15263
15264         * c-decl.c (grokdeclarator): Comment typo.
15265
15266 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
15267
15268         * tree-flow.h: Remove prototype for computed_goto_p.
15269         * tree-cfg.c (computed_goto_p): Make static.
15270
15271 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
15272
15273         PR target/35657
15274         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
15275         (contains_aligned_value_p): This.  Handle _Decimal128.
15276         (ix86_function_arg_boundary): Only align _Decimal128 to its
15277         natural boundary and handle it properly.
15278
15279 2008-05-06  Martin Jambor  <mjambor@suse.cz>
15280
15281         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
15282         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
15283         (ipcp_method_set_orig_node): Removed.
15284         (ipcp_cval_get_cvalue_type): Removed.
15285         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
15286         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
15287         (ipcp_cval_set_cvalue_type): Removed.
15288         (ipcp_cval_get_cvalue): Removed.
15289         (ipcp_cval_set_cvalue): Removed.
15290         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
15291         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
15292         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
15293         (ipcp_cval_meet): Renamed to ipa_lattice_meet
15294         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
15295         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
15296         (ipcp_get_ith_lattice): Changed parameters.
15297         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
15298         (ipcp_lattice_from_jfunc): Changed parameters.
15299         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
15300         (ipcp_method_cval_print): Added temporary variable info.
15301         (ipcp_redirect): Removed already unused local variable caller.
15302         (ipcp_redirect): New temporary variable orig_callee_info
15303         (ipcp_redirect): Removed newly unused local variable callee.
15304         (ipcp_redirect): Removed (a bit confusing) local variable type.
15305         (ipcp_insert_stage): Added local variable info.
15306         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
15307         renamed too
15308         (ipcp_formal_create): Removed.
15309         (ipcp_method_cval_set): Removed.
15310         (ipcp_propagate_stage): Renamed lattice variables.
15311         (ipcp_method_cval_set_cvalue_type): Removed.
15312         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
15313         (ipcp_print_all_lattices): Changed printed strings to refer to
15314         lattices rather than cvals.
15315         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
15316         (ipcp_propagate_const): Changed formal parameters.
15317         (build_const_val): Changed formal parameters.
15318         (ipcp_insert_stage): Removed useless variable cvalue
15319         (build_const_val): Changed formal parameters.
15320         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
15321         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
15322         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
15323         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
15324         (ipcp_print_func_profile_counts): Changed string from "method" to
15325         "function"
15326         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
15327         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
15328         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
15329         (ipcp_structures_print): Renamed to ipcp_print_all_structures
15330         (ipcp_profile_print): Renamed to ipcp_print_profile_data
15331         (ipcp_lat_is_const): Changed parameters and made inline.
15332         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
15333         (ipcp_redirect): Renamed to ipcp_need_redirect_p
15334         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
15335         the predicate condition directly
15336         (ipcp_propagate_stage): Added local variable args. Removed local
15337         variable callee.  (Both are mere code simplifications.)
15338         (ipcp_method_dont_insert_const): Renamed to
15339         ipcp_node_not_modifiable_p.
15340         (ipcp_node_not_modifiable_p): Made inline.
15341         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
15342         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
15343         (ipcp_print_all_lattices): Removed variable cvalue
15344         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
15345         Updated comments.
15346
15347 2008-05-06  Olivier Hainque  <hainque@adacore.com>
15348
15349         * tree-sra.c (try_instantiate_multiple_fields): Early return
15350         if field has POINTER_TYPE.
15351
15352 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
15353
15354         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
15355         by using 'q' specifier for instruction.
15356         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
15357
15358 2008-05-06  Anatoly Sokolov <aesok@post.ru>
15359
15360         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
15361         Change mode of zero_extract from QImode to HImode.
15362         (sign bit tests peepholes): (Ditto.).
15363
15364 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
15365
15366         * config/i386/mmx.md: Remove double backslashes from asm templates.
15367         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
15368         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
15369         to handle nonimmediate operands.
15370         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
15371         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
15372         to handle nonimmediate operands.
15373         (*mmx_<code>v2sf3_finite): New insn pattern.
15374         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
15375         (mmx_<code>v2sf3): New expander.  Use
15376         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15377         (mmx_<plusminus_insn><mode>3): New expander.  Use
15378         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15379         (*mmx_<plusminus_insn><mode>3): New insn pattern.
15380         (mmx_add<mode>3): Removed.
15381         (mmx_ssadd<mode>3): Ditto.
15382         (mmx_usadd<mode>3): Ditto.
15383         (mmx_sub<mode>3): Ditto.
15384         (mmx_sssub<mode>3): Ditto.
15385         (mmx_ussub<mode>3): Ditto.
15386         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
15387         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
15388         to handle nonimmediate operands.
15389         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
15390         insn pattern.
15391         (mmx_smulv4hi3_highpart): New expander.  Use
15392         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15393         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
15394         insn pattern.
15395         (mmx_umulv4hi3_highpart): New expander.  Use
15396         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15397         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
15398         (mmx_<code>v4hi3): New expander.  Use
15399         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15400         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
15401         (mmx_<code>v8qi3): New expander.  Use
15402         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15403         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
15404         (mmx_<code><mode>3): New expander.  Use
15405         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
15406
15407 2008-05-05  Jan Hubicka  <jh@suse.cz>
15408
15409         PR tree-optimization/36118
15410         * passes.c (pass_init_dump_file): Fix dump header.
15411
15412 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15413
15414         PR middle-end/36141
15415         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
15416         VCE for function decls.
15417
15418 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
15419
15420         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
15421
15422 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
15423
15424         * config/i386/i386.md (sat_plusminus): New.
15425         (plusminus_insn): Likewise.
15426         (plusminus_mnemonic): Likewise.
15427         (addsub): Removed.
15428         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
15429         (*<addsub><mode>3_cc_overflow): Renamed to ...
15430         (*<plusminus_insn><mode>3_cc_overflow): This.
15431         (*<addsub>si3_zext_cc_overflow): Renamed to ...
15432         (*<plusminus_insn>si3_zext_cc_overflow): This.
15433
15434         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
15435         (<plusminus_insn><mode>3): This.
15436         (*<addsub><mode>3): Renamed to ...
15437         (*<plusminus_insn><mode>3): This.
15438         (<sse>_vm<addsub><mode>3): Renamed to ...
15439         (<sse>_vm<plusminus_insn><mode>3): This.
15440         (sse3_h<addsub>v4sf3): Renamed to ...
15441         (sse3_h<plusminus_insn>v4sf3): This.
15442         (sse3_h<addsub>v2df3): Renamed to ...
15443         (sse3_h<plusminus_insn>v2df3): This.
15444         (<plusminus_insn><mode>3): New.
15445         (*<plusminus_insn><mode>3): Likewise.
15446         (sse2_<plusminus_insn><mode>3): Likewise.
15447         (add<mode>): Removed.
15448         (*add<mode>3): Likewise.
15449         (sse2_ssadd<mode>3): Likewise.
15450         (sse2_usadd<mode>3): Likewise.
15451         (sub<mode>3): Likewise.
15452         (*sub<mode>3): Likewise.
15453         (sse2_sssub<mode>3): Likewise.
15454         (sse2_ussub<mode>3): Likewise.
15455
15456 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
15457
15458         * gthr-single.h: Add in required interface elements as per gthr.h.
15459         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
15460         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
15461         Generalize UNUSED macro.
15462         (__gthread_once): Add.
15463         (__gthread_key_create): Add.
15464         (__gthread_key_delete): Add.
15465         (__gthread_getspecific): Add.
15466         (__gthread_setspecific): Add.
15467
15468 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
15469
15470         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
15471         the same size types for the indirect reference on the rhs, then
15472         create a VCE.
15473
15474 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
15475
15476         * config/i386/i386.md
15477         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
15478         one insn template instead of template series.
15479         (*xordi_1_rex64): Ditto.
15480         (*xordi_2_rex64): Ditto.
15481
15482 2008-05-05  Ira Rosen  <irar@il.ibm.com>
15483
15484         PR tree-optimization/36119
15485         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
15486         in case of SLP.
15487
15488 2008-06-04  Jan Hubicka  <jh@suse.cz>
15489
15490         tree-optimization/36100
15491         * tree-pass.h (pass_O0_always_inline): Declare.
15492         * ipa-inline.c (inline_transform): Remove dead code.
15493         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
15494         pass_O0_always_inline): New.
15495         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
15496
15497 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
15498
15499         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
15500         mnemonic in this_param move for TARGET_64BIT.
15501
15502 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
15503
15504         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
15505         (*strmovsi_rex_1): Ditto.
15506         (*strsetsi_1): Ditto.
15507         (*strsetsi_rex_1): Ditto.
15508
15509         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
15510         adddicc expanders using SWI mode iterator.
15511
15512 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15513
15514         PR target/36121
15515         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
15516         argument handling.
15517
15518 2008-05-04  David S. Miller  <davem@davemloft.net>
15519
15520         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
15521         (sparc*-*-linux*): Use linux.h in tm_file.
15522         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
15523         compiler defaulting to 32-bit.
15524         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
15525         no longer needed.
15526         * config/sparc/linux.h: Remove definitions now obtained
15527         properly from linux.h
15528         * config/sparc/linux64.h: Likewise.
15529         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
15530         don't want this setting for 32-bit builds in a biarch compiler.
15531         * doc/install.texi: Add sparc-linux to list of targets
15532         supporting --enable-targets=all.
15533
15534 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
15535
15536         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
15537
15538 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
15539
15540         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
15541         after V4SI_FTYPE_V8HI.
15542         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
15543         case V4SI_FTYPE_V2DF.
15544
15545 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
15546
15547         * doc/invoke.texi (max-flow-memory-locations): Removed.
15548         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
15549
15550 2008-05-03  Richard Guenther  <rguenther@suse.de>
15551
15552         PR middle-end/34973
15553         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
15554
15555 2008-05-02  David S. Miller  <davem@davemloft.net>
15556
15557         * config.gcc (need_64bit_hwint): Document libcpp dependency.
15558
15559 2008-05-02  Simon Baldwin <simonb@google.com>
15560
15561         PR bootstrap/36108
15562         * c-common.h (warn_array_subscript_range): Removed.
15563         * c-common.c (warn_array_subscript_range): Ditto.
15564         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
15565         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
15566
15567 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15568
15569         * config/i386/i386.c (ix86_special_builtin_type): New.
15570         (bdesc_special_args): Likewise.
15571         (ix86_expand_special_args_builtin): Likewise.
15572         (ix86_init_mmx_sse_builtins): Updated.
15573         (ix86_expand_builtin): Updated.
15574         (ix86_expand_store_builtin): Removed.
15575         (ix86_expand_unop_builtin): Likewise.
15576
15577         * config/i386/mm3dnow.h (__v2sf): Moved to ...
15578         * config/i386/mmintrin.h (__v2sf): Here.
15579
15580         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
15581         const __v2sf.
15582         (_mm_loadl_pi): Likewise.
15583         (_mm_storeh_pi): Replace __v2si with __v2sf.
15584         (_mm_storel_pi): Likewise.
15585
15586         * doc/extend.texi: Correct __builtin_ia32_loadhps,
15587         __builtin_ia32_loadlps, __builtin_ia32_storehps,
15588         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
15589         __builtin_ia32_loadlpd.
15590
15591 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15592
15593         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
15594         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
15595         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
15596         (ix86_init_mmx_sse_builtins): Updated.
15597         (ix86_expand_args_builtin): Likewise.
15598         (ix86_expand_builtin): Likewise.
15599         (ix86_expand_unop1_builtin): Renamed to ...
15600         (ix86_expand_unop_vec_merge_builtin): This.
15601
15602 2008-05-01  Jan Hubicka  <jh@suse.cz>
15603
15604         PR bootstrap/36100
15605         * ipa-inline.c (inline_generate_summary): Make static.
15606         (inline_transform): Do not call inlining at -O0; make static.
15607         * passes.c (execute_todo): Add sanity check.
15608         (execute_one_ipa_transform_pass): Execute proper flags.
15609
15610 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
15611
15612         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
15613         (DECL_NONADDRESSABLE_P): Likewise.
15614         * alias.c (record_component_aliases): Fix comment.
15615
15616 2008-05-01  Simon Baldwin <simonb@google.com>
15617
15618         * c-common.h (warn_array_subscript_range): New function.
15619         * c-common.c (warn_array_subscript_range): Ditto.
15620         * tree-vrp.c (check_array_ref): Corrected code to agree with
15621         comment, ignoring only arrays of size 0 or size 1.
15622         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
15623
15624 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
15625
15626         * config/i386/i386.c (ix86_builtin_type): Replace
15627         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
15628         (bdesc_args): Updated.
15629         (ix86_init_mmx_sse_builtins): Likewise.
15630         (ix86_expand_args_builtin): Likewise.
15631
15632         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
15633         with __v1di.
15634
15635         * doc/extend.texi: Correct __builtin_ia32_palignr.
15636
15637 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
15638
15639         PR target/36095
15640         * config/i386/i386.c (bdesc_crc32): Removed.
15641         (ix86_expand_crc32): Likewise.
15642         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
15643         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
15644         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
15645         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
15646         UINT_FTYPE_UINT_UCHAR.
15647         (bdesc_args): Updated. Add crc32 builtins.
15648         (ix86_init_mmx_sse_builtins): Updated.
15649         (ix86_expand_args_builtin): Updated to support subreg.
15650
15651         * doc/extend.texi: Correct __builtin_ia32_crc32di.
15652
15653 2008-05-01  Jan Hubicka  <jh@suse.cz>
15654
15655         * tree-pass.h (opt_pass): Add IPA_PASS.
15656         (varpool_node, cgraph_node): Forward declare.
15657         (ipa_opt_pass): Define.
15658         (pass_ipa_inline): Turn into ipa_opt_pass.
15659         (pass_apply_inline): Remove.
15660         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
15661         (apply_inline): Turn into ....
15662         (inline_transform): ... this one.
15663         (inline_generate_summary): New function.
15664         (pass_apply_inline): Remove.
15665         * function.h (ipa_opt_pass): Forward declare structure; typedef;
15666         vector.
15667         (struct function): Add ipa_transforms_to_apply.
15668         * passes.c (register_one_dump_file): Work on IPA_PASS.
15669         (init_optimization_passes): Remove pass_inline_parameters and
15670         pass_apply_inline.
15671         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
15672         (execute_one_pass) ... here; apply transforms when possible.
15673         (add_ipa_transform_pass, execute_ipa_summary_asses,
15674         execute_one_ipa_transform_pass): New.
15675         (execute_ipa_pass_list): Update for IPA_PASS type.
15676
15677 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
15678
15679         * config/i386/i386.c (ix86_builtin_type): Add
15680         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
15681         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
15682         (bdesc_args): Add SSE4a builtins.
15683         (ix86_init_mmx_sse_builtins): Updated.
15684         (ix86_expand_args_builtin): Likewise.
15685         (ix86_expand_builtin): Likewise.
15686
15687 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
15688
15689         * config/i386/i386.c (ix86_builtin_type): Add
15690         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
15691         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
15692         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
15693         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
15694         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
15695         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
15696         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
15697         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
15698         and DI_FTYPE_DI_DI_INT.
15699         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
15700         (ix86_init_mmx_sse_builtins): Updated.
15701         (ix86_expand_args_builtin): Likewise.
15702         (ix86_expand_builtin): Likewise.
15703         (ix86_expand_binop_imm_builtin): Removed.
15704
15705         * doc/extend.texi: Correct __builtin_ia32_palignr128.
15706
15707 2008-04-30  Richard Guenther  <rguenther@suse.de>
15708
15709         PR tree-optimization/32921
15710         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
15711
15712 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15713
15714         * config/arm/arm.c (arm_unwind_emit): Use
15715         crtl->all_throwers_are_sibcalls instead of
15716         cfun->all_throwers_are_sibcalls.
15717         (arm_output_fn_unwind): Likewise.
15718         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
15719         instead of cfun->uses_pic_offset_table.
15720         (frv_expand_prologue): Likewise.
15721         (frv_frame_pointer_required): Likewise.
15722         (frv_expand_fdpic_call): Likewise.
15723         (frv_emit_movsi): Likewise.
15724         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
15725         cfun->returns_pcc_struct instead of
15726         current_function_returns_pcc_struct.
15727         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
15728         instead of cfun->calls_eh_return.
15729         (m32c_pushm_popm): Likewise.
15730         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
15731         "extern" declaration.
15732
15733 2008-04-30  Richard Guenther  <rguenther@suse.de>
15734
15735         PR tree-optimization/21636
15736         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
15737         constant address.
15738         (evaluate_stmt): Print the likely value.
15739         (ccp_visit_stmt): Avoid excessive vertical spacing.
15740
15741 2008-04-30  Rafael Espíndola  <espindola@google.com>
15742
15743         * builtins.c (fold_call_expr): Return realret.
15744         * tree-ssa-threadedge.c
15745         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
15746         __builtin_object_size.
15747
15748 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
15749
15750         * gcc.c (wrapper_string): New variable.
15751         (insert_wrapper): New function.
15752         (execute): New option -wrapper.
15753         * doc/invoke.texi (Overall Options): New driver option -wrapper.
15754
15755 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
15756
15757         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
15758         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
15759         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
15760         from...
15761         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
15762         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
15763         config/rs6000/e500crtres64gprctr.asm,
15764         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
15765         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
15766         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
15767         config/rs6000/e500crtsav64gprctr.asm,
15768         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
15769         config/rs6000/e500crtsavg64gprctr.asm: New files.
15770         * config/rs6000/t-ppccomm: Add build rules for new files.
15771         (LIB2FUNCS_STATIC_EXTRA): Add new files.
15772         * config/rs6000/t-netbsd: Add build rules for new files.
15773         (LIB2FUNCS_STATIC_EXTRA): New variable.
15774         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
15775         (CRTSAVRES_DEFAULT_SPEC): Likewise.
15776         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
15777
15778 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
15779
15780         * config/i386/i386.c (ix86_builtin_type): Add
15781         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
15782         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
15783         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
15784         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
15785         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
15786         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
15787         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
15788         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
15789         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
15790         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
15791         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
15792         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
15793         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
15794         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
15795         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
15796         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
15797         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
15798         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
15799         V1DI_FTYPE_V2SI_V2SI.
15800         (bdesc_2arg): Moved to ...
15801         (bdesc_args): Here.
15802         (ix86_init_mmx_sse_builtins): Updated.
15803         (ix86_expand_args_builtin): Updated.  Take a pointer
15804         to const struct builtin_description.  Handle comparison
15805         builtin functions.
15806         (ix86_expand_sse_compare): Take a new argument for swapping operands.
15807         (ix86_expand_builtin): Updated.
15808
15809         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
15810         (ssse3_pmaddubsw128): This.
15811         (ssse3_pmaddubswv4hi3): Renamed to ...
15812         (ssse3_pmaddubsw): This.
15813
15814         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
15815         (__builtin_ia32_packssdw128): Likewise.
15816         (__builtin_ia32_packuswb128): Likewise.
15817         (__builtin_ia32_pmaddubsw): Likewise.
15818         (__builtin_ia32_pmaddubsw128): Likewise.
15819
15820 2008-04-30  Richard Guenther  <rguenther@suse.de>
15821
15822         PR tree-optimization/14847
15823         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
15824         (recognize_bits_test): Use it.
15825         (recognize_single_bit_test): Likewise.
15826
15827 2008-04-30  Martin Jambor  <mjambor@suse.cz>
15828
15829         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
15830         instead of setting number of formal parameters to zero.
15831         (ipcp_init_stage): Do not set the number of actual parameters to zero
15832         either.
15833         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
15834         which are called with variable number of arguments.
15835         (ipcp_insert_stage): Explicitely skipping all nodes which are
15836         called with variable number of arguments.
15837         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
15838         number of parameters.
15839
15840         * ipa-prop.h (struct ipa_node_params): Added flag
15841         called_with_var_arguments
15842         (ipa_set_param_count): Added.  Changed sole setter to use it.
15843         (ipa_get_param_count): Added.  All readers of param_count
15844         converted to use it instead.
15845         (ipa_set_called_with_variable_arg): Added.
15846         (ipa_is_called_with_var_arguments): Added.
15847         (ipa_get_ith_param): Added.  All readers of param_decls converted
15848         to use it instead.
15849         (ipa_set_cs_argument_count): Added, sole writer to argument_count
15850         changed to use it.
15851         (ipa_get_cs_argument_count): Added, all readers of argument_count
15852         changed to cal it.
15853         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
15854         to use it.
15855
15856         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
15857         (struct ipcp_lattice): Renamed cval_type to type
15858         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
15859
15860         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
15861         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
15862         (ipcp_insert_stage): Changed the type of variable cvalue to tree
15863         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
15864         (build_const_val): Changed the type of parameter cvalue to tree
15865         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
15866         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
15867
15868         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
15869         constant
15870
15871         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
15872         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
15873         (ipa_add_method): Renamed to ipa_push_func_to_list
15874         (ipa_remove_method): Renamed to ipa_pop_func_from_list
15875         (ipa_callsite_param_count): Removed.
15876         (ipa_callsite_param_count_set): Removed.
15877         (ipa_callsite_param): Removed.
15878         (ipa_callsite_callee): Removed.
15879         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
15880         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
15881         (ipa_method_formal_count): Removed.
15882         (ipa_method_formal_count_set): Removed.
15883         (ipa_method_get_tree): Removed.
15884         (ipa_method_tree_map_create): Removed.
15885         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
15886         (ipa_create_param_decls_array): Creates the array itself
15887         (ipa_create_param_decls_array): Temporary variable info instead of
15888         a few dereferences.
15889         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
15890         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
15891         (get_type): Removed.
15892         (ipa_jf_get_info_type): Removed.
15893         (ipa_node_create): Renamed to ipa_create_node_params
15894         (ipa_free): Renamed to ipa_free_all_node_params
15895         (ipa_nodes_create): Renamed to ipa_create_all_node_params
15896         (ipa_edges_create): Renamed to ipa_create_all_edge_args
15897         (ipa_edges_free): Renamed to ipa_free_all_edge_args
15898         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
15899         (ipa_free_all_node_params): Deallocation to jump_functions moved to
15900         ipa_free_all_edge_args
15901         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
15902         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
15903         (ipa_create_methodlist_node): Removed.
15904         (ipa_methodlist_method): Removed.
15905         (ipa_methodlist_method_set): Removed.
15906         (ipa_methodlist_next_method): Removed.
15907         (ipa_methodlist_next_method_set): Removed.
15908         (ipa_method_is_modified): Removed.
15909         (ipa_method_modify_create): Removed.
15910         (ipa_method_modify_init): Temporary variable info instead of a few
15911         dereferences.
15912         (ipa_detect_param_modifications): Temporary variable info instead of
15913         a few dereferences.
15914         (ipa_compute_jump_functions): Temporary variable info instead of
15915         a few dereferences.
15916         (ipa_method_modify_set): Removed.
15917         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
15918         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
15919         than craph_node as the first parameter.
15920         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
15921         (ipa_method_modify_init): Removed.
15922         (ipa_compute_jump_functions): Added a temp variable instead of
15923         repeatadly dereferencing the cgraph_edge.aux pointer
15924         (ipa_callsite_param_set_type): Removed.
15925         (ipa_compute_jump_functions): i renamed to index and moved to
15926         an inner block
15927         (ipa_callsite_param_set_info_type_formal): Removed.
15928         (ipa_callsite_param_set_info_type): Removed.
15929         (ipa_callsite_param_map_create): Removed.
15930         (ipa_callsite_tree): Removed.
15931         (ipa_callsite_caller): Removed.
15932         (ipa_pop_func_from_list): return_method removed to return_func
15933
15934         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
15935         prefixed all values with IPA_. Changed all users.
15936         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
15937         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
15938         and FORMAL_IPATYPE IPA_PASS_THROUGH.
15939         (union parameter_info): Renamed to jump_func_value.
15940         (union jump_func_value): Renamed value to constant
15941         (struct ipa_jump_func): Renamed info_type to value
15942         (struct ipa_node): Renamed to ipa_node_params
15943         (struct ipa_node_params): Renamed ipa_arg_num to param_count
15944         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
15945         (struct ipa_node_params): Renamed ipa_mod to modified_flags
15946         (struct ipa_edge): Renamed to ipa_edge_args
15947         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
15948         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
15949         (struct ipa_methodlist): Renamed to ipa_func_list
15950         (struct ipa_func_list): method_p renamed to node, next_method
15951         renamed to next
15952         (ipa_methodlist_p): Removed, switched all users to struct pointer
15953         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
15954
15955 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
15956
15957         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
15958         (rs6000_emit_epilogue): Use backchain to restore only when we
15959         have a large frame.  Make use of frame pointer to restore if we
15960         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
15961
15962 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
15963
15964         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
15965         Add mode to zero_extract.
15966         (sign bit tests peepholes): (Ditto.).
15967
15968 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
15969
15970         * config/i386/i386.c (ix86_builtins): Replace Prescott New
15971         Instructions in comments with SSE3.
15972         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
15973         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
15974         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
15975         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
15976         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
15977         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
15978         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
15979         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
15980         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
15981         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
15982         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
15983         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
15984         (bdesc_sse_args): Renamed to ...
15985         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
15986         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
15987         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
15988         IX86_BUILTIN_FABSQ.
15989         (bdesc_1arg): Moved to ...
15990         (bdesc_args): Here.
15991         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
15992         Instructions in comments with SSE3.
15993         (ix86_expand_sse_operands_builtin): Renamed to ...
15994         (ix86_expand_args_builtin): This.  Updated.
15995         (ix86_expand_unop1_builtin): Update comments.
15996         (ix86_expand_builtin): Updated.
15997
15998 2008-04-29  Richard Guenther  <rguenther@suse.de>
15999
16000         PR tree-optimization/36078
16001         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
16002         Update virtual SSA form after cleaning up the CFG.
16003
16004 2008-04-29  Richard Guenther  <rguenther@suse.de>
16005
16006         PR middle-end/15255
16007         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
16008
16009 2008-04-29  Richard Guenther  <rguenther@suse.de>
16010
16011         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
16012         (compute_may_aliases): Do not call finalize_ref_all_pointers.
16013         (compute_flow_insensitive_aliasing): Do not treat
16014         PTR_IS_REF_ALL pointers special.
16015         (get_smt_for): Likewise.
16016         (may_alias_p): Re-structure.
16017         (is_escape_site): A ref-all pointer conversion is not an escape site.
16018         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
16019         PTR_IS_REF_ALL pointers special.
16020         * tree-ssa-structalias.h (struct alias_info): Remove
16021         ref_all_symbol_mem_tag field.
16022         (PTR_IS_REF_ALL): Remove.
16023
16024 2008-04-29  Richard Guenther  <rguenther@suse.de>
16025
16026         PR middle-end/36077
16027         * fold-const.c (extract_muldiv_1): In combining division constants
16028         make sure to never overflow.
16029
16030 2008-04-29  Nick Clifton  <nickc@redhat.com>
16031
16032         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
16033
16034 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16035
16036         PR bootstrap/35169
16037         * optc-gen.awk: Work around HP-UX/IA awk bug.
16038
16039 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
16040
16041         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
16042         2008-04-25 commit.
16043
16044 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
16045
16046         PR target/36073
16047         * config/i386/i386.md
16048         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
16049         Change operand 1 predicate to nonimmediate_operand.
16050
16051 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
16052
16053         PR debug/36060
16054         * dwarf2out.c (struct die_struct): Mark as chain_circular through
16055         die_sub field.
16056         * gengtype.c (walk_type, write_func_for_structure): Handle
16057         chain_circular.
16058         * doc/gty.texi: Document chain_circular.
16059
16060 2008-04-28  Richard Guenther  <rguenther@suse.de>
16061
16062         PR tree-optimization/36066
16063         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
16064         SCEV and loop.
16065
16066 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
16067
16068         PR target/36064
16069         * config/i386/i386.md
16070         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
16071         Use match_scratch instead of match_operand for operands 3 and 4.
16072
16073 2008-04-27  Richard Guenther  <rguenther@suse.de>
16074
16075         PR tree-optimization/18754
16076         PR tree-optimization/34223
16077         * tree-pass.h (pass_complete_unrolli): Declare.
16078         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
16079         loop size before and after unconditionally of UL_NO_GROWTH in effect.
16080         Rewrite loop into loop closed SSA form if it is not already.
16081         (tree_unroll_loops_completely): Re-structure to iterate over
16082         innermost loops with intermediate CFG cleanups.
16083         Unroll outermost loops only if requested or the code does not grow
16084         doing so.
16085         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
16086         loops are available.
16087         (tree_vectorize): Instead do so here.
16088         (tree_complete_unroll): Also unroll outermost loops.
16089         (tree_complete_unroll_inner): New function.
16090         (gate_tree_complete_unroll_inner): Likewise.
16091         (pass_complete_unrolli): New pass.
16092         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
16093         uses outside of the loop.
16094         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
16095         form if it is available.
16096         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
16097         * passes.c (init_optimization_passes): Schedule complete inner
16098         loop unrolling pass before the first CCP pass after final inlining.
16099
16100 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
16101
16102         * targhooks.h (default_emutls_var_fields,
16103         default_emutls_var_init): Declare.
16104         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
16105         * target.h (struct gcc_target): Add struct emutls member.
16106         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
16107         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
16108         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
16109         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
16110         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
16111         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
16112         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
16113         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
16114         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
16115         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
16116         emit debug information.
16117         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
16118         * varasm.c: Include targhooks.h.
16119         (emutls_object_section, emutls_tmpl_section): New.
16120         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
16121         (EMUTLS_SEPARATOR): New.
16122         (prefix_name): New.
16123         (get_emutls_object_name): New.
16124         (default_emutls_var_fields): New, broken out of ...
16125         (get_emutls_object_type): ... here.  Adjust to use target hooks.
16126         (get_emutls_init_templ_addr): Adjust to use target hooks.
16127         (emutls_decl): Adjust to use target hooks.
16128         (emutls_finish): Likewise.
16129         (default_emutls_var_init): New, broken out of ...
16130         (assemble_variable): ... here.  Adjust to use target hooks.
16131         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
16132         SECCAT_EMUTLS_TMPL.
16133         * c-common.c (handle_section_attribute): Prevent overriding
16134         sections for emulated tls with special sections.
16135         * config/i386/i386.c (x86_64_elf_select_section): Add
16136         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
16137         (x86_64_elf_unique_section): Likewise.
16138         * config/vxworks.c: Include tree.h.
16139         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
16140         (vxworks_override_options): Set TLS scheme.
16141         * doc/tm.texi (Emulated TLS): New node.
16142
16143 2008-04-26  Simon Baldwin <simonb@google.com>
16144
16145         PR c/35652
16146         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
16147         with propagated string constants.
16148
16149 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
16150
16151         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
16152         constraint for operand 2 when operand 0 is memory operand.
16153         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
16154         operand 0 is memory operand.
16155         (fix_trunc<mode>_i387_with_temp): Ditto.
16156         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
16157         operand 2 when operand 1 is memory operand.
16158         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
16159         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
16160         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
16161         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
16162         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
16163         operands 2,3 and 4 when operand 1 is memory operand.
16164         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
16165         is memory operand.
16166         (fistdi2_floor_with_temp): Ditto.
16167         (fist<mode>2_floor_with_temp): Ditto.
16168         (fistdi2_ceil_with_temp): Ditto.
16169         (fist<mode>2_ceil_with_temp): Ditto.
16170         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
16171
16172 2008-04-26  David Daney  <ddaney@avtrex.com>
16173
16174         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
16175         unspec_volitile.
16176         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
16177         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
16178         UNSPEC_UPDATE_GOT_VERSION): Renumber.
16179         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
16180         (compare_and_swap_12): New insn.
16181         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
16182         * config/mips/mips.c (mips_force_binary): New function.
16183         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
16184         (mips_expand_compare_and_swap_12): New function.
16185         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
16186
16187 2008-04-25  Jan Hubicka  <jh@suse.cz>
16188
16189         PR testsuite/35843
16190         * cfgexpand.c (pass_expand): Turn into RTL pass.
16191         * passes.c (execute_one_pass): Do pass typechecking after execution.
16192         * tree-pass.h (pass_expand): Turn into RTL pass.
16193
16194         * function.h (struct rtl_data): Move here fields
16195         accesses_prior_frames, calls_eh_return, saves_all_registers,
16196         has_nonlocal_goto, has_asm_statement, is_thunk,
16197         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
16198         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
16199         arg_pointer_save_area_init from struct function; turn into bool.
16200         (struct function): Move
16201         calls_eh_return, saves_all_registers, has_nonlocal_goto,
16202         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
16203         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
16204         tail_call_emit, arg_pointer_save_area_init
16205         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
16206         (current_function_returns_struct, current_function_returns_pcc_struct,
16207         current_function_calls_setjmp, current_function_calls_alloca,
16208         current_function_accesses_prior_frames,
16209         current_function_calls_eh_return, current_function_is_thunk,
16210         current_function_stdarg, current_function_profile,
16211         current_function_limit_stack, current_function_uses_pic_offset_table,
16212         current_function_uses_const_pool, current_function_has_nonlocal_label,
16213         current_function_saves_all_registers,
16214         current_function_has_nonlocal_goto,
16215         current_function_has_asm_statement): Remove accesor macros.
16216         * ra-conflict.c (global_conflicts): Update.
16217         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
16218         (suitable_for_tail_call_opt_p): Update.
16219         * builtins.c (expand_builtin_return_addr): Update.
16220         (expand_builtin_setjmp_setup): Update.
16221         (expand_builtin_nonlocal_goto): Update.
16222         * final.c (final_start_function): Update.
16223         (profile_function): Update.
16224         (leaf_function_p): Update.
16225         (only_leaf_regs_used): Update.
16226         * df-scan.c (df_get_exit_block_use_set): Update.
16227         * dojump.c (clear_pending_stack_adjust): Update.
16228         * tree-stdarg.c (gate_optimize_stdarg): Update.
16229         * gimple-low.c (lower_function_body): Update.
16230         * global.c (compute_regsets): Update.
16231         (global_alloc): Update.
16232         * dwarf2out.c (dwarf2out_begin_prologue): Update.
16233         * expr.c (expand_assignment): Update.
16234         * dse.c (dse_step0): Update.
16235         (dse_step1): Update.
16236         * c-decl.c (store_parm_decls): Update.
16237         * local-alloc.c (combine_regs): Update.
16238         (find_free_reg): Update.
16239         * function.c (assign_parms_augmented_arg_list): Update.
16240         (assign_parm_find_data_types): Update.
16241         (assign_parms): Update.
16242         (allocate_struct_function): Update.
16243         (expand_function_start): Update.
16244         (expand_function_end): Update.
16245         (get_arg_pointer_save_area): Update.
16246         (thread_prologue_and_epilogue_insns): Update.
16247         (rest_of_match_asm_constraints): Update.
16248         * stor-layout.c (variable_size): Update.
16249         * gcse.c (gcse_main): Update.
16250         (bypass_jumps): Update.
16251         * gimplify.c (gimplify_function_tree): Update.
16252         * calls.c (emit_call_1): Update.
16253         (expand_call): Update.
16254         * bt-load.c (compute_defs_uses_and_gen): Update.
16255         * except.c (sjlj_assign_call_site_values): Update.
16256         (sjlj_emit_function_enter): Update.
16257         (can_throw_external): Update.
16258         (set_nothrow_function_flags): Update.
16259         (expand_builtin_unwind_init): Update.
16260         (expand_eh_return): Update.
16261         (convert_to_eh_region_ranges): Update.
16262         (output_function_exception_table): Update.
16263         * emit-rtl.c (gen_tmp_stack_mem): Update.
16264         * cfgexpand.c (expand_used_vars): Update.
16265         (tree_expand_cfg): Update.
16266         * cfgcleanup.c (rest_of_handle_jump): Update.
16267         * explow.c (allocate_dynamic_stack_space): Update.
16268         * varasm.c (assemble_start_function): Update.
16269         (force_const_mem): Update.
16270         (mark_constant_pool): Update.
16271         * tree-optimize.c (tree_rest_of_compilation): Update.
16272         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
16273         * tree-cfg.c (notice_special_calls): Update.
16274         (is_ctrl_altering_stmt): Update.
16275         (tree_can_make_abnormal_goto): Update.
16276         (tree_purge_dead_abnormal_call_edges): Update.
16277         * config/alpha/predicates.md: Update.
16278         * config/alpha/alpha.c (alpha_sa_mask): Update.
16279         (alpha_sa_size): Update.
16280         (alpha_does_function_need_gp): Update.
16281         (alpha_expand_prologue): Update.
16282         (alpha_start_function): Update.
16283         (alpha_output_function_end_prologue): Update.
16284         (alpha_expand_epilogue): Update.
16285         * config/frv/frv.c (frv_stack_info): Update.
16286         (frv_expand_epilogue): Update.
16287         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
16288         (s390_register_info): Update.
16289         (s390_frame_info): Update.
16290         (s390_init_frame_layout): Update.
16291         (s390_can_eliminate): Update.
16292         (save_gprs): Update.
16293         * config/spu/spu.c (spu_split_immediate): Update.
16294         (need_to_save_reg): Update.
16295         (spu_expand_prologue): Update.
16296         (spu_expand_epilogue): Update.
16297         * config/sparc/sparc.md: Update.
16298         * config/sparc/sparc.c (eligible_for_return_delay): Update.
16299         (sparc_tls_got): Update.
16300         (legitimize_pic_address): Update.
16301         (sparc_emit_call_insn): Update.
16302         (sparc_expand_prologue): Update.
16303         (output_return): Update.
16304         (print_operand): Update.
16305         (sparc_function_ok_for_sibcall): Update.
16306         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
16307         * config/m32r/m32r.md: Update.
16308         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
16309         (m32r_compute_frame_size): Update.
16310         (m32r_expand_prologue): Update.
16311         (m32r_expand_epilogue): Update.
16312         (m32r_legitimize_pic_address): Update.
16313         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
16314         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
16315         * config/i386/i386.c (ix86_frame_pointer_required): Update.
16316         (gen_push): Update.
16317         (ix86_save_reg): Update.
16318         (ix86_compute_frame_layout): Update.
16319         (ix86_expand_prologue): Update.
16320         (ix86_expand_epilogue): Update.
16321         * config/sh/sh.c (output_stack_adjust): Update.
16322         (calc_live_regs): Update.
16323         (sh5_schedule_saves): Update.
16324         (sh_expand_prologue): Update.
16325         (sh_expand_epilogue): Update.
16326         (sh_setup_incoming_varargs): Update.
16327         (sh_allocate_initial_value): Update.
16328         (sh_get_pr_initial_val): Update.
16329         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
16330         * config/sh/sh.md (label:): Update.
16331         * config/avr/avr.c (out_movhi_mr_r): Update.
16332         * config/crx/crx.h (enum): Update.
16333         * config/xtensa/xtensa.h (along): Update.
16334         * config/stormy16/stormy16.c Update.
16335         (xstormy16_compute_stack_layout): Update.
16336         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
16337         (fr30_expand_prologue): Update.
16338         * config/cris/cris.c (cris_conditional_register_usage): Update.
16339         (cris_reg_saved_in_regsave_area): Update.
16340         (cris_initial_frame_pointer_offset): Update.
16341         (cris_simple_epilogue): Update.
16342         (cris_expand_prologue): Update.
16343         (cris_expand_epilogue): Update.
16344         (cris_expand_pic_call_address): Update.
16345         (cris_asm_output_symbol_ref): Update.
16346         (cris_asm_output_label_ref): Update.
16347         * config/cris/cris.md Update.
16348         * config/iq2000/iq2000.c (compute_frame_size): Update.
16349         (iq2000_expand_epilogue): Update.
16350         * config/mt/mt.h (save_direction): Update.
16351         * config/mn10300/mn10300.c (mn10300_function_value): Update.
16352         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16353         (ia64_secondary_reload_class): Update.
16354         * config/m68k/m68k.c (m68k_save_reg): Update.
16355         (m68k_expand_prologue): Update.
16356         (m68k_expand_epilogue): Update.
16357         (legitimize_pic_address): Update.
16358         * config/rs6000/rs6000.c (rs6000_got_register): Update.
16359         (first_reg_to_save): Update.
16360         (first_altivec_reg_to_save): Update.
16361         (compute_vrsave_mask): Update.
16362         (compute_save_world_info): Update.
16363         (rs6000_stack_info): Update.
16364         (spe_func_has_64bit_regs_p): Update.
16365         (rs6000_ra_ever_killed): Update.
16366         (rs6000_emit_eh_reg_restore): Update.
16367         (rs6000_emit_allocate_stack): Update.
16368         (rs6000_emit_prologue): Update.
16369         (rs6000_emit_epilogue): Update.
16370         (rs6000_output_function_epilogue): Update.
16371         (output_profile_hook): Update.
16372         (rs6000_elf_declare_function_name): Update.
16373         * config/rs6000/rs6000.h (rs6000_args): Update.
16374         * config/rs6000/rs6000.md: Update.
16375         * config/mcore/mcore.c (mcore_expand_prolog): Update.
16376         * config/arc/arc.c (arc_output_function_epilogue): Update.
16377         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
16378         * config/darwin.c (machopic_function_base_name): Update.
16379         * config/score/score3.c (score3_compute_frame_size): Update.
16380         (rpush): Update.
16381         (rpop): Update.
16382         (score3_epilogue): Update.
16383         * config/score/score7.c (score7_compute_frame_size): Update.
16384         (score7_prologue): Update.
16385         (score7_epilogue): Update.
16386         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
16387         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
16388         * config/arm/arm.c (use_return_insn): Update.
16389         (require_pic_register): Update.
16390         (arm_load_pic_register): Update.
16391         (arm_compute_save_reg0_reg12_mask): Update.
16392         (arm_compute_save_reg_mask): Update.
16393         (thumb1_compute_save_reg_mask): Update.
16394         (output_return_instruction): Update.
16395         (arm_output_function_prologue): Update.
16396         (arm_output_epilogue): Update.
16397         (arm_get_frame_offsets): Update.
16398         (arm_expand_prologue): Update.
16399         (thumb_pushpop): Update.
16400         (thumb_exit): Update.
16401         (thumb1_expand_prologue): Update.
16402         (thumb1_expand_epilogue): Update.
16403         (arm_unwind_emit): Update.
16404         (arm_output_fn_unwind): Update.
16405         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
16406         * config/arm/arm.md: Update.
16407         * config/pa/pa.md: Update.
16408         * config/pa/pa.c (legitimize_pic_address): Update.
16409         (compute_frame_size): Update.
16410         (hppa_expand_prologue): Update.
16411         (hppa_expand_epilogue): Update.
16412         (borx_reg_operand): Update.
16413         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
16414         (HARD_REGNO_RENAME_OK): Update.
16415         * config/mips/mips.c (mips_global_pointer): Update.
16416         (mips_save_reg_p): Update.
16417         (mips_compute_frame_info): Update.
16418         (mips_frame_pointer_required): Update.
16419         (mips_expand_prologue): Update.
16420         (mips_expand_epilogue): Update.
16421         (mips_can_use_return_insn): Update.
16422         (mips_reorg_process_insns): Update.
16423         * config/v850/v850.c (compute_register_save_size): Update.
16424         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
16425         * config/mmix/mmix.c (along): Update.
16426         (mmix_expand_epilogue): Update.
16427         * config/bfin/bfin.c (legitimize_pic_address): Update.
16428         (must_save_p): Update.
16429         (stack_frame_needed_p): Update.
16430         (add_to_reg): Update.
16431         (bfin_expand_prologue): Update.
16432         * stmt.c (expand_asm_operands): Update.
16433         * reload1.c (reload): Update.
16434         (init_elim_table): Update.
16435
16436 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
16437
16438         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
16439
16440 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
16441
16442         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
16443         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
16444         (mov<mode>): Removed.
16445         (*movv4sf_internal): Likewise.
16446         (*movv2df_internal): Likewise.
16447
16448 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
16449
16450         * config.gcc (crx-*-elf): Remove deprecation.
16451
16452 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
16453
16454         * config/i386/cygming-crtend.c (register_frame_ctor): Register
16455         __gcc_deregister_frame with atexit.
16456         (deregister_frame_dtor): Remove.
16457
16458 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
16459             Nathan Sidwell  <nathan@codesourcery.com>
16460
16461         * config/rs6000/rs6000.opt (mspe): Remove Var property.
16462         (misel): Likewise.
16463         * config/rs6000/rs6000.h (rs6000_spe): Declare.
16464         (rs6000_isel): Likewise.
16465         * config/rs6000/rs6000.c (rs6000_spe): New variable.
16466         (rs6000_isel): New variable.
16467         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
16468
16469 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
16470
16471         PR c++/35758
16472         * c-common.c (handle_vector_size_attribute): Call
16473         lang_hooks.types.reconstruct_complex_type instead of
16474         reconstruct_complex_type.
16475         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
16476         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
16477         * langhooks.h (struct lang_hooks_for_types): Add
16478         reconstruct_complex_type hook.
16479         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
16480         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
16481
16482 2008-04-24  Richard Guenther  <rguenther@suse.de>
16483
16484         * c-common.h (check_builtin_function_arguments): Declare.
16485         * c-common.c (validate_nargs): New function.
16486         (check_builtin_function_arguments): Likewise.
16487         * c-typeck.c (build_function_call): Call
16488         check_builtin_function_arguments.
16489         * builtins.c (fold_builtin_classify): Remove error reporting code.
16490         (fold_builtin_unordered_cmp): Likewise.
16491         (fold_builtin_1): Likewise.
16492         (fold_builtin_n): Likewise.
16493
16494 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
16495
16496         PR tree-optimization/36008
16497         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
16498         the original op1, rather than delta by step.
16499
16500 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
16501             Sebastian Pop  <sebastian.pop@amd.com>
16502
16503         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
16504         eliminate_local_variables_stmt, eliminate_local_variables,
16505         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
16506         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
16507         of code delimited by two edges in the CFG.
16508         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
16509         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
16510         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
16511         the case of parallelisation of reductions.
16512         (expr_invariant_in_region_p): New.
16513
16514         * tree-flow.h (gather_blocks_in_sese_region): Declared.
16515         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
16516
16517 2008-04-24  Ira Rosen  <irar@il.ibm.com>
16518             Richard Guenther  <rguenther@suse.de>
16519
16520         PR tree-optimization/36034
16521         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
16522         incapable of dealing with loads with gaps.
16523
16524 2008-04-24  Rafael Espíndola  <espindola@google.com>
16525
16526         * tree-flow.h (vrp_evaluate_conditional): Change signature.
16527         * tree-ssa-propagate.c (fold_predicate_in): Update call to
16528         vrp_evaluate_conditional.
16529         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
16530         (vrp_evaluate_conditional): Split the cond argument.
16531         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
16532         (simplify_stmt_for_jump_threading): Update call to
16533         vrp_evaluate_conditional.
16534
16535 2008-04-24  Ira Rosen  <irar@il.ibm.com>
16536
16537         PR tree-optimization/35982
16538         * tree-vect-analyze.c (vect_check_interleaving): Check that the
16539         interleaved data-refs are of the same type.
16540
16541 2008-04-24  Danny Smith  <dannysmith@users.net>
16542
16543         * c-format.c (check_format_info_main): Use strncmp rather than a
16544         magic prefix to handle multichar length specs.
16545         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
16546         Don't prefix "I64" and "I32" with '\0'.
16547
16548 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
16549
16550         PR target/36015
16551         * config/i386/i386.c (init_cumulative_args): Don't pass anything
16552         in registers for -m32 only if stdarg_p (fntype).
16553
16554 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
16555
16556         PR rtl-optimization/36006
16557         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
16558         temp to op0 in order to avoid invalid rtx sharing.
16559
16560 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
16561
16562         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
16563         check TREE_INVARIANT.
16564         * tree-gimple.c (is_gimple_address): New.
16565         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
16566         * tree-gimple.h (is_gimple_address): New.
16567         * tree.h (decl_address_invariant_p): New.
16568         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
16569         (build_string): Likewise.
16570         (decl_address_invariant_p): New, from is_gimple_invariant_address.
16571         (tree_invariant_p_1): Likewise.
16572         (save_expr): Use it.
16573         (tree_invariant_p): New.
16574         (skip_simple_arithmetic): Use it.
16575         (stabilize_reference_1): Use it.
16576         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
16577         simplify.
16578         (build1_stat): Drop code to compute TREE_INVARIANT.
16579         (build2_stat): Drop code to compute TREE_INVARIANT.
16580         (build3_stat): Drop code to compute TREE_INVARIANT.
16581         (build4_stat): Drop code to compute TREE_INVARIANT.
16582         (build5_stat): Drop code to compute TREE_INVARIANT.
16583         (build7_stat): Drop code to compute TREE_INVARIANT.
16584         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
16585         * tree.h (struct tree_base): Remove invariant_flag.
16586         (TREE_INVARIANT): Remove.
16587         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
16588         (fold_builtin_expect): Check TREE_CONSTANT.
16589         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
16590         * c-tree.h (c_expr_to_decl): Drop third parameter.
16591         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
16592         (build_c_cast): Don't set TREE_INVARIANT.
16593         (pop_init_level): Don't set TREE_INVARIANT.
16594         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
16595         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
16596         TREE_CONSTANT.
16597         (gimplify_init_constructor): Don't set TREE_INVARIANT.
16598         (gimplify_addr_expr): Adjust comment.
16599         * tree-mudflap.c (mf_build_string):
16600         * print-tree.c (print_node): Don't print TREE_INVARIANT.
16601         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
16602         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
16603         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
16604         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
16605         * langhooks.h (struct lang_hooks): Drop third parameter from
16606         expr_to_decl.
16607
16608 2008-04-23  Richard Guenther  <rguenther@suse.de>
16609
16610         PR tree-optimization/27799
16611         PR tree-optimization/32921
16612         PR tree-optimization/32624
16613         * tree-ssa-structalias.c (merge_smts_into): Only merge the
16614         SMTs aliases and the tag itself into the solution.
16615         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
16616         merge the points-to solution back into the SMT aliases.
16617         (may_alias_p): Use alias_set_subset_of instead of
16618         aliases_conflict_p.  A pointer which points to
16619         memory with alias set zero may access any variable.
16620
16621 2008-04-23  Richard Guenther  <rguenther@suse.de>
16622
16623         * alias.c (alias_set_subset_of): Correctly handle asking
16624         if zero is a subset of an alias set with zero child.
16625         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
16626         (compute_flow_insensitive_aliasing): Correctly walk all
16627         pointers.  Do not unnecessarily union sets.
16628
16629 2008-04-23  Richard Guenther  <rguenther@suse.de>
16630
16631         PR middle-end/36021
16632         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
16633
16634 2008-04-22  Tomas Bily  <tbily@suse.cz>
16635
16636         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
16637         unreachable case.
16638         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
16639         NON_LVALUE_EXPR.
16640         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
16641         * tree-ssa-structalias.c (get_constraint_for): Likewise.
16642         * tree-inline.c (estimate_num_insns_1): Likewise.
16643         * varasm.c (const_hash_1, compare_constant, copy_constant)
16644         (compute_reloc_for_constant, output_addressed_constants): Likewise.
16645         * emit-rtl.c (component_ref_for_mem_expr)
16646         (set_mem_attributes_minus_bitpos): Likewise.
16647         * expr.c (highest_pow2_factor, expand_expr_real_1, )
16648         (is_aligning_offset): Likewise.
16649         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
16650         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
16651         * dojump.c (do_jump): Likewise.
16652         * builtins.c (get_pointer_alignment, get_memory_rtx)
16653         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
16654         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
16655
16656 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
16657
16658         PR rtl-optimization/36017
16659         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
16660         expanding the library call.
16661
16662 2008-04-22  Ian Lance Taylor  <iant@google.com>
16663
16664         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
16665         than size_in_bytes.
16666
16667 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
16668
16669         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
16670         of LR/CTR moves for Power6.
16671
16672 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
16673
16674         PR middle-end/36003
16675         * passes.c (init_optimization_passes): Remove
16676         pass_fast_rtl_byte_dce.
16677
16678 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
16679
16680         PR target/29096
16681         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
16682         builtin functions to generate faster code.
16683         (_mm_cvtpu16_ps): Ditto.
16684         (_mm_cvtpi32x2_ps): Ditto.
16685
16686 2008-04-22  Nick Clifton  <nickc@redhat.com>
16687
16688         * common.opt (ftree-loop-distribution): Add Optimization
16689         attribute.
16690
16691         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
16692         (frv_expand_builtin_va_start): Likewise.
16693
16694         * config/arm/arm.c (thumb_find_work_register): Fix location of
16695         argument register count.
16696
16697 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
16698
16699         Support scheduling for ColdFire V1 and V3 microarchitecture.
16700         Improve scheduling of multiplication instructions.
16701
16702         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
16703         (mac): New instruction attribute.
16704         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
16705         (m68k_sched_mac): New variable.
16706         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
16707         Handle cfv1 and cfv3.
16708         (max_insn_size): New static variable.
16709         (struct _sched_ib): New type.
16710         (sched_ib): New static variable.
16711         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
16712         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
16713         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
16714         Update.
16715         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
16716         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
16717         new variables.  Update.
16718         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
16719         Add modeling of cfv3 instruction buffer.  Update.
16720         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
16721         * config/m68k/m68k.h (TUNE_CFV3): New macro.
16722         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
16723         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
16724         a particular reservation applies to.
16725         (type2): Reorganize attribute values.  Rename alu to alu_reg,
16726         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
16727         to mul_l and mul_w.
16728         (cf_ib_*): Simplify description of instruction buffer.
16729         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
16730         (cf_mem): Split into cf_mem1 and cf_mem2.
16731         (cf_v2_move_??): Rename to cfv12_alu_??.
16732         (cf_v2_move_l_??): Rename to cfv12_omove_??.
16733         (cf_v2_mul_??): Remove reservations.
16734         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
16735         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
16736         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
16737         appropriate place.
16738         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
16739         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
16740         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
16741         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
16742         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
16743         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
16744         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
16745         expansions of the above reservations for instructions of sizes
16746         1, 2 and 3 words.
16747
16748 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
16749
16750         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
16751
16752 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
16753
16754         * coverage.c: Include tree-pass.h.
16755         (coverage_counter_alloc): Print da_file_name to the dump file.
16756
16757 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
16758
16759         * sbitmap.c (sbitmap_range_empty_p): New function.
16760         * sbitmap.h (sbitmap_range_empty_p): New function.
16761         * bitmap.h: Now includes obstack.h.
16762
16763 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
16764             Kenneth Zadeck  <zadeck@naturalbridge.com>
16765
16766         * dbgcnt.def (ra_byte_scan): Added.
16767         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
16768         when the last hit happens for a counter.
16769         * timevar.def (TV_DF_BYTE_LR): New variable.
16770         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
16771         * passes.c (pass_fast_rtl_byte_dce): New pass.
16772         * fwprop.c (update_df): Added mode to call df_ref_create.
16773         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16774         DF_REF_EXTRACT_OFFSET.
16775         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
16776         DF_BYTE_LR_OUT, df_byte_lr): New macro.
16777         (df_mm): New enum.
16778         (df_ref_extract): Added mode field.
16779         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
16780         DF_REF_EXTRACT_OFFSET.
16781         (DF_REF_EXTRACT_MODE): New macro.
16782         (df_byte_lr_bb_info): New structure.
16783         (df_print_byte_regset, df_compute_accessed_bytes,
16784         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
16785         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
16786         df_byte_lr_simulate_uses,
16787         df_byte_lr_simulate_artificial_refs_at_top,
16788         df_byte_lr_simulate_artificial_refs_at_end,
16789         df_compute_accessed_bytes): New function.
16790         (df_ref_create): Add parameter.
16791         (df_byte_lr_get_bb_info): New inline function.
16792         * df-scan.c (df_ref_record, df_uses_record,
16793         df_ref_create_structure): Added mode parameter.
16794         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
16795         df_defs_record, df_uses_record, df_get_conditional_uses,
16796         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
16797         df_entry_block_defs_collect, df_exit_block_uses_collect):
16798         Added mode parameter to calls to df_ref_record, df_uses_record,
16799         df_ref_create_structure.
16800         (df_ref_equal_p, df_ref_compare): Added test for modes.
16801         (df_ref_create_structure): Added code to set mode.  Renamed
16802         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16803         DF_REF_EXTRACT_OFFSET.
16804         * df-core.c (df_print_byte_regset): New function.
16805         * df-byte-scan.c: New file.
16806         * df-problems.c (df_rd_transfer_function): Removed unnecessary
16807         calls to BITMAP_FREE.
16808         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
16809         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
16810         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
16811         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
16812         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
16813         df_byte_lr_local_compute, df_byte_lr_init,
16814         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16815         df_byte_lr_transfer_function, df_byte_lr_free,
16816         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
16817         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
16818         df_byte_lr_simulate_uses,
16819         df_byte_lr_simulate_artificial_refs_at_top,
16820         df_byte_lr_simulate_artificial_refs_at_end): New function.
16821         * dce.c (byte_dce_process_block): New function.
16822         (dce_process_block): au is now passed in rather than computed
16823         locally.  Changed loops that look at artificial defs to not look
16824         for conditional or partial ones, because there never are any.
16825         (fast_dce): Now is able to drive byte_dce_process_block or
16826         dce_process_block depending on the kind of dce being done.
16827         (rest_of_handle_fast_dce): Add parameter to fast_dce.
16828         (rest_of_handle_fast_byte_dce): New function.
16829         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
16830         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
16831
16832 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
16833
16834         PR fortran/35019
16835         * gcc.h: Added fortran options that take arguments to
16836         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
16837         macros.
16838
16839 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
16840
16841         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
16842         scalarization if on the LHS and not a full access.
16843
16844 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16845
16846         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
16847
16848 2008-04-18  Rafael Espíndola  <espindola@google.com>
16849
16850         * tree-vrp.c (find_case_label_index): Fix the binary search.
16851         (find_case_label_range): New.
16852         (vrp_visit_switch_stmt): Use find_case_label_range.
16853         (simplify_switch_using_ranges): Use find_case_label_range.
16854
16855 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16856
16857         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
16858         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
16859
16860 2008-04-18  Tom Tromey  <tromey@redhat.com>
16861
16862         PR libcpp/15500:
16863         * doc/cpp.texi (Implementation-defined behavior): Mention
16864         -finput-charset.
16865
16866 2008-04-18  Ian Lance Taylor  <iant@google.com>
16867
16868         * fold-const.c (pointer_may_wrap_p): New static function.
16869         (fold_comparison): Add another test for pointer overflow.  Use
16870         pointer_may_wrap_p to disable some false positives.
16871
16872 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
16873
16874         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
16875         (fname_as_string): Match updated cpp_interpret_string prototype.
16876         (fix_string_type): Support char16_t* and char32_t*.
16877         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
16878         derivative) nodes.  Register as builtin if C++0x.
16879         (c_parse_error): Support CPP_CHAR{16,32}.
16880         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
16881         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
16882         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
16883         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
16884         CTI_CHAR32_ARRAY_TYPE>: New elements.
16885         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
16886         char32_type_node, signed_char32_type_node, char16_array_type_node,
16887         char32_array_type_node): New defines.
16888         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
16889         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
16890         (lex_string): Support CPP_STRING{16,32}, match updated
16891         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
16892         (lex_charconst): Support CPP_CHAR{16,32}.
16893         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
16894         and CPP_STRING{16,32}.
16895
16896 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
16897
16898         PR bootstrap/35457
16899         * aclocal.m4: Regenerate.
16900         * configure: Regenerate.
16901
16902 2008-04-18  Jan Hubicka  <jh@suse.cz>
16903
16904         * except.c (dw2_size_of_call_site_table,
16905         sjlj_size_of_call_site_table): Use vector API for call_site_record.
16906
16907         * cgraphbuild.c (build_cgraph_edges): Update.
16908         * tree-pass.h: Update comment.
16909         * final.c (leaf_function_p): Update.
16910         (leaf_renumber_regs): Update.
16911         (rest_of_clean_state): Update.
16912         * omp-low.c (expand_omp_parallel): Update.
16913         * ipa-reference.c (analyze_function): Update.
16914         * reorg.c (find_end_label): Update.
16915         (optimize_skip): Update.
16916         (fill_simple_delay_slots): Update.
16917         (fill_simple_delay_slots): Update.
16918         (make_return_insns): Update.
16919         (dbr_schedule): Update.
16920         * gimple-low.c (record_vars_into): Update.
16921         * cfgbuild.c (make_edges): Update.
16922         * function.c (assign_stack_local): Update.
16923         (assign_parm_adjust_stack_rtl): Update.
16924         (locate_and_pad_parm): Update.
16925         (allocate_struct_function): Do not initialize stack_alignment_needed
16926         and preferred_stack_boundary here.
16927         (stack_protect_prologue): Update.
16928         (stack_protect_epilogue): Update.
16929         (expand_function_start): Initialize stack_alignment_needed,
16930         preferred_stack_boundary and max_jumptable_ents.
16931         (expand_function_end): Update.
16932         (free_after_compilation): Do not NULLify epilogue_delay_list.
16933         * function.h (struct rtl_data): Add stack_protect_guard,
16934         stack_alignment_needed,
16935         preferred_stack_boundary, epilogue_delay_list.
16936         (struct function): Remove value_histograms, stack_alignment_needed,
16937         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
16938         last_label_uid,
16939         unexpanded_var_list, stack_protect_guard.
16940         (current_function_epilogue_delay_list): Remove.
16941         * ipa-type-escape.c (analyze_function): Update.
16942         * gimplify.c (pop_gimplify_context): Update comment.
16943         * calls.c (expand_call): Update.
16944         (emit_library_call_value_1): Update.
16945         * except.c (set_nothrow_function_flags): Update.
16946         * cfgexpand.c (get_decl_align_unit): Update.
16947         (create_stack_guard): Update.
16948         (estimated_stack_frame_size): Update.
16949         (expand_used_vars): Update.
16950         (tree_expand_cfg): Free histogram earliers, init expansion variables.
16951         * explow.c (allocate_dynamic_stack_space): Update.
16952         * tree-ssa-live.c (remove_unused_locals): Update.
16953         * varasm.c (mark_constant_pool): Update.
16954         * tree-inline.c (remap_decls): Update.
16955         (initialize_cfun): Update.
16956         (declare_return_variable): Update.
16957         (inline_forbidden_p): Update.
16958         (expand_call_inline): Update.
16959         (declare_inline_vars): Update.
16960         (tree_function_versioning): Update.
16961         * tree-flow.h (value_histograms): New.
16962         (VALUE_HISTOGRAMS): New macro.
16963         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
16964         last_label_uid.
16965         * tree-cfg.c (set_bb_for_stmt): Update.
16966         (replace_by_duplicate_decl): Update.
16967         (move_block_to_fn): Update.
16968         (new_label_mapper): Update.
16969         (dump_function_to_file): Update.
16970         * ipa-struct-reorg.c (build_data_structure): Update.
16971         * cfgrtl.c (print_rtl_with_bb): Update.
16972         * reload1.c (reload): Update.
16973         (reload): Update.
16974         * config/i386/i386.c (setup_incoming_varargs_64,
16975         ix86_compute_frame_layout): Update.
16976         * config/arc/arc.c (arc_output_function_epilogue): Update.
16977
16978 2008-04-18  Marius Strobl <marius@FreeBSD.org>
16979
16980         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
16981         for FreeBSD as well.
16982         * gthr-posix95.h: Likewise.
16983
16984 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
16985
16986         PR rtl-optimization/35838
16987         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
16988         out the byte offset of the first subreg.
16989
16990 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
16991
16992         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
16993         to split_ti instead of three separate calls with single member arrays.
16994         (subti3 splitter): Ditto.
16995         (adddi3 splitter): Ditto with split_di.
16996         (subdi3 splitter): Ditto.
16997         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
16998         two separate calls with single member arrays.  Swap match_dup
16999         operands 1 and 2 to better fit into the array.
17000         (negdi2 splitter): Ditto with split_di.
17001         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
17002         two separate calls with single member arrays.  Swap match_dup operands
17003         6 and 7 to better fit into the array.
17004
17005 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
17006
17007         * config/i386/i386.c (sse_builtin_type): New.
17008         (bdesc_sse_args): Likewise.
17009         (bdesc_sse_3arg): Removed.
17010         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
17011         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
17012         IX86_BUILTIN_ROUNDPS.
17013         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
17014         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
17015         IX86_BUILTIN_ROUNDPS.
17016         (ix86_expand_sse_4_operands_builtin): Removed.
17017         (ix86_expand_sse_operands_builtin): New.
17018         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
17019         and CODE_FOR_sse4_1_roundps.
17020         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
17021         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
17022
17023 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
17024
17025         PR target/35907
17026         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
17027         regs before frame pop when needed.  If use_backchain_to_restore_sp
17028         then load backchain into a temp reg to restore vr and vrsave.  Add
17029         code to restore vr after frame pop if possible.
17030
17031 2008-04-17  Richard Guenther  <rguenther@suse.de>
17032
17033         * tree-vn.c (expressions_equal_p): Do not check type
17034         equality or compatibility before calling operand_equal_p.
17035         * fold-const.c (operand_equal_p): Check equivalence of
17036         integer constants before bailing out due to signedness or
17037         precision differences.
17038         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
17039         spurious differences in type qualification.  Ignore types
17040         for COMPONENT_REFs at all.
17041
17042 2008-04-17  Christian Bruel  <christian.bruel@st.com>
17043
17044         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
17045         msw_skip comparison.
17046
17047 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
17048
17049         PR c/35739
17050         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
17051         reg type.
17052
17053         PR tree-optimization/35899
17054         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
17055         rather than TREE_OPERAND.
17056
17057 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
17058
17059         PR target/35944
17060         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
17061         temporary registers.  Change operand predicate to general_operand.
17062         (remainderxf3): Ditto.
17063
17064 2008-04-16  Richard Guenther  <rguenther@suse.de>
17065
17066         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
17067         * tree-affine.c (aff_combination_expand): Look through some
17068         conversions.
17069
17070 2008-04-15  Doug Kwan  <dougkwan@google.com>
17071
17072         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
17073         for hex printing.
17074         * tree-pretty-print.c (dump_generic_node): Ditto.
17075         * final.c (output_addr_const): Ditto.
17076         * dwarf2out.c (output_cfi): Ditto.
17077         * c-pretty-print.c (pp_c_integer_constant): Ditto.
17078         * print-rtl.c (print_rtx): Ditto.
17079         * print-tree.c (print_node_brief, print_node): Ditto.
17080         * c-common.c (match_case_to_enum_1): Ditto.
17081         * sched-vis.c (print_value): Ditto.
17082         * config/i386/i386.c (print_operand): Cast to long unsigned int
17083         for hex printing.
17084
17085 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
17086         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
17087         MS Windows VirtualProtect function.
17088
17089 2008-04-15  Jan Hubicka  <jh@suse.cz>
17090
17091         * gengtype.c (write_root): Param_is argument is OK.
17092         * expr.c (expand_expr_real_1): Update call of get_exception_*.
17093         * function.h: Include varray.h
17094         (rtl_eh): New stucture based on except.c one.
17095         (call_site_record): New forward declaration and vector type.
17096         * calls.c (emit_call_1): Do not call
17097         note_current_region_may_contain_throw.
17098         * except.c (eh_status): Remove cur_region, try_region since they are
17099         unused.
17100         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
17101         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
17102         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
17103         Remove call_site_data_used, call_site_data_size.
17104         Turn call_site_record into vector in function.h.
17105         (note_current_region_may_contain_throw): Remove.
17106         (get_exception_pointer, get_exception_filter): Do not take struct
17107         function argument; update.
17108         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
17109         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
17110         build_post_landing_pads, dw2_build_landing_pads,
17111         sjlj_assign_call_site_values, sjlj_mark_call_sites,
17112         sjlj_emit_function_enter, sjlj_emit_function_enter,
17113         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
17114         sjlj_build_landing_pads, finish_eh_generation,
17115         remove_exception_handler_label, remove_eh_handler,
17116         maybe_remove_eh_handler, add_reachable_handler,
17117         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
17118         add_action_record, collect_one_action_chain, add_call_site,
17119         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
17120         sjlj_output_call_site_table, output_function_exception_table,
17121         * except.h (note_current_region_may_contain_throw): Remove
17122         (get_exception_pointer, get_exception_filter): Do not take struct
17123         function argument.
17124         * Makefile.in (GTFILES): Put varargs before struct function.
17125
17126 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17127
17128         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
17129         punt for STRING_CST.
17130         (get_constraint_for): Deal with STRING_CST here instead.
17131
17132 2008-04-15  Richard Guenther  <rguenther@suse.de>
17133
17134         * tree-ssa-propagate.c (substitute_and_fold): Substitute
17135         statements in a basic-block with a backward walk.  Do not
17136         substitute into dead statements but instead remove those.
17137
17138 2008-04-15  Richard Guenther  <rguenther@suse.de>
17139
17140         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
17141         to zero, thus disable creation of SFTs.
17142
17143 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
17144
17145         * tree-predcom.c (suitable_reference_p): Return false if the
17146         reference can throw.
17147
17148 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
17149
17150         PR c/35751
17151         * c-decl.c (finish_decl): If extern or static var has variable
17152         size, set TREE_TYPE (decl) to error_mark_node.
17153
17154 2008-04-15  Rafael Espíndola  <espindola@google.com>
17155
17156         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
17157         variable arg1.
17158
17159 2008-04-15  Richard Guenther  <rguenther@suse.de>
17160
17161         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
17162         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
17163         (visit_reference_op_load): Do walk vuse-vdef chains on
17164         vn_reference_lookup.
17165         (visit_reference_op_store): But do not here.
17166         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
17167         vn_reference_lookup.
17168         (vn_lookup_with_vuses): But do so here.
17169
17170 2008-04-14  Ian Lance Taylor  <iant@google.com>
17171
17172         * fold-const.c (fold_overflow_warning): Remove assertion.
17173
17174 2008-04-15  Ben Elliston  <bje@au.ibm.com>
17175
17176         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
17177         temp1 local variables.
17178
17179 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
17180
17181         PR target/35661
17182         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
17183         ".text.unlikely" section as executable.
17184
17185 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
17186
17187         * config/ia64/ia64.c (rtx_needs_barrier): Handle
17188         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
17189         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
17190         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
17191         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
17192         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
17193         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
17194
17195 2008-04-14  Ian Lance Taylor  <iant@google.com>
17196
17197         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
17198         * fold-const.c (fold_comparison): If appropriate, test
17199         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
17200         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
17201         reassociating a pointer type.
17202         * doc/invoke.texi (Optimize Options): Document that
17203         -fstrict-overflow applies to pointer wraparound.
17204
17205 2008-04-13  Jan Hubicka  <jh@suse.cz>
17206
17207         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
17208
17209 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
17210
17211         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
17212         we are going to "save the world".
17213
17214 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
17215
17216         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
17217         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
17218         operand 0 constraint, not "=".
17219
17220 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
17221
17222         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
17223
17224 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
17225
17226         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
17227         of size of positions_needed * CHAR_BIT.
17228
17229 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
17230
17231         PR middle-end/35897
17232         * dse.c (store_info): Change positions_needed to unsigned
17233         HOST_WIDE_INT.
17234         (lowpart_bitmask): New.
17235         (record_store): Cast to unsigned HOST_WIDE_INT for
17236         positions_needed.  Assert width <= size of positions_needed *
17237         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
17238         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
17239         lowpart_bitmask to set mask.
17240
17241 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
17242
17243         * config/bfin/constraints.md: New file.
17244         * config/bfin/bfin.md: Include it.
17245         (adddi3): Use satisfies_constraint functions instead of the old macros.
17246         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
17247         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
17248         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
17249         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
17250         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
17251         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
17252         EXTRA_CONSTRAINT): Delete.
17253         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
17254         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
17255         of the old macros.
17256         * config/bfin/bfin.c: Include "tm-constrs.h".
17257         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
17258         Use satisfies_constraint functions instead of the old macros.
17259         * doc/md.texi (Blackfin Constraints): Update file name reference.
17260
17261 2008-04-11  Richard Guenther  <rguenther@suse.de>
17262
17263         PR tree-optimization/35869
17264         * tree-vrp.c (execute_vrp): Move switch statement update after
17265         jump threading.  Schedule another cfg cleanup run.
17266
17267 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
17268
17269         PR c/35744
17270         * attribs.c (decl_attributes): Return early on errorneous node.
17271
17272 2008-04-10  Oleg Ryjkov  <olegr@google.com>
17273
17274         * tree.h (struct tree_base): Added a new flag default_def_flag.
17275         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
17276
17277 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
17278
17279         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
17280
17281 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17282
17283         PR target/35768
17284         * pa.md: Define mode iterator P.  Define mode attribute dwc.
17285         (dcacheflush): Update pattern to use iterator P and attribute dwc.
17286         (icacheflush): Likewise.
17287         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
17288         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
17289
17290 2008-04-11  Ben Elliston  <bje@au.ibm.com>
17291
17292         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
17293
17294 2008-04-10  Rafael Espíndola  <espindola@google.com>
17295
17296         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
17297         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
17298         (extract_range_from_expr): The same.
17299
17300 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
17301
17302         * config/mips/mips.md (GPR2): New mode iterator.
17303         (seq): Add comment.
17304         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
17305         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
17306         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
17307         Rewrite these to take two modes, the mode of comparison and the
17308         mode of the destination.
17309         * config/mips/mips.c (mips_expand_scc): Instead of having
17310         paradoxical subreg as destination, expand "narrowing" scc if mode
17311         of comparison is SI and target is requested in DI mode.
17312         (mips_emit_int_order_test): Update comment.  Make mode of
17313         comparison match CMP0 rather than TARGET.  When creating inverse
17314         target use mode of TARGET.
17315
17316 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
17317
17318         * gcov-dump.c (tag_summary): Only print summaries for the first
17319         GCOV_COUNTERS_SUMMABLE counters.
17320
17321 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
17322
17323         * config/i386/i386.md (absneg): New code iterator.
17324         (absnegprefix): New code attribute.
17325         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
17326         patterns using absneg code iterator.
17327         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
17328         using absneg code iterator.
17329         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
17330         *neg<mode>2 patterns using absneg code iterator.
17331         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
17332         *negextendsfdf2 patterns using absneg code iterator.
17333         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
17334         *negextendsfxf2 patterns using absneg code iterator.
17335         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
17336         *negextendsfdf2 patterns using absneg code iterator.
17337         * config/i386/sse.md (<code><mode>2): Macroize expander from
17338         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
17339
17340 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
17341
17342         * config/s390/s390.h: Remove the remains of the recent search
17343         & replace action of current_function_outgoing_args_size.
17344
17345 2008-04-10  Ira Rosen  <irar@il.ibm.com>
17346
17347         PR tree-optimization/35821
17348         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
17349         NEW_STMT_LIST is not NULL.
17350
17351 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
17352
17353         PR libstdc++/35597
17354         * toplev.c (process_options): Remove -ffunction-sections debugging
17355         warning.
17356
17357 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
17358
17359         PR middle-end/PR28690
17360         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
17361         than gen_rtx_fmt_ee to perform more canonicalizations.
17362
17363 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17364
17365         PR driver/35665
17366         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
17367
17368 2008-04-09  Richard Guenther  <rguenther@suse.de>
17369
17370         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
17371         (dump_function_to_file): Dump function arguments with types.
17372
17373 2008-04-08  Richard Guenther  <rguenther@suse.de>
17374
17375         * fold-const.c (fold_widened_comparison): Do not allow
17376         sign-changes that change the result.
17377
17378 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
17379
17380         PR target/35839
17381         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
17382         kinds of indirect references.
17383
17384 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
17385
17386         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
17387         GNU Fortran language string.
17388
17389 2008-04-08  Rafael Espíndola  <espindola@google.com>
17390
17391         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
17392         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
17393         * tree.h (tree_call_nonnegative_warnv_p): New.
17394
17395 2008-04-08  Jan Hubicka  <jh@suse.cz>
17396
17397         * function.c (free_after_compilation): Clear out regno_reg_rtx
17398         pointer.
17399
17400 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
17401
17402         Revert
17403         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
17404
17405         PR middle-end/PR28690
17406         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
17407         same precedence as REG_POINTER and MEM_POINTER operands.
17408
17409 2008-04-08  Richard Guenther  <rguenther@suse.de>
17410
17411         PR middle-end/35834
17412         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
17413         for adding index to base.
17414
17415 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
17416
17417         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
17418         (MINGW_ENABLE_EXECUTE_STACK): New.
17419         (IN_LIBGCC2): For libgcc include windows.h file for
17420         function declarations.
17421
17422 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
17423
17424         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
17425         and tem2 if tem1 is not a REG or MULT.
17426
17427 2008-04-08  Jan Hubicka  <jh@suse.cz>
17428
17429         * function.h (incomming_args): Break out of struct function.
17430         (function_subsections): Break out of struct function.
17431         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
17432         return_rtx and hard_reg_initial_vals from struct function.
17433         Kill inl_max_label_num.
17434         (current_function_pops_args, current_function_args_info,
17435         current_function_args_size, current_function_args_size,
17436         current_function_pretend_args_size,
17437         current_function_outgoing_args_size,
17438         current_function_internal_arg_pointer, current_function_return_rtx):
17439         Kill compatibility accestor macros.
17440         * builtins.c (expand_builtin_apply_args_1): Update.
17441         (expand_builtin_next_arg): Update.
17442         * df-scan.c (df_get_call_refs): Update.
17443         * dbxout.c (dbxout_function_end): Update.
17444         * dwarf2out.c (dwarf2out_switch_text_section): Update.
17445         (output_line_info): Update.
17446         (secname_for_decl): Update.
17447         (dwarf2out_var_location): Update.
17448         * function.c (free_after_compilation): Update.
17449         (assign_parm_find_stack_rtl): Update.
17450         (assign_parms): Update.
17451         (expand_dummy_function_end): Update.
17452         (expand_function_end): Update.
17453         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
17454         (expand_call): Update.
17455         (emit_library_call_value_1): Update.
17456         (store_one_arg): Update.
17457         * varasm.c (initialize_cold_section_name): Update.
17458         (unlikely_text_section): Update.
17459         (unlikely_text_section_p): Update.
17460         (assemble_start_function): Update.
17461         (assemble_end_function): Update.
17462         (default_section_type_flags): Update.
17463         (switch_to_section): Update.
17464         * integrate.c (set_decl_abstract_flags): Update.
17465         (get_hard_reg_initial_val): Update.
17466         (has_hard_reg_initial_val): Update.
17467         (allocate_initial_values): Update.
17468         * resource.c (init_resource_info): Update.
17469         * config/alpha/alpha.c (NUM_ARGS): Update.
17470         (direct_return): Update.
17471         (alpha_va_start): Update.
17472         (alpha_sa_size): Update.
17473         (alpha_initial_elimination_offset): Update.
17474         (alpha_expand_prologue): Update.
17475         (alpha_start_function): Update.
17476         (alpha_expand_epilogue): Update.
17477         (unicosmk_initial_elimination_offset):
17478         * config/alpha/alpha.md (call expander): Update.
17479         * config/s390/s390.c (s390_register_info): Update.
17480         (s390_register_info): Update.
17481         (s390_frame_info): Update.
17482         (s390_initial_elimination_offset): Update.
17483         (s390_build_builtin_va_list): Update.
17484         (s390_va_start): Update.
17485         * config/spu/spu.c (direct_return): Update.
17486         (spu_expand_prologue): Update.
17487         (spu_initial_elimination_offset): Update.
17488         (spu_build_builtin_va_list): Update.
17489         (spu_va_start): Update.
17490         * config/sparc/sparc.c (sparc_init_modes): Update.
17491         (sparc_compute_frame_size): Update.
17492         (function_value): Update.
17493         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
17494         * config/i386/i386.md (return expander): Update.
17495         * config/i386/i386.c (ix86_va_start): Update.
17496         (ix86_can_use_return_insn_p): Update.
17497         (ix86_compute_frame_layout): Update.
17498         (ix86_expand_epilogue): Update.
17499         * config/sh/sh.c (output_stack_adjust): Update.
17500         (calc_live_regs): Update.
17501         (sh_expand_prologue): Update.
17502         (sh_builtin_saveregs): Update.
17503         (sh_va_start): Update.
17504         (initial_elimination_offset): Update.
17505         (sh_allocate_initial_value): Update.
17506         (sh_function_ok_for_sibcall): Update.
17507         (sh_get_pr_initial_val): Update.
17508         * config/sh/sh.md (return expander): Update.
17509         * config/avr/avr.c (frame_pointer_required_p): UPdate.
17510         * config/crx/crx.c (crx_compute_frame): UPdate.
17511         (crx_initial_elimination_offset): UPdate.
17512         * config/xtensa/xtensa.c (compute_frame_size): Update
17513         (xtensa_builtin_saveregs): Update.
17514         (xtensa_va_start): Update.
17515         (order_regs_for_local_alloc): Update.
17516         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
17517         (xstormy16_expand_builtin_va_start): Update.
17518         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
17519         * config/m68hc11/m68hc11.md (return expanders): Update.
17520         * config/m68hc11/m68hc11.c (expand_prologue): Update.
17521         (expand_epilogue): Update.
17522         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
17523         (cris_simple_epilogue): Update.
17524         (cris_expand_prologue): Update.
17525         (cris_expand_epilogue): Update.
17526         * config/iq2000/iq2000.c (iq2000_va_start): Update.
17527         (compute_frame_size): Update.
17528         * config/mt/mt.c (mt_compute_frame_size): Update.
17529         * config/mn10300/mn10300.c (expand_prologue): Update.
17530         (expand_epilogue): Update.
17531         (initial_offset): Update.
17532         (mn10300_builtin_saveregs):
17533         * config/mn10300/mn10300.md (return expander): Update.
17534         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
17535         (ia64_initial_elimination_offset): Update.
17536         (ia64_initial_elimination_offset): Update.
17537         (ia64_expand_prologue): Update.
17538         * config/m68k/m68k.md (return expander): Update.
17539         * config/rs6000/rs6000.c (rs6000_va_start): Update.
17540         (rs6000_stack_info): Update.
17541         * config/mcore/mcore.c (layout_mcore_frame): Update.
17542         (mcore_expand_prolog): Update.
17543         * config/arc/arc.c (arc_compute_frame_size): Update.
17544         * config/score/score3.c (score3_compute_frame_size): Update.
17545         * config/score/score7.c (score7_compute_frame_size): Update.
17546         * config/arm/arm.c (use_return_insn): Update.
17547         (thumb_find_work_register): Update.
17548         (arm_compute_save_reg_mask): Update.
17549         (arm_output_function_prologue): Update.
17550         (arm_output_epilogue): Update.
17551         (arm_size_return_regs): Update.
17552         (arm_get_frame_offsets): Update.
17553         (arm_expand_prologue): Update.
17554         (thumb_exit): Update.
17555         (thumb_unexpanded_epilogue): Update.
17556         (thumb1_output_function_prologue): Update.
17557         * config/pa/pa.md (return expander): Update.
17558         * config/pa/pa.c (compute_frame_size): Update.
17559         (hppa_builtin_saveregs): Update.
17560         * config/mips/mips.c (mips_va_start): Update.
17561         (mips16_build_function_stub): Update.
17562         (mips_compute_frame_info): Update.
17563         (mips_restore_gp): Update.
17564         (mips_output_function_prologue): Update.
17565         (mips_expand_prologue): Update.
17566         * config/v850/v850.c (compute_frame_size): Update.
17567         (expand_prologue): * config/mmix/mmix.c (along): update.
17568         (mmix_initial_elimination_offset): update.
17569         (mmix_reorg): update.
17570         (mmix_use_simple_return): update.
17571         (mmix_expand_prologue): update.
17572         (mmix_expand_epilogue): Update.
17573         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
17574         (emit_link_insn): Update.
17575
17576 2008-04-08  Anatoly Sokolov <aesok@post.ru>
17577
17578         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
17579         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
17580         instructions.
17581         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
17582         atmega103 device.
17583
17584 2008-04-07  Jan Hubicka  <jh@suse.cz>
17585
17586         * function.h (rtl): Rename to x_rtl.
17587         (crtl): New define.
17588         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17589         frame_offset, stack_check_probe_note, arg_pointer_save_area,
17590         used_temp_slots avail_temp_slots, temp_slot_level,
17591         nonlocal_goto_handler_labels): Update accesstors.
17592         (rtl): New global variable.
17593         (struct function): Move some fileds to rtl_data.
17594         (get_arg_pointer_save_area): Update prototype.
17595         * builtins.c (expand_builtin_setjmp_receiver): Update call of
17596         get_arg_pointer_save_area.
17597         * expr.c (init_expr): Update
17598         * function.c (get_frame_size): Update
17599         (assign_stack_local): Update
17600         (expand_function_end): Update.
17601         (get_art_pointer_save_area): Update
17602         * function.h
17603         * emit-rtl.c (rtl): Declare.
17604         (regno_reg_rtx): Declare.
17605         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17606         Update.
17607         (gen_reg_rtx): Update.
17608         * varasm.c (n_deferred_constatns): Update accestor.
17609         (init_varasm_status): Do not allocate varasm_status.
17610         (force_const_mem, get_pool_size, output_constant_pool): Update.
17611         * stmt.c (force_label_rtx): Do not use x_ prefixes.
17612         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17613         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
17614         * sparc/sparc.h (INIT_EXPANDERS): Update.
17615         * ia64/ia64.h (INIT_EXPANDERS): Update.
17616
17617 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
17618
17619         * reload.c (push_secondary_reload): Add missing break to for loop.
17620
17621 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
17622
17623         PR middle-end/PR28690
17624         * rtlanal.c: Update copyright years.
17625         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
17626         as REG_POINTER and MEM_POINTER operands.
17627         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
17628         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
17629         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
17630         * gcse.c: Update copyright years.
17631         (pre_delete): Call gen_reg_rtx_and_attrs.
17632         (hoist_code): Likewise.
17633         (build_store_vectors): Likewise.
17634         (delete_store): Likewise.
17635         * loop-invariant.c (move_invariant_reg): Likewise.
17636         Update copyright years.
17637
17638 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
17639
17640         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
17641         control string instead of quoted.
17642
17643 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
17644
17645         * doc/rtl.texi: Rewrite of subreg section.
17646
17647 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
17648
17649         PR/35842
17650         * config/i386/i386.c (legitimize_pic_address): Add treating
17651         of dllimport SYM_REF's.
17652         (legitimize_dllimport_symbol): Add prototype.
17653
17654 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
17655
17656         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
17657         reference in constructor with non self-referential type.
17658
17659 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
17660
17661         Removal of Return with Depressed Stack Pointer support
17662         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
17663         (ECF_SP_DEPRESSED): Likewise.
17664         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
17665         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
17666         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
17667         (expand_call): Do not test ECF_SP_DEPRESSED.
17668         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
17669         * function.c (keep_stack_depressed): Delete.
17670         (handle_epilogue_set): Likewise.
17671         (update_epilogue_consts): Likewise.
17672         (emit_equiv_load): Likewise.
17673         (thread_prologue_and_epilogue_insns): Remove support for Return with
17674         Depressed Stack Pointer.
17675         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
17676
17677 2008-04-06  Richard Guenther  <rguenther@suse.de>
17678
17679         PR tree-optimization/35400
17680         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
17681         information from SSA_NAMEs.
17682
17683 2008-04-06  Anatoly Sokolov <aesok@post.ru>
17684
17685         * config/avr/avr.h (avr_mega_p): Remove declaration.
17686         (AVR_MEGA): Remove macro.
17687         * config/avr/avr.c (avr_mega_p): Remove variable.
17688         (avr_override_options): Remove inicializion of avr_mega_p.
17689         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
17690         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
17691         (avr_jump_mode): (Ditto.).
17692         (avr_output_progmem_section_asm_op): (Ditto.).
17693         (avr_asm_init_sections): (Ditto.).
17694         (avr_asm_init_sections): (Ditto.).
17695         (avr_rtx_costs): (Ditto.).
17696         * config/avr/avr.md: (Ditto.).
17697         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
17698         '__AVR_MEGA__'.
17699
17700 2008-04-06  Richard Guenther  <rguenther@suse.de>
17701
17702         PR tree-optimization/35842
17703         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
17704         is_gimple_invariant_address.
17705
17706 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17707
17708         * gcc.c (default_compilers): Sync Fortran extensions list with
17709         that in fortran/lang-specs.h.
17710         * doc/invoke.texi: Likewise.
17711         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
17712         * dwarf2out.c (gen_compile_unit_die): Likewise.
17713
17714 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
17715
17716         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
17717
17718 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
17719
17720         PR target/12329
17721         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
17722         attribute is used for nested functions.
17723
17724 2008-04-05  Jan Hubicka  <jh@suse.cz>
17725
17726         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
17727
17728         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
17729         letter argument.
17730         (dump_files): Update.
17731         (enable_rtl_dump_file): Do not accept letter argument.
17732         * tree-pass.h (dump_file_info): Remove letter argument.
17733         * toplev.c (decode_d_option): Update -da handling.
17734         * toplev.h (enable_rtl_dump_file): Update prototype.
17735         * passes.c (register_one_dump_file): Do not accept IPA argument; work
17736         it out based on pass type.
17737         (register_dump_files_1): Likewise.
17738         (init_optimization_passes): Update register_one_dump_file calls.
17739         (execute_one_pass): Sanity check that IPA passes are called at IPA
17740         level and RTL passes at RTL level.
17741         (execute_pass_list): IPA pass can not be after or subpass of
17742         GIMPLE/RTL pass.
17743         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
17744         disallov RTL subpasses of IPA subpasses.
17745
17746 2008-04-05  Ben Elliston  <bje@au.ibm.com>
17747
17748         * tree-cfg.c (need_fake_edge_p): Return false for calls to
17749         builtins that return exactly once and do not throw. Cache call to
17750         call_expr_flags.
17751
17752 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
17753
17754         PR rtl-optimization/34916
17755         PR middle-end/35519
17756         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
17757         between instruction pairs.
17758
17759 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
17760
17761         * doc/invoke.texi: Document -mbitops for SH.
17762         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
17763         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
17764         * config/sh/sh.c (print_operand): Add %t operand code.
17765         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
17766         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
17767         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
17768         (extendqihi2): Likewise.
17769         (movqi_i): Likewise.
17770         (insv): Use bset, bclr and bst instructions for SH2A if possible.
17771         (extv): Use bld instruction for SH2A if possible.
17772         (extzv): Likewise.
17773         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
17774         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
17775         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
17776         (bset.b, bclr.b): Define peepholes.
17777         * config/sh/sh.opt (mbitops): New option.
17778
17779 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
17780
17781         PR target/35620
17782         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
17783         and view convert expression.
17784
17785 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
17786
17787         PR target/35364
17788         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
17789
17790 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
17791
17792         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
17793
17794         * config/i386/cpuid.h (bit_AES): New.
17795         (bit_PCLMUL): Likewise.
17796
17797         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
17798         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
17799         SSE2 if AES or PCLMUL is enabled.
17800         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
17801         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17802         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
17803         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
17804         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
17805         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
17806         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17807         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
17808         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
17809         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
17810         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
17811         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
17812         __builtin_ia32_aeskeygenassist128 and
17813         __builtin_ia32_pclmulqdq128.
17814         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
17815         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
17816         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
17817
17818         * config/i386/i386.h (TARGET_AES): New.
17819         (TARGET_PCLMUL): Likewise.
17820         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
17821
17822         * config/i386/i386.md (UNSPEC_AESENC): New.
17823         (UNSPEC_AESENCLAST): Likewise.
17824         (UNSPEC_AESDEC): Likewise.
17825         (UNSPEC_AESDECLAST): Likewise.
17826         (UNSPEC_AESIMC): Likewise.
17827         (UNSPEC_AESKEYGENASSIST): Likewise.
17828         (UNSPEC_PCLMUL): Likewise.
17829
17830         * config/i386/i386.opt (maes): New.
17831         (mpclmul): Likewise.
17832
17833         * config/i386/sse.md (aesenc): New pattern.
17834         (aesenclast): Likewise.
17835         (aesdec): Likewise.
17836         (aesdeclast): Likewise.
17837         (aesimc): Likewise.
17838         (aeskeygenassist): Likewise.
17839         (pclmulqdq): Likewise.
17840
17841         * config/i386/wmmintrin.h: New.
17842
17843         * doc/extend.texi: Document AES and PCLMUL built-in function.
17844
17845         * doc/invoke.texi: Document -maes and -mpclmul.
17846
17847 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
17848
17849         * function.c (free_after_parsing): Replace with
17850         cxx_push_function_context from C++ front-end.
17851         (allocate_struct_function): Don't call langhook.
17852         * langhooks.h (struct lang_hooks_for_functions): Delete.
17853         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
17854         member "function".
17855         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
17856         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
17857         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
17858         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
17859         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
17860         remove LANG_HOOKS_FUNCTION_INITIALIZER.
17861         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
17862
17863         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
17864         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
17865
17866 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
17867
17868         PR c/35440
17869         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
17870         for all types.
17871
17872 2008-04-04  Richard Guenther  <rguenther@suse.de>
17873
17874         PR middle-end/35823
17875         * fold-const.c (optimize_minmax_comparison): Use the correct
17876         type for the constant in the simplified comparison.
17877
17878 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
17879
17880         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
17881         Pass L2 size as "--param l2-cache-size" to the compiler.
17882         (decode_l2_cache): New function to decode L2 cache parameters using
17883         0x8000006 extended cpuid function.
17884         (detect_caches_amd): Determine parameters of L2 cache using
17885         decode_l2_caches function.
17886         (decode_caches_intel): Decode L2 cache parameters.
17887         (detect_caches_intel): Determine L2 cache parameters using
17888         decode_caches_intel and decode_l2_caches functions.
17889
17890 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
17891
17892         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
17893         secondary input reload for subword loads from the constant pool.
17894
17895 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
17896
17897         PR target/35713
17898         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
17899           constants of the appropriate size for runtime calculations.
17900
17901         PR c/35712
17902         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
17903           decimal-float literal constant zero.
17904
17905 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
17906
17907         PR c/35738
17908         * c-parser.c (c_parser_omp_atomic): Call
17909         default_function_array_conversion on the RHS.
17910
17911         PR middle-end/35818
17912         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
17913         call is_variable_sized if decl has incomplete type.
17914
17915 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
17916
17917         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
17918
17919 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
17920
17921         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
17922         iterators.
17923         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
17924         (sgt<u>): Merge sgt and sgtu into new expander.
17925         (sgt, sgtu): Remove expanders.
17926         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
17927         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
17928         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
17929         *sgtu_<mode>_mips16 into new pattern.
17930         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
17931         (sge<u>): Merge sge and sgeu into new expander.
17932         (sge, sgeu): Remove expanders.
17933         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
17934         new pattern.
17935         (*sge_<mode>, second *sge_<mode>): Remove patterns.
17936         (slt<u>): Merge slt and sltu into new expander.
17937         (slt, sltu): Remove expanders.
17938         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
17939         (*slt_<mode>, *sltu_<mode>): Remove patterns.
17940         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
17941         *sltu_<mode>_mips16 into new pattern.
17942         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
17943         (sle<u>): Merge sle and sleu into new expander.
17944         (sle, sleu): Remove expanders.
17945         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
17946         (*sle_<mode>, *sleu_<mode>): Remove patterns.
17947         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
17948         *sleu_<mode>_mips16 into new pattern.
17949         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
17950
17951 2008-04-03  Jan Hubicka  <jh@suse.cz>
17952
17953         PR tree-optimization/35795
17954         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
17955         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17956         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17957         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17958         * score/score3.c (score3_output_mi_thunk): Likewise.
17959         * score/score7.c (score7_output_mi_thunk): Likewise.
17960         * mips/mips.c (mips_output_mi_thunk): Likewise.
17961
17962 2008-04-03  Richard Guenther  <rguenther@suse.de>
17963
17964         * tree-vrp.c (extract_range_from_unary_expr): Handle all
17965         conversions.  Simplify code.
17966
17967 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
17968
17969         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
17970
17971 2008-04-03  Tom Tromey  <tromey@redhat.com>
17972             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17973
17974         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17975         * config/bfin/t-bfin-linux (generated_files): Add
17976         linux-sysroot-suffix.h.
17977         * doc/install.texi (Prerequisites): Require make 3.80.
17978         * doc/sourcebuild.texi (Front End Directory): Document new
17979         variable.
17980         * Makefile.in (generated_files): New variable.
17981         (ALL_HOST_OBJS): New variable.
17982         ($(ALL_HOST_OBJS)): New target.
17983
17984 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
17985
17986         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
17987         (remap_block): Call id->transform_lang_insert_block instead
17988         of langhook.
17989         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
17990         Set id.transform_lang_insert_block to NULL.
17991         (clone_body): Move to cp/optimize.c
17992         * tree-inline.h (struct copy_body_data): Change
17993         transform_lang_insert_block to function pointer.
17994         (copy_generic_body, copy_decl_no_change): Export.
17995         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
17996         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
17997         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
17998
17999         * c-tree.h (insert_block): Kill.
18000         * c-decl.c (insert_block): Kill.
18001
18002 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
18003
18004         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
18005         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
18006         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
18007         argument.
18008         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
18009         argument, call {push,pop}_function_context from here.
18010         * c-parser.c: Use c_{push,pop}_function_context.
18011
18012         * function.c (push_function_context_to): Move meat ...
18013         (push_function_context): ... here.  Simplify.
18014         * function.c (pop_function_context_from): Move meat ...
18015         (pop_function_context): ... here.  Simplify.
18016         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
18017         leave_nested).
18018         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
18019         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
18020         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
18021         * tree.h (push_function_context_to, pop_function_context_from): Remove.
18022
18023 2008-04-03  Ben Elliston  <bje@au.ibm.com>
18024
18025         * expmed.c (extract_force_align_mem_bit_field): Remove.
18026
18027 2008-04-03  Richard Guenther  <rguenther@suse.de>
18028
18029         PR middle-end/35800
18030         * expr.h (try_casesi): Adjust prototype.
18031         * expr.c (try_casesi): Take fallback label as extra parameter.
18032         Use that for gen_casesi if default_label is NULL.
18033         * stmt.c (expand_case): Pass fallback label to try_casesi,
18034         make sure to fill gaps with a fallback label if default_label
18035         is not present.
18036
18037 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
18038
18039         PR target/35801
18040         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
18041
18042 2008-04-03  Ben Elliston  <bje@au.ibm.com>
18043
18044         * expmed.c (extract_split_bit_field): Remove if (0) code.
18045         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
18046         (do_ds_constraint): Likewise.
18047
18048 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
18049
18050         * doc/cppopts.texi (-dU): Document.
18051         * c-common.h (flag_dump_macros): Update comment.
18052         * c-opts.c (handle_OPT_d): Handle -dU.
18053         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
18054         dump_queued_macros, cb_used_define, cb_used_undef): New.
18055         (init_pp_output): Handle -dU.
18056         (cb_line_change): Call dump_queued_macros.
18057         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
18058
18059 2008-04-02  Anatoly Sokolov <aesok@post.ru>
18060
18061         * config/avr/predicates.md (io_address_operand): New predicate.
18062         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
18063         * config/avr/avr.c (avr_io_address_p): Remove function.
18064         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
18065         'avr_io_address_p' function.
18066         (out_movhi_r_mr): (Ditto.).
18067         (out_movqi_mr_r): (Ditto.).
18068         (out_movhi_mr_r): (Ditto.).
18069         (avr_address_cost): (Ditto.).
18070
18071 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
18072
18073         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
18074         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
18075         in 32bit mode when XMM registers are available to avoid store
18076         forwarding stalls.
18077         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
18078         corresponding post-reload splitters.
18079
18080 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
18081
18082         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
18083         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
18084         __builtin_ia32_roundss.
18085         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
18086         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
18087         __builtin_ia32_roundss.
18088         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
18089         IX86_BUILTIN_SHUFPD here.
18090
18091 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
18092
18093         * config/i386/i386.md (plogic): New.
18094         (plogicprefix): Likewise.
18095
18096         * config/i386/mmx.md (mmx_<code><mode>3): New.
18097         (mmx_and<mode>3): Removed.
18098         (mmx_ior<mode>3): Likewise.
18099         (mmx_xor<mode>3): Likewise.
18100
18101         * config/i386/sse.md (<code><mode>3): New.
18102         (*<code><mode>3): Likewise.
18103         (*<code><mode>3): Likewise.
18104         (<code><mode>3): Likewise.
18105         (*sse_<code><mode>3): Likewise.
18106         (*sse2_<code><mode>3): Likewise.
18107         (<code>tf3): Likewise.
18108         (*<code>tf3): Likewise.
18109         (and<mode>3): Likewise.
18110         (*and<mode>3): Likewise.
18111         (ior<mode>3): Removed.
18112         (*ior<mode>3): Likewise.
18113         (xor<mode>3): Likewise.
18114         (*xor<mode>3): Likewise.
18115         (*and<mode>3): Likewise.
18116         (*ior<mode>3): Likewise.
18117         (*xor<mode>3): Likewise.
18118         (and<mode>3): Likewise.
18119         (*sse_and<mode>3): Likewise.
18120         (*sse2_and<mode>3): Likewise.
18121         (andtf3): Likewise.
18122         (*andtf3): Likewise.
18123         (ior<mode>3): Likewise.
18124         (*sse_ior<mode>3): Likewise.
18125         (*sse2_ior<mode>3): Likewise.
18126         (iortf3): Likewise.
18127         (*iortf3): Likewise.
18128         (xor<mode>3): Likewise.
18129         (*sse_xor<mode>3): Likewise.
18130         (*sse2_xor<mode>3): Likewise.
18131         (xortf3): Likewise.
18132         (*xortf3): Likewise.
18133
18134 2008-04-02  Richard Guenther  <rguenther@suse.de>
18135
18136         PR tree-optimization/14495
18137         PR tree-optimization/34793
18138         * tree-vrp.c (struct switch_update): New structure.
18139         (to_remove_edges, to_update_switch_stmts): New VECs.
18140         (simplify_switch_using_ranges): New function.  Remove not taken
18141         case labels and edges.
18142         (simplify_stmt_using_ranges): Call it.
18143         (identify_jump_threads): Mark edges we have queued for removal
18144         so we don't thread them.
18145         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
18146         case label vector.
18147         * tree-cfg.c (group_case_labels): Deal with missing default label.
18148         (tree_verify_flow_info): Allow missing default label.
18149         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
18150         (emit_case_nodes): Likewise.
18151         (expand_case): Do not rely on the default label to be present.
18152         * expr.c (try_casesi): Deal with NULL default_label.
18153         (do_tablejump): Likewise.
18154
18155 2008-04-02  Richard Guenther  <rguenther@suse.de>
18156
18157         PR tree-optimization/14495
18158         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
18159         SWITCH_EXPR here ...
18160         (vrp_visit_switch_stmt): ... but here (new function).
18161         (find_case_label_index): New helper function.
18162         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
18163
18164 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
18165
18166         * fwprop.c: Fix ISO-C99ism.
18167
18168 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
18169
18170         PR bootstrap/35752
18171         * Makefile.in (objdir): Set it here.
18172         * configure.ac: Not here.  Find dynamic linker characteristics.
18173         * exec-tool.in: Use them.
18174         * aclocal.m4: Regenerate.
18175         * configure: Regenerate.
18176
18177 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
18178
18179         * expr.c (expand_var): Delete it.
18180         * expr.h (expand_var): Delete prototype.
18181         * function.c (expand_function_start): Use expand_decl instead.
18182         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
18183         langhook.
18184
18185 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
18186
18187         PR rtl-optimization/35542
18188         * fwprop.c (forward_propagate_and_simplify): Replace
18189         loc_reg_mentioned_in_p with reg_mentioned_p.
18190
18191 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
18192
18193         PR rtl-optimization/35281
18194         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
18195         (propagate_rtx_1): Handle PR_HANDLE_MEM.
18196         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
18197         (varying_mem_p): Move above propagate_rtx.
18198         (all_uses_available_at): Do not check MEMs.
18199
18200 2008-04-02  Rafael Espíndola  <espindola@google.com>
18201
18202         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
18203         (register_edge_assert_for_2): Split the cond argument.
18204         (register_edge_assert_for_1): Adjust for the change in
18205         register_edge_assert_for_2.
18206         (register_edge_assert_for): Split the cond argument.
18207         (find_switch_asserts): Adjust for the change in
18208         register_edge_assert_for.
18209
18210 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
18211
18212         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
18213         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
18214         offsets for 64-bit mingw.
18215         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
18216         abi for x86_64-pc-mingw.
18217
18218 2008-04-02  Richard Guenther  <rguenther@suse.de>
18219
18220         * tree-vrp.c (extract_range_from_assert): Make sure to not
18221         produce range min/max with TREE_OVERFOW set.
18222         If merging a anti-range and a range keep the anti-range if
18223         the range covers all values of the type.
18224         (register_edge_assert_for_2): Only allow sign-changing
18225         conversions in detecting canonical range checks.  Also
18226         register an assert for the unsigned name if useful.
18227
18228         PR tree-optimization/35787
18229         * tree-vrp.c (vrp_val_max): New function.
18230         (vrp_val_min): Likewise.
18231         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
18232         (vrp_val_is_min): Likewise.
18233         (supports_overflow_infinity): Use vrp_val_{min,max}.
18234         (negative_overflow_infinity): Likewise.
18235         (positive_overflow_infinity): Likewise.
18236         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
18237         (is_positive_overflow_infinity): Likewise.
18238         (is_overflow_infinity): Likewise.
18239         (avoid_overflow_infinity): Use vrp_val_{min,max} and
18240         vrp_val_is_{min,max}.
18241         (set_and_canonicalize_value_range): Canonicalize anti-ranges
18242         to ranges if possible.  Avoid empty ranges.
18243
18244 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18245
18246         PR middle-end/35705
18247         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
18248         the expression is a function address.
18249
18250 2008-04-01  George Helffrich  <george@gcc.gnu.org>
18251
18252         PR fortran/35154, fortran/23057
18253         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
18254         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
18255         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
18256         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
18257         in common.
18258         (dbxout_syms): Check for COMMON-based symbol and wrap in
18259         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
18260         in bracket for efficiency.
18261
18262         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
18263         using DW_TAG_common_block + member offset.
18264         (add_pubname_string): New function.
18265         (dw_expand_expr): New function to find block name and offset for
18266         COMMON var.
18267         (common_check): New function to check whether symbol in Fortran COMMON.
18268         (gen_variable_die): If COMMON, use DW_TAG_common_block.
18269
18270 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
18271
18272         PR c/35436
18273         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
18274
18275 2008-04-02  Ben Elliston  <bje@au.ibm.com>
18276
18277         * config/v850/v850.md (casesi): Remove if (0) code.
18278         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18279         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
18280
18281 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
18282
18283         * config/i386/i386.md (rex64suffix): New mode attribute.
18284         (floathi<mode>2): Disable expander for SSE math.
18285         (*floathi<mode>2_1): New insn insn_and_split pattern.
18286         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
18287         corresponding post-reload splitters.
18288         (*floathi<mode>2_i387): New macroized insn pattern.
18289         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
18290         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
18291         insn_and_split pattern.
18292         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
18293         New macroized instruction patterns and corresponding post-reload
18294         splitters.
18295         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
18296         and corresponding post-reload splitters.
18297         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
18298         New macroized instruction patterns.
18299         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
18300         macroized instruction patterns and corresponding post-reload splitters.
18301         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
18302         corresponding post-reload splitters.
18303         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
18304         New macroized instruction patterns.
18305         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
18306         corresponding post-reload splitters.
18307         (*floatsi<mode>2_i387): New macroized instruction patterns.
18308
18309 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
18310
18311         * config/i386/i386.md (smaxmin): New.
18312         (umaxmin): Likewise.
18313         (maxminiprefix): Likewise.
18314         (maxminfprefix): Likewise.
18315         (<code><mode>3): Likewise.
18316         (smin<mode>3): Removed.
18317         (smax<mode>3): Likewise.
18318
18319         * config/i386/mmx.md (mmx_<code>v2sf3): New.
18320         (mmx_<code>v4hi3): Likewise.
18321         (mmx_<code>v8qi3): Likewise.
18322         (mmx_smaxv2sf3): Removed.
18323         (mmx_sminv2sf3): Likewise.
18324         (mmx_umaxv8qi3): Likewise.
18325         (mmx_smaxv4hi3): Likewise.
18326         (mmx_uminv8qi3): Likewise.
18327         (mmx_sminv4hi3): Likewise.
18328
18329         * config/i386/sse.md (<addsub><mode>3): New.
18330         (*<addsub><mode>3): Likewise.
18331         (<sse>_vm<addsub><mode>3): Likewise.
18332         (<maxmin><mode>3): Likewise.
18333         (*<maxmin><mode>3_finite): Likewise.
18334         (*<maxmin><mode>3): Likewise.
18335         (<sse>_vm<maxmin><mode>3): Likewise.
18336         (sse3_h<addsub>v4sf3): Likewise.
18337         (sse3_h<addsub>v2df3): Likewise.
18338         (<maxmin>v16qi3): Likewise.
18339         (*<maxmin>v16qi3): Likewise.
18340         (<maxmin>v8hi3): Likewise.
18341         (*<maxmin>v8hi3): Likewise.
18342         (*sse4_1_<maxmin><mode>3): Likewise.
18343         (*sse4_1_<maxmin><mode>3): Likewise.
18344         (add<mode>3): Removed.
18345         (*add<mode>3): Likewise.
18346         (<sse>_vmadd<mode>3): Likewise.
18347         (sub<mode>3): Likewise.
18348         (*sub<mode>3): Likewise.
18349         (<sse>_vmsub<mode>3): Likewise.
18350         (smin<mode>3): Likewise.
18351         (*smin<mode>3_finite): Likewise.
18352         (*smin<mode>3): Likewise.
18353         (<sse>_vmsmin<mode>3): Likewise.
18354         (smax<mode>3): Likewise.
18355         (*smax<mode>3_finite): Likewise.
18356         (*smax<mode>3): Likewise.
18357         (<sse>_vmsmax<mode>3): Likewise.
18358         (sse3_haddv4sf3): Likewise.
18359         (sse3_haddv2df3): Likewise.
18360         (sse3_hsubv4sf3): Likewise.
18361         (sse3_hsubv2df3): Likewise.
18362         (umaxv16qi3): Likewise.
18363         (*umaxv16qi3): Likewise.
18364         (smaxv8hi3): Likewise.
18365         (*smaxv8hi3): Likewise.
18366         (*sse4_1_smax<mode>3): Likewise.
18367         (*sse4_1_umax<mode>3): Likewise.
18368         (uminv16qi3): Likewise.
18369         (*uminv16qi3): Likewise.
18370         (sminv8hi3): Likewise.
18371         (*sminv8hi3): Likewise.
18372         (*sse4_1_smin<mode>3): Likewise.
18373         (*sse4_1_umin<mode>3): Likewise.
18374
18375 2008-04-01  Rafael Espíndola  <espindola@google.com>
18376
18377         * tree-cfg.c (verify_expr): remove in_phi.
18378         (verify_stmt): Don't call walk_tree with verify_expr. Use
18379         is_gimple_min_invariant instead of is_gimple_val.
18380
18381 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
18382
18383         * doc/include/gpl_v3.texi: Update for manpage generation.
18384         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
18385         gpl.texi.
18386         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
18387         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
18388         gpl_v3.texi instead of gpl.texi.
18389         (gpl.pod): New.
18390
18391 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
18392
18393         PR pch/13675
18394         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
18395
18396 2008-04-01  Rafael Espíndola  <espindola@google.com>
18397
18398         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
18399         (extract_code_and_val_from_cond): Use
18400         extract_code_and_val_from_cond_with_ops.
18401
18402 2008-04-01  Jan Hubicka  <jh@suse.cz>
18403
18404         * function.c (free_after_compilation): Free epilogue_delay_list.
18405         (prepare_function_start): Assert that previous compilation was freed.
18406
18407 2008-04-01  Jan Hubicka  <jh@suse.cz>
18408             Jim Wilson  <wilson@tuliptree.org>
18409             Andreas Tobler <andreast@gcc.gnu.org>
18410
18411         PR middle-end/35781
18412         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
18413         rtl.emit instead cfun->emit.
18414         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
18415         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
18416
18417 2008-04-01  Ben Elliston  <bje@au.ibm.com>
18418
18419         * doc/c-tree.texi (Function Basics): Fix grammatical error.
18420
18421 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
18422
18423         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
18424         New options
18425         (fprofile-use): Add var flag_profile_use
18426         * coverage.c (coverage_begin_output): Do not open a gcno file for
18427         output only if -ftest-coverage is set.
18428         Do not add getpwd() to gcda file path.
18429         (build_gcov_info): Check the new flag
18430         flag_profile_datafile_relative_path.
18431         (coverage_init): Use profile_data_prefix.
18432         Read profile counter only if flag_profile_use is set.
18433         * opts.c (common_handle_option): New option fprofile-use=,
18434         fprofile-dir=, fprofile-generate=.
18435         * toplev.c (profile_data_prefix): New variable definition.
18436         * toplev.h (profile_data_prefix): New declaration.
18437         * doc/invoke.tex (Option Summary, Optimization Options):
18438         Add new options.
18439
18440 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
18441
18442         * varasm.c (output_constant_pool_1): In LABEL_REF check,
18443         use tmp consistently.
18444
18445         PR target/35695
18446         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
18447         * config/ia64/ia64.c (rtx_needs_barrier): Handle
18448         UNSPEC_FR_RECIP_APPROX_RES.
18449         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
18450
18451 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
18452
18453         PR c/35750
18454         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
18455
18456 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18457
18458         PR middle-end/30186
18459         * fold-const.c (fold_indirect_ref_1): Support accessing non first
18460         element of the vector via a pointer.
18461
18462 2008-03-31  Ian Lance Taylor  <iant@google.com>
18463
18464         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
18465
18466 2008-03-31  Jan Hubicka  <jh@suse.cz>
18467
18468         * builtins.c (expand_builtin_setjmp_receiver): Update call of
18469         get_arg_pointer_save_area.
18470         * expr.c (init_expr): Just clear out rtl.expr.
18471         * function.c (free_after_compilation): Clear out whole RTL structure.
18472         (get_func_frame_size): Merge into ...
18473         (get_frame_size): ... this one.
18474         (assign_stack_local_1): Merge into ...
18475         (assign_stack_local): ... this one.
18476         (expand_function_end): Update call of get_arg_pointer_save_area.
18477         (get_art_pointer_save_area): Remove cfun argument.
18478         * function.h (emit_status): regno_pointer_align does not need length
18479         attribute. Move x_regno_reg_rtx to ...
18480         (regno_reg_rtx): ... new global array.
18481         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
18482         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
18483         apply_args_value, forced_labels, stack_pointer_delta):
18484         Update accestors.
18485         (struct varasm_status): Move here from varasm.c
18486         (struct rtl_data): New. Move here some fields from struct function.
18487         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
18488         frame_offset, stack_check_probe_note, arg_pointer_save_area,
18489         used_temp_slots avail_temp_slots, temp_slot_level,
18490         nonlocal_goto_handler_labels): Update accesstors.
18491         (rtl): New global variable.
18492         (struct function): Move some fileds to rtl_data.
18493         (get_arg_pointer_save_area): Update prototype.
18494         * emit-rtl.c (rtl): Declare.
18495         (regno_reg_rtx): Declare.
18496         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
18497         Update.
18498         (gen_reg_rtx): Update.
18499         (init_virtual_regs): Do not tate emit_status argument.
18500         (init_emit): Do not allocate emit.
18501         * varasm.c (varasm_statuc): Move to function.h.
18502         (n_deferred_constatns): Update accestor.
18503         (init_varasm_status): Do not allocate varasm_status.
18504         (force_const_mem, get_pool_size, output_constant_pool): Update.
18505         * stmt.c (force_label_rtx): Do not use x_ prefixes.
18506         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
18507
18508 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
18509
18510         PR rtl-optimization/35729
18511         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
18512         references.
18513
18514 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18515
18516         PR target/32000
18517         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
18518         load/store if memory is unaligned.
18519         (*movti_rex64): Likewise.
18520
18521         * config/i386/predicates.md (misaligned_operand): New.
18522
18523 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
18524
18525         PR tree-opt/35431
18526         * tree-ssa-phiopt.c (conditional_replacement): Return early for
18527         complex types.
18528
18529 2008-03-31  Jan Beulich  <jbeulich@novell.com>
18530
18531         * config/ia64/constraints.md: Add 'j' constraint.
18532         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
18533         (movdi_internal): Likewise.
18534
18535 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
18536
18537         PR c/35748
18538         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
18539
18540 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
18541
18542         PR target/35757
18543         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
18544         proper error message for the third argument on blendpd and
18545         blendps.
18546
18547         * config/i386/sse.md (blendbits): New.
18548         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
18549
18550 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
18551
18552         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
18553
18554 2008-03-30  Richard Guenther  <rguenther@suse.de>
18555
18556         PR middle-end/31023
18557         * fold-const.c (fold_sign_changed_comparison): Do leave
18558         conversions to base-types alone.
18559
18560 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18561
18562         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
18563         the link register if one altivec register is be saved.
18564
18565 2008-03-30  Ben Elliston  <bje@au.ibm.com>
18566
18567         * final.c (final_scan_insn): Remove if (0) code.
18568
18569 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
18570
18571         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
18572
18573 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
18574
18575         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
18576         of V4SFmode to ix86_binary_operator_ok.
18577
18578 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
18579
18580         * config/i386/i386.c (override_options): Initialize
18581         ix86_veclib_handler to ix86_veclibabi_svml when
18582         -mveclibabi=svml is used.
18583         (ix86_veclibabi_svml): New function for SVML ABI style
18584         vectorization support.
18585         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
18586
18587 2008-03-28  Rafael Espíndola  <espindola@google.com>
18588
18589         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
18590         (tree_binary_nonnegative_warnv_p): Make it public.
18591         (tree_single_nonnegative_warnv_p): Make it public.
18592         (tree_invalid_nonnegative_warnv_p): Make it public.
18593         (tree_unary_nonzero_warnv_p): Make it public.
18594         (tree_binary_nonzero_warnv_p): Make it public
18595         (tree_single_nonzero_warnv_p): Make it public.
18596         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
18597         (extract_range_from_binary_expr): Split the expr argument.
18598         (extract_range_from_unary_expr): Split the expr argument.
18599         (extract_range_from_comparison): Split the expr argument.
18600         (extract_range_from_expr): Use the new aux functions.
18601         (vrp_evaluate_conditional_warnv): Use
18602         vrp_evaluate_conditional_warnv_with_ops.
18603         * tree.h (tree_unary_nonzero_warnv_p): Declare.
18604         (tree_binary_nonzero_warnv_p): Declare.
18605         (tree_single_nonzero_warnv_p): Declare.
18606         (tree_expr_nonzero_warnv_p): Declare.
18607         (tree_unary_nonnegative_warnv_p): Declare.
18608         (tree_binary_nonnegative_warnv_p): Declare.
18609         (tree_single_nonnegative_warnv_p): Declare.
18610         (tree_invalid_nonnegative_warnv_p): Declare.
18611
18612 2008-03-28  Richard Guenther  <rguenther@suse.de>
18613
18614         PR tree-optimization/30317
18615         PR tree-optimization/30911
18616         PR tree-optimization/34793
18617         * tree-vrp.c (set_and_canonicalize_value_range): New function.
18618         (struct assert_locus_d): New member EXPR.
18619         (register_new_assert_for): Add EXPR parameter to support
18620         ASSERT_EXPR <name, expr OP limit>.
18621         (register_edge_assert_for_1): Adjust callers.
18622         (find_assert_locations): Likewise.
18623         (process_assert_insertions_for): Build condition from expression.
18624         (extract_range_from_assert): Handle ASSERT_EXPRs
18625         of the form ASSERT_EXPR <name, expr OP limit>.
18626         (register_edge_assert_for_2): New helper registering
18627         asserts for comparisons.  Recognize range tests of the form
18628         (unsigned)i - CST1 OP CST2.
18629         (register_edge_assert_for_1): Use it.
18630         (register_edge_assert_for): Likewise.
18631         (needs_overflow_infinity): Integer sub-types
18632         do not need overflow infinities.
18633         (vrp_val_is_max): The extreme values of integer sub-types
18634         are those of the base type.
18635         (vrp_val_is_min): Likewise.
18636         * tree.def (ASSERT_EXPR): Document extra allowed conditional
18637         expressions.
18638
18639 2008-03-28  Nick Clifton  <nickc@redhat.com>
18640
18641         PR target/31110
18642         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
18643         Return GENERAL_REGS for stack adjustment reloads.
18644
18645 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18646
18647         PR target/31334
18648         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
18649         const_vector when all the vectors are constant.
18650
18651 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
18652
18653         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
18654         comparisons.
18655         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
18656         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
18657         (scc_sf): New.
18658         (s<code>_sf): Use new scc_sf attribute for opcode names.
18659
18660 2008-03-27  Tom Tromey  <tromey@redhat.com>
18661
18662         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
18663         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
18664         config/spu/t-spu-elf, config/i386/t-interix,
18665         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
18666         config/i386/x-darwin, config/i386/x-mingw32,
18667         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
18668         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
18669         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
18670         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
18671         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
18672         config/rs6000/x-darwin, config/rs6000/t-rs6000,
18673         config/score/t-score-elf, config/arm/t-strongarm-pe,
18674         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
18675         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
18676         Revert automatic dependency patch.
18677
18678 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18679
18680         PR target/35657
18681         * config/i386/i386.c (ix86_function_arg_boundary): Align
18682         decimal floating point to its natural boundary.
18683
18684 2008-03-27  Richard Guenther  <rguenther@suse.de>
18685
18686         PR middle-end/35716
18687         * fold-const.c (fold_comparison): Restrict distinct decl
18688         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
18689         solely rely on operand_equal_p.
18690
18691 2008-03-27  Richard Guenther  <rguenther@suse.de>
18692
18693         PR c/32511
18694         * c-common.c (handle_weak_attribute): Reject combination of
18695         weak and inline.
18696
18697 2008-03-27  Richard Guenther  <rguenther@suse.de>
18698
18699         PR tree-optimization/32810
18700         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
18701         conversions from DECL_INITIAL.
18702         (fold_const_aggregate_ref): Likewise from constructor elements.
18703
18704 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
18705
18706         * tree-affine.h (aff_combination_expand): Declare.
18707         (get_inner_reference_aff): Likewise.
18708         * tree-affine.c (aff_combination_expand): Split out from
18709         tree_to_aff_combination_expand.
18710         (get_inner_reference_aff): New function.
18711         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
18712         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
18713         (struct lim_aux_data): sm_done field removed.
18714         (mem_ref_loc_p, mem_ref_locs_p): New types.
18715         (struct mem_ref): Added id, stored, accesses_in_loop,
18716         indep_loop, dep_loop, indep_ref, dep_ref fields.
18717         Removed is_stored, locs and next fields.
18718         (memory_accesses): New variable.
18719         (movement_possibility): Do not allow moving statements
18720         that store to memory.
18721         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
18722         New functions.
18723         (determine_max_movement): For statements with memory references,
18724         find the outermost loop in that the reference is independent.
18725         (move_computations_stmt): Mark the virtual operands for renaming.
18726         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
18727         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
18728         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
18729         add_vop_ref_mapping, create_vop_ref_mapping_loop,
18730         create_vop_ref_mapping, analyze_memory_references,
18731         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
18732         get_all_locs_in_loop, ref_always_accessed_p,
18733         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
18734         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
18735         store_motion_loop, store_motion): New functions.
18736         (struct vop_to_refs_elt): New type.
18737         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
18738         memref_hash, memref_eq, hoist_memory_references): Rewritten.
18739         (schedule_sm): Replaced by...
18740         (execute_sm): ... this.
18741         (determine_lsm_ref, hoist_memory_references,
18742         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
18743         find_more_ref_vops, free_mem_ref, free_mem_refs,
18744         determine_lsm_loop, determine_lsm): Removed.
18745         (tree_ssa_lim_finalize): Free data structures used by store motion.
18746         (tree_ssa_lim): Call analyze_memory_references.  Use
18747         store_motion instead of determine_lsm.
18748
18749 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
18750
18751         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
18752         rename tmake_file to m68hc11/t-m68hc11.
18753         (mcore): Set inhibit_libc to true.
18754         * config.host (alpha*-dec-*vms*): Set extra_programs.
18755         (interix3*): Don't use host_xmake_file.
18756         * configure.ac: Let config.gcc override inhibit_libc.
18757         * configure: Regenerate.
18758
18759         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
18760         * config/t-openbsd-thread: Remove commented out lines.
18761
18762         * config/x-interix: Remove.
18763
18764         * config/m68hc11/t-m68hc11-gas: Rename to...
18765         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
18766
18767         * config/mcore/t-mcore: Remove T_CFLAGS.
18768         * config/mcore/t-mcore-pe: Likewise.
18769
18770 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
18771
18772         * configure.ac: Replace custom __GNU_SOURCE test with
18773         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
18774         * aclocal.m4: Regenerate.
18775         * configure: Regenerate.
18776         * config.in: Regenerate.
18777
18778 2008-03-27  Richard Guenther  <rguenther@suse.de>
18779
18780         * fold-const.c (target.h): Include.
18781         (fold_comparison): Fold comparison of addresses of decls
18782         that bind locally or of constants.  Consolidate address folding code.
18783         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
18784         results from fold_binary_to_constant.
18785         (compare_values_warnv): Likewise.
18786
18787 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
18788
18789         PR middle-end/35429
18790         * fold-const.c (fold_truthop): Check for integeral types when folding
18791         a == 0 && b == 0 and a != 0 || b != 0 .
18792
18793 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
18794
18795         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
18796
18797 2008-03-26  Andreas Schwab  <schwab@suse.de>
18798
18799         * doc/invoke.texi: Fix use of @item vs. @itemx.
18800
18801 2008-03-26  Tom Tromey  <tromey@redhat.com>
18802
18803         * Makefile.in (build/gensupport.o, build/print-rtl.o,
18804         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
18805         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
18806         build/gencodes.o, build/genconditions.o, build/genconfig.o,
18807         build/genconstants.o, build/genemit.o, build/genextract.o,
18808         build/genflags.o, build/genmddeps.o, build/genopinit.o,
18809         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
18810         options.h.
18811
18812 2008-03-26  Richard Guenther  <rguenther@suse.de>
18813
18814         Revert
18815         2008-03-26  Richard Guenther  <rguenther@suse.de>
18816
18817         * fold-const.c (target.h): Include.
18818         (fold_comparison): Fold comparison of addresses of two decls
18819         that bind locally.  Consolidate address folding code.
18820
18821 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18822
18823         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
18824         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
18825         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
18826         dconstsqrt2, dconstthird, dconste and/or dconst10.
18827         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
18828         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
18829         dconstsqrt2, dconste): Delete.
18830         (init_emit_once): Likewise.  Simplify initializing dconstm1.
18831         Constify variable.
18832         * real.c (get_real_const): New.
18833         * real.h (dconst3, dconst10, dconstm2, dconstthird,
18834         dconstsqrt2, dconste): Delete.
18835         (real_value_const, get_real_const): New.
18836
18837 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18838
18839         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
18840
18841         * config/i386/i386.c (ix86_function_arg_boundary): Check
18842         BIGGEST_ALIGNMENT instead of 128.
18843         (setup_incoming_varargs_64): Likewise.
18844
18845 2008-03-26  Tom Tromey  <tromey@redhat.com>
18846
18847         * Makefile.in (DEPFILES): Add missing '/'.
18848
18849 2008-03-26  Richard Guenther  <rguenther@suse.de>
18850
18851         * fold-const.c (target.h): Include.
18852         (fold_comparison): Fold comparison of addresses of two decls
18853         that bind locally.  Consolidate address folding code.
18854
18855 2008-03-26  Nick Clifton  <nickc@redhat.com>
18856
18857         PR target/31232
18858         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
18859         not allow INT+INT as a legitimate addressing mode.
18860
18861 2008-03-26  Richard Guenther  <rguenther@suse.de>
18862
18863         * tree-flow.h (widen_bitfield): Remove declaration.
18864         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
18865         (widen_bitfield): Remove function.
18866         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
18867         code.
18868
18869 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18870
18871         PR target/31558
18872         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
18873         error_mark_node's.
18874
18875 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
18876
18877         PR rtl-optimization/35232
18878         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
18879         (forget_old_reloads_1, forget_marked_reloads): Don't clear
18880         reg_reloaded_call_part_clobbered here.
18881         (reload_regs_reach_end_p): New function.
18882         (reload_reg_rtx_for_input): New variable.
18883         (reload_reg_rtx_for_output): Likewise.
18884         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
18885         when reassigning a pseudo register.  Load reloadreg from
18886         reload_reg_rtx_for_input, moving the mode and register
18887         calculation to...
18888         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
18889         instead of the original when deciding whether an input reload
18890         would be a no-op or whether an output reload can be deleted.
18891         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
18892         when setting up new_spill_reg_store.  Load it from
18893         reload_reg_rtx_for_output, moving the mode and register
18894         calculation to...
18895         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
18896         instead of the original when deciding whether an output reload
18897         would be a no-op.  Do the same when modifying insn notes.
18898         Use rtx_equal_p instead of == to compare the registers.
18899         (inherit_piecemeal_p): Take a mode and two register numbers
18900         as argument.
18901         (emit_reload_insns): Clear new_spill_reg_store for every hard
18902         register in the reload register.  Remove spill registers
18903         from reg_reloaded_valid before considering whether to record
18904         inheritance information for them.  Use reload_reg_rtx_for_output
18905         instead of reg_rtx when recording output reloads.  Use
18906         reload_reg_rtx_for_input instead of reg_rtx when recording
18907         input reloads.  Set or clear reg_reloaded_call_part_clobbered
18908         at the same time as setting reg_reloaded_valid.
18909         (delete_output_reload): Add a new_reload_reg parameter and use it
18910         instead of rld[j].reg_rtx.
18911         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
18912         calls accordingly.
18913
18914 2008-03-25  Tom Tromey  <tromey@redhat.com>
18915
18916         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
18917         (build/genattr.o): Likewise.
18918         (build/genattrtab.o): Likewise.
18919         (build/gencodes.o): Likewise.
18920         (build/genconfig.o): Likewise.
18921         (build/genconstants.o): Likewise.
18922         (build/genemit.o): Likewise.
18923         (build/genextract.o): Likewise.
18924         (build/genflags.o): Likewise.
18925
18926 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
18927
18928         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
18929         instead of size_int for integer types.
18930         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
18931         to match type of MINUS_EXPR.
18932
18933 2008-03-25  Tom Tromey  <tromey@redhat.com>
18934
18935         * configure: Rebuilt.
18936         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
18937         Makefile.
18938
18939 2008-03-25  Tom Tromey  <tromey@redhat.com>
18940
18941         * config/x-solaris (host-solaris.o): Update.
18942         * config/x-linux (host-linux.o): Update.
18943         * config/x-hpux (host-hpux.o): Update.
18944         * config/x-darwin (host-darwin.o): Update.
18945         * config/v850/t-v850e (v850-c.o): Update.
18946         * config/v850/t-v850 (v850-c.o): Update.
18947         * config/t-vxworks (vxworks.o): Update.
18948         * config/t-sol2 (sol2-c.o, sol2.o): Update.
18949         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
18950         * config/spu/t-spu-elf (spu-c.o): Update.
18951         (spu.o): Remove.
18952         * config/sh/t-symbian (sh-c.o): Update.
18953         (symbian.o): Update.
18954         * config/sh/t-sh (sh-c.o): Update.
18955         * config/score/t-score-elf (score7.o, score3.o): Update.
18956         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
18957         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
18958         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
18959         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
18960         (rs6000.o): Remove.
18961         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
18962         * config/m32c/t-m32c (m32c-pragma.o): Update.
18963         * config/ia64/t-ia64 (ia64-c.o): Update.
18964         * config/i386/x-mingw32 (host-mingw32.o): Update.
18965         * config/i386/x-i386 (driver-i386.o): Update.
18966         * config/i386/x-darwin (host-i386-darwin.o): Update.
18967         * config/i386/x-cygwin (host-cygwin.o): Update.
18968         * config/i386/t-nwld (nwld.o): Update.
18969         * config/i386/t-netware (netware.o): Update.
18970         * config/i386/t-interix (winnt.o): Update.
18971         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
18972         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
18973         msformat-c.o): Update.
18974         * config/bfin/t-bfin-linux (generated_files): Add
18975         linux-sysroot-suffix.h.
18976         * config/arm/t-wince-pe (pe.o): Update.
18977         * config/arm/t-strongarm-pe (pe.o): Update.
18978         * config/arm/t-pe (pe.o): Update.
18979         * config/arm/t-arm (arm-c.o): Update.
18980         * doc/install.texi (Prerequisites): Require make 3.80.
18981         * Makefile.in: Remove .o targets.
18982         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
18983         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
18984         (simple_generated_h, simple_generated_c): Move earlier.
18985         (generated_files): New variable.
18986         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
18987         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
18988         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
18989         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
18990         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
18991         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
18992         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
18993         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
18994         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
18995         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
18996         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
18997         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
18998         (.c.o): Remove.
18999         (COMPILE.base, COMPILE): New variables.
19000         (%.o): New pattern rule.
19001         (ALL_HOST_OBJS): New variable.
19002         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
19003         (dummy-checksum.o, cc1-checksum.o): Remove.
19004         (DRIVER_SHLIB): New variable.
19005         (DRIVER_DEFINES): Use it.
19006         (gencondmd.c): Move out of build/.
19007         (s-conditions): Update.
19008         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
19009         (ALL_BUILD_OBJS): Likewise.
19010         (build/%.o): Use BUILDCOMPILE.
19011         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
19012         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
19013         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
19014         build/gencheck.o, build/gencodes.o, build/genconditions.o,
19015         build/genconfig.o, build/genconstants.o, build/genemit.o,
19016         build/genextract.o, build/genflags.o, build/genmddeps.o,
19017         build/genopinit.o, build/genoutput.o, build/genpeep.o,
19018         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
19019         build/gen-protos.o, build/scan.o, build/fix-header.o,
19020         build/scan-decls.o): Simplify.
19021         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
19022         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
19023         prefix.o, toplev.o): Reduce to variable setting.
19024         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
19025         ($(out_object_file), gcc-options.o): New targets.
19026         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
19027         * configure: Rebuilt.
19028         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
19029         * doc/sourcebuild.texi (Front End Directory): Document new variable.
19030
19031 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
19032
19033         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
19034         complain when we hit an error, return ERROR_MARK_NODE.
19035
19036 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
19037
19038         * config/sh/constraints.md (Pso, Psz): New constraints.
19039         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
19040         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
19041
19042 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
19043
19044         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
19045         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
19046
19047 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
19048
19049         * config/sh/sh.md (prefetch): Add condition for SH2A target.
19050         (prefetch_sh2a): New.
19051
19052 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
19053             Naveen.H.S  <naveen.hs@kpitcummins.com>
19054
19055         * config/sh/constraints.md (I28): New constraint.
19056         * config/sh/sh.c (broken_move): Add support for movi20s.
19057         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
19058
19059 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
19060             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
19061             Naveen.H.S  <naveen.hs@kpitcummins.com>
19062
19063         * config/sh/sh.c (SH_ATTRIBUTES): Define.
19064         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
19065         (print_operand): Handle resbank in %@ operand code.
19066         (sh_encode_section_info): New.
19067         (push_regs): Add conditions for resbank.
19068         (sh_expand_epilogue): Likewise.
19069         (sh_insert_attributes): Likewise.
19070         (sh_attribute_table): Likewise.
19071         (sh_handle_resbank_handler_attribute): New.
19072         (sh2a_handle_function_vector_handler_attribute): New.
19073         (sh2a_is_function_vector_call): New.
19074         (sh2a_get_function_vector_number): New.
19075         (sh2a_function_vector_p): New.
19076         (sh_cfun_resbank_handler_p): New.
19077         * config/sh/sh.md (calli): Emit jsr/n if possible.
19078         (calli_tbr_rel): New.
19079         (calli_pcrel): Emit jsr/n if possible.
19080         (return_i): Emit rts/n if possible.
19081         (call_valuei_tbr_rel): New.
19082         (call_valuei_pcrel): Add condition for SH2A target.
19083         (call_value): Likewise.
19084         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
19085         (sh2a_get_function_vector_number): Likewise.
19086         (sh2a_is_function_vector_call): Likewise.
19087         * doc/extend.texi: Document TBR relative addressing of SH2A.
19088         (resbank): Add description for SH2A.
19089
19090 2008-03-24  Richard Guenther  <rguenther@suse.de>
19091
19092         PR c/22371
19093         * gimplify.c (gimplify_modify_expr): For frontend type-correct
19094         pointer assignments change conversions according to middle-end rules.
19095         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
19096         * configure.ac: Include type checking in yes.
19097         * configure: Regenerate.
19098
19099 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19100
19101         * diagnostic.c (diagnostic_count_diagnostic): Delete.
19102         (diagnostic_report_diagnostic): Update. Handle ICEs here.
19103
19104 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
19105
19106         * gthr-vxworks.h (UNUSED): Define.
19107
19108 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
19109
19110         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
19111
19112 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
19113
19114         * doc/extend.texi (Function Attributes): Add missing comma in the
19115         example of the "alloc_size" attribute.
19116
19117 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
19118
19119         Revert:
19120         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19121
19122         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19123         32bit host.
19124
19125         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
19126
19127         PR target/35496
19128         * stor-layout.c (update_alignment_for_field): Set minimum alignment
19129         of the underlying type of a MS bitfield layout to the natural
19130         alignment of the type.
19131
19132         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
19133
19134         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
19135         to their natural alignment to avoid store forwarding stalls.
19136
19137 2008-03-22  Richard Guenther  <rguenther@suse.de>
19138
19139         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
19140         For PHI nodes verify the address is invariant.
19141         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
19142         (get_symbol_constant_value): Use is_gimple_min_invariant.
19143         (maybe_fold_stmt_indirect): Likewise.
19144
19145 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
19146
19147         PR rtl-optimization/33927
19148         * Makefile.in (dse.o): Depend on $(TM_P_H).
19149         * expr.h (extract_low_bits): Declare.
19150         * expmed.c (extract_low_bits): New function.
19151         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
19152         * dse.c: Include tm_p.h.
19153         (find_shift_sequence): Remove the read_reg argument and return the
19154         read value.  Emit the instructions instead of returning them.
19155         Iterate on new_mode rather than calculating it each time.
19156         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
19157         source to NEW_MODE and extract_low_bits to convert the shifted
19158         value to READ_MODE.
19159         (replace_read): Allow the load and store to have different mode
19160         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
19161         or extraction instructions before trying the replacement.  Update
19162         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
19163
19164 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
19165
19166         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
19167         to their natural alignment to avoid store forwarding stalls.
19168
19169 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19170
19171         PR target/27946
19172         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
19173         encouraging but not allowing gprs for input;
19174         change the input constraint to !f#r.
19175         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
19176         gprs for output;
19177         change the output constraint to !f#r.
19178
19179 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
19180
19181         PR target/13958
19182         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
19183         corresponding post-reload splitters.
19184         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
19185         when x87 FP math is selected.
19186         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
19187         New function prototype.
19188         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
19189         unreachable function to ease macroization of insn patterns.
19190
19191 2008-03-21  Martin Jambor  <mjambor@suse.cz>
19192
19193         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
19194         reference dumps if ddr is NULL or dependence is unknown.
19195
19196 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
19197
19198         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
19199         unsigned extension into account.
19200         (ATOMIC_COMPARE_AND_SWAP): Likewise.
19201         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
19202         Do computations on a scratch register.
19203
19204 2008-03-21  Richard Guenther  <rguenther@suse.de>
19205
19206         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
19207         Use is_gimple_min_invariant instead of TREE_INVARIANT.
19208         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
19209         * tree-ssa-dom.c (record_equality): Likewise.
19210         * tree-inline.c (copy_body_r): Likewise.
19211         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
19212         TREE_INVARIANT.
19213
19214 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
19215
19216         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
19217         as 'delete_unused' argument.
19218
19219 2008-03-20  Richard Guenther  <rguenther@suse.de>
19220
19221         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
19222         special casing of constant qualifiers.
19223         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
19224         care about them in general.
19225         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
19226         regardless of their type.
19227         (fold_stmt_r): Forcefully fold *& if we end up with that.
19228
19229 2008-03-20  Paul Brook  <paul@codesourcery.com>
19230
19231         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
19232         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
19233         linker flags.
19234         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
19235         definition.
19236         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
19237         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
19238
19239 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
19240
19241         * common.opt (Wmudflap): New option.
19242         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
19243         (mx_register_decls): Likewise.
19244         (mudflap_finish_file): Likewise.
19245         * doc/invoke.texi: Document -Wno-mudflap.
19246
19247 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
19248
19249         * c-format.c (replace_format_name_to_system_name): New.
19250         (cmp_attribs): New.
19251         (convert_format_name_to_system_name): New.
19252         (decode_format_attr): Add use of convert_format_name_to_system_name.
19253         (format_types_orig): Add gnu_ prefix to names.
19254         (check_format_info_main): Special treating of \0 escaped names for
19255         supporting multi-character format specifiers as I32, I64.
19256         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
19257         (gnu_target_overrides_format_attributes): New.
19258         * c-format.h: Add structure target_ovr_attr to hold
19259         system specific formatter names.
19260         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
19261         msformat-c.o file to c_target_objs and cxx_target_objs.
19262         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
19263         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
19264         (TARGET_N_FORMAT_TYPES): New.
19265         * config/i386/msformat-c.c: New.
19266         * config/i386/t-cygming: Add build rule for msformat-c.o.
19267         * doc/extend.texi: Add new format names gnu_* and ms_* and
19268         further details.
19269         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
19270
19271 2008-03-20  Ira Rosen  <irar@il.ibm.com>
19272
19273         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
19274         optimizations turned on under -O3.
19275         (ftree-vectorize): Add that the flag is turned on with -O3.
19276
19277 2008-03-20  Ben Elliston  <bje@au.ibm.com>
19278
19279         * regmove.c (try_auto_increment): Fix spelling error in comment.
19280         * final.c (final_scan_insn): Likewise.
19281
19282 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
19283
19284         PR target/14552
19285         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
19286         allocator preferences for "y" and "r" class registers.
19287         ("*mov<mode>_internal"): Ditto.
19288         ("*movv2sf_internal_rex64"): Ditto.
19289         ("*movv2sf_internal"): Ditto.
19290
19291 2008-03-19  Michael Matz  <matz@suse.de>
19292
19293         PR middle-end/35616
19294         * calls.c (expand_call): Check overlap of arguments with call
19295         address for sibcalls.
19296
19297 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
19298
19299         PR target/35496
19300         * stor-layout.c (update_alignment_for_field): Set minimum alignment
19301         of the underlying type of a MS bitfield layout to the natural
19302         alignment of the type.
19303
19304 2008-03-19  Jan Hubicka  <jh@suse.cz>
19305
19306         PR other/35094
19307         * toplev.c (decode_d_option): Handle all CPP flags.
19308         * tree-vrp.c: Update tree_pass descriptors.
19309         * regrename.c: Update tree_pass descriptors.
19310         * fwprop.c: Update tree_pass descriptors.
19311         * doc/invoke.texi: Remove documentation of dropped -d? flags.
19312         * tree-into-ssa.c: Update tree_pass descriptors.
19313         * tree-dump.c: Update tree_pass descriptors.
19314         * tree-complex.c: Update tree_pass descriptors.
19315         * tree-dump.h: Update tree_pass descriptors.
19316         * see.c: Update tree_pass descriptors.
19317         * cgraphbuild.c: Update tree_pass descriptors.
19318         * tracer.c: Update tree_pass descriptors.
19319         * tree-loop-distribution.c: Update tree_pass descriptors.
19320         * cgraph.c: Update tree_pass descriptors.
19321         * postreload-gcse.c: Update tree_pass descriptors.
19322         * postreload.c: Update tree_pass descriptors.
19323         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
19324         * tree-tailcall.c: Update tree_pass descriptors.
19325         * tree-pass.h (tree_opt_pass): Rename to ...
19326         (opt_pass) ... this one; add "type" field and remove letter field.
19327         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
19328         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
19329         all_lowering_passes): Update declaration.
19330         * ipa-cp.c: Update tree_pass descriptors.
19331         * final.c: Update tree_pass descriptors.
19332         * omp-low.c: Update tree_pass descriptors.
19333         * tree-ssa-dse.c: Update tree_pass descriptors.
19334         * ipa-reference.c: Update tree_pass descriptors.
19335         * tree-ssa-uncprop.c: Update tree_pass descriptors.
19336         * auto-inc-dec.c: Update tree_pass descriptors.
19337         * reorg.c: Update tree_pass descriptors.
19338         * cgraphunit.c: Update tree_pass descriptors.
19339         * tree-ssa-copyrename.c: Update tree_pass descriptors.
19340         * tree-ssa-ccp.c: Update tree_pass descriptors.
19341         * df-core.c: Update tree_pass descriptors.
19342         * mode-switching.c: Update tree_pass descriptors.
19343         * tree-nomudflap.c: Update tree_pass descriptors.
19344         * modulo-sched.c: Update tree_pass descriptors.
19345         * ipa-pure-const.c: Update tree_pass descriptors.
19346         * cse.c: Update tree_pass descriptors.
19347         * web.c: Update tree_pass descriptors.
19348         * tree-stdarg.c: Update tree_pass descriptors.
19349         * tree-ssa-math-opts.c: Update tree_pass descriptors.
19350         * tree-ssa-dom.c: Update tree_pass descriptors.
19351         * tree-nrv.c: Update tree_pass descriptors.
19352         * tree-ssa-alias.c: Update tree_pass descriptors.
19353         * loop-init.c: Update tree_pass descriptors.
19354         * gimple-low.c: Update tree_pass descriptors.
19355         * ipa-inline.c: Update tree_pass descriptors.
19356         * tree-ssa-sink.c: Update tree_pass descriptors.
19357         * global.c: Update tree_pass descriptors.
19358         * ifcvt.c: Update tree_pass descriptors.
19359         * jump.c: Update tree_pass descriptors.
19360         * predict.c: Update tree_pass descriptors.
19361         * tree-ssa-loop.c: Update tree_pass descriptors.
19362         * recog.c: Update tree_pass descriptors.
19363         * dse.c: Update tree_pass descriptors.
19364         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
19365         * tree-eh.c: Update tree_pass descriptors.
19366         * regmove.c: Update tree_pass descriptors.
19367         * local-alloc.c
19368         * function.c: Update tree_pass descriptors.
19369         * tree-vectorizer.c: Update tree_pass descriptors.
19370         * gcse.c: Update tree_pass descriptors.
19371         * ipa-type-escape.c: Update tree_pass descriptors.
19372         * tree-if-conv.c: Update tree_pass descriptors.
19373         * init-regs.c: Update tree_pass descriptors.
19374         * ipa.c: Update tree_pass descriptors.
19375         * tree-ssa-phiopt.c: Update tree_pass descriptors.
19376         * rtl-factoring.c: Update tree_pass descriptors.
19377         * lower-subreg.c: Update tree_pass descriptors.
19378         * bt-load.c: Update tree_pass descriptors.
19379         * tree-dfa.c: Update tree_pass descriptors.
19380         * except.c: Update tree_pass descriptors.
19381         * emit-rtl.c: Update tree_pass descriptors.
19382         * cfgexpand.c: Update tree_pass descriptors.
19383         * tree-cfgcleanup.c: Update tree_pass descriptors.
19384         * cfgcleanup.c: Update tree_pass descriptors.
19385         * tree-ssa-pre.c: Update tree_pass descriptors.
19386         * tree-sra.c: Update tree_pass descriptors.
19387         * tree-mudflap.c: Update tree_pass descriptors.
19388         * tree-ssa-copy.c: Update tree_pass descriptors.
19389         * cfglayout.c: Update tree_pass descriptors.
19390         * tree-ssa-forwprop.c: Update tree_pass descriptors.
19391         * tree-ssa-dce.c: Update tree_pass descriptors.
19392         * tree-ssa.c: Update tree_pass descriptors.
19393         * regclass.c: Update tree_pass descriptors.
19394         * integrate.c: Update tree_pass descriptors.
19395         * tree-optimize.c: Update tree_pass descriptors.
19396         * tree-ssa-phiprop.c: Update tree_pass descriptors.
19397         * tree-object-size.c: Update tree_pass descriptors.
19398         * combine.c: Update tree_pass descriptors.
19399         * tree-outof-ssa.c: Update tree_pass descriptors.
19400         * bb-reorder.c: Update tree_pass descriptors.
19401         * stack-ptr-mod.c: Update tree_pass descriptors.
19402         * var-tracking.c: Update tree_pass descriptors.
19403         * tree-profile.c: Update tree_pass descriptors.
19404         * tree-vect-generic.c: Update tree_pass descriptors.
19405         * reg-stack.c: Update tree_pass descriptors.
19406         * sched-rgn.c: Update tree_pass descriptors.
19407         * tree-ssa-structalias.c: Update tree_pass descriptors.
19408         * tree-cfg.c: Update tree_pass descriptors.
19409         * passes.c (current_pass): Update declaration.
19410         (finish_optimization_passes): Update.
19411         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
19412         (register_one_dump_file, register_dump_files_1, next_pass_1):
19413         Update arguments.
19414         (init_optimization_passes): Update handling of new types.
19415         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
19416         * ipa-struct-reorg.c: Update tree_pass descriptors.
19417         * tree-ssa-reassoc.c: Update tree_pass descriptors.
19418         * combine-stack-adj.c: Update tree_pass descriptors.
19419         * cfgrtl.c: Update tree_pass descriptors.
19420         * dce.c: Update tree_pass descriptors.
19421         * tree-ssanames.c: Update tree_pass descriptors.
19422
19423 2008-03-19  Richard Guenther  <rguenther@suse.de>
19424
19425         PR middle-end/35609
19426         * tree-ssa.c (walk_data): New structure.
19427         (warn_uninitialized_var): If not always_executed warn with "maybe"
19428         instead of "is".
19429         (execute_early_warn_uninitialized): Compute post-dominators.
19430         Initialize always_executed before processing each basic block.
19431
19432 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
19433
19434         PR target/35504
19435         * config/i386/i386.c (x86_this_parameter): Calculate correct location
19436         of "this" pointer when "regparm = N" or "fastcall" is in effect.
19437
19438 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19439
19440         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
19441
19442 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
19443
19444         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
19445         is true.
19446         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
19447         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
19448         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
19449         target after ignore has been set, and move there also the commputation
19450         of subtarget and original_target.
19451         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
19452         (LANG_HOOKS_INITIALIZER): Remove it.
19453         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
19454
19455 2008-03-18  Richard Guenther  <rguenther@suse.de>
19456
19457         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
19458         found an expression with constants, note that in the VN for the lhs.
19459         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
19460         fold them to constants if possible.  Run cleanup_cfg if done so.
19461         (execute_pre): Return todo.
19462         (do_pre): Likewise.
19463         (execute_fre): Likewise.
19464         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
19465         of constants.
19466         (get_prop_source_stmt): Look through pointer conversions.
19467
19468 2008-03-18  Jan Hubicka  <jh@suse.cz>
19469
19470         * tree-pretty-print.c: Include predict.h.
19471         (dump_generic_node): Dump predictor.
19472         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
19473         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
19474         * gimple-low.c (lower_stmt): Likewise.
19475         * expr.c (expand_expr_real): Likewise.
19476         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
19477         them.
19478         (build_predict_expr, build_predict_expr): New.
19479         * predict.h (predictor_name, build_predict_expr): Update.
19480         * c-typeck.c (c_finish_bc_stmt): Add prediction.
19481         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
19482         * predict.def (PRED_CONTINUE): Update hitrate.
19483         * tree.def (PREDICT_EXPR): Define.
19484         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
19485         do not handle BIND_EXPR.
19486         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
19487         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
19488         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
19489         operands.
19490
19491 2008-03-18  Michael Matz  <matz@suse.de>
19492
19493         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
19494
19495 2008-03-18  Richard Guenther  <rguenther@suse.de>
19496
19497         * tree-gimple.h (is_gimple_invariant_address): Declare.
19498         (is_gimple_constant): Likewise.
19499         * tree-gimple.c (is_gimple_constant): New function.
19500         (is_gimple_invariant_address): Likewise.
19501         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
19502         and is_gimple_invariant_address.
19503         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
19504         previous change.
19505         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
19506         an addressable base.
19507
19508 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
19509
19510         PR middle-end/35611
19511         * gimplify.c (gimplify_expr): Gimplify second operand of
19512         OMP_ATOMIC_LOAD.
19513
19514 2008-03-17  Richard Guenther  <rguenther@suse.de>
19515
19516         PR tree-optimization/19637
19517         * fold-const.c (fold_unary): Remove restrictions of removing
19518         intermediate pointer-conversions (P2)(P1)P0.
19519         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
19520         conversion to void pointer.
19521         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
19522
19523 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
19524
19525         PR debug/31510
19526         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
19527         emulated thread local variables.
19528
19529 2008-03-16  Richard Guenther  <rguenther@suse.de>
19530
19531         PR middle-end/35607
19532         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
19533         expand TREE_INVARIANT operations that are not gimple invariant.
19534
19535 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
19536
19537         * doc/extend.texi (Alignment): Say that the ABI controls
19538         the __alignof__ for non-strict-alignment targets rather
19539         than being a recommendation.
19540
19541 2008-03-15  Paul Brook  <paul@codesourcery.com>
19542
19543         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
19544         annotations.
19545         (arm_output_fn_unwind): Mark functions that can not be unwound.
19546
19547 2008-03-15  Paul Brook  <paul@codesourcery.com>
19548
19549         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
19550         extension instructions.
19551
19552 2008-03-15  Richard Guenther  <rguenther@suse.de>
19553
19554         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
19555         and fold constant aggregate refs.
19556         (fold_const_aggregate_ref): Handle string constants
19557         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
19558         (evaluate_stmt): Simplify now that ccp_fold folds constant
19559         aggregate refs.
19560
19561 2008-03-15  Paul Brook  <paul@codesourcery.com>
19562
19563         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
19564         (extzv): Use gen_extzv_t2.
19565         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
19566
19567 2008-03-15  Richard Guenther  <rguenther@suse.de>
19568
19569         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
19570         (fold_const_aggregate_ref): Likewise.
19571         (get_value): Return NULL if we don't have any values.
19572         (ccp_finalize): Set const_val to NULL after freeing it.
19573         * tree-flow.h (get_symbol_constant_value): Declare.
19574         (fold_const_aggregate_ref): Likewise.
19575         * tree-ssa-sccvn.c (try_to_simplify): Use them.
19576
19577 2008-03-15  Richard Guenther  <rguenther@suse.de>
19578
19579         PR middle-end/35593
19580         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
19581         to not produce negative array indices if not allowed.  Add
19582         parameter to indicate that.
19583         (maybe_fold_offset_to_component_ref): Allow negative array
19584         indices only for the first member of a structure.
19585         (maybe_fold_offset_to_reference): Allow negative array indices.
19586         (maybe_fold_stmt_addition): Likewise.
19587
19588 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
19589             Anatoly Sokolov <aesok@post.ru>
19590
19591         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
19592         (avr_arch): Add ARCH_AVR6.
19593         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
19594         (initial_elimination_offset): Initialize and use 'avr_pc_size'
19595         instead of fixed value 2.
19596         (print_operand_address): Use gs() asm specifier instead of pm().
19597         (avr_assemble_integer): (Ditto.).
19598         (avr_output_addr_vec_elt): (Ditto.).
19599         (print_operand): Handle "!" code.
19600         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
19601         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
19602         (AVR_HAVE_EIJMP_EICALL): Define.
19603         (AVR_3_BYTE_PC): Redefine.
19604         (AVR_2_BYTE_PC): (Ditto.).
19605         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
19606         (LINK_SPEC): Add atmega2560 and atmega2561.
19607         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
19608         (crtm2561.o).
19609         * config/avr/avr.md (call_insn): Use eicall instead of icall
19610         for 3 byte PC devices.
19611         (call_value_insn): (Ditto.).
19612         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
19613         (indirect_jump): Use only for for 2 byte PC devices.
19614         (*tablejump): (Ditto.).
19615         (*indirect_jump_avr6): Add insn.
19616         (*tablejump_rjmp): Don't use for 3 byte PC devices.
19617         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
19618         instead of ijmp for 3 byte PC devices.
19619         (__tablejump2__): (Ditto.).
19620         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
19621         (MULITLIB_DIRNAMES): (Ditto.).
19622         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
19623
19624 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
19625
19626         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
19627         "sse2_umulsidi3".  Use V1DI mode for operand 0.
19628         ("mmx_psadbw"): Use V1DI mode for operand 0.
19629         * config/i386/i386-modes.def (V1SI): New vector mode.
19630         * config/i386/i386.c (struct builtin_description)
19631         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
19632         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
19633         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
19634         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
19635         v1di_ftype_v8qi_v8qi type.
19636         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
19637
19638         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
19639         __builtin_ia32_pmuludq]: Fix the mode of return value.
19640
19641 2008-03-15  Richard Guenther  <rguenther@suse.de>
19642
19643         PR middle-end/35595
19644         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
19645         being a PHI_NODE.
19646
19647 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
19648
19649         * doc/invoke.texi (Option Summary, Xtensa Options): Document
19650         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
19651         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
19652         unless TARGET_SERIALIZE_VOLATILE is enabled.
19653         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
19654         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
19655         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
19656
19657 2008-03-14  Richard Guenther  <rguenther@suse.de>
19658
19659         PR tree-optimization/34172
19660         * tree-flow.h (refs_may_alias_p): Declare.
19661         (get_single_def_stmt): Likewise.
19662         (get_single_def_stmt_from_phi): Likewise.
19663         (get_single_def_stmt_with_phi): Likewise.
19664         * tree-dfa.c (refs_may_alias_p): New function.
19665         (get_single_def_stmt): Likewise.
19666         (get_single_def_stmt_from_phi): Likewise.
19667         (get_single_def_stmt_with_phi): Likewise.
19668         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
19669         (vn_reference_lookup_1): New helper function.
19670         (vn_reference_lookup): Walk the virtual use-def chain to
19671         continue searching for a match if the def does not alias the
19672         reference we are looking for.
19673
19674 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
19675
19676         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
19677         archive and Perzl.  Update The Written Word listing.
19678
19679 2008-03-14  Richard Guenther  <rguenther@suse.de>
19680
19681         PR tree-optimization/34043
19682         PR tree-optimization/33989
19683         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
19684         when doing FRE.
19685         (bitmap_find_leader): Use extra argument to verify dominance
19686         relationship inside a basic-block.
19687         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
19688         (find_leader_in_sets): Adjust.
19689         (create_component_ref_by_pieces): Take extra argument for
19690         dominance check, handle lookup failures.
19691         (find_or_generate_expression): Likewise.
19692         (create_expression_by_pieces): Likewise.
19693         (insert_into_preds_of_block): Adjust.
19694         (create_value_expr_from): If asked for, verify all operands
19695         are in the blocks AVAIL_OUT set.
19696         (make_values_for_stmt): Check for SSA_NAMEs that are life
19697         over an abnormal edge.
19698         (compute_avail): Remove such check.
19699         (do_SCCVN_insertion): New function.
19700         (eliminate): If we do not find a leader suitable for replacement
19701         insert a replacement expression from SCCVN if available.
19702         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
19703         (struct vn_ssa_aux): Add needs_insertion flag.
19704         * tree-ssa-sccvn.c (may_insert): New global flag.
19705         (copy_reference_ops_from_ref): Value-number union member access
19706         based on its size, not type and member if insertion is allowed.
19707         (visit_reference_op_load): For a weak match from union type
19708         punning lookup a view-converted value and insert a SSA_NAME
19709         for that value if that is not found.
19710         (visit_use): Make dumps shorter.  Do not disallow value numbering
19711         SSA_NAMEs that are life over an abnormal edge to constants.
19712         (free_scc_vn): Release inserted SSA_NAMEs.
19713         (run_scc_vn): New flag to specify whether insertion is allowed.
19714         Process SSA_NAMEs in forward order.
19715         * tree-ssa-loop-im.c (for_each_index): Handle invariant
19716         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
19717         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
19718         pointer type to/from integral types that do not change the
19719         precision to regular conversions.
19720
19721 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
19722
19723         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19724         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19725         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
19726         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
19727         input arguments and the mode of return value.  Built-in functions
19728         that operate on whole 64-bit MMX register now use V1DI mode.
19729
19730 2008-03-13  Alon Dayan  <alond@il.ibm.com>
19731             Olga Golovanevsky  <olga@il.ibm.com>
19732
19733         PR tree-optimization/35041
19734         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
19735         to locate the right position in a statement.
19736
19737 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
19738
19739         PR target/34000
19740         PR target/35553
19741         * config/i386/xmmintrin.h:  Change all static inline functions to
19742         extern inline and add __gnu_inline__ attribute.
19743         * config/i386/bmintrin.h: Ditto.
19744         * config/i386/smmintrin.h: Ditto.
19745         * config/i386/tmmintrin.h: Ditto.
19746         * config/i386/mmintrin-common.h: Ditto.
19747         * config/i386/ammintrin.h: Ditto.
19748         * config/i386/emmintrin.h: Ditto.
19749         * config/i386/pmmintrin.h: Ditto.
19750         * config/i386/mmintrin.h: Ditto.
19751         * config/i386/mm3dnow.h: Ditto.
19752
19753 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
19754
19755         PR middle-end/35185
19756         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
19757         (lower_omp_2): New function.
19758         (lower_omp_1, lower_omp): Rewritten.
19759
19760 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
19761
19762         PR 35054
19763         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
19764         with the phrase "Microsoft Windows compilers".
19765         (Push/Pop Macro Pragmas): New subsection. Document
19766         #pragma push_macro and pragma pop_macro.
19767
19768 2008-03-12  Paul Brook  <paul@codesourcery.com>
19769
19770         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
19771
19772 2008-03-12  Paul Brook  <paul@codesourcery.com>
19773
19774         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
19775         (thumb2_alusi3_short): Exclude PLUS and MINUS.
19776         (thumb2_addsi_shortim): Rename ...
19777         (thumb2_addsi_short): ... to this.  Allow register operands.
19778         (thumb2_subsi_short): New pattern.
19779         (thumb2_one_cmplsi2_short,
19780         thumb2_negsi2_short): New patterns and peepholes.
19781
19782 2008-03-12  Paul Brook  <paul@codesourcery.com>
19783
19784         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
19785
19786 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
19787
19788         * config/i386/i386.md (int_cond): New code iterator.
19789         (fp_cond): Ditto.
19790         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
19791         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
19792         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
19793         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
19794         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
19795         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
19796         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
19797         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
19798
19799 2008-03-12  Paul Brook  <paul@codesourcery.com>
19800
19801         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
19802         instead of {arm,thumb}_compute_save_reg_mask.
19803         (output_return_instruction): Ditto.
19804         (thumb_unexpanded_epilogue): Ditto.
19805         (thumb1_expand_prologue): Ditto.
19806         (thumb1_output_function_prologue): Ditto.
19807         (arm_set_return_address): Ditto.
19808         (thumb_set_return_address): Ditto.
19809         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
19810         regs to achieve stack alignment.
19811         (thumb1_compute_save_reg_mask): Fix compiler warning.
19812         (arm_output_epilogue): Use offsets->saved_regs_mask.
19813         Adjust stack pointer by poping call clobered registers.
19814         (arm_expand_prologue): Use offsets->saved_regs_mask.
19815         Adjust stack pointer by pushing extra registers.
19816         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
19817
19818 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
19819
19820         PR tree-opt/35422
19821         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
19822         conversion to the operands of a multiplication.
19823
19824 2008-03-12  Richard Guenther  <rguenther@suse.de>
19825
19826         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
19827         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
19828         * timevar.def (TV_TREE_PHIPROP): Add.
19829         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
19830         pass description.  Use TV_TREE_PHIPROP.
19831         * tree-ssa-forwprop.c: Remove phiprop code.
19832
19833 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
19834
19835         PR middle-end/35549
19836         * omp-low.c (maybe_lookup_decl): Constify first argument.
19837         (use_pointer_for_field): Change last argument from bool to
19838         omp_context *.  Disallow shared copy-in/out in nested
19839         parallel if decl is shared in outer parallel too.
19840         (build_outer_var_ref, scan_sharing_clauses,
19841         lower_rec_input_clauses, lower_copyprivate_clauses,
19842         lower_send_clauses, lower_send_shared_vars): Adjust callers.
19843
19844 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
19845             Ira Rosen  <irar@il.ibm.com>
19846
19847         * tree-vectorizer.c (free_stmt_vec_info): New function.
19848         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
19849         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
19850         * tree-vectorizer.h (free_stmt_vec_info): Declare.
19851         * tree-vect-transform.c (vectorizable_conversion): Free
19852         vec_oprnds0 if it was allocated.
19853         (vect_permute_store_chain): Remove unused VECs.
19854         (vectorizable_store): Free VECs that are allocated in the..
19855         function.
19856         (vect_transform_strided_load, vectorizable_load): Likewise.
19857         (vect_remove_stores): Simplify the code.
19858         (vect_transform_loop): Move code to vect_remove_stores().
19859         Call vect_remove_stores() and free_stmt_vec_info().
19860
19861 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19862
19863         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
19864         TARGET_HPUX.  Revise comment.
19865         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
19866         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
19867         Use sr4 variant of `be' instruction when not generating PIC code.
19868         (attr_length_call): Adjust for above change.
19869
19870 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19871
19872         * ipa-reference.c (static_execute): Remove module_statics_const and
19873         associated setting code.
19874
19875 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
19876
19877         PR target/35540
19878         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
19879         predicate for operand 1.
19880         (paritysi2_cmp): Use register_operand predicate for operand 2.
19881         Use earlyclobber modifier for operand 1.  Remove support for
19882         memory operands.
19883         (paritydi2_cmp): Use register_operand predicate for operand 3.
19884         Use earlyclobber modifier for operand 1.  Remove support for
19885         memory operands.
19886
19887 2008-03-11  Paul Brook  <paul@codesourcery.com>
19888             Vladimir Prus  <vladimir@codesourcery.com>
19889
19890         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
19891         (arm_compute_save_reg0_reg12_mask): Always
19892         check if register 11 must be saved.  Always safe hard frame pointer
19893         when frame_pointer_needeed.
19894         (arm_compute_save_reg_mask): Save IP and PC
19895         only with apcs frames.
19896         (arm_output_epilogue): Adjust Thumb2 codepath to
19897         be also invoked and work for ARM non-apcs frames.
19898         (arm_expand_prologue): Don't bother saving IP
19899         for non-apcs frame, since it's not clobbered by
19900         prologue code.  Implement non-apcs frame
19901         layout.
19902
19903 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
19904
19905         PR rtl-optimization/35281
19906         * expr.c (convert_move): Use a new pseudo for the intermediate
19907         from_mode->word_mode result.
19908
19909 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
19910
19911         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
19912         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
19913         * toplev.c (compile_file): Don't call it.
19914
19915 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
19916
19917         PR middle-end/35526
19918         * expr.c (store_expr): Call emit_block_move if the mode
19919         of "temp" RTX is BLKmode.
19920
19921 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19922             Richard Guenther  <rguenther@suse.de>
19923
19924         PR tree-optimization/31358
19925         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
19926         the step with a NULL_TREE.
19927         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
19928         to sizetype if type is a pointer type.
19929         (add_candidate_1): Don't convert the base and step to
19930         the generic type if the orginal type is a pointer type.
19931         (add_iv_value_candidates): Use sizetype for the step
19932         if type is a pointer type.
19933         (cand_value_at): Likewise.
19934         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
19935         for pointer types.
19936         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
19937         Don't convert the tem affine to the type.
19938         (add_elt_to_tree): Use sizetype for the step if a pointer.
19939         Use POINTER_PLUS_EXPR for pointers.
19940         (aff_combination_to_tree): Use sizetype for the step if a
19941         pointer.
19942
19943 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
19944
19945         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
19946         Remove commutativity hint.
19947
19948 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
19949
19950         PR c/35438
19951         PR c/35439
19952         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
19953         errorneous type.  Check that v is a VAR_DECL.
19954
19955         PR middle-end/35099
19956         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
19957
19958 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
19959
19960         PR tree-optimization/35494
19961         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
19962         may be overriden at link and run time.
19963
19964 2008-03-10  Richard Guenther  <rguenther@suse.de>
19965
19966         PR tree-optimization/34677
19967         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
19968         (poolify_tree): Likewise.
19969         (modify_expr_template): Likewise.
19970         (poolify_modify_stmt): Likewise.
19971         (insert_fake_stores): Handle all component-ref style stores
19972         in addition to INDIRECT_REF.  Also handle complex types.
19973         Do not poolify the inserted load.
19974         (realify_fake_stores): Do not rebuild the tree but only
19975         make it a SSA_NAME copy.
19976         (init_pre): Remove initialzation of modify_expr_template.
19977         Do not allocate modify_expr_node_pool.
19978         (fini_pre): Do not free modify_expr_node_pool.
19979
19980 2008-03-10  Paul Brook  <paul@codesourcery.com>
19981
19982         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
19983         to avoid conflicts.
19984
19985 2008-03-10  Paul Brook  <paul@codesourcery.com>
19986             Mark Shinwell  <shinwell@codesourcery.com>
19987
19988         * config/arm/cortex-r4.md: New.
19989         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
19990         insn attributes.
19991         * config/arm/arm.md: Include cortex-r4.md.
19992         (insn): Add smmls, sdiv and udiv values.
19993         (generic_sched): Don't use generic scheduling for Cortex-R4.
19994         (arm_issue_rate): New function.
19995         (TARGET_SCHED_ISSUE_RATE): Define.
19996
19997 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
19998
19999         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
20000
20001 2008-03-10  Richard Guenther  <rguenther@suse.de>
20002
20003         * tree-ssa-pre.c (get_sccvn_value): Simplify.
20004         (compute_avail): Do not add stmt uses to AVAIL_OUT.
20005
20006 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
20007
20008         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
20009         Set default to true.
20010
20011 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20012
20013         * c.opt (Wsynth): Deprecate.
20014         * doc/invoke.texi (Option Summary, Warning Options): Document
20015         -Wno-format-contains-nul.
20016
20017 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
20018
20019         PR target/35496
20020         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
20021         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
20022
20023 2008-03-09  Ira Rosen  <irar@il.ibm.com>
20024
20025         * config/rs6000/rs6000.c (builtin_description): Rename vector
20026         left shift operations.
20027         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
20028         (altivec_vsl<VI_char>): Rename to ...
20029         (ashl<mode>3): ... new name.
20030         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
20031         gen_ashlv4si3.
20032         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
20033
20034 2008-03-08  Richard Guenther  <rguenther@suse.de>
20035
20036         * coverage.h (tree_coverage_counter_addr): Declare.
20037         * coverage.c (tree_coverage_counter_addr): New function.
20038         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
20039         before using again.
20040         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
20041         (tree_gen_one_value_profiler): Likewise.
20042         (tree_gen_ic_profiler): Likewise.
20043         (tree_gen_average_profiler): Likewise.
20044         (tree_gen_ior_profiler): Likewise.
20045
20046 2008-03-08  Richard Guenther  <rguenther@suse.de>
20047
20048         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
20049         (vn_binary_op_insert): Likewise.
20050         (vn_unary_op_lookup): Likewise.
20051         (vn_unary_op_insert): Likewise.
20052         (vn_nary_op_lookup): Declare.
20053         (vn_nary_op_insert): Likewise.
20054         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
20055         and binary hashes, use a single obstack for unary_op_pool
20056         and binary_op_pool.
20057         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
20058         a single struct vn_nary_op_s.  Store tree code length and
20059         a variable number of operands.
20060         (struct vn_reference_op_struct): Remove unused op2.
20061         (vn_reference_op_eq): Do not compare op2.
20062         (vn_reference_op_compute_hash): Do not compute hash of op2.
20063         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
20064         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
20065         with vn_nary_op_compute_hash.
20066         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
20067         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
20068         vn_nary_op_lookup.
20069         (vn_unary_op_insert, vn_binary_op_insert): Replace with
20070         vn_nary_op_insert.
20071         (visit_unary_op): Call nary functions.
20072         (visit_binary_op): Likewise.
20073         (process_scc): Adjust for struct vn_tables_s changes.
20074         (allocate_vn_table): Likewise.
20075         (free_vn_table): Likewise.
20076         * tree-vn.c (vn_add): Call nary functions.
20077         (vn_lookup): Likewise.
20078
20079 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
20080
20081         PR target/35498
20082         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
20083         wdst back after sync_compare_and_swapqhi_internal.
20084
20085 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
20086
20087         PR target/22152
20088         * config/i386/i386-modes.def (V1DI): New vector mode.
20089         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
20090         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
20091         (MMXMODE248): Ditto.
20092         (MMXMODE): Add V1DI mode.
20093         (mmxvecsize): Change DI mode to V1DI mode.
20094         ("mov<mode>): Use MMXMODEI8 mode iterator.
20095         ("*mov<mode>_internal_rex64"): Ditto.
20096         ("*mov<mode>_internal"): Ditto.
20097         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
20098         ("mmx_sub<mode>3"): Ditto.
20099         ("mmx_adddi3"): Remove insn pattern.
20100         ("mmx_subdi3"): Ditto.
20101         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
20102         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
20103         ("mmx_ashl<mode>3"): Ditto.
20104         ("mmx_lshrdi3"): Remove insn pattern.
20105         ("mmx_ashldi3"): Ditto.
20106         * config/i386/i386.c (classify_argument): Handle V1DImode.
20107         (function_arg_advance_32): Ditto.
20108         (function_arg_32): Ditto.
20109         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
20110         mmx_addv1di3 insn pattern.
20111         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
20112         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
20113         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
20114         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
20115         Remove definitions of built-in functions.
20116         (V1DI_type_node): New node.
20117         (v1di_ftype_v1di_int): Ditto.
20118         (v1di_ftype_v1di_v1di): Ditto.
20119         (v2si_ftype_v2si_si): Ditto.
20120         (v4hi_ftype_v4hi_di): Remove node.
20121         (v2si_ftype_v2si_di): Ditto.
20122         (ix86_init_mmx_sse_builtins): Handle V1DImode.
20123         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
20124         Redefine builtins using def_builtin_const with *_ftype_*_int node.
20125         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
20126         Add new builtins using def_builtin_const.
20127         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
20128         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
20129         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
20130         * config/i386/mmintrin.h (__v1di): New typedef.
20131         (_mm_add_si64): Cast arguments to __v1di type.
20132         (_mm_sub_si64): Ditto.
20133         (_mm_sll_pi16): Cast __count to __v4hi type.
20134         (_mm_sll_pi32): Cast __count to __v2si type.
20135         (_mm_sll_si64): Cast arguments to __v1di type.
20136         (_mm_srl_pi16): Cast __count to __v4hi type.
20137         (_mm_srl_pi32): Cast __count to __v2si type.
20138         (_mm_srl_si64): Cast arguments to __v1di type.
20139         (_mm_sra_pi16): Cast __count to __v4hi type.
20140         (_mm_sra_pi32): Cast __count to __v2si type.
20141         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
20142         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
20143         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
20144         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
20145         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
20146         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
20147         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
20148         (_mm_srai_pi32): Use __builtin_ia32_psradi.
20149         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
20150         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20151         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20152         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
20153
20154 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
20155
20156         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
20157
20158 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
20159
20160         PR target/35373
20161         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
20162         reg+const addressing for Altivec modes.  Don't generate reg+reg
20163         addressing for TFmode or TDmode quantities.
20164
20165 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
20166
20167         * c-common.c (vector_types_convertible_p): Call langhook
20168         instead of comptypes.
20169
20170 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20171
20172         PR tree-opt/35402
20173         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
20174         integral and scalar float variables which have a
20175         NULL DECL_INITIAL.
20176
20177 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
20178
20179         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
20180         dwarf_register_span hook when emitting unwind information for
20181         register-to-memory saves.
20182         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
20183         (rs6000_frame_related): Remove call to spe_synthesize_frame.
20184
20185 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
20186
20187         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
20188         for the same VAR_DECL.
20189
20190 2008-03-06  Tom Tromey  <tromey@redhat.com>
20191
20192         * treelang: Delete.
20193         * doc/standards.texi (Standards): Don't mention treelang.
20194         * doc/invoke.texi (Overall Options): Don't mention treelang.
20195         * doc/install.texi (Prerequisites): Don't mention bison or
20196         treelang.
20197         (Configuration): Don't mention treelang.
20198         (Building): Likewise.
20199         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
20200
20201 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
20202
20203         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
20204         word-extractions out of a multi-word object.
20205
20206 2008-03-06  Richard Guenther  <rguenther@suse.de>
20207
20208         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
20209         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
20210         result type and precision.
20211         * expr.c (get_inner_reference): Set unsignedp based on the result
20212         type of BIT_FIELD_REF.
20213         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
20214         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
20215         (try_instantiate_multiple_fields): Likewise.  Use the correct type
20216         for BIT_FIELD_REF.
20217         (sra_build_assignment): Likewise.
20218         (sra_build_elt_assignment): Likewise.
20219         (sra_explode_bitfield_assignment): Likewise.
20220         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
20221         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
20222         set BIT_FIELD_REF_UNSIGNED.
20223         (vectorizable_load): Likewise.
20224
20225 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
20226
20227         * cse.c (cse_extended_basic_block): Invalidate artificial defs
20228         at bb start.
20229
20230 2008-03-06  Richard Guenther  <rguenther@suse.de>
20231
20232         * alias.c (struct alias_set_entry): Move has_zero_child field
20233         to pack with alias_set.
20234
20235 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20236
20237         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20238         32bit host.
20239
20240 2008-03-05  Ian Lance Taylor  <iant@google.com>
20241
20242         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
20243
20244 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
20245
20246         * fwprop.c (update_df): Support width and offset parameters of
20247         df_ref_create.
20248         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
20249         global_conflicts): Change DF_REF_EXTRACT to either
20250         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
20251         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20252         * df-scan.c (df_ref_record, df_defs_record,
20253         df_ref_create_structure, df_def_record_1, df_uses_record,
20254         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
20255         df_bb_refs_collect, df_entry_block_defs_collect,
20256         df_exit_block_uses_collect): Support new width and offset fields.
20257         (ref_extract_pool): New storage pool.
20258         (df_free_ref): New function.
20259         (df_reg_chain_unlink, df_free_collection_rec,
20260         df_sort_and_compress_refs): Call df_free_ref.
20261         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
20262         of df_ref_extract.
20263         (df_ref_create_structure): Allocate df_ref_extract if offset and
20264         width fields are used.
20265         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
20266         (df_uses_record): Get offset and width from ZERO_EXTRACT
20267         and SIGN_EXTRACT.
20268         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
20269         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
20270         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20271         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
20272         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
20273         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
20274         (df_ref_extract): New structure.
20275         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
20276         (df_ref_create): Add width and offset parameters.
20277
20278 2008-03-05  Richard Guenther  <rguenther@suse.de>
20279
20280         * tree-ssa-structalias.c (get_constraint_for_component_ref):
20281         Use ranges_overlap_p.
20282         (offset_overlaps_with_access): Rename
20283         to ranges_overlap_p and move ...
20284         * tree-flow-inline.h (ranges_overlap_p): ... here.
20285
20286         * tree.h (get_inner_reference, handled_component_p): Update
20287         comments.
20288
20289         * tree.h (record_component_aliases, get_alias_set,
20290         alias_sets_conflict_p, alias_sets_must_conflict_p,
20291         objects_must_conflict_p): Move declarations ...
20292         * alias.h (record_component_aliases, get_alias_set,
20293         alias_sets_conflict_p, alias_sets_must_conflict_p,
20294         objects_must_conflict_p): ... here.
20295         Include coretypes.h.
20296         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
20297
20298 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
20299
20300         * cfg.c: Include tree-flow.h.
20301         (remove_edge_raw): Call redirect_edge_var_map_clear.
20302         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
20303         * tree-flow-inline.h (redirect_edge_var_map_def): New.
20304         (redirect_edge_var_map_result): New.
20305         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
20306         PENDING_STMT use with redirect_edge_var_map_*.
20307         * tree-ssa.c (edge_var_maps): New definition.
20308         (redirect_edge_var_map_add): New.
20309         (redirect_edge_var_map_clear): New.
20310         (redirect_edge_var_map_dup): New.
20311         (redirect_edge_var_map_vector): New.
20312         (redirect_edge_var_map_destroy): New.
20313         (ssa_redirect_edge): Replace PENDING_STMT use with
20314         redirect_edge_var_map_*.
20315         (flush_pending_stmts): Same.
20316         (delete_tree_ssa): Destroy edge var map.
20317         * tree-flow.h (struct _edge_var_map): New.
20318         Define edge_var_map vector type.
20319         Declare redirect_edge_var_map_* prototypes.
20320         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
20321         * tree-cfg.c (reinstall_phi_args): Replace
20322         PENDING_STMT use with redirect_edge_var_map_*.
20323
20324 2008-03-05  Richard Guenther  <rguenther@suse.de>
20325
20326         PR tree-optimization/35472
20327         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
20328         whose single use_stmt has a overlapping set of loaded and
20329         stored symbols as that use_stmt might be a noop assignment then.
20330
20331 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
20332
20333         * gthr-rtems.h: Implement __gthread_mutex_destroy.
20334
20335 2008-03-05  Richard Guenther  <rguenther@suse.de>
20336
20337         PR c++/35336
20338         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
20339         should be constants.
20340         * tree-cfg.c (verify_expr): Verify it.
20341         * fold-const.c (fold_truthop): Remove code generating
20342         BIT_FIELD_REFs of structure bases.
20343         (fold_binary): Likewise.
20344         (fold_ternary): Position and size of BIT_FIELD_REFs are
20345         always host integers.
20346         (make_bit_field_ref): Remove.
20347         (optimize_bit_field_compare): Remove.
20348         (all_ones_mask_p): Remove.
20349
20350 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
20351
20352         PR gcc/33009
20353         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
20354         (split_block_and_df_analyze): New. Split basic block and rebuild
20355         dataflow.
20356         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
20357         SPLIT_BLOCK.
20358         (split_pattern_seq): Likewise.
20359         (erase_matching_seqs): Likewise.
20360         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
20361
20362 2008-03-04  Geoff Keating  <geoffk@apple.com>
20363
20364         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
20365         declaration and code.
20366         (tree_invalid_nonnegative_warnv_p): Likewise.
20367
20368 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
20369
20370         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
20371         examples.  Truncate option-names then causing overfull hbox.
20372
20373 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20374
20375         PR target/35222
20376         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
20377         on hpux10.
20378         * configure: Rebuilt.
20379
20380 2008-03-04  Rafael Espíndola  <espindola@google.com>
20381
20382         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
20383         (tree_unary_nonnegative_warnv_p): New.
20384         (tree_binary_nonnegative_warnv_p): New.
20385         (tree_single_nonnegative_warnv_p): New.
20386         (tree_invalid_nonnegative_warnv_p): New.
20387         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
20388
20389 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20390
20391         PR 28322
20392         * opts.c (handle_option): Postpone 'unknown option' errors only for
20393         warning options.
20394
20395 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
20396
20397         PR target/35453
20398         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
20399         (_SIDD_XXX): This.
20400
20401 2008-03-04  Rafael Espíndola  <espindola@google.com>
20402
20403         * fold-const.c (tree_unary_nonzero_warnv_p): New.
20404         (tree_binary_nonzero_warnv_p): New.
20405         (tree_single_nonzero_warnv_p): New.
20406         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
20407
20408 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
20409
20410         PR middle-end/35456
20411         * fold-const.c (fold_cond_expr_with_comparison): Prevent
20412         transformations for modes that have signed zeros.
20413         * ifcvt.c (noce_try_abs): Ditto.
20414
20415 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
20416
20417         * config/i386/i386.c (override_options): Force
20418         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
20419
20420 2008-03-04  Jan Hubicka  <jh@suse.cz>
20421
20422         PR c++/35262
20423         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
20424         in last commit.
20425
20426 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
20427
20428         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
20429         label to probe the stack.
20430
20431 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
20432
20433         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
20434         (__gthr_win32_mutex_destroy): Declare.
20435         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
20436         __gthr_win32_mutex_destroy.
20437         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
20438
20439 2008-03-03  Jan Hubicka  <jh@suse.cz>
20440
20441         PR c++/35262
20442         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
20443         aggressive on inlining cold calls.
20444
20445 2008-03-03  Richard Guenther  <rguenther@suse.de>
20446
20447         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
20448         struct copies into the expression table.
20449         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
20450         (try_to_simplify): Likewise.
20451         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
20452         integral and pointer arguments which do not change the
20453         precision to NOP_EXPRs.
20454         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
20455         VIEW_CONVERT_EXPR case.
20456
20457 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
20458
20459         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
20460         defined in a loop at depth 0 is invariant.
20461         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
20462         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
20463         be called at loop depth 0.
20464
20465 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
20466
20467         PR driver/35420
20468         * gcc.c (process_command): Update copyright notice dates.
20469         * gcov.c (print_version): Likewise.
20470         * gcov-dump.c (print_version): Likewise.
20471         * mips-tfile.c (main): Likewise.
20472         * mips-tdump.c (main): Likewise.
20473
20474 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20475
20476         PR 24924
20477         * c-common.c (flag_permissive): Delete.
20478         (constant_expression_warnings): Check flags first.
20479         (constant_expression_error): New.
20480         * c-common.h (flag_permissive): Delete.
20481         (constant_expression_error): Declare.
20482         * flags.h (flag_permissive): Declare. Update description.
20483         * diagnostic.c (pedwarn): Update.
20484         (permerror): New.
20485         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
20486         (permissive_error_kind): New.
20487         * toplev.c (flag_permissive): Define. Update description.
20488         * toplev.h (permissive_error_kind): Declare.
20489         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
20490         (pedwarn_c90): Use pedantic_warning_kind.
20491         * c-opts.c (c_common_post_options): flag_permissive does not affect
20492         flag_pedantic_errors.
20493
20494 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
20495
20496         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
20497         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
20498         __absvsi2, __absvDI2): Use unsigned arithmetic.
20499
20500 2008-03-02  Andi Kleen  <ak@suse.de>
20501             Richard Guenther  <rguenther@suse.de>
20502
20503         * struct-equiv.c: Remove file.
20504         * cfg_cleanup.c (condjump_equiv_p): Remove.
20505         * Makefile.in (OBJS-common): Remove struct-equiv.o.
20506         (struct-equiv.o): Remove rule.
20507         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
20508         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
20509         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
20510
20511 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
20512
20513         * ifcvt.c (noce_process_if_block): Try to handle only the then
20514         block if the else block exists but isn't suitable.
20515
20516 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
20517
20518         PR gcc/35063
20519         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
20520         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
20521         regression from previous patch.
20522
20523 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
20524
20525         PR gcc/35063
20526         * gthr.h: Add __gthread_mutex_destroy as a function that must be
20527         implemented.
20528         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
20529         * gthr-single.h (__gthread_mutex_destroy): Likewise.
20530         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
20531         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
20532         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
20533         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
20534         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
20535         (__gthread_mutex_destroy_function): Rename to
20536         __gthread_mutex_destroy.
20537         * gthr-dce.h (__gthread_mutex_destroy): Call
20538         pthread_mutex_destroy.
20539         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
20540         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
20541         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
20542
20543 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
20544
20545         * df-scan.c (df_ref_chain_change_bb): Simplify.
20546         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
20547         set_block_for_insn if there's any change.
20548         * df.h ((df_insn_change_bb): Fix prototype.
20549         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
20550         df_insn_change_bb, don't call set_block_for_insn.
20551         * emit-rtl.c (reorder_insns): Likewise.
20552         * haifa-sched.c (move_insn): Likewise.
20553
20554 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
20555
20556         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
20557
20558 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
20559
20560         * tree-flow-inline.h (next_readonly_imm_use): Return
20561         NULL_USE_OPERAND_P after the end.
20562
20563 2008-03-01  Richard Guenther  <rguenther@suse.de>
20564
20565         PR tree-optimization/35411
20566         * tree-sra.c (sra_build_assignment): Split conversion to
20567         final type to a separate statement if we are not assigning
20568         to a register.
20569
20570 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20571
20572         * fold-const.c (fold_convertible_p): Correct the logic to follow
20573         that in fold_convert().
20574
20575 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
20576
20577         PR c++/35315
20578         * tree-inline.c (build_duplicate_type): When we make a
20579         duplicate type, make it unique in the canonical types system.
20580
20581 2008-02-29  Tom Tromey  <tromey@redhat.com>
20582
20583         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
20584         input_file_stack_history, input_file_stack_restored): Remove.
20585         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
20586         * input.h (struct file_stack): Remove.
20587         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
20588         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
20589         Likewise.
20590         * diagnostic.h (struct diagnostic_context) <last_module>: Change
20591         type.
20592         (diagnostic_last_module_changed): Add 'map' argument.
20593         (diagnostic_set_last_function): Likewise.
20594         * diagnostic.c (undiagnostic_report_current_module): Iterate using
20595         line map, not input_file_stack.
20596         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
20597
20598 2008-02-29  Paul Brook  <paul@codesourcery.com>
20599
20600         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
20601
20602 2008-02-29  Paul Brook  <paul@codesourcery.com>
20603
20604         * config/arm/ieee754-df.S (muldf3): Use RET macros.
20605
20606 2008-02-29  Richard Guenther  <rguenther@suse.de>
20607
20608         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
20609         vn_lookup_or_add.
20610         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
20611         value for comparing for a store match.
20612         (simplify_unary_expression): Do nothing for SSA_NAMEs.
20613         (try_to_simplify): Do not do a full-blown reference lookup.
20614
20615 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
20616
20617         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
20618         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
20619
20620         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
20621
20622 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
20623
20624         * tree-loop-linear.c (try_interchange_loops): Compare memory access
20625         strides against cache sizes.
20626
20627 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
20628
20629         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
20630         constant to fpul.
20631
20632 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
20633
20634         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
20635         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
20636         is smaller than the original promoted value.
20637         (simplify_subreg): If OP is a SUBREG, try to preserve its
20638         SUBREG_PROMOTED_VAR_P information.
20639
20640 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
20641
20642         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
20643         (VN_INFO_GET): Allocate new objects on the obstack.
20644         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
20645         for rpo_numbers_temp, for consistency.
20646         (free_scc_vn): Free the obstack.
20647
20648 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
20649
20650         * doc/invoke.texi: Document -ftree-loop-distribution.
20651         * tree-loop-distribution.c: New.
20652         * tree-pass.h (pass_loop_distribution): New.
20653         * graphds.h (struct graph): Add htab_t indices.
20654         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
20655         * tree-vectorizer.c (rename_variables_in_loop): Extern.
20656         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
20657         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
20658         * tree-data-ref.c (debug_data_dependence_relations): New.
20659         (dump_data_dependence_relation): Also print data references.
20660         (free_data_ref): Extern.
20661         (same_access_functions): Moved...
20662         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
20663         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
20664         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
20665         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
20666         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
20667         (stmts_from_loop): Skip LABEL_EXPR.
20668         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
20669         New.
20670         (build_rdg): Initialize rdg->indices htab.
20671         (free_rdg, stores_from_loop, ref_base_address,
20672         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
20673         have_similar_memory_accesses_1, ref_base_address_1,
20674         remove_similar_memory_refs): New.
20675         * tree-data-ref.h: Depend on tree-chrec.h.
20676         (debug_data_dependence_relations, free_data_ref): Declared.
20677         (same_access_functions): ... here.
20678         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
20679         New.
20680         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
20681         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
20682         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
20683         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
20684         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
20685         rdg_vertex_for_stmt): Declared.
20686         (struct rdg_edge): Add level.
20687         (RDGE_LEVEL): New.
20688         (free_rdg, stores_from_loop, remove_similar_memory_refs,
20689         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
20690         Declared.
20691         (rdg_has_similar_memory_accesses): New.
20692         * tree-vect-analyze.c: Remove unused static decls.
20693         * lambda.h (dependence_level): New.
20694         * common.opt (ftree-loop-distribution): New.
20695         * tree-flow.h (mark_virtual_ops_in_bb,
20696         slpeel_tree_duplicate_loop_to_edge_cfg,
20697         rename_variables_in_loop): Declared.
20698         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
20699         (OBJS-common): Add tree-loop-distribution.o.
20700         (tree-loop-distribution.o): New rule.
20701         * tree-cfg.c (mark_virtual_ops_in_bb): New.
20702         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
20703         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
20704
20705 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
20706
20707         PR target/33963
20708         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
20709         other than structures and unions.
20710
20711 2008-02-28  Richard Guenther  <rguenther@suse.de>
20712
20713         Revert:
20714         2008-02-26  Richard Guenther  <rguenther@suse.de>
20715
20716         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20717         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20718         (lookup_decl_from_uid): Declare.
20719         (remove_decl_from_map): Likewise.
20720         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20721         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20722         (decl_for_uid_map): New global hashtable mapping DECL_UID
20723         to the decl tree.
20724         (init_ttree): Allocate it.
20725         (insert_decl_to_uid_decl_map): New helper function.
20726         (make_node_stat): Insert new decls into the map.
20727         (copy_node_stat): Likewise.
20728         (lookup_decl_from_uid): New function.
20729         (remove_decl_from_map): Likewise.
20730         (print_decl_for_uid_map_statistics): New helper.
20731         (dump_tree_statistics): Call it.
20732
20733         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20734         (referenced_var_iterator): Adjust.
20735         (FOR_EACH_REFERENCED_VAR): Adjust.
20736         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20737         (num_referenced_vars): Adjust.
20738         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20739         (first_referenced_var): Remove.
20740         (end_referenced_vars_p): Likewise.
20741         (next_referenced_var): Likewise.
20742         (referenced_var_iterator_set): New helper function.
20743         * tree-dfa.c (referenced_var_lookup): Adjust.
20744         (referenced_var_check_and_insert): Likewise.
20745         (remove_referenced_var): Likewise.
20746         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20747         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20748         (verify_call_clobbering): Likewise.
20749         (verify_memory_partitions): Likewise.
20750         (init_tree_ssa): Allocate bitmap instead of hashtable for
20751         referenced_vars.
20752         (delete_tree_ssa): Adjust.
20753         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20754         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20755         (compute_tag_properties): Likewise.
20756         (set_initial_properties): Likewise.
20757         (find_partition_for): Likewise.
20758         (update_reference_counts): Likewise.
20759         (dump_may_aliases_for): Likewise.
20760         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20761         (add_call_clobber_ops): Likewise.
20762         (add_call_read_ops): Likewise.
20763         (get_asm_expr_operands): Likewise.
20764         * tree-into-ssa.c (dump_decl_set): Likewise.
20765         (update_ssa): Likewise.
20766         * tree-sra.c (scan_function): Likewise.
20767         (decide_instantiations): Likewise.
20768         (scalarize_parms): Likewise.
20769         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20770         (dsa_named_for): Likewise.
20771         * tree-ssa-structalias.c (update_alias_info): Likewise.
20772         (merge_smts_into): Likewise.
20773
20774 2008-02-27  David Daney  <ddaney@avtrex.com>
20775
20776         PR target/34409
20777         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
20778         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
20779         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
20780         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
20781         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
20782
20783 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
20784
20785         PR target/25477
20786         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
20787         (BUILT_IN_NEXTTOWARD): Remove.
20788         (BUILT_IN_NEXTTOWARDF): Ditto.
20789         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
20790         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
20791
20792 2008-02-27  Tom Tromey  <tromey@redhat.com>
20793
20794         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
20795         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
20796
20797 2008-02-27  Jan Beulich  <jbeulich@novell.com>
20798
20799         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
20800         update the respective field on newdecl.
20801
20802 2008-02-27  Revital Eres  <eres@il.ibm.com>
20803
20804         PR rtl-optimization/34999
20805         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
20806         crossing edges that ends with a call insn.
20807         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
20808         call insn and clear the EDGE_CROSSING flag of the crossing edge
20809         when fixing fallthru edges.
20810
20811 2008-02-27  Richard Guenther  <rguenther@suse.de>
20812
20813         PR middle-end/35390
20814         * fold-const.c (fold_unary): Return the correct argument,
20815         converted to the result type.
20816
20817 2008-02-27  Richard Guenther  <rguenther@suse.de>
20818
20819         PR middle-end/34971
20820         * expr.c (expand_expr_real_1): Assert on rotates that operate
20821         on partial modes.
20822         * fold-const.c (fold_binary): Use the types precision, not the
20823         bitsize of the mode if folding rotate expressions.  Build rotates
20824         only for full modes.
20825
20826 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
20827
20828         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
20829         and CPP_PRAGMA_EOL.
20830         * c-pragma.c (pragma_ns_name): New typedef.
20831         (registered_pp_pragmas): New variable.
20832         (c_pp_lookup_pragma): New function.
20833         (c_register_pragma_1): If flag_preprocess_only, do nothing
20834         for non-expanded pragmas, for expanded ones push pragma's
20835         namespace and name into registered_pp_pragmas vector.
20836         (c_invoke_pragma_handler): Register OpenMP pragmas even when
20837         flag_preprocess_only, don't register GCC pch_preprocess
20838         pragma if flag_preprocess_only.
20839         * c-opts.c (c_common_init): Call init_pragma even if
20840         flag_preprocess_only.
20841         * c-pragma.c (c_pp_lookup_pragma): New prototype.
20842         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
20843         cpp_register_pragma if flag_preprocess_only.
20844
20845 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20846
20847         PR c/28800
20848         * c-parser.c (c_parser_translation_unit): Warn for empty
20849         translation unit, not empty source file.
20850
20851 2008-02-26  Paul Brook  <paul@codesourcery.com>
20852
20853         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
20854         operand for Thumb-2.
20855         * config/arm/arm.h (reg_class): Add CORE_REGS.
20856         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
20857         (BASE_REG_CLASS): Use CORE_REGS.
20858         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
20859         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
20860         (REGNO_OK_FOR_INDEX_P): Exclude SP.
20861         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
20862         ARM_REGNO_OK_FOR_INDEX_P.
20863         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
20864         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
20865         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
20866         (ldm/stm peepholes): Ditto.
20867         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
20868         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
20869         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
20870         * config/arm/constraints.md: Enable "k" constraint on ARM.
20871
20872 2008-02-27  Ben Elliston  <bje@au.ibm.com>
20873
20874         * config/rs6000/rs6000.c: Annotate cache line size field in all
20875         instances of struct processor_costs.
20876
20877 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
20878
20879         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
20880         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
20881         jump_bypass): New counters.
20882         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
20883         * dce.c (gate_ud_dce): Same.
20884         (gate_fast_dce): Same.
20885         * dse.c (gate_dse1): New function.
20886         (gate_dse2): New function.
20887         (gate_dse): Merge results of new gate functions.
20888         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
20889         (gate_handle_jump_bypass): Add dbg_cnt.
20890         (gate_handle_gcse): Add dbg_cnt.
20891         * ifcvt.c (gate_handle_if_conversion): Same.
20892         (gate_handle_if_after_combine): Same.
20893         (gate_handle_if_after_reload): Same.
20894         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
20895
20896 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
20897
20898         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
20899         line sizes.
20900         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
20901
20902 2008-02-26  Jason Merrill  <jason@redhat.com>
20903
20904         PR c++/35315
20905         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
20906         alone if it's the naming decl for the type's main variant.
20907
20908 2008-02-26  Tom Tromey  <tromey@redhat.com>
20909
20910         * system.h (USE_MAPPED_LOCATION): Poison.
20911         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
20912         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
20913         (make_goto_expr_edges): Likewise.
20914         (remove_bb): Likewise.
20915         (execute_warn_function_return): Likewise.
20916         * basic-block.h (struct edge_def) <goto_locus>: Change type to
20917         location_t.
20918         * c-common.c (fname_decl): Remove old location code.
20919         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
20920         location code.
20921         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
20922         variant.
20923         (ASM_INPUT_SOURCE_LOCATION): Likewise.
20924         (gen_rtx_ASM_INPUT): Likewise.
20925         (gen_rtx_ASM_INPUT_loc): Likewise.
20926         (get_rtx_asm_OPERANDS): Remove.
20927         * cfglayout.c (insn_locators_alloc): Remove old location code.
20928         (set_curr_insn_source_location): Likewise.
20929         (curr_insn_locator): Likewise.
20930         * print-tree.c (print_node): Remove old location code.
20931         * tree-mudflap.c (mf_varname_tree): Remove old location code.
20932         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
20933         * cfgexpand.c (expand_gimple_cond_expr): Don't use
20934         location_from_locus.
20935         (construct_exit_block): Remove old location code.
20936         * emit-rtl.c (force_next_line_note): Remove old location code.
20937         * profile.c (branch_prob): Remove old location code.
20938         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
20939         LOC_LINE): Remove old-location variants.
20940         * langhooks.c (lhd_print_error_function): Remove old location
20941         code.
20942         * configure, config.in: Rebuilt.
20943         * configure.ac (--enable-mapped-location): Remove.
20944         * c-decl.c (c_init_decl_processing): Remove old location code.
20945         (finish_function): Likewise.
20946         * recog.c (decode_asm_operands): Remove old location code.
20947         * c-pch.c (c_common_read_pch): Remove old location code.
20948         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
20949         variants.
20950         * gimple-low.c (lower_function_body): Remove old location code.
20951         * toplev.c (unknown_location): Remove.
20952         (push_srcloc): Remove old-location variant.
20953         (process_options): Remove old location code.
20954         (lang_dependent_init): Likewise.
20955         * input.h (UNKNOWN_LOCATION): Move definition.
20956         (location_t): Undeprecate.
20957         (source_locus): Remove.
20958         (location_from_locus): Remove.
20959         (struct location_s): Remove.
20960         Remove all old-location code.
20961         (input_line, input_filename): Remove.
20962         * final.c (final_scan_insn): Remove old location code.
20963         * diagnostic.c (diagnostic_build_prefix): Remove
20964         USE_MAPPED_LOCATION test.
20965         * tree.h (gimple_stmt) <locus>: Now a location_t.
20966         (tree_exp) <locus>: Likewise.
20967         (DECL_IS_BUILTIN): Remove old-location variant.
20968         (annotate_with_file_line, annotate_with_locus): Likewise.
20969         (expr_locus, set_expr_locus): Update.
20970         * tree.c (build1_stat): Remove old location code.
20971         (last_annotated_node): Remove.
20972         (annotate_with_file_line): Remove old-location variant.
20973         (annotate_with_locus): Likewise.
20974         (expr_location): Remove old location code.
20975         (set_expr_location): Likewise.
20976         (expr_has_location): Likewise.
20977         (expr_locus): Likewise.
20978         (set_expr_locus): Likewise.
20979         (expr_filename): Don't use location_from_locus.
20980         (expr_lineno): Likewise.
20981         * rtl-error.c (location_for_asm): Remove old location code.
20982         * c-lex.c (cb_line_change): Remove old location code.
20983         (fe_file_change): Likewise.
20984         (cb_def_pragma): Likewise.
20985         (c_lex_with_flags): Likewise.
20986         * gengtype.c (do_typedef): Don't special-case location types.
20987         (define_location_structures): Remove.
20988         (main): Don't call define_location_structures.
20989         * tree-pretty-print.c (dump_implicit_edges): Remove old location
20990         code.
20991
20992 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20993
20994         PR 26264
20995         * builtins.def (BUILT_IN_STDARG_START): Remove.
20996         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
20997         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
20998         * tree-inline.c (inline_forbidden_p_1): Likewise.
20999
21000 2008-02-26  Richard Guenther  <rguenther@suse.de>
21001
21002         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21003         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21004         (lookup_decl_from_uid): Declare.
21005         (remove_decl_from_map): Likewise.
21006         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21007         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21008         (decl_for_uid_map): New global hashtable mapping DECL_UID
21009         to the decl tree.
21010         (init_ttree): Allocate it.
21011         (insert_decl_to_uid_decl_map): New helper function.
21012         (make_node_stat): Insert new decls into the map.
21013         (copy_node_stat): Likewise.
21014         (lookup_decl_from_uid): New function.
21015         (remove_decl_from_map): Likewise.
21016         (print_decl_for_uid_map_statistics): New helper.
21017         (dump_tree_statistics): Call it.
21018
21019         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21020         (referenced_var_iterator): Adjust.
21021         (FOR_EACH_REFERENCED_VAR): Adjust.
21022         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21023         (num_referenced_vars): Adjust.
21024         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21025         (first_referenced_var): Remove.
21026         (end_referenced_vars_p): Likewise.
21027         (next_referenced_var): Likewise.
21028         (referenced_var_iterator_set): New helper function.
21029         * tree-dfa.c (referenced_var_lookup): Adjust.
21030         (referenced_var_check_and_insert): Likewise.
21031         (remove_referenced_var): Likewise.
21032         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21033         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21034         (verify_call_clobbering): Likewise.
21035         (verify_memory_partitions): Likewise.
21036         (init_tree_ssa): Allocate bitmap instead of hashtable for
21037         referenced_vars.
21038         (delete_tree_ssa): Adjust.
21039         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21040         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21041         (compute_tag_properties): Likewise.
21042         (set_initial_properties): Likewise.
21043         (find_partition_for): Likewise.
21044         (update_reference_counts): Likewise.
21045         (dump_may_aliases_for): Likewise.
21046         * tree-ssa-operands.c (add_virtual_operand): Likewise.
21047         (add_call_clobber_ops): Likewise.
21048         (add_call_read_ops): Likewise.
21049         (get_asm_expr_operands): Likewise.
21050         * tree-into-ssa.c (dump_decl_set): Likewise.
21051         (update_ssa): Likewise.
21052         * tree-sra.c (scan_function): Likewise.
21053         (decide_instantiations): Likewise.
21054         (scalarize_parms): Likewise.
21055         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21056         (dsa_named_for): Likewise.
21057         * tree-ssa-structalias.c (update_alias_info): Likewise.
21058         (merge_smts_into): Likewise.
21059
21060 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21061
21062         PR 34351
21063         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
21064         * c-opts.c (c_common_handle_option): Wall enables
21065         Wvolatile-register-var.
21066         * common.opt: Move Wvolatile-register-var to...
21067         * c.opt: ...here.
21068
21069 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21070
21071         * common.opt (Wlarger-than=): New.
21072         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
21073         -Wlarger-than=.
21074         * opts.c (common_handle_option): Handle -Wlarger-than=.
21075         * optc-gen.awk: Likewise.
21076         * opth-gen.awk: Likewise.
21077         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
21078         * tree-optimize.c (tree_rest_of_compilation): Likewise.
21079
21080 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21081
21082         * c-common.c (match_case_to_enum_1): Add appropriate
21083         OPT_W* parameter to warning.
21084         (c_do_switch_warnings): Likewise.
21085         * c-typeck.c (warning_init): Add one more parameter following
21086         'warning' function.
21087         (push_init_level): Update call to warning_init.
21088         (pop_init_level): Likewise.
21089         (add_pending_init): Likewise.
21090         (output_init_element: Likewise.
21091
21092 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21093
21094         PR 28322
21095         * toplev.c (toplev_main): If there are warnings or error, print
21096         errors for ignored options.
21097         * opts.c (ignored_options): New static variable.
21098         (postpone_unknown_option_error): New.
21099         (print_ignored_options): New.
21100         (handle_option): Postpone errors for unknown -Wno-* options.
21101         * opts.h (print_ignored_options): Declare.
21102
21103 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
21104
21105         * config/mips/mips.md (loadgp_blockage, blockage): Change type
21106         to "ghost".
21107
21108 2008-02-25  Richard Guenther  <rguenther@suse.de>
21109
21110         Revert:
21111         2008-02-25  Richard Guenther  <rguenther@suse.de>
21112
21113         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21114         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21115         (lookup_decl_from_uid): Declare.
21116         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21117         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21118         (decl_for_uid_map): New global hashtable mapping DECL_UID
21119         to the decl tree.
21120         (init_ttree): Allocate it.
21121         (insert_decl_to_uid_decl_map): New helper function.
21122         (make_node_stat): Insert new decls into the map.
21123         (copy_node_stat): Likewise.
21124         (lookup_decl_from_uid): New function.
21125         (print_decl_for_uid_map_statistics): New helper.
21126         (dump_tree_statistics): Call it.
21127
21128         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21129         (referenced_var_iterator): Adjust.
21130         (FOR_EACH_REFERENCED_VAR): Adjust.
21131         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21132         (num_referenced_vars): Adjust.
21133         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21134         (first_referenced_var): Remove.
21135         (end_referenced_vars_p): Likewise.
21136         (next_referenced_var): Likewise.
21137         (referenced_var_iterator_set): New helper function.
21138         * tree-dfa.c (referenced_var_lookup): Adjust.
21139         (referenced_var_check_and_insert): Likewise.
21140         (remove_referenced_var): Likewise.
21141         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21142         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21143         (verify_call_clobbering): Likewise.
21144         (verify_memory_partitions): Likewise.
21145         (init_tree_ssa): Allocate bitmap instead of hashtable for
21146         referenced_vars.
21147         (delete_tree_ssa): Adjust.
21148         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21149         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21150         (compute_tag_properties): Likewise.
21151         (set_initial_properties): Likewise.
21152         (find_partition_for): Likewise.
21153         (update_reference_counts): Likewise.
21154         (dump_may_aliases_for): Likewise.
21155         * tree-ssa-operands.c (add_virtual_operand): Likewise.
21156         (add_call_clobber_ops): Likewise.
21157         (add_call_read_ops): Likewise.
21158         (get_asm_expr_operands): Likewise.
21159         * tree-into-ssa.c (dump_decl_set): Likewise.
21160         (update_ssa): Likewise.
21161         * tree-sra.c (scan_function): Likewise.
21162         (decide_instantiations): Likewise.
21163         (scalarize_parms): Likewise.
21164         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21165         (dsa_named_for): Likewise.
21166         * tree-ssa-structalias.c (update_alias_info): Likewise.
21167         (merge_smts_into): Likewise.
21168
21169 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
21170
21171         PR fortran/29549
21172         * doc/invoke.texi (-fcx-limited-range): Document new option.
21173         * toplev.c (process_options): Handle -fcx-fortran-rules.
21174         * common.opt: Add documentation for -fcx-fortran-rules.
21175
21176 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
21177
21178         PR c/35162
21179         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
21180         actual behaviour and C99.
21181
21182 2008-02-26  Ben Elliston  <bje@au.ibm.com>
21183
21184         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
21185         (ASM_CPU_POWER6_SPEC): Likewise.
21186         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
21187         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
21188         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
21189
21190 2008-02-25  Richard Guenther  <rguenther@suse.de>
21191
21192         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21193         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21194         (lookup_decl_from_uid): Declare.
21195         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21196         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21197         (decl_for_uid_map): New global hashtable mapping DECL_UID
21198         to the decl tree.
21199         (init_ttree): Allocate it.
21200         (insert_decl_to_uid_decl_map): New helper function.
21201         (make_node_stat): Insert new decls into the map.
21202         (copy_node_stat): Likewise.
21203         (lookup_decl_from_uid): New function.
21204         (print_decl_for_uid_map_statistics): New helper.
21205         (dump_tree_statistics): Call it.
21206
21207         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21208         (referenced_var_iterator): Adjust.
21209         (FOR_EACH_REFERENCED_VAR): Adjust.
21210         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21211         (num_referenced_vars): Adjust.
21212         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21213         (first_referenced_var): Remove.
21214         (end_referenced_vars_p): Likewise.
21215         (next_referenced_var): Likewise.
21216         (referenced_var_iterator_set): New helper function.
21217         * tree-dfa.c (referenced_var_lookup): Adjust.
21218         (referenced_var_check_and_insert): Likewise.
21219         (remove_referenced_var): Likewise.
21220         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21221         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21222         (verify_call_clobbering): Likewise.
21223         (verify_memory_partitions): Likewise.
21224         (init_tree_ssa): Allocate bitmap instead of hashtable for
21225         referenced_vars.
21226         (delete_tree_ssa): Adjust.
21227         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21228         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21229         (compute_tag_properties): Likewise.
21230         (set_initial_properties): Likewise.
21231         (find_partition_for): Likewise.
21232         (update_reference_counts): Likewise.
21233         (dump_may_aliases_for): Likewise.
21234         * tree-ssa-operands.c (add_virtual_operand): Likewise.
21235         (add_call_clobber_ops): Likewise.
21236         (add_call_read_ops): Likewise.
21237         (get_asm_expr_operands): Likewise.
21238         * tree-into-ssa.c (dump_decl_set): Likewise.
21239         (update_ssa): Likewise.
21240         * tree-sra.c (scan_function): Likewise.
21241         (decide_instantiations): Likewise.
21242         (scalarize_parms): Likewise.
21243         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21244         (dsa_named_for): Likewise.
21245         * tree-ssa-structalias.c (update_alias_info): Likewise.
21246         (merge_smts_into): Likewise.
21247
21248 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
21249
21250         PR target/35258
21251         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
21252         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
21253         * alias.h (nonoverlapping_memrefs_p): Likewise.
21254
21255 2008-02-25  Jan Beulich  <jbeulich@novell.com>
21256
21257         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
21258         * config/i386/netware-libgcc.exp: Add __bswap?i2,
21259         __emultls_get_address, __emultls_register_common,
21260         __floatundi?f, and _Unwind_GetIPInfo.
21261         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
21262         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
21263         (gen_regparm_prefix): Likewise.
21264         (i386_nlm_encode_section_info): Sync with
21265         config/i386/winnt.c:i386_pe_encode_section_info().
21266         (i386_nlm_maybe_mangle_decl_assembler_name): New.
21267         i386_nlm_mangle_decl_assembler_name): New.
21268         (netware_override_options): New.
21269         * config/i386/netware.h (netware_override_options): Declare.
21270         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
21271         (i386_nlm_mangle_decl_assembler_name): Declare.
21272         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
21273
21274 2008-02-25  Ben Elliston  <bje@au.ibm.com>
21275
21276         PR other/32948
21277         * c-decl.c (grokdeclarator): Remove unused local variables
21278         `typedef_type' and `type_as_written'.
21279         * bb-reorder.c
21280         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
21281         unused local variable `has_hot_blocks'.
21282         (fix_crossing_conditional_branches): Remove unused local variable
21283         `prev_bb'.
21284
21285 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
21286
21287         PR middle-end/19984
21288         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
21289         using DEF_C99_BUILTIN.
21290         (BUILT_IN_NANF): Ditto.
21291         (BUILT_IN_NANL): Ditto.
21292
21293 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
21294             Revital Eres  <eres@il.ibm.com>
21295
21296         * modulo-sched.c (calculate_must_precede_follow): Address TODO
21297         regarding the order of two dependent insns in the same row.
21298
21299 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
21300
21301         * stor-layout.c (layout_decl): Do not bump the alignment of a
21302         bit-field to more than byte alignment if it is packed.
21303
21304 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
21305
21306         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
21307         e300c2 and e300c3.
21308
21309 2008-02-24  Diego Novillo  <dnovillo@google.com>
21310
21311         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
21312
21313         PR 33738
21314         * tree-vrp.c (vrp_evaluate_conditional): With
21315         -Wtype-limits, emit a warning when comparing against a
21316         constant outside the natural range of OP0's type.
21317         * c.opt (Wtype-limits): Move ...
21318         * common.opt (Wtype-limits): ... here.
21319
21320 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
21321
21322         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
21323         * config/rs6000/e300c2c3.md: New file.
21324         * config/rs6000/rs6000.c (processor_costs): Add new costs for
21325         e300c2 and e300c3.
21326         (rs6000_override_options): Add e300c2 and e300c3 cases to
21327         processor_target_table. Do not allow usage of Altivec or Spe
21328         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
21329         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
21330         * config/rs6000/rs6000.h (processor_type): Add
21331         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
21332         (ASM_CPU_SPEC): Add e300c2 and e300c3.
21333         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
21334         and ppce300c3. Include e300c2c3.md.
21335
21336 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
21337
21338         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
21339         instead of TARGET_STRICT_ALIGN.
21340
21341 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
21342
21343         * explow.c (memory_address): Assert that the generated address is
21344         valid.
21345
21346 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
21347
21348         PR target/25477
21349         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
21350         * config/darwin-ppc-ldouble-patch.def: New file.
21351         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
21352         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
21353         SUBTARGET_INIT_BUILTINS if defined.
21354         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
21355         New functions.
21356
21357 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21358
21359         PR rtl-opt/33512
21360         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
21361         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
21362
21363 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21364
21365         PR pch/35027
21366         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
21367         file" warning condtional on -Winvalid-PCH.
21368
21369 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
21370
21371         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
21372
21373 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
21374
21375         PR target/22076
21376         PR target/34256
21377         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
21378         prevent reload from using MMX registers.
21379         (*mov<mode>_internal): Ditto.
21380         (*movv2sf_internal_rex64): Ditto.
21381         (*movv2sf_internal): Ditto.
21382
21383 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21384
21385         PR documentation/31569
21386         * doc/install.texi2html: Use makeinfo --no-number-sections.
21387
21388 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
21389
21390         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
21391         ensure that we can address an entire entity > 8 bytes.  Don't
21392         generate reg+reg addressing for such data.
21393
21394 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
21395
21396         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
21397         strings when optimizing for size, unless the target cares about
21398         alignment.
21399
21400 2008-02-22  Tom Tromey  <tromey@redhat.com>
21401
21402         * regclass.c (current_pass): Remove declaration.
21403
21404 2008-02-22  Anatoly Sokolov <aesok@post.ru>
21405
21406         * config/avr/libgcc.S (__RAMPZ__): Define.
21407         (__do_copy_data): Add for devices with 128KB code memory.
21408
21409 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
21410
21411         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
21412         Use spe_abi.
21413         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
21414
21415 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
21416
21417         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
21418         GENNONACR_REGS.
21419
21420 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21421
21422         PR c/19999
21423         * c-typeck.c (build_binary_op): Warn about floating point
21424         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
21425
21426 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
21427
21428         PR target/34526
21429         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
21430         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
21431         add vrsave.
21432         (rs6000_override_options): Set altivec_abi as default, not override,
21433         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
21434         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
21435         is used; use new member spe_abi.
21436         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
21437         spe_abi and altivec_abi.
21438
21439 2008-02-22  Tomas Bily  <tbily@suse.cz>
21440
21441         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
21442
21443 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21444
21445         PR bootstrap/35273
21446         * config.build (build_file_translate): Set to `CMD //c' only if
21447         it works.
21448         * Makefile.in (build_file_translate): Improve comment.
21449
21450 2008-02-21  Jan Hubicka  <jh@suse.cz>
21451
21452         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
21453         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
21454         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
21455
21456 2008-02-21  Michael Matz  <matz@suse.de>
21457
21458         PR target/35264
21459         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
21460
21461 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
21462
21463         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
21464         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
21465         as insn constraint.
21466         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
21467         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
21468         SSE_VEC_FLOAT_MODE_P as insn constraint.
21469         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
21470         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
21471         sse4a_movntdf using MODEF mode iterator.
21472         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
21473         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
21474         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
21475         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
21476         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
21477         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
21478         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
21479
21480 2008-02-21  Richard Guenther  <rguenther@suse.de>
21481
21482         * tree.def (PAREN_EXPR): New tree code.
21483         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
21484         and PAREN_EXPR.
21485         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
21486         * expr.c (expand_expr_real_1): Likewise.
21487         * tree-inline.c (estimate_num_insns_1): Likewise.
21488         * tree-complex.c (expand_complex_move): Likewise.
21489         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
21490         as plain x.
21491
21492 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21493
21494         PR target/35225
21495         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
21496
21497 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21498
21499         PR target/35190
21500         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
21501
21502         * config/sh/sh.c (find_barrier): Don't go past
21503         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
21504
21505 2008-02-20  DJ Delorie  <dj@redhat.com>
21506
21507         * config/h8300/h8300.md (insv): Force source operand to be a register.
21508
21509         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
21510         as a jump, not as a plain insn.
21511
21512 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
21513
21514         * doc/invoke.texi (Warning Options): Add new option
21515         -Wframe-larger-than=.
21516         (-Wframe-larger-than): Document.
21517
21518         * flags.h (warn_frame_larger_than, frame_larger_than_size):
21519         Add declarations for new option variables.
21520
21521         * final.c (final_start_function): Check the frame size
21522         before emission and issue a Wframe-larger-than warning.
21523
21524         * opts.c (warn_frame_larger_than, frame_larger_than_size):
21525         Add definitions for new option variables.
21526         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
21527
21528         * common.opt (Wframe-larger-than=): New option.
21529
21530 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
21531
21532         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
21533         (<sse>_div<mode>3): Ditto.
21534         (<sse>_vmdiv<mode>3): Ditto.
21535         (<sse>_vmsqrt<mode>2): Ditto.
21536         (*smax<mode>3): Ditto.
21537         (sse5_frcz<mode>2): Ditto.
21538         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
21539         as insn constraint.
21540
21541 2008-02-20  Richard Guenther  <rguenther@suse.de>
21542
21543         PR middle-end/35265
21544         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
21545         be happy with INTEGRAL_TYPE_P.
21546
21547 2008-02-20  Richard Guenther  <rguenther@suse.de>
21548
21549         * fold-const.c (split_tree): Associate floatig-point expressions
21550         if flag_associative_math is set.
21551
21552 2008-02-20  Richard Guenther  <rguenther@suse.de>
21553
21554         * tree.h (fold_real_zero_addition_p): Declare.
21555         * fold-const.c (fold_real_zero_addition_p): Export.
21556         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
21557         floating-point operations with zero and one.
21558
21559 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
21560
21561         * doc/install.texi: Correct references to CFLAGS, replacing them
21562         with BOOT_CFLAGS.  Document flags used during bootstrap for
21563         target libraries.
21564
21565 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
21566
21567         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
21568         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
21569         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
21570         insn constraint.
21571         (smin<mode>3): Ditto from similar patterns.
21572         (smax<mode>3): Ditto.
21573         (*ieee_smin<mode>3): Ditto.
21574         (*ieee_smax<mode>3): Ditto.
21575         * config/i386/sse.md (sse): New mode attribute.
21576         (mov<mode>): Macroize expander from movv4sf and movv2df using
21577         SSEMODEF2P mode iterator.
21578         (<sse>_movnt<mode>): Ditto from similar patterns. Use
21579         SSE_VEC_FLOAT_MODE_P as insn constraint.
21580         (storent<mode>): Ditto.
21581         (storent<mode>): Macroize expander from storentsf and storentdf using
21582         MODEF mode iterator.
21583         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
21584         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
21585         (abs<mode>2): Ditto from similar patterns.
21586         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
21587         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
21588         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
21589         (<sse>_vmsqrt<mode>2): Ditto.
21590         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
21591         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
21592         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
21593         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
21594         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
21595         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
21596         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
21597         insn constraint.
21598         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
21599         iterator and SSE_FLOAT_MODE_P as insn constraint.
21600         (<sse>_ucomi): Ditto from similar patterns.
21601         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
21602         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
21603         SSE_VEC_FLOAT_MODE_P as insn constraint.
21604         (vcond<mode>): Ditto from similar patterns.
21605         (and<mode>3, *and<mode>3): Ditto.
21606         (<sse>_nand<mode>3): Ditto.
21607         (ior<mode>3, *ior<mode>3): Ditto.
21608         (xor<mode>3, *xor<mode>3): Ditto.
21609         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
21610         iterator and SSE_FLOAT_MODE_P as insn constraint.
21611         (*nand<mode>3): Ditto from similar patterns.
21612         (*ior<mode>3): Ditto.
21613         (*xor<mode>3): Ditto.
21614
21615 2008-02-20  Ira Rosen  <irar@il.ibm.com>
21616
21617         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
21618         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
21619         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
21620
21621 2008-02-19  Jan Hubicka  <jh@suse.cz>
21622
21623         * predict.c (tree_bb_level_predictions): Remove variable next
21624         mistakely introduced by previous commit.
21625
21626 2008-02-19  Jan Hubicka  <jh@suse.cz>
21627
21628         * predict.c (predict_paths_leading_to): Rewrite.
21629         (predict_paths_for_bb): New.
21630         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
21631
21632 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21633
21634         PR bootstrap/35218
21635         * Makefile.in (build_file_translate): New.
21636         (gcc-vers.texi): Use it for translating $(abs_srcdir).
21637         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
21638         * configure.ac (build_file_translate): Substitute it.
21639         * configure: Regenerate.
21640
21641 2008-02-19  Jan Hubicka  <jh@suse.cz>
21642
21643         PR rtl-optimization/34408
21644         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
21645         invalid sharing.
21646
21647 2008-02-19  Jan Hubicka  <jh@suse.cz>
21648
21649         PR middle-end/28779
21650         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
21651         call_expr.
21652
21653 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
21654
21655         PR Ada/35186
21656         * config/i386/i386-modes.def: Revert the last DI alignment
21657         change until Ada people can look into it.
21658
21659 2008-02-19  Nick Clifton  <nickc@redhat.com>
21660
21661         * opts.c (print_specific_help): Fix typo in --help text.
21662
21663 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
21664
21665         PR target/35239
21666         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
21667         32-bit inline asm without asm alternatives for host GCC < 3.0.
21668
21669 2008-02-19  Richard Guenther  <rguenther@suse.de>
21670
21671         PR tree-optimization/34989
21672         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
21673         Allow propagation to INDIRECT_REF if we can simplify only.
21674
21675 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21676
21677         * c-common.c (warn_for_collisions_1): Use appropriate option when
21678         warning.
21679
21680 2008-02-19  Nick Clifton  <nickc@redhat.com>
21681
21682         PR other/31349
21683         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
21684         (handle_options): Fix indentation.
21685         (print_filtered_help): If no language-specific options were
21686         displayed tell the user how to list all the options supported by
21687         the language's front-end.
21688         (print_specific_help): Fix indentation and remove duplicate line.
21689         (common_handle_option): Handle the -v option.
21690         For --help enable the display of undocumented options if the -v
21691         switch has been included on the command line.
21692         For --help= check for overlaps in the arguments between the option
21693         classes and the language names and issue a warning when they
21694         cannot be disambiguated.
21695         * c.opt (v): Pass on to the common option handler.
21696
21697 2008-02-19  Revital Eres  <eres@il.ibm.com>
21698
21699         * modulo-sched.c (sms_schedule): Change dump message when
21700         create_ddg function fails.
21701         (try_scheduling_node_in_cycle): Rename row to cycle.
21702         (print_partial_schedule): Rename CYCLE to ROW.
21703
21704 2008-02-19  Christian Bruel  <christian.bruel@st.com>
21705             Zdenek Dvorak  <ook@ucw.cz>
21706
21707         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
21708
21709 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
21710
21711         PR target/33555
21712         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
21713         (*x86_movdicc_0_m1_se): Ditto.
21714
21715 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
21716
21717         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
21718         (CMPtype): Define as __gcc_CMPtype.
21719         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
21720         (CMPtype): Define as __gcc_CMPtype.
21721
21722 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
21723
21724         Support valgrind 3.3 for --enable-checking=valgrind.
21725         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
21726         here.
21727         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
21728         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
21729         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
21730         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
21731         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
21732         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
21733         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
21734         respectively.
21735         * ggc-zone.c: Similar.
21736         * ggc-page.c: Similar.
21737
21738 2008-02-19  Paul Brook  <paul@codesourcery.com>
21739
21740         PR target/35071
21741         * config/arm/ieee754-df.S: Fix do_it typo.
21742         * config/arm/ieee754-sf.S: Fix do_it typo.
21743
21744 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
21745
21746         PR target/35189
21747         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
21748         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
21749         (OPTION_MASK_ISA_SSE_SET): Likewise.
21750         (OPTION_MASK_ISA_SSE2_SET): Likewise.
21751         (OPTION_MASK_ISA_SSE3_SET): Likewise.
21752         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
21753         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
21754         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
21755         (OPTION_MASK_ISA_SSE4_SET): Likewise.
21756         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
21757         (OPTION_MASK_ISA_SSE5_SET): Likewise.
21758         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
21759         (OPTION_MASK_ISA_MMX_UNSET): Updated.
21760         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
21761         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
21762         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
21763         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
21764         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
21765         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
21766         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
21767         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
21768         (OPTION_MASK_ISA_SSE4): Removed.
21769         (ix86_handle_option): Turn on bits in ix86_isa_flags and
21770         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
21771         (override_options): Don't turn on implied SSE/MMX bits in
21772         ix86_isa_flags.
21773
21774 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
21775
21776         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21777         32bit host.
21778
21779 2008-02-18  Joey Ye  <joey.ye@intel.com>
21780
21781         PR middle-end/34921
21782         * tree-nested.c (insert_field_into_struct): Set type alignment
21783         to field alignment if the former is less than the latter.
21784
21785 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
21786
21787         * BASE-VER: Set to 4.4.0.
21788
21789 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21790
21791         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
21792         * doc/cfg.texi: Likewise.
21793         * doc/extend.texi: Likewise.
21794         * doc/gty.texi: Likewise.
21795         * doc/invoke.texi: Likewise.
21796         * doc/loop.texi: Likewise.
21797         * doc/md.texi: Likewise.
21798         * doc/passes.texi: Likewise.
21799         * doc/rtl.texi: Likewise.
21800         * doc/sourcebuild.texi: Likewise.
21801         * doc/tm.texi: Likewise.
21802         * doc/tree-ssa.texi: Likewise.
21803
21804 2008-02-17  Richard Guenther  <rguenther@suse.de>
21805
21806         PR middle-end/35227
21807         * tree-complex.c (init_parameter_lattice_values): Handle parameters
21808         without default definition.
21809
21810 2008-02-17  Richard Guenther  <rguenther@suse.de>
21811
21812         PR tree-optimization/35231
21813         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
21814         if A | B != 1.
21815
21816 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
21817
21818         Revert:
21819         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21820         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21821         libgcc_cmp_return mode.
21822
21823 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21824
21825         PR c/28368
21826         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
21827
21828 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
21829
21830         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
21831         multilibs.
21832
21833 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21834
21835         * doc/c-tree.texi: Use `@.' where appropriate.
21836         * doc/extend.texi: Likewise.
21837         * doc/install.texi: Likewise.
21838         * doc/invoke.texi: Likewise.
21839         * doc/loop.texi: Likewise.
21840         * doc/makefile.texi: Likewise.
21841         * doc/md.texi: Likewise.
21842         * doc/passes.texi: Likewise.
21843         * doc/standards.texi: Likewise.
21844         * doc/tm.texi: Likewise.
21845
21846 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
21847
21848         PR middle-end/35196
21849         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
21850         in entry_bb.
21851         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
21852         rather than in entry_bb.
21853
21854 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21855
21856         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21857         libgcc_cmp_return mode.
21858
21859 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
21860
21861         PR middle-end/35130
21862         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
21863         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
21864
21865 2008-02-15  Richard Guenther  <rguenther@suse.de>
21866             Zdenek Dvorak  <ook@ucw.cz>
21867
21868         PR tree-optimization/35164
21869         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
21870         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
21871         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
21872         Only propagate addresses which do not have abnormal SSA_NAMEs
21873         in their operands.
21874
21875 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
21876
21877         PR target/35088
21878         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
21879
21880 2008-02-15  Jan Hubicka  <jh@suse.cz>
21881
21882         PR middle-end/35149
21883         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
21884
21885 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21886
21887         PR middle-end/34621
21888         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
21889         when calculating alignment_pad.
21890
21891 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21892
21893         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
21894         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
21895         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
21896         and STACK_BOUNDARY define.
21897
21898 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
21899
21900         PR preprocessor/35061
21901         * c-pragma.c (handle_pragma_pop_macro): Check that
21902         pushed_macro_table has been allocated.
21903
21904 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
21905
21906         PR middle-end/35136
21907         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
21908         (force_gimple_operand): Likewise.
21909         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
21910         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
21911         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
21912         (find_interesting_uses_address): Check addressability and alignment
21913         of the base expression only after substituting bases of IVs into it.
21914
21915 2008-02-14  Michael Matz  <matz@suse.de>
21916
21917         PR target/34930
21918         * function.c (instantiate_virtual_regs_in_insn): Reload address
21919         before falling back to reloading the whole operand.
21920
21921 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
21922
21923         * config/s390/s390.c (s390_mainpool_start): Emit the pool
21924         before the first section switch note.
21925
21926 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21927
21928         * doc/bugreport.texi: Update copyright years.
21929         * doc/c-tree.texi: Likewise.
21930         * doc/cfg.texi: Likewise.
21931         * doc/cpp.texi: Likewise.
21932         * doc/cppinternals.texi: Likewise.
21933         * doc/fragments.texi: Likewise.
21934         * doc/frontends.texi: Likewise.
21935         * doc/gcc.texi: Likewise.
21936         * doc/gty.texi: Likewise.
21937         * doc/hostconfig.texi: Likewise.
21938         * doc/implement-c.texi: Likewise.
21939         * doc/libgcc.texi: Likewise.
21940         * doc/loop.texi: Likewise.
21941         * doc/makefile.texi: Likewise.
21942         * doc/options.texi: Likewise.
21943         * doc/passes.texi: Likewise.
21944         * doc/rtl.texi: Likewise.
21945         * doc/sourcebuild.texi: Likewise.
21946         * doc/standards.texi: Likewise.
21947         * doc/tree-ssa.texi: Likewise.
21948         * doc/trouble.texi: Likewise.
21949
21950         * doc/extend.texi: Use @: or add comma where appropriate.
21951         * doc/invoke.texi: Likewise.
21952         * doc/tm.texi: Likewise.
21953
21954 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
21955
21956         PR target/34393
21957         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
21958         to a reg.
21959
21960 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
21961
21962         * doc/md.texi (clz, ctz): Add reference.
21963         * doc/rtl.texi (clz, ctz): Likewise.
21964
21965 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21966
21967         PR other/35148
21968         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
21969         srcdir.
21970
21971 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
21972
21973         * config/s390/s390.c (struct constant_pool): New field
21974         emit_pool_after added.
21975         (s390_mainpool_start): Set the emit_pool_after flag according
21976         to the section switch notes.
21977         (s390_mainpool_finish): Consider emit_pool_after when emitting
21978         the literal pool at the end of the function.
21979         (s390_chunkify_start): Force literal pool splits at section
21980         switch notes.
21981
21982 2008-02-13  Michael Matz  <matz@suse.de>
21983
21984         PR debug/35065
21985         * var-tracking.c (clobber_variable_part): Correctly traverse the
21986         list.
21987
21988 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21989
21990         PR 29673
21991         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
21992         Add -fdump-ipa-inline.
21993         * tree-dump.c (dump_files): Remove tree-inlined dump.
21994         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
21995
21996 2008-02-12  Richard Guenther  <rguenther@suse.de>
21997
21998         PR tree-optimization/35171
21999         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
22000         default defs.
22001
22002 2008-02-12  Richard Guenther  <rguenther@suse.de>
22003
22004         PR middle-end/35163
22005         * fold-const.c (fold_widened_comparison): Use get_unwidened in
22006         value-preserving mode.  Disallow final truncation.
22007
22008 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
22009
22010         PR middle-end/35136
22011         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
22012         code from here to...
22013         (force_gimple_operand): ...here.
22014
22015 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
22016
22017         PR c++/35144
22018         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
22019         non-compatible pointers.
22020         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
22021         different FIELD_DECLs, try harder by comparing field offsets, sizes
22022         and types.
22023
22024         PR inline-asm/35160
22025         * function.c (match_asm_constraints_1): Don't replace the same input
22026         multiple times.
22027
22028 2008-02-12  Anatoly Sokolov <aesok@post.ru>
22029
22030         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
22031         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
22032         (expand_epilogue): Restore RAMPZ register.
22033         * config/avr/avr.md (RAMPZ_ADDR): New constant.
22034
22035 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
22036
22037         * config/i386/cygwin.asm: (__alloca): Correct calling
22038         convention and alignment.
22039         (__chkstk): Force 8 byte stack alignment.
22040
22041 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
22042             Richard Guenther  <rguenther@suse.de>
22043
22044         PR tree-optimization/33992
22045         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
22046         the zero we compare against.
22047
22048 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
22049
22050         PR libfortran/35063
22051         * gthr-win32.h (__gthread_mutex_destroy_function): New function
22052         to CloseHandle after unlocking to prevent accumulation of handle
22053         count.
22054
22055 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22056
22057         PR middle_end/34150
22058         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
22059         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
22060         and update LABEL_NUSES during and after reload.
22061
22062 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
22063
22064         PR middle-end/34627
22065         * combine.c (simplify_if_then_else): Make sure the comparison is
22066         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
22067
22068 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
22069
22070         PR bootstrap/35051
22071         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
22072         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
22073         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
22074         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
22075         * tree.h (get_type_static_bounds): Likewise.
22076
22077 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22078
22079         * doc/invoke.texi (Option Summary, C++ Dialect Options)
22080         (Objective-C and Objective-C++ Dialect Options, Warning Options):
22081         Make -Wfoo language annotations match what the compiler outputs.
22082
22083 2008-02-08  Sa Liu  <saliu@de.ibm.com>
22084
22085         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
22086         intrinsics spu_convts, spu_convtu, spu_convtf.
22087
22088 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
22089
22090         * doc/extend.texi (Function Attributes) <noinline>: Mention
22091         asm ("") as method to keep calls.
22092
22093 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22094
22095         PR other/32754
22096         * doc/options.texi (Options): Replace references to opts.sh with
22097         optc-gen.awk.
22098         * opts-common.c: Likewise.
22099         * optc-gen.awk: Likewise.
22100
22101 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
22102
22103         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
22104
22105 2008-02-07  Richard Henderson  <rth@redhat.com>
22106
22107         PR rtl-opt/33410
22108         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
22109         EXPR_LIST for the REG_EQUAL instead of a comparison with a
22110         funny mode.
22111
22112 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
22113
22114         PR tree-optimization/35085
22115         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
22116         for operand entry oe2 in addition to operand entry oe3 in order to
22117         expose more opportunities for vectorizer sum reduction.
22118
22119 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22120
22121         PR other/35107
22122         * Makefile.in (LIBS): Remove $(GMPLIBS).
22123         (cc1-dummy, cc1): Add $(GMPLIBS).
22124
22125 2008-02-06  Jan Hubicka  <jh@suse.cz>
22126
22127         PR target/23322
22128         * i386.md (moddf_integer): Do not produce partial memory stalls for
22129         targets where it hurts.
22130
22131 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
22132
22133         PR target/35083
22134         * optabs.c (expand_float): Do not check for decimal modes when
22135         expanding unsigned integer through signed conversion.
22136
22137 2008-02-06  Nick Clifton  <nickc@redhat.com>
22138
22139         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
22140         inside the clobber with a match_operand and duplicated operand
22141         number in the constraint.
22142         (ineqbranchsi): Delete redundant comment.
22143
22144 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
22145
22146         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
22147         builtin_define ("__USE_INIT_FINI__").
22148         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
22149         -msx multilibs.
22150         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
22151
22152 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22153
22154         PR documentation/30330
22155         * doc/invoke.texi (C++ Dialect Options)
22156         (Objective-C and Objective-C++ Dialect Options, Warning Options):
22157         For each warning option -Wfoo that allows -Wno-foo, ensure both
22158         -Wfoo and -Wno-foo are listed in the option index.  Fix index
22159         entry of -Wswitch-default, index -Wnormalized= including the
22160         `=', and -Wlarger-than-@var{len} including @var{len}.
22161
22162 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
22163
22164         * config/i386/i386.md (floatunssisf2): Use
22165         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
22166         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
22167         Macroize expander using MODEF mode iterator.
22168
22169 2008-02-05  Diego Novillo  <dnovillo@google.com>
22170
22171         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
22172
22173         PR 33738
22174         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
22175
22176 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22177
22178         PR other/35070
22179         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
22180
22181 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
22182
22183         PR target/35084
22184         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
22185         to indicate if a message should be generated.
22186         (init_cumulative_args): Updated.
22187         (function_value_32): Likewise.
22188
22189 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
22190
22191         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
22192
22193 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
22194
22195         PR target/35083
22196         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
22197         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
22198
22199 2008-02-04  Diego Novillo  <dnovillo@google.com>
22200
22201         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
22202
22203         PR 33738
22204         * tree-vrp.c (vrp_evaluate_conditional): With
22205         -Wtype-limits, emit a warning when comparing against a
22206         constant outside the natural range of OP0's type.
22207
22208 2008-02-04  Richard Guenther  <rguenther@suse.de>
22209
22210         PR middle-end/33631
22211         * expr.c (count_type_elements): Give for unions instead of
22212         guessing.
22213
22214 2008-02-04  Richard Guenther  <rguenther@suse.de>
22215
22216         PR middle-end/35043
22217         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
22218         to TYPE_DOMAINs base type instead of using bitsizetype here.
22219
22220 2008-02-03  Jason Merrill  <jason@redhat.com>
22221
22222         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
22223
22224 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22225
22226         PR other/29972
22227         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
22228         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
22229         (RS/6000 and PowerPC Options): Fix typos and markup.
22230         * doc/passes.texi (Tree-SSA passes): Likewise.
22231
22232 2008-02-02  Michael Matz  <matz@suse.de>
22233
22234         PR target/35045
22235         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
22236         from record_last_reg_set_info.
22237         (record_last_reg_set_info): Take an RTX argument, iterate over all
22238         constituent hardregs.
22239         (record_last_set_info, record_opr_changes): Change calls to
22240         new signature or to record_last_reg_set_info_regno.
22241
22242 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
22243
22244         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
22245
22246 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
22247
22248         PR rtl-optimization/34773
22249         * reg-notes.def (EQUAL): Mention significance of combination of
22250         REG_EQUAL and REG_RETVAL.
22251         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
22252         insn that has a REG_RETVAL.
22253
22254 2008-02-01  Roger Sayle  <roger@eyesopen.com>
22255
22256         PR bootstrap/33781
22257         * configure.ac (--enable-fixed-point): Disable unless explicitly
22258         requested on IRIX.
22259         * configure: Regenerate.
22260
22261 2008-02-01  Richard Guenther  <rguenther@suse.de>
22262
22263         PR other/35042
22264         * invoke.texi (-finline-limit): Remove no longer true parts
22265         of the documentation.  Note that there is no default value.
22266
22267 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
22268             Mark Mitchell  <mark@codesourcery.com>
22269             Ben Elliston  <bje@au.ibm.com>
22270
22271         PR c/29326
22272         * doc/extend.texi (Other Builtins): Document.
22273
22274 2008-01-31  Tom Browder <tom.browder@gmail.com>
22275
22276         * doc/c-tree.texi (Types): Fix grammar.
22277         (Expression trees): Ditto.
22278         * doc/passes.texi (Tree-SSA passes): Ditto.
22279
22280         * doc/configterms.texi (Configure Terms): Fix typo.
22281         * doc/cpp.texi (Common Predefined Macros): Ditto.
22282         * doc/md.texi (Machine Constraints): Ditto.
22283
22284         * doc/makefile.texi (Makefile): Add comma.
22285
22286 2008-01-31  Tom Browder  <tom.browder@gmail.com>
22287             Gerald Pfeifer  <gerald@pfeifer.com>
22288
22289         * doc/sourcebuild.texi (Front End): Remove references to CVS
22290         and CVSROOT/modules.
22291         (Texinfo Manuals): Replace reference to CVS by one to SVN.
22292         (Back End): Remove reference to CVS.
22293
22294 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
22295
22296         PR target/34900
22297         * config/mips/mips.c (gen_load_const_gp): New function, taking a
22298         comment from...
22299         (mips16_gp_pseudo_reg): ...here.
22300         * config/mips/mips.md (load_const_gp): Replace with...
22301         (load_const_gp_<mode>): ...this :P-based insn.
22302
22303 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22304
22305         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
22306         options. Minor fixes.
22307         (-std): Move reference to standards closer to where language
22308         standards are first mentioned.
22309
22310 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
22311
22312         PR rtl-optimization/34995
22313         * reload.c (alternative_allows_const_pool_ref): Take an rtx
22314         parameter and return a bool.  If the rtx parameter is nonnull,
22315         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
22316         (find_reloads): Update call accordingly.  Pass the new operand
22317         if it needed no address reloads, otherwise pass null.
22318
22319 2008-01-30  Richard Henderson  <rth@redhat.com>
22320
22321         PR c/34993
22322         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
22323         for unbounded arrays.
22324
22325 2008-01-30  Silvius Rus  <rus@google.com>
22326
22327         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
22328
22329 2008-01-30  Jan Hubicka  <jh@suse.cz>
22330
22331         PR target/34982
22332         * i386.c (init_cumulative_args): Use real function declaration when
22333         calling locally.
22334
22335 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
22336
22337         PR rtl-optimization/34998
22338         * global.c (build_insn_chain): Treat non-subreg_lowpart
22339         SUBREGs of pseudos as clobbering all the words covered by the
22340         SUBREG, not just all the bytes.
22341         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
22342         original df_ref rather than an extract parameter.
22343         (global_conflicts): Update call accordingly.
22344
22345 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
22346
22347         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
22348         the overflow check to make it easier to read.
22349         (__fixtfdi): Change the type of the ll member in union
22350         long_double to UDItype_x.
22351
22352 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
22353
22354         PR middle-end/34969
22355         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
22356         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
22357         * tree-inline.c (fold_marked_statements): Call
22358         cgraph_update_edges_for_call_stmt if folding a call statement.
22359         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
22360         debug_generic_stmt calls, reset it back afterwards.
22361
22362         PR c/35017
22363         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
22364         static decls.
22365         * c-typeck.c (build_external_ref): Don't pedwarn about
22366         static vars in current function's scope.
22367
22368 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
22369
22370         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
22371
22372 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
22373
22374         PR c/35002
22375         * ipa-struct-reorg.c: Fix spelling.
22376         * params.def: Ditto.
22377
22378 2008-01-29  Richard Guenther  <rguenther@suse.de>
22379
22380         PR middle-end/35006
22381         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
22382         field.
22383         * tree-inline.c (remap_type): Increment remapping_type_depth
22384         around remapping types.
22385         (copy_body_r): Only add referenced variables if they are referenced
22386         from code, not types.
22387
22388 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
22389
22390         PR c++/34055
22391         PR c++/34103
22392         PR c++/34219
22393         PR c++/34606
22394         PR c++/34753
22395         PR c++/34754
22396         PR c++/34755
22397         PR c++/34919
22398         PR c++/34961
22399         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
22400         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
22401
22402 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
22403
22404         PR target/34412
22405         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
22406         pointer for tiny stack.
22407
22408 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
22409
22410         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
22411
22412 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
22413
22414         * config/vx-common.h: Fix typo in comment.
22415
22416 2008-01-28  Ian Lance Taylor  <iant@google.com>
22417
22418         PR c++/34862
22419         PR c++/33407
22420         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
22421         coalesce pointers if they have different DECL_NO_TBAA_P values.
22422         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
22423         between variables with different DECL_NO_TBAA_P values.
22424
22425 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
22426
22427         PR 31535
22428         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
22429         are not legitimate small data references on SPE targets.
22430
22431 2008-01-28  David Daney  <ddaney@avtrex.com>
22432
22433         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
22434
22435 2008-01-28  David Daney  <ddaney@avtrex.com>
22436
22437         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
22438
22439 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
22440
22441         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
22442         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
22443         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
22444         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
22445         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
22446         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
22447         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
22448         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
22449
22450 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
22451
22452         * basic-block.h (condjump_equiv_p): Fix comment.
22453
22454 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
22455
22456         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
22457         print_generic_stmt_indented): Fix comment.
22458
22459 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
22460
22461         * configure.ac (__stack_chk_fail): Add detecion for availability
22462         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
22463         * configure: Regenerate.
22464
22465 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
22466
22467         PR middle-end/34688
22468         * final.c (output_addr_const): Handle TRUNCATE.
22469
22470 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
22471
22472         PR target/34711
22473         * tree-ssa-loop-ivopts.c (comp_cost): New type.
22474         (zero_cost, infinite_cost): New constants.
22475         (struct cost_pair): Change type of cost to comp_cost.
22476         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
22477         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
22478         New functions.
22479         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
22480         split_address_cost, ptr_difference_cost, difference_cost,
22481         get_computation_cost_at, get_computation_cost,
22482         determine_use_iv_cost_generic, determine_use_iv_cost_address,
22483         determine_use_iv_cost_condition, determine_use_iv_costs,
22484         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
22485         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
22486         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
22487         Change type of cost to comp_cost.
22488         (determine_iv_cost): Increase cost of non-original ivs, instead
22489         of decreasing the cost of original ones.
22490         (get_address_cost): Indicate the complexity of the addressing mode
22491         in comp_cost.
22492         (try_add_cand_for): Prefer using ivs not specific to some object.
22493         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
22494
22495 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
22496             Janis Johnson  <janis187@us.ibm.com>
22497
22498         PR target/34814
22499         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
22500         (TARGET_INSTANTIATE_DECLS): Likewise.
22501         * target.h (expand_to_rtl_hook): New target hook.
22502         (instantiate_decls): Likewise.
22503         * function.c (instantiate_decl): Make non-static.  Rename to...
22504         (instantiate_decl_rtl): ... this.
22505         (instantiate_expr): Use instantiate_decl_rtl.
22506         (instantiate_decls_1): Likewise.
22507         (instantiate_decls): Likewise.
22508         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
22509         * function.h (instantiate_decl_rtl): Add prototype.
22510         * cfgexpand.c (target.h): New include.
22511         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
22512         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
22513         (TARGET_INSTANTIATE_DECLS): Likewise.
22514         (TARGET_INITIALIZER): New target hooks added.
22515         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
22516         New prototype.
22517         * config/rs6000/rs6000.c (tree-flow.h): New include.
22518         (machine_function): Add sdmode_stack_slot field.
22519         (rs6000_alloc_sdmode_stack_slot): New function.
22520         (rs6000_instantiate_decls): Likewise.
22521         (rs6000_secondary_memory_needed_rtx): Likewise.
22522         (rs6000_check_sdmode): Likewise.
22523         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
22524         (TARGET_INSTANTIATE_DECLS): Likewise.
22525         (rs6000_hard_regno_mode_ok): Allow SDmode.
22526         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
22527         (rs6000_emit_move): Handle SDmode.
22528         (function_arg_advance): Likewise.
22529         (function_arg): Likewise.
22530         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
22531         SDmode var args for 32-bit compiles.
22532         (rs6000_secondary_reload_class): Handle SDmode.
22533         (rs6000_output_function_epilogue): Likewise.
22534         (rs6000_function_value): Simplify if statement.
22535         (rs6000_libcall_value): Likewise.
22536         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
22537         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
22538         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
22539         (movsd_hardfloat): New define_insn.
22540         (movsd_softfloat): Likewise.
22541         (movsd_store): Likewise.
22542         (movsd_load): Likewise.
22543         (extendsddd2): Likewise.
22544         (extendsdtd2): Likewise.
22545         (truncddsd2): Likewise.
22546         (movdd_hardfloat64): Fixup comment.
22547         (UNSPEC_MOVSD_LOAD): New constant.
22548         (UNSPEC_MOVSD_STORE): Likewise.
22549
22550 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
22551
22552         PR c++/34965
22553         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
22554         TRUTH_XOR_EXPR.
22555         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
22556         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
22557         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
22558         and TRUTH_XOR_EXPR.
22559
22560 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
22561
22562         PR target/34794
22563         * config.gcc: Separate AIX 5.3 from AIX 6.1.
22564         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
22565         __LONGDOUBLE128 too.
22566         * config/rs6000/aix61.h: New file.
22567
22568 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
22569
22570         PR rtl-optimization/34959
22571         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
22572         popcount and parity rtxes the same mode as their operand.
22573         Truncate or extend the result to the return value's mode
22574         if necessary.
22575
22576 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
22577
22578         PR target/34981
22579         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
22580         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
22581         to GOT_VERSION_REGNUM.
22582         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
22583         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
22584         * config/mips/mips.c (mips_emit_call_insn): New function.
22585         (mips_call_tls_get_addr): Call mips_expand_call directly.
22586         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
22587         emit_call_insn.
22588         (mips16_build_call_stub): Likewise.  Return the call insn or null.
22589         (mips_expand_call): Update the call to mips16_build_call_stub
22590         accordingly and a remove redundant condition.  Assert that MIPS16
22591         stubs do not use lazy binding.  Use mips_emit_call_insn and return
22592         the call insn.
22593         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
22594         TARGET_USE_GOT.
22595         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
22596         (mips_avoid_hazard): Remove hazard_set handling.
22597         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
22598         (UNSPEC_RESTORE_GP): ...this.
22599         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
22600         (FAKE_CALL_REGNO): Rename to...
22601         (GOT_VERSION_REGNUM): ...this.
22602         (type): Add "ghost" value.  Add an associated insn reservation.
22603         (hazard_set): Remove.
22604         (exception_receiver): Rename to...
22605         (restore_gp): ...this and update the unspec identifier accordingly.
22606         (exception_receiver, nonlocal_got_receiver): New expanders.
22607         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
22608         FAKE_CALL_REGNO.  Remove hazard_set attribute.
22609         (set_got_version, update_got_version): New patterns.
22610
22611 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
22612
22613         PR target/34970
22614         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
22615
22616 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
22617
22618         PR other/31955
22619         * doc/install.texi2html: Generate gcc-vers.texi.
22620
22621 2008-01-25  DJ Delorie  <dj@redhat.com>
22622
22623         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
22624
22625 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
22626
22627         * config/c4x: Remove directory.
22628         * config.gcc (crx-*, mt-*): Mark obsolete.
22629         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
22630         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
22631         sh-*-rtemscoff*): Remove cases.
22632         * defaults.h (C4X_FLOAT_FORMAT): Remove.
22633         * real.c (encode_c4x_single, decode_c4x_single,
22634         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
22635         c4x_extended_format): Remove.
22636         * real.h (c4x_single_format, c4x_extended_format): Remove.
22637         * doc/extend.texi (interrupt, naked): Remove mention of attributes
22638         on C4x.
22639         (Pragmas): Remove comment about c4x pragmas.
22640         * doc/install.texi (c4x): Remove target-specific instructions.
22641         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
22642         * doc/md.texi (Machine Constraints): Remove C4x documentation.
22643         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
22644         refer to C4x source files as examples.
22645         (C4X_FLOAT_FORMAT): Remove documentation.
22646
22647 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
22648
22649         * config/bfin/bfin.c (override_options): Reorder tests so that
22650         flag_pic gets enabled for -msep-data.
22651
22652 2008-01-25  Richard Guenther  <rguenther@suse.de>
22653
22654         PR middle-end/32244
22655         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
22656         to its bitfield precision if required.
22657
22658 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
22659
22660         PR middle-end/33880
22661         * tree-nested.c (walk_omp_for): New function.
22662         (convert_nonlocal_reference, convert_local_reference): Call
22663         walk_omp_for on OMP_FOR.
22664         (convert_call_expr): Call walk_body on OMP_FOR's
22665         OMP_FOR_PRE_INIT_BODY.
22666
22667 2008-01-25  Richard Guenther  <rguenther@suse.de>
22668
22669         PR tree-optimization/34966
22670         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
22671         default defs and PHI_NODEs we have to insert after the
22672         defining statement.
22673
22674 2008-01-24  Nick Clifton  <nickc@redhat.com>
22675
22676         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
22677         Provide a default definition.
22678         (LIBGCC2_UNITS_PER_WORD): Likewise.
22679
22680         * config/stormy16/stormy16.c: Include df.h for the prototype
22681         for df_regs_ever_live_p.
22682         (xstormy16_expand_builtin_va_start): Convert the stack offset
22683         into a component_ref and then use POINTER_PLUS_EXPR to add it
22684         to the incoming_virtual_args_rtx.
22685         (xstormy16_gimplify_va_arg_expr): Rename to
22686         xstormy16_gimplify_va_arg_expr.
22687         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
22688         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
22689         xstormy16_gimplify_va_arg_expr.
22690         Fix up some formatting issues.
22691
22692         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
22693         Move to predicates.md.
22694         (xs_hi_general_operand): Likewise.
22695         (xs_hi_nonmemory_operand): Likewise.
22696         * config/stormy16/predicates.md:
22697         (xstormy16_carry_plus_operand): New predicate.
22698         (xs_hi_general_operand): New predicate.
22699         (xs_hi_nonmemory_operand): New predicate.
22700         * config/stormy16/stormy16-protos.h:
22701         (xstormy16_carry_plus_operand): Delete prototype.
22702         (xs_hi_general_operand): Likewise.
22703         (xs_hi_nonmemory_operand): Likewise.
22704
22705         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
22706         modifiers as they are no longer needed and they can trigger
22707         reload spill failures.
22708
22709         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
22710         with a match_operand in order to help reload.
22711
22712         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
22713         constraint with 'e' for the 8th alternative as this version of
22714         the mov.w instruction only accepts the lower 8 registers.
22715
22716 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
22717
22718         PR target/34856
22719         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
22720         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
22721         vector elements.
22722
22723 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
22724
22725         PR middle-end/33333
22726         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
22727
22728 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
22729
22730         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
22731         New functions.
22732         (remove_structure): Update allocations list before removing structure.
22733
22734 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
22735
22736         * ipa-struct-reorg.c (is_safe_cond_expr,
22737         create_new_stmts_for_cond_expr): Use integer_zerop function,
22738         that recognize not only zero-pointer, but zero-integer too.
22739
22740 2008-01-25  Ben Elliston  <bje@au.ibm.com>
22741
22742         PR other/22232
22743         * fixproto: Escape "." in sed expression that strips leading "./".
22744
22745 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
22746
22747         PR driver/34904
22748         * gcc.c (SWITCH_OK): Removed.
22749         (SWITCH_LIVE): Changed to bit.
22750         (SWITCH_FALSE): Likewise.
22751         (SWITCH_IGNORE): Likewise.
22752         (switchstr): Change live_cond to unsigned int.
22753         (process_command): Replace SWITCH_OK with 0.
22754         (do_self_spec): Likewise.
22755         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
22756         (give_switch): Likewise.
22757         (used_arg): Likewise.
22758         (do_spec_1): Set the SWITCH_IGNORE bit.
22759         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
22760         bits.  Set the SWITCH_LIVE bit.
22761
22762 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
22763
22764         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
22765
22766 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
22767
22768         PR tree-optimization/34472
22769         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
22770         parameter to a "bool *" and set *DATA to false if there is
22771         an unsafe access.  Do not delete the structure here.
22772         (check_cond_exprs): Delete it here instead.
22773         (check_cond_exprs, exclude_cold_structs): Do not increase
22774         I when removing a structure.
22775
22776 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
22777
22778         PR target/34856
22779         * config/i386/i386.c (ix86_expand_vector_init): Consider only
22780         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
22781
22782 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
22783
22784         PR middle-end/34934
22785         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
22786         a fixed vector for stack.
22787
22788 2008-01-24  Ben Elliston  <bje@au.ibm.com>
22789
22790         PR c++/25701
22791         * doc/gcc.texi (Software development): Add a direntry for g++.
22792
22793 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
22794
22795         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
22796         stale and straggling -fforce-addr comments above.
22797
22798         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
22799         define.
22800         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
22801         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
22802
22803 2008-01-23  Michael Matz  <matz@suse.de>
22804
22805         PR debug/34895
22806         * dwarf2out.c (force_type_die): Use modified_type_die instead of
22807         gen_type_die.
22808
22809 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
22810
22811         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
22812         malloc result type.
22813
22814 2008-01-23 Anatoly Sokolov <aesok@post.ru>
22815
22816         * config/avr/avr.c (avr_current_arch): New variable.
22817         (avr_arch_types): Add 'avr31' and 'avr51' entries.
22818         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
22819         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
22820         (avr_override_options): Init 'avr_current_arch'.
22821         (base_arch_s): Move from here...
22822         * config/avr/avr.h (base_arch_s): ... here. Add new members
22823         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
22824         'mega' to 'have_jmp_call'.
22825         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
22826         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
22827         macros.
22828         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
22829         architectures.
22830         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22831         MULTILIB_MATCHES): Ditto.
22832
22833 2008-01-23  Richard Guenther  <rguenther@suse.de>
22834
22835         PR middle-end/31529
22836         * cgraphunit.c (cgraph_reset_node): Always mark the node
22837         not reachable if it is not queued already.
22838
22839 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
22840
22841         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
22842         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
22843         (cputype_selected): New static variable.
22844         (bfin_handle_option): Set it if -mcpu is used.
22845         (override_option): Select default set of workarounds if no cpu type
22846         selected on the command line.
22847         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
22848
22849         From  Michael Frysinger  <michael.frysinger@analog.com>
22850         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
22851         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
22852
22853         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
22854         for bf547, bf523, bf524, and bf526.
22855         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
22856         bf526.
22857         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
22858         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
22859         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
22860         __ADSPBF547__ and __ADSPBF54x__ for bf547.
22861         * doc/invoke.texi (Blackfin Options): Document that
22862         -mcpu now accept bf547, bf523, bf524, and bf526.
22863
22864 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22865
22866         PR rtl-optimization/34628
22867         * combine.c (try_combine): Stop and undo after the first combination
22868         if an autoincrement side-effect on the first insn has effectively
22869         been lost.
22870
22871 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
22872
22873         PR target/34529
22874         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22875         Offset addresses are not valid for Altivec or paired float modes.
22876
22877 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
22878
22879         PR c++/34607
22880         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
22881         if DECL_INITIAL (decl) is error_mark_node.
22882
22883         PR c++/34914
22884         * c-common.c (handle_vector_size_attribute): Only allow
22885         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
22886         the same way as pointer, array etc. types.
22887         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
22888
22889         PR c++/34917
22890         * tree.c (build_type_attribute_qual_variant): Call
22891         build_qualified_type if attributes are equal, but quals are not.
22892
22893 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22894
22895         PR 32102
22896         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
22897         * flags.h (warn_strict_aliasing): Remove.
22898         (warn_strict_overflow): Remove.
22899         * opts.c (warn_strict_aliasing): Remove.
22900         (warn_strict_overflow): Remove.
22901         * c-opts.c (c_common_handle_option): -Wall only sets
22902         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
22903         (c_common_post_options): Give default values to -Wstrict-aliasing
22904         and -Wstrict-overflow if they are uninitialized.
22905         * common.opt (Wstrict-aliasing): Specify Var and Init.
22906         (Wstrict-overflow): Likewise.
22907
22908 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
22909
22910         PR rtl-optimization/26854
22911         PR rtl-optimization/34400
22912         PR rtl-optimization/34884
22913         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
22914         DF_RD->gen.
22915         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
22916         (df_rd_bb_info.expanded_lr_out): Deleted
22917         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
22918         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
22919         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22920         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22921         Removed code to allocate, initialize or free expanded_lr_out.
22922         (df_rd_bb_local_compute_process_def): Restructured to make more
22923         understandable.
22924         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
22925         sets if the sets are being trimmed.
22926
22927 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
22928
22929         PR bootstrap/32287
22930         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
22931         (as_vers): Likewise.
22932         * configure: Regenerated.
22933
22934 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22935
22936         PR middle-end/33092
22937         * tree-pass.h (pass_build_alias): New pass.
22938         * tree-ssa-alias.c (gate_build_alias): New.
22939         (pass_build_alias): New.
22940         * passes.c (init_optimization_passes): Add pass_build_alias after
22941         pass_create_structure_vars.
22942
22943 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
22944
22945         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
22946         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
22947         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
22948         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
22949         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
22950         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
22951         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
22952         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
22953         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
22954         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
22955         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
22956         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
22957         * config/s390/s390.md (FP_ALL): New mode iterator.
22958         (_d): New mode attribute.
22959         ("*signbit<mode>2>"): Changed mode of first operand.
22960         ("isinf<mode>2"): Changed mode of first operand.
22961         ("*TDC_insn"): Adaptation for DFP modes.
22962
22963 2008-01-22  Ben Elliston  <bje@au.ibm.com>
22964
22965         * tree.c (check_qualified_type): Improve function description.
22966
22967 2008-01-21  Jason Merrill  <jason@redhat.com>
22968
22969         PR c++/34196
22970         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
22971         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
22972         if it is set.
22973
22974 2008-01-21  DJ Delorie  <dj@redhat.com>
22975
22976         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
22977         return zero.
22978
22979 2008-01-21  Richard Guenther  <rguenther@suse.de>
22980
22981         PR middle-end/34856
22982         * tree-cfg.c (verify_expr): Allow all invariant expressions
22983         instead of just constant class ones as reference argument.
22984         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
22985         like any other constant.
22986         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22987
22988 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
22989
22990         * regmove.c (fixup_match_1): Update call crossed frequencies.
22991
22992 2008-01-21  Richard Guenther  <rguenther@suse.de>
22993
22994         PR c/34885
22995         * tree-inline.c (setup_one_parameter): Deal with mismatched
22996         types using a VIEW_CONVERT_EXPR.
22997
22998 2008-01-21  Alon Dayan  <alond@il.ibm.com>
22999             Olga Golovanevsky  <olga@il.ibm.com>
23000
23001         PR tree-optimization/34701
23002         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
23003         when the structure size is not a power of 2.
23004
23005 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
23006
23007         * doc/install.texi: Add doc for --enable-checking=df.
23008
23009 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
23010
23011         PR rtl-optimization/34808
23012         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
23013
23014 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
23015
23016         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
23017         input.
23018
23019 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
23020
23021         PR rtl-optimization/26854
23022         PR rtl-optimization/34400
23023         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
23024         DF_RD->gen.
23025         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
23026         (df_rd_bb_info.expanded_lr_out): New.
23027         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
23028         * loop_iv.c (iv_analysis_loop_init): Ditto.
23029         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
23030         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
23031         Added code to allocate, initialize or free expanded_lr_out.
23032         (df_rd_bb_local_compute_process_def): Restructured to make
23033         more understandable.
23034         (df_rd_confluence_n): Add code to do nothing with fake edges and
23035         code to no apply invalidate_by_call sets if the sets are being trimmed.
23036         (df_lr_local_finalize): Renamed to df_lr_finalize.
23037         (df_live_local_finalize): Renamed to df_live_finalize.
23038
23039 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
23040
23041         PR target/34831
23042         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
23043         deciding whether to use reciprocal instructions.
23044
23045 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
23046
23047         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
23048         dwarf2out_note_section_used if cold_text_section is NULL.
23049
23050 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
23051
23052         PR gcov-profile/34610
23053         * tree-cfg.c (make_edges): Mark both outgoing edges from
23054         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
23055         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
23056         from OMP_FOR and OMP_CONTINUE outgoing edges.
23057
23058         * tree-profile.c (tree_profiling): Return early if
23059         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
23060         at the end.
23061         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
23062         from cfun to child_cfun.
23063         * function.h (struct function): Add after_tree_profile bit.
23064
23065 2008-01-19 Anatoly Sokolov <aesok@post.ru>
23066
23067         * config/avr/avr.S (_exit): Disable interrupt.
23068
23069 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
23070             Steven Bosscher  <stevenb.gcc@gmail.com>
23071
23072         PR rtl-optimization/26854
23073         PR rtl-optimization/34400
23074         * df-problems.c (df_live_scratch): New scratch bitmap.
23075         (df_live_alloc): Allocate df_live_scratch when doing df_live.
23076         (df_live_reset): Clear the proper bitmaps.
23077         (df_live_bb_local_compute): Only process the artificial defs once
23078         since the order is not important.
23079         (df_live_init): Init the df_live sets only with the variables
23080         found live by df_lr.
23081         (df_live_transfer_function): Use the df_lr sets to prune the
23082         df_live sets as they are being computed.
23083         (df_live_free): Free df_live_scratch.
23084
23085 2008-01-18  Ian Lance Taylor  <iant@google.com>
23086
23087         * common.opt: Add fmerge-debug-strings.
23088         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
23089         flag_merge_debug_strings rather than flag_merge_constants.
23090         * doc/invoke.texi (Option Summary): Mention
23091         -fmerge-debug-strings.
23092         (Debugging Options): Document -fmerge-debug-strings.
23093
23094 2008-01-18  Ian Lance Taylor  <iant@google.com>
23095
23096         PR c++/33407
23097         * tree.h (DECL_IS_OPERATOR_NEW): Define.
23098         (struct tree_function_decl): Add new field operator_new_flag.
23099         * tree-inline.c (expand_call_inline): When inlining a call to
23100         operator new, force the return value to go into a variable, and
23101         set DECL_NO_TBAA_P on that variable.
23102         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
23103
23104 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
23105
23106         PR debug/34484
23107         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
23108         DWARF2_DEBUGGING_INFO.
23109         (dwarf2out_note_section_used): Ditto.  Add prototype.
23110         (have_multiple_function_sections, text_section_used,
23111         cold_text_section_used, *cold_text_sections): Move declarations
23112         before their uses.
23113
23114 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
23115
23116         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
23117         field and add signal_ra.
23118         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
23119         assignments to frame state pc.  Move end of stack check after
23120         MD_FALLBACK_FRAME_STATE_FOR.
23121         (uw_update_context_1): Use frame state signal_regs if set, instead
23122         of checking signal_frame flag.
23123         (uw_update_context): Use frame state signal_ra if set.
23124         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
23125         * config/xtensa/linux-unwind.h: New file.
23126
23127 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
23128
23129         * modulo-sched.c (get_sched_window): Fix comment typo.
23130
23131 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
23132
23133         PR tree-optimization/34648
23134         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
23135
23136 2008-01-17  Anatoly Sokolov <aesok@post.ru>
23137
23138         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
23139         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
23140
23141 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
23142
23143         PR rtl-optimization/34400
23144         * df-core.c (df_worklist_dataflow_overeager,
23145         df_worklist_dataflow_doublequeue): New functions.
23146         (df_worklist_dataflow): Two different worklist solvers.
23147         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
23148         New param.
23149
23150 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
23151
23152         PR testsuite/34821
23153         * doc/invoke.texi: Document the dependence on pthread for fopenmp
23154         and ftree-parallelize-loops.
23155
23156 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
23157
23158         PR rtl-optimization/34826
23159         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
23160
23161 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
23162
23163         * global.c (find_reg): Mark the eh regs as used if necessary.
23164         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
23165         * ra.h (struct allocno): no_eh_reg field added.  Changed
23166         no_stack_reg type to bitfield.
23167
23168 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
23169
23170         * tree.c (substitute_in_expr): Add missing 'break'.
23171
23172 2008-01-17  Richard Guenther  <rguenther@suse.de>
23173
23174         PR tree-optimization/34825
23175         * tree-ssa-math-opts.c (is_division_by): Do not recognize
23176         x / x as division to handle.
23177
23178 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23179
23180         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
23181         "-pthread" is specified.
23182         * pa-hpux11.h (LIB_SPEC): Likewise.
23183
23184 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
23185             Peter Bergner  <bergner@vnet.ibm.com>
23186
23187         PR rtl-optimization/33796
23188         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
23189
23190 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23191
23192         PR libgfortran/34699
23193         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
23194         static links.
23195         * pa-hpux10.h (LINK_SPEC): Likewise.
23196         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
23197
23198 2008-01-16  Richard Guenther  <rguenther@suse.de>
23199
23200         PR middle-end/32628
23201         * fold-const.c (fold_convert_const_int_from_int): Do not
23202         set overflow if that occured only because of a sign extension
23203         change when converting from/to a sizetype with the same
23204         precision and signedness.
23205
23206 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
23207
23208         PR debug/34249
23209         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
23210         location address to the correct place.  Update copyright year.
23211
23212 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
23213
23214         * lambda-code.c (lambda_transform_legal_p): Handle the case of
23215         no dependences in the dependence_relations vector.
23216
23217 2008-01-16  Jan Hubicka  <jh@suse.cz>
23218
23219         PR rtl-optimization/31396
23220         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
23221         * cfg.c (dump_reg_info): Print it.
23222         * regs.h (struct reg_info_t): add freq_calls_crossed.
23223         (REG_FREQ_CALLS_CROSSED): New macro.
23224         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
23225         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
23226         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23227         regmove_optimize): Update call crossed frequencies.
23228         * local-alloc.c (struct qty): Add freq_calls_crossed.
23229         (alloc_qty): Copute freq_calls_crossed.
23230         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
23231         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
23232         * ra.h (struct allocno): Add freq_calls_crossed.
23233
23234 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
23235
23236         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
23237         libgomp when compiling with ftree-parallelize-loops.
23238         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
23239
23240 2008-01-16  Richard Guenther  <rguenther@suse.de>
23241
23242         PR tree-optimization/34769
23243         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
23244         * tree.c (int_cst_value): Instead make this function more
23245         permissive in what it accepts as valid input.  Document this
23246         function always sign-extends the value.
23247
23248 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
23249             Richard Guenther  <rguenther@suse.de>
23250
23251         PR c/34668
23252         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
23253         (gimple_fold_indirect_ref_rhs): ... this.
23254         (gimple_fold_indirect_ref): New function with foldings
23255         that preserve lvalueness.
23256         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
23257         * tree-flow.h (gimple_fold_indirect_ref): Declare.
23258         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
23259         to fold an INDIRECT_REF, fall back to the old use of
23260         fold_indirect_ref_1.
23261
23262 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
23263
23264         * tree-data-ref.c (subscript_dependence_tester_1): Call
23265         free_conflict_function.
23266         (compute_self_dependence): Same.
23267
23268 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
23269
23270         PR debug/34249
23271         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
23272         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
23273         function global.
23274         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
23275         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
23276         for DWARF2_UNWIND_INFO targets.
23277
23278 2008-01-16  Richard Guenther  <rguenther@suse.de>
23279
23280         PR c/34768
23281         * c-typeck.c (common_pointer_type): Do not merge inconsistent
23282         type qualifiers for function types.
23283
23284 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
23285
23286         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
23287         loop_iterator li from previous commit.
23288
23289 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
23290
23291         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
23292
23293 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
23294
23295         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
23296         (parallelize_loops): Don't parallelize irreducible components.
23297
23298 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23299
23300         PR c++/24924
23301         * c-opts (c_common_post_options): Do not enable CPP
23302         flag_pedantic_errors by default.
23303
23304 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
23305
23306         PR rtl-optimization/31944
23307         * cse.c (remove_pseudo_from_table): New function.
23308         (merge_equiv_classes): Use above function to remove pseudo-registers.
23309         (invalidate): Likewise.
23310
23311 2008-01-13  Richard Guenther  <rguenther@suse.de>
23312
23313         PR middle-end/34601
23314         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
23315         instead of TYPE_MODE to deal with calls from expand_one_error_var.
23316
23317 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
23318
23319         * gcse.c (cprop_jump): Call validate_unshare_change instead of
23320         validate_change to unshare the source of the PC set.
23321
23322 2008-01-12  Jan Hubicka  <jh@suse.cz>
23323
23324         PR middle-end/32135
23325         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
23326         references above array bounds.  This might trigger bounds checks for
23327         pointers to arrays.
23328
23329 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
23330
23331         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
23332         new_replaceable_dependencies.
23333
23334 2008-01-12  Doug Kwan  <dougkwan@google.com>
23335
23336         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
23337         instead of OPT_Wreturn_type in warning due to ignored return type
23338         qualifiers.
23339         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
23340         options included in -Wextra.
23341         * c.opt: New option -Wignored_qualifiers.
23342         * doc/invoke.texi (Warning Options, -Wextra): Add new option
23343         -Wignore_qualifiers.
23344         (-Wignored-qualifiers): Document.
23345         (-Wreturn-type): Remove description of functionality now handled
23346         by -Wignored-qualifiers.
23347
23348 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
23349
23350         PR ada/33788
23351         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
23352         NOP_EXPR if it is between integral types with the same precision.
23353
23354 2008-01-12  Jan Hubicka  <jh@suse.cz>
23355
23356         PR other/28023
23357         * invoke.texi (max-inline-recursive-depth): Fix default value.
23358
23359 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
23360
23361         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
23362         correct type.
23363
23364 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
23365
23366         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
23367
23368 2008-01-11  James E. Wilson  <wilson@specifix.com>
23369
23370         PR target/26015
23371         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
23372
23373 2008-01-11  Anatoly Sokolov <aesok@post.ru>
23374
23375         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
23376         save/restore frame pointer register and don't use 'call-prologues'
23377         optimization in function with "OS_task" attribute.
23378
23379 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
23380
23381         PR middle-end/31309
23382         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
23383         when copying to memory.
23384
23385 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
23386
23387         PR rtl-optimization/30905
23388         * cfgcleanup.c: Include dce.h
23389         (crossjumps_occured): New global variable.
23390         (try_crossjump_bb): Exit loop after finding a fallthru edge.
23391         If something changed, set crossjumps_occured to true.
23392         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
23393         Don't add/remove fake edges to exit here...
23394         (cleanup_cfg): ...but do it here, when crossjumping.
23395         Run a fast DCE when successful crossjumps occured in the latest
23396         iteration of try_optimize_cfg.
23397
23398 2008-01-11  Richard Guenther  <rguenther@suse.de>
23399
23400         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
23401         (struct vn_unary_op_s): Likewise.
23402         (vn_reference_insert): Free old reference on hash collision.
23403
23404 2008-01-10  Raksit Ashok  <raksit@google.com>
23405
23406         PR rtl-optimization/27971
23407         * combine.c (find_split_point): Split PLUS expressions which are
23408         inside a MEM rtx, and whose first operand is complex.
23409
23410 2008-01-10  DJ Delorie  <dj@redhat.com>
23411
23412         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
23413         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
23414         (m32c_hard_regno_ok): Call the underlying function.
23415
23416 2008-01-10  Richard Guenther  <rguenther@suse.de>
23417
23418         PR middle-end/34683
23419         * tree-cfg.c (tree_merge_blocks): Do not go through the
23420         full-blown folding and stmt updating path if we just deal
23421         with virtual operands.
23422         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
23423         test for abnormal SSA_NAMEs.
23424
23425 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
23426
23427         PR middle-end/34641
23428         * reload.c (push_reload): Add assertions.  All constants from
23429         reg_equiv_constant should have been used for replacing the respective
23430         pseudo earlier.
23431         (find_reloads_address): Invoke find_reloads_address_part for
23432         constant taken from the reg_equiv_constant array.
23433
23434 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
23435
23436         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
23437         field (valnum) the first in the struct.  Replace bools with
23438         unit bit fields.
23439
23440 2008-01-10  Richard Guenther  <rguenther@suse.de>
23441
23442         PR tree-optimization/34651
23443         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
23444         types and ordering for masking and converting.
23445
23446 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
23447
23448         PR tree-optimization/34017
23449         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
23450         also for PHI_NODE expressions.
23451
23452 2008-01-09  Jan Hubicka  <jh@suse.cz>
23453
23454         PR tree-optimization/34708
23455         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
23456         based on number of case labels.
23457         (init_inline_once): Remove switch_cost.
23458         * tree-inline.h (eni_weights_d): Remove switch_cost.
23459
23460 2008-01-09  Richard Guenther  <rguenther@suse.de>
23461         Andrew Pinski  <andrew_pinski@playstation.sony.com>
23462
23463         PR middle-end/30132
23464         * gimplify.c (gimplify_cond_expr): Do not create an addressable
23465         temporary if an rvalue is ok or an lvalue is not required.
23466
23467 2008-01-09  Richard Guenther  <rguenther@suse.de>
23468
23469         PR middle-end/34458
23470         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
23471         adjust return type.
23472
23473 2008-01-09  Richard Guenther  <rguenther@suse.de>
23474
23475         PR middle-end/34679
23476         * tree.c (host_integerp): Check for sizetype only if the
23477         type is an integer type.
23478
23479 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
23480
23481         PR debug/26364
23482         * opts.c (decode_options): Disable inlining of functions called
23483         once if not in unit-at-a-time mode.
23484
23485 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
23486
23487         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
23488
23489 2008-01-08  Richard Guenther  <rguenther@suse.de>
23490
23491         PR middle-end/31863
23492         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
23493         out early if the result will be unused.
23494
23495 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
23496
23497         PR target/34709
23498         Revert:
23499
23500         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
23501         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
23502         for TARGET_RECIP.
23503
23504 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
23505
23506         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
23507         for vectorization tuned.
23508
23509 2008-01-08  Richard Guenther  <rguenther@suse.de>
23510
23511         PR tree-optimization/34683
23512         * tree-ssa-operands.c (operand_build_cmp): Export.
23513         * tree-ssa-operands.h (operand_build_cmp): Declare.
23514         * tree-vn.c (vuses_compare): Remove.
23515         (sort_vuses): Use operand_build_cmp.
23516         (sort_vuses_heap): Likewise.
23517         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
23518         to re-use old VEC if available.  Do not sort already sorted VUSEs.
23519         (vdefs_to_vec): Do not sort already sorted VDEFs.
23520
23521 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
23522
23523         PR middle-end/34694
23524         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
23525
23526 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
23527
23528         PR target/34702
23529         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
23530         limitations of reciprocal sequences on x86 targets.
23531
23532 2008-01-08  Richard Guenther  <rguenther@suse.de>
23533
23534         PR tree-optimization/34683
23535         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
23536
23537 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
23538
23539         PR target/34622
23540         * config/darwin.c (darwin_mergeable_string_section): Don't use
23541         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
23542
23543 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
23544
23545         PR target/34682
23546         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
23547         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
23548         predicates of op0 and op1 to register_operand.
23549         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
23550         expander using X87MODEF mode iterator.  Change predicates of
23551         op0 and op1 to register_operand.
23552         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
23553         corresponding patterns and macroize using MODEF macro.  Change
23554         predicates of op0 and op1 to register_operand and remove
23555         "m" constraint. Disparage "r" alternative with "!".
23556         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
23557         macroize using X87MODEF macro.  Change predicates of op0 and op1
23558         to register_operand and remove "m" constraint.  Disparage "r"
23559         alternative with "!".
23560         (absneg splitter with memory operands): Remove.
23561         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
23562         patterns and macroize using X87MODEF mode iterator.
23563         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
23564         Change predicate of op1 to register_operand.
23565         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
23566         for memory operands.
23567
23568 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
23569
23570         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
23571
23572 2008-01-07  Richard Guenther  <rguenther@suse.de>
23573
23574         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
23575         fields.
23576
23577 2008-01-07  Richard Guenther  <rguenther@suse.de>
23578
23579         PR tree-optimization/34683
23580         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
23581         VOPs of the needed size to save memory.  Use VEC_quick_push
23582         to save compile-time.
23583         (vdefs_to_vec): Likewise.
23584
23585 2008-01-07  Sa Liu  <saliu@de.ibm.com>
23586
23587         * config/spu/spu.md (divdf3): Genetate inline code for double
23588         division.  The implementation doesn't handle INF or NAN, therefore it
23589         only applies when -ffinite-math-only is given.
23590
23591 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
23592
23593         PR libstdc++/34680
23594         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
23595         * doc/cpp.texi ([Common Predefined Macros]): Document.
23596
23597 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
23598
23599         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
23600         order to use commutative addition instead of subtraction.
23601
23602 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23603             Mircea Namolaru  <namolaru@il.ibm.com>
23604             Vladimir Yanovsky  <yanov@il.ibm.com>
23605             Revital Eres  <eres@il.ibm.com>
23606
23607         PR tree-optimization/34263
23608         * tree-outof-ssa.c (process_single_block_loop_latch,
23609         contains_tree_r): New functions.
23610         (analyze_edges_for_bb): Call process_single_block_loop_latch
23611         function to empty single-basic-block latch block if possible.
23612
23613 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
23614
23615         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
23616         for TARGET_RECIP.
23617         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
23618
23619 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
23620
23621         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
23622
23623 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
23624
23625         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
23626
23627 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
23628
23629         PR tree-optimization/34618
23630         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
23631         flag from T.
23632
23633 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
23634
23635         PR target/34673
23636         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
23637         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
23638         Update copyright year.
23639
23640         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
23641         Update copyright year.
23642         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
23643         using NR fixup.
23644
23645 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
23646
23647         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
23648         edge does not point to current bb before changing need_assert.
23649
23650 2008-01-04  Richard Guenther  <rguenther@suse.de>
23651
23652         PR middle-end/34029
23653         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
23654         for verifying purposes if they are is_gimple_min_invariant.
23655
23656 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
23657
23658         PR tree-optimization/34448
23659         PR tree-optimization/34465
23660         * gimplify.c (gimplify_init_constructor): Add new parameter
23661         notify_temp_creation.  Use it.
23662         (gimplify_modify_expr_rhs): Take volatiles into account when
23663         optimizing constructors.
23664         Do not optimize constructors if gimplify_init_constructor will dump to
23665         memory.
23666         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
23667         * gcc.c-torture/compile/pr34448.c: New.
23668
23669 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
23670
23671         PR gcov-profile/34609
23672         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
23673         return_slot if result is TREE_ADDRESSABLE.
23674
23675 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
23676
23677         * config/mips/mips.md (sqrt_condition): Tweak comment.
23678         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
23679
23680 2008-01-03  Tom Tromey  <tromey@redhat.com>
23681
23682         PR c/34457
23683         * c-common.c (c_type_hash): Handle VLAs.
23684
23685 2008-01-03  Jan Hubicka  <jh@suse.cz>
23686
23687         PR tree-optimization/31081
23688         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
23689         0 when inlining and not inlining to first basic block.
23690         (remap_decl): When var is initialized to 0, don't set default_def.
23691         (expand_call_inline): Set entry_bb.
23692         * tree-inline.h (copy_body_data): Add entry_bb.
23693
23694 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
23695
23696         PR c++/34619
23697         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
23698         before returning.
23699
23700         PR tree-optimization/29484
23701         * tree-inline.c (inline_forbidden_p_2): New function.
23702         (inline_forbidden_p): Disallow inlining if some static var
23703         has an address of a local LABEL_DECL in its initializer.
23704         * doc/extend.texi (Labels as Values): Document &&foo behaviour
23705         vs. inlining.
23706
23707 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
23708
23709         PR tree-optimization/34635
23710         * tree-data-ref.c (add_other_self_distances): Make sure that the
23711         evolution step is constant.
23712
23713 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
23714
23715         PR middle-end/34608
23716         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
23717
23718 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
23719
23720         * tree-sra.c (scalarize_init): Insert the generate_element_init
23721         statements after the generate_element_zero statements.
23722
23723 2008-01-02  Richard Guenther  <rguenther@suse.de>
23724
23725         PR middle-end/34093
23726         PR middle-end/31976
23727         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
23728         for very large number of operands instead of ICEing.
23729
23730 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
23731
23732         PR target/34013
23733         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
23734         while stack probing.
23735
23736 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
23737
23738         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
23739         in C++0x mode.
23740
23741 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
23742
23743         PR libmudflap/26442
23744         * tree-mudflap.c (mx_register_decls): Guard warning by
23745         !DECL_ARTIFICIAL check.
23746
23747 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
23748
23749         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
23750         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
23751         sse5_perm<mode>): Fix constraints.