OSDN Git Service

985926f8b0c585bafdf6dfd2001417b6d11f73c8
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-17  Diego Novillo  <dnovillo@google.com>
2
3         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT
4         for DECL.
5         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
6         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
7         (find_vars_r): ... here.
8         * tree-flow.h (find_referenced_vars_in): Declare.
9         * tree-ssa-pre.c (create_expression_by_pieces): Assert
10         that AVAIL_OUT exists for BLOCK.
11         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
12         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
13         (tree-parloops.o): Likewise.
14
15 2009-04-17  Simon Baldwin  <simonb@google.com>
16
17         * toplev.c (default_tree_printer): Add handling for %E format.
18
19 2009-04-17  Diego Novillo  <dnovillo@google.com>
20
21         * tree-pretty-print.c (dump_generic_node): Add break
22         after TREE_BINFO handler.
23         Handle COMPLEX_TYPE, REAL_TYPE and FIXED_POINT_TYPE
24         Handle NULL TREE_TYPEs.
25         Handle METHOD_TYPE and FUNCTION_TYPE together.
26         Call print_struct_decl when printing structures and
27         TDF_SLIM is not given.
28         (print_struct_decl): Fix logic for detecting recursion.
29
30 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
31
32         PR 31567
33         * gcc.c (create_at_file): New.
34         (compile_input_file_p): New.
35         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
36         * main.c (main): Update call to toplev_main.
37         * toplev.c (toplev_main): Change signature. Call expandargv.
38         * toplev.h (toplev_main): Change signature.
39
40 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
41
42         * dwarf2out.c (field_byte_offset): Use the type size as the field size
43         if the latter is not constant.
44
45 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
46
47         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
48
49 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
50
51         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
52         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
53
54 2009-04-17  Richard Guenther  <rguenther@suse.de>
55
56         * tree-ssa-structalias.c (get_constraint_for_component_ref):
57         Handle component references view-converting an invariant address.
58
59 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
60
61         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
62         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
63         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
64         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
65         Use @deftypevr rather than @deftypevar.
66
67 2009-04-17  Richard Guenther  <rguenther@suse.de>
68
69         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up
70         tuplification.
71         (get_prop_source_stmt): Likewise.
72         (can_propagate_from): Likewise.
73
74 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
75
76         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
77         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
78         (--with-multilib-list): Add default value.
79         * configure: Regenerate.
80         * Makefile.in (TM_ENDIAN_CONFIG): Define.
81         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
82         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
83         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
84         Don't add default cpu to multilib list unnecessarily, but do enable
85         the relevant compiler option..
86         Add support for --with-multilib-list=<blank> and
87         --with-multilib-list=!<somelib> to supress unwanted multilibs.
88         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
89         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
90         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
91         TM_MULTILIB_CONFIG.
92         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
93         (MULTILIB_OSDIRNAMES): New variable.
94         * config/sh/t-1e: Delete file.
95         * config/sh/t-mlib-sh1: Delete file.
96         * config/sh/t-mlib-sh2: Delete file.
97         * config/sh/t-mlib-sh2a: Delete file.
98         * config/sh/t-mlib-sh2a-nofpu: Delete file.
99         * config/sh/t-mlib-sh2a-single: Delete file.
100         * config/sh/t-mlib-sh2a-single-only: Delete file.
101         * config/sh/t-mlib-sh2e: Delete file.
102         * config/sh/t-mlib-sh3e: Delete file.
103         * config/sh/t-mlib-sh4: Delete file.
104         * config/sh/t-mlib-sh4-nofpu: Delete file.
105         * config/sh/t-mlib-sh4-single: Delete file.
106         * config/sh/t-mlib-sh4-single-only: Delete file.
107         * config/sh/t-mlib-sh4a: Delete file.
108         * config/sh/t-mlib-sh4a-nofpu: Delete file.
109         * config/sh/t-mlib-sh4a-single: Delete file.
110         * config/sh/t-mlib-sh4a-single-only: Delete file.
111         * config/sh/t-mlib-sh4al: Delete file.
112         * config/sh/t-mlib-sh5-32media: Delete file.
113         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
114         * config/sh/t-mlib-sh5-64media: Delete file.
115         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
116         * config/sh/t-mlib-sh5-compact: Delete file.
117         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
118         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
119         * doc/install.texi (Options specification): Add
120         --with-multilib-list and --with-endian.
121
122 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
123
124         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
125         REVISION_c.
126         (OBJS-common): Add plugin-version.o.
127         (plugin-version.o): New.
128         * gcc-plugin.h (plugin_gcc_version): New.
129         (plugin_default_version_check): New.
130         (plugin_init_func, plugin_init): Add version argument.
131         * plugin-version.c: New.
132         * plugin.c (str_plugin_gcc_version_name): New.
133         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
134         pass it to the init function.
135         (plugin_default_version_check): New.
136
137 2009-04-17  Richard Guenther  <rguenther@suse.de>
138
139         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
140         for decl-vs-decl disambiguation.
141
142 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
143
144         * config/s390/s390.h (s390_tune_attr): New macro definition.
145         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
146
147 2009-04-17  Richard Guenther  <rguenther@suse.de>
148
149         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
150         (fold_stmt_r): Likewise.
151         (maybe_fold_reference): New function.
152         (fold_gimple_assign): Handle cases fold_stmt_r did.
153         (fold_stmt): Do not use fold_stmt_r.
154         (fold_stmt_inplace): Likewise.
155
156 2009-04-17  Richard Guenther  <rguenther@suse.de>
157
158         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
159         (record_equivalences_from_stmt): Remove useless checks and
160         simplifications.
161         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
162         the type is already suitable.
163
164 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
165
166         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
167
168 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
169
170         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
171         (CMPtype): Define as __gcc_CMPtype.
172
173 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
174
175         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
176         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
177
178 2009-04-17  Richard Guenther  <rguenther@suse.de>
179
180         PR tree-optimization/39746
181         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
182         special-casing for builtins and static variable use/def.
183         (call_may_clobber_ref_p_1): Likewise.
184
185 2009-04-16  Ian Lance Taylor  <iant@google.com>
186
187         * df.h: Include "timevar.h".
188         (struct df_problem): Change tv_id field to timevar_id_t.
189         * tree-pass.h: Include "timevar.h".
190         (struct opt_pass): Change tv_id field to timevar_id_t.
191         * timevar.h (timevar_id_t): Define TV_NONE.
192         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
193         TV_NONE rather than tv_id != 0.
194         (execute_one_pass): Likewise.
195         * Makefile.in (DF_H): Add $(TIMEVAR_H).
196         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
197         dependencies to $(TREE_PASS_H).
198         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
199         to TV_NONE.
200         (pass_branch_target_load_optimize2): Likewise.
201         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
202         (pass_outof_cfg_layout_mode): Likewise.
203         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
204         (pass_rebuild_cgraph_edges): Likewise.
205         (pass_remove_cgraph_callee_edges): Likewise.
206         * df-core.c (pass_df_initialize_opt): Likewise.
207         (pass_df_initialize_no_opt): Likewise.
208         (pass_df_finish): Likewise.
209         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
210         * except.c (pass_set_nothrow_function_flags): Likewise.
211         (pass_convert_to_eh_region_ranges): Likewise.
212         * final.c (pass_compute_alignments): Likewise.
213         * function.c (pass_instantiate_virtual_regs): Likewise.
214         (pass_init_function): Likewise.
215         (pass_leaf_regs): Likewise.
216         (pass_match_asm_constraints): Likewise.
217         * gimple-low.c (pass_lower_cf): Likewise.
218         (pass_mark_used_blocks): Likewise.
219         * init-regs.c (pass_initialize_regs): Likewise.
220         * integrate.c (pass_initial_value_sets): Likewise.
221         * ira.c (pass_ira): Likewise.
222         * jump.c (pass_cleanup_barriers): Likewise.
223         * omp-low.c (pass_expand_omp): Likewise.
224         (pass_lower_omp): Likewise.
225         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
226         * recog.c (pass_split_all_insns): Likewise.
227         (pass_split_after_reload): Likewise.
228         (pass_split_before_regstack): Likewise.
229         (pass_split_before_sched2): Likewise.
230         (pass_split_for_shorten_branches): Likewise.
231         * reginfo.c (pass_reginfo_init): Likewise.
232         (pass_subregs_of_mode_init): Likewise.
233         (pass_subregs_of_mode_finish): Likewise.
234         * passes.c (pass_postreload): Likewise.
235         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
236         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
237         (pass_warn_function_return): Likewise.
238         (pass_warn_function_noreturn): Likewise.
239         * tree-complex.c (pass_lower_complex): Likewise.
240         (pass_lower_complex_O0): Likewise.
241         * tree-if-conv.c (pass_if_conversion): Likewise.
242         * tree-into-ssa.c (pass_build_ssa): Likewise.
243         * tree-mudflap.c (pass_mudflap_1): Likewise.
244         (pass_mudflap_2): Likewise.
245         * tree-nomudflap.c (pass_mudflap_1): Likewise.
246         (pass_mudflap_2): Likewise.
247         * tree-nrv.c (pass_return_slot): Likewise.
248         * tree-object-size.c (pass_object_sizes): Likewise.
249         * tree-optimize.c (pass_all_optimizations): Likewise.
250         (pass_early_local_passes): Likewise.
251         (pass_all_early_optimizations): Likewise.
252         (pass_cleanup_cfg): Likewise.
253         (pass_cleanup_cfg_post_optimizing): Likewise.
254         (pass_free_datastructures): Likewise.
255         (pass_free_cfg_annotations): Likewise.
256         (pass_fixup_cfg): Likewise.
257         (pass_init_datastructures): Likewise.
258         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
259         (pass_late_warn_uninitialized): Likewise.
260         (pass_update_address_taken): Likewise.
261         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
262         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
263         (pass_cse_sincos): Likewise.
264         (pass_convert_to_rsqrt): Likewise.
265         * tree-ssa-structalias.c (pass_build_alias): Likewise.
266         * tree-stdarg.c (pass_stdarg): Likewise.
267         * tree-tailcall.c (pass_tail_recursion): Likewise.
268         (pass_tail_calls): Likewise.
269         * tree-vect-generic.c (pass_lower_vector): Likewise.
270         (pass_lower_vector_ssa): Likewise.
271         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
272
273 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
274
275         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
276         XLR entry.
277         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
278         Handle -march=xlr.
279         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
280         logical and signext.
281
282 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
283
284         PR target/39767
285         * config/sh/predicates.md (arith_operand): Check if the operand
286         of TRUNCATE is a REG.
287
288 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
289
290         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
291         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
292
293 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
294
295         * tree-iterator.c (tsi_split_statement_list_after,
296         tsi_split_statement_list_before): Remove.
297         * tree-iterator.h: Remove the prototypes for
298         tsi_split_statement_list_after and tsi_split_statement_list_before.
299
300 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
301
302         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
303         * tree-ssa-propagate.h: Remove the prototype for
304         stmt_makes_single_load.
305
306 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
307
308         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
309         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
310
311 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
312
313         * tree-iterator.c (EXPR_LAST_BODY): Remove.
314
315 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
316
317         * except.c (eh_region_outer_p): Remove.
318         * except.h: Remove the prototype for eh_region_outer_p.
319
320 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
321
322         * function.c (current_function_assembler_name): Remove.
323         * function.h: Remove the prototype for
324         current_function_assembler_name.
325
326 2009-04-16  Ian Lance Taylor  <iant@google.com>
327
328         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
329         (add_reg_note): Call alloc_reg_note.
330         * rtl.h (alloc_reg_note): Declare.
331         * combine.c (try_combine): Use alloc_reg_note.
332         (recog_for_combine, move_deaths): Likewise.
333         (distribute_notes): Use alloc_reg_note and add_reg_note.
334         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
335         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
336         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
337
338 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
339
340         PR rtl-optimization/39762
341         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
342         ira_may_move_out_cost): Add comments about way of their usage.
343         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
344         
345         * ira-conflicts.c (process_regs_for_copy): Use function
346         ira_get_register_move_cost instead of global
347         ira_register_move_cost.
348
349         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
350         color_pass, move_spill_restore, update_curr_costs): Ditto.
351
352         * ira-lives.c (process_single_reg_class_operands): Ditto.
353
354         * ira-emit.c (emit_move_list): Ditto.
355
356         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
357         (record_reg_classes): Ditto.  Use functions
358         ira_get_register_move_cost and ira_get_may_move_cost instead of
359         global vars ira_register_move_cost, ira_may_move_out_cost and
360         ira_may_move_in_cost.
361         (record_address_regs): Don't call ira_init_register_move_cost.
362         Use function ira_get_may_move_cost instead of global
363         ira_may_move_in_cost.
364         (process_bb_node_for_hard_reg_moves): Use function
365         ira_get_register_move_cost instead of global ira_register_move_cost.
366         (ira_costs): Don't call ira_init_register_move_cost.
367         
368 2009-04-16  Richard Guenther  <rguenther@suse.de>
369
370         * tree-cfg.c (verify_gimple_assign_binary):
371         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
372         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
373         (create_general_new_stmt): Note that this function is broken.
374
375 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
376
377         * common.opt (fhelp): Add Var(help_flag).
378         * gcc-plugin.h (plugin_info): Add help.
379         * plugin.c (plugin_name_args): Add help.
380         (register_plugin_info): Set plugin->help.
381         (print_help_one_plugin): New.
382         (print_plugins_help): New.
383         * plugin.h (print_plugins_help): New.
384         * toplev.c (toplev_main): Call print_plugins_help if needed.
385
386 2009-04-16  Richard Guenther  <rguenther@suse.de>
387
388         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
389         (gimple_ior_addresses_taken_1): New function.
390         (gimple_ior_addresses_taken): Likewise.
391         * gimple.h (struct gimple_statement_with_ops_base): Remove
392         addresses_taken member.
393         (gimple_ior_addresses_taken): Declare.
394         (gimple_addresses_taken, gimple_addresses_taken_ptr,
395         gimple_set_addresses_taken): Remove.
396         * ipa-reference.c (mark_address): New function.
397         (scan_stmt_for_static_refs): Use it for marking addresses taken.
398         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
399         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
400         (gimple_add_to_addresses_taken): Remove.
401         (get_tmr_operands): Call mark_address_taken.
402         (get_asm_expr_operands): Likewise.
403         (get_expr_operands): Likewise.
404         (build_ssa_operands): Do not clear the addresses_taken bitmap.
405         (free_stmt_operands): Do not free it.
406         * tree-ssa.c (delete_tree_ssa): Likewise.
407         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
408
409 2009-04-16  Richard Guenther  <rguenther@suse.de>
410
411         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
412         (walk_stmt_load_store_ops): Likewise.
413         * gimple.c (get_base_loadstore): New function.
414         (walk_stmt_load_store_addr_ops): Likewise.
415         (walk_stmt_load_store_ops): Likewise.
416         * ipa-pure-const.c (check_op): Simplify.
417         (check_load, check_store): New functions.
418         (check_stmt): Use walk_stmt_load_store_ops.
419         * ipa-reference.c (mark_load): Adjust signature.
420         (mark_store): Likewise.
421         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
422
423 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
424
425         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
426         (plugin_info): New.
427         * opts.c (common_handle_option): Don't call print_version.
428         * plugin.c (plugin_name_args): Add version.
429         (register_plugin_info): New.
430         (register_callback): Handle PLUGIN_INFO.
431         (try_init_one_plugin): New.
432         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
433         if failed to init.
434         (finalize_one_plugin): New.
435         (finalize_plugins): New.
436         (print_one_plugin): New.
437         (print_plugins_versions): New.
438         * plugin.h (print_plugins_versions): New.
439         (finalize_plugins): New.
440         * toplev.c (compile_file): Don't call initialize_plugins.
441         (print_version): Call print_plugins_versions.
442         (toplev_main): Call initialize_plugins. Print version if needed.
443         Call finalize_plugins.
444
445 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
446
447         * common.opt (fversion): New.
448         * gcc.c (print_version): New.
449         (process_command): Don't print the version. Just set print_version.
450         (main): Print version. Call subprocesses if print_version and
451         verbose_flag are set.
452         * opts.c (common_handle_option): Handle OPT_fversion.
453
454 2009-04-16  Richard Guenther  <rguenther@suse.de>
455             Ira Rosen  <irar@il.ibm.com>
456
457         PR tree-optimization/39698
458         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
459         type of the reduction variable.  Only generate the def if
460         it is needed.
461
462         * omp-low.c (expand_omp_for_generic): When converting to a pointer
463         make sure to first convert to an integer of the same precision.
464         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
465         the type of the evolution correctly in computing the new
466         induction variable base.
467
468 2009-04-16  Richard Guenther  <rguenther@suse.de>
469
470         PR middle-end/39625
471         * tree-cfg.c (make_blocks): Split statements with to-be
472         abnormal SSA names on the lhs.
473
474 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
475
476         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
477         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
478         * c-typeck.c (really_start_incremental_init): Likewise.
479         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
480         (TARGET_INITIALIZER): Remove it.
481         * target.h (struct target): Remove vector_opaque_p.
482         * tree.c (build_opaque_vector_type): New.
483         * tree.h (TYPE_VECTOR_OPAQUE): New.
484         (build_opaque_vector_type): Declare.
485         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
486         * config/rs6000/rs6000.c (build_opaque_vector_type,
487         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
488         (rs6000_init_builtins): Use build_opaque_vector_type for
489         opaque_V4SI_type_node.
490
491 2009-04-15  Catherine Moore  <clm@codesourcery.com>
492
493         * debug.h (set_name):  Declare.
494         * dwarf2out.c (dwarf2out_set_name): Declare.
495         (dwarf2_debug_hooks): Add set_name.
496         (find_AT_string): New.
497         (add_AT_string): Call find_AT_string.
498         (dwarf2out_set_name): New.
499         * cp/decl.c (grokdeclarator): Call set_name.
500         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
501         * debug.c (do_nothing_debug_hooks):  Likewise.
502         * dbxout.c (dbx_debug_hooks): Likewise.
503         * sdbout.c (sdb_debug_hooks): Likewise.
504
505 2009-04-15  Michael Eager <eager@eagercon.com>
506
507         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
508         reg for single-precision FPU.
509         * config/rs6000/rs6000.md (movsi_internal1): Only for
510         !TARGET_SINGLE_FPU.
511         (movsi_internal1_single): New. Add pattern to move SI values to/from
512         single-precision FP regs.
513
514 2009-04-15  Richard Guenther  <rguenther@suse.de>
515
516         * omp-low.c (lower_rec_input_clauses): Build correct address
517         expressions.
518         (expand_omp_for_generic): Fix multiplication type.
519         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
520         (generate_memset_zero): Fix types.
521         * tree-profile.c (prepare_instrumented_value): Correctly
522         widen a pointer.
523
524 2009-04-15  Ian Lance Taylor  <iant@google.com>
525
526         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
527         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
528         for -Wall and for -Wc++-compat.
529         (c_common_post_options): For C++, set warn_enum_compare if not
530         already set.
531         * c-tree.h (struct c_expr): Add field original_type.
532         (build_external_ref): Update declaration.
533         * c-parser.c (c_parser_braced_init): Set original_type.
534         (c_parser_initelt): Likewise.
535         (c_parser_expr_no_commas): Likewise.
536         (c_parser_conditional_expression): Likewise.
537         (c_parser_cast_expression): Likewise.
538         (c_parser_unary_expression): Likewise.  Pull setting of
539         original_code to top of function.
540         (c_parser_sizeof_expression): Set original_type.
541         (c_parser_alignof_expression): Likewise.
542         (c_parser_postfix_expression): Likewise.  Pull setting of
543         original_code to top of function.
544         (c_parser_postfix_expression_after_paren_type): Set original_type.
545         (c_parser_postfix_expression_after_primary): Likewise.
546         (c_parser_expression): Likewise.
547         * c-typeck.c (build_external_ref): Add type parameter.  Change all
548         callers.
549         (c_expr_sizeof_expr): Set original_type field.
550         (parser_build_unary_op): Likewise.
551         (parser_build_binary_op): Likewise.  Optionally warn about
552         comparisons of enums of different types.
553         (digest_init): Set original_type field.
554         (really_start_incremental_init): Likewise.
555         (push_init_level, pop_init_level): Likewise.
556         * doc/invoke.texi (Warning Options): -Wenum-compare now
557         supported in C.
558
559 2009-04-15  Richard Guenther  <rguenther@suse.de>
560
561         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
562         out a necessary conversion.
563         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
564         names we didn't value number.
565         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
566
567 2009-04-15  Richard Guenther  <rguenther@suse.de>
568
569         PR tree-optimization/39764
570         * tree-ssa-ccp.c (get_value): Canonicalize value with
571         canonicalize_float_value.
572
573 2009-04-15  Jan Hubicka  <jh@suse.cz>
574
575         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
576         Wrong version of patch.
577
578 2009-04-15  Jan Hubicka  <jh@suse.cz>
579
580         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
581
582 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
583
584         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
585         our distinct integral and vector types.
586
587 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
588
589         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
590         * init.c (build_vtbl_address): Remove call to assemble_external.
591
592 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
593
594         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
595         output for other floating point modes.
596
597 2009-04-14  Diego Novillo  <dnovillo@google.com>
598
599         * diagnostic.c (diagnostic_report_diagnostic): Do not
600         warn about loaded plugins for DK_ERROR and DK_WARNING.
601         * c-decl.c (declspecs_add_type): Move call to
602         invoke_plugin_callbacks ...
603         * c-parser.c (c_parser_declspecs): ... here.
604         * plugin.c (dump_active_plugins): Tidy output.
605
606 2009-04-14  Diego Novillo  <dnovillo@google.com>
607             Le-Chun Wu  <lcwu@google.com>
608
609         * configure.ac: Add --enable-plugin support.
610         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
611         * Makefile.in (PLUGIN_H): Define.
612         Export ENABLE_PLUGIN and GMPINC to site.exp.
613         Add PLUGINLIBS to link command.
614         Add/modify dependencies for plugin.o and files including plugin.h.
615         (plugin.o): New.
616         * config.in: Regenerate.
617         
618         * opts.c (common_handle_option): Handle OPT_fplugin_ and
619         OPT_fplugin_arg_.
620
621 2009-04-14  Le-Chun Wu  <lcwu@google.com>
622
623         * tree-pass.h (register_one_dump_file): Add a prototype for
624         register_one_dump_file.
625         * toplev.c (compile_file): Call initialize_plugins.
626         (do_compile): Call invoke_plugin_callbacks.
627         (toplev_main): Call invoke_plugin_callbacks.
628         * common.opt: Add -fplugin= and -fplugin-arg-.
629         * gcc-plugin.h: New public header file for plugins to include.
630         * plugin.c: New source file.
631         * plugin.h: New internal header file.
632         * passes.c (register_one_dump_file): Make it external.
633         
634         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
635
636 2009-04-14  Diego Novillo  <dnovillo@google.com>
637
638         * doc/plugins.texi: New.
639         * doc/gccint.texi: Add reference to Plugins chapter.
640         * doc/invoke.texi: Document -fplugin and -fplugin-arg
641         * diagnostic.c (diagnostic_report_diagnostic): Warn about
642         loaded plugins, if any.
643         * timevar.def (TV_PLUGIN_INIT): Define.
644         (TV_PLUGIN_RUN): Define.
645         * plugin.c: Include timevar.h
646         (plugins_active_p): New.
647         (dump_active_plugins): New.
648         (debug_active_plugins): New.
649
650 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
651
652         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
653         library paths.
654         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
655
656 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
657
658         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
659         the same as a minus without a shift.
660
661 2009-04-14  Nick Clifton  <nickc@redhat.com>
662
663         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
664         comparisons with small integers will always produce a short
665         branch.
666
667 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
668
669         Merge:
670         2008-12-19  Diego Novillo  <dnovillo@google.com>
671
672         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
673
674 2000-04-14  Richard Guenther  <rguenther@suse.de>
675
676         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
677         verification.
678         (verify_gimple_assign_binary): Likewise.  Handle shifts and
679         rotates correctly.
680         (verify_gimple_phi): Print the mismatched argument position.
681         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
682         Fix types.
683         (vect_update_init_of_dr): Likewise.
684         * matrix-reorg.c (transform_access_sites): Do what the
685         comment suggests.
686         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
687
688 2009-04-13  Michael Eager <eager@eagercon.com>
689
690         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
691         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
692         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
693         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file, 
694         remove duplicate config
695
696 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
697
698         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
699         file_name:line_number type locator of the call site.
700         
701 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
702
703         * genautomata.c: Put blank after comma.
704         (automaton_decls): New.
705         (struct unit_usage): Add comments to member next.
706         (store_alt_unit_usage): Keep the list ordered.
707         (unit_present_on_list_p, equal_alternatives_p): New.
708         (check_regexp_units_distribution): Check units distribution
709         correctness correctly.
710         (main): Don't write automata if error is found.  Return correct
711         exit code.
712         
713         * config/m68k/cf.md (cfv4_ds): Remove.
714         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
715         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
716
717         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
718         power4-load-ext, power4-store, power4-store-update,
719         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
720         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
721         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
722         power4-sqrt, power4-isync): Modify reservation to make correct
723         unit distribution to automata.
724
725         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
726         power5-store-update, power5-two, power5-three, power5-lmul,
727         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
728         
729 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
730
731         * except.c (pass_set_nothrow_function_flags): Set name and add
732         TODO_dump_func.
733         (set_nothrow_function_flags): Mention in the dump file when
734         changing a function to nothrow.
735
736 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
737
738         PR/39066
739         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
740         instead of unsigned long.
741
742 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
743
744         * config/arm/arm.c (return_used_this_function): Remove.
745         (arm_output_function_prologue): Remove use of
746         return_used_this_function.
747         (output_return_instruction): Replace use of
748         return_used_this_function
749         by cfun->machine->return_used_this_function.
750         (arm_output_epilogue): Likewise.
751         (arm_output_function_epilogue): Likewise.
752         (thumb_unexpanded_epilogue): Likewise.
753         * config/arm/arm.h (struct machine_function):
754         New member return_used_this_function.
755
756 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
757
758         * doc/install.texi: Correct description of default directory for
759         --with-gxx-include-dir.
760
761 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
762
763         * fold-const.c (build_range_check): Properly deal with enumeral and
764         boolean base types.
765
766 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
767
768         * doc/invoke.texi (max_gcse_passes): Remove documentation.
769         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
770         * params.h (MAX_GCSE_PASSES): Remove.
771         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
772         in sequence.  Remove ability to run multiple passes.
773         (bypass_jumps): Report run as third CPROP pass.
774
775 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
776
777         PR middle-end/39651
778         * except.c (can_throw_external): Look at each insn in a SEQUENCE
779         when deciding whether the whole SEQUENCE can throw.
780
781 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
782
783         PR target/39740
784         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
785         offseted label references.
786
787 2009-04-11  Jan Hubicka  <jh@suse.cz>
788
789         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
790
791 2009-04-11  Richard Guenther  <rguenther@suse.de>
792
793         PR middle-end/39732
794         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
795         return variables as TREE_ADDRESSABLE.
796
797 2009-04-11  Richard Guenther  <rguenther@suse.de>
798
799         PR tree-optimization/39713
800         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
801         reference trees have SSA_NAME operands.
802
803 2009-04-11  Richard Guenther  <rguenther@suse.de>
804
805         PR c/39712
806         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
807         address expressions.
808
809 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
810
811         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
812         match changes in Cygwin 1.7
813         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
814         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
815
816 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
817
818         PR tree-optimization/39701
819         * doc/invoke.texi (Optimization Options): Document change in
820         meaning and initialization of -fdelete-null-pointer-checks.
821
822 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
823
824         PR middle-end/39701
825         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
826
827         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
828         here.
829
830         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
831
832 2009-04-10  Chao-ying Fu  <fu@mips.com>
833
834         * doc/tm.texi (Instruction Output): Document
835         TARGET_ASM_FINAL_POSTSCAN_INSN.
836         * target.h (final_postscan_insn): New field in asm_out.
837         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
838         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
839         * final.c (final_scan_insn): Call
840         targetm.asm_out.final_postscan_insn after outputting
841         an asm macro and a normal instruction.
842
843         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
844         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
845         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
846         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
847         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
848
849 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
850
851         PR middle-end/39701
852         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
853         variables as non-NULL even with -fdelete-null-pointer-checks.
854
855 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
856
857         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
858
859 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
860
861         PR target/39678
862         * config/i386/i386.c (classify_argument): Handle SCmode with
863         (bit_offset % 64) != 0.
864
865 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
866
867         * doc/invoke.texi (Optimize Options): Add cross-reference to
868         -Q --help=optimizers examples.
869
870 2009-04-10  Ben Elliston  <bje@au.ibm.com>
871
872         PR target/36800
873         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
874         regalign for the reg == fpr and TDmode case.
875
876 2009-04-09  David Ayers  <ayers@fsfe.org>
877
878         PR objc/29200
879         * objc/objc-act.c (warn_with_method): Remove helper function.
880         (check_duplicates): Call warning and inform directly.
881         (really_start_method): Likewise.
882
883 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
884
885         * expmed.c (expand_divmod): Always use a comparison for a division
886         by a large unsigned integer.
887
888         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
889         for things others than variables or functions as nonzero.
890
891 2009-04-09  Nick Clifton  <nickc@redhat.com>
892
893         * unwind-compat.c: Change copyright header to refer to version
894         3 of the GNU General Public License with version 3.1 of the
895         GCC Runtime Library Exception and to point readers at the
896         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
897         * config/alpha/crtfastmath.c: Likewise.
898         * config/alpha/linux-unwind.h: Likewise.
899         * config/alpha/qrnnd.asm: Likewise.
900         * config/alpha/vms-crt0-64.c: Likewise.
901         * config/alpha/vms-crt0.c: Likewise.
902         * config/alpha/vms-dwarf2.asm: Likewise.
903         * config/alpha/vms-dwarf2eh.asm: Likewise.
904         * config/alpha/vms-psxcrt0-64.c: Likewise.
905         * config/alpha/vms-psxcrt0.c: Likewise.
906         * config/alpha/vms_tramp.asm: Likewise.
907         * config/arc/initfini.c: Likewise.
908         * config/arc/lib1funcs.asm: Likewise.
909         * config/arm/bpabi-v6m.S: Likewise.
910         * config/arm/bpabi.S: Likewise.
911         * config/arm/bpabi.c: Likewise.
912         * config/arm/crti.asm: Likewise.
913         * config/arm/crtn.asm: Likewise.
914         * config/arm/ieee754-df.S: Likewise.
915         * config/arm/ieee754-sf.S: Likewise.
916         * config/arm/lib1funcs.asm: Likewise.
917         * config/arm/libunwind.S: Likewise.
918         * config/arm/linux-atomic.c: Likewise.
919         * config/arm/mmintrin.h: Likewise.
920         * config/arm/pr-support.c: Likewise.
921         * config/arm/unaligned-funcs.c: Likewise.
922         * config/arm/unwind-arm.c: Likewise.
923         * config/arm/unwind-arm.h: Likewise.
924         * config/avr/libgcc.S: Likewise.
925         * config/bfin/crti.s: Likewise.
926         * config/bfin/crtlibid.s: Likewise.
927         * config/bfin/crtn.s: Likewise.
928         * config/bfin/lib1funcs.asm: Likewise.
929         * config/bfin/linux-unwind.h: Likewise.
930         * config/cris/arit.c: Likewise.
931         * config/cris/cris_abi_symbol.c: Likewise.
932         * config/darwin-64.c: Likewise.
933         * config/darwin-crt2.c: Likewise.
934         * config/darwin-crt3.c: Likewise.
935         * config/darwin.h: Likewise.
936         * config/dbxelf.h: Likewise.
937         * config/dfp-bit.c: Likewise.
938         * config/dfp-bit.h: Likewise.
939         * config/elfos.h: Likewise.
940         * config/fixed-bit.c: Likewise.
941         * config/fixed-bit.h: Likewise.
942         * config/fp-bit.c: Likewise.
943         * config/fp-bit.h: Likewise.
944         * config/fr30/crti.asm: Likewise.
945         * config/fr30/crtn.asm: Likewise.
946         * config/fr30/lib1funcs.asm: Likewise.
947         * config/freebsd-spec.h: Likewise.
948         * config/frv/cmovd.c: Likewise.
949         * config/frv/cmovh.c: Likewise.
950         * config/frv/cmovw.c: Likewise.
951         * config/frv/frvbegin.c: Likewise.
952         * config/frv/frvend.c: Likewise.
953         * config/frv/lib1funcs.asm: Likewise.
954         * config/glibc-stdint.h: Likewise.
955         * config/h8300/clzhi2.c: Likewise.
956         * config/h8300/crti.asm: Likewise.
957         * config/h8300/crtn.asm: Likewise.
958         * config/h8300/ctzhi2.c: Likewise.
959         * config/h8300/fixunssfsi.c: Likewise.
960         * config/h8300/lib1funcs.asm: Likewise.
961         * config/h8300/parityhi2.c: Likewise.
962         * config/h8300/popcounthi2.c: Likewise.
963         * config/i386/ammintrin.h: Likewise.
964         * config/i386/att.h: Likewise.
965         * config/i386/avxintrin.h: Likewise.
966         * config/i386/biarch64.h: Likewise.
967         * config/i386/bmmintrin.h: Likewise.
968         * config/i386/cpuid.h: Likewise.
969         * config/i386/cross-stdarg.h: Likewise.
970         * config/i386/crtfastmath.c: Likewise.
971         * config/i386/crtprec.c: Likewise.
972         * config/i386/cygming-crtbegin.c: Likewise.
973         * config/i386/cygming-crtend.c: Likewise.
974         * config/i386/cygwin.asm: Likewise.
975         * config/i386/emmintrin.h: Likewise.
976         * config/i386/gmm_malloc.h: Likewise.
977         * config/i386/gthr-win32.c: Likewise.
978         * config/i386/i386.h: Likewise.
979         * config/i386/immintrin.h: Likewise.
980         * config/i386/linux-unwind.h: Likewise.
981         * config/i386/linux64.h: Likewise.
982         * config/i386/mm3dnow.h: Likewise.
983         * config/i386/mmintrin-common.h: Likewise.
984         * config/i386/mmintrin.h: Likewise.
985         * config/i386/nmmintrin.h: Likewise.
986         * config/i386/pmm_malloc.h: Likewise.
987         * config/i386/pmmintrin.h: Likewise.
988         * config/i386/smmintrin.h: Likewise.
989         * config/i386/sol2-c1.asm: Likewise.
990         * config/i386/sol2-ci.asm: Likewise.
991         * config/i386/sol2-cn.asm: Likewise.
992         * config/i386/sol2-gc1.asm: Likewise.
993         * config/i386/tmmintrin.h: Likewise.
994         * config/i386/unix.h: Likewise.
995         * config/i386/w32-unwind.h: Likewise.
996         * config/i386/wmmintrin.h: Likewise.
997         * config/i386/x86-64.h: Likewise.
998         * config/i386/x86intrin.h: Likewise.
999         * config/i386/xmmintrin.h: Likewise.
1000         * config/ia64/crtbegin.asm: Likewise.
1001         * config/ia64/crtend.asm: Likewise.
1002         * config/ia64/crtfastmath.c: Likewise.
1003         * config/ia64/crti.asm: Likewise.
1004         * config/ia64/crtn.asm: Likewise.
1005         * config/ia64/fde-glibc.c: Likewise.
1006         * config/ia64/lib1funcs.asm: Likewise.
1007         * config/ia64/linux-unwind.h: Likewise.
1008         * config/ia64/quadlib.c: Likewise.
1009         * config/ia64/unwind-ia64.c: Likewise.
1010         * config/linux.h: Likewise.
1011         * config/m32c/m32c-lib1.S: Likewise.
1012         * config/m32c/m32c-lib2-trapv.c: Likewise.
1013         * config/m32c/m32c-lib2.c: Likewise.
1014         * config/m32r/initfini.c: Likewise.
1015         * config/m68hc11/larith.asm: Likewise.
1016         * config/m68hc11/m68hc11-crt0.S: Likewise.
1017         * config/m68k/cf.md: Likewise.
1018         * config/m68k/crti.s: Likewise.
1019         * config/m68k/crtn.s: Likewise.
1020         * config/m68k/lb1sf68.asm: Likewise.
1021         * config/m68k/linux-unwind.h: Likewise.
1022         * config/mcore/crti.asm: Likewise.
1023         * config/mcore/crtn.asm: Likewise.
1024         * config/mcore/lib1.asm: Likewise.
1025         * config/mips/linux-unwind.h: Likewise.
1026         * config/mips/loongson.h: Likewise.
1027         * config/mips/mips16.S: Likewise.
1028         * config/mmix/crti.asm: Likewise.
1029         * config/mmix/crtn.asm: Likewise.
1030         * config/pa/fptr.c: Likewise.
1031         * config/pa/hpux-unwind.h: Likewise.
1032         * config/pa/lib2funcs.asm: Likewise.
1033         * config/pa/linux-atomic.c: Likewise.
1034         * config/pa/linux-unwind.h: Likewise.
1035         * config/pa/milli64.S: Likewise.
1036         * config/pa/quadlib.c: Likewise.
1037         * config/pa/stublib.c: Likewise.
1038         * config/picochip/libgccExtras/adddi3.asm: Likewise.
1039         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
1040         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
1041         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
1042         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
1043         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
1044         * config/picochip/libgccExtras/divmod15.asm: Likewise.
1045         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
1046         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
1047         * config/picochip/libgccExtras/longjmp.asm: Likewise.
1048         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
1049         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
1050         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
1051         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
1052         * config/picochip/libgccExtras/setjmp.asm: Likewise.
1053         * config/picochip/libgccExtras/subdi3.asm: Likewise.
1054         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
1055         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
1056         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
1057         * config/rs6000/750cl.h: Likewise.
1058         * config/rs6000/altivec.h: Likewise.
1059         * config/rs6000/biarch64.h: Likewise.
1060         * config/rs6000/crtresfpr.asm: Likewise.
1061         * config/rs6000/crtresgpr.asm: Likewise.
1062         * config/rs6000/crtresxfpr.asm: Likewise.
1063         * config/rs6000/crtresxgpr.asm: Likewise.
1064         * config/rs6000/crtsavfpr.asm: Likewise.
1065         * config/rs6000/crtsavgpr.asm: Likewise.
1066         * config/rs6000/darwin-asm.h: Likewise.
1067         * config/rs6000/darwin-fallback.c: Likewise.
1068         * config/rs6000/darwin-fpsave.asm: Likewise.
1069         * config/rs6000/darwin-ldouble.c: Likewise.
1070         * config/rs6000/darwin-tramp.asm: Likewise.
1071         * config/rs6000/darwin-unwind.h: Likewise.
1072         * config/rs6000/darwin-vecsave.asm: Likewise.
1073         * config/rs6000/darwin-world.asm: Likewise.
1074         * config/rs6000/e500crtres32gpr.asm: Likewise.
1075         * config/rs6000/e500crtres64gpr.asm: Likewise.
1076         * config/rs6000/e500crtres64gprctr.asm: Likewise.
1077         * config/rs6000/e500crtrest32gpr.asm: Likewise.
1078         * config/rs6000/e500crtrest64gpr.asm: Likewise.
1079         * config/rs6000/e500crtresx32gpr.asm: Likewise.
1080         * config/rs6000/e500crtresx64gpr.asm: Likewise.
1081         * config/rs6000/e500crtsav32gpr.asm: Likewise.
1082         * config/rs6000/e500crtsav64gpr.asm: Likewise.
1083         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1084         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
1085         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
1086         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
1087         * config/rs6000/eabi-ci.asm: Likewise.
1088         * config/rs6000/eabi-cn.asm: Likewise.
1089         * config/rs6000/eabi.asm: Likewise.
1090         * config/rs6000/linux-unwind.h: Likewise.
1091         * config/rs6000/linux64.h: Likewise.
1092         * config/rs6000/paired.h: Likewise.
1093         * config/rs6000/paired.md: Likewise.
1094         * config/rs6000/ppc64-fp.c: Likewise.
1095         * config/rs6000/ppu_intrinsics.h: Likewise.
1096         * config/rs6000/rs6000.h: Likewise.
1097         * config/rs6000/si2vmx.h: Likewise.
1098         * config/rs6000/sol-ci.asm: Likewise.
1099         * config/rs6000/sol-cn.asm: Likewise.
1100         * config/rs6000/spe.h: Likewise.
1101         * config/rs6000/spu2vmx.h: Likewise.
1102         * config/rs6000/sysv4.h: Likewise.
1103         * config/rs6000/tramp.asm: Likewise.
1104         * config/rs6000/vec_types.h: Likewise.
1105         * config/s390/linux-unwind.h: Likewise.
1106         * config/s390/tpf-unwind.h: Likewise.
1107         * config/score/crti.asm: Likewise.
1108         * config/score/crtn.asm: Likewise.
1109         * config/sh/crt1.asm: Likewise.
1110         * config/sh/crti.asm: Likewise.
1111         * config/sh/crtn.asm: Likewise.
1112         * config/sh/divtab-sh4-300.c: Likewise.
1113         * config/sh/divtab-sh4.c: Likewise.
1114         * config/sh/divtab.c: Likewise.
1115         * config/sh/lib1funcs-4-300.asm: Likewise.
1116         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
1117         * config/sh/lib1funcs.asm: Likewise.
1118         * config/sh/lib1funcs.h: Likewise.
1119         * config/sh/linux-atomic.asm: Likewise.
1120         * config/sh/linux-unwind.h: Likewise.
1121         * config/sh/shmedia.h: Likewise.
1122         * config/sh/sshmedia.h: Likewise.
1123         * config/sh/ushmedia.h: Likewise.
1124         * config/sparc/crtfastmath.c: Likewise.
1125         * config/sparc/linux-unwind.h: Likewise.
1126         * config/sparc/sol2-c1.asm: Likewise.
1127         * config/sparc/sol2-ci.asm: Likewise.
1128         * config/sparc/sol2-cn.asm: Likewise.
1129         * config/spu/divmodti4.c: Likewise.
1130         * config/spu/divv2df3.c: Likewise.
1131         * config/spu/float_disf.c: Likewise.
1132         * config/spu/float_unsdidf.c: Likewise.
1133         * config/spu/float_unsdisf.c: Likewise.
1134         * config/spu/float_unssidf.c: Likewise.
1135         * config/spu/mfc_multi_tag_release.c: Likewise.
1136         * config/spu/mfc_multi_tag_reserve.c: Likewise.
1137         * config/spu/mfc_tag_release.c: Likewise.
1138         * config/spu/mfc_tag_reserve.c: Likewise.
1139         * config/spu/mfc_tag_table.c: Likewise.
1140         * config/spu/multi3.c: Likewise.
1141         * config/spu/spu_internals.h: Likewise.
1142         * config/spu/spu_intrinsics.h: Likewise.
1143         * config/spu/spu_mfcio.h: Likewise.
1144         * config/spu/vec_types.h: Likewise.
1145         * config/spu/vmx2spu.h: Likewise.
1146         * config/stormy16/stormy16-lib2.c: Likewise.
1147         * config/svr4.h: Likewise.
1148         * config/sync.c: Likewise.
1149         * config/v850/lib1funcs.asm: Likewise.
1150         * config/vxlib-tls.c: Likewise.
1151         * config/vxlib.c: Likewise.
1152         * config/vxworks-dummy.h: Likewise.
1153         * config/xtensa/crti.asm: Likewise.
1154         * config/xtensa/crtn.asm: Likewise.
1155         * config/xtensa/ieee754-df.S: Likewise.
1156         * config/xtensa/ieee754-sf.S: Likewise.
1157         * config/xtensa/lib1funcs.asm: Likewise.
1158         * config/xtensa/lib2funcs.S: Likewise.
1159         * config/xtensa/linux-unwind.h: Likewise.
1160         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1161         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
1162         * coretypes.h: Likewise.
1163         * crtstuff.c: Likewise.
1164         * defaults.h: Likewise.
1165         * dwarf2.h: Likewise.
1166         * emutls.c: Likewise.
1167         * gbl-ctors.h: Likewise.
1168         * gcov-io.h: Likewise.
1169         * ginclude/float.h: Likewise.
1170         * ginclude/iso646.h: Likewise.
1171         * ginclude/stdarg.h: Likewise.
1172         * ginclude/stdbool.h: Likewise.
1173         * ginclude/stddef.h: Likewise.
1174         * ginclude/stdfix.h: Likewise.
1175         * ginclude/stdint-gcc.h: Likewise.
1176         * ginclude/tgmath.h: Likewise.
1177         * gthr-aix.h: Likewise.
1178         * gthr-dce.h: Likewise.
1179         * gthr-gnat.c: Likewise.
1180         * gthr-gnat.h: Likewise.
1181         * gthr-lynx.h: Likewise.
1182         * gthr-mipssde.h: Likewise.
1183         * gthr-nks.h: Likewise.
1184         * gthr-posix.c: Likewise.
1185         * gthr-posix.h: Likewise.
1186         * gthr-posix95.h: Likewise.
1187         * gthr-rtems.h: Likewise.
1188         * gthr-single.h: Likewise.
1189         * gthr-solaris.h: Likewise.
1190         * gthr-tpf.h: Likewise.
1191         * gthr-vxworks.h: Likewise.
1192         * gthr-win32.h: Likewise.
1193         * gthr.h: Likewise.
1194         * libgcc2.c: Likewise.
1195         * libgcc2.h: Likewise.
1196         * libgcov.c: Likewise.
1197         * tsystem.h: Likewise.
1198         * typeclass.h: Likewise.
1199         * unwind-c.c: Likewise.
1200         * unwind-compat.h: Likewise.
1201         * unwind-dw2-fde-compat.c: Likewise.
1202         * unwind-dw2-fde-darwin.c: Likewise.
1203         * unwind-dw2-fde-glibc.c: Likewise.
1204         * unwind-dw2-fde.c: Likewise.
1205         * unwind-dw2-fde.h: Likewise.
1206         * unwind-dw2.c: Likewise.
1207         * unwind-dw2.h: Likewise.
1208         * unwind-generic.h: Likewise.
1209         * unwind-pe.h: Likewise.
1210         * unwind-sjlj.c: Likewise.
1211         * unwind.inc: Likewise.
1212         * config/arm/neon-gen.ml: Change generated copyright header to
1213         refer to version 3 of the GNU General Public License with
1214         version 3.1 of the GCC Runtime Library Exception and to point
1215         readers at the COPYING3 and COPYING3.RUNTIME files and the
1216         FSF's license web page.
1217         * config/arm/arm_neon.h: Regenerate.
1218
1219 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1220
1221         * config/cris/cris.md: Change copyright header to refer to version
1222         3 of the GNU General Public License.
1223         * doc/install.texi2html: Change copyright header to refer to version
1224         3 of the GNU General Public License and to point readers at the
1225         COPYING3 file and the FSF's license web page.
1226         * config/vax/linux.h: Likewise.
1227
1228 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
1229
1230         * config/i386/i386.md (cmpcc): New.
1231         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
1232         (sync_compare_and_swap_cc*): Delete.
1233
1234         * config/s390/s390.c (s390_compare_emitted): Remove.
1235         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
1236         s390_compare_emitted used to be handled.  Assert that modes match.
1237         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
1238         refer to sync_compare_and_swap_ccsi.
1239         * config/s390/s390.h (s390_compare_emitted): Remove.
1240         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
1241         instead of s390_compare_emitted.
1242         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
1243         instead of s390_compare_emitted.
1244         * config/s390/s390.md (cmpcc): New.
1245         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
1246         CC_REGNUM, do not pretend it's set.
1247         (sync_compare_and_swap_cc*): Delete.
1248         * config/s390/predicates.md (cc_reg_operand): New.
1249
1250         * expr.c (sync_compare_and_swap_cc): Delete.
1251         * optabs.h (sync_compare_and_swap_cc): Delete.
1252         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
1253         is being used with can_compare_p.
1254         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
1255         (find_cc_set): New.
1256         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
1257         look for a MODE_CC set instead.  Use emit_store_flag.
1258         (expand_compare_and_swap_loop): Likewise, with some additional
1259         complication to avoid a force_reg when useless.  Use
1260         emit_cmp_and_jump_insns.
1261         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
1262         * doc/md.texi (sync_compare_and_swap_cc): Merge with
1263         sync_compare_and_swap documentation.
1264
1265 2009-04-09  Jan Hubicka  <jh@suse.cz>
1266
1267         * except.c (find_prev_try): Break out from ....
1268         (duplicate_eh_regions): ... here; properly update prev_try pointers
1269         when duplication part of tree.
1270         (dump_eh_tree): Improve dumping.
1271         (verify_eh_region): New.
1272         (verify_eh_tree): Use it.
1273
1274 2009-04-06  Richard Guenther  <rguenther@suse.de>
1275
1276         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
1277         &ARRAY addresses by adjusting their types and prepending
1278         a conversion.
1279         * tree-cfg.c (verify_gimple_assign_single): Verify that
1280         addresses are correct.
1281
1282 2009-04-09  Richard Guenther  <rguenther@suse.de>
1283
1284         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
1285         indices into an array reference if possible.
1286         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
1287         Fold POINTER_PLUS_EXPR statements with invariant address.
1288
1289 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
1290
1291         PR target/39634
1292         * config.gcc (powerpc64-*-linux*): Always build biarch.
1293
1294 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
1295
1296         PR c/39613
1297         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
1298         it and pedwarn if this results in an INTEGER_CST.
1299
1300 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1301
1302         * doc/install.texi: Update minimum GMP version.  Remove obsolete
1303         text in MPFR section.
1304
1305 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1306
1307         * dwarf2out.c (class_scope_p): New static inline.
1308         (class_or_namespace_scope_p): Use it.
1309         (gen_variable_die): Use DW_TAG_member tag for static data member
1310         declarations instead of DW_TAG_variable.
1311
1312         PR middle-end/39573
1313         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
1314         variables.
1315
1316 2009-04-08  Richard Guenther  <rguenther@suse.de>
1317
1318         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
1319         valueize random data.
1320
1321 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
1322
1323         * config.gcc (aix tm_file):  Add aix-stdint.h.
1324         (aix tm clause use_gcc_stdint):  Set to wrap.
1325         * config/rs6000/aix-stdint.h:  New file.
1326         
1327 2009-04-08  Richard Guenther  <rguenther@suse.de>
1328
1329         PR middle-end/36291
1330         * tree-dfa.c (add_referenced_var): Do not recurse into
1331         global initializers.
1332         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
1333         exposed variables.
1334         (fold_const_aggregate_ref): Likewise.
1335
1336 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
1337
1338         * recog.c (ordered_comparison_operator): New.
1339         * gensupport.c (std_preds): Add it.
1340         * doc/md.texi (Machine-Independent Predicates): Document it.
1341
1342 2009-04-08  Jan Hubicka  <jh@suse.cz>
1343
1344         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
1345         * function.h (rtl_eh): Remove exception_handler_label_map.
1346         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
1347         remove_exception_handler_label, for_each_eh_label_1): Remove.
1348         (rtl_remove_unreachable_regions): Remove.
1349         (convert_from_eh_region_ranges): Do not remove unreachable regions.
1350         (find_exception_handler_labels): Don't build the hashtable.
1351         (maybe_remove_eh_handler): Remove.
1352         (for_each_eh_label): Rewrite to walk the tree.
1353         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
1354         * except.h (maybe_remove_eh_handler): Remove.
1355         * passes.c (init_optimization_passes): Schedule second EH cleanup
1356         before out-of-ssa.
1357         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
1358         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
1359
1360 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
1361
1362         * genoutput.c (validate_optab_operands): New.
1363         (gen_insn, gen_expand): Call it.
1364
1365         * genflags.c (gen_insn): Detect misused iterators.
1366         (main): Pass line_no to gen_insn, exit with status 1 on error.
1367
1368         * genextract.c (line_no): Make global.
1369         (VEC_safe_set_locstr): Change assertion to error message.
1370         (main): Exit with status 1 on error.
1371
1372 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
1373
1374         PR c/39614
1375         PR c/39673
1376         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
1377         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
1378         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
1379         * c-convert.c (convert): Do not call fold on results of conversion
1380         functions when the result is a C_MAYBE_CONST_EXPR.
1381         * c-parser.c (c_parser_postfix_expression): Do not fold condition
1382         of __builtin_choose_expr.
1383         * c-typeck.c (remove_c_maybe_const_expr): New.
1384         (build_unary_op, build_conditional_expr, build_compound_expr,
1385         build_binary_op, c_objc_common_truthvalue_conversion): Call
1386         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
1387         integer operands.
1388
1389 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
1390
1391         * fold-const.c (const_binop): Combine two VECTOR_CST under operation 
1392         CODE to produce a new one. Add a prototype to use fold_convert_const
1393
1394 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
1395
1396         PR bootstrap/39660
1397         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
1398         mix declarations and code.
1399
1400 2009-04-08  Ben Elliston  <bje@au.ibm.com>
1401
1402         * gcc.c: Replace `CC' with `GCC' throughout.
1403
1404 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1405
1406         * doc/invoke.texi: Document Atom support.
1407
1408 2009-04-07  Jason Merrill  <jason@redhat.com>
1409
1410         PR c++/25185
1411         * c-common.h, c-common.c: Add flag_pretty_templates.
1412         * c-opts.c (c_common_handle_option): Set it.
1413         * c.opt: Add -fno-pretty-templates.
1414         * doc/invoke.texi (C++ Dialect Options): Likewise.
1415
1416 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
1417
1418         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
1419         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
1420         (ia64_expand_builtin): Likewise.
1421
1422 2009-04-07  Martin Jambor  <mjambor@suse.cz>
1423
1424         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
1425         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
1426         ADDR_EXPRS are include too.
1427
1428 2009-04-07  Richard Guenther  <rguenther@suse.de>
1429
1430         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
1431         decls are only used if passes as parameters or if they are
1432         local statics and the call is not to a builtin.
1433         (call_may_clobber_ref_p_1): Likewise.
1434
1435 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
1436
1437         * expr.c (do_store_flag): Remove last argument.  Simplify code
1438         to avoid duplication of tests already done by can_compare_p.
1439         (expand_expr_real_1): Adjust caller.
1440
1441 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
1442
1443         * optabs.c (can_compare_p): Test the predicate of a
1444         cbranch and cstore pattern.
1445
1446 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
1447
1448         * expr.c (convert_move): Use emit_store_flag instead of
1449         "emulating" it.
1450
1451 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
1452
1453         * config/i386/i386.c (ix86_compare_emitted): Remove.
1454         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
1455         ix86_compare_op0 like ix86_compare_emitted used to be handled.
1456         * config/i386/i386.h (ix86_compare_emitted): Remove.
1457         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
1458         instead of ix86_compare_emitted.
1459         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
1460
1461 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
1462
1463         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
1464         Add t-sysroot-suffix to tmake_file.
1465         * config/print-sysroot-suffix.sh: New file.
1466         * config/t-sysroot-suffix: New file.
1467
1468 2009-04-07  Ben Elliston  <bje@au.ibm.com>
1469
1470         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
1471         as the latter produces a warning when the target does not support
1472         infinity.
1473
1474 2009-04-07  Ben Elliston  <bje@au.ibm.com>
1475
1476         * dfp.c: Replace type punning assignments with memcpy throughout.
1477         * Makefile.in (dfp.o-warn): Remove.
1478         
1479 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
1480
1481         PR target/39634
1482         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
1483         Include soft-fp/t-softfp after rs6000/t-linux64.
1484
1485 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1486
1487         * stor-layout.c (set_sizetype): Use the full precision of their
1488         machine mode for bitsize types.
1489
1490 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
1491
1492         * config/i386/i386.md: Revert 2 accidental checkins.
1493
1494 2009-04-06  Joey Ye  <joey.ye@intel.com>
1495             Xuepeng Guo <xuepeng.guo@intel.com>
1496             H.J. Lu  <hongjiu.lu@intel.com>
1497
1498         Atom pipeline model, tuning and insn selection.
1499         * config.gcc (atom): Add atom config options and target.
1500
1501         * config/i386/atom.md: New.
1502
1503         * config/i386/i386.c (atom_cost): New cost.
1504         (m_ATOM): New macro flag.
1505         (initial_ix86_tune_features): Set m_ATOM.
1506         (x86_accumulate_outgoing_args): Likewise.
1507         (x86_arch_always_fancy_math_387): Likewise.
1508         (processor_target): Add Atom cost.
1509         (cpu_names): Add Atom cpu name.
1510         (override_options): Set Atom ISA.
1511         (ix86_issue_rate): New case PROCESSOR_ATOM.
1512         (ix86_adjust_cost): Likewise.
1513
1514         * config/i386/i386.h (TARGET_ATOM): New target macro.
1515         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
1516         (TARGET_OPT_AGU): New target option.
1517         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
1518         (processor_type): Add PROCESSOR_ATOM.
1519
1520         * config/i386/i386.md (cpu): Add new value "atom".
1521         (use_carry, movu): New attr.
1522         (atom.md): Include atom.md.
1523         (adddi3_carry_rex64): Set attr "use_carry".
1524         (addqi3_carry): Likewise.
1525         (addhi3_carry): Likewise.
1526         (addsi3_carry): Likewise.
1527         (*addsi3_carry_zext): Likewise.
1528         (subdi3_carry_rex64): Likewise.
1529         (subqi3_carry): Likewise.
1530         (subhi3_carry): Likewise.
1531         (subsi3_carry): Likewise.
1532         (x86_movdicc_0_m1_rex64): Likewise.
1533         (*x86_movdicc_0_m1_se): Likewise.
1534         (x86_movsicc_0_m1): Likewise.
1535         (*x86_movsicc_0_m1_se): Likewise.
1536         (*adddi_1_rex64): Emit add insn as much as possible.
1537         (*addsi_1): Likewise.
1538         (return_internal): Set atom_unit.
1539         (return_internal_long): Likewise.
1540         (return_pop_internal): Likewise.
1541         (*rcpsf2_sse): Set atom_sse_attr attr.
1542         (*qrt<mode>2_sse): Likewise.
1543         (*prefetch_sse): Likewise.
1544
1545         * config/i386/i386-c.c (ix86_target_macros_internal): New case
1546         PROCESSOR_ATOM.
1547         (ix86_target_macros_internal): Likewise.
1548
1549         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
1550         (*prefetch_sse_rex): Likewise.
1551         (sse_rcpv4sf2): Likewise.
1552         (sse_vmrcpv4sf2): Likewise.
1553         (sse_sqrtv4sf2): Likewise.
1554         (<sse>_vmsqrt<mode>2): Likewise.
1555         (sse_ldmxcsr): Likewise.
1556         (sse_stmxcsr): Likewise.
1557         (*sse_sfence): Likewise.
1558         (sse2_clflush): Likewise.
1559         (*sse2_mfence): Likewise.
1560         (*sse2_lfence): Likewise.
1561         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
1562         (<sse>_movup<ssemodesuffixf2c>): Likewise.
1563         (avx_movdqu<avxmodesuffix>): Likewise.
1564         (avx_lddqu<avxmodesuffix>): Likewise.
1565         (sse2_movntv2di): Change attr "type" to "ssemov".
1566         (sse2_movntsi): Likewise.
1567         (rsqrtv8sf2): Change attr "type" to "sseadd".
1568         (sse3_addsubv2df3): Set attr "atom_unit".
1569         (sse3_h<plusminus_insn>v4sf3): Likewise.
1570         (*sse2_pmaddwd): Likewise.
1571         (*vec_extractv2di_1_rex64): Likewise.
1572         (*vec_extractv2di_1_avx): Likewise.
1573         (sse2_psadbw): Likewise.
1574         (ssse3_phaddwv8hi3): Likewise.
1575         (ssse3_phaddwv4hi3): Likewise.
1576         (ssse3_phadddv4si3): Likewise.
1577         (ssse3_phadddv2si3): Likewise.
1578         (ssse3_phaddswv8hi3): Likewise.
1579         (ssse3_phaddswv4hi3): Likewise.
1580         (ssse3_phsubwv8hi3): Likewise.
1581         (ssse3_phsubwv4hi3): Likewise.
1582         (ssse3_phsubdv4si3): Likewise.
1583         (ssse3_phsubdv2si3): Likewise.
1584         (ssse3_phsubswv8hi3): Likewise.
1585         (ssse3_phsubswv4hi3): Likewise.
1586         (ssse3_pmaddubsw128): Likewise.
1587         (sse3_pmaddubsw: Likewise.
1588         (ssse3_palignrti): Likewise.
1589         (ssse3_palignrdi): Likewise.
1590
1591 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
1592
1593         * doc/install.texi (Specific): Fix two cross-references to MinGW.
1594
1595 2009-04-06  Richard Guenther  <rguenther@suse.de>
1596
1597         PR tree-optimization/28868
1598         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
1599         of which PHI results we inserted.
1600         (insert_into_preds_of_block): Record inserted PHIs.
1601         (eliminate): Eliminate redundant PHI nodes.
1602         (init_pre): Init inserted_phi_names.
1603
1604 2009-04-06  Richard Guenther  <rguenther@suse.de>
1605
1606         PR tree-optimization/39643
1607         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
1608         IMAGPART_EXPRs of complex constants.
1609         (execute_fold_all_builtins): If we folded a call queue
1610         TODO_update_address_taken.
1611
1612 2009-04-06  Jan Hubicka  <jh@suse.cz>
1613
1614         PR middle-end/39659
1615         * except.c (remove_unreachable_regions): Propagate may_contain_throw
1616         flag.
1617
1618 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
1619
1620         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
1621         delay slot.
1622         (ic_invalidate_array): Likewise.
1623
1624 2009-04-06  Hariharan Sandanagobalane <hariharan@picochip.com>
1625
1626         * calls.c (emit_library_call_value_1): Fix a problem with parameter
1627         alignment for library calls.
1628
1629 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
1630
1631         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
1632         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
1633         * config/i386/mingw-stdint.h:  New file.
1634
1635 2009-04-05  Richard Guenther  <rguenther@suse.de>
1636
1637         PR tree-optimization/39648
1638         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
1639         our &A vs. &A[0] IL deficiencies.
1640
1641 2009-04-04  Jan Hubicka  <jh@suse.cz>
1642
1643         * except.c (sjlj_find_directly_reachable_regions): Be ready for
1644         removed toplevel regions.
1645         (sjlj_mark_call_sites): Likewise.
1646
1647 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
1648
1649         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
1650         (cygwin tm clause use_gcc_stdint):  Set to wrap.
1651         * config/i386/cygwin-stdint.h:  New file.
1652
1653 2009-04-04  Richard Guenther  <rguenther@suse.de>
1654
1655         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
1656         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
1657         single-argument PHIs if we are in loop-closed SSA form.
1658         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
1659         for the pre-condition.
1660         (slpeel_tree_peel_loop_to_edge): Likewise.
1661         (vect_build_loop_niters): Take an optional sequence to append stmts.
1662         (vect_generate_tmps_on_preheader): Likewise.
1663         (vect_do_peeling_for_loop_bound): Take extra guards for the
1664         pre-condition.
1665         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
1666         the cost model check.
1667         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
1668         guards if we are going to peel.  Do not apply versioning in that case.
1669         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
1670         (vect_do_peeling_for_loop_bound): Likewise.
1671         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
1672         loop bound only record extra pre-conditions, do not apply loop
1673         versioning.
1674
1675 2009-04-04  Richard Guenther  <rguenther@suse.de>
1676
1677         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
1678         renaming code.
1679
1680 2009-04-04  Jan Hubicka  <jh@suse.cz>
1681
1682         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
1683         last_basic_block for size of bb->index indexed array.
1684         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
1685         compute_out, link_btr_uses, build_btr_def_use_webs,
1686         build_btr_def_use_webs, migrate_btr_defs): Likewise.
1687
1688 2009-04-04  Jan Hubicka  <jh@suse.cz>
1689
1690         * except.c (remove_eh_handler_and_replace): Break out from ...
1691         (remove_eh_handler): ... here.
1692         (bring_to_root): New function.
1693         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
1694         handled ones, bring others to root of tree.
1695
1696 2009-04-04  Jan Hubicka  <jh@suse.cz>
1697
1698         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
1699         (all_phis_safe_to_merge): New function.
1700         (update_info): New structure.
1701         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
1702         (cleanup_empty_eh): Update SSA if possible.
1703
1704 2009-04-04  Richard Guenther  <rguenther@suse.de>
1705
1706         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
1707         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
1708         (append_vuse): Likewise.
1709
1710 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
1711
1712         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
1713         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
1714         instead of REG_UNSAVED for DW_CFA_undefined.
1715         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
1716         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
1717         outermost frame.
1718
1719 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
1720
1721         PR target/39501
1722         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
1723         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
1724         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
1725
1726 2009-04-04  Richard Guenther  <rguenther@suse.de>
1727
1728         PR tree-optimization/8781
1729         PR tree-optimization/37892
1730         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
1731         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
1732         (valueize_refs): Call it for *& valueizations.
1733         (shared_reference_ops_from_ref): Rename to ...
1734         (valueize_shared_reference_ops_from_ref): ... this and valueize.
1735         (shared_reference_ops_from_call): Rename to ...
1736         (valueize_shared_reference_ops_from_call): ... this and valueize.
1737         (vn_reference_lookup): Update.
1738         (visit_reference_op_call): Likewise.
1739         * tree-ssa-pre.c (phi_translate_1): Fold *&.
1740         (eliminate): Value-replace the call address in call statements.
1741
1742 2009-04-04  Richard Guenther  <rguenther@suse.de>
1743
1744         PR tree-optimization/39636
1745         * tree-ssa-forwprop.c
1746         (forward_propagate_addr_into_variable_array_index): Check for
1747         GIMPLE_ASSIGN before accessing the rhs code.
1748
1749 2009-04-03  Jason Merrill  <jason@redhat.com>
1750
1751         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
1752
1753 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
1754
1755         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
1756         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
1757         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
1758         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
1759         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
1760         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
1761         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
1762         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
1763         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
1764         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
1765         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
1766         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
1767         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
1768         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
1769         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
1770         Use fr_reg_or_fp01_operand instead of fr_register_operand
1771
1772         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
1773         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
1774         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
1775
1776 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
1777
1778         PR rtl-optimization/39607
1779         PR rtl-optimization/39631
1780
1781         Revert:
1782         
1783         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
1784         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
1785         instead of DF_LR_OUT.
1786         * ira-lives.c (process_bb_node_lives): Ditto.
1787         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
1788         instead of DF_LR_{OUT,IN}.
1789         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
1790         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
1791
1792 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
1793
1794         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
1795         (execute_lower_omp): Always run but take the short way out if -fopenmp
1796         is not given.
1797         (gate_lower_omp): Remove, forcing the pass manager to always run the
1798         pass and always set PROP_gimple_lomp.
1799         (pass_lower_omp): Remove gate function.
1800         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
1801         PROP_trees.  Instead, require it.
1802         * ipa-cp.c (pass_ipa_cp): Likewise.
1803         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
1804         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
1805         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
1806         and PROP_gimple_leh.
1807
1808 2009-04-03  Richard Guenther  <rguenther@suse.de>
1809
1810         PR middle-end/13146
1811         PR tree-optimization/23940
1812         PR tree-optimization/33237
1813         PR middle-end/33974
1814         PR middle-end/34093
1815         PR tree-optimization/36201
1816         PR tree-optimization/36230
1817         PR tree-optimization/38049
1818         PR tree-optimization/38207
1819         PR tree-optimization/38230
1820         PR tree-optimization/38301
1821         PR tree-optimization/38585
1822         PR middle-end/38895
1823         PR tree-optimization/38985
1824         PR tree-optimization/39299
1825         * tree-ssa-structalias.h: Remove.
1826         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
1827         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
1828         (struct vuse_element_d): Remove.
1829         (struct vuse_vec_d): Likewise.
1830         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
1831         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
1832         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
1833         VUSE_ELEMENT_VAR): Likewise.
1834         (struct voptype_d): Likewise.
1835         (NUM_VOP_FREE_BUCKETS): Likewise.
1836         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
1837         (struct stmt_operands_d): Remove.
1838         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
1839         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
1840         VDEF_NUM, VDEF_VECT): Likewise.
1841         (copy_virtual_operands): Remove.
1842         (operand_build_cmp): Likewise.
1843         (create_ssa_artificial_load_stmt): Likewise.
1844         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
1845         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
1846         vuse_index and mayuse_index members.  Pack and move done and iter_type
1847         members to the front.
1848         (SSA_OP_VMAYUSE): Remove.
1849         (SSA_OP_VIRTUAL_USES): Adjust.
1850         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
1851         (unlink_stmt_vdef): Declare.
1852         (add_to_addressable_set): Remove.
1853         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
1854         (vrp_visit_stmt): Likewise.
1855         * doc/tree-ssa.texi (Alias analysis): Update.
1856         * doc/invoke.texi (max-aliased-vops): Remove docs.
1857         (avg-aliased-vops): Likewise.
1858         * tree-into-ssa.c (syms_to_rename): Remove.
1859         (need_to_update_vops_p): Likewise.
1860         (need_to_initialize_update_ssa_p): Rename to ...
1861         (update_ssa_initialized_fn): ... this.  Track function we are
1862         initialized for.
1863         (symbol_marked_for_renaming): Simplify.
1864         (add_new_name_mapping): Do not set need_to_update_vops_p.
1865         (dump_currdefs): Use SYMS_TO_RENAME.
1866         (rewrite_update_stmt): Always walk all uses/defs.
1867         (dump_update_ssa): Adjust.
1868         (init_update_ssa): Take function argument.  Track what we are
1869         initialized for.
1870         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
1871         (create_new_def_for): Initialize for cfun, assert we are initialized
1872         for cfun.
1873         (mark_sym_for_renaming): Simplify.
1874         (mark_set_for_renaming): Do not initialize update-ssa.
1875         (need_ssa_update_p): Simplify.  Take function argument.
1876         (name_mappings_registered_p): Assert we ask for the correct function.
1877         (name_registered_for_update_p): Likewise.
1878         (ssa_names_to_replace): Likewise.
1879         (release_ssa_name_after_update_ssa): Likewise.
1880         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
1881         (dump_decl_set): Do not print a newline.
1882         (debug_decl_set): Do it here.
1883         (dump_update_ssa): And here.
1884         * tree-ssa-loop-im.c (move_computations): Adjust.
1885         (movement_possibility): Likewise.
1886         (determine_max_movement): Likewise.
1887         (gather_mem_refs_stmt): Likewise.
1888         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
1889         or NAME_MEMORY_TAG.
1890         * tree-complex.c (update_all_vops): Remove.
1891         (expand_complex_move): Adjust.
1892         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
1893         Simplify test for memory referencing statement.  Exclude
1894         non-invariant ADDR_EXPRs.
1895         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
1896         * tree-loop-distribution.c (generate_memset_zero): Adjust.
1897         (rdg_flag_uses): Likewise.
1898         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
1899         related code.
1900         (tree_optimize_tail_calls_1): Also split the
1901         edge from the entry block if we have degenerate PHI nodes in
1902         the first basic block.
1903         * tree.c (init_ttree): Remove memory-tag related code.
1904         (tree_code_size): Likewise.
1905         (tree_node_structure): Likewise.
1906         (build7_stat): Re-write to be build6_stat.
1907         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
1908         (SSA_VAR_P): Adjust.
1909         (struct tree_memory_tag): Remove.
1910         (struct tree_memory_partition_tag): Likewise.
1911         (union tree_node): Adjust.
1912         (build7): Re-write to be build6.
1913         * tree-pass.h (pass_reset_cc_flags): Remove.
1914         (TODO_update_address_taken): New flag.
1915         (pass_simple_dse): Remove.
1916         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
1917         * params.h (MAX_ALIASED_VOPS): Remove.
1918         (AVG_ALIASED_VOPS): Likewise.
1919         * omp-low.c (expand_omp_taskreg): Update SSA form.
1920         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
1921         aliases the lhs in a copy stmt.
1922         * tree-ssa-dse.c (struct address_walk_data): Remove.
1923         (memory_ssa_name_same): Likewise.
1924         (memory_address_same): Likewise.
1925         (get_kill_of_stmt_lhs): Likewise.
1926         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
1927         unused stores.  Look through PHI nodes into post-dominated regions.
1928         (dse_optimize_stmt): Simplify.  Properly remove stores.
1929         (tree_ssa_dse): Compute dominators.
1930         (execute_simple_dse): Remove.
1931         (pass_simple_dse): Likewise.
1932         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
1933         gimple_loaded_syms and gimple_stored_syms computation.
1934         * toplev.c (dump_memory_report): Dump alias and pta stats.
1935         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
1936         (vn_reference_eq): Likewise.
1937         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
1938         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
1939         valueize_vuses): Remove.
1940         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
1941         (get_def_ref_stmt_vuse): ... this.
1942         (vn_reference_lookup_2): New function.
1943         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
1944         walking equivalent vuses.  Simplify.
1945         (vn_reference_lookup): Likewise.
1946         (vn_reference_insert): Likewise.
1947         (vn_reference_insert_pieces): Likewise.
1948         (visit_reference_op_call): Simplify.
1949         (visit_reference_op_load): Likewise.
1950         (visit_reference_op_store): Likewise.
1951         (init_scc_vn): Remove shared_lookup_vuses initialization.
1952         (free_scc_vn): Remove shared_lookup_vuses freeing.
1953         (sort_vuses, sort_vuses_heap): Remove.
1954         (get_ref_from_reference_ops): Export.
1955         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
1956         vector with single vuse pointer.
1957         (vn_reference_lookup_pieces, vn_reference_lookup,
1958         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
1959         (shared_vuses_from_stmt): Remove.
1960         (get_ref_from_reference_ops): Declare.
1961         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
1962         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
1963         memory-tag related code.
1964         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
1965         (likely_value): Add comment, skip static-chain of call statements.
1966         (surely_varying_stmt_p): Adjust.
1967         (gimplify_and_update_call_from_tree): Likewise.
1968         (execute_fold_all_builtins): Do not rebuild alias info.
1969         (gimplify_and_update_call_from_tree): Properly update VOPs.
1970         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
1971         (copy_ref_info): Remove memory-tag related code.
1972         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
1973         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
1974         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
1975         computation.
1976         * tree-ssa-dom.c (gimple_p): Remove typedef.
1977         (eliminate_redundant_computations): Adjust.
1978         (record_equivalences_from_stmt): Likewise.
1979         (avail_expr_hash): Likewise.
1980         (avail_expr_eq): Likewise.
1981         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
1982         (stmt_makes_single_load): Likewise.
1983         (stmt_makes_single_store): Likewise.
1984         * tree-ssa-alias.c: Rewrite completely.
1985         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
1986         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
1987         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
1988         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
1989         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
1990         Remove public functions.
1991         (pass_reset_cc_flags): Remove.
1992         (pass_build_alias): Move ...
1993         * tree-ssa-structalias.c (pass_build_alias): ... here.
1994         * tree-ssa-alias.c (may_be_aliased): Move ...
1995         * tree-flow-inline.h (may_be_aliased): ... here.
1996         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
1997         count_uses_and_derefs): Move ...
1998         * gimple.c: ... here.
1999         * gimple.h (count_uses_and_derefs): Declare.
2000         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
2001         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
2002         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
2003         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
2004         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
2005         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
2006         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
2007         New functions.
2008         * tree-dfa.c (refs_may_alias_p): Move ...
2009         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
2010         * tree-ssa-alias.h: New file.
2011         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
2012         (statement_sink_location): Likewise.
2013         * opts.c (decode_options): Do not adjust max-aliased-vops or
2014         avg-aliased-vops values.
2015         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
2016         (TV_CALL_CLOBBER): Likewise.
2017         (TV_FLOW_SENSITIVE): Likewise.
2018         (TV_FLOW_INSENSITIVE): Likewise.
2019         (TV_MEMORY_PARTITIONING): Likewise.
2020         (TV_ALIAS_STMT_WALK): New timevar.
2021         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
2022         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
2023         (get_address_description): Remove memory-tag related code.
2024         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
2025         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
2026         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
2027         and immediate uses in statements.  Document.
2028         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
2029         (dump_symbols): Remove.
2030         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
2031         * alias.c (get_deref_alias_set): New function split out from ...
2032         (get_alias_set): ... here.
2033         * alias.h (get_deref_alias_set): Declare.
2034         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
2035         type parameter.  Remove restrict pointer handling.  Create a
2036         ref-all pointer in case type-based alias sets do not conflict.
2037         (vect_analyze_data_refs): Remove SMT related code.
2038         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
2039         (vectorizable_load): Likewise.
2040         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
2041         (DR_SYMBOL_TAG, DR_VOPS): Remove.
2042         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
2043         Ignore vops and SMTs.
2044         (dr_analyze_alias): Likewise..
2045         (free_data_ref): Likewise.
2046         (create_data_ref): Likewise.
2047         (analyze_all_data_dependences): Likewise.
2048         (get_references_in_stmt): Adjust.
2049         * tree-flow-inline.h (gimple_aliases_computed_p,
2050         gimple_addressable_vars, gimple_call_clobbered_vars,
2051         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
2052         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
2053         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
2054         gimple_mem_ref_stats): Remove.
2055         (gimple_vop): New function.
2056         (op_iter_next_use): Remove vuses and mayuses cases.
2057         (op_iter_next_def): Remove vdefs case.
2058         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
2059         (clear_and_done_ssa_iter): Do not set removed fields.
2060         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
2061         Assert we are not iterating over vuses or vdefs if not also
2062         iterating over uses or defs.
2063         (op_iter_init_use): Likewise.
2064         (op_iter_init_def): Likewise.
2065         (op_iter_next_vdef): Remove.
2066         (op_iter_next_mustdef): Likewise.
2067         (op_iter_init_vdef): Likewise.
2068         (compare_ssa_operands_equal): Likewise.
2069         (link_use_stmts_after): Handle vuse operand.
2070         (is_call_used): Use is_call_clobbered.
2071         (is_call_clobbered): Global variables are always call clobbered,
2072         query the call-clobbers bitmap.
2073         (mark_call_clobbered): Ignore global variables.
2074         (clear_call_clobbered): Likewise.
2075         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
2076         virtual operands sanity check.
2077         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
2078         Remove.
2079         (TARGET_MEM_REF): Remove TMR_TAG operand.
2080         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
2081         Remove call-clobber related code.
2082         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
2083         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
2084         partitions or escape reason.
2085         (get_single_def_stmt, get_single_def_stmt_from_phi,
2086         get_single_def_stmt_with_phi): Remove.
2087         (dump_referenced_vars): Tidy.
2088         (get_ref_base_and_extent): Allow bare decls.
2089         (collect_dfa_stats): Adjust.
2090         * graphite.c (rename_variables_in_stmt): Adjust.
2091         (graphite_copy_stmts_from_block): Likewise.
2092         (translate_clast): Likewise.
2093         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
2094         (EXPR_DIES): New.
2095         (translate_vuse_through_block): Use the oracle.
2096         (phi_translate_1): Adjust.
2097         (value_dies_in_block_x): Use the oracle.  Cache the outcome
2098         in EXPR_DIES.
2099         (valid_in_sets): Check if the VUSE for
2100         a REFERENCE is available.
2101         (eliminate): Do not remove stmts during elimination,
2102         instead queue and remove them afterwards.
2103         (do_pre): Do not rebuild alias info.
2104         (pass_pre): Run TODO_rebuild_alias before PRE.
2105         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
2106         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
2107         (mark_all_v_defs_stmt): Remove.
2108         (mark_all_v_defs_seq): Adjust.
2109         (sra_replace): Likewise.
2110         (scalarize_use): Likewise.
2111         (scalarize_copy): Likewise.
2112         (scalarize_init): Likewise.
2113         (scalarize_ldst): Likewise.
2114         (todoflags): Remove.
2115         (tree_sra): Do not rebuild alias info.
2116         (tree_sra_early): Adjust.
2117         (pass_sra): Run TODO_update_address_taken before SRA.
2118         * tree-predcom.c (set_alias_info): Remove.
2119         (prepare_initializers_chain): Do not call it.
2120         (mark_virtual_ops_for_renaming): Adjust.
2121         (mark_virtual_ops_for_renaming_list): Remove.
2122         (initialize_root_vars): Adjust.
2123         (initialize_root_vars_lm): Likewise.
2124         (prepare_initializers_chain): Likewise.
2125         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
2126         (may_propagate_copy_into_stmt): Likewise.
2127         (merge_alias_info): Do nothing for now.
2128         (propagate_tree_value_into_stmt): Adjust.
2129         (stmt_may_generate_copy): Likewise.
2130         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
2131         not mark symbols for renaming.
2132         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
2133         with the same statement, make sure to update the new pointed-to one.
2134         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
2135         call statements, do not mark symbols for renaming.
2136         (mark_operand_necessary): Dump something.
2137         (ref_may_be_aliased): New function.
2138         (mark_aliased_reaching_defs_necessary_1): New helper function.
2139         (mark_aliased_reaching_defs_necessary): Likewise.
2140         (mark_all_reaching_defs_necessary_1): Likewise.
2141         (mark_all_reaching_defs_necessary): Likewise.
2142         (propagate_necessity): Do not process virtual PHIs.  For
2143         non-aliased loads mark all reaching definitions as necessary.
2144         For aliased loads and stores mark the immediate dominating
2145         aliased clobbers as necessary.
2146         (visited): New global static.
2147         (perform_tree_ssa_dce): Free visited bitmap after propagating
2148         necessity.
2149         (remove_dead_phis): Perform simple dead virtual PHI removal.
2150         (remove_dead_stmt): Properly unlink virtual operands when
2151         removing stores.
2152         (eliminate_unnecessary_stmts): Schedule PHI removal after
2153         stmt removal.
2154         * tree-ssa-ter.c (is_replaceable_p): Adjust.
2155         (process_replaceable): Likewise.
2156         (find_replaceable_in_bb): Likewise.
2157         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
2158         based on the single gimple vop.
2159         (verify_flow_insensitive_alias_info): Remove.
2160         (verify_flow_sensitive_alias_info): Likewise.
2161         (verify_call_clobbering): Likewise.
2162         (verify_memory_partitions): Likewise.
2163         (verify_alias_info): Likewise.
2164         (verify_ssa): Adjust..
2165         (execute_update_addresses_taken): Export.  Update SSA
2166         manually.  Optimize only when optimizing.  Use a local bitmap.
2167         (pass_update_address_taken): Remove TODO_update_ssa, add
2168         TODO_dump_func.
2169         (pass_update_address_taken): Just use TODO_update_address_taken.
2170         (init_tree_ssa): Do not initialize addressable_vars.
2171         (verify_ssa): Verify new VUSE / VDEF properties.
2172         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
2173         Do not call verify_alias_info.
2174         (delete_tree_ssa): Clear the VUSE, VDEF operands.
2175         Do not free the loaded and stored syms bitmaps.  Reset the escaped
2176         and callused solutions.  Do not free addressable_vars.
2177         Remove memory-tag related code.
2178         (warn_uninitialized_var): Aliases are always available.
2179         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
2180         * lambda-code.c (can_put_in_inner_loop): Adjust.
2181         (can_put_after_inner_loop): Likewise.
2182         (perfect_nestify): Likewise.
2183         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
2184         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
2185         (vectorizable_conversion): Do not mark symbols for renaming.
2186         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
2187         (expand_call_inline): Unlink the calls virtual operands before
2188         replacing it.
2189         (tree_function_versioning): Do not call update_ssa if we are not
2190         updating clones.  Simplify.
2191         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
2192         (propagate_with_phi): Likewise..
2193         * tree-outof-ssa.c (create_temp): Remove memory tag and call
2194         clobber code.  Assert we are not aliased or global.
2195         * tree-flow.h: Include tree-ssa-alias.h
2196         (enum escape_type): Remove.
2197         (struct mem_sym_stats_d): Likewise.
2198         (struct mem_ref_stats_d): Likewise.
2199         (struct gimple_df): Add vop member.  Remove global_var,
2200         call_clobbered_vars, call_used_vars, addressable_vars,
2201         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
2202         escaped and callused members.
2203         (struct ptr_info_def): Remove all members, add points-to solution
2204         member pt.
2205         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
2206         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
2207         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
2208         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
2209         (tree-ssa-alias.o): Likewise.
2210         (toplev.o): Add tree-ssa-alias.h
2211         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
2212         * gimple.c (gimple_set_bb): Fix off-by-one error.
2213         (is_gimple_reg): Do not handle memory tags.
2214         (gimple_copy): Also copy virtual operands.
2215         Delay updating the statement.  Do not reset loaded and stored syms.
2216         (gimple_set_stored_syms): Remove.
2217         (gimple_set_loaded_syms): Likewise.
2218         (gimple_call_copy_skip_args): Copy the virtual operands
2219         and mark the new statement modified.
2220         * tree-ssa-structalias.c (may_alias_p): Remove.
2221         (set_uids_in_ptset): Take the alias set to prune with as
2222         parameter.  Fold in the alias test of may_alias_p.
2223         (compute_points_to_sets): Compute whether a ptr is dereferenced
2224         in a local sbitmap.
2225         (process_constraint): Deal with &ANYTHING on the lhs, reject all
2226         other ADDRESSOF constraints on the lhs.
2227         (get_constraint_for_component_ref): Assert that we don't get
2228         ADDRESSOF constraints from the base of the reference.
2229         Properly generate UNKNOWN_OFFSET for DEREF if needed.
2230         (struct variable_info): Remove collapsed_to member.
2231         (get_varinfo_fc): Remove.
2232         (new_var_info): Do not set collapsed_to.
2233         (dump_constraint): Do not follow cycles.
2234         (dump_constraint_graph): Likewise.
2235         (build_pred_graph): Likewise.
2236         (build_succ_graph): Likewise.
2237         (rewrite_constraints): Likewise.
2238         (do_simple_structure_copy): Remove.
2239         (do_rhs_deref_structure_copy): Remove.
2240         (do_lhs_deref_structure_copy): Remove.
2241         (collapse_rest_of_var): Remove.
2242         (do_structure_copy): Re-implement.
2243         (pta_stats): New global variable.
2244         (dump_pta_stats): New function.
2245         (struct constraint_expr): Make offset signed.
2246         (UNKNOWN_OFFSET): Define special value.
2247         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
2248         (solution_set_expand): New helper function split out from ...
2249         (do_sd_constraint): ... here.
2250         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
2251         (do_ds_constraint): Likewise.
2252         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
2253         and CALLUSED = *CALLUSED.
2254         (set_union_with_increment): Make inc argument signed.
2255         (type_safe): Remove.
2256         (get_constraint_for_ptr_offset): Handle unknown and negative
2257         constant offsets.
2258         (first_vi_for_offset): Handle offsets before start.  Bail
2259         out early for offsets beyond the variable extent.
2260         (first_or_preceding_vi_for_offset): New function.
2261         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
2262         Together with ESCAPED = *ESCAPED this properly computes reachability.
2263         (find_what_var_points_to): New function.
2264         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
2265         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
2266         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
2267         pt_solutions_intersect): New functions.
2268         (compute_call_used_vars): Remove.
2269         (compute_may_aliases): New main entry into PTA computation.
2270         * gimple.h (gimple_p): New typedef.
2271         (struct gimple_statement_base): Remove references_memory_p.
2272         (struct gimple_statement_with_memory_ops_base): Remove
2273         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
2274         members.
2275         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
2276         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
2277         gimple_set_references_memory): Remove.
2278         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
2279         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
2280         New functions.
2281         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
2282         (verify_expr): Allow RESULT_DECL.
2283         (gimple_duplicate_bb): Do not copy virtual operands.
2284         (gimple_duplicate_sese_region): Adjust.
2285         (gimple_duplicate_sese_tail): Likewise.
2286         (mark_virtual_ops_in_region): Remove.
2287         (move_sese_region_to_fn): Do not call it.
2288         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
2289         and pass_simple_dse.
2290         (execute_function_todo): Handle TODO_update_address_taken,
2291         call execute_update_addresses_taken for TODO_rebuild_alias.
2292         (execute_todo): Adjust.
2293         (execute_one_pass): Init dump files early.
2294         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
2295         call-clobbered.
2296         (create_general_new_stmt): Clear vops.
2297         * tree-ssa-reassoc.c (get_rank): Adjust.
2298         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
2299         symbols for renaming.
2300         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
2301         (PARAM_AVG_ALIASED_VOPS): Likewise.
2302         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
2303         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
2304         * tree-ssa-operands.c: Simplify for new virtual operand representation.
2305         (operand_build_cmp, copy_virtual_operands,
2306         create_ssa_artificial_load_stmt, add_to_addressable_set,
2307         gimple_add_to_addresses_taken): Remove public functions.
2308         (unlink_stmt_vdef): New function.
2309
2310 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
2311
2312         * config.gcc (powerpc-*-linux*): Merge variants.
2313
2314 2009-04-02  Chao-ying Fu  <fu@mips.com>
2315             James Grosbach <james.grosbach@microchip.com>
2316
2317         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
2318         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
2319         cop0_sp_offset.
2320         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
2321         keep_interrupts_masked_p, use_debug_exception_return_p.
2322         (mips_attribute_table): Add interrupt, use_shadow_register_set,
2323         keep_interrupts_masked, use_debug_exception_return.
2324         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
2325         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
2326         New functions.
2327         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
2328         (mips_print_operand): Process COP0 registers to print $0 .. $31
2329         correctly for GAS to process.
2330         (mips_interrupt_extra_call_saved_reg_p): New function.
2331         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
2332         extra registers.
2333         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2334         (mips_compute_frame_info): Add supports for interrupt context that
2335         includes doubleword accumulators and COP0 registers.
2336         (mips_for_each_saved_acc): New function.
2337         (mips_for_each_saved_gpr_and_fpr): Change the function name from
2338         mips_for_each_saved_reg.
2339         (mips_save_reg): Save accumulators.
2340         (mips_kernel_reg_p): A new for_each_rtx callback.
2341         (mips_expand_prologue): Support interrupt handlers.
2342         (mips_restore_reg): Restore accumulators.
2343         (mips_expand_epilogue): Support interrupt handlers.
2344         (mips_can_use_return_insn): Return false for interrupt handlers.
2345         (mips_epilogue_uses): New function.
2346         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
2347         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
2348         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
2349         cop0_move): New instructions.
2350         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
2351         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
2352         defines.
2353         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
2354         New defines.
2355         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
2356         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
2357         interrupt handlers, we use K0 as the temporary register.
2358         (EPILOGUE_USES): Change to a function call.
2359         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
2360         handlers, we use K0 as the temporary register.
2361         
2362         * doc/extend.texi (Function Attributes): Document interrupt,
2363         use_shadow_register_set, keep_interrupts_masked,
2364         use_debug_exception_return for MIPS attributes.
2365
2366 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
2367
2368         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
2369         Remove a number of t-files from tmake_file.
2370         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
2371         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
2372         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2373         target_prototype, not TARGET_PROTOTYPE.
2374         (LINK_OS_GNU_SPEC): Define.
2375         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
2376         and darwin-ldoubdle.c.
2377
2378 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
2379
2380         PR driver/39293
2381         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
2382         (cpp_options): Ditto.
2383         (default_compilers): Ditto.
2384         (display_help): Ditto.
2385         (process_command): Ditto.
2386         (do_spec_1): Ditto.
2387         (set_input): Use lbasename instead of duplicate code.
2388         (save_temps_prefix): New static for -save-temps=obj.
2389         (save_temps_length): Ditto.
2390         
2391         * doc/invoke.texi (-save-temps=obj): Document new variant to
2392         -save-temps switch.
2393
2394 2009-04-02  Jeff Law  <law@redhat.com>
2395
2396         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
2397         variable.
2398
2399 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
2400
2401         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
2402         * configure: Regenerated.
2403
2404 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
2405
2406         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
2407         share the argument list.
2408
2409 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
2410
2411         Merge
2412
2413         2009-02-12  Diego Novillo  <dnovillo@google.com>
2414
2415         * varpool.c (debug_varpool): New.
2416         * cgraph.h (debug_varpool): Declare.
2417
2418 2009-04-02  Jan Hubicka  <jh@suse.cz>
2419
2420         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
2421         pass.
2422
2423 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
2424
2425         * config/i386/i386.c (ix86_abi): Move initialization to ...
2426         (override_options): Here.
2427
2428 2009-04-02  Christian Bruel  <christian.bruel@st.com>
2429
2430         * config/sh/sh.c (sh_dwarf_register_span): New function.
2431         (TARGET_DWARF_REGISTER_SPAN): Define.
2432         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2433         
2434 2009-04-02  Ira Rosen  <irar@il.ibm.com>
2435
2436         PR tree-optimization/39595
2437         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of 
2438         interleaved loads group is not  greater than the SLP group size.
2439
2440 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
2441
2442         * builtins.c (is_builtin_name): New.
2443         (called_as_built_in): Use is_builtin_name.
2444         * tree.h (is_builtin_name): New.
2445         * varasm.c (incorporeal_function_p): Use is_builtin_name
2446
2447 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
2448
2449         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
2450
2451 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
2452
2453         PR c++/26693
2454         * c-decl.c (clone_underlying_type): Move this ...
2455         * c-common.c (set_underlying_type): ... here.
2456         Also, make sure the function properly sets TYPE_STUB_DECL() on
2457         the newly created typedef variant type.
2458         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
2459         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
2460         points.
2461
2462 2009-04-02  Richard Guenther  <rguenther@suse.de>
2463
2464         PR tree-optimization/37221
2465         * tree-flow.h (degenerate_phi_result): Declare.
2466         * tree-ssa-dom.c (degenerate_phi_result): Export.
2467         * tree-scalar-evolution.c (analyze_initial_condition): If
2468         the initial condition is defined by a degenerate PHI node
2469         use the degenerate value.
2470
2471 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
2472
2473         PR rtl-optimization/39588
2474         * combine.c (merge_outer_ops): Do not set the constant when this
2475         is not necessary.
2476         (simplify_shift_const_1): Do not modify it either in this case.
2477
2478 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
2479
2480         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
2481         tuning is deprecated if -mtune value is set to an Itanium1 variant.
2482
2483 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
2484
2485         PR c/29027
2486         * c-lex.c (interpret_float): Default (no suffix) is double.
2487
2488 2009-04-1  Xinliang David Li  <davidxl@google.com>
2489
2490         * config/i386/i386.c (legitimate_constant_p): Recognize
2491         all one vector constant.
2492
2493 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2494
2495         * gcc/config/vax/vax.c: Add #includes to silence warnings.
2496         Change #include order to silence two warnings.
2497
2498 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2499
2500         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
2501         (ASM_SPEC): Pass -k to the assembler for PIC code.
2502
2503 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2504
2505         * gcc/config.gcc: Add vax-*-linux* to the switch.
2506         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
2507         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
2508
2509 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2510
2511         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
2512         Use predicate macros instead of GET_CODE() == foo.
2513         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
2514         ashlsi3, rotrsi3, <unnamed>): Likewise.
2515
2516 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2517
2518         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
2519         jbbccihi, jbbccisi): Remova trailing whitespace.
2520         * gcc/config/vax/constraints.md: Likewise.
2521         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
2522         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
2523         * gcc/config/vax/predicates.md: Likewise.
2524         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
2525         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
2526         * gcc/config/vax/vax.h: Likewise.
2527         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
2528
2529 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2530
2531         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
2532         (indirectable_address_p, adjacent_operands_p): Add spaces around
2533         braces.
2534         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
2535
2536 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2537
2538         * gcc/config/vax/vax.c (legitimate_constant_address_p,
2539         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
2540         index_term_p, reg_plus_index_p, legitimate_address_p,
2541         vax_mode_dependent_address_p): Update comments to match functions
2542         modified by the recent int->bool conversion.
2543
2544 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2545
2546         * gcc/config/vax/builtins.md: Update copyright message.
2547         * gcc/config/vax/constraints.md: Likewise.
2548         * gcc/config/vax/netbsd-elf.h: Likewise.
2549         * gcc/config/vax/predicates.md: Likewise.
2550         * gcc/config/vax/vax-protos.h: Likewise.
2551         * gcc/config/vax/vax.c: Likewise.
2552         * gcc/config/vax/vax.h: Likewise.
2553         * gcc/config/vax/vax.md: Likewise.
2554         * gcc/config/vax/vax.opt: Likewise.
2555
2556 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
2557
2558         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
2559         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
2560         * gcc/config/vax/constraints.md (B, R): Likewise.
2561         * gcc/config/vax/predicates.md (external_memory_operand,
2562         nonimmediate_addsub_di_operand): Likewise.
2563         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
2564         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
2565         untyped_call): Likewise.
2566
2567 2009-04-01  Matt Thomas <matt@3am-software.com>
2568
2569         * config/vax/predicates.md: New file.
2570         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
2571         external_const_operand, nonsymbolic_operand, external_memory_operand,
2572         indirect_memory_operand, indexed_memory_operand,
2573         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
2574         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
2575         predicate.
2576         * config/vax/constraints.md: New file.
2577         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
2578         New constraint.
2579         * config/vax/builtins.md: New file.
2580         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
2581         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
2582         jbbccisi): Define.
2583         * config/vax/vax.opt (mqmath): Add option.
2584         * config/vax/vax.md (isfx): Extend with DI.
2585         (VAXintQH, VAXintQHSD): Define.
2586         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
2587         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
2588         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
2589         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
2590         (movdi): Update constraints and use vax_output_int_move().
2591         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
2592         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
2593         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
2594         nonlocal_goto): New.
2595         (mov<mode>): Extend accepted operand types.
2596         (subdi3_old): Rename from subdi3, change update constraints and use
2597         a new implementation.
2598         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
2599         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
2600         MOVE_RATIO, CLEAR_RATIO): Define.
2601         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
2602         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
2603         (PRINT_OPERAND): Redefine using a function instead of inlined code.
2604         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2605         (split_quadword_operands): Make static and really allow variable
2606         splitting.
2607         (print_operand_address): Update for PIC generation.
2608         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
2609         indexable_address_p, fixup_mathdi_operand,
2610         vax_expand_addsub_di_operands, adjacent_operands_p): New.
2611         (vax_float_literal, legitimate_constant_p,
2612         indirectable_constant_address_p, index_term_p,
2613         reg_plus_index_p): Return bool instead of int.
2614         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
2615         where needed.
2616         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
2617         generation.
2618         (vax_output_conditional_branch): Indent.
2619         (legitimate_constant_address_p, indirectable_constant_address_p,
2620         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
2621         vax_mode_dependent_address_p): Return bool instead of int, update for
2622         PIC generation.
2623         * config/vax/vax-protos.h (legitimate_constant_address_p,
2624         legitimate_constant_p, legitimate_address_p,
2625         vax_mode_dependent_address_p): Change declaration to bool.
2626         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
2627         vax_expand_addsub_di_operands, vax_output_int_subtract,
2628         vax_output_movmemsi): Declare.
2629         (split_quadword_operands, vax_float_literal): Delete declaration.
2630         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
2631         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
2632         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
2633         ASM_OUTPUT_DWARF_PCREL): Define.
2634         (ASM_SPEC): Change definition to allow PIC generation.
2635
2636 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
2637
2638         * doc/sourcebuild.texi: Update front-end requirements.
2639
2640 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2641
2642         PR target/39226
2643         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
2644         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
2645         (booldi3_internal3): Use boolean_or_operator instead of
2646         boolean_operator.
2647
2648 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
2649
2650         PR c/39605
2651         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
2652         declarator whose size is not an integer constant expression but
2653         folds to an integer constant, then treat it as a constant
2654         subsequently.
2655
2656 2009-04-01  Richard Guenther  <rguenther@suse.de>
2657
2658         * fold-const.c (fold_plusminus_mult_expr): Do not fold
2659         i * 4 + 2 to (i * 2 + 1) * 2.
2660
2661 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2662
2663         PR c/37772
2664         * c-parser.c (c_parser_asm_statement): Skip until close paren and
2665         return if c_parser_asm_string_literal returned NULL.
2666
2667 2009-04-01  Nick Clifton  <nickc@redhat.com>
2668
2669         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
2670         already defined.
2671         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
2672         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
2673         other typedefs to avoid conflicts with libgcc2.c.  Define labels
2674         to gain 16-bit bit-manipulation functions from libgcc2.c and then
2675         include it.
2676         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
2677         to gain 16-bit trapping arithmetic functions from libgcc2.c and
2678         then include it.
2679
2680 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
2681
2682         * varasm.c (default_function_rodata_section): Declare DOT as
2683         const char*.
2684
2685 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
2686             Andrey Galkin <agalkin@hypercom.com>
2687
2688         PR/39492
2689         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
2690         Make object_name unique for each process.
2691
2692 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2693
2694         PR other/39591
2695         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
2696         addressable variables in the parallel that could go out of scope while
2697         running queued tasks.
2698
2699 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
2700
2701         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
2702         (CASE_VALUES_THRESHOLD): Redefine.
2703         * config/avr/avr.c (avr_override_options): Remove initialization of
2704         avr_case_values_threshold variable.
2705         (avr_case_values_threshold): Remove variable. Add new function.
2706         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
2707         * config/avr/avr.opt (mno-tablejump): Remove option.
2708         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
2709
2710 2009-04-01  DJ Delorie  <dj@redhat.com>
2711
2712         * varasm.c (default_function_rodata_section): Don't assume
2713         anything about where the first '.' in the section name is.
2714
2715 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
2716
2717         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
2718         rs6000_emit_stack_tie.
2719
2720 2009-03-31  Ian Lance Taylor  <iant@google.com>
2721
2722         * tree-eh.c (tree_remove_unreachable_handlers): Compare
2723         gimple_code with GIMPLE_RESX, not RESX.
2724
2725 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2726
2727         * c-common.c (c_get_ident): New.
2728         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
2729
2730 2009-04-01  Ben Elliston  <bje@au.ibm.com>
2731
2732         * config/rs6000/sysv4.opt (msdata): Improve option description.
2733
2734 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
2735
2736         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
2737         (divdf3_internal_lat): Remove.
2738         (divxf3_internal_lat): Remove.
2739         (divxf3_internal_thr): Remove.
2740         (divxf): Use divxf3_internal.
2741         * config/ia64/div.md (divsf3_internal_lat): New.
2742         (divdf3_internal_lat): New.
2743         (divxf3_internal): New.
2744
2745 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2746
2747         PR c/448
2748         * Makefile.in (USE_GCC_STDINT): Define.
2749         (stmp-int-hdrs): Install stdint.h if applicable.
2750         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
2751         if known.
2752         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
2753         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
2754         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
2755         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2756         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2757         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2758         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2759         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2760         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
2761         (c_common_nodes_and_builtins): Initialize
2762         underlying_wchar_type_node.  Do not initialize
2763         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
2764         nodes for new types.
2765         (c_stddef_cpp_builtins): Define macros for new types.
2766         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
2767         Remove.
2768         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
2769         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
2770         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
2771         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
2772         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
2773         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
2774         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
2775         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
2776         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
2777         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
2778         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
2779         int16_type_node, int32_type_node, int64_type_node,
2780         uint8_type_node, uint16_type_node, c_uint32_type_node,
2781         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
2782         int_least32_type_node, int_least64_type_node,
2783         uint_least8_type_node, uint_least16_type_node,
2784         uint_least32_type_node, uint_least64_type_node,
2785         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
2786         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
2787         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
2788         uintptr_type_node): Define.
2789         * c-cppbuiltin.c (builtin_define_constants,
2790         builtin_define_type_minmax): New.
2791         (builtin_define_stdint_macros): Define more macros.
2792         (c_cpp_builtins): Define more limit macros.
2793         (type_suffix): New.
2794         (builtin_define_type_max): Define in terms of
2795         builtin_define_type_minmax.  Remove is_long parameter.  All
2796         callers changed.
2797         * config.gcc (use_gcc_stdint): Define.
2798         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
2799         Add newlib-stdint.h for generic targets.
2800         * config/glibc-stdint.h, config/newlib-stdint.h,
2801         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
2802         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
2803         * config/score/score.h (UINTPTR_TYPE): Define.
2804         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
2805         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
2806         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2807         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2808         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2809         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2810         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2811         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
2812         * config/spu/spu.h (STDINT_LONG32): Define.
2813         * configure.ac (use_gcc_stdint): Substitute.
2814         * configure: Regenerate.
2815         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
2816         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
2817         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
2818         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
2819         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
2820         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
2821         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
2822         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
2823         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
2824         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
2825         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
2826         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
2827         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
2828         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
2829         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
2830         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
2831         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
2832         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
2833         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
2834         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
2835         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
2836         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
2837         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
2838         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2839         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2840         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2841         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2842         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2843         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
2844
2845 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
2846
2847         * loop-iv.c (suitable_set_for_replacement): Renamed from
2848         simplify_using_assignment; changed to return bool and to accept new
2849         args DEST and SRC.  Return true iff we find a source/destination pair
2850         that can be used to make a replacement, and fill SRC and DEST if so.
2851         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
2852         changed.
2853         (simplify_using_initial_values): Deal with altered regs here and track
2854         more precisely the effect they have on the validity of our expression.
2855
2856         * loop-iv.c (simplify_using_condition): A condition of the form
2857         (EQ REG CONST) can be used to simply make a substitution.
2858         (simplify_using_initial_values): Keep track of conditions we have seen
2859         and keep using them to simplify new expressions, while applying the
2860         same substitutions to them as to the expression.
2861
2862         * simplify-rtx.c (simplify_relational_operation_1): Simplify
2863         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
2864         GEU/LTU reversed.
2865
2866         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
2867         changed.  Use this when trying to improve the upper bound.
2868         Generate the comparison by using simplify_gen_relational.
2869
2870         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
2871
2872         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
2873         functions.
2874         (simplify_using_assignment, simplify_using_initial_values): Call 
2875         replace_in_expr to make replacements.  Call replace_single_def_regs
2876         once on the initial version of the expression.
2877
2878 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2879
2880         PR target/27237
2881         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2882         
2883 2009-03-31  Richard Guenther  <rguenther@suse.de>
2884
2885         PR middle-end/31029
2886         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
2887         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
2888
2889 2009-03-31  Richard Guenther  <rguenther@suse.de>
2890
2891         * tree.h (div_if_zero_remainder): Declare.
2892         * fold-const.c (div_if_zero_remainder): Export.
2893         * tree-ssa-forwprop.c
2894         (forward_propagate_addr_into_variable_array_index): Handle
2895         constant array index addition outside of the variable index.
2896
2897 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2898
2899         PR target/39592
2900         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
2901         define_splits, floatunssi<mode>2): Require x87 conversions from
2902         DImode to be permitted.
2903
2904 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2905
2906         PR preprocessor/15638
2907         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
2908
2909 2009-03-31  Richard Guenther  <rguenther@suse.de>
2910
2911         PR middle-end/23401
2912         PR middle-end/27810
2913         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
2914         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
2915         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
2916         a separate statement.
2917         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
2918         (lookup_tmp_var): Likewise.
2919         (is_gimple_formal_tmp_or_call_rhs): Remove.
2920         (is_gimple_reg_or_call_rhs): Rename to ...
2921         (is_gimple_reg_rhs_or_call): ... this.
2922         (is_gimple_mem_or_call_rhs): Rename to ...
2923         (is_gimple_mem_rhs_or_call): ... this.
2924         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
2925         DECL_GIMPLE_REG_P only if is_formal is true.
2926         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
2927         for non-proper post-modify expression gimplification.
2928         (gimplify_self_mod_expr): For post-modify expressions gimplify
2929         the lvalue to a minimal lvalue.
2930         (rhs_predicate_for): Remove formal temp case.
2931         (gimplify_modify_expr_rhs): Likewise.
2932         (gimplify_addr_expr): Use is_gimple_reg.
2933         (gimplify_expr): Remove formal temp cases.
2934         (gimple_regimplify_operands): Likewise.
2935         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
2936         and FILTER_EXPR like constants.
2937         * gimple.c (walk_gimple_op): Fix val_only initialization, use
2938         is_gimple_reg.
2939         (is_gimple_formal_tmp_rhs): Remove.
2940         (is_gimple_reg_rhs): Remove special casing.
2941         (is_gimple_mem_rhs): Fix.
2942         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
2943         (is_gimple_formal_tmp_var): Remove.
2944         (is_gimple_formal_tmp_reg): Likewise.
2945         (is_gimple_min_lval): Allow invariant component ref parts.
2946         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
2947         is_gimple_formal_tmp_reg): Remove declarations.
2948         * tree-cfg.c (verify_expr): Verify that variables with address
2949         taken do not have DECL_GIMPLE_REG_P set.
2950         * tree-mudflap.c (mf_build_check_statement_for): Use
2951         force_gimple_operand instead of gimplify_expr.
2952
2953 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
2954
2955         * modulo-sched.c (sms_schedule_by_order): Pass the actual
2956         schedulable rows to compute_split_row.
2957
2958 2009-03-31  Ben Elliston  <bje@au.ibm.com>
2959
2960         PR target/31635
2961         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
2962         OPT_mvrsave.
2963
2964 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
2965
2966         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
2967         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
2968         * configure: Regenerate.
2969         * config.in: Regenerate.
2970         * config/rs6000/rs6000.opt (mtls-markers): Add.
2971         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
2972         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
2973         (tls_ld_aix, tls_ld_sysv): Likewise.
2974         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
2975         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
2976
2977 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
2978
2979         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
2980
2981 2009-03-30  Jan Hubicka  <jh@suse.cz>
2982
2983         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
2984         out of RESX.
2985         (tree_remove_unreachable_handlers): Cleanup EH predecestor
2986         detection and label handling.
2987
2988 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2989
2990         * ira-int.h (ira_allocno): Rename left_conflicts_num to
2991         left_conflicts_size.
2992         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
2993         ALLOCNO_LEFT_CONFLICTS_SIZE.
2994
2995         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
2996         remove_allocno_from_bucket_and_push,
2997         allocno_spill_priority_compare, push_allocnos_to_stack,
2998         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
2999         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
3000         (setup_allocno_left_conflicts_num): Ditto.  Rename to
3001         setup_allocno_left_conflicts_size.
3002         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
3003         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
3004         setup_allocno_left_conflicts_size instead of
3005         setup_allocno_left_conflicts_num.
3006
3007         * ira-build.c (ira_create_allocno): Use
3008         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
3009         ALLOCNO_LEFT_CONFLICTS_NUM.
3010                 
3011 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3012
3013         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
3014         instead of DF_LR_OUT.
3015
3016         * ira-lives.c (process_bb_node_lives): Ditto.
3017
3018         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
3019         instead of DF_LR_{OUT,IN}.
3020
3021         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
3022
3023         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
3024
3025 2009-03-30  Jan Hubicka  <jh@suse.cz>
3026
3027         * except.c (label_to_region_map): Fix thinko.
3028
3029 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
3030
3031         PR middle-end/38237
3032         * tree.h (tree_find_value): New declaration.
3033         * tree.c (tree_find_value): New function.
3034         * varasm.c (assemble_external): Avoid duplicate entries on lists.
3035
3036 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
3037
3038         PR debug/39563
3039         * c-decl.c (struct c_binding): Add locus field.
3040         (bind): Add locus argument, set locus field from it.
3041         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
3042         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
3043         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
3044         implicitly_declare, undeclared_variable, lookup_label,
3045         declare_label, c_make_fname_decl, c_builtin_function,
3046         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
3047         bind callers.
3048
3049 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3050
3051         PR target/38781
3052         * config/i386/i386.c (classify_argument): Check total size of
3053         structure.
3054
3055 2009-03-30  Martin Jambor  <mjambor@suse.cz>
3056
3057         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
3058         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
3059         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
3060         respectively.
3061
3062         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
3063         seen_variable_array_ref while also traversing a union.
3064
3065         * tree-inline.c (optimize_inline_calls): Do not call
3066         cgraph_node_remove_callees.
3067         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
3068         (pass_remove_cgraph_callee_edges): New variable.
3069         * passes.c (init_optimization_passes): Add
3070         pass_remove_cgraph_callee_edges after early inlining and before all
3071         late intraprocedural passes.
3072
3073         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
3074
3075 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
3076
3077         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
3078         Fix typos in names.
3079
3080 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
3081
3082         * combine.c (simplify_comparison): Use have_insn_for.
3083         * dojump.c (do_jump): Likewise.
3084
3085 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
3086
3087         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
3088         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
3089         sparc_compare_op0 like sparc_compare_emitted used to be handled.
3090         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
3091         instead of sparc_compare_emitted.
3092         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
3093         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
3094         instead of sparc_compare_emitted.
3095
3096 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
3097
3098         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
3099         enter/exit cfglayout mode.
3100         (pass_partition_block): Require it.
3101         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
3102         (combine_instructions): Track basic blocks instead of labels.
3103         (update_cfg_for_uncondjump): New.
3104         (try_combine): Use it.  Update jumps after rescanning.
3105         (pass_combine): Require PROP_cfglayout.
3106         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
3107
3108 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
3109
3110         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
3111         Provide/destroy PROP_cfglayout respectively.
3112         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
3113         * tree-pass.h (PROP_cfglayout): New.
3114
3115 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
3116
3117         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
3118         fold_convert_const_fixed_from_fixed,
3119         fold_convert_const_fixed_from_int,
3120         fold_convert_const_fixed_from_real, fold_negate_const): Do not
3121         set TREE_CONSTANT_OVERFLOW.
3122         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
3123         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
3124
3125 2009-03-30  Ira Rosen  <irar@il.ibm.com>
3126
3127         * tree-vect-loop-manip.c: New file.
3128         * tree-vectorizer.c: Update documentation and included files.
3129         (vect_loop_location): Make extern.
3130         (rename_use_op): Move to tree-vect-loop-manip.c
3131         (rename_variables_in_bb, rename_variables_in_loop, 
3132         slpeel_update_phis_for_duplicate_loop, 
3133         slpeel_update_phi_nodes_for_guard1,
3134         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
3135         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
3136         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
3137         set_prologue_iterations, slpeel_tree_peel_loop_to_edge, 
3138         find_loop_location): Likewise.
3139         (new_stmt_vec_info): Move to tree-vect-stmts.c.
3140         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
3141         get_vectype_for_scalar_type, vect_is_simple_use,
3142         supportable_widening_operation, supportable_narrowing_operation):
3143         Likewise.
3144         (bb_in_loop_p): Move to tree-vect-loop.c.
3145         (new_loop_vec_info, destroy_loop_vec_info, 
3146         reduction_code_for_scalar_code, report_vect_op, 
3147         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
3148         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
3149         (vect_supportable_dr_alignment): Likewise.
3150         * tree-vectorizer.h (tree-data-ref.h): Include.
3151         (vect_loop_location): Declare.
3152         Reorganize function declarations according to the new file structure.
3153         * tree-vect-loop.c: New file.
3154         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c, 
3155         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
3156         * tree-vect-data-refs.c: New file.
3157         * tree-vect-patterns.c (timevar.h): Don't include.
3158         * tree-vect-stmts.c: New file.
3159         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c, 
3160         tree-vect-slp.c, tree-vect-loop.c.
3161         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and 
3162         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o, 
3163         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
3164         (tree-vect-analyze.o): Remove.
3165         (tree-vect-transform.o): Likewise.
3166         (tree-vect-data-refs.o): Add rule.
3167         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o, 
3168         tree-vect-slp.o): Likewise.
3169         (tree-vect-patterns.o): Remove redundant dependencies.
3170         (tree-vectorizer.o): Likewise.
3171         * tree-vect-slp.c: New file.
3172
3173 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3174
3175         * optc-gen.awk: Warn if an option flag has multiple different
3176         help strings.
3177
3178 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
3179
3180         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
3181         -floop-block): Document dependences on PPL, CLooG and Graphite.
3182
3183 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
3184
3185         PR rtl-optimization/323
3186         * c-common.c (c_fully_fold, convert_and_check,
3187         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
3188         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
3189         * c-common.def (EXCESS_PRECISION_EXPR): New.
3190         * c-cppbuiltin.c (builtin_define_float_constants): Define
3191         constants with enough digits for long double.
3192         * c-lex.c (interpret_float): Interpret constant with excess
3193         precision where appropriate.
3194         * c-opts.c (c_common_post_options): Set
3195         flag_excess_precision_cmdline.  Give an error for
3196         -fexcess-precision=standard for C++ for processors where the
3197         option is significant.
3198         * c-parser.c (c_parser_conditional_expression): Handle excess
3199         precision in condition.
3200         * c-typeck.c (convert_arguments): Handle arguments with excess
3201         precision.
3202         (build_unary_op): Move excess precision outside operation.
3203         (build_conditional_expr): Likewise.
3204         (build_compound_expr): Likewise.
3205         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
3206         (build_modify_expr): Handle excess precision in RHS.
3207         (convert_for_assignment): Handle excess precision in converted
3208         value.
3209         (digest_init, output_init_element, process_init_element): Handle
3210         excess precision in initializer.
3211         (c_finish_return): Handle excess precision in return value.
3212         (build_binary_op): Handle excess precision in operands and add
3213         excess precision as needed for operation.
3214         * common.opt (-fexcess-precision=): New option.
3215         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
3216         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
3217         For standard excess precision, output explicit conversion to and
3218         truncation from XFmode.
3219         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
3220         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
3221         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
3222         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
3223         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
3224         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
3225         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
3226         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
3227         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
3228         define_splits, sqrt<mode>2): Disable where appropriate for
3229         standard excess precision.
3230         * convert.c (convert_to_real): Do not shorten arithmetic to type
3231         for which excess precision would be used.
3232         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
3233         * doc/invoke.texi (-fexcess-precision=): Document option.
3234         (-mfpmath=): Correct index entry.
3235         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
3236         flag_excess_precision): New.
3237         * langhooks.c (lhd_post_options): Set
3238         flag_excess_precision_cmdline.
3239         * opts.c (common_handle_option): Handle -fexcess-precision=.
3240         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
3241         init_excess_precision): New.
3242         (lang_dependent_init_target): Call init_excess_precision.
3243         * tree.c (excess_precision_type): New.
3244         * tree.h (excess_precision_type): Declare.
3245
3246 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
3247
3248         PR c/35235
3249         * c-typeck.c (build_component_ref): Do not copy qualifiers from
3250         non-lvalue to component.
3251
3252 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
3253
3254         PR preprocessor/34695
3255         * Makefile.in (c-opts.o): Depend on c-tree.h.
3256         * c-common.c: Move down include of diagnostic.h.
3257         (done_lexing, c_cpp_error): New.
3258         * c-common.h (done_lexing): Declare.
3259         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
3260         (parse_in).
3261         * c-opts.c: Include c-tree.h.
3262         (c_common_init_options): Set preprocessor error callback.
3263         (c_common_handle_option): Do not set preprocessor
3264         inhibit_warnings, warnings_are_errors, warn_system_headers,
3265         pedantic_errors or inhibit_warnings flags.
3266         (c_common_post_options): Do not check cpp_errors (parse_in).
3267         (c_common_finish): Do not output dependencies if there were
3268         errors.  Do not check return value of cpp_finish.
3269         * c-ppoutput.c (pp_file_change): Set input_location.
3270         * c-tree.h (c_cpp_error): Declare.
3271         * diagnostic.c (diagnostic_set_info_translated): Also initialize
3272         override_column.
3273         (diagnostic_build_prefix): Check override_column.
3274         * diagnostic.h (diagnostic_info): Add override_column field.
3275         (diagnostic_override_column): Define.
3276
3277 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
3278
3279         * c-common.c (c_expand_expr, c_staticp): Remove.
3280         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
3281         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
3282         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
3283         * c-gimplify.c (gimplify_compound_literal_expr,
3284         optimize_compound_literals_in_ctor): Remove.
3285         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
3286         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
3287         * c-semantics.c (emit_local_var): Remove.
3288
3289         * langhooks-def.h (lhd_expand_expr): Remove.
3290         * langhooks.c (lhd_expand_expr): Remove.
3291         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
3292
3293         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
3294         handling from c-semantics.c; don't call into langhook.
3295         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
3296         * gimplify.c (gimplify_compound_literal_expr,
3297         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
3298         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
3299         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
3300         as was done in c-gimplify.c.
3301         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
3302         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
3303         Move from c-common.h.
3304         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
3305
3306         * tree.c (staticp): Do not call langhook.
3307         * langhooks.c (lhd_staticp): Delete.
3308         * langhooks-def.h (lhd_staticp): Delete prototype.
3309         (LANG_HOOKS_STATICP): Delete.
3310         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
3311
3312         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
3313         instead of DECL_STMTs.
3314
3315 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
3316
3317         PR c/456
3318         PR c/5675
3319         PR c/19976
3320         PR c/29116
3321         PR c/31871
3322         PR c/35198
3323         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
3324         void_type_node.
3325         (fold_call_expr): Return a NOP_EXPR from folding rather than the
3326         contained expression.
3327         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
3328         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
3329         conditional expressions for C.
3330         (decl_constant_value_for_optimization): Move from
3331         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
3332         whether optimizing and that the expression is a VAR_DECL not of
3333         array type instead of doing such checks in the caller.  Do not
3334         check pedantic.  Call gcc_unreachable for C++.
3335         * c-common.def (C_MAYBE_CONST_EXPR): New.
3336         * c-common.h (c_fully_fold, c_save_expr,
3337         decl_constant_value_for_optimization): New prototypes.
3338         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
3339         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
3340         EXPR_INT_CONST_OPERANDS): Define.
3341         * c-convert.c (convert): Strip nops from expression.
3342         * c-decl.c (groktypename): Take extra parameters expr and
3343         expr_const_operands.  Update call to grokdeclarator.
3344         (start_decl): Update call to grokdeclarator.  Add statement for
3345         expressions used in type of decl.
3346         (grokparm): Update call to grokdeclarator.
3347         (push_parm_decl): Update call to grokdeclarator.
3348         (build_compound_literal): Add parameter non_const and build a
3349         C_MAYBE_COSNT_EXPR if applicable.
3350         (grokdeclarator): Take extra parameters expr and
3351         expr_const_operands.  Track expressions used in declaration
3352         specifiers and declarators.  Fold array sizes and track whether
3353         they are constant expressions and whether they are integer
3354         constant expressions.
3355         (parser_xref_tag): Set expr and expr_const_operands fields in
3356         return value.
3357         (grokfield): Update call to grokdeclarator.
3358         (start_function): Update call to grokdeclarator.
3359         (build_null_declspecs): Set expr and expr_const_operands fields in
3360         return value.
3361         (declspecs_add_type): Handle expressions in typeof specifiers.
3362         * c-parser.c (c_parser_declspecs): Set expr and
3363         expr_const_operands fields for declaration specifiers.
3364         (c_parser_enum_specifier): Likewise.
3365         (c_parser_struct_or_union_specifier): Likewise.
3366         (c_parser_typeof_specifier): Likewise.  Update call to
3367         groktypename.  Fold expression as needed.  Return expressions with
3368         type instead of adding statements.
3369         (c_parser_attributes): Update calls to c_parser_expr_list.
3370         (c_parser_statement_after_labels): Fold expression before passing
3371         to objc_build_throw_stmt.
3372         (c_parser_condition): Fold expression.
3373         (c_parser_asm_operands): Fold expression.
3374         (c_parser_conditional_expression): Use c_save_expr.  Update call
3375         to build_conditional_expr.
3376         (c_parser_alignof_expression): Update call to groktypename.
3377         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
3378         original_code.  Fold expression argument of va_arg.  Create
3379         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
3380         argument to va_arg.  Update calls to groktypename.  Fold array
3381         index for offsetof.  Verify that first argument to
3382         __builtin_choose_expr has integer type.
3383         (c_parser_postfix_expression_after_paren_type): Update calls to
3384         groktypename and build_compound_literal.  Handle expressions with
3385         side effects in type name.
3386         (c_parser_postfix_expression_after_primary): Update call to
3387         c_parser_expr_list.  Set original_code for calls to
3388         __builtin_constant_p.
3389         (c_parser_expr_list): Take extra parameter fold_p.  Fold
3390         expressions if requested.
3391         (c_parser_objc_type_name): Update call to groktypename.
3392         (c_parser_objc_synchronized_statement): Fold expression.
3393         (c_parser_objc_receiver): Fold expression.
3394         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
3395         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
3396         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
3397         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
3398         (struct c_typespec): Add elements expr and expr_const_operands.
3399         (struct c_declspecs): Add elements expr and expr_const_operands.
3400         (groktypename, build_conditional_expr, build_compound_literal):
3401         Update prototypes.
3402         (in_late_binary_op): Declare.
3403         * c-typeck.c (note_integer_operands): New function.
3404         (in_late_binary_op): New variable.
3405         (decl_constant_value_for_broken_optimization): Move to c-common.c
3406         and rename to decl_constant_value_for_optimization.
3407         (default_function_array_conversion): Do not strip nops.
3408         (default_conversion): Do not call
3409         decl_constant_value_for_broken_optimization.
3410         (build_array_ref): Do not fold result.
3411         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
3412         result when operand is a VLA.
3413         (c_expr_sizeof_type): Update call to groktypename.  Handle
3414         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
3415         result when operand names a VLA type.
3416         (build_function_call): Update call to build_compound_literal.
3417         Only fold result for calls to __builtin_* functions.  Strip
3418         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
3419         the function designator.
3420         (convert_arguments): Fold arguments.  Update call to
3421         convert_for_assignment.
3422         (build_unary_op): Handle increment and decrement of
3423         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
3424         decrement earlier.  Fold operand of increment and decrement.
3425         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
3426         built for integer operand.  Wrap returns that are INTEGER_CSTs
3427         without being integer constant expressions or that have integer
3428         constant operands without being INTEGER_CSTs.
3429         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
3430         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
3431         result is an integer constant expression or can be used in
3432         unevaluated parts of one and avoid folding and wrap as
3433         appropriate.  Fold operands before possibly doing -Wsign-compare
3434         warnings.
3435         (build_compound_expr): Wrap result for C99 if operands can be used
3436         in integer constant expressions.
3437         (build_c_cast): Update call to digest_init.  Do not ignore
3438         overflow from casting floating-point constants to integers.  Wrap
3439         results that could be confused with integer constant expressions,
3440         null pointer constants or floating-point constants.
3441         (c_cast_expr): Update call to groktypename.  Handle expressions
3442         included in type name.
3443         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
3444         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
3445         Update calls to convert_for_assignment.
3446         (convert_for_assignment): Take new parameter
3447         null_pointer_constant.  Do not strip nops or call
3448         decl_constant_value_for_broken_optimization.  Set
3449         in_late_binary_op for conversions to boolean.
3450         (store_init_value): Update call to digest_init.
3451         (digest_init): Take new parameter null_pointer_constant.  Do not
3452         call decl_constant_value_for_broken_optimization.  pedwarn for
3453         initializers not constant expressions.  Update calls to
3454         convert_for_assignment.
3455         (constructor_nonconst): New.
3456         (struct constructor_stack): Add nonconst element.
3457         (really_start_incremental_init, push_init_level, pop_init_level):
3458         Handle constructor_nonconst and nonconst element.
3459         (set_init_index): Call constant_expression_warning for array
3460         designators.
3461         (output_init_element): Fold value.  Set constructor_nonconst as
3462         applicable.  pedwarn for initializers not constant expressions.
3463         Update call to digest_init.  Call constant_expression_warning
3464         where constant initializers are required.
3465         (process_init_element): Use c_save_expr.
3466         (c_finish_goto_ptr): Fold expression.
3467         (c_finish_return): Fold return value.  Update call to
3468         convert_for_assignment.
3469         (c_start_case): Fold switch expression.
3470         (c_process_expr_stmt): Fold expression.
3471         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
3472         ensure statement expression is not evaluated in constant expression.
3473         (build_binary_op): Track whether results are integer constant
3474         expressions or may occur in such, disable folding and wrap results
3475         as applicable.  Fold operands for -Wsign-compare warnings unless
3476         in_late_binary_op.
3477         (c_objc_common_truthvalue_conversion): Handle results folded to
3478         integer constants that are not integer constant expressions.
3479         * doc/extend.texi: Document when typeof operands are evaluated,
3480         that condition of __builtin_choose_expr is an integer constant
3481         expression, and more about use of __builtin_constant_p in
3482         initializers.
3483
3484 2009-03-29  Richard Guenther  <rguenther@suse.de>
3485
3486         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
3487         propagate addresses of array references.
3488
3489 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
3490
3491         * regmove.c (perhaps_ends_bb_p): Remove.
3492         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
3493         from INSN and check that the main loop stays within that basic block.
3494         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
3495         (regmove_forward_pass): Split out from regmove_optimize.  Use
3496         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
3497         (regmove_backward_pass): Split out from regmove_optimize.  Use
3498         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
3499         (regmove_optimize): Simplify.
3500
3501 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
3502
3503         PR target/39545
3504         * config/i386/i386.c (classify_argument): Ignore flexible array
3505         member in struct and warn ABI change.
3506
3507 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
3508
3509         * config/i386/i386-protos.h (ix86_agi_dependent): New.
3510
3511         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
3512         (ix86_adjust_cost): Updated.
3513
3514 2009-03-29  Jan Hubicka  <jh@suse.cz>
3515
3516         PR middle-end/28850
3517         * tree-pass.h (pass_cleanup_eh): New function.
3518         (remove_unreachable_regions): Break code handling RTL
3519         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
3520         that can not be reached by runtime.
3521         (can_be_reached_by_runtime): New function.
3522         (label_to_region_map): New function.
3523         (num_eh_regions): New function.
3524         (rtl_remove_unreachable_regions): New function.
3525         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
3526         (remove_eh_region): New function.
3527         * except.h: Include sbitmap and vecprim.
3528         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
3529         num_eh_regions): Declare.
3530         * passes.c (init_optimization_passes): Schedule cleanup_eh.
3531         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
3532         * tree-eh.c (tree_remove_unreachable_handlers): New function.
3533         (tree_empty_eh_handler_p): New function.
3534         (cleanup_empty_eh): New function.
3535         (cleanup_eh): New function.
3536         (pass_cleanup_eh): New function.
3537
3538 2009-03-29  Jan Hubicka  <jh@suse.cz>
3539
3540         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
3541         for removed regions.
3542
3543 2009-03-29  Jan Hubicka  <jh@suse.cz>
3544
3545         * except.c (dump_eh_tree): Dump all datastructures.
3546
3547 2009-03-29  Jan Hubicka  <jh@suse.cz>
3548
3549         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
3550         (duplicate_eh_regions_1): Likewise.
3551         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
3552         vector; call EH verification.
3553         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
3554         Be ready for region being removed.
3555
3556 2009-03-29  Jan Hubicka  <jh@suse.cz>
3557
3558         * bitmap.c (bitmap_last_set_bit): New function.
3559         * bitmap.h (bitmap_last_set_bit): Declare.
3560
3561 2009-03-29  David Ayers  <ayers@fsfe.org>
3562
3563         PR objc/27377
3564         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
3565         by calling objc_compare_types and surpress warnings about
3566         incompatible C pointers that are compatible ObjC pointers.
3567         
3568 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
3569
3570         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
3571         call initialize_inline_failed.
3572         (initialize_inline_failed): Move it from here ...
3573         * cgraph.c (initialize_inline_failed): ... to here.
3574         (cgraph_create_edge): Call initialize_inline_failed rather than
3575         setting inline_failed directly.
3576
3577 2009-03-29  Ben Elliston  <bje@au.ibm.com>
3578
3579         PR target/32542
3580         * sysv4.opt (msdata): Improve comment.
3581         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
3582         * sysv4.h (SVR4_ASM_SPEC): Likewise.
3583
3584 2009-03-29  Ben Elliston  <bje@au.ibm.com>
3585
3586         PR target/30451
3587         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
3588         load and store attributes.
3589
3590 2009-03-29  Ben Elliston  <bje@au.ibm.com>
3591
3592         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
3593         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
3594         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
3595         * doc/extend.texi (X86 Built-in Functions): Add index entries for
3596         __builtin_infq and __builtin_huge_valq.
3597
3598 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
3599
3600         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
3601         atmega8m1 devices.
3602         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3603         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
3604
3605 2009-03-28  Xinliang David Li  <davidxl@google.com>
3606
3607         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support. 
3608         (do_dbg_cnt): New function.
3609
3610 2009-03-28  Jan Hubicka  <jh@suse.cz>
3611
3612         Merge from pretty-ipa:
3613
3614         2009-03-27  Jan Hubicka  <jh@suse.cz>
3615
3616         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
3617         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
3618         * passes.c (function_called_by_processed_nodes_p): New.
3619         * ipa-pure-const.c (check_call): Fix handling of operands.
3620         (analyze_function): Dump debug output for skipped bodies.
3621         (local_pure_const): Use function_called_by_processed_nodes_p.
3622         * dwarf2out.c (reference_to_unused): Use output.
3623         * passes.c (do_per_function_toporder): Likewise.
3624
3625         2008-11-12  Jan Hubicka  <jh@suse.cz>
3626
3627         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
3628         * ipa-pure-const.c (funct_state_d): Add can throw field; make
3629         state_set_in_source enum
3630         (check_decl): Ignore memory tags; do not set fake looping flags;
3631         dump diagnostics.
3632         (check_operand, check_tree, check_rhs_var, check_lhs_var,
3633         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
3634         (check_call, analyze_function): Rewrite.
3635         (check_stmt): New.
3636         (add_new_function): Update call of analyze_function.
3637         (generate_summary): Add call of analyze_function.
3638         (propagate): Propagate can_throw; handle state_set_in_source correctly.
3639         (local_pure_const): New function.
3640         (pass_local_pure_const): New pass.
3641         * ipa-inline.c (inline_transform): Set after_inlining.
3642         * tree-eh.c (stmt_can_throw_external): New.
3643         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
3644         work with aliasing built.
3645         * tree-flow.h (stmt_can_throw_external): New.
3646         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
3647         and local pure/const pass in early and late optimization queue.
3648
3649 2009-03-28  Martin Jambor  <mjambor@suse.cz>
3650
3651         * fold-const.c (get_pointer_modulus_and_residue): New parameter
3652         allow_func_align.
3653         (fold_binary): Allow function decl aligment consideration is the
3654         second argument is integer constant one.
3655         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
3656         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
3657         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
3658
3659 2009-03-28  Jan Hubicka  <jh@suse.cz>
3660
3661         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
3662         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
3663         * function.h (rtl_data): Add nothrow flag.
3664         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
3665         set DECL_NOTHROW for AVAILABLE functions.
3666
3667 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
3668
3669         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
3670         following vector keyword has expansion starting with pixel or bool
3671         keyword, expand vector to __vector and pixel or bool to __pixel or
3672         __bool.
3673
3674         PR c++/39554
3675         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
3676         warn_if_disallowed_function_p): Removed.
3677         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
3678         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
3679         warning_if_disallowed_function_p.
3680         * flags.h (warn_if_disallowed_function_p,
3681         warn_disallowed_functions): Removed.
3682         * common.opt (Wdisallowed-function-list=): Removed.
3683         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
3684
3685 2009-03-28  Richard Guenther  <rguenther@suse.de>
3686
3687         PR tree-optimization/38723
3688         * tree-ssa-pre.c (compute_avail): Add all default definitions to
3689         the entry block.
3690
3691 2009-03-28  Jan Hubicka  <jh@suse.cz>
3692
3693         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
3694         test introduced by my previous patch.
3695
3696 2009-03-28  Richard Guenther  <rguenther@suse.de>
3697
3698         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
3699         the PHIs value undefined.
3700
3701 2009-03-28  Jan Hubicka  <jh@suse.cz>
3702
3703         * tree-pass.h (pass_fixup_cfg): New pass.
3704         * ipa-inline.c (inline_transform): Set
3705         always_inline_functions_inlined/after_inlining.
3706         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
3707         (pass_fixup_cfg): New pass.
3708         * passes.c (init_optimization_passes): Add fixup_cfg.
3709
3710 2009-03-28  Richard Guenther  <rguenther@suse.de>
3711
3712         PR tree-optimization/38458
3713         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
3714         argument use the arguments copy-of value.
3715
3716 2009-03-28  Richard Guenther  <rguenther@suse.de>
3717
3718         PR tree-optimization/38180
3719         * tree-ssa-ccp.c (get_default_value): Simplify.
3720         (likely_value): Likewise.
3721         (surely_varying_stmt_p): Properly handle VOP case.
3722         (ccp_initialize): Likewise.
3723         (ccp_fold): Handle propagating through *&.
3724         (fold_const_aggregate_ref): Also handle decls.
3725
3726 2009-03-28  Jan Hubicka  <jh@suse.cz>
3727
3728         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
3729         * cgraph.h (cgraph_node): Likewise.
3730         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
3731         (cgraph_reset_node): Use process flag.
3732         (cgraph_mark_functions_to_output): Likewise.
3733         (cgraph_expand_function): Likewise.
3734         (cgraph_expand_all_functions): Likewise.
3735         (cgraph_output_in_order): Likewise.
3736         * dwarf2out.c (reference_to_unused): Likewise.
3737         * passes.c do_per_function_toporder): Likewise.
3738
3739 2009-03-28  Jan Hubicka  <jh@suse.cz>
3740
3741         Bring from lto-branch:
3742
3743         2008-09-03  Doug Kwan  <dougkwan@google.com>
3744
3745         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
3746         enums instead of reason strings.
3747         * cgraph.c (cgraph_create_edge): Same.
3748         (cgraph_inline_failed_string): New function.
3749         * cgraph.h (cgraph_inline_failed_t): New enum type.
3750         (cgraph_inline_failed_string): New prototype.
3751         (struct cgraph_edge): Change type of INLINED_FAILED from constant
3752         char pointer to cgraph_inline_failed_t.
3753         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
3754         (cgraph_default_inline_p): Ditto.
3755         * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
3756         to cgraph_inline_failed_t pointer.
3757         * cif-code.def: New file.
3758         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
3759         reason string.
3760         (cgraph_check_inline_limits): Change type of REASON to pointer to
3761         cgraph_inline_failed_t.  Replace reason strings with enums.
3762         (cgraph_default_inline_p): Ditto.
3763         (cgraph_recursive_inlining_p): Ditto.
3764         (update_caller_keys): Change type of FAILED_REASON to
3765         cgraph_inline_failed_t.
3766         (cgraph_set_inline_failed): Change type of REASON to pointer to
3767         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
3768         convert enums to strings for text output.
3769         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
3770         to be of type cgraph_inline_failed_t.  Replace reason strings with
3771         enums.  Call cgraph_inline_failed_string to covert enums
3772         to strings for text output.
3773         (cgraph_decide_inlining): Replace reason strings with enums.
3774         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
3775         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
3776         for text output.
3777         * tree-inline.c (expand_call_inline): Change type of REASON
3778         to cgraph_inline_failed_t.  Replace reason strings with enums.
3779         Call cgraph_inline_failed_string for text output.
3780         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
3781         (cgraph.o): Ditto.
3782
3783 2009-03-28  Jan Hubicka  <jh@suse.cz>
3784
3785         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
3786         cgraph_clone_node): Remove master clone handling.
3787         (cgraph_is_master_clone, cgraph_master_clone): Remove.
3788         * cgraph.h (master_clone): Remove.
3789         (cgraph_is_master_clone, cgraph_master_clone): Remove.
3790         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
3791         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3792
3793 2009-03-28  Jan Hubicka  <jh@suse.cz>
3794
3795         * cgraph.c (cgraph_function_body_availability): Functions declared
3796         inline are always safe to assume that it is not going to be replaced.
3797
3798 2009-03-28  Richard Guenther  <rguenther@suse.de>
3799
3800         PR tree-optimization/38513
3801         * tree-ssa-pre.c (eliminate): Remove redundant stores.
3802         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3803         EXC_PTR_EXPR and FILTER_EXPR.
3804         (get_ref_from_reference_ops): Likewise.
3805
3806 2009-03-28  Richard Guenther  <rguenther@suse.de>
3807
3808         PR tree-optimization/38968
3809         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
3810         Use FLOOR_MOD_EXPR to compute misalignment.
3811
3812 2009-03-28  Richard Guenther  <rguenther@suse.de>
3813
3814         PR tree-optimization/37795
3815         * tree.h (combine_comparisons): Declare.
3816         * fold-const.c (combine_comparisons): Export.
3817         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
3818         comparisons.
3819         (ifcombine_iforif): Use combine_comparisons.
3820
3821 2009-03-28  Jan Hubicka  <jh@suse.cz>
3822
3823         * tree-eh.c (inlinable_call_p): New function.
3824         (make_eh_edges): Use it.
3825         (verify_eh_edges): Use it.
3826         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
3827         * except.c (reachable_next_level): Add inlinable_function argument
3828         (sjlj_find_directly_reachable_regions): Update.
3829         (add_reachable_handler): Do not set saw_any_handlers.
3830         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
3831         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
3832         Add new inlinable call parameter.
3833         (can_throw_internal, can_throw_external): Update.
3834         * except.h (can_throw_internal_1, can_throw_external_1,
3835         foreach_reachable_handler): Update declaration.
3836
3837 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
3838
3839         * config/arm/t-arm-coff, config/h8300/coff.h,
3840         config/i386/i386-aout.h, config/i386/i386-coff.h,
3841         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
3842         config/pdp11/2bsd.h, config/rs6000/aix41.h,
3843         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
3844         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
3845         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
3846         sys-types.h: Remove.
3847         * Makefile.in: Remove protoize and fixproto support and references
3848         in comments.
3849         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
3850         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
3851         Remove.
3852         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
3853         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
3854         unprotoize$(exeext).
3855         (rest.encap): Don't depend on $(STMP_FIXPROTO)
3856         (.PHONY): Don't depend on proto.
3857         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
3858         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
3859         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
3860         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
3861         build/gen-protos.o, build/scan.o, xsys-protos.h,
3862         build/fix-header$(build_exeext), build/fix-header.o,
3863         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
3864         stmp-install-fixproto): Remove.
3865         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
3866         SYSCALLS.c or fixproto files.
3867         (install-common): Don't install protoize.
3868         (install-headers-tar, install-headers-cpio, install-headers-cp):
3869         Don't depend on $(STMP_FIXPROTO).
3870         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
3871         install fixproto files or write out fixproto settings.
3872         (uninstall): Don't uninstall protoize.
3873         * config.gcc (use_fixproto): Remove.
3874         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
3875         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
3876         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
3877         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
3878         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
3879         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
3880         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
3881         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
3882         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
3883         * config/t-vxworks (STMP_FIXPROTO): Remove.
3884         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
3885         STMP_FIXPROTO): Remove.
3886         * config.in, configure: Regenerate.
3887         * crtstuff.c (gid_t, uid_t): Don't undefine.
3888         * doc/install.texi: Change m68k-coff to m68k-elf in example.
3889         (arm-*-coff, arm-*-aout: Remove target entries.
3890         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
3891         Remove mention of AIX 4.1.
3892         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
3893         * doc/invoke.texi (Running Protoize): Remove.
3894         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
3895         (Protoize Caveats): Remove.
3896         * tsystem.h: Update comments on headers assumed to exist.
3897
3898 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
3899
3900         * genautomata.c: Add a new year to the copyright.  Add a new
3901         reference.
3902         (struct insn_reserv_decl): Add comments for member bypass_list.
3903         (find_bypass): Remove.
3904         (insert_bypass): New.
3905         (process_decls): Use insert_bypass.
3906         (output_internal_insn_latency_func): Output all bypasses with the
3907         same input insn in one switch case.
3908
3909         * rtl.def (define_bypass): Describe bypass choice.
3910         * doc/md.texi (define_bypass): Ditto.
3911
3912 2009-03-27  Richard Guenther  <rguenther@suse.de>
3913
3914         * gimplify.c (mark_addressable): Export.
3915         * tree-flow.h (mark_addressable): Declare.
3916         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
3917         * tree-ssa.c (verify_phi_args): Verify that address taken
3918         variables have TREE_ADDRESSABLE set.
3919
3920 2009-03-27  Richard Guenther  <rguenther@suse.de>
3921
3922         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
3923         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
3924         Do not mark decls TREE_ADDRESSABLE.
3925         (build_fold_addr_expr): Adjust.
3926         (fold_addr_expr): Remove.
3927         (fold_unary): Use build_fold_addr_expr.
3928         (fold_comparison): Likewise.
3929         (split_address_to_core_and_offset): Likewise.
3930         * coverage.c (tree_coverage_counter_addr): Mark the array decl
3931         TREE_ADDRESSABLE.
3932         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
3933         (gimplify_modify_expr_to_memcpy): Mark source and destination
3934         addressable.
3935         * omp-low.c (create_omp_child_function): Mark the object decl
3936         TREE_ADDRESSABLE.
3937         (lower_rec_input_clauses