OSDN Git Service

01390700f3f0af8f5e097496edf64656e7a64a8d
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2
3         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
4         -Wcast-qual warnings.
5         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
6         handle_pragma_pop_macro): Likewise.
7         * collect2.c (resolve_lib_name): Likewise.
8         * config/arc/arc.c (arc_init): Likewise.
9         * config/arm/arm.c (neon_builtin_compare,
10         locate_neon_builtin_icode): Likewise.
11         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section):
12         Likewise.
13         * config/bfin/bfin.c (bfin_init_machine_status,
14         bfin_optimize_loop): Likewise.
15         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
16         * config/cris/cris.c (cris_init_expanders): Likewise.
17         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
18         * config/darwin.c (machopic_indirection_eq,
19         machopic_indirection_name, machopic_output_indirection):
20         Likewise.
21         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
22         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
23         frv_optimize_membar): Likewise.
24         * config/i386/cygwin.h (mingw_scan,
25         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
26         * config/i386/cygwin1.c (mingw_scan): Likewise.
27         * config/i386/i386.c (machopic_output_stub): Likewise.
28         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
29         i386_pe_unique_section): Likewise.
30         * config/ia64/ia64.c (ia64_init_machine_status,
31         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
32         Likewise.
33         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
34         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
35         * config/m68k/m68k.c (m68k_handle_option,
36         m68k_sched_md_init_global): Likewise.
37         * config/mcore/mcore.c (mcore_mark_dllexport,
38         mcore_mark_dllimport, mcore_unique_section): Likewise.
39         * config/mips/mips.c (mips_block_move_straight,
40         mips16_rewrite_pool_refs, mips_sim_wait_regs_2,
41         mips_sim_record_set): Likewise.
42         * config/mmix/mmix.c (mmix_init_machine_status,
43         mmix_encode_section_info): Likewise.
44         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label):
45         Likewise.
46         * config/rs6000/rs6000.c (rs6000_init_machine_status,
47         print_operand_address, output_toc, redefine_groups,
48         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
49         * config/s390/s390.c (s390_init_machine_status): Likewise.
50         * config/score/score.c (score_block_move_straight,
51         score_block_move_loop_body): Likewise.
52         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
53         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
54         * emit-rtl.c (find_auto_inc): Likewise.
55         * gcc.c (translate_options, process_command): Likewise.
56         * reorg.c (dbr_schedule): Likewise.
57         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
58         * xcoffout.c (xcoffout_declare_function): Likewise.
59
60 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
61
62         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
63         ipa-pta working again.
64
65 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
66
67         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
68         genautomata.
69
70 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
71
72         * config.gcc (powerpc*-*-*): Add new core e500mc.
73         * config/rs6000/e500mc.md: New file.
74         * config/rs6000/rs6000.c (processor_costs): Add new costs for
75         e500mc.
76         (rs6000_override_options): Add e500mc case to
77         processor_target_table. Altivec and Spe options not allowed
78         with e500mc. Add isel instruction to e500mc by
79         default. Initialize rs6000_cost for e500mc.
80         (rs6000_issue_rate): Set issue rate for e500mc.
81         * config/rs6000/rs6000.h (processor_type): Add
82         PROCESSOR_PPCE500MC.
83         (ASM_CPU_SPEC): Add e500mc.
84         Set TARGET_ISEL to rs6000_isel.
85         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
86         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
87         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
88         Include e500mc.md.
89         * doc/invoke.texi: Add e500mc to list of cpus.
90
91 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
92
93         PR c/34867
94         * c-lex.c (lex_charconst): Initialize unsignedp.
95
96 2008-06-27  Olivier Hainque  <hainque@adacore.com>
97
98         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
99         documented assumptions.
100
101 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
102
103         * dwarf2out.c: Remove trailing white spaces.  Break long line
104         in comments.
105
106 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
107
108         * libfuncs.h (LTI_synchronize): New libfunc_index.
109         (synchronize_libfunc): Declare.
110         * builtins.c (expand_builtin_synchronize): Consider using
111         synchronize_libfunc before falling back on an asm blockage.
112         * config/mips/mips.c: Include libfuncs.h
113         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
114
115 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
116
117         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
118         parameter.  Copy stack_reg to r11 where appropriate.
119         (no_global_regs_above): Add gpr parameter.
120         (rs6000_stack_info): Only add padding for SPE save area if we
121         are saving SPE GPRs and CR.
122         (saveres_routine_syms): New variable.
123         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
124         Define.
125         (rs6000_savres_routine_sym): New function.
126         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
127         split out of...
128         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
129         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
130         Tweak FPR out-of-line saving.
131         (rs6000_make_savres_rtx): New function.
132         (rs6000_use_multiple_p): New function.
133         (rs6000_savres_strategy): New function.
134         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
135         out-of-line if appropriate.
136         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
137         if we are optimizing for size.
138         (GP_SAVE_INLINE): Define.
139         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
140         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
141         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
142         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
143         (*save_fpregs_<mode>): Add use of r11.
144         (*restore_gpregs_<mode>): New insn.
145         (*return_and_restore_gpregs_<mode>): New insn.
146         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
147         use r11.
148         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
149         (*restore_gpregs_spe): New insn.
150         (*return_and_restore_gpregs_spe): New insn.
151         * config/rs6000/predicates.md (save_world_operation): Fix check.
152
153 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
154
155         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
156         this point, so assert that.
157
158 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
159
160         * cfganal.c: Include vec.h and vecprim.h.
161         (compute_idf): Import from...
162         * tree-into-ssa (compute_idf): ...here.
163         * basic-block.h (compute_idf): Export.
164
165 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
166
167         * c-decl.c (merge_decls): Use !current_function_decl to check for
168         extern declaration of C99 inline function being at file scope.
169
170 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
171
172         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
173
174 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
175
176         * alias.c (record_alias_subset, init_alias_analysis): Fix
177         -Wc++-compat and/or -Wcast-qual warnings.
178         * attribs.c (lookup_attribute_spec): Likewise.
179         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
180         copy_bb, connect_traces,
181         find_rarely_executed_basic_blocks_and_cr): Likewise.
182         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
183         note_btr_set, migrate_btr_defs): Likewise.
184         * builtins.c (result_vector, expand_builtin_memcpy,
185         expand_builtin_mempcpy_args, expand_builtin_strncpy,
186         builtin_memset_read_str, expand_builtin_printf,
187         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
188         Likewise.
189         * caller-save.c (mark_set_regs): Likewise.
190         * calls.c (expand_call, emit_library_call_value_1): Likewise.
191         * cgraph.c (cgraph_edge): Likewise.
192         * combine.c (likely_spilled_retval_1): Likewise.
193         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
194         htab_counts_entry_del, get_coverage_counts): Likewise.
195         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
196         new_cselib_val): Likewise.
197         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
198         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
199         Likewise.
200         * df-core.c (df_compact_blocks): Likewise.
201         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
202         * df-scan.c (df_grow_reg_info, df_ref_create,
203         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
204         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
205         df_record_entry_block_defs, df_record_exit_block_uses,
206         df_bb_verify): Likewise.
207         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
208         DF_REF_EXTRACT_MODE_CONST): New.
209         * dominance.c (get_immediate_dominator, get_dominated_by,
210         nearest_common_dominator, root_of_dom_tree,
211         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
212         -Wc++-compat and/or -Wcast-qual warnings.
213         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
214         record_store, replace_read, check_mem_read_rtx, scan_insn,
215         dse_step1, dse_record_singleton_alias_set): Likewise.
216         * dwarf2asm.c (dw2_force_const_mem): Likewise.
217
218 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
219
220         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
221         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
222         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
223         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
224         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
225         add_ranges_num, add_ranges_by_labels, file_info_cmp,
226         file_name_acquire, output_file_names, add_const_value_attribute,
227         premark_used_types_helper, file_table_eq, file_table_hash,
228         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
229         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
230         -Wcast-qual warnings.
231         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
232         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
233         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
234         gen_reg_rtx, start_sequence, init_emit): Likewise.
235         * et-forest.c (et_new_occ, et_new_tree): Likewise.
236         * except.c (init_eh_for_function, gen_eh_region,
237         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
238         arh_to_landing_pad, arh_to_label, add_action_record,
239         add_call_site, switch_to_exception_section): Likewise.
240         * expmed.c (synth_mult): Likewise.
241         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
242         store_expr): Likewise.
243         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
244         Likewise.
245         * function.c (assign_stack_temp_for_type,
246         allocate_struct_function, match_asm_constraints_1): Likewise.
247         * gcov-io.c (gcov_allocate): Likewise.
248         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
249         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
250         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
251         record_one_set, insert_expr_in_table, insert_set_in_table,
252         dump_hash_table, compute_hash_table_work, alloc_hash_table,
253         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
254         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
255         -Wcast-qual warnings.
256
257 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
258
259         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
260         -Wcast-qual warnings.
261         * gcc.c (process_command): Likewise.
262         * genattrtab.c (oballoc): Use XOBNEW.
263         (oballocvec): Define.
264         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
265         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
266         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
267         -Wc++-compat and/or -Wcast-qual warnings.
268         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
269         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
270         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
271         gen_presence_absence_set, gen_automaton, gen_regexp_el,
272         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
273         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
274         add_excls, process_presence_absence_names,
275         process_presence_absence_patterns, add_presence_absence,
276         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
277         get_free_state, add_arc, get_free_automata_list_el,
278         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
279         transform_3, cache_presence, create_ainsns, create_automata,
280         create_state_ainsn_table, dfa_insn_code_enlarge,
281         output_trans_func, output_min_issue_delay_func,
282         output_dead_lock_func, output_reset_func,
283         output_get_cpu_unit_code_func, output_dfa_start_func,
284         expand_automata): Likewise.
285         * genextract.c (gen_insn): Likewise.
286         * gengtype-lex.l: Likewise.
287         * gengtype.c (read_input_list, adjust_field_type,
288         process_gc_options): Likewise.
289         * genoutput.c (note_constraint): Likewise.
290         * genpreds.c (mangle, add_constraint): Likewise.
291         * genrecog.c (process_define_predicate, new_decision,
292         add_to_sequence): Likewise.
293         * gensupport.c (record_insn_name): Likewise.
294
295 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
296
297         * config/i386/driver-i386.c (detect_caches_amd,
298         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
299         and/or -Wcast-qual warnings.
300         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
301         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
302         gt_pch_save): Likewise.
303         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
304         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
305         * global.c (compute_regsets): Likewise.
306         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
307         finish_graph_dump_file): Likewise.
308         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
309         unlink_bb_notes): Likewise.
310         * integrate.c (get_hard_reg_initial_val): Likewise.
311         * ipa-prop.c (ipa_push_func_to_list): Likewise.
312         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
313         * local-alloc.c (update_equiv_regs): Likewise.
314         * loop-invariant.c (check_invariant_table_size,
315         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
316         Likewise.
317         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
318         altered_reg_used, mark_altered): Likewise.
319         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
320         insert_var_expansion_initialization,
321         combine_var_copies_in_loop_exit, apply_opt_in_copies,
322         release_var_copies): Likewise.
323         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
324         analyze_matrix_decl, add_allocation_site, analyze_transpose,
325         analyze_accesses_for_phi_node, check_var_notmodified_p,
326         check_allocation_function, find_sites_in_func,
327         record_all_accesses_in_func, transform_access_sites,
328         transform_allocation_sites): Likewise.
329         * omp-low.c (new_omp_region, create_omp_child_function_name,
330         check_omp_nesting_restrictions, check_combined_parallel,
331         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
332         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
333         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
334         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
335         Likewise.
336         * opts-common.c (prune_options): Likewise.
337         * opts.c (add_input_filename, print_filtered_help,
338         get_option_state): Likewise.
339         * params.c (add_params): Likewise.
340         * passes.c (set_pass_for_id, next_pass_1,
341         do_per_function_toporder, pass_fini_dump_file): Likewise.
342         * postreload.c (reload_cse_simplify_operands): Likewise.
343         * predict.c (tree_predicted_by_p, tree_predict_edge,
344         clear_bb_predictions, combine_predictions_for_bb): Likewise.
345
346 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
347
348         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
349         warnings.
350         * recog.c (check_asm_operands, validate_change_1): Likewise.
351         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
352         subst_asm_stack_regs): Likewise.
353         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
354         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
355         * regmove.c (reg_is_remote_constant_p): Likewise.
356         * regrename.c (regrename_optimize, scan_rtx_reg,
357         kill_clobbered_value, kill_set_value, kill_autoinc_value):
358         Likewise.
359         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
360         regstat_compute_calls_crossed): Likewise.
361         * reload1.c (init_reload, new_insn_chain,
362         has_nonexceptional_receiver, reload, copy_reloads,
363         calculate_needs_all_insns, init_elim_table): Likewise.
364         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
365         * rtl.c (shallow_copy_rtx_stat): Likewise.
366         * rtlanal.c (parms_set): Likewise.
367         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
368         sbitmap_resize, sbitmap_vector_alloc): Likewise.
369         * sched-ebb.c (earliest_block_with_similiar_load,
370         add_deps_for_risky_insns): Likewise.
371         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
372         schedule_region): Likewise.
373         * see.c (eq_descriptor_pre_extension,
374         hash_descriptor_pre_extension, hash_del_pre_extension,
375         eq_descriptor_properties, hash_descriptor_properties,
376         hash_del_properties, see_seek_pre_extension_expr,
377         see_initialize_data_structures, see_print_register_properties,
378         see_print_pre_extension_expr, see_delete_merged_def_extension,
379         see_delete_unmerged_def_extension, see_emit_use_extension,
380         see_pre_delete_extension, see_map_extension, see_commit_changes,
381         see_analyze_merged_def_local_prop,
382         see_analyze_merged_def_local_prop,
383         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
384         see_set_prop_merged_def, see_set_prop_unmerged_def,
385         see_set_prop_unmerged_use, see_print_one_extension,
386         see_merge_one_use_extension, see_merge_one_def_extension,
387         see_store_reference_and_extension, see_update_uses_relevancy,
388         see_update_defs_relevancy): Likewise.
389         * statistics.c (hash_statistics_hash, hash_statistics_eq,
390         hash_statistics_free, curr_statistics_hash): Likewise.
391         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
392         expand_asm_operands, expand_return, case_bit_test_cmp,
393         expand_case): Likewise.
394         * stor-layout.c (start_record_layout): Likewise.
395         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
396         gt_pch_save_stringpool): Likewise.
397         * tree-data-ref.c (hash_stmt_vertex_info,
398         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
399         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
400
401 2008-06-25 Uros Bizjak  <ubizjak@gmail.com>
402
403         PR target/36627
404         * config/i386/i386.md : Change constraints of HImode and QImode
405         immediate operands from "i" to "n".  Change SImode "ni" constraint to
406         "i" and SImode "rmi" constraint to "g".  Remove all constraints
407         from const0_operand and const1_operand predicated operands.
408         (i): Change QImode and HImode attribute from "i" to "n".
409         (*subqi_2): Change HImode operands to QImode.
410         (*subqi_3): Ditto.
411
412 2008-06-25  Olivier Hainque  <hainque@adacore.com>
413
414         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
415         sed substitutions.
416
417 2008-06-25  Richard Guenther  <rguenther@suse.de>
418
419         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
420         not overflow the result type.
421
422 2008-06-25  Richard Guenther  <rguenther@suse.de>
423
424         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
425         (vn_lookup): Likewise.
426
427 2008-06-25  Richard Guenther  <rguenther@suse.de>
428
429         PR tree-optimization/35518
430         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
431         * tree-sra.c (instantiate_element): Use fold_build3 to build
432         BIT_FIELD_REFs.
433         (try_instantiate_multiple_fields): Likewise.
434
435 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
436
437         * config/rs6000/rs6000.md: Change all string instruction's clobber to
438         be early clobbers.
439
440 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
441
442         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
443         use_backchain_to_restore_sp to true
444         if the offset of the link register save area would go over the 32k - 1
445         offset limit of the load
446         instructions.
447
448 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
449
450         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
451         anchor for the type-punning blurb.  Cross-reference "Structures
452         unions enumerations and bit-fields implementation".  Provide a
453         cast-through-pointer example.  Make final sentence self-contained.
454         * doc/implement-c.texi (Structures unions enumerations and
455         bit-fields implementation): Cross-reference the type-punning blurb
456         in the -fstrict-aliasing documentation.
457
458 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
459
460         PR middle-end/36594
461         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
462         the memory instead of the memory itself for the save area.
463
464 2008-06-24  Olivier Hainque  <hainque@adacore.com>
465             Nicolas Roche  <roche@adacore.com>
466
467         * gengtype.c (srcdir_len): size_t instead of int.
468         (get_file_realbasename): New function.  For F a filename, the real
469         basename of F, with all the path components stripped.
470         (get_file_srcdir_relative_path): New function.  For F a filename, the
471         relative path to F from $(srcdir).
472         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
473         get_file_realbasename.  Adjust the head comment.
474         (get_prefix_langdir_index): New function. For F a filename, return the
475         lang_dir_names[] relative index of the language directory that is
476         a prefix in F.
477         (get_file_langdir): For F a filename, return the name of the language
478         directory where F is located.
479         (get_file_gtfilename): New function. The gt- output file name for an
480         input filename F.
481         (get_output_file_with_visibility): Replace in-line computations with
482         uses of get_file_gtfilename and get_prefix_langdir_index.
483         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
484
485 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
486
487         PR tree-optimization/36504
488         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
489         references without base address.
490
491 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
492
493         PR middle-end/36584
494         * calls.c (expand_call): Increase alignment for recursive functions.
495
496 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
497
498         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
499         (TARGET_FUNCTION_VALUE): New define.
500         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
501         * config/avr/avr.h (FUNCTION_VALUE): Remove.
502
503 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
504
505         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
506         (fmod<mode>3): Ditto.
507         (remainderxf3): Ditto.
508         (remainder<mode>3): Ditto.
509
510 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
511
512         PR target/36533
513         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
514         REG is a hard register.
515
516         PR tree-optimization/36508
517         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
518         499, don't check it at all in release compilers.
519
520 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
521
522         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
523         together with SSE_TARGET_MATH to disable insn pattern.
524         (*fop_<MODEF:mode>_2_i387): Ditto.
525         (*fop_<MODEF:mode>_3_i387): Ditto.
526
527 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
528
529         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
530         
531 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
532
533         PR middle-end/34906
534         * gimplify.c (gimplify_asm_expr): Check the return code of
535         parse_output_constraint call, set function return and is_inout
536         value if it failed.
537
538 2008-06-22  Ian Lance Taylor  <iant@google.com>
539
540         * c-lex.c (narrowest_unsigned_type): Change itk to int.
541         (narrowest_signed_type): Likewise.
542         * c-typeck.c (c_common_type): Change local variable mclass to enum
543         mode_class, twice.
544         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
545         tcc_comparison, not the tree code itself.
546         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
547         (c_expand_expr): Cast modifier to enum expand_modifier.
548         * c-common.h (C_RID_CODE): Add casts.
549         (C_SET_RID_CODE): Define.
550         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
551         (c_lex_one_token): Add cast to avoid warning.
552         (c_parser_objc_type_name): Rename local typename to type_name.
553         (check_no_duplicate_clause): Change code parameter to enum
554         omp_clause_code.
555         (c_parser_omp_var_list_parens): Change kind parameter to enum
556         omp_clause_code.
557         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
558         c_parser_omp_list_var_parens.
559         (c_parser_omp_threadprivate): Likewise.
560         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
561         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
562         * c-format.c (NO_FMT): Define.
563         (printf_length_specs): Use NO_FMT.
564         (asm_fprintf_length_specs): Likewise.
565         (gcc_diag_length_specs): Likewise.
566         (scanf_length_specs): Likewise.
567         (strfmon_length_specs): Likewise.
568         (gcc_gfc_length_specs): Likewise.
569         (printf_flag_specs): Change 0 to STD_C89.
570         (asm_fprintf_flag_specs): Likewise.
571         (gcc_diag_flag_specs): Likewise.
572         (gcc_cxxdiag_flag_specs): Likewise.
573         (scanf_flag_specs): Likewise.
574         (strftime_flag_specs): Likewise.
575         (strfmon_flag_specs): Likewise.
576         (print_char_table): Likewise.
577         (asm_fprintf_char_table): Likewise.
578         (gcc_diag_char_table): Likewise.
579         (gcc_tdiag_char_table): Likewise.
580         (gcc_cdiag_char_table): Likewise.
581         (gcc_cxxdiag_char_table): Likewise.
582         (gcc_gfc_char_table): Likewise.
583         (scan_char_table): Likewise.
584         (time_char_table): Likewis.
585         (monetary_char_table): Likewise.
586         * c-format.h (BADLEN): Likewise.
587
588 2008-06-21  Ian Lance Taylor  <iant@google.com>
589
590         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
591         Define END_OF_BASE_TREE_CODES around inclusion.
592         * tree.c (tree_code_type): New global array.
593         (tree_code_length, tree_code_name): Likewise.
594         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
595         $(lang_tree_files).
596         (all-tree.def, s-alltree): New targets.
597         (gencheck.h, s-gencheck): Remove.
598         (tree.o): Depend upon all-tree.def.
599         (build/gencheck.o): Remove gencheck.h dependency.
600         (mostlyclean): Don't remove gencheck.h.
601         * c-common.h (enum c_tree_code): Remove.
602         * c-lang.c (tree_code_type): Remove.
603         (tree_code_length, tree_code_name): Remove.
604         * gencheck.c (tree_codes): Include all-tree.def, rather than
605         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
606         after it is used.
607         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
608         than tree.def.
609         * cp/cp-tree.h (enum cplus_tree_code): Remove.
610         (operator_name_info): Size to MAX_TREE_CODES.
611         (assignment_operator_name_info): Likewise.
612         * cp/cp-lang.c (tree_code_type): Remove.
613         (tree_code_length, tree_code_name): Remove.
614         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
615         (assignment_operator_name_info): Likewise.
616         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
617         MAX_TREE_CODES.
618         * cp/mangle.c (write_expression): Likewise.
619         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
620         * fortran/f95-lang.c (tree_code_type): Remove.
621         (tree_code_length, tree_code_name): Remove.
622         * java/java-tree.h (enum java_tree_code): Remove.
623         * java/lang.c (tree_code_type): Remove.
624         (tree_code_length, tree_code_name): Remove.
625         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
626         * objc/objc-act.h (enum objc_tree_code): Remove.
627         * objc/objc-lang.c (tree_code_type): Remove.
628         (tree_code_length, tree_code_name): Remove.
629         * objcp/objcp-lang.c (tree_code_type): Remove.
630         (tree_code_length, tree_code_name): Remove.
631         * ada/ada-tree.h (enum gnat_tree_code): Remove.
632         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
633         * ada/misc.c (tree_code_type): Remove.
634         (tree_code_length, tree_code_name): Remove.
635
636 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
637
638         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
639         the grand_bitmap_obstack.
640
641 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
642
643         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
644         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
645         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
646         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
647         move_stmt_r, new_label_mapper): Likewise.
648         * tree-complex.c (cvc_lookup): Likewise.
649         * tree-dfa.c (create_function_ann): Likewise.
650         * tree-dump.c (dump_register): Likewise.
651         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
652         find_phi_replacement_condition): Likewise.
653         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
654         tree_function_versioning): Likewise.
655         * tree-into-ssa.c (cmp_dfsnum): Likewise.
656         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
657         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
658         get_nonlocal_debug_decl, convert_nonlocal_reference,
659         convert_nonlocal_omp_clauses, get_local_debug_decl,
660         convert_local_reference, convert_local_omp_clauses,
661         convert_nl_goto_reference, convert_nl_goto_receiver,
662         convert_tramp_reference, convert_call_expr): Likewise.
663         * tree-outof-ssa.c (contains_tree_r): Likewise.
664         * tree-parloops.c (reduction_phi, initialize_reductions,
665         eliminate_local_variables_1, add_field_for_reduction,
666         add_field_for_name, create_phi_for_local_result,
667         create_call_for_reduction_1, create_loads_for_reductions,
668         create_stores_for_reduction, create_loads_and_stores_for_name):
669         Likewise.
670         * tree-phinodes.c (allocate_phi_node): Likewise.
671         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
672         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
673         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
674         * tree-ssa-coalesce.c (compare_pairs): Likewise.
675         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
676         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
677         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
678         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
679         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
680         vn_nary_op_insert): Likewise.
681         * tree-ssa.c (redirect_edge_var_map_add,
682         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
683         * tree-vectorizer.c (vectorize_loops): Likewise.
684         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
685         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
686         tree_cons_stat, build1_stat, build_variant_type_copy,
687         decl_init_priority_lookup, decl_fini_priority_lookup,
688         decl_priority_info, decl_restrict_base_lookup,
689         decl_restrict_base_insert, decl_debug_expr_lookup,
690         decl_debug_expr_insert, decl_value_expr_lookup,
691         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
692         type_hash_add, get_file_function_name, tree_check_failed,
693         tree_not_check_failed, tree_range_check_failed,
694         omp_clause_range_check_failed, build_omp_clause,
695         build_vl_exp_stat): Likewise.
696         * value-prof.c (gimple_histogram_value,
697         gimple_duplicate_stmt_histograms): Likewise.
698         * var-tracking.c (attrs_list_insert, attrs_list_copy,
699         unshare_variable, variable_union_info_cmp_pos, variable_union,
700         dataflow_set_different_1, dataflow_set_different_2,
701         vt_find_locations, variable_was_changed, set_variable_part,
702         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
703         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
704         section_entry_hash, object_block_entry_eq,
705         object_block_entry_hash, create_block_symbol,
706         initialize_cold_section_name, default_function_rodata_section,
707         strip_reg_name, set_user_assembler_name, const_desc_eq,
708         build_constant_desc, output_constant_def, lookup_constant_def,
709         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
710         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
711         default_internal_label): Likewise.
712         * varray.c (varray_init, varray_grow): Likewise.
713         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
714
715 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
716
717         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
718         operators for "test" insn.  Macroize insn using SWI mode macro.
719         (*jcc_fused_2): Ditto.
720         (*jcc_fused_3): Macroize insn using SWI mode macro.
721         (*jcc_fused_4): Ditto.
722
723 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
724
725         * tree-ssa-pre.c: Fix typo in comment.
726         (init_antic, fini_antic): Add explicit funtions for
727         initializing and deinitializing ANTIC and AVAIL sets.
728         (create_expression_by_pieces): Fix typo in comment.
729         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
730         (execute_pre): Eventually dump details about ANTIC_IN.
731
732 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
733
734         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
735         * gcc.c (translate_options, init_spec, store_arg, read_specs,
736         add_to_obstack, file_at_path, find_a_file, execute,
737         add_preprocessor_option, add_assembler_option, add_linker_option,
738         process_command, insert_wrapper, do_option_spec, do_self_spec,
739         spec_path, do_spec_1, is_directory, main, used_arg,
740         getenv_spec_function): Likewise.
741         * tlink.c (symbol_hash_lookup, file_hash_lookup,
742         demangled_hash_lookup, symbol_push, file_push, frob_extension):
743         Likewise.
744
745 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
746
747         * doc/rtl.texi: Updated subreg section.
748
749 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
750
751         PR c++/36523
752         * cgraphunit.c (cgraph_process_new_functions): Don't clear
753         node->needed and node->reachable.
754         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
755         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
756         (expand_task_call): Don't call expand_task_copyfn.
757         (expand_task_copyfn): Renamed to...
758         (finalize_task_copyfn): ... this.
759
760 2008-06-19  Jan Hubicka  <jh@suse.cz>
761
762         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
763         clobbering framepointer.
764
765 2008-06-19  Jan Hubicka  <jh@suse.cz>
766
767         * tree-optimize.c (execute_early_local_optimizations): Set
768         cgraph_state only at first invocation.
769
770 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
771
772         * system.h (-Wc++-compat): Activate as a warning, no an error.
773
774 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
775
776         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
777         instead of "#" in insn asm template.
778         (*jcc_fused_2): Ditto.
779
780 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
781
782         * config/i386/i386.h (ix86_tune_indices)
783         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
784         (TARGET_FUSE_CMP_AND_BRANCH): New define.
785         * config/i386/i386.md (*jcc_fused_1): New insn pattern
786         (*jcc_fused_2): Ditto.
787         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
788         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
789         (print operand): Handle 'E' and 'e' code.
790
791 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
792
793         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
794         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
795         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
796
797 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
798
799         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
800         node->decl.
801         (cgraph_expand_function): Use local copy of decl.
802         (cgraph_expand_all_functions): Remove redundant initialization of
803         order_pos.
804         (cgraph_optimize): Reword internal_error message.
805
806 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
807
808         * arm-protos.h (arm_return_in_memory): Remove public
809         arm_return_in_memory() prototype.
810         * arm.c (arm_return_in_memory): Add static prototype, add target
811         hook macro, change definition and comments.
812         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
813
814 2008-06-19  Ben Elliston  <bje@au.ibm.com>
815
816         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
817         real.c: Remove references to IEEE 754R.
818         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
819         * doc/libgcc.texi (Decimal float library routines): Likewise.
820
821 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
822
823         * targhooks.h (struct gcc_target): New member unwind_word_mode.
824         (default_unwind_word_mode): Add prototype.
825         * targhooks.c (default_unwind_word_mode): New function.
826         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
827         instead of word_mode.
828         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
829         (TARGET_INITIALIZER): Use it.
830
831         * c-common.c (handle_mode_attribute): Support "unwind_word"
832         mode attribute.
833         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
834
835         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
836         word_mode to access SjLj_Function_Context member "data".
837         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
838         conversion from targetm.eh_return_filter_mode () to
839         targetm.unwind_word_mode () if they differ.
840
841         * builtin-types.def (BT_UNWINDWORD): New primitive type.
842         (BT_FN_UNWINDWORD_PTR): New function type.
843         (BT_FN_WORD_PTR): Remove.
844         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
845         * except.c (expand_builtin_extend_pointer): Convert pointer to
846         targetm.unwind_word_mode () instead of word_mode.
847
848         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
849         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
850         (spu_unwind_word_mode): New function.
851         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
852         (TARGET_UNWIND_WORD_MODE): Define.
853         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
854
855 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
856
857         * config/spu/spu.c (reg_align): Remove.
858         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
859         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
860         (spu_split_store): Likewise.
861
862 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
863
864         * gcc/tree-vn.c: Fix typo in comment.
865
866 2008-06-18  Jan Hubicka  <jh@suse.cz>
867
868         * cgraphunit.c (cgraph_optimize): Output debug info when doing
869         toplevel reorder too.
870
871 2008-06-18  Jan Hubicka  <jh@suse.cz>
872
873         * c-opts.c (c_common_post_options): PCH is not compatible with
874         no-unit-at-a-time.
875         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
876         -fno-toplevel-reorder by default now.
877
878 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
879
880         PR documentation/30739
881         * doc/install.texi (Prerequisites): Document dependency on awk.
882
883 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
884             Ian Lance Taylor  <iant@google.com>
885
886         PR rtl-optimization/35604
887         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
888         only want to change jump destinations, not eventual label comparisons.
889
890 2008-06-16  Jan Hubicka  <jh@suse.cz>
891
892         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
893         syntax errors.
894         (cgraph_analyze_function): Likewise.
895
896 2008-06-16  Jan Hubicka  <jh@suse.cz>
897
898         * cgraph.h (cgraph_mark_if_needed): New function.
899         * cgraphunit.c (cgraph_mark_if_needed): New function.
900         * c-decl.c (duplicate_decl): Use it.
901
902 2008-06-16  Jan Hubicka  <jh@suse.cz>
903
904         * cgraph.c (cgraph_add_new_function): When in expansion state, do
905         lowering.
906
907 2008-06-16  Jan Hubicka  <jh@suse.cz>
908
909         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
910
911 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
912             Kazu Hirata  <kazu@codesourcery.com>
913             Maxim Kuvyrkov  <maxim@codesourcery.com
914
915         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
916         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
917         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
918         EXTRA_SPEC_FUNCTIONS.
919         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
920         (DRIVER_SELF_SPECS): Adjust.
921         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
922         * config/mips/st.h, config/mips/t-st: New.
923         * config/mips/driver-native.c, config/mips/x-native: New.
924         * doc/invoke.texi (MIPS): Document 'native' value for -march and
925         -mtune options.
926
927 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
928
929         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
930         from it.
931         (ISA_HAS_FP_CONDMOVE): New macro.
932         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
933         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
934         (ISA_HAS_NMADD3_NMSUB3): New macro.
935         * config/mips/mips.c (mips_rtx_costs): Update.
936         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
937         compiling for ST Loongson 2E/2F.
938         (madd<mode>): Rename to madd4<mode>.  Update.
939         (madd3<mode>): New pattern.
940         (msub<mode>): Rename to msub4<mode>.  Update.
941         (msub3<mode>): New pattern.
942         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
943         (nmadd3<mode>): New pattern.
944         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
945         (nmadd3<mode>_fastmath): New pattern.
946         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
947         (nmsub3<mode>): New pattern.
948         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
949         (nmsub3<mode>_fastmath): New pattern.
950         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
951
952 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
953
954         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
955         (DF_REF_INSN_INFO): New.
956         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
957         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
958         with a NULL DF_REF_INSN_INFO.
959         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
960         DF_INSN_SET.
961         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
962         DF_INSN_INFO_EQ_USES): New.
963         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
964         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
965         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
966         * df-core.c: Update comment for above changes.
967         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
968         DF_INSN_UID_* macros.
969         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
970         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
971         insn rtx.  Update all callers.
972         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
973         df_ref_create_structure, df_insn_refs_collect): Likewise.
974         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
975         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
976         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
977         macros to access the insn refs.
978         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
979         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
980         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
981         for accessing the refs.
982         (try_fwprop_subst): Likewise.
983         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
984         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
985         for accessing the refs.
986         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
987         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
988         to look at the insn refs.
989         (record_uses): Likewise.
990         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
991         function anymore.
992         (mark_artificial_uses): Don't mark_insn for artificial refs.
993         (mark_reg_rependencies): Likewise.
994
995         * doc/rtl.texi: Remove documentation of ADDRESSOF.
996
997 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
998
999         * configure: Regenerate.
1000
1001 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
1002
1003         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
1004         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
1005         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1006
1007 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
1008
1009         * config/avr/avr.c (avr_mcu_t): Add attiny167.
1010         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
1011         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1012
1013 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
1014
1015         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
1016         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
1017         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1018
1019 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
1020
1021         * tree-ssa-sccvn.c: Fix format of comments.
1022
1023 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
1024
1025         * cgraph.c: Remove unneeded forward declarations of eq_node()
1026         and hash_node().
1027
1028 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
1029
1030         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
1031         REG_RETVAL notes.
1032         (see_update_relevancy): Likewise.
1033         * fwprop.c (try_fwprop_subst): Likewise.
1034         * rtlanal.c (noop_move_p): Likewise.
1035         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
1036         notes to non-existing libcall blocks.
1037         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
1038         Remove orig_set.
1039         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
1040         (dead_libcall_p): Remove.
1041         (delete_trivially_dead_insns): Don't use it.
1042         * web.c (union_defs): Remove comment about keeping nops.
1043         * gcse.c (hash_scan_insn): Don't take libcall pointers.
1044         (compute_hash_table_work): Don't track libcall notes.
1045         (do_local_cprop): Don't take libcall pointers.  Don't update
1046         libcall notes.
1047         (adjust_libcall_notes): Deleted.
1048         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
1049         ever have existed in the first place).
1050         (replace_store_insn): Don't try to remove libcall notes.
1051         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
1052         (resolve_reg_notes): Don't call them.
1053         (resolve_simple_move): Likewise.
1054         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
1055         Don't remove REG_RETVAL notes.
1056         * emit-rtl.c (try_split): Don't update libcall notes.
1057         (emit_copy_of_insn_after): Dito.
1058         * cselib.c (cselib_current_insn_in_libcall): Remove.
1059         (cselib_process_insn): Don't set/clear it.
1060         (new_elt_loc_list): Don't record it.
1061         (cselib_init): Don't initialize it.
1062         * cselib.c (struct elt_loc_list): Remove in_libcall field.
1063         * loop-invariant.c (find_invariant_insn): Don't look for libcall
1064         notes.
1065         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
1066         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
1067         (init_deps): Don't initialize it.
1068         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
1069         * combine.c (delete_noop_moves): Don't update libcall notes.
1070         (can_combine_p): Remove now pointless #if 0 block.
1071         (try_combine): Remove another obsolete #if 0 block.
1072         (distribute_notes): Don't distribute libcall notes.
1073         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
1074         * dce.c (libcall_dead_p): Remove.
1075         (delete_unmarked_insns): Don't handle libcall blocks.
1076         (preserve_libcall_for_dce): Remove.
1077         (prescan_insns_for_dce): Don't special-case libcall block insns.
1078         * reload1 (reload): Don't handle libcall notes. 
1079         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
1080         documentation.
1081
1082 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
1083
1084         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
1085         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1086         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1087
1088 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
1089
1090         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
1091         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1092         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1093
1094 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1095
1096         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
1097
1098 2008-06-16  Ira Rosen  <irar@il.ibm.com>
1099
1100         PR tree-optimization/36493
1101         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
1102         the arguments list. Use VECTYPE to create vector pointer.
1103         (vectorizable_store): Fail if accesses through a pointer to vectype
1104         do not alias the original memory reference operands.
1105         Call vect_create_data_ref_ptr without the removed argument.
1106         (vectorizable_load): Likewise.
1107         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
1108         removed argument.
1109
1110 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
1111
1112         PR target/36336
1113         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
1114         reg_equiv_constant.
1115
1116 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1117
1118         * config/mips/loongson2ef.md: New file.
1119         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1120         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1121         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1122         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
1123         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
1124         and loongson_2f.
1125         (loongson2ef.md): New include.
1126         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
1127         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
1128         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
1129         (loongson_gt_<mode>, loongson_extract_halfword)
1130         (loongson_insert_halfword_0, loongson_insert_halfword_2)
1131         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
1132         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
1133         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
1134         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
1135         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
1136         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
1137         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
1138         (vec_interleave_low<mode>): Define type attribute.
1139         * config/mips/mips.c (mips_ls2): New static variable.
1140         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
1141         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
1142         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
1143         Implement target scheduling hooks.
1144         (mips_multipass_dfa_lookahead): Update to handle tuning for
1145         Loongson 2E/2F.
1146         (mips_sched_init): Initialize data for Loongson scheduling.
1147         (mips_ls2_variable_issue): New static function.
1148         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
1149         Add sanity check.
1150         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
1151         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
1152         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
1153         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
1154         Handle ST Loongson 2E/2F cores.
1155         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
1156
1157 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1158
1159         * omp-low.c (extract_omp_for_data): Fix comment typo.
1160         * c.opt: Fix typo.
1161
1162 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1163
1164         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
1165         FIXME note about gcc/config.guess.
1166         * doc/options.texi (Option file format): Remove non-ASCII bytes.
1167         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
1168         * doc/cppopts.texi: Likewise.
1169         * doc/extend.texi: Likewise.
1170         * doc/gcc.texi: Likewise.
1171         * doc/gccint.texi: Likewise.
1172         * doc/gcov.texi: Likewise.
1173         * doc/gty.texi: Likewise.
1174         * doc/hostconfig.texi: Likewise.
1175         * doc/install.texi: Likewise.
1176         * doc/invoke.texi: Likewise.
1177         * doc/loop.texi: Likewise.
1178         * doc/makefile.texi: Likewise.
1179         * doc/md.texi: Likewise.
1180         * doc/passes.texi: Likewise.
1181         * doc/tm.texi: Likewise.
1182         * doc/tree-ssa.texi: Likewise.
1183         * doc/trouble.texi: Likewise.
1184
1185 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
1186             Nathan Sidwell  <nathan@codesourcery.com>
1187             Maxim Kuvyrkov  <maxim@codesourcery.com>
1188             Richard Sandiford  <rdsandiford@googlemail.com>
1189         
1190         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
1191         * config/mips/mips-protos.h (mips_expand_vector_init): New.
1192         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
1193         builtins.
1194         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
1195         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
1196         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
1197         V8QImode cases.
1198         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
1199         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
1200         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
1201         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
1202         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
1203         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
1204         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
1205         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
1206         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
1207         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
1208         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
1209         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
1210         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
1211         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
1212         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
1213         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
1214         (mips_builtins): Add Loongson builtins.
1215         (mips_loongson_2ef_bdesc): New.
1216         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
1217         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
1218         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
1219         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
1220         New.
1221         (mips_expand_vector_init): New.
1222         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
1223         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
1224         if appropriate.
1225         * config/mips/mips.md: Add unspec numbers for Loongson
1226         builtins.  Include loongson.md.
1227         (MOVE64): Include Loongson vector modes.
1228         (SPLITF): Include Loongson vector modes.
1229         (HALFMODE): Handle Loongson vector modes.
1230         * config/mips/loongson.md: New.
1231         * config/mips/loongson.h: New.
1232         * config.gcc: Add loongson.h header for mips*-*-* targets.
1233         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
1234
1235 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
1236
1237         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
1238         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
1239         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
1240         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
1241         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
1242         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
1243         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
1244         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
1245         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
1246         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
1247         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
1248         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
1249         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
1250         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
1251         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
1252         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
1253         Remove use_fixproto=yes.
1254         (ia64*-*-hpux*): Remove comment about using fixproto.
1255         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
1256
1257 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1258
1259         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
1260         library rebuilds.
1261         * configure: Regenerate.
1262
1263 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
1264
1265         PR middle-end/36520
1266         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
1267         before evaluating it.
1268
1269 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
1270
1271         PR c/36507
1272         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
1273         nested inline functions.
1274         (start_decl, start_function): Don't invert DECL_EXTERNAL
1275         for nested inline functions.
1276
1277 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
1278
1279         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
1280         splits that must be made for correctness.
1281
1282 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
1283
1284         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
1285         (AVAIL_NON_MIPS16): Likewise.
1286         (mips_builtin_description): Replace target_flags with a predicate.
1287         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
1288         (dspr2_32): New availability predicates.
1289         (MIPS_BUILTIN): New macro.
1290         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
1291         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
1292         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
1293         Replace the TARGET_FLAGS parameters with AVAIL parameters.
1294         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
1295         (mips_dsp_32only_bdesc): Merge into...
1296         (mips_builtins): ...this new array.
1297         (mips_bdesc_map, mips_bdesc_arrays): Delete.
1298         (mips_init_builtins): Update after above changes.
1299         (mips_expand_builtin_1): Merge into...
1300         (mips_expand_builtin): ...here and update after above changes.
1301
1302 2008-06-12  Paul Brook  <paul@codesourcery.com>
1303
1304         * longlong.h (__arm__): Define count_leading_zeros.
1305         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
1306         (clzsi2, clzdi2): New functions.
1307         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
1308         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
1309         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
1310         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
1311         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
1312         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
1313         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
1314         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
1315         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
1316         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
1317
1318 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
1319
1320         * config/m68k/m68k.c (m68k_tune_flags): New.
1321         (override_options): Compute m68k_tune_flags.
1322         (MULL_COST, MULW_COST): Update for various variants of CFV2.
1323         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
1324
1325 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1326
1327         PR middle-end/36506
1328         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
1329
1330 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1331
1332         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
1333         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
1334
1335 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
1336
1337         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
1338         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
1339
1340 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1341
1342         PR middle-end/36506
1343         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
1344         reductions.
1345
1346 2008-06-12  Richard Guenther  <rguenther@suse.de>
1347
1348         PR tree-optimization/36345
1349         * tree-flow.h (struct ptr_info_def): Align escape_mask,
1350         add memory_tag_needed flag.
1351         (may_alias_p): Declare.
1352         * tree-ssa-alias.c (may_alias_p): Export.
1353         (set_initial_properties): Use memory_tag_needed flag.
1354         (update_reference_counts): Likewise.
1355         (reset_alias_info): Reset memory_tag_needed flag.
1356         (create_name_tags): Check memory_tag_needed flag.
1357         (dump_points_to_info_for): Dump it.
1358         * tree-ssa-structalias.c (struct variable_info): Remove
1359         directly_dereferenced flag.
1360         (new_var_info): Do not initialize it.
1361         (process_constraint_1): Do not set it.
1362         (update_alias_info): Set is_dereferenced flag.
1363         (set_uids_in_ptset): Use may_alias_p.
1364         (set_used_smts): Check memory_tag_needed flag.
1365         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
1366         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
1367         memory_tag_needed flag.
1368         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
1369         from broken design.
1370
1371 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
1372
1373         * config/i386/i386.c (ix86_compute_frame_layout): Disable
1374         red zone for w64 abi.
1375         (ix86_expand_prologue): Likewise.
1376         (ix86_force_to_memory): Likewise.
1377         (ix86_free_from_memory): Likewise.
1378
1379 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
1380
1381         PR target/36425
1382         * config/rs6000/rs6000.c (rs6000_override_options): Set
1383         rs6000_isel conditionally to the absence of comand line override.
1384         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1385         Remove duplicate rs6000_isel setting.
1386         * config/rs6000/eabispe.h: Ditto.
1387
1388 2008-06-11  Richard Guenther  <rguenther@suse.de>
1389
1390         * alias.c (get_alias_set): Use the element alias-set for arrays.
1391         (record_component_aliases): For arrays and vectors do nothing.
1392         * c-common.c (strict_aliasing_warning): Handle the cases
1393         of alias set zero explicitly.
1394         * Makefile.in (dfp.o-warn): Add -Wno-error.
1395
1396 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
1397
1398         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
1399         tune_32 tune_64.
1400         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
1401         tune_32 tune_64 to supported_defaults.  Allow values not
1402         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
1403         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
1404         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
1405         with_cpu_64 to generic for 64-bit-supporting configurations, not
1406         with_cpu.  Remove FIXMEs.
1407         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
1408         --with-arch-64, --with-tune-32, --with-tune-64): Document.
1409         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
1410         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
1411         arch_32 and arch_64.
1412
1413 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
1414             Olivier Hainque  <hainque@adacore.com>
1415
1416         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
1417         Use DECL_SIZE_UNIT to retrieve the size of the field.
1418
1419 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
1420
1421         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
1422         with function calls after declarations.  Lay out
1423         neon_float_type_node before further use.
1424
1425 2008-06-11  Richard Guenther  <rguenther@suse.de>
1426
1427         * tree-flow.h (may_point_to_global_var): Declare.
1428         * tree-ssa-alias.c (may_point_to_global_var): New function.
1429         * tree-ssa-sink.c (is_hidden_global_store): Use it.
1430
1431 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
1432
1433         * configure.ac: Teach that fido supports .debug_line.
1434         * configure: Regenerate.
1435
1436 2008-06-10  Tom Tromey  <tromey@redhat.com>
1437
1438         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
1439         debug hook.
1440
1441 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
1442
1443         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
1444         (encode_decimal64, decode_decimal64, encode_decimal128,
1445         decode_decimal128): Reverse order of 32-bit parts of value if host
1446         and target endianness differ.
1447
1448 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
1449
1450         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
1451         Avoid division by 0.
1452         (tree_mod_pow2_value_transform): Likewise.
1453         (tree_ic_transform): Likewise.
1454         (tree_stringops_transform): Likewise.
1455         (tree_mod_subtract_transform): Likewise.
1456         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
1457         (copy_edges_for_bb): Likewise.
1458         (initialize_cfun): Likewise.
1459
1460 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
1461
1462         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
1463         nonmemory_operand. Add "N" operand constraint.
1464         (*btsi): Ditto.
1465         (*jcc_btdi_mask_rex64): New instruction and split pattern.
1466         (*jcc_btsi_mask): Ditto.
1467         (*jcc_btsi_mask_1): Ditto.
1468
1469 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
1470
1471         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
1472         TYPE_CANONICAL for copied element type.
1473
1474 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
1475
1476         PR target/36473
1477         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
1478         Add m_CORE2 and m_GENERIC.
1479         * config/i386/predicates.md (bt_comparison_operator): New predicate.
1480         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
1481         (*btsi): Ditto.
1482         (*jcc_btdi_rex64): New instruction and split pattern.
1483         (*jcc_btsi): Ditto.
1484         (*jcc_btsi_1): Ditto.
1485         (*btsq): Fix Intel asm dialect operand order.
1486         (*btrq): Ditto.
1487         (*btcq): Ditto.
1488
1489 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
1490
1491         PR middle-end/36447
1492         * simplify-rtx.c (simplify_subreg): Add check for shift count 
1493         greater than size.
1494
1495 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
1496
1497         * doc/md.texi: Synchronize with later constraints.md change.
1498         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
1499         with a C implementation.
1500         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
1501         MFLO handling.
1502         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
1503         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
1504         when moving to and from MD_REGNUM.
1505         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
1506         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
1507         Handle byte and halfword moves.
1508         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
1509         separately.
1510         * config/mips/constraints.md (h): Turn into NO_REGS.
1511         (l, x): Update documentation.
1512         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
1513         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
1514         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
1515         (HILO): New mode iterator.
1516         (MOVE128): Add TI.
1517         (any_div): New code iterator.
1518         (u): Extend code attribute to div and udiv.
1519         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
1520         d_operand in the splitters.  Remove redundant CONST_INT checks.
1521         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
1522         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
1523         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
1524         accordingly, using normal moves instead of unspecs to move LO into
1525         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
1526         (<u>mulsidi3): Handle expansion in C code.
1527         (<u>mulsidi3_32bit_internal): Rename to...
1528         (<u>mulsidi3_32bit): ...this.
1529         (<u>mulsidi3_32bit_r4000): Fix insn separator.
1530         (*<u>mulsidi3_64bit): Rename to...
1531         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
1532         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
1533         to set LO and HI to the multiplication result.  Use a normal move
1534         for MFLO and an unspec for MFHI.
1535         (*<u>mulsidi3_64bit_parts): Replace with...
1536         (<u>mulsidi3_64bit_hilo): ...this new instruction.
1537         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
1538         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
1539         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
1540         instead of HI.  Split the instruction into a separate multiplication
1541         and MFHI if !TARGET_FIX_R4000.
1542         (<su>muldi3_highpart): Likewise.
1543         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
1544         and the "=h" clobber.
1545         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
1546         (<u>mulditi3): New expander.
1547         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
1548         (madsi): Remove "=h" clobber.
1549         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
1550         Force the modulus result to be a GPR and split the instruction into
1551         a division followed by an MFHI after reload.
1552         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
1553         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
1554         the MIPS16 HIGH define_split.
1555         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
1556         of acc<->gpr moves to "multi".
1557         (*movdi_64bit): Replace the single "x" alternative with
1558         alternatives for moving into and out of "a".
1559         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
1560         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
1561         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
1562         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
1563         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
1564         (movti): New expander.
1565         (*movti, *movti_mips16): New insns.
1566         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
1567         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
1568         (mthi<GPR:mode>_<HILO:mode>): Likewise.
1569         * config/mips/predicates.md (fpr_operand): Delete.
1570         (d_operand): New predicate.
1571
1572 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
1573
1574         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
1575         failure on some Bourne shells.
1576         (x86_64-*-*): Ditto.
1577
1578 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
1579
1580         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
1581
1582 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
1583
1584         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
1585         (sparc-sun-solaris2*): Likewise.
1586
1587 2008-06-09  Arnaud Charlet  <charlet@adacore.com
1588
1589         * doc/install.texi: Update requirements to build the Ada compiler.
1590
1591 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
1592
1593         * df-scan.c (struct df_scan_problem_data): Remove the
1594         mw_link_pool alloc pool.
1595         (df_scan_free_internal): Don't free it.
1596         (df_scan_alloc): Don't allocate it.
1597         * df.h (struct df_link): Update comment.
1598
1599 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
1600
1601         * except.h: Correct checks for when SJLJ exceptions must be used.
1602
1603 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1604
1605         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
1606         default.
1607         
1608 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
1609
1610         PR tree-optimization/36218
1611         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
1612         configure for the build system.
1613         (BUILD_LDFLAGS): Define.
1614         * configure: Regenerate.
1615         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
1616
1617 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
1618
1619         PR target/36424
1620         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
1621         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
1622         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
1623
1624 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
1625
1626         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
1627
1628 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
1629
1630         * config.gcc (Obsolete configurations): Remove list of
1631         configurations.
1632         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
1633         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
1634         targets matched by those patterns.
1635         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
1636         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
1637         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
1638         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
1639         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
1640         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
1641         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
1642         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
1643         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
1644         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
1645         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
1646         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
1647         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
1648         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
1649         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
1650         Make code for Solaris 7 and greater unconditional for Solaris.
1651         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
1652         Remove --with-* handling.
1653         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
1654         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
1655         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
1656         LINK_OS_WINDISS_SPEC): Remove.
1657         * config/rs6000/sysv4.opt (mwindiss): Remove.
1658         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
1659         * configure: Regenerate.
1660         * doc/cpp.texi: Don't mention BeOS.
1661         * doc/extend.texi (interrupt): Don't mention MS1.
1662         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
1663         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
1664         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
1665         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
1666         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
1667         Remove.
1668         * doc/invoke.texi (MT Options): Remove.
1669         (-mwindiss): Remove.
1670         (CRIS Options): Remove cris-axis-aout references.
1671         (HPPA Options): Don't mention hppa1.1-*-pro.
1672         * doc/md.texi: (MorphoTech family): Remove.
1673         * libgcc2.c: Don't handle UWIN.
1674         * config/alpha/t-unicosmk: Remove.
1675         * config/alpha/unicosmk.h: Remove.
1676         * config/arm/kaos-arm.h: Remove.
1677         * config/arm/kaos-strongarm.h: Remove.
1678         * config/arm/strongarm-coff.h: Remove.
1679         * config/arm/strongarm-elf.h: Remove.
1680         * config/arm/strongarm-pe.h: Remove.
1681         * config/arm/t-strongarm-pe: Remove.
1682         * config/arm/t-xscale-coff: Remove.
1683         * config/arm/t-xscale-elf: Remove.
1684         * config/arm/xscale-coff.h: Remove.
1685         * config/arm/xscale-elf.h: Remove.
1686         * config/chorus.h: Remove.
1687         * config/cris/aout.h: Remove.
1688         * config/cris/aout.opt: Remove.
1689         * config/cris/t-aout: Remove.
1690         * config/i386/beos-elf.h: Remove.
1691         * config/i386/kaos-i386.h: Remove.
1692         * config/i386/ptx4-i.h: Remove.
1693         * config/i386/sco5.h: Remove.
1694         * config/i386/sco5.opt: Remove.
1695         * config/i386/sysv4-cpp.h: Remove.
1696         * config/i386/sysv5.h: Remove.
1697         * config/i386/t-beos: Remove.
1698         * config/i386/t-sco5: Remove.
1699         * config/i386/t-uwin: Remove.
1700         * config/i386/uwin.asm: Remove.
1701         * config/i386/uwin.h: Remove.
1702         * config/kaos.h: Remove.
1703         * config/mips/windiss.h: Remove.
1704         * config/mt: Remove directory.
1705         * config/pa/pa-osf.h: Remove.
1706         * config/pa/pa-pro-end.h: Remove.
1707         * config/pa/t-pro: Remove.
1708         * config/ptx4.h: Remove.
1709         * config/rs6000/beos.h: Remove.
1710         * config/rs6000/kaos-ppc.h: Remove.
1711         * config/rs6000/t-beos: Remove.
1712         * config/rs6000/windiss.h: Remove.
1713         * config/sh/kaos-sh.h: Remove.
1714         * config/sol2-6.h: Remove.
1715         * config/sparc/sol26-sld.h: Remove.
1716         * config/sparc/sysv4-only.h: Remove.
1717         * config/vax/bsd.h: Remove.
1718         * config/vax/t-memfuncs: Remove.
1719         * config/vax/ultrix.h: Remove.
1720         * config/vax/vaxv.h: Remove.
1721         * config/windiss.h: Remove.
1722
1723 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
1724
1725         PR rtl-optimization/36438
1726         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
1727         for vector shifts with constant scalar shift operands.
1728
1729 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
1730
1731         * doc/invoke.texi: Document -march=xlr.
1732         * config/mips/xlr.md: New file.
1733         * config/mips/mips.md: Include it.
1734         (cpu): Add "xlr".
1735         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
1736         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
1737         (mips_rtx_cost_data): Likewise.
1738
1739 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
1740
1741         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
1742         PRE_INC and PRE_DEC cases.
1743
1744 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1745
1746         PR rtl-optimization/36419
1747         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
1748         the emitting jump insn.
1749
1750         PR target/36362
1751         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
1752         is not bool, boolify the whole *expr_p and convert to the desired type.
1753
1754 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1755
1756         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
1757         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
1758         Add omp_private_outer_ref hook, add another argument to
1759         omp_clause_default_ctor hook.
1760         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
1761         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
1762         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
1763         hook_tree_tree_tree_tree_null.
1764         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
1765         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
1766         * hooks.c (hook_tree_tree_tree_tree_null): New function.
1767         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
1768         * tree.def (OMP_TASK): New tree code.
1769         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
1770         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
1771         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
1772         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
1773         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
1774         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
1775         OMP_CLAUSE_COLLAPSE_EXPR): Define.
1776         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
1777         (OMP_DIRECTIVE_P): Add OMP_TASK.
1778         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
1779         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
1780         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
1781         and OMP_CLAUSE_UNTIED entries.
1782         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
1783         num_ops to 2.
1784         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
1785         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
1786         * tree-pretty-print.c (dump_omp_clause): Handle
1787         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
1788         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
1789         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
1790         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
1791         warning about unsigned iterators.  Change decl/init/cond/incr
1792         arguments to TREE_VECs, check arguments for all collapsed loops.
1793         (c_finish_omp_taskwait): New function.
1794         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
1795         ws_clauses.
1796         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
1797         default_function_array_conversion on init.  Add par_clauses argument.
1798         If decl is present in parallel's lastprivate clause, change it to
1799         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
1800         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
1801         collapse count in clauses.
1802         (c_parser_omp_for, c_parser_omp_parallel): Adjust
1803         c_parser_omp_for_loop callers.
1804         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
1805         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
1806         (c_parser_omp_clause_name): Handle collapse and untied clauses.
1807         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
1808         functions.
1809         (c_parser_omp_clause_schedule): Handle schedule(auto).
1810         Include correct location in the error message.
1811         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
1812         and PRAGMA_OMP_CLAUSE_UNTIED.
1813         (OMP_TASK_CLAUSE_MASK): Define.
1814         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
1815         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
1816         * tree-nested.c (convert_nonlocal_omp_clauses,
1817         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
1818         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
1819         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
1820         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
1821         OMP_CLAUSE_DECL.
1822         (conver_nonlocal_reference, convert_local_reference,
1823         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
1824         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
1825         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
1826         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
1827         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
1828         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
1829         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
1830         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
1831         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
1832         OMP_CLAUSE_UNTIED.
1833         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
1834         * c-common.h (c_finish_omp_taskwait): New prototype.
1835         * gimple-low.c (lower_stmt): Handle OMP_TASK.
1836         * tree-parloops.c (create_parallel_loop): Create 1 entry
1837         vectors for OMP_FOR_{INIT,COND,INCR}.
1838         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
1839         (make_edges): Handle OMP_TASK.
1840         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
1841         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
1842         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
1843         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
1844         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
1845         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
1846         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
1847         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
1848         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
1849         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
1850         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
1851         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
1852         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
1853         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
1854         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
1855         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
1856         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
1857         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
1858         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
1859         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
1860         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
1861         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
1862         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
1863         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
1864         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
1865         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
1866         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
1867         original iterator is present in lastprivate clause or if
1868         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
1869         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
1870         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
1871         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
1872         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
1873         if it is set, lookup var in outer contexts too.  Handle
1874         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
1875         to be implicitly determined firstprivate for task regions.
1876         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
1877         if it is set, lookup var in outer contexts too.  Set
1878         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
1879         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
1880         OMP_CLAUSE_UNTIED.  Take region_type as last argument
1881         instead of in_parallel and in_combined_parallel.
1882         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
1883         Adjust callers.
1884         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
1885         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
1886         (new_omp_context): Set default_kind to
1887         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
1888         (omp_region_type): New enum.
1889         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
1890         fields, add region_type.
1891         (new_omp_context): Take region_type as argument instead of is_parallel
1892         and is_combined_parallel.
1893         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
1894         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
1895         ctx->is_combined_parallel checks.
1896         (gimplify_omp_task): New function.
1897         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
1898         OMP_CLAUSE_UNTIED.
1899         * omp-low.c (extract_omp_for_data): Use schedule(static)
1900         for schedule(auto).  Handle pointer and unsigned iterators.
1901         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
1902         Add loops argument.  Extract data for collapsed OMP_FOR loops.
1903         (expand_parallel_call): Assert sched_kind isn't auto,
1904         map runtime schedule to index 3.
1905         (struct omp_for_data_loop): New type.
1906         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
1907         Add loop, loops, collapse and iter_type fields.
1908         (workshare_safe_to_combine_p): Disallow combined for if
1909         iter_type is unsigned long long.  Don't combine collapse > 1 loops
1910         unless all bounds and steps are constant.  Adjust extract_omp_for_data
1911         caller.
1912         (expand_omp_for_generic): Handle pointer, unsigned and long long
1913         iterators.  Handle collapsed OMP_FOR loops.  Adjust
1914         for struct omp_for_data changes.  If libgomp function doesn't return
1915         boolean_type_node, add comparison of the return value with 0.
1916         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
1917         pointer, unsigned and long long iterators.  Adjust for struct
1918         omp_for_data changes.
1919         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
1920         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
1921         unsigned long long.  Allocate loops array, pass it to
1922         extract_omp_for_data.  For collapse > 1 loops use always
1923         expand_omp_for_generic.
1924         (omp_context): Add sfield_map and srecord_type fields.
1925         (is_task_ctx, lookup_sfield): New functions.
1926         (use_pointer_for_field): Use is_task_ctx helper.  Change first
1927         argument's type from const_tree to tree.  Clarify comment.
1928         In OMP_TASK disallow copy-in/out sharing.
1929         (build_sender_ref): Call lookup_sfield instead of lookup_field.
1930         (install_var_field): Add mask argument.  Populate both record_type
1931         and srecord_type if needed.
1932         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
1933         in srecord_type.
1934         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
1935         and DECL_FIELD_OFFSET.
1936         (scan_sharing_clauses): Adjust install_var_field callers.  For
1937         firstprivate clauses on explicit tasks allocate the var by value in
1938         record_type unconditionally, rather than by reference.
1939         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
1940         Use is_taskreg_ctx instead of is_parallel_ctx.
1941         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
1942         (create_omp_child_function_name): Add task_copy argument, use
1943         *_omp_cpyfn* names if it is true.
1944         (create_omp_child_function): Add task_copy argument, if true create
1945         *_omp_cpyfn* helper function.
1946         (scan_omp_parallel): Adjust create_omp_child_function callers.
1947         Rename parallel_nesting_level to taskreg_nesting_level.
1948         (scan_omp_task): New function.
1949         (lower_rec_input_clauses): Don't run constructors for firstprivate
1950         explicit task vars which are initialized by *_omp_cpyfn*.  
1951         Pass outer var ref to omp_clause_default_ctor hook if
1952         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
1953         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
1954         OMP_CLAUSE_REDUCTION_INIT.
1955         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
1956         avoid duplicate setting of fields.  Handle
1957         OMP_CLAUSE_PRIVATE_OUTER_REF.
1958         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
1959         copy-out if TREE_READONLY, only copy-in.
1960         (expand_task_copyfn): New function.
1961         (expand_task_call): New function.
1962         (struct omp_taskcopy_context): New type.
1963         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
1964         New functions.
1965         (lower_omp_parallel): Rename to...
1966         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
1967         Call create_task_copyfn if srecord_type is needed.  Adjust
1968         sender_decl type.
1969         (task_shared_vars): New variable.
1970         (check_omp_nesting_restrictions): Warn if work-sharing,
1971         barrier, master or ordered region is closely nested inside OMP_TASK.
1972         Add warnings for barrier if closely nested inside of work-sharing,
1973         ordered, or master region.
1974         (scan_omp_1): Call check_omp_nesting_restrictions even for
1975         GOMP_barrier calls.  Rename parallel_nesting_level to
1976         taskreg_nesting_level.  Handle OMP_TASK.
1977         (lower_lastprivate_clauses): Even if some lastprivate is found on a
1978         work-sharing construct, continue looking for them on parent parallel
1979         construct.
1980         (lower_omp_for_lastprivate): Add lastprivate clauses
1981         to the beginning of dlist rather than end.  Adjust for struct
1982         omp_for_data changes.
1983         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
1984         not after it.  Handle collapsed OMP_FOR loops, adjust for
1985         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
1986         (get_ws_args_for): Adjust extract_omp_for_data caller.
1987         (scan_omp_for): Handle collapsed OMP_FOR
1988         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
1989         (lower_omp_single_simple): If libgomp function doesn't return
1990         boolean_type_node, add comparison of the return value with 0.
1991         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
1992         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
1993         (parallel_nesting_level): Rename to...
1994         (taskreg_nesting_level): ... this.
1995         (is_taskreg_ctx): New function.
1996         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
1997         of is_parallel_ctx.
1998         (execute_lower_omp): Rename parallel_nesting_level to
1999         taskreg_nesting_level.
2000         (expand_omp_parallel): Rename to...
2001         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
2002         Call omp_task_call for OMP_TASK regions.
2003         (expand_omp): Adjust caller, handle OMP_TASK.
2004         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
2005
2006         * bitmap.c (bitmap_default_obstack_depth): New variable.
2007         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
2008         if argument is NULL and bitmap_default_obstack is already initialized.
2009         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
2010         at the end.
2011         * matrix-reorg.c (matrix_reorg): Likewise.
2012
2013 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
2014
2015         * config/i386/i386.md (*indirect_jump): Macroize using P
2016         mode iterator.  Remove !TARGET_64BIT from insn constraints.
2017         (*tablejump_1): Ditto.
2018         (*indirect_jump_rex64): Remove insn pattern.
2019         (*tablejump_1_rex64): Ditto.
2020         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
2021         and eh_return_si insn patterns.
2022
2023 2008-06-06  Richard Guenther  <rguenther@suse.de>
2024
2025         * tree-ssa-structalias.c (merge_smts_into): Remove.
2026         (find_what_p_points_to): Do not bother to compute the
2027         points-to set for pt_anything pointers.
2028         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
2029         for pt_anything pointers is ok.
2030
2031 2008-06-06  Jan Hubicka  <jh@suse.cz>
2032
2033         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
2034
2035 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2036
2037         * cgraph.c: Fix typos in comments.
2038         (cgraph_availability_names): Fix string typo.
2039         * fold-const.c: Fix typos in comments.
2040         (fold_binary): Fix typo in warning.
2041         * genautomata.c: Fix typos in comments.
2042         (check_presence_pattern_sets): Fix typo in local variable.
2043         (output_description): Fix typo in output.
2044         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
2045         * hwint.h: Likewise.
2046         * matrix-reorg.c (check_allocation_function): Likewise.
2047         * omega.c (smooth_weird_equations): Likewise.
2048         * auto-inc-dec.c: Fix typos in comments.
2049         * bb-reorder.c: Likewise.
2050         * builtins.c: Likewise.
2051         * c-common.c: Likewise.
2052         * c-cppbuiltin.c: Likewise.
2053         * c-parser.c: Likewise.
2054         * c-pretty-print.c: Likewise.
2055         * cfgcleanup.c: Likewise.
2056         * cfgexpand.c: Likewise.
2057         * cfghooks.c: Likewise.
2058         * cfglayout.c: Likewise.
2059         * cfgloopmanip.c: Likewise.
2060         * cgraphunit.c: Likewise.
2061         * coverage.c: Likewise.
2062         * dbxout.c: Likewise.
2063         * df-byte-scan.c: Likewise.
2064         * df-core.c: Likewise.
2065         * df-problems.c: Likewise.
2066         * df-scan.c: Likewise.
2067         * dfp.c: Likewise.
2068         * dominance.c: Likewise.
2069         * domwalk.c: Likewise.
2070         * dse.c: Likewise.
2071         * dwarf2out.c: Likewise.
2072         * emit-rtl.c: Likewise.
2073         * et-forest.c: Likewise.
2074         * function.c: Likewise.
2075         * function.h: Likewise.
2076         * gcc.c: Likewise.
2077         * gcov-io.c: Likewise.
2078         * gcov.c: Likewise.
2079         * gcse.c: Likewise.
2080         * genattrtab.c: Likewise.
2081         * ggc-page.c: Likewise.
2082         * gimplify.c: Likewise.
2083         * gthr-lynx.h: Likewise.
2084         * haifa-sched.c: Likewise.
2085         * ipa-cp.c: Likewise.
2086         * ipa-inline.c: Likewise.
2087         * ipa-prop.h: Likewise.
2088         * ipa-pure-const.c: Likewise.
2089         * ipa-struct-reorg.c: Likewise.
2090         * ipa-struct-reorg.h: Likewise.
2091         * ipa-type-escape.c: Likewise.
2092         * ipa.c: Likewise.
2093         * loop-doloop.c: Likewise.
2094         * mips-tfile.c: Likewise.
2095         * mkmap-flat.awk: Likewise.
2096         * mkmap-symver.awk: Likewise.
2097         * modulo-sched.c: Likewise.
2098         * omp-low.c: Likewise.
2099         * optabs.c: Likewise.
2100         * optabs.h: Likewise.
2101         * opts.c: Likewise.
2102         * passes.c: Likewise.
2103         * postreload-gcse.c: Likewise.
2104         * postreload.c: Likewise.
2105         * predict.c: Likewise.
2106         * pretty-print.h: Likewise.
2107         * profile.c: Likewise.
2108         * protoize.c: Likewise.
2109         * ra-conflict.c: Likewise.
2110         * real.c: Likewise.
2111         * recog.c: Likewise.
2112         * regclass.c: Likewise.
2113         * regs.h: Likewise.
2114         * reload.c: Likewise.
2115         * rtl-error.c: Likewise.
2116         * rtlanal.c: Likewise.
2117         * scan.h: Likewise.
2118         * sched-rgn.c: Likewise.
2119         * see.c: Likewise.
2120         * stmt.c: Likewise.
2121         * target.h: Likewise.
2122         * tree-dfa.c: Likewise.
2123         * tree-eh.c: Likewise.
2124         * tree-flow-inline.h: Likewise.
2125         * tree-inline.c: Likewise.
2126         * tree-into-ssa.c: Likewise.
2127         * tree-loop-distribution.c: Likewise.
2128         * tree-nested.c: Likewise.
2129         * tree-parloops.c: Likewise.
2130         * tree-pass.h: Likewise.
2131         * tree-pretty-print.c: Likewise.
2132         * tree-profile.c: Likewise.
2133         * tree-scalar-evolution.c: Likewise.
2134         * tree-sra.c: Likewise.
2135         * tree-ssa-alias-warnings.c: Likewise.
2136         * tree-ssa-ccp.c: Likewise.
2137         * tree-ssa-coalesce.c: Likewise.
2138         * tree-ssa-dom.c: Likewise.
2139         * tree-ssa-dse.c: Likewise.
2140         * tree-ssa-forwprop.c: Likewise.
2141         * tree-ssa-live.c: Likewise.
2142         * tree-ssa-live.h: Likewise.
2143         * tree-ssa-loop-im.c: Likewise.
2144         * tree-ssa-loop-ivopts.c: Likewise.
2145         * tree-ssa-loop-niter.c: Likewise.
2146         * tree-ssa-loop-prefetch.c: Likewise.
2147         * tree-ssa-phiopt.c: Likewise.
2148         * tree-ssa-phiprop.c: Likewise.
2149         * tree-ssa-sccvn.c: Likewise.
2150         * tree-ssa-ter.c: Likewise.
2151         * tree-ssa-threadupdate.c: Likewise.
2152         * tree-ssa.c: Likewise.
2153         * tree-vect-analyze.c: Likewise.
2154         * tree-vect-transform.c: Likewise.
2155         * tree-vectorizer.c: Likewise.
2156         * tree-vn.c: Likewise.
2157         * tree-vrp.c: Likewise.
2158         * tree.c: Likewise.
2159         * tree.def: Likewise.
2160         * tree.h: Likewise.
2161         * unwind-dw2-fde.c: Likewise.
2162         * unwind.inc: Likewise.
2163         * value-prof.c: Likewise.
2164         * vmsdbgout.c: Likewise.
2165
2166 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
2167
2168         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
2169         always place FP constants in the TOC for TARGET_POWERPC64.
2170         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
2171
2172 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
2173
2174         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
2175         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
2176         enable for TARGET_E500_DOUBLE.
2177         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
2178         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
2179         floating-point modes like integer modes for E500 double.
2180         (rs6000_legitimate_offset_address_p): Likewise.
2181         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
2182         addressing for DDmode for E500 double.
2183         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
2184         modes as using 64-bits of registers for E500 double.
2185         (spe_build_register_parallel): Do not handle DDmode or TDmode.
2186         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
2187         specially for E500 double.
2188         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
2189         TDmode for E500 double.
2190         (rs6000_gimplify_va_arg): Only handle SDmode in registers
2191         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
2192         (rs6000_split_multireg_move): Do not handle TDmode specially for
2193         E500 double.
2194         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
2195         using 64-bit registers for E500 double.
2196         (emit_frame_save): Do not handle DDmode specially for E500 double.
2197         (gen_frame_mem_offset): Likewise.
2198         (rs6000_function_value): Do not call spe_build_register_parallel
2199         for DDmode or TDmode.
2200         (rs6000_libcall_value): Likewise.
2201         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
2202         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
2203         for E500 double.
2204
2205 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2206
2207         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
2208         in comments.
2209
2210 2008-06-04  Junjie Gu <jgu@tensilica.com>
2211
2212         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
2213         comparison for frame pointers.
2214
2215 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
2216
2217         PR target/27386
2218         * config/avr/avr.h (PUSH_ROUNDING): Remove.
2219
2220 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
2221
2222         PR target/30243
2223         * builtins.c (expand_builtin_signbit): Don't take lowpart when
2224         register is already smaller or equal to required mode. 
2225
2226 2008-06-04  Xinliang David Li  <davidxl@google.com>
2227
2228         * tree-call-cdce.c: New file. 
2229         (cond_dead_built_in_calls): New static variable.
2230         (input_domain): New struct.
2231         (check_pow): New function.
2232         (check_builtin_call): Ditto.
2233         (check_target_format): Ditto.
2234         (is_call_dce_candidate): Ditto.
2235         (gen_one_condition): Ditto.
2236         (gen_conditions_for_domain): Ditto.
2237         (get_domain): Ditto.
2238         (gen_conditions_for_pow_cst_base): Ditto.
2239         (gen_conditions_for_pow_int_base): Ditto.
2240         (gen_conditions_for_pow): Ditto.
2241         (get_no_error_domain): Ditto.
2242         (gen_shrink_wrap_conditions): Ditto.
2243         (shrink_wrap_one_built_in_call): Ditto.
2244         (shink_wrap_conditional_dead_built_in_calls): Ditto.
2245         (tree_call_cdce): Ditto.
2246         (gate_call_cdce): Ditto.
2247         (pass_call_cdce): New gimple pass.
2248         * passes.c: (init_optimization_passes): New pass.
2249         * tree-pass.h: New pass declaration.
2250         * opts.c (decode_options): New flag setting.
2251         * common.opt: Add -ftree-builtin-call-dce flag.
2252         * Makefile.in: Add new source file.
2253         * tempvar.def: New tv_id.
2254         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
2255
2256 2008-06-04  Richard Guenther  <rguenther@suse.de>
2257
2258         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
2259         (is_call_clobbered): Always check var_ann->call_clobbered.
2260         (mark_call_clobbered): Always set var_ann->call_clobbered.
2261         (clear_call_clobbered): Always clear var_ann->call_clobbered.
2262         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
2263         (reset_alias_info): Clear call clobbering info on MTAGs and
2264         globals as well.
2265         (set_pt_anything): Set pt_global_mem.
2266         (create_tag_raw): Adjust comment.
2267         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
2268
2269 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
2270             Maxim Kuvyrkov  <maxim@codesourcery.com>
2271
2272         * config/m68k/m68k.opt (mxgot): New option.
2273         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
2274         (m68k_output_addr_const_extra): New.
2275         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
2276         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
2277         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
2278         * doc/invoke.texi (M680x0 Options): Document -mxgot.
2279
2280 2008-06-04  Richard Guenther  <rguenther@suse.de>
2281
2282         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
2283         negative or non-representable offsets.
2284
2285 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
2286
2287         * config/i386/i386.c (ix86_gen_leave): New.
2288         (ix86_gen_pop1): Likewise.
2289         (ix86_gen_add3): Likewise.
2290         (ix86_gen_sub3): Likewise.
2291         (ix86_gen_sub3_carry): Likewise.
2292         (ix86_gen_one_cmpl2): Likewise.
2293         (ix86_gen_monitor): Likewise.
2294         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
2295         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
2296         ix86_gen_one_cmpl2 and ix86_gen_monitor.
2297         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
2298         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
2299         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
2300         (ix86_expand_epilogue): Updated.
2301         (print_operand): Handle integer register operand for 'z'.
2302         (ix86_expand_strlensi_unroll_1): Likewise.
2303         (ix86_expand_strlen): Likewise.
2304         (ix86_expand_builtin): Likewise.
2305         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
2306         mov{q}/mov{l} and add{q}/add{l}.
2307
2308 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
2309
2310         * config/i386/i386.md (P): New mode iterator.
2311         (SFmode push_operand splitter): Macroize DImode and SImode pushes
2312         using P mode iterator.
2313         (DFmode push_operand splitter): Ditto.
2314         (XFmode push_operand splitter): Ditto.
2315         (DFmode float_extend SFmode push_operand splitter): Ditto.
2316         (XFmode float_extend SFmode push_operand splitter): Do not generate
2317         SImode pushes for 64bit target.  Macroize Dimode and SImode
2318         pushes using P mode iterator.
2319         (XFmode float_extend DFmode push_operand splitter): Ditto.
2320
2321 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
2322
2323         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
2324         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
2325         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
2326         return type to int.
2327         (ix86_call_abi_override): Remove check for call_used_regs.
2328
2329 2008-06-03  Richard Guenther  <rguenther@suse.de>
2330
2331         * tree-ssa-structalias.c (find_func_aliases): Add constraints
2332         for the lhs of calls if the return type contains pointers.
2333
2334 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
2335
2336         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
2337         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
2338         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
2339         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
2340         of cfun and DEFAULT_ABI to deceide abi mode.
2341         (DEFAULT_ABI): New.
2342         (REG_PARM_STACK_SPACE): Removed.
2343         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
2344         (STACK_BOUNDARY): Use default target to deceide stack boundary.
2345         * config/i386/i386-protos.h (ix86_cfun_abi): New.
2346         (ix86_function_abi): Likewise.
2347         (ix86_function_type_abi): Likewise.
2348         (ix86_call_abi_override): Likewise.
2349         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
2350         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
2351         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
2352         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
2353         specific defines.
2354         (X86_64_REGPARM_MAX): New.
2355         (X86_64_SSE_REGPARM_MAX): New.
2356         (X64_REGPARM_MAX): New.
2357         (X64_SSE_REGPARM_MAX): New.
2358         (X86_32_REGPARM_MAX): New.
2359         (X86_32_SSE_REGPARM_MAX): New.
2360         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
2361         (ix86_function_regparm): Handle user calling abi.
2362         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
2363         by DEFAULT_ABI versus SYSV_ABI check.
2364         (ix86_reg_parm_stack_space): New.
2365         (ix86_function_type_abi): New.
2366         (ix86_call_abi_override): New.
2367         (ix86_function_abi): New.
2368         (ix86_cfun_abi): New.
2369         (init_cumulative_args): Call abi specific initialization.
2370         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
2371         (function_arg_64): Extend SSE_REGPARM_MAX check.
2372         (function_arg (): Remove TARGET_64BIT_MS_ABI.
2373         (ix86_pass_by_reference): Likewise.
2374         (ix86_function_value_regno_p): Likewise.
2375         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
2376         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
2377         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
2378         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
2379         (setup_incoming_varargs_64): Adjust regparm for call abi.
2380         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
2381         (ix86_va_start): Likewise.
2382         (ix86_gimplify_va_arg): Likewise.
2383         (ix86_expand_prologue): Likewise.
2384         (output_pic_addr_const): Likewise.
2385         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
2386         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
2387         (x86_output_mi_thunk): Likewise.
2388         (x86_function_profiler): Likewise.
2389         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
2390         (SYSV_ABI, MS_ABI): New constants.
2391         (DEFAULT_ABI): New.
2392         (init_regs): Add prototype of function in regclass.c file.
2393         (OVERRIDE_ABI_FORMAT): New.
2394         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
2395         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
2396         (OUTGOING_REG_PARM_STACK_SPACE): New.
2397         (ix86_reg_parm_stack_space): New prototype.
2398         (CUMULATIVE_ARGS): Add call_abi member.
2399         (machine_function): Add call_abi member.
2400         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
2401         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
2402
2403 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
2404
2405         PR target/34879
2406         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
2407         (avr_builtin_setjmp_frame_value): New function.
2408         * config/avr/avr.md (nonlocal_goto_receiver): Define.
2409         (nonlocal_goto): Define.
2410
2411 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
2412
2413         * config/mips/mips.c (mips_emit_loadgp): Return early if
2414         there is nothing do to, otherwise emit a blockage if
2415         !TARGET_EXPLICIT_RELOCS || crtl->profile.
2416         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
2417
2418 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2419
2420         * configure.ac: Drop unneeded backslash ending up in config.in.
2421         * acinclude.m4: Likewise.
2422         * config.in: Regenerate.
2423
2424 2008-05-26  Jan Hubicka  <jh@suse.cz>
2425
2426         * predict.c (maybe_hot_frequency_p): Break out of...
2427         (maybe_hot_bb_p): ... here.
2428         (maybe_hot_edge_p): New.
2429         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
2430         * basic-block.h (maybe_hot_edge_p): Declare.
2431
2432 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
2433
2434         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
2435         (*cmpfp_<mode>_cc): Ditto.
2436         (*fp_jcc_8<mode>_387): Ditto.
2437         (*fop_<MODEF:mode>_2_i387): Ditto.
2438         (*fop_<MODEF:mode>_3_i387): Ditto.
2439         (*fop_xf_2_i387): Ditto.
2440         (*fop_xf_3_i387): Ditto.
2441
2442 2008-06-02  Tomas Bily  <tbily@suse.cz>
2443
2444         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
2445
2446 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
2447
2448         * config/mips/mips.c (mips_valid_offset_p): New function.
2449         (mips_valid_lo_sum_p): Likewise.
2450         (mips_classify_address): Use them.
2451         (mips_force_address): New function.
2452         (mips_legitimize_address): Use it.
2453         * config/mips/mips.md (MOVE128): New mode iterator.
2454         (movtf): Require TARGET_64BIT.  Remove empty strings.
2455         (*movtf_internal): Rename to...
2456         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
2457         of "R" and use {,fp}{load,store} attributes instead of "multi".
2458         Use a separate define_split.
2459         (*movtf_mips16): New pattern.
2460
2461 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
2462
2463         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
2464         * config/mips/mips.c (mips_expand_before_return): New function.
2465         (mips_expand_epilogue): Call it.
2466         * config/mips/mips.md (return): Turn into a define_expand.
2467         (*return): New insn.
2468
2469 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
2470
2471         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
2472         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
2473         functions.  Do not emit uses and clobbers of CONCATs; individually
2474         use and clobber their operands.
2475         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
2476         gen_clobber, emit_use and gen_use.
2477         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
2478         (expand_builtin_return): Likewise.
2479         * cfgbuild.c (count_basic_blocks): Likewise.
2480         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2481         * explow.c (emit_stack_restore): Likewise.
2482         * expmed.c (extract_bit_field_1): Likewise.
2483         * expr.c (convert_move, emit_move_complex_parts): Likewise.
2484         (emit_move_multi_word, store_constructor): Likewise.
2485         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
2486         (thread_prologue_and_epilogue_insns): Likewise.
2487         * lower-subreg.c (resolve_simple_move): Likewise.
2488         * optabs.c (widen_operand, expand_binop): Likewise.
2489         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
2490         * reload.c (find_reloads): Likewise.
2491         * reload1.c (eliminate_regs_in_insn): Likewise.
2492         * stmt.c (expand_nl_goto_receiver): Likewise.
2493         * config/alpha/alpha.md (builtin_longjmp): Likewise.
2494         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
2495         * config/arm/arm.c (arm_load_pic_register): Likewise.
2496         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
2497         * config/arm/arm.md (untyped_return): Likewise.
2498         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
2499         * config/avr/avr.c (expand_prologue): Likewise.
2500         * config/bfin/bfin.c (do_unlink): Likewise.
2501         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
2502         * config/cris/cris.c (cris_expand_prologue): Likewise.
2503         * config/darwin.c (machopic_indirect_data_reference): Likewise.
2504         (machopic_legitimize_pic_address): Likewise.
2505         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
2506         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
2507         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
2508         (ix86_expand_convert_uns_didf_sse): Likewise.
2509         (ix86_expand_vector_init_general): Likewise.
2510         * config/ia64/ia64.md (eh_epilogue): Likewise.
2511         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
2512         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
2513         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
2514         (config/iq2000/iq2000.c): Likewise.
2515         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
2516         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
2517         (builtin_longjmp): Likewise.
2518         * config/mn10300/mn10300.md (call, call_value): Likewise.
2519         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
2520         * config/pdp11/pdp11.md (abshi2): Likewise.
2521         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
2522         * config/s390/s390.c (s390_emit_prologue): Likewise.
2523         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
2524         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
2525         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
2526         * config/sh/sh.c (prepare_move_operands): Likewise.
2527         (output_stack_adjust, sh_expand_epilogue): Likewise.
2528         (sh_set_return_address, sh_expand_t_scc): Likewise.
2529         * config/sparc/sparc.c (load_pic_register): Likewise.
2530         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
2531         * config/spu/spu.c (spu_expand_epilogue): Likewise.
2532         * config/v850/v850.c (expand_epilogue): Likewise.
2533
2534 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
2535
2536         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
2537         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
2538         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
2539         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
2540         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
2541         stack pointer register.
2542         (output_movhi): Remove code for interrupt specific writing to the 
2543         stack pointer register.
2544
2545 2008-05-31  Richard Guenther  <rguenther@suse.de>
2546
2547         PR tree-optimization/34244
2548         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
2549         (tree_expr_nonzero_warnv_p): Likewise.
2550         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
2551         ssa_name_nonnegative_p.
2552         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
2553         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
2554         not tree_expr_nonzero_warnv_p.
2555
2556         PR tree-optimization/36262
2557         Revert
2558         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
2559
2560         PR tree-optimization/34244
2561         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
2562         (record_numbers_of_iterations): New function.
2563         (execute_vrp): Cache the numbers of iterations of loops.
2564         * tree-scalar-evolution.c (scev_reset_except_niters):
2565         New function.
2566         (scev_reset): Use scev_reset_except_niters.
2567         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
2568
2569 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
2570
2571         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2572         __WORKAROUND_RETS when appropriate.
2573
2574 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
2575
2576         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
2577         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
2578         mode iterator.
2579         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
2580         *fop_df_comm_sse insn patterns using MODEF mode iterator.
2581         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
2582         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
2583         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
2584         *fop_df_1_mixed insn patterns using MODEF mode iterator.
2585         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
2586         *fop_df_1_sse insn patterns using MODEF mode iterator.
2587         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
2588         *fop_df_1_i387 insn patterns using MODEF mode iterator.
2589         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
2590         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
2591         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
2592         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
2593         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
2594         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
2595         (*fop_xf_4_i387): Use <MODE> for mode attribute.
2596         (*fop_xf_5_i387): Ditto.
2597         (*fop_xf_6_i387): Ditto.
2598
2599 2008-05-30  Richard Guenther  <rguenther@suse.de>
2600
2601         * builtins.c (build_string_literal): Avoid generating
2602         a non-gimple_val result.
2603
2604 2008-05-30  DJ Delorie  <dj@redhat.com>
2605
2606         * exec-tool.in: Use an environment variable (private) instead of a
2607         file (shared) as a semaphore, so as to not break parallel builds.
2608
2609 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
2610
2611         * optabs.c (maybe_encapsulate_block): Remove.
2612         (emit_libcall_block): Adjust accordingly.
2613         * optabs.h (maybe_encapsulate_block): Remove prototype.
2614
2615         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
2616         Don't use maybe_encapsulate_block.
2617
2618 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
2619
2620         * config/rs6000/rs6000.c (rs6000_legitimize_address,
2621         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
2622         rtx is a SYMBOL_REF before calling get_pool_constant.
2623
2624 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
2625
2626         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
2627
2628 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
2629
2630         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
2631         rather than OS names to choose INO_T_EQ definition.
2632         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
2633         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
2634
2635 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
2636
2637         PR target/36348
2638         * config/darwin-f.c: New.
2639         * config/t-darwin: Added rule to build darwin-f.o.
2640         * config.gcc: Defined new variable, fortran_target_objs.
2641         (*-*-darwin*): Set fortran_target_objs.
2642         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
2643         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
2644         * configure: Regenerated.
2645
2646 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
2647
2648         PR target/35771
2649         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
2650         canonical type if needed.
2651
2652 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
2653
2654         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
2655
2656 2008-05-29  Richard Guenther  <rguenther@suse.de>
2657
2658         PR tree-optimization/36343
2659         PR tree-optimization/36346
2660         PR tree-optimization/36347
2661         * tree-flow.h (clobber_what_p_points_to): Declare.
2662         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
2663         pointed-to variable is dereferenced is irrelevant to whether
2664         the pointer can access the pointed-to variable.
2665         (clobber_what_p_points_to): New function.
2666         * tree-ssa-alias.c (set_initial_properties): Use it.
2667         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
2668         call clobber check for NMTs.
2669
2670 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
2671         
2672         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
2673         for printing gcov_type.
2674
2675 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
2676
2677         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
2678         and the eh region information.
2679         * value-prof.c (gimple_move_stmt_histograms): New function.
2680         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
2681
2682 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
2683
2684         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
2685
2686 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
2687
2688         * value-prof.c (tree_ic_transform): Print counts.
2689         * tree-profile.c (tree_gen_ic_func_profiler):
2690         Clear __gcov_indreict_call_callee variable to avoid misattribution
2691         of the profile.
2692
2693 2008-05-28  Rafael Espindola  <espindola@google.com>
2694
2695         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
2696         invalid sharing.
2697
2698 2008-05-28  Richard Guenther  <rguenther@suse.de>
2699
2700         PR tree-optimization/36339
2701         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
2702         and clobbering code out of the loop.
2703
2704 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
2705
2706         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
2707         letters defined.
2708
2709         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
2710         s390_contiguous_bitmask_p, s390_symref_operand_p,
2711         s390_check_symref_alignment, s390_reload_larl_operand,
2712         s390_reload_symref_address): New functions.
2713         (s390_branch_condition_mnemonic): Support compare and branch
2714         instructions.
2715         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
2716         and 'W' constraints.
2717         (s390_secondary_reload): Add secondary reloads for unaligned
2718         symbol refs or symbol refs to floating point or QI/TI mode
2719         integer values.
2720         (legitimate_address_p): Accept symbol references as addresses.
2721         (s390_expand_insv): Use rotate and insert selected bits
2722         instruction for insv when building for z10.
2723         (print_operand_address): Handle symbol ref addresses.
2724         (print_operand): Output modifier 'c' added for signed byte values.
2725         (s390_encode_section_info): Mark symbol refs with
2726         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
2727
2728         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
2729         (length attribute): RRF, RRR have 4 byte length.
2730         (FPALL, INTALL): New mode iterators added.
2731         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
2732         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
2733         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
2734         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
2735         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
2736         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
2737         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
2738         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
2739         instructions.
2740         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
2741         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
2742         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
2743         reload<INTALL:mode><P:mode>_toreg_z10,
2744         reload<FPALL:mode><P:mode>_tomem_z10,
2745         reload<FPALL:mode><P:mode>_toreg_z10,
2746         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
2747         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
2748         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
2749         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
2750         definition.
2751         (movmem, clrmem, cmpmem): New splitters added.
2752
2753         * config/s390/predicates.md (larl_operand): Use
2754         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
2755         SYMBOL_REF_ALIGN1_P.
2756         (s390_signed_integer_comparison,
2757         s390_unsigned_integer_comparison): New predicates.
2758
2759         * config/s390/s390-protos.h (s390_check_symref_alignment,
2760         s390_contiguous_bitmask_p, s390_reload_larl_operand,
2761         s390_reload_symref_address,
2762         s390_compare_and_branch_condition_mask): Prototypes added.
2763
2764         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
2765         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
2766         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
2767
2768 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
2769
2770         * config/s390/s390.c (z10_cost): New cost function for z10.
2771         (s390_handle_arch_option, override_options): Support -march=z10 switch.
2772         (s390_issue_rate): Adjust issue rate for z10.
2773         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
2774         (processor_flags): Add PF_Z10.
2775         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
2776         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
2777         * gcc/config.gcc: Add z10.
2778
2779 2008-05-28  Richard Guenther  <rguenther@suse.de>
2780
2781         PR tree-optimization/36291
2782         * tree-flow. h (struct gimple_df): Remove var_anns member.
2783         * tree-flow-inline.h (gimple_var_anns): Remove.
2784         (var_ann): Simplify.
2785         * tree-dfa.c (create_var_ann): Simplify.
2786         (remove_referenced_var): Clear alias info from var_anns of globals.
2787         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
2788         (delete_tree_ssa): Clear alias info from var_anns of globals.
2789         Do not free var_anns.
2790         (var_ann_eq): Remove.
2791         (var_ann_hash): Likewise.
2792
2793 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
2794
2795         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
2796         and loongson2f entries.
2797         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
2798         * config/mips/mips.h (processor_type): Add Loongson-2E
2799         and Loongson-2F entries.
2800         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
2801         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
2802         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
2803         * doc/invoke.texi (MIPS Options): Document loongson2e
2804         and loongson2f processor names.
2805
2806 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2807
2808         PR target/35767
2809         PR target/35771
2810         * config/i386/i386.c (ix86_function_arg_boundary): Use
2811         alignment of canonical type.
2812         (ix86_expand_vector_move): Check unaligned memory access for
2813         all SSE modes.
2814
2815 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2816
2817         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
2818         Moved to the front of file.
2819
2820 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
2821             H.J. Lu  <hongjiu.lu@intel.com>
2822
2823         * dwarf2out.c (current_fde): New.
2824         (add_cfi): Use it.
2825         (lookup_cfa:): Likewise.
2826         (dwarf2out_end_epilogue): Likewise.
2827         (dwarf2out_note_section_used): Likewise.
2828
2829 2008-05-27  Michael Matz  <matz@suse.de>
2830
2831         PR c++/27975
2832         * c.opt (Wenum-compare): New warning option.
2833         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
2834
2835 2008-05-27  Michael Matz  <matz@suse.de>
2836
2837         PR middle-end/36326
2838         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
2839         non-BLKmode types.
2840         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
2841         into memory as tail calls.
2842
2843 2008-05-27  Richard Guenther  <rguenther@suse.de>
2844
2845         PR tree-optimization/36339
2846         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
2847         pointers cause all addressable variables to be call clobbered.
2848
2849 2008-05-27  Richard Guenther  <rguenther@suse.de>
2850
2851         PR tree-optimization/36245
2852         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
2853
2854 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
2855
2856         * config/s390/s390.md: Replace all occurences of the 'm'
2857         constraint with 'RT'.
2858
2859 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
2860
2861         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
2862         definitions added.
2863         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
2864         "*movdi_64".
2865         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
2866         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
2867         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
2868
2869 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
2870
2871         * reload.c: (find_reloads): Skip alternatives according to the
2872         "enabled" attribute. Constify the constraint variable.
2873         * recog.c (get_attr_enabled): Add default implementation.
2874         (extract_insn): Set the alternative_enabled_p array
2875         in the recog_data struct.
2876         (preprocess_constraints, constrain_operands): Skip
2877         alternatives according to the "enabled" attribute
2878         * recog.h (struct recog_data): New field alternative_enabled_p.
2879         (skip_alternative): New inline function.
2880         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
2881         (record_reg_classes): Skip alternative according to the
2882         "enabled" attribute.
2883
2884         * doc/md.texi: Add documention for the "enabled" attribute.
2885
2886 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
2887
2888         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
2889         * postreload.c (reload_cse_simplify_operands): Replace 'm'
2890         constraint with TARGET_MEM_CONSTRAINT.
2891         * recog.c (asm_operand_ok, preprocess_constraints,
2892         constrain_operands): Likewise.
2893         * regclass.c (record_reg_classes): Likewise.
2894         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
2895         * reload1.c (maybe_fix_stack_asms): Likewise.
2896         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
2897         * recog.h: Adjust comment.
2898         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
2899         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
2900         * doc/md.texi: Add a note to description of 'm' constraint.
2901         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
2902
2903 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2904
2905         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
2906         that the bitfield is of integral type before testing its precision.
2907
2908 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2909             Sa Liu  <saliu@de.ibm.com> 
2910
2911         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
2912         __modti3, __udivti3, __umodti3 and __udivmodti4.
2913         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
2914         that implement TImode mul and div functions.
2915         * config/spu/multi3.c: New. Implement __multi3.
2916         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
2917         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
2918         functions on SPU.
2919
2920 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
2921
2922         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
2923         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
2924         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
2925         tls_sysv_suffix): New mode and mode attribute iterators.
2926         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
2927         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
2928         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
2929         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
2930         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
2931         iterators.
2932
2933 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2934
2935         PR tree-optimization/36329
2936         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
2937         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
2938         * cgraphbuild.c (initialize_inline_failed): Use the latter
2939         macro in lieu of the former.
2940         * ipa-inline.c (cgraph_mark_inline): Likewise.
2941         (cgraph_decide_inlining_of_small_function): Likewise.
2942         (cgraph_decide_inlining): Likewise.
2943         (cgraph_decide_inlining_incrementally): Likewise.
2944
2945 2008-05-26  Tristan Gingold  <gingold@adacore.com>
2946             Anatoly Sokolov  <aesok@post.ru>
2947
2948         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
2949         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
2950         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
2951         optimization for 'avr6' architecture.
2952
2953 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
2954
2955         PR target/34932
2956         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
2957
2958 2008-05-26  Richard Guenther  <rguenther@suse.de>
2959
2960         * tree-ssa-sccvn.c (expr_has_constants): Declare.
2961         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
2962
2963 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
2964
2965         PR middle-end/36253
2966         * caller-save.c (insert_restore): Verify alignment of spill space.
2967         (insert_save): Likewise.
2968         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
2969         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
2970         (STACK_SLOT_ALIGNMENT): Likewise.
2971         * function.c (LOCAL_ALIGNMENT): Removed.
2972         (get_stack_local_alignment): New.
2973         (assign_stack_local): Use it.  Set alignment on stack slot.
2974         (assign_stack_temp_for_type): Use get_stack_local_alignment.
2975         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
2976         (STACK_SLOT_ALIGNMENT): New.
2977         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
2978         stack slot in XFmode.
2979
2980         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
2981
2982 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
2983
2984         PR/36321
2985         * config/i386/i386.md (allocate_stack_worker_64): Make sure
2986         argument operand in rax isn't removed.
2987
2988 2008-05-26  Richard Guenther  <rguenther@suse.de>
2989
2990         PR middle-end/36300
2991         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
2992         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
2993
2994 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
2995
2996         PR bootstrap/36331
2997         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
2998
2999 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
3000
3001         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
3002         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
3003
3004 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3005
3006         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
3007         build a trampoline if we don't want one.
3008         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
3009         return zero for nested functions if we don't want a trampoline.
3010
3011 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
3012
3013         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
3014
3015 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
3016
3017         PR fortran/18428
3018         * c.opt: Removed undocumented option '-lang-fortran'.
3019         * c-common.h: Removed global variable 'lang_fortran'.
3020         * c-opts.c (c_common_handle_option): Removed code to handle
3021         option '-lang-fortran'. Updated includes.
3022         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
3023         definition of '__GFORTRAN__'.
3024         (define__GNUC__): Reimplemented to use BASEVER and
3025         cpp_define_formatted.
3026         (builtin_define_with_value_n): Removed.
3027         * c-incpath.h: Renamed to ...
3028         * incpath.h: ... this.
3029         * c-incpath.c: Renamed to ...
3030         * incpath.c: ... this. Updated includes.
3031         * fix-header.c: Updated includes.
3032         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
3033         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
3034         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
3035
3036 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3037
3038         * tree.h: Update the table of flags used on tree nodes.
3039         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
3040         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
3041         (FORCED_LABEL): Add access check.
3042         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
3043         (ASM_INPUT_P): Likewise.
3044         (ASM_VOLATILE_P): Likewise.
3045         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
3046         (OMP_SECTION_LAST): Access private_flag directly.
3047         (OMP_RETURN_NOWAIT): Likewise.
3048         (OMP_PARALLEL_COMBINED): Likewise.
3049         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
3050         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
3051         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
3052         deprecated_flag directly.
3053
3054 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3055
3056         * final.c (frame_pointer_needed): Removed.
3057         * flags.h (frame_pointer_needed): Likewise.
3058
3059         * function.h (rtl_data): Add frame_pointer_needed.
3060         (frame_pointer_needed): New.
3061
3062 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
3063
3064         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
3065
3066 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
3067
3068         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
3069         SRC is a REG.
3070
3071 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
3072
3073         * c-common.c (strip_array_types): Move function to..
3074         * tree.c: ..here.
3075         (get_inner_array_type): Delete.
3076         * c-common.h (strip_array_types): Move declaration to..
3077         * tree.h: ..here.
3078         (get_inner_array_type): Delete.
3079         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
3080         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
3081         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3082         * config/pa/pa.c (emit_move_sequence): Likewise.
3083
3084 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3085
3086         * config/i386/i386.md (*sse_prologue_save_insn): Set length
3087         attribute to 34.
3088
3089 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
3090
3091         * function.c: Include target hook for nonlocal_goto frame value.
3092
3093 2008-05-24  Richard Guenther  <rguenther@suse.de>
3094
3095         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
3096         variable can be only accessed through a pointer or a union.
3097
3098 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3099
3100         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
3101         * doc/extend.texi: Likewise.
3102
3103 2008-05-23  DJ Delorie  <dj@redhat.com>
3104
3105         * config/m32c/jump.md (untyped_call): Add.
3106
3107         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
3108         for A24 to PSImode.
3109         (m32c_address_cost): Detail costs for indirect offsets.
3110
3111 2008-05-23  Rafael Espindola  <espindola@google.com>
3112
3113         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
3114         if a node is a SUBREG.
3115         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
3116         is a SUBREG.
3117
3118 2008-05-23  Paul Brook  <paul@codesourcery.com>
3119             Carlos O'Donell  <carlos@codesourcery.com>
3120
3121         * doc/extend.texi: Clarify use of __attribute__((naked)).
3122         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
3123         * target.h (gcc_target): Add allocate_stack_slots_for_args.
3124         * function.c (use_register_for_decl): Use
3125         targetm.calls.allocate_stack_slots_for_args.
3126         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
3127         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
3128         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
3129
3130 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3131
3132         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
3133
3134 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
3135
3136         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
3137         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
3138         is only rounded once.
3139
3140 2008-05-23  Richard Guenther  <rguenther@suse.de>
3141
3142         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
3143
3144 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
3145             Jakub Jelinek  <jakub@redhat.com>
3146
3147         PR target/36079
3148         * configure.ac: Handle --enable-cld.
3149         * configure: Regenerated.
3150         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
3151         * config/i386/i386.h (struct machine_function): Add needs_cld field.
3152         (ix86_current_function_needs_cld): New define.
3153         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
3154         (cld): New isns pattern.
3155         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
3156         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
3157         * config/i386/i386.opt (mcld): New option.
3158         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
3159         TARGET_CLD and ix86_current_function_needs_cld.
3160         (override_options): Use -mcld by default for 32-bit code if
3161         USE_IX86_CLD.
3162
3163         * doc/install.texi (Options specification): Document --enable-cld.
3164         * doc/invoke.texi (Machine Dependent Options)
3165         [i386 and x86-64 Options]: Add -mcld option.
3166         (Intel 386 and AMD x86-64 Options): Document -mcld option.
3167
3168 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
3169         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
3170         (return_in_memory_64): Likewise.
3171         (return_in_memory_ms_64): Likewise.
3172
3173 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3174
3175         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
3176         * builtins.c (fold_builtin_fpclassify): New.
3177         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
3178         * builtins.def (BUILT_IN_FPCLASSIFY): New.
3179         * c-common.c (handle_type_generic_attribute): Adjust to accept
3180         fixed arguments before an elipsis.
3181         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
3182         * doc/extend.texi: Document __builtin_fpclassify.
3183
3184 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
3185
3186         * omp-low.c (gate_expand_omp_ssa): Remove.
3187         (pass_expand_omp_ssa): Remove.
3188         (gate_expand_omp): Do not check for flag_openmp_ssa.
3189         * common.opt (-fopenmp-ssa): Remove.
3190         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
3191
3192 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3193
3194         * config/sh/sh.opt (mfixed-range): New option.
3195         * config/sh/sh-protos.h (sh_fix_range): Declare.
3196         * config/sh/sh.c (sh_fix_range): New function.
3197         * config/sh/sh.h (sh_fixed_range_str): Declare.
3198         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
3199         is not empty.
3200         * doc/invoke.texi (SH Options): Document -mfixed-range.
3201
3202 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
3203
3204         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
3205         it before the redeclaration.
3206
3207 2008-05-22  Anatoly Sokolov <aesok@post.ru>
3208
3209         * config/avr/avr.c (get_sequence_length): Add new function.
3210         (expand_prologue, expand_epilogue): Remove duplicate code.
3211
3212 2008-05-22  Rafael Espindola  <espindola@google.com>
3213
3214         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
3215         sharing.
3216
3217 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3218
3219         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
3220         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
3221
3222         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
3223         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
3224         (vect_update_misalignment_for_peel): Likewise.
3225         (vector_alignment_reachable_p): Likewise.
3226         * tree-vect-transform.c (vectorizable_load): Likewise.
3227         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
3228         (get_vectype_for_scalar_type): Pass mode of scalar_type
3229         to UNITS_PER_SIMD_WORD.
3230
3231         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
3232         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
3233         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
3234         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
3235         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
3236
3237 2008-05-22  Ira Rosen  <irar@il.ibm.com>
3238
3239         PR tree-optimization/36293
3240         * tree-vect-transform.c (vect_transform_strided_load): Don't check
3241         if the first load must be skipped because of a gap.
3242
3243 2008-05-22  Richard Guenther  <rguenther@suse.de>
3244
3245         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
3246         more cases of offset disambiguation that is possible if
3247         strict-aliasing rules apply.
3248         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
3249         for basic offset and type-based disambiguation.
3250
3251 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3252
3253         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
3254         ix86_expand_vector_set on V16QImode for SSE4.1.
3255
3256 2008-05-21  Tom Tromey  <tromey@redhat.com>
3257
3258         * c.opt (Wimport): Mark as undocumented.
3259         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
3260         -Wno-import.
3261         (Warning Options): Likewise.
3262         * doc/cppopts.texi: Don't mention -Wimport.
3263
3264 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
3265
3266         PR tree-optimization/36287
3267         PR tree-optimization/36286
3268         * lambda-code.c (build_access_matrix): Do not use the loop->num
3269         for computing the number of induction variables: use the loop depth
3270         instead.
3271
3272 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
3273
3274         PR/36280
3275         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
3276         option -f(no-)leading-underscore.
3277
3278 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3279
3280         * config/i386/i386.c (ix86_expand_vector_init_general): Use
3281         GET_MODE_NUNITS (mode).
3282
3283 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
3284
3285         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
3286         (-mmulhw): Add 464 to description.
3287         (-mdlmzb): Likewise.
3288         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
3289         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
3290         464fp entries.
3291         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
3292         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
3293         * config/rs6000/rs6000.md: Update comments for 464.
3294
3295 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
3296
3297         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
3298
3299 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3300
3301         * config/i386/sse.md (vec_extractv4sf): Removed.
3302         (vec_extractv2df): Likewise.
3303         (vec_extractv2di): Likewise.
3304         (vec_extractv4si): Likewise.
3305         (vec_extractv8hi): Likewise.
3306         (vec_extractv16qi): Likewise.
3307         (vec_extract<mode>): New.
3308
3309 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3310
3311         * config/i386/sse.md (vec_setv4sf): Removed.
3312         (vec_setv2df): Likewise.
3313         (vec_setv2di): Likewise.
3314         (vec_setv4si): Likewise.
3315         (vec_setv8hi): Likewise.
3316         (vec_setv16qi): Likewise.
3317         (vec_set<mode>): New.
3318
3319 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3320
3321         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
3322         goto for vec_concat and vec_interleave.
3323
3324 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3325
3326         * config/i386/sse.md (vec_initv4sf): Removed.
3327         (vec_initv2df): Likewise.
3328         (vec_initv2di): Likewise.
3329         (vec_initv4si): Likewise.
3330         (vec_initv8hi): Likewise.
3331         (vec_initv16qi): Likewise.
3332         (vec_init<mode>): New.
3333
3334 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
3335
3336         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
3337
3338 2008-05-21  Tom Tromey  <tromey@redhat.com>
3339
3340         * ggc-zone.c (lookup_page_table_if_allocated): New function.
3341         (zone_find_object_offset): Likewise.
3342         (gt_ggc_m_S): Likewise.
3343         (highest_bit): Likewise.
3344         * ggc-page.c (gt_ggc_m_S): New function.
3345         * stringpool.c (string_stack): Remove.
3346         (init_stringpool): Update.
3347         (ggc_alloc_string): Use ggc_alloc.
3348         (maybe_delete_ident): New function.
3349         (ggc_purge_stringpool): Likewise.
3350         (gt_ggc_m_S): Remove.
3351         * ggc-common.c (ggc_protect_identifiers): New global.
3352         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
3353         ggc_protect_identifiers.
3354         * ggc.h (ggc_protect_identifiers): Declare.
3355         (gt_ggc_m_S): Update.
3356         (ggc_purge_stringpool): Declare.
3357         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
3358         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
3359         special case.
3360         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
3361
3362 2008-05-21  David S. Miller  <davem@davemloft.net>
3363
3364         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
3365         tmake_file.
3366
3367 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
3368
3369         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
3370         once finished.
3371
3372 2008-05-20  David Daney  <ddaney@avtrex.com>
3373
3374         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
3375         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
3376         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
3377         UNSPEC_UPDATE_GOT_VERSION): Renumber.
3378         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
3379         (atomic_hiqi_op): New define_code_iterator.
3380         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
3381         mips_expand_compare_and_swap_12.
3382         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
3383         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
3384         (sync_<optab><mode>, sync_old_<optab><mode>,
3385         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
3386         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
3387         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
3388         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
3389         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
3390         (test_and_set_12): New insn.
3391         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
3392         sync_new_<optab><mode>, sync_old_nand<mode>,
3393         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
3394         clobber to operand 0 for SI and DI mode insns.
3395         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
3396         mips_gen_fn_4): New typedefs.
3397         (mips_gen_fn_ptrs): Define new union type.
3398         (mips_expand_compare_and_swap_12): Remove declaration.
3399         (mips_expand_atomic_qihi): Declare function.
3400         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
3401         (mips_expand_atomic_qihi): ... this.  Use new generator function
3402         parameter.
3403         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
3404         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
3405         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
3406         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
3407         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
3408         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
3409         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
3410         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
3411         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
3412         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
3413         New macros.
3414
3415 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3416
3417         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
3418         the missing break.
3419
3420 2008-05-20  Anatoly Sokolov <aesok@post.ru>
3421
3422         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
3423         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
3424         (avr_attribute_table): Add 'OS_main' function attribute.
3425         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
3426         functions with 'OS_main' attribute.
3427
3428 2008-05-20  Richard Guenther  <rguenther@suse.de>
3429
3430         PR tree-optimization/35204
3431         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
3432         helper, split out from ...
3433         (DFS): ... here.  Make the DFS walk non-recursive.
3434
3435 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
3436             Jan Sjodin  <jan.sjodin@amd.com>
3437
3438         PR tree-optimization/36181
3439         * tree-parloops.c (loop_has_vector_phi_nodes): New.
3440         (parallelize_loops): Don't parallelize when the loop has vector
3441         phi nodes.
3442
3443 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
3444             Sebastian Pop  <sebastian.pop@amd.com>
3445
3446         * tree-loop-linear.c (gather_interchange_stats): Look in the access
3447         matrix, and never look at the tree representation of the memory
3448         accesses.
3449         (linear_transform_loops): Computes parameters and access matrices.
3450         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
3451         when fails.
3452         (access_matrix_get_index_for_parameter): New.
3453         * tree-data-ref.h (struct access_matrix): New.
3454         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
3455         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
3456         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
3457         am_vector_index_for_loop): New.
3458         (struct data_reference): Add field access_matrix.
3459         (DR_ACCESS_MATRIX): New.
3460         (compute_data_dependences_for_loop): Update declaration.
3461         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
3462         * lambda.h (lambda_vector_vec_p): Declared.
3463         * lambda-code.c: Depend on pointer-set.h.
3464         (lambda_collect_parameters_from_af, lambda_collect_parameters,
3465         av_for_af_base, av_for_af, build_access_matrix,
3466         lambda_compute_access_matrices): New.
3467         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
3468
3469 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
3470
3471         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
3472         $SOURCEDIR/include.
3473
3474 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
3475             Sebastian Pop  <sebastian.pop@amd.com>
3476
3477         PR tree-optimization/36206
3478         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
3479         FOLD_CONVERSIONS.
3480         (instantiate_scev_1): Rename flags to fold_conversions.
3481         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
3482         outeside instantiation_loop.
3483         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
3484         (evolution_function_is_affine_or_constant_p): Removed.
3485         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
3486         instantiate_scev.
3487         (analyze_siv_subscript): Pass in the loop nest number.
3488         Call evolution_function_is_affine_in_loop instead of 
3489         evolution_function_is_affine_p.
3490         (analyze_overlapping_iterations): Pass in the loop nest number.
3491
3492 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
3493             Sebastian Pop  <sebastian.pop@amd.com>
3494
3495         PR tree-optimization/36206
3496         * tree-chrec.h (chrec_fold_op): New.
3497         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
3498         and other trees.
3499
3500 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
3501
3502         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
3503         (DIRS_EQ): New.
3504         (remove_duplicates): Do not set inode on non-inode systems.
3505         Use DIRS_EQ.
3506
3507 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
3508
3509         * config.gcc (tm_file): Update comments about relative pathnames.
3510
3511 2008-05-20  Richard Guenther  <rguenther@suse.de>
3512
3513         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
3514         * tree-ssa-sccvn.c (process_scc): Likewise.
3515         * tree-ssa-sink.c (execute_sink_code): Likewise.
3516         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
3517         * tree-vrp.c (process_assert_insertions): Likewise.
3518         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
3519         (perform_tree_ssa_dce): Likewise.
3520         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
3521         (dump_dominator_optimization_stats): Likewise.
3522         * tree-vectorizer.c (vectorize_loops): Likewise.
3523
3524 2008-05-20  Richard Guenther  <rguenther@suse.de>
3525
3526         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
3527
3528 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
3529
3530         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
3531         (ix86_i386elf_return_in_memory): Likewise.
3532         (ix86_i386interix_return_in_memory): Likewise.
3533         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
3534         (SUBTARGET_RETURN_IN_MEMORY): New.
3535         * config/i386/i386elf.h: Likewise.
3536         * config/i386/ptx4-i.h: Likewise.
3537         * config/i386/sol2-10.h: Likewise.
3538         * config/i386/sysv4.h: Likewise.
3539         * config/i386/vx-common.h: Likewise.
3540         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
3541         * config/i386/i386.c (ix86_return_in_memory): Made static and
3542         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
3543         (ix86_i386elf_return_in_memory): Removed.
3544         (ix86_i386interix_return_in_memory): Removed.
3545         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
3546         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
3547
3548 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
3549
3550         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
3551
3552 2008-05-19  Xinliang David Li  <davidxl@google.com>
3553
3554         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
3555         * opts.c: Ditto.
3556         * common.opt: Ditto.
3557         * doc/invoke.texi: Ditto.
3558
3559 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3560
3561         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
3562         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
3563
3564 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
3565
3566         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
3567         sizes of operand array from 8/4 to 4/2.
3568         (ix86_expand_vector_init_general): Change size of operand array
3569         from 32 to 16.  Remove op0, op1 and half_mode.
3570
3571 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
3572
3573         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
3574         (ix86_expand_vector_init_interleave): Likewise.
3575         (ix86_expand_vector_init_general): Use them.  Assert
3576         word_mode == SImode when n_words == 4.
3577
3578 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
3579
3580         * config/i386/i386.c (ix86_secondary_reload): New static function.
3581         (TARGET_SECONDARY_RELOAD): New define.
3582         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
3583         * config/i386/i386.md (reload_outqi): Remove.
3584
3585 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3586
3587         PR middle-end/35509
3588         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
3589         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
3590         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
3591         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
3592         (fold_builtin_1): Likewise.
3593         * builtins.def (BUILT_IN_ISINF_SIGN): New.
3594         c-common.c (check_builtin_function_arguments): Handle
3595         BUILT_IN_ISINF_SIGN.
3596         * doc/extend.texi: Document __builtin_isinf_sign.
3597         * fold-const.c (operand_equal_p): Handle COND_EXPR.
3598
3599 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
3600
3601         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
3602         EH cleanup at the end of the pass, search for those that have been
3603         turned into forwarder blocks and do the cleanup on their successor.
3604
3605 2008-05-18  Richard Guenther  <rguenther@suse.de>
3606
3607         * tree-cfg.c (verify_gimple_expr): Allow conversions from
3608         pointers to sizetype and vice versa.
3609
3610 2008-05-18 Xinliang David Li   <davidxl@google.com>
3611
3612         * gcc/tree-ssa-dce.c: Coding style fix.
3613         (check_pow): Documentation comment. 
3614         (check_log): Documenation comment. Coding style fix.
3615         (is_unnecessary_except_errno_call): Ditto.
3616         (gen_conditions_for_pow): Ditto.
3617         (gen_conditions_for_log): Ditto.
3618         (gen_shrink_wrap_conditions): Ditto.
3619         (shrink_wrap_one_built_in_calls): Ditto.
3620         * gcc/doc/invoke.texi: Better documentation string.
3621         * ChangeLog: Fix wrong change log entries from 
3622         May 17 checkin on function call DCE.
3623
3624 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
3625
3626         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
3627
3628 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
3629
3630         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
3631         * df-problems.c (simulation routines): Fixed block comment to
3632         properly say how to add forwards scanning functions.
3633         
3634 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
3635
3636         * tree-inline.c (setup_one_parameter): Remove dead code.
3637
3638 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
3639
3640         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
3641         a BIT_AND_EXPR only for an INTEGER_TYPE.
3642
3643 2008-05-17 Xinliang David Li   <davidxl@google.com>
3644
3645         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
3646         (check_pow, check_log, is_unnecessary_except_errno_call): New 
3647         functions to check for eliminating math functions that are pure 
3648         except for setting errno.
3649         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
3650         general condition expressions for shrink-wrapping pow/log calls.
3651         (gen_shrink_wrap_conditions): Ditto.
3652         (shrink_wrap_one_built_in_call): Ditto.
3653         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
3654         (mark_operand_necessary): If debugging, output if OP is necessary.
3655         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
3656         unnecessary.
3657         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
3658         opt level >= 2.
3659         * gcc/common.opt: New user flag -ftree-builtin-dce.
3660         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
3661
3662 2008-05-16  David S. Miller  <davem@davemloft.net>
3663
3664         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
3665         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
3666
3667 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
3668
3669         PR target/36246
3670         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
3671
3672 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
3673
3674         * ifcvt.c (dead_or_predicable): Rename
3675         df_simulate_one_insn_backwards to df_simulate_one_insn.
3676         * recog.c (peephole2_optimize): Ditto.
3677         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
3678         Ditto.
3679         * df.h: Rename df_simulate_one_insn_backwards to
3680         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
3681         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
3682         scanning of defs and uses.
3683         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
3684         (df_simulate_one_insn_forwards): Removed.
3685
3686 2008-05-16  Doug Kwan  <dougkwan@google.com>
3687
3688         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
3689         QNaN & SNaN.
3690         (real_from_string): Handle NaNs and Inf as approriate.
3691
3692 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
3693
3694         * doc/gty.texi (Source Files Containing Type Information): Note
3695         that headers should appear first in the gtfiles list.
3696
3697 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
3698
3699         * tree.def (COND_EXEC): Properly documented this code.
3700
3701 2008-05-16  Diego Novillo  <dnovillo@google.com>
3702
3703         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
3704         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
3705         the new field.
3706
3707 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
3708
3709         * tree-ssa-dse (max_stmt_uid): Removed.
3710         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
3711         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
3712         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
3713         * function.h (cfun.last_stmt_uid): New field.
3714         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
3715         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
3716         New functions.
3717         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
3718         (create_stmt_ann): Initialize the ann->uid field.
3719         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
3720         with new calls.
3721         * tree-flow.h (renumber_gimple_stmt_uids): New function.
3722
3723 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
3724
3725         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
3726         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
3727         (init_empty_tree_cfg): Call it.
3728
3729 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
3730
3731         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
3732         Update all users.
3733
3734 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
3735
3736         * doc/invoke.text (-fdump-tree-*-verbose): New option.
3737         * tree-dump.c (dump_options): New verbose option.
3738         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
3739         Add verbose dump.
3740         * tree-pass.h (TDF_VERBOSE): New dump flag.
3741         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
3742         (tree-flow.h): Added include.
3743         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
3744
3745 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
3746
3747         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
3748
3749         From Jie Zhang  <jie.zhang@analog.com>
3750         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3751         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
3752         mcpu=bf561-none and mcpu=bf561-0.2.
3753         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3754         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
3755         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3756         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
3757         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
3758         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
3759         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
3760         option.
3761         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
3762         (cputype_selected): Remove.
3763         (bfin_handle_option): Don't use cputype_selected.
3764         (override_options): When no mcpu option, enable all workarounds.
3765         Don't use bfin_workarounds.
3766         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
3767         processor type.
3768         (DEFAULT_CPU_TYPE): Don't define.
3769
3770 2008-05-16  Richard Guenther  <rguenther@suse.de>
3771
3772         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
3773         on deletion of the last stmt.
3774
3775 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3776
3777         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
3778         V8HImode for SSE2 and V16QImode for SSE4.1.
3779
3780 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
3781
3782         * cgraph.h (compute_inline_parameters): Made public.
3783         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
3784         variable_generate_summary, function_write_summary,
3785         variable_write_summary, variable_read_summary.  Added generate_summary,
3786         write_summary, read_summary.
3787         * cgraphunit.c (cgraph_process_new_functions): Changed call from
3788         pass_ipa_inline.function_generate_summary, to
3789         compute_inline_parameters. 
3790         * ipa-inline.c (compute_inline_parameters): Made public and added
3791         node parameter.
3792         (compute_inline_parameters_for_current): New function.
3793         (pass_inline_param): Now calls compute_inline_parameters_for_current.
3794         (inline_generate_summary): Removed parameter and made to loop over
3795         all cgraph nodes.
3796         (pass_ipa_inline): Updated for new IPA_PASS structure.
3797         * passes.c (execute_ipa_summary_passes): Now is called once per
3798         pass rather than once per node*pass.
3799         
3800 2008-05-15  Anatoly Sokolov <aesok@post.ru>
3801
3802         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
3803         avr_have_mul_p, avr_asm_only_p): Remove variables.
3804         (avr_override_options): Remove initialization of removed variables.
3805         (avr_file_start):  Convert removed variables to fields of 
3806         'struct base_arch_s *avr_current_arch'. 
3807         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
3808         (AVR_HAVE_MUL): (Ditto.).
3809         (AVR_HAVE_MOVW): (Ditto.).
3810         (AVR_HAVE_LPMX): (Ditto.). 
3811         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
3812         avr_asm_only_p): Remove declaration.
3813
3814 2008-05-15  Diego Novillo  <dnovillo@google.com>
3815
3816         * config/arm/arm.c (arm_return_in_memory): Fix return type.
3817         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
3818
3819 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
3820
3821         PR middle-end/36194
3822         * combine.c (check_conversion): Rename back to check_promoted_subreg.
3823         Don't call record_truncated_value from here.
3824         (record_truncated_value): Turn it into a for_each_rtx callback.
3825         (record_truncated_values): New function.
3826         (combine_instructions): Call note_uses with record_truncated_values.
3827         Change name of check_conversion to check_promoted_subreg. 
3828
3829 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
3830
3831         * doc/sourcebuild.texi: Document support for torture tests.
3832
3833 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
3834
3835         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
3836         to alternative 4 of operand 2.
3837
3838 2008-05-15  Richard Guenther  <rguenther@suse.de>
3839
3840         * tree-pass.h (current_pass): Declare.
3841         (get_pass_for_id): Likewise.
3842         * passes.c (passes_by_id, passes_by_id_size): New globals.
3843         (set_pass_for_id): New function.
3844         (get_pass_for_id): Likewise.
3845         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
3846         (execute_function_todo): Flush per function statistics.
3847         * toplev.c (compile_file): Init statistics.
3848         (general_init): Do early statistics initialization.
3849         (finalize): Finish statistics.
3850         * statistics.h (statistics_early_init): Declare.
3851         (statistics_init): Likewise.
3852         (statistics_fini): Likewise.
3853         (statistics_fini_pass): Likewise.
3854         (statistics_counter_event): Likewise.
3855         (statistics_histogram_event): Likewise.
3856         * statistics.c: New file.
3857         * Makefile.in (OBJS-common): Add statistics.o.
3858         (statistics.o): Add dependencies.
3859         * doc/invoke.texi (-fdump-statistics): Document.
3860
3861         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
3862         (insert): Likewise.
3863         (execute_pre): Use statistics_counter_event.
3864         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
3865         (substitute_and_fold): Increment it.  Use statistics_counter_event.
3866
3867 2008-05-15  Diego Novillo  <dnovillo@google.com>
3868
3869         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
3870
3871         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
3872         * tree-ssa-alias.c (new_type_alias): Remove references to
3873         sub-variables from comment.
3874         * tree-ssa-operands.c (swap_tree_operands): Likewise.
3875
3876 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3877
3878         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
3879         attribute to 1 only for insertps alternative.
3880
3881 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
3882
3883         * config/bfin/bfin.md (loadbytes): New pattern.
3884         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
3885         (bfin_init_builtins): Initialize it.
3886         (bdesc_1arg): Add it.
3887
3888 2008-05-15  Sa Liu  <saliu@de.ibm.com>
3889
3890         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
3891         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
3892         * testsuite/lib/target-supports.exp: Add
3893         check_effective_target_fortran_integer_16.
3894
3895 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
3896
3897         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
3898         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
3899         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
3900         (TARGET_RETURN_IN_MEMORY): Define.
3901
3902 2008-05-15  Richard Guenther  <rguenther@suse.de>
3903
3904         PR middle-end/36244
3905         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
3906         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
3907         represent unmodifiable vars.
3908
3909 2008-05-15  Richard Guenther  <rguenther@suse.de>
3910
3911         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
3912         INDIRECT_REF and TARGET_MEM_REF.
3913         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3914         TARGET_MEM_REF.
3915
3916 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
3917             H.J. Lu  <hongjiu.lu@intel.com>
3918
3919         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
3920         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
3921         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
3922         insn alternatives.  Add missing alternatives.
3923         (*vec_concatv2di_rex64_sse4_1): Likewise.
3924         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
3925         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
3926         Require TARGET_SSE.
3927
3928 2008-05-15  Richard Guenther  <rguenther@suse.de>
3929
3930         PR tree-optimization/36009
3931         PR tree-optimization/36204
3932         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
3933         (determine_invariantness_stmt): Record the loop a store is
3934         always executed in.
3935         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
3936         dependency.
3937
3938 2008-05-15  Richard Guenther  <rguenther@suse.de>
3939
3940         PR tree-optimization/34330
3941         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
3942         through the pointer will alias the SMT.
3943
3944 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
3945
3946         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
3947
3948 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3949
3950         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
3951
3952 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
3953             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3954
3955         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
3956         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
3957         (vashl_optab): New optab for vector/vector shifts.
3958         (vashr_optab): Ditto.
3959         (vlshr_optab): Ditto.
3960         (vrotl_optab): Ditto.
3961         (vrotr_optab): Ditto.
3962         (optab_subtype): New enum for optab_for_tree_code call.
3963         (optab_for_tree_code): Add enum optab_subtype argument.
3964
3965         * optabs.c (optab_for_tree_code): Take an additional argument to
3966         distinguish between a vector shift by a scalar and vector shift by
3967         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
3968         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
3969         vector shift by a vector.
3970         (expand_widen_pattern_expr): Pass additional argument to
3971         optab_for_tree_code.
3972
3973         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
3974         vrotl_optab, vrotr_optab.
3975
3976         * expr.c (expand_expr_real_1): Update calls to
3977         optab_for_tree_code to distinguish between vector shifted by a
3978         scalar and vector shifted by a vector.
3979         * tree-vectorizer.c (supportable_widening_operation): Ditto.
3980         (supportable_narrowing_operation): Ditto.
3981         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
3982         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
3983         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
3984         (vect_create_epilog_for_reduction): Ditto.
3985         (vectorizable_reduction): Ditto.
3986         (vectorizable_operation): Ditto.
3987         (vect_strided_store_supported): Ditto.
3988         (vect_strided_load_supported): Ditto.
3989         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
3990         * expmed.c (expand_shift): Ditto.
3991
3992         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
3993         scalar type.
3994         (ashr@var{m}3): Ditto.
3995         (vashl@var{m}3): Document new vector/vector shift standard name.
3996         (vashr@var{m}3): Ditto.
3997         (vlshr@var{m}3): Ditto.
3998         (vrotl@var{m}3): Ditto.
3999         (vrotr@var{m}3): Ditto.
4000
4001         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
4002         (PPERM_INVERT): Ditto.
4003         (PPERM_REVERSE): Ditto.
4004         (PPERM_REV_INV): Ditto.
4005         (PPERM_ZERO): Ditto.
4006         (PPERM_ONES): Ditto.
4007         (PPERM_SIGN): Ditto.
4008         (PPERM_INV_SIGN): Ditto.
4009         (PPERM_SRC1): Ditto.
4010         (PPERM_SRC2): Ditto.
4011
4012         * config/i386/sse.md (mulv2di3): Add SSE5 support.
4013         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
4014         allows a memory operand to be the value being added, and split it
4015         to improve vectorization.
4016         (sse5_pmacsdqh_mem): Ditto.
4017         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
4018         (sse5_mulv2div2di3_high): Ditto.
4019         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
4020         (vec_pack_trunc_v4si): Ditto.
4021         (vec_pack_trunc_v2di): Ditto.
4022         (sse5_pcmov_<mode>): Remove code that tried to use use
4023         andps/andnps instead of pcmov.
4024         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
4025         pmacsdqh instructions.
4026         (vec_widen_smult_lo_v4si): Ditto.
4027
4028         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
4029         (PPERM_INVERT): Ditto.
4030         (PPERM_REVERSE): Ditto.
4031         (PPERM_REV_INV): Ditto.
4032         (PPERM_ZERO): Ditto.
4033         (PPERM_ONES): Ditto.
4034         (PPERM_SIGN): Ditto.
4035         (PPERM_INV_SIGN): Ditto.
4036         (PPERM_SRC1): Ditto.
4037         (PPERM_SRC2): Ditto.
4038         (ix86_expand_sse_movcc): Move the SSE5 test after the if
4039         true/false tests.
4040         (ix86_expand_int_vcond): If SSE5 generate all possible integer
4041         comparisons.
4042         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
4043         says ignore whether the last reference is a memory operand.
4044
4045 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
4046             Paolo Bonzini <bonzini at gnu dot org>
4047
4048         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
4049         shift patterns.
4050
4051         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
4052         (vlshr<mode>3): Rename from vlshr<mode>3.
4053         (vashr<mode>3): Rename from vashr<mode>3.
4054         (mulv4sf3): Change the names of vector shift patterns.
4055         (mulv4si3): Ditto.
4056         (negv4sf2): Ditt.
4057
4058         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
4059         shift insns.
4060
4061         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
4062         (SI_SHLHI): Ditto.
4063         (SI_SHL): Ditto.
4064         (SI_SHLI): Ditto.
4065         (SI_ROTH): Ditto.
4066         (SI_ROTHI): Ditto.
4067         (SI_ROT): Ditto.
4068         (SI_ROTI): Ditto.
4069         (SPU_RL_0): Ditto.
4070         (SPU_RL_1): Ditto.
4071         (SPU_RL_2): Ditto.
4072         (SPU_RL_3): Ditto.
4073         (SPU_RL_4): Ditto.
4074         (SPU_RL_5): Ditto.
4075         (SPU_RL_6): Ditto.
4076         (SPU_RL_7): Ditto.
4077         (SPU_SL_0): Ditto.
4078         (SPU_SL_1): Ditto.
4079         (SPU_SL_2): Ditto.
4080         (SPU_SL_3): Ditto.
4081         (SPU_SL_4): Ditto.
4082         (SPU_SL_5): Ditto.
4083         (SPU_SL_6): Ditto.
4084         (SPU_SL_7): Ditto.
4085
4086         * config/spu/spu.md (v): New iterator macro to add v for vector types.
4087         (floatunssidf2_internal): Change vector/vector shift names.
4088         (floatunsdidf2_internal): Ditto.
4089         (mulv8hi3): Ditto.
4090         (ashrdi3): Ditto.
4091         (ashrti3): Ditto.
4092         (cgt_df): Ditto.
4093         (cgt_v2df): Ditto.
4094         (dftsv): Ditto.
4095         (vashl<mode>3): Rename from ashl<mode>3.
4096         (vashr<mode>3): Rename from ashr<mode>3.
4097         (vlshr<mode>3): Rename from lshr<mode>3.
4098         (vrotl<mode>3): Rename from rotl<mode>3.
4099
4100 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
4101
4102         PR target/36224
4103         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
4104         multiply gives the wrong value when doing widening multiplies.
4105         (vec_widen_smult_lo_v4si): Ditto.
4106
4107 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
4108
4109         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
4110         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
4111         emit_library_call_value. 
4112         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
4113         * tree.h (ECF_LIBCALL_BLOCK): Removed.
4114         * calls.c (initialize_argument_information, precompute_arguments, 
4115         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
4116         (precompute_arguments): Removed flags parameter.
4117         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
4118         
4119 2008-05-14  Richard Guenther  <rguenther@suse.de>
4120
4121         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
4122         Make sure to register the store if the use is a PHI_NODE.
4123
4124 2008-05-14  Olivier Hainque  <hainque@adacore.com>
4125
4126         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
4127         memory if the component is to be referenced in BLKmode according
4128         to get_inner_reference.
4129
4130 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
4131
4132         * calls.c (emit_library_call_value_1): Restore code clearing
4133         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
4134
4135 2008-05-14  Olivier Hainque  <hainque@adacore.com>
4136             Nicolas Roche  <roche@adacore.com>
4137
4138         * configure.ac: Add support for a "gcc_subdir" variable in
4139         config-lang.in, to denote a subdirectory where the language/GCC
4140         integration files are to be found.
4141         * configure: Regenerate.
4142
4143 2008-05-14  Ira Rosen  <irar@il.ibm.com>
4144
4145         PR tree-optimization/36098
4146         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
4147         value for the first load in the group in case of a gap.
4148         (vect_build_slp_tree): Check that there are no gaps in loads.
4149
4150 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
4151
4152         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
4153         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
4154         expand_copysign_bit, ): Change call to emit_no_conflict_block to
4155         emit_insn and remove unneeded code to construct extra args.
4156         (emit_no_conflict_block): Removed.
4157         * optabls.h: (emit_no_conflict_block): Removed.
4158         * cse.c (cse_extended_basic_block): Remove search for
4159         REG_NO_CONFLICT note.
4160         * global.c: Removed incorrect comment added in revision 117.
4161         * expr.c (convert_move): Change call to emit_no_conflict_block to
4162         emit_insn.
4163         * recog.c: Change comments so that they do not mention
4164         REG_NO_CONFLICT.
4165         * local_alloc.c (combine_regs): Removed last parameter.
4166         (no_conflict_p): Removed.
4167         (block_alloc): Removed note, no_conflict_combined_regno and set
4168         local vars. Removed all code to process REG_NO_CONFLICT blocks.
4169         (combine_regs): Removed already_dead and code to look for
4170         REG_NO_CONFLICT notes.
4171         * lower_subreg (remove_retval_note): Removed code to look for
4172         REG_NO_CONFLICT block.
4173         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
4174         (resolve_clobber): Remove code to process libcalls that have
4175         REG_NO_CONFLICT notes.
4176         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
4177         case.
4178         * combine.c (can_combine_p, distribute_notes):  Removed
4179         REG_NO_CONFLICT case.
4180         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
4181         to emit_insns.
4182         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
4183         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
4184         Ditto.
4185         * reg-notes.def (NO_CONFLICT): Removed.
4186
4187 2008-05-14  David S. Miller  <davem@davemloft.net>
4188
4189         * config/sparc/sparc.c (sparc_profile_hook): If
4190         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
4191         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
4192         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
4193
4194 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
4195
4196         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
4197
4198 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
4199
4200         PR target/36222
4201         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
4202         and op1 expansion before vector concat to have less live pseudos.
4203
4204 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
4205
4206         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
4207         ix86_expand_vector_set if supported.
4208
4209 2008-05-13  Diego Novillo  <dnovillo@google.com>
4210             Kenneth Zadeck  <zadeck@naturalbridge.com>
4211
4212         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
4213
4214         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
4215         phinodes_print_statistics, init_ssanames, fini_ssanames,
4216         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
4217         release_ssa_name, release_defs, replace_ssa_name_symbol,
4218         ssanames_print_statistics): Move ...
4219         * tree-flow.h: ... here.
4220         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
4221         Use FN instead of cfun.
4222         (make_ssa_name_fn): Rename from make_ssa_name.
4223         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
4224         * tree-flow-inline.h (make_ssa_name): Move from
4225         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
4226         * omp-low.c (expand_omp_parallel):
4227         * tree-flow-inline.h (redirect_edge_var_map_result):
4228         * tree-ssa.c (init_tree_ssa): Add argument FN.
4229         Use it instead of cfun.  Update all users.
4230
4231 2008-05-13  Tom Tromey  <tromey@redhat.com>
4232
4233         PR preprocessor/22168:
4234         * doc/cpp.texi (Top): Update menu.
4235         (Alternatives to Wrapper #ifndef): New node.
4236         (Other Directives): Document deprecation.
4237         (Obsolete Features): Remove menu.
4238         (Assertions): Merge node into Obsolete Features.
4239         (Obsolete once-only headers): Move earlier; rename to Alternatives
4240         to Wrapper #ifndef.
4241         * doc/cppopts.texi: Update.
4242         * c.opt (Wdeprecated): Enable for C and ObjC.
4243         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
4244         (C++ Dialect Options): Move -Wno-deprecated from here to...
4245         (Warning Options): ... here.
4246
4247 2008-05-13  Richard Guenther  <rguenther@suse.de>
4248
4249         PR middle-end/36227
4250         * fold-const.c (fold_sign_changed_comparison): Do not allow
4251         changes in pointer-ness.
4252
4253 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4254
4255         PR target/24713
4256         * config/sh/sh.c (sh_expand_prologue): Don't clear
4257         RTX_FRAME_RELATED_P for push insns.
4258
4259 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
4260
4261         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
4262
4263 2008-05-12  Anatoly Sokolov <aesok@post.ru>
4264
4265         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
4266         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
4267         Use 'machine->is_leaf' instead of 'leaf_func_p'.
4268
4269 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
4270
4271         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
4272         (*vec_concatv4sf_sse): This.
4273         (*sse2_concatv2si): Renamed to ...
4274         (*vec_concatv2si_sse2): This.
4275         (*sse1_concatv2si): Renamed to ...
4276         (*vec_concatv2si_sse): This.
4277         (*vec_concatv2di_rex): Renamed to ...
4278         (*vec_concatv2di_rex64): This.
4279         (*vec_concatv2si_sse4_1): New.
4280         (*vec_concatv2di_rex64_sse4_1): Likewise.
4281
4282 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
4283
4284         PR rtl-optimization/36111
4285         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
4286         that was created for swappable operands.
4287
4288 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
4289
4290         PR ada/36001
4291         * Makefile.in: Substitute GNATMAKE and GNATBIND.
4292         * configure.ac: Add call to ACX_PROG_GNAT.
4293
4294 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
4295
4296         * optc-gen.awk: Fix comment typo.
4297
4298 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4299
4300         * pretty-print.c (pp_integer_with_precision): Use
4301         HOST_LONG_LONG_FORMAT.
4302
4303 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
4304
4305         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
4306                 
4307 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4308
4309         * config/i386/i386.c (bdesc_ptest): Removed.
4310         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
4311         (bdesc_args): Add __builtin_ia32_ptestz128,
4312         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
4313         (ix86_init_mmx_sse_builtins): Updated.
4314         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
4315         (ix86_expand_builtin): Updated.
4316
4317 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
4318
4319         * tree-cfg.c (valid_fixed_convert_types_p): New function.
4320         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
4321
4322 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
4323
4324         * value-prof.c (interesting_stringop_to_profile): Do not
4325         return early for BUILT_IN_MEMPCPY.
4326
4327 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
4328
4329         * calls.c (expand_call): Don't use callgraph to increase
4330         preferred_stack_boundary.
4331
4332         * cgraph.h (cgraph_rtl_info): Use unsigned on
4333         preferred_incoming_stack_boundary.
4334
4335         * final.c (rest_of_clean_state): Use unsigned on
4336         preferred_stack_boundary.
4337
4338 2008-05-09  Tom Tromey  <tromey@redhat.com>
4339
4340         PR preprocessor/22231:
4341         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
4342         proceeding.
4343
4344 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
4345
4346         PR tree-optimization/36129
4347         * tree-ssa-ccp.c: Include value-prof.h.
4348         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
4349         built-in function was folded to a constant.
4350         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
4351
4352 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
4353             Sebastian Pop  <sebastian.pop@amd.com>
4354
4355         * tree-scalar-evolution.c: Document instantiate_scev.
4356         (instantiate_parameters_1): Renamed instantiate_scev_1.
4357         Don't use the same loop for instantiation_loop and evolution_loop.
4358         (instantiate_scev): New.
4359         (instantiate_parameters): Moved...
4360         (resolve_mixers): Update call to instantiate_scev_1 to pass the
4361         same loop twice.  Maintains the semantics for this function.
4362         * tree-scalar-evolution.h (instantiate_scev): Declare.
4363         (instantiate_parameters): ...here.  Now static inline.
4364         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
4365         instead of resolve_mixers.
4366
4367 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
4368
4369         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
4370
4371 2008-05-09  Tomas Bily  <tbily@suse.cz>
4372
4373         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
4374         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
4375         * tree-ssa-structalias.c (get_constraint_for): Likewise.
4376         * c-common.c (c_common_truthvalue_conversion): Likewise.
4377         * tree-object-size.c (compute_object_offset): Likewise.
4378         * tree-inline.c (estimate_num_insns_1): Likewise.
4379         * varasm.c (const_hash_1, compare_constant, copy_constant)
4380         (compute_reloc_for_constant, output_addressed_constants)
4381         (initializer_constant_valid_p): Likewise.
4382         * c-omp.c (check_omp_for_incr_expr): Likewise.
4383         * gimplify.c (gimplify_expr): Likewise.
4384         * c-typeck.c (c_finish_return): Likewise.
4385         * tree-vectorizer.c (supportable_widening_operation)
4386         (supportable_narrowing_operation): Likewise.
4387         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
4388         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
4389         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
4390         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
4391         (descr_info_loc): Likewise.
4392         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
4393         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
4394         (fold_unary): Likewise.
4395         * builtins.c (get_pointer_alignment): Likewise.
4396         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
4397         (instantiate_parameters_1): Likewise.
4398         * tree.c (expr_align, stabilize_reference): Likewise.
4399         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
4400         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
4401         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
4402         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
4403         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
4404         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
4405         Likewise.
4406         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
4407         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
4408         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4409         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
4410         (forward_propagate_comparison)
4411         (tree_ssa_forward_propagate_single_use_vars): Likewise.
4412         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
4413         * emit-rtl.c (component_ref_for_mem_expr)
4414         (set_mem_attributes_minus_bitpos): Likewise.
4415         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
4416         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
4417         Likewise.
4418         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
4419         (build_function_call, pointer_diff, build_compound_expr)
4420         (c_finish_return): Likewise.
4421         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
4422         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
4423         Likewise.
4424         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
4425         * expr.c (is_aligning_offset): Likewise.
4426         * tree-ssa-alias.c (is_escape_site): Likewise.
4427         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
4428         (check_all_va_list_escapes): Likewise.
4429         * tree-ssa-loop-ivopts.c (determine_base_object)
4430         (determine_common_wider_type): Likewise.
4431         * dojump.c (do_jump): Likewise.
4432         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
4433         * tree-gimple.c (is_gimple_cast): Likewise.
4434         * fold-const.c (decode_field_reference, )
4435         (fold_sign_changed_comparison, fold_unary, fold_comparison)
4436         (fold_binary): Likewise.
4437         * tree-ssa-alias-warnings.c (find_alias_site_helper)
4438         (already_warned_in_frontend_p): Likewise.
4439         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
4440         * tree.c (really_constant_p, get_unwidened): Likewise.
4441         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4442         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4443         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
4444         Likewise.
4445         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
4446         CONVERT_EXPR_P.
4447         (CONVERT_EXPR_P): Define.
4448         (CASE_CONVERT): Define.
4449         
4450 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
4451
4452         PR middle-end/36117
4453         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
4454         (delete_unmarked_insns): When deleting a call, call
4455         delete_unreachable_blocks.
4456         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
4457         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
4458
4459 2008-05-08  Richard Guenther  <rguenther@suse.de>
4460
4461         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
4462         (-ftree-salias): Likewise.
4463         (salias-max-implicit-fields): Remove param documentation.
4464         (salias-max-array-elements): Likewise.
4465         * tree-pass.h (pass_create_structure_vars): Remove.
4466         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
4467         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
4468         * tree-ssa-alias.c (create_structure_vars): Remove.
4469         (gate_structure_vars): Likewise.
4470         (pass_create_structure_vars): Likewise.
4471         (gate_build_alias): Likewise.
4472         (pass_build_alias): Adjust to run always and dump the function.
4473         * common.opt (ftree-salias): Hide.
4474         * passes.c (init_optimization_passes): Remove
4475         pass_create_structure_vars, adjust comment.
4476         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
4477         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
4478         * opts.c (decode_options): Do not set flag_tree_salias.
4479         (common_handle_option): Add OPT_ftree_salias to the backward
4480         compatibility section.
4481
4482 2008-05-08  Richard Guenther  <rguenther@suse.de>
4483
4484         * tree-flow-inline.h (var_can_have_subvars): Move ...
4485         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
4486         * tree-flow.h (var_can_have_subvars): Remove.
4487         (push_fields_onto_fieldstack): Remove.
4488         (sort_fieldstack): Likewise.
4489         (struct fieldoff): Move ...
4490         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
4491         alias_set and base_for_components fields.
4492         (sort_fieldstack): Make static.
4493         (push_fields_onto_fieldstack): Likewise.  Remove code that
4494         handles anything but RECORD_TYPEs.  Remove alias_set and
4495         base_for_components handling.
4496         (create_variable_info_for): Adjust.
4497
4498 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
4499
4500         * common.opt (Wframe-larger-than=): Shorten the help message
4501         to one line.
4502         * doc/invoke.texi (Wframe-larger-than=): Add more description.
4503
4504 2008-05-08  Rafael Espindola  <espindola@google.com>
4505
4506         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
4507         trap.
4508         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
4509         trap and that both operands are gimple values.
4510         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
4511         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
4512         is a fp operation.
4513
4514 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
4515
4516         * read-rtl.c (join_c_conditions): Return the first string if the
4517         two strings are equal.
4518
4519 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
4520
4521         * gensupport.h (pred_data): Add a "num_codes" field.
4522         (add_predicate_code): Declare.
4523         * gensupport.c (add_predicate_code): New function.
4524         (std_pred_table): Add an "allows_const_p" field.
4525         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
4526         Remove the (incomplete) list of such codes from the codes field.
4527         (init_predicate_table): Use add_predicate_code.  Add all
4528         RTX_CONST_OBJs if allows_const_p is true.
4529         * genrecog.c (process_define_predicate): Use add_predicate_code.
4530
4531 2008-05-08  David Daney  <ddaney@avtrex.com>
4532             Richard Sandiford  <rsandifo@nildram.co.uk>
4533         
4534         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
4535         special case of constant zero operands.
4536         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
4537         old and new values.  Special case constant zero values.
4538         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
4539         fails.
4540         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
4541         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
4542
4543 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
4544
4545         PR target/36090
4546         * simplify-rtx.c (simplify_plus_minus): Create CONST of
4547         similar RTX_CONST_OBJ before CONST_INT.
4548
4549 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
4550
4551         * stmt.c (expand_stack_restore): Change sa mode if needed.
4552
4553 2008-05-08  Richard Guenther  <rguenther@suse.de>
4554
4555         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
4556         return type to bool.
4557         (ix86_sol10_return_in_memory): Likewise.
4558         (ix86_i386elf_return_in_memory): Likewise.
4559         (ix86_i386interix_return_in_memory): Likewise.
4560         * config/i386/i386.c (ix86_return_in_memory): Likewise.
4561         (ix86_sol10_return_in_memory): Likewise.
4562         (ix86_i386elf_return_in_memory): Likewise.
4563         (ix86_i386interix_return_in_memory): Likewise.
4564
4565 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
4566
4567         PR bootstrap/36180
4568         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
4569         fndecl argument.
4570         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
4571         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
4572         declared in front.
4573
4574 2008-05-08  Richard Guenther  <rguenther@suse.de>
4575
4576         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
4577         * tree-data-ref.h (struct dr_alias): Remove subvars field.
4578         (DR_SUBVARS): Remove.
4579         * tree-dfa.c (dump_subvars_for): Remove.
4580         (debug_subvars_for): Likewise.
4581         (dump_variable): Do not dump subvars.
4582         (remove_referenced_var): Do not remove subvars.
4583         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
4584         (lookup_subvars_for_var): Remove.
4585         (get_subvars_for_var): Likewise.
4586         (get_subvars_at): Likewise.
4587         (get_first_overlapping_subvar): Likewise.
4588         (overlap_subvar): Likewise.
4589         * tree-flow.h (subvar_t): Remove.
4590         (struct var_ann_d): Remove subvars field.
4591         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
4592         argument.  Remove special handling of SFTs.
4593         (compute_tag_properties): Likewise.
4594         (set_initial_properties): Likewise.
4595         (compute_call_clobbered): Likewise.
4596         (count_mem_refs): Likewise.
4597         (compute_memory_partitions): Likewise.
4598         (compute_flow_insensitive_aliasing): Likewise.
4599         (setup_pointers_and_addressables): Likewise.
4600         (new_type_alias): Likewise.
4601         (struct used_part): Remove.
4602         (used_portions): Likewise.
4603         (struct used_part_map): Likewise.
4604         (used_part_map_eq): Likewise.
4605         (used_part_map_hash): Likewise.
4606         (free_used_part_map): Likewise.
4607         (up_lookup): Likewise.
4608         (up_insert): Likewise.
4609         (get_or_create_used_part_for): Likewise.
4610         (create_sft): Likewise.
4611         (create_overlap_variables_for): Likewise.
4612         (find_used_portions): Likewise.
4613         (create_structure_vars): Likewise.
4614         * tree.def (STRUCT_FIELD_TAG): Remove.
4615         * tree.h (MTAG_P): Adjust.
4616         (struct tree_memory_tag): Remove base_for_components and
4617         unpartitionable flags.
4618         (struct tree_struct_field_tag): Remove.
4619         (SFT_PARENT_VAR): Likewise.
4620         (SFT_OFFSET): Likewise.
4621         (SFT_SIZE): Likewise.
4622         (SFT_NONADDRESSABLE_P): Likewise.
4623         (SFT_ALIAS_SET): Likewise.
4624         (SFT_UNPARTITIONABLE_P): Likewise.
4625         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
4626         (union tree_node): Remove sft field.
4627         * alias.c (get_alias_set): Remove special handling of SFTs.
4628         * print-tree.c (print_node): Remove handling of SFTs.
4629         * tree-dump.c (dequeue_and_dump): Likewise.
4630         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
4631         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
4632         * tree-predcom.c (set_alias_info): Do not set subvars.
4633         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
4634         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
4635         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
4636         (add_vars_for_offset): Remove.
4637         (add_virtual_operand): Remove special handling of SFTs.
4638         (add_call_clobber_ops): Likewise.
4639         (add_call_read_ops): Likewise.
4640         (get_asm_expr_operands): Likewise.
4641         (get_modify_stmt_operands): Likewise.
4642         (get_expr_operands): Likewise.
4643         (add_to_addressable_set): Likewise.
4644         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
4645         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
4646         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
4647         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
4648         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
4649         (tree_node_structure): Likewise.
4650         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
4651         handling of SFTs.
4652         (find_what_p_points_to): Likewise.
4653
4654 2008-05-08  Sa Liu  <saliu@de.ibm.com>
4655
4656         * config/spu/spu.md: Fixed subti3 pattern.
4657
4658 2008-05-08  Richard Guenther  <rguenther@suse.de>
4659
4660         PR middle-end/36154
4661         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
4662         sure to create a representative for trailing arrays for PTA.
4663
4664 2008-05-08  Richard Guenther  <rguenther@suse.de>
4665
4666         PR middle-end/36172
4667         * fold-const.c (operand_equal_p): Two objects which types
4668         differ in pointerness are not equal.
4669
4670 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
4671
4672         * calls.c (compute_argument_block_size): Add argument tree fndecl.
4673         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
4674         (emit_library_call_value_1): Add new variable fndecl initialized by
4675         NULL_TREE. It should be the decl type of orgfun, but this information
4676         seems not to be available here, so it uses the default calling abi.
4677         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
4678         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
4679         by TARGET_RETURN_IN_MEMORY.
4680         * config/i386/i386-interix.h: Likewise.
4681         * config/i386/i386.h: Likewise.
4682         * config/i386/i386elf.h: Likewise.
4683         * config/i386/ptx4-i.h: Likewise.
4684         * config/i386/sol2-10.h: Likewise.
4685         * config/i386/sysv4.h: Likewise.
4686         * config/i386/vx-common.h: Likewise.
4687         * config/cris/cris.h: Removed #if 0 clause.
4688         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
4689         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
4690         argument.
4691         (ix86_sol10_return_in_memory): Likewise.
4692         (ix86_i386elf_return_in_memory): New.
4693         (ix86_i386interix_return_in_memory): New.
4694         * config/mt/mt-protos.h (mt_return_in_memory): New.
4695         * config/mt/mt.c: Likewise.
4696         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
4697         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
4698         * config/bfin/bfin.h: Likewise.
4699         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
4700         argument.
4701         * config/bfin/bfin.c: Likewise.
4702         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
4703         * config/alpha/unicosmk.h: Likewise.
4704         * config/i386/cygming.h: Likewise.
4705         * config/iq2000/iq2000.h: Likewise.
4706         * config/mips/mips.h: Likewise.
4707         * config/mn10300/mn10300.h: Likewise.
4708         * config/rs6000/rs6000.h: Likewise.
4709         * config/score/score.h: Likewise.
4710         * config/spu/spu.h: Likewise.
4711         * config/v850/v850.h: Likewise.
4712         * defaults.h: Likewise.
4713         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
4714         * expr.c (emit_block_move): Adjust use of
4715         OUTGOING_REG_PARM_STACK_SPACE.
4716         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
4717         OUTGOING_REG_PARM_STACK_SPACE.
4718         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
4719
4720 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
4721
4722         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
4723         on OMP_RETURN for OMP_FOR.
4724
4725         PR debug/35896
4726         * dwarf2out.c (dw_expand_expr, common_check): Removed.
4727         (fortran_common): New function.
4728         (gen_variable_die): Call fortran_common instead of common_check,
4729         adjust for it returning tree instead of rtx.  Formatting.
4730
4731 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
4732
4733         PR rtl/7335
4734         PR rtl/33826
4735         * see.c (see_copy_insn): Copy new pure const attributes for new call.
4736         * c-decl.c (merge_decls): Ditto.
4737         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
4738         to RTL_CONST_OR_PURE_CALL_P.
4739         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
4740         Initialized DECL_LOOPING_CONST_PURE.
4741         (process_call_operands): Set tree_side_effects properly.
4742         * tree.h (TREE_READONLY_DECL_P): Removed.
4743         (DECL_IS_PURE): Renamed to DECL_PURE_P.
4744         (DECL_LOOPING_OR_CONST_P): New macro.
4745         (struct tree_function_decl): Added looping_const_or_pure_p.
4746         (ECF_*) Renumbered.
4747         (ECF_LOOPING_OR_CONST_P): New macro.
4748         * rtlanal.c (pure_const_p): Removed.
4749         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
4750         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
4751         to RTL_CONST_CALL_P.
4752         * ipa-pure-const.c (pure_const_state_e): Added looping field.
4753         (check_decl, check_tree, check_call, scan_function): Initialize
4754         looping.
4755         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
4756         (static_execute): Set looping true for recursive functions.
4757         Undo setting state to IPA_NEITHER for recursive functions.
4758         * cse.c (cse_insn): 
4759         * ifcvt.c (noce_can_store_speculate_p): Changed
4760         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
4761         RTL_CONST_OR_PURE_CALL_P.
4762         * dse.c (scan_insn): Ditto.
4763         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
4764         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
4765         RTL_CONST_OR_PURE_CALL_P.
4766         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
4767         pure_call_p to RTL_CONST_CALL_P.
4768         * gimplify.c (gimplify_call_expr): Clear side effects for
4769         non-looping pure and constant calls.
4770         * calls.c (emit_call_1): Set rtl flags from ecf flags.
4771         (flags_from_decl_or_type): Set ecf flags from decl flags.
4772         (initialize_argument_information): Turn off
4773         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
4774         Change const to pure if callee_copies is true rather than just
4775         turning off const.
4776         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
4777         way of marking pure calls.
4778         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
4779         Remove hack that was supposed to fix pr7335 and remove old
4780         way of marking pure calls.
4781         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
4782         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
4783         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
4784         RTL_CONST_OR_PURE_CALL_P.
4785         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
4786         * loop-invariant.c (find_exits, find_invariant_bb): Changed
4787         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
4788         * sched-deps.c (schedule_analyze): Ditto.
4789         * rtl.h (struct rtx_def): Use call field, unchanging field, and
4790         return_val field of calls to represent pure and const function info.
4791         (CONST_OR_PURE_CALL_P): Deleted macro.
4792         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
4793         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
4794         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
4795         TREE_READONLY.
4796         * tree-optimize.c (execute_fixup_cfg): Added test for
4797         ECF_LOOPING_CONST_OR_PURE.
4798         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
4799         DECL_PURE_P.
4800         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
4801         effects for looping pure or const calls.
4802         (verify_gimple_expr): Added verification code. 
4803         * config/alpha/alpha.c (alpha_legitimize_address,
4804         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
4805         RTL_CONST_CALL_P.
4806         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
4807         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
4808         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
4809         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
4810         RTL_CONST_OR_PURE_CALL_P.
4811         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
4812         and const calls to be deleted.
4813
4814 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
4815
4816         PR target/35714
4817         * config/i386/mmx.md (mmx_subv2sf3): New expander.
4818         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
4819         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
4820         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
4821         to handle nonimmediate operands.
4822         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
4823         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
4824         to handle nonimmediate operands.
4825         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
4826         (mmx_pmulhrwv4hi3): New expander.  Use
4827         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4828         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
4829         (sse2_umulv1siv1di3): New expander.  Use
4830         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4831         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
4832         (mmx_eq<mode>3): New expander.  Use
4833         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4834         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
4835         (mmx_uavgv8qi3): New expander.  Use
4836         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4837         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
4838         (mmx_uavgv4hi3): New expander.  Use
4839         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4840
4841         * config/i386/sse.md
4842         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
4843         to handle nonimmediate operands.
4844         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
4845         to handle nonimmediate operands.
4846         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
4847         to handle nonimmediate operands.
4848         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
4849         to handle nonimmediate operands.
4850         (sse2_unpckhpd_exp): New expander.  Use
4851         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4852         (sse2_unpcklpd_exp): New expander.  Use
4853         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4854         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
4855         to handle nonimmediate operands.
4856         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
4857         to handle nonimmediate operands.
4858         (*sse2_<plusminus_insn><mode>3): Rename from
4859         sse2_<plusminus_insn><mode>3 insn pattern.
4860         (sse2_<plusminus_insn><mode>3): New expander.  Use
4861         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4862         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
4863         (sse2_umulv2siv2di3): New expander.  Use
4864         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4865         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
4866         (sse4_1_mulv2siv2di3): New expander.  Use
4867         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4868         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
4869         (sse2_pmaddwd): New expander.  Use
4870         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4871         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
4872         (sse2_eq<mode>3): New expander.  Use
4873         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4874         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
4875         (sse4_1_eqv2di3): New expander.  Use
4876         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4877         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
4878         (sse2_uavgv16qi3): New expander.  Use
4879         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4880         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
4881         (sse2_uavgv16qi3): New expander.  Use
4882         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4883         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
4884         (sse2_uavgv8hi3): New expander.  Use
4885         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4886         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
4887         (ssse3_pmulhrswv8hi3): New expander.  Use
4888         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4889         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
4890         (ssse3_pmulhrswv4hi3): New expander.  Use
4891         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4892
4893         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
4894         (<sse>_vmmul<mode>3): Ditto.
4895         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
4896         (divv2df3): Ditto.
4897         (ssse3_pmaddubsw128): Use register_operand for operand 1.
4898         (ssse3_pmaddubsw): Ditto.
4899
4900         * config/i386/i386.c (struct_builtin_description)
4901         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
4902         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
4903         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
4904         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
4905         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
4906         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
4907         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
4908         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
4909         (ix86_fixup_binary_operands): Assert that src1
4910         and src2 must have the same mode when swapped.
4911         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
4912         and ix86_binary_operator_ok.  Do not force operands in registers
4913         when optimizing.
4914
4915 2008-05-07  Jan Hubicka  <jh@suse.cz>
4916
4917         * cgraph.c (dump_cgraph_node): Update.
4918         * cgraph.h (cgraph_local_info): Break out inline summary.
4919         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
4920         hook.
4921         * ipa-inline (inline_summary): New accestor function.
4922         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
4923         cgraph_decide_inlining, compute_inline_parameters): Update.
4924         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
4925
4926 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
4927
4928         Cleanup ColdFire scheduling support and add V4 pipeline model.
4929
4930         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
4931         (define_attr cpu): Add cfv4 value.
4932         (define_attr type, define_attr type1): Merge into a single 'type'
4933         attribute.  Update all uses.
4934         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
4935         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
4936         Update all uses.
4937         (define_attr opx_mem, define_attr opy_mem): Remove.
4938         (define_attr op_mem): Clean up, update comment.
4939         (define_attr size): Use specific values instead of general int.
4940         (define_attr guess, define_attr split): Remove.  Update all uses.
4941         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
4942         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
4943         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
4944         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
4945         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
4946         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
4947         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
4948         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
4949         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
4950         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
4951         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
4952         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
4953         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
4954         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
4955         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
4956         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
4957         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
4958         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
4959         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
4960         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
4961         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
4962         Update or set attributes.
4963         (stack_tie): New fake instruction.
4964
4965         * config/m68k/m68k.h (TUNE_CFV4): New macro.
4966         (m68k_sched_attr_size): Update declaration.
4967         (m68k_sched_attr_type2): Remove.
4968         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
4969         Declare new bypass predicates.
4970
4971         * config/m68k/m68k.c (m68k_sched_issue_rate,
4972         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
4973         implementations.
4974         (TARGET_SCHED_ISSUE_RATE,
4975         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
4976         (override_options): Handle scheduling for ColdFire V4 core.
4977         (m68k_expand_prologue): Emit stack_tie.
4978         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
4979         'OP_TYPE_FPN'.  Update all uses.
4980         (sched_guess_p): Remove.
4981         (sched_address_type): Handle symbolic addresses.
4982         (sched_get_operand): New static function.
4983         (sched_operand_type): Merge into sched_attr_op_type.
4984         (sched_attr_op_type): Handle FP registers, handle quick constants,
4985         update.
4986         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
4987         (m68k_sched_attr_size): Update.  Move logic to ...
4988         (sched_get_attr_size_int): New static function.
4989         (sched_get_opxy_mem_type): New static function.
4990         (m68k_sched_attr_op_mem): Update.
4991         (m68k_sched_attr_type2): Remove.
4992         (sched_cfv4_bypass_data): New static variable.
4993         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
4994         (m68k_sched_issue_rate): Implement scheduler hook.
4995         (struct _sched_ib: enabled_p): New field.
4996         (m68k_sched_variable_issue): Update.  Handle V4.
4997         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
4998         sched_dump_class_func_t, sched_dump_split_class,
4999         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
5000         sched_dump_dfa_class, m68k_sched_dump): Remove.
5001         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
5002         hook.
5003         (m68k_sched_init_global): Remove statisctics dumping, introduce
5004         sanity check that all instructions have pipeline reservations.  Handle
5005         ColdFire V4 core.
5006         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
5007         Handle ColdFire V4 core.
5008         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
5009         New static functions.
5010         (m68k_sched_address_bypass_p): New bypass predicate.
5011         (sched_get_indexed_address_scale): New static function.
5012         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
5013
5014         * cf.md: Update comments.
5015         (define_attr type2): Remove.  Use 'type' attribute instead.
5016         Update all uses.
5017         (cf_ib): Rename to cfv123_ib.  Update all uses.
5018         (cf_oep): Rename to cfv123_oep.  Update all uses.
5019         (cf_chr): Rename to cfv123_chr.  Update all uses.
5020         (cf_mem): Rename to cfv123_mem.  Update all uses.
5021         (cf_mac): Move to more appropriate place.
5022         (cfv123_guess): New automaton and cpu_unit.
5023         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
5024         Update uses of 'size' attribute.  Handle before reload scheduling.
5025         (cfv123_guess): New dummy reservation for unhandled instructions.
5026         (cfv4_*): Pipeline description of ColdFire V4 core.
5027         (ignore): New reservation to handle 'ignore' type.
5028
5029 2008-05-07  Ian Lance Taylor  <iant@google.com>
5030
5031         PR middle-end/36013
5032         * gimplify.c (find_single_pointer_decl_1): Don't look through
5033         indirections.
5034         (find_single_pointer_decl): Adjust comments.
5035
5036 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
5037
5038         PR middle-end/36137
5039         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
5040         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
5041
5042         PR middle-end/36106
5043         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
5044         integral type rather than floating point, then VIEW_CONVERT_EXPR
5045         to the floating point type.
5046
5047 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
5048
5049         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
5050         TFmode op0 to register.
5051
5052 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
5053
5054         * c-decl.c (grokdeclarator): Comment typo.
5055
5056 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
5057
5058         * tree-flow.h: Remove prototype for computed_goto_p.
5059         * tree-cfg.c (computed_goto_p): Make static.
5060
5061 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5062
5063         PR target/35657
5064         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
5065         (contains_aligned_value_p): This.  Handle _Decimal128.
5066         (ix86_function_arg_boundary): Only align _Decimal128 to its
5067         natural boundary and handle it properly.
5068
5069 2008-05-06  Martin Jambor  <mjambor@suse.cz>
5070
5071         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
5072         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
5073         (ipcp_method_set_orig_node): Removed.
5074         (ipcp_cval_get_cvalue_type): Removed.
5075         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
5076         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
5077         (ipcp_cval_set_cvalue_type): Removed.
5078         (ipcp_cval_get_cvalue): Removed.
5079         (ipcp_cval_set_cvalue): Removed.
5080         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
5081         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
5082         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
5083         (ipcp_cval_meet): Renamed to ipa_lattice_meet
5084         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
5085         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
5086         (ipcp_get_ith_lattice): Changed parameters.
5087         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
5088         (ipcp_lattice_from_jfunc): Changed parameters.
5089         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
5090         (ipcp_method_cval_print): Added temporary variable info.
5091         (ipcp_redirect): Removed already unused local variable caller.
5092         (ipcp_redirect): New temporary variable orig_callee_info
5093         (ipcp_redirect): Removed newly unused local variable callee.
5094         (ipcp_redirect): Removed (a bit confusing) local variable type.
5095         (ipcp_insert_stage): Added local variable info.
5096         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
5097         renamed too
5098         (ipcp_formal_create): Removed.
5099         (ipcp_method_cval_set): Removed.
5100         (ipcp_propagate_stage): Renamed lattice variables.
5101         (ipcp_method_cval_set_cvalue_type): Removed.
5102         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
5103         (ipcp_print_all_lattices): Changed printed strings to refer to 
5104         lattices rather than cvals.
5105         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
5106         (ipcp_propagate_const): Changed formal parameters.
5107         (build_const_val): Changed formal parameters.
5108         (ipcp_insert_stage): Removed useless variable cvalue
5109         (build_const_val): Changed formal parameters.
5110         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
5111         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
5112         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
5113         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
5114         (ipcp_print_func_profile_counts): Changed string from "method" to 
5115         "function"
5116         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
5117         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
5118         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
5119         (ipcp_structures_print): Renamed to ipcp_print_all_structures
5120         (ipcp_profile_print): Renamed to ipcp_print_profile_data
5121         (ipcp_lat_is_const): Changed parameters and made inline.
5122         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
5123         (ipcp_redirect): Renamed to ipcp_need_redirect_p
5124         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
5125         the predicate condition directly
5126         (ipcp_propagate_stage): Added local variable args. Removed local
5127         variable callee.  (Both are mere code simplifications.)
5128         (ipcp_method_dont_insert_const): Renamed to
5129         ipcp_node_not_modifiable_p.
5130         (ipcp_node_not_modifiable_p): Made inline.
5131         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
5132         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
5133         (ipcp_print_all_lattices): Removed variable cvalue
5134         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
5135         Updated comments.
5136
5137 2008-05-06  Olivier Hainque  <hainque@adacore.com>
5138
5139         * tree-sra.c (try_instantiate_multiple_fields): Early return
5140         if field has POINTER_TYPE.
5141
5142 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
5143
5144         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
5145         by using 'q' specifier for instruction.
5146         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
5147
5148 2008-05-06  Anatoly Sokolov <aesok@post.ru>
5149
5150         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
5151         Change mode of zero_extract from QImode to HImode.
5152         (sign bit tests peepholes): (Ditto.).
5153
5154 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
5155
5156         * config/i386/mmx.md: Remove double backslashes from asm templates.
5157         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
5158         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
5159         to handle nonimmediate operands.
5160         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
5161         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
5162         to handle nonimmediate operands.
5163         (*mmx_<code>v2sf3_finite): New insn pattern.
5164         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
5165         (mmx_<code>v2sf3): New expander.  Use
5166         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5167         (mmx_<plusminus_insn><mode>3): New expander.  Use
5168         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5169         (*mmx_<plusminus_insn><mode>3): New insn pattern.
5170         (mmx_add<mode>3): Removed.
5171         (mmx_ssadd<mode>3): Ditto.
5172         (mmx_usadd<mode>3): Ditto.
5173         (mmx_sub<mode>3): Ditto.
5174         (mmx_sssub<mode>3): Ditto.
5175         (mmx_ussub<mode>3): Ditto.
5176         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
5177         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
5178         to handle nonimmediate operands.
5179         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
5180         insn pattern.
5181         (mmx_smulv4hi3_highpart): New expander.  Use
5182         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5183         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
5184         insn pattern.
5185         (mmx_umulv4hi3_highpart): New expander.  Use
5186         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5187         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
5188         (mmx_<code>v4hi3): New expander.  Use
5189         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5190         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
5191         (mmx_<code>v8qi3): New expander.  Use
5192         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5193         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
5194         (mmx_<code><mode>3): New expander.  Use
5195         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5196
5197 2008-05-05  Jan Hubicka  <jh@suse.cz>
5198
5199         PR tree-optimization/36118
5200         * passes.c (pass_init_dump_file): Fix dump header.
5201
5202 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5203
5204         PR middle-end/36141
5205         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
5206         VCE for function decls.
5207
5208 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
5209
5210         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
5211
5212 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
5213
5214         * config/i386/i386.md (sat_plusminus): New.
5215         (plusminus_insn): Likewise.
5216         (plusminus_mnemonic): Likewise.
5217         (addsub): Removed.
5218         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
5219         (*<addsub><mode>3_cc_overflow): Renamed to ...
5220         (*<plusminus_insn><mode>3_cc_overflow): This.
5221         (*<addsub>si3_zext_cc_overflow): Renamed to ...
5222         (*<plusminus_insn>si3_zext_cc_overflow): This.
5223
5224         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
5225         (<plusminus_insn><mode>3): This.
5226         (*<addsub><mode>3): Renamed to ...
5227         (*<plusminus_insn><mode>3): This.
5228         (<sse>_vm<addsub><mode>3): Renamed to ...
5229         (<sse>_vm<plusminus_insn><mode>3): This.
5230         (sse3_h<addsub>v4sf3): Renamed to ...
5231         (sse3_h<plusminus_insn>v4sf3): This.
5232         (sse3_h<addsub>v2df3): Renamed to ...
5233         (sse3_h<plusminus_insn>v2df3): This.
5234         (<plusminus_insn><mode>3): New.
5235         (*<plusminus_insn><mode>3): Likewise.
5236         (sse2_<plusminus_insn><mode>3): Likewise.
5237         (add<mode>): Removed.
5238         (*add<mode>3): Likewise.
5239         (sse2_ssadd<mode>3): Likewise.
5240         (sse2_usadd<mode>3): Likewise.
5241         (sub<mode>3): Likewise.
5242         (*sub<mode>3): Likewise.
5243         (sse2_sssub<mode>3): Likewise.
5244         (sse2_ussub<mode>3): Likewise.
5245
5246 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
5247
5248         * gthr-single.h: Add in required interface elements as per gthr.h.
5249         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
5250         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
5251         Generalize UNUSED macro. 
5252         (__gthread_once): Add.
5253         (__gthread_key_create): Add.
5254         (__gthread_key_delete): Add.
5255         (__gthread_getspecific): Add.
5256         (__gthread_setspecific): Add.
5257         
5258 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
5259
5260         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
5261         the same size types for the indirect reference on the rhs, then
5262         create a VCE.
5263
5264 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
5265
5266         * config/i386/i386.md
5267         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
5268         one insn template instead of template series.
5269         (*xordi_1_rex64): Ditto.
5270         (*xordi_2_rex64): Ditto.
5271
5272 2008-05-05  Ira Rosen  <irar@il.ibm.com>
5273
5274         PR tree-optimization/36119
5275         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
5276         in case of SLP.
5277
5278 2008-06-04  Jan Hubicka  <jh@suse.cz>
5279
5280         tree-optimization/36100
5281         * tree-pass.h (pass_O0_always_inline): Declare.
5282         * ipa-inline.c (inline_transform): Remove dead code.
5283         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
5284         pass_O0_always_inline): New.
5285         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
5286
5287 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
5288
5289         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
5290         mnemonic in this_param move for TARGET_64BIT.
5291
5292 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
5293
5294         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
5295         (*strmovsi_rex_1): Ditto.
5296         (*strsetsi_1): Ditto.
5297         (*strsetsi_rex_1): Ditto.
5298
5299         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
5300         adddicc expanders using SWI mode iterator.
5301
5302 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
5303
5304         PR target/36121
5305         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
5306         argument handling.
5307
5308 2008-05-04  David S. Miller  <davem@davemloft.net>
5309
5310         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
5311         (sparc*-*-linux*): Use linux.h in tm_file.
5312         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
5313         compiler defaulting to 32-bit.
5314         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
5315         no longer needed.
5316         * config/sparc/linux.h: Remove definitions now obtained
5317         properly from linux.h
5318         * config/sparc/linux64.h: Likewise.
5319         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
5320         don't want this setting for 32-bit builds in a biarch compiler.
5321         * doc/install.texi: Add sparc-linux to list of targets
5322         supporting --enable-targets=all.
5323
5324 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
5325
5326         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
5327
5328 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
5329
5330         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
5331         after V4SI_FTYPE_V8HI.
5332         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
5333         case V4SI_FTYPE_V2DF.
5334
5335 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
5336
5337         * doc/invoke.texi (max-flow-memory-locations): Removed.
5338         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
5339         
5340 2008-05-03  Richard Guenther  <rguenther@suse.de>
5341
5342         PR middle-end/34973
5343         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
5344
5345 2008-05-02  David S. Miller  <davem@davemloft.net>
5346
5347         * config.gcc (need_64bit_hwint): Document libcpp dependency.
5348
5349 2008-05-02  Simon Baldwin <simonb@google.com>
5350
5351         PR bootstrap/36108
5352         * c-common.h (warn_array_subscript_range): Removed.
5353         * c-common.c (warn_array_subscript_range): Ditto.
5354         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
5355         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
5356
5357 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
5358
5359         * config/i386/i386.c (ix86_special_builtin_type): New.
5360         (bdesc_special_args): Likewise.
5361         (ix86_expand_special_args_builtin): Likewise.
5362         (ix86_init_mmx_sse_builtins): Updated.
5363         (ix86_expand_builtin): Updated.
5364         (ix86_expand_store_builtin): Removed.
5365         (ix86_expand_unop_builtin): Likewise.
5366
5367         * config/i386/mm3dnow.h (__v2sf): Moved to ...
5368         * config/i386/mmintrin.h (__v2sf): Here.
5369
5370         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
5371         const __v2sf.
5372         (_mm_loadl_pi): Likewise.
5373         (_mm_storeh_pi): Replace __v2si with __v2sf.
5374         (_mm_storel_pi): Likewise.
5375
5376         * doc/extend.texi: Correct __builtin_ia32_loadhps,
5377         __builtin_ia32_loadlps, __builtin_ia32_storehps,
5378         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
5379         __builtin_ia32_loadlpd.
5380
5381 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
5382
5383         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
5384         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
5385         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
5386         (ix86_init_mmx_sse_builtins): Updated.
5387         (ix86_expand_args_builtin): Likewise.
5388         (ix86_expand_builtin): Likewise.
5389         (ix86_expand_unop1_builtin): Renamed to ...
5390         (ix86_expand_unop_vec_merge_builtin): This.
5391
5392 2008-05-01  Jan Hubicka  <jh@suse.cz>
5393
5394         PR bootstrap/36100
5395         * ipa-inline.c (inline_generate_summary): Make static.
5396         (inline_transform): Do not call inlining at -O0; make static.
5397         * passes.c (execute_todo): Add sanity check.
5398         (execute_one_ipa_transform_pass): Execute proper flags.
5399
5400 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
5401
5402         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
5403         (DECL_NONADDRESSABLE_P): Likewise.
5404         * alias.c (record_component_aliases): Fix comment.
5405
5406 2008-05-01  Simon Baldwin <simonb@google.com>
5407
5408         * c-common.h (warn_array_subscript_range): New function.
5409         * c-common.c (warn_array_subscript_range): Ditto.
5410         * tree-vrp.c (check_array_ref): Corrected code to agree with
5411         comment, ignoring only arrays of size 0 or size 1.
5412         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
5413
5414 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
5415
5416         * config/i386/i386.c (ix86_builtin_type): Replace
5417         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
5418         (bdesc_args): Updated.
5419         (ix86_init_mmx_sse_builtins): Likewise.
5420         (ix86_expand_args_builtin): Likewise.
5421
5422         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
5423         with __v1di.
5424
5425         * doc/extend.texi: Correct __builtin_ia32_palignr.
5426
5427 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
5428
5429         PR target/36095
5430         * config/i386/i386.c (bdesc_crc32): Removed.
5431         (ix86_expand_crc32): Likewise.
5432         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
5433         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
5434         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
5435         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
5436         UINT_FTYPE_UINT_UCHAR.
5437         (bdesc_args): Updated. Add crc32 builtins.
5438         (ix86_init_mmx_sse_builtins): Updated.
5439         (ix86_expand_args_builtin): Updated to support subreg.
5440
5441         * doc/extend.texi: Correct __builtin_ia32_crc32di.
5442
5443 2008-05-01  Jan Hubicka  <jh@suse.cz>
5444
5445         * tree-pass.h (opt_pass): Add IPA_PASS.
5446         (varpool_node, cgraph_node): Forward declare.
5447         (ipa_opt_pass): Define.
5448         (pass_ipa_inline): Turn into ipa_opt_pass.
5449         (pass_apply_inline): Remove.
5450         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
5451         (apply_inline): Turn into ....
5452         (inline_transform): ... this one.
5453         (inline_generate_summary): New function.
5454         (pass_apply_inline): Remove.
5455         * function.h (ipa_opt_pass): Forward declare structure; typedef;
5456         vector.
5457         (struct function): Add ipa_transforms_to_apply.
5458         * passes.c (register_one_dump_file): Work on IPA_PASS.
5459         (init_optimization_passes): Remove pass_inline_parameters and
5460         pass_apply_inline.
5461         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
5462         (execute_one_pass) ... here; apply transforms when possible.
5463         (add_ipa_transform_pass, execute_ipa_summary_asses,
5464         execute_one_ipa_transform_pass): New.
5465         (execute_ipa_pass_list): Update for IPA_PASS type.
5466
5467 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
5468
5469         * config/i386/i386.c (ix86_builtin_type): Add
5470         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
5471         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
5472         (bdesc_args): Add SSE4a builtins.
5473         (ix86_init_mmx_sse_builtins): Updated.
5474         (ix86_expand_args_builtin): Likewise.
5475         (ix86_expand_builtin): Likewise.
5476
5477 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
5478
5479         * config/i386/i386.c (ix86_builtin_type): Add
5480         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
5481         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
5482         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
5483         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
5484         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
5485         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
5486         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
5487         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
5488         and DI_FTYPE_DI_DI_INT.
5489         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
5490         (ix86_init_mmx_sse_builtins): Updated.
5491         (ix86_expand_args_builtin): Likewise.
5492         (ix86_expand_builtin): Likewise.
5493         (ix86_expand_binop_imm_builtin): Removed.
5494
5495         * doc/extend.texi: Correct __builtin_ia32_palignr128.
5496
5497 2008-04-30  Richard Guenther  <rguenther@suse.de>
5498
5499         PR tree-optimization/32921
5500         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
5501
5502 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
5503
5504         * config/arm/arm.c (arm_unwind_emit): Use
5505         crtl->all_throwers_are_sibcalls instead of
5506         cfun->all_throwers_are_sibcalls.
5507         (arm_output_fn_unwind): Likewise.
5508         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
5509         instead of cfun->uses_pic_offset_table.
5510         (frv_expand_prologue): Likewise.
5511         (frv_frame_pointer_required): Likewise.
5512         (frv_expand_fdpic_call): Likewise.
5513         (frv_emit_movsi): Likewise.
5514         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
5515         cfun->returns_pcc_struct instead of
5516         current_function_returns_pcc_struct.
5517         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
5518         instead of cfun->calls_eh_return.
5519         (m32c_pushm_popm): Likewise.
5520         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
5521         "extern" declaration.
5522
5523 2008-04-30  Richard Guenther  <rguenther@suse.de>
5524
5525         PR tree-optimization/21636
5526         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
5527         constant address.
5528         (evaluate_stmt): Print the likely value.
5529         (ccp_visit_stmt): Avoid excessive vertical spacing.
5530
5531 2008-04-30  Rafael Espindola  <espindola@google.com>
5532
5533         * builtins.c (fold_call_expr): Return realret.
5534         * tree-ssa-threadedge.c
5535         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
5536         __builtin_object_size.
5537
5538 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
5539
5540         * gcc.c (wrapper_string): New variable.
5541         (insert_wrapper): New function.
5542         (execute): New option -wrapper.
5543         * doc/invoke.texi (Overall Options): New driver option -wrapper.
5544
5545 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
5546
5547         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
5548         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
5549         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
5550         from...
5551         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
5552         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
5553         config/rs6000/e500crtres64gprctr.asm,
5554         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
5555         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
5556         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
5557         config/rs6000/e500crtsav64gprctr.asm,
5558         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
5559         config/rs6000/e500crtsavg64gprctr.asm: New files.
5560         * config/rs6000/t-ppccomm: Add build rules for new files.
5561         (LIB2FUNCS_STATIC_EXTRA): Add new files.
5562         * config/rs6000/t-netbsd: Add build rules for new files.
5563         (LIB2FUNCS_STATIC_EXTRA): New variable.
5564         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
5565         (CRTSAVRES_DEFAULT_SPEC): Likewise.
5566         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
5567
5568 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
5569
5570         * config/i386/i386.c (ix86_builtin_type): Add
5571         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
5572         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
5573         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
5574         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
5575         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
5576         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
5577         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
5578         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
5579         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
5580         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
5581         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
5582         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
5583         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
5584         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
5585         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
5586         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
5587         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
5588         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
5589         V1DI_FTYPE_V2SI_V2SI.
5590         (bdesc_2arg): Moved to ...
5591         (bdesc_args): Here.
5592         (ix86_init_mmx_sse_builtins): Updated.
5593         (ix86_expand_args_builtin): Updated.  Take a pointer
5594         to const struct builtin_description.  Handle comparison
5595         builtin functions.
5596         (ix86_expand_sse_compare): Take a new argument for swapping operands.
5597         (ix86_expand_builtin): Updated.
5598
5599         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
5600         (ssse3_pmaddubsw128): This.
5601         (ssse3_pmaddubswv4hi3): Renamed to ...
5602         (ssse3_pmaddubsw): This.
5603
5604         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
5605         (__builtin_ia32_packssdw128): Likewise.
5606         (__builtin_ia32_packuswb128): Likewise.
5607         (__builtin_ia32_pmaddubsw): Likewise.
5608         (__builtin_ia32_pmaddubsw128): Likewise.
5609
5610 2008-04-30  Richard Guenther  <rguenther@suse.de>
5611
5612         PR tree-optimization/14847
5613         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
5614         (recognize_bits_test): Use it.
5615         (recognize_single_bit_test): Likewise.
5616
5617 2008-04-30  Martin Jambor  <mjambor@suse.cz>
5618
5619         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
5620         instead of setting number of formal parameters to zero.
5621         (ipcp_init_stage): Do not set the number of actual parameters to zero 
5622         either.
5623         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
5624         which are called with variable number of arguments.
5625         (ipcp_insert_stage): Explicitely skipping all nodes which are
5626         called with variable number of arguments.
5627         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
5628         number of parameters.
5629
5630         * ipa-prop.h (struct ipa_node_params): Added flag
5631         called_with_var_arguments
5632         (ipa_set_param_count): Added.  Changed sole setter to use it.
5633         (ipa_get_param_count): Added.  All readers of param_count
5634         converted to use it instead.
5635         (ipa_set_called_with_variable_arg): Added.
5636         (ipa_is_called_with_var_arguments): Added.
5637         (ipa_get_ith_param): Added.  All readers of param_decls converted
5638         to use it instead.
5639         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
5640         changed to use it. 
5641         (ipa_get_cs_argument_count): Added, all readers of argument_count
5642         changed to cal it.
5643         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
5644         to use it.
5645         
5646         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
5647         (struct ipcp_lattice): Renamed cval_type to type
5648         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
5649
5650         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
5651         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
5652         (ipcp_insert_stage): Changed the type of variable cvalue to tree
5653         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
5654         (build_const_val): Changed the type of parameter cvalue to tree
5655         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
5656         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
5657         
5658         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
5659         constant 
5660
5661         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
5662         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
5663         (ipa_add_method): Renamed to ipa_push_func_to_list
5664         (ipa_remove_method): Renamed to ipa_pop_func_from_list
5665         (ipa_callsite_param_count): Removed.
5666         (ipa_callsite_param_count_set): Removed.
5667         (ipa_callsite_param): Removed.
5668         (ipa_callsite_callee): Removed.
5669         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
5670         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
5671         (ipa_method_formal_count): Removed.
5672         (ipa_method_formal_count_set): Removed.
5673         (ipa_method_get_tree): Removed.
5674         (ipa_method_tree_map_create): Removed.
5675         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
5676         (ipa_create_param_decls_array): Creates the array itself
5677         (ipa_create_param_decls_array): Temporary variable info instead of 
5678         a few dereferences.
5679         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
5680         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
5681         (get_type): Removed.
5682         (ipa_jf_get_info_type): Removed.
5683         (ipa_node_create): Renamed to ipa_create_node_params
5684         (ipa_free): Renamed to ipa_free_all_node_params
5685         (ipa_nodes_create): Renamed to ipa_create_all_node_params
5686         (ipa_edges_create): Renamed to ipa_create_all_edge_args
5687         (ipa_edges_free): Renamed to ipa_free_all_edge_args
5688         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
5689         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
5690         ipa_free_all_edge_args
5691         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
5692         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
5693         (ipa_create_methodlist_node): Removed.
5694         (ipa_methodlist_method): Removed.
5695         (ipa_methodlist_method_set): Removed.
5696         (ipa_methodlist_next_method): Removed.
5697         (ipa_methodlist_next_method_set): Removed.
5698         (ipa_method_is_modified): Removed.
5699         (ipa_method_modify_create): Removed.
5700         (ipa_method_modify_init): Temporary variable info instead of a few 
5701         dereferences.
5702         (ipa_detect_param_modifications): Temporary variable info instead of 
5703         a few dereferences.
5704         (ipa_compute_jump_functions): Temporary variable info instead of 
5705         a few dereferences.
5706         (ipa_method_modify_set): Removed.
5707         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
5708         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
5709         than craph_node as the first parameter.
5710         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
5711         (ipa_method_modify_init): Removed.
5712         (ipa_compute_jump_functions): Added a temp variable instead of 
5713         repeatadly dereferencing the cgraph_edge.aux pointer
5714         (ipa_callsite_param_set_type): Removed.
5715         (ipa_compute_jump_functions): i renamed to index and moved to 
5716         an inner block
5717         (ipa_callsite_param_set_info_type_formal): Removed.
5718         (ipa_callsite_param_set_info_type): Removed.
5719         (ipa_callsite_param_map_create): Removed.
5720         (ipa_callsite_tree): Removed.
5721         (ipa_callsite_caller): Removed.
5722         (ipa_pop_func_from_list): return_method removed to return_func
5723
5724         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
5725         prefixed all values with IPA_. Changed all users.
5726         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
5727         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
5728         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
5729         (union parameter_info): Renamed to jump_func_value.
5730         (union jump_func_value): Renamed value to constant
5731         (struct ipa_jump_func): Renamed info_type to value
5732         (struct ipa_node): Renamed to ipa_node_params
5733         (struct ipa_node_params): Renamed ipa_arg_num to param_count
5734         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
5735         (struct ipa_node_params): Renamed ipa_mod to modified_flags
5736         (struct ipa_edge): Renamed to ipa_edge_args
5737         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
5738         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
5739         (struct ipa_methodlist): Renamed to ipa_func_list
5740         (struct ipa_func_list): method_p renamed to node, next_method
5741         renamed to next
5742         (ipa_methodlist_p): Removed, switched all users to struct pointer
5743         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
5744
5745 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
5746
5747         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
5748         (rs6000_emit_epilogue): Use backchain to restore only when we
5749         have a large frame.  Make use of frame pointer to restore if we
5750         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
5751
5752 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
5753
5754         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
5755         Add mode to zero_extract.
5756         (sign bit tests peepholes): (Ditto.).
5757
5758 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
5759
5760         * config/i386/i386.c (ix86_builtins): Replace Prescott New
5761         Instructions in comments with SSE3.
5762         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
5763         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
5764         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
5765         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
5766         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
5767         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
5768         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
5769         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
5770         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
5771         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
5772         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
5773         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
5774         (bdesc_sse_args): Renamed to ...
5775         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
5776         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
5777         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
5778         IX86_BUILTIN_FABSQ.
5779         (bdesc_1arg): Moved to ...
5780         (bdesc_args): Here.
5781         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
5782         Instructions in comments with SSE3.
5783         (ix86_expand_sse_operands_builtin): Renamed to ...
5784         (ix86_expand_args_builtin): This.  Updated.
5785         (ix86_expand_unop1_builtin): Update comments.
5786         (ix86_expand_builtin): Updated.
5787
5788 2008-04-29  Richard Guenther  <rguenther@suse.de>
5789
5790         PR tree-optimization/36078
5791         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5792         Update virtual SSA form after cleaning up the CFG.
5793
5794 2008-04-29  Richard Guenther  <rguenther@suse.de>
5795
5796         PR middle-end/15255
5797         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
5798
5799 2008-04-29  Richard Guenther  <rguenther@suse.de>
5800
5801         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
5802         (compute_may_aliases): Do not call finalize_ref_all_pointers.
5803         (compute_flow_insensitive_aliasing): Do not treat
5804         PTR_IS_REF_ALL pointers special.
5805         (get_smt_for): Likewise.
5806         (may_alias_p): Re-structure.
5807         (is_escape_site): A ref-all pointer conversion is not an escape site.
5808         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
5809         PTR_IS_REF_ALL pointers special.
5810         * tree-ssa-structalias.h (struct alias_info): Remove
5811         ref_all_symbol_mem_tag field.
5812         (PTR_IS_REF_ALL): Remove.
5813
5814 2008-04-29  Richard Guenther  <rguenther@suse.de>
5815
5816         PR middle-end/36077
5817         * fold-const.c (extract_muldiv_1): In combining division constants
5818         make sure to never overflow.
5819
5820 2008-04-29  Nick Clifton  <nickc@redhat.com>
5821
5822         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
5823
5824 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5825
5826         PR bootstrap/35169
5827         * optc-gen.awk: Work around HP-UX/IA awk bug.
5828
5829 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
5830
5831         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
5832         2008-04-25 commit.
5833
5834 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
5835
5836         PR target/36073
5837         * config/i386/i386.md
5838         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
5839         Change operand 1 predicate to nonimmediate_operand.
5840
5841 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
5842
5843         PR debug/36060
5844         * dwarf2out.c (struct die_struct): Mark as chain_circular through
5845         die_sub field.
5846         * gengtype.c (walk_type, write_func_for_structure): Handle
5847         chain_circular.
5848         * doc/gty.texi: Document chain_circular.
5849
5850 2008-04-28  Richard Guenther  <rguenther@suse.de>
5851
5852         PR tree-optimization/36066
5853         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
5854         SCEV and loop.
5855
5856 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
5857
5858         PR target/36064
5859         * config/i386/i386.md
5860         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
5861         Use match_scratch instead of match_operand for operands 3 and 4.
5862
5863 2008-04-27  Richard Guenther  <rguenther@suse.de>
5864
5865         PR tree-optimization/18754
5866         PR tree-optimization/34223
5867         * tree-pass.h (pass_complete_unrolli): Declare.
5868         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
5869         loop size before and after unconditionally of UL_NO_GROWTH in effect.
5870         Rewrite loop into loop closed SSA form if it is not already.
5871         (tree_unroll_loops_completely): Re-structure to iterate over
5872         innermost loops with intermediate CFG cleanups.
5873         Unroll outermost loops only if requested or the code does not grow
5874         doing so.
5875         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
5876         loops are available.
5877         (tree_vectorize): Instead do so here.
5878         (tree_complete_unroll): Also unroll outermost loops.
5879         (tree_complete_unroll_inner): New function.
5880         (gate_tree_complete_unroll_inner): Likewise.
5881         (pass_complete_unrolli): New pass.
5882         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
5883         uses outside of the loop.
5884         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
5885         form if it is available.  
5886         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
5887         * passes.c (init_optimization_passes): Schedule complete inner
5888         loop unrolling pass before the first CCP pass after final inlining.
5889
5890 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
5891
5892         * targhooks.h (default_emutls_var_fields,
5893         default_emutls_var_init): Declare.
5894         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
5895         * target.h (struct gcc_target): Add struct emutls member.
5896         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
5897         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
5898         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
5899         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
5900         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
5901         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
5902         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
5903         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
5904         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
5905         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
5906         emit debug information.
5907         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
5908         * varasm.c: Include targhooks.h.
5909         (emutls_object_section, emutls_tmpl_section): New.
5910         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
5911         (EMUTLS_SEPARATOR): New.
5912         (prefix_name): New.
5913         (get_emutls_object_name): New.
5914         (default_emutls_var_fields): New, broken out of ...
5915         (get_emutls_object_type): ... here.  Adjust to use target hooks.
5916         (get_emutls_init_templ_addr): Adjust to use target hooks.
5917         (emutls_decl): Adjust to use target hooks.
5918         (emutls_finish): Likewise.
5919         (default_emutls_var_init): New, broken out of ...
5920         (assemble_variable): ... here.  Adjust to use target hooks.
5921         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
5922         SECCAT_EMUTLS_TMPL.
5923         * c-common.c (handle_section_attribute): Prevent overriding
5924         sections for emulated tls with special sections.
5925         * config/i386/i386.c (x86_64_elf_select_section): Add
5926         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
5927         (x86_64_elf_unique_section): Likewise.
5928         * config/vxworks.c: Include tree.h.
5929         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
5930         (vxworks_override_options): Set TLS scheme.
5931         * doc/tm.texi (Emulated TLS): New node.
5932
5933 2008-04-26  Simon Baldwin <simonb@google.com>
5934
5935         PR c/35652
5936         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
5937         with propagated string constants.
5938
5939 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
5940
5941         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
5942         constraint for operand 2 when operand 0 is memory operand.
5943         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
5944         operand 0 is memory operand.
5945         (fix_trunc<mode>_i387_with_temp): Ditto.
5946         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
5947         operand 2 when operand 1 is memory operand.
5948         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
5949         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
5950         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
5951         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
5952         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
5953         operands 2,3 and 4 when operand 1 is memory operand.
5954         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
5955         is memory operand.
5956         (fistdi2_floor_with_temp): Ditto.
5957         (fist<mode>2_floor_with_temp): Ditto.
5958         (fistdi2_ceil_with_temp): Ditto.
5959         (fist<mode>2_ceil_with_temp): Ditto.
5960         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
5961
5962 2008-04-26  David Daney  <ddaney@avtrex.com>
5963
5964         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
5965         unspec_volitile.
5966         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
5967         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5968         UNSPEC_UPDATE_GOT_VERSION): Renumber.
5969         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
5970         (compare_and_swap_12): New insn.
5971         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
5972         * config/mips/mips.c (mips_force_binary): New function.
5973         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
5974         (mips_expand_compare_and_swap_12): New function.
5975         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
5976
5977 2008-04-25  Jan Hubicka  <jh@suse.cz>
5978
5979         PR testsuite/35843
5980         * cfgexpand.c (pass_expand): Turn into RTL pass.
5981         * passes.c (execute_one_pass): Do pass typechecking after execution.
5982         * tree-pass.h (pass_expand): Turn into RTL pass.
5983
5984         * function.h (struct rtl_data): Move here fields
5985         accesses_prior_frames, calls_eh_return, saves_all_registers,
5986         has_nonlocal_goto, has_asm_statement, is_thunk,
5987         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
5988         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
5989         arg_pointer_save_area_init from struct function; turn into bool.
5990         (struct function): Move
5991         calls_eh_return, saves_all_registers, has_nonlocal_goto,
5992         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
5993         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
5994         tail_call_emit, arg_pointer_save_area_init
5995         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
5996         (current_function_returns_struct, current_function_returns_pcc_struct,
5997         current_function_calls_setjmp, current_function_calls_alloca,
5998         current_function_accesses_prior_frames,
5999         current_function_calls_eh_return, current_function_is_thunk,
6000         current_function_stdarg, current_function_profile,
6001         current_function_limit_stack, current_function_uses_pic_offset_table,
6002         current_function_uses_const_pool, current_function_has_nonlocal_label,
6003         current_function_saves_all_registers,
6004         current_function_has_nonlocal_goto,
6005         current_function_has_asm_statement): Remove accesor macros.
6006         * ra-conflict.c (global_conflicts): Update.
6007         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
6008         (suitable_for_tail_call_opt_p): Update.
6009         * builtins.c (expand_builtin_return_addr): Update.
6010         (expand_builtin_setjmp_setup): Update.
6011         (expand_builtin_nonlocal_goto): Update.
6012         * final.c (final_start_function): Update.
6013         (profile_function): Update.
6014         (leaf_function_p): Update.
6015         (only_leaf_regs_used): Update.
6016         * df-scan.c (df_get_exit_block_use_set): Update.
6017         * dojump.c (clear_pending_stack_adjust): Update.
6018         * tree-stdarg.c (gate_optimize_stdarg): Update.
6019         * gimple-low.c (lower_function_body): Update.
6020         * global.c (compute_regsets): Update.
6021         (global_alloc): Update.
6022         * dwarf2out.c (dwarf2out_begin_prologue): Update.
6023         * expr.c (expand_assignment): Update.
6024         * dse.c (dse_step0): Update.
6025         (dse_step1): Update.
6026         * c-decl.c (store_parm_decls): Update.
6027         * local-alloc.c (combine_regs): Update.
6028         (find_free_reg): Update.
6029         * function.c (assign_parms_augmented_arg_list): Update.
6030         (assign_parm_find_data_types): Update.
6031         (assign_parms): Update.
6032         (allocate_struct_function): Update.
6033         (expand_function_start): Update.
6034         (expand_function_end): Update.
6035         (get_arg_pointer_save_area): Update.
6036         (thread_prologue_and_epilogue_insns): Update.
6037         (rest_of_match_asm_constraints): Update.
6038         * stor-layout.c (variable_size): Update.
6039         * gcse.c (gcse_main): Update.
6040         (bypass_jumps): Update.
6041         * gimplify.c (gimplify_function_tree): Update.
6042         * calls.c (emit_call_1): Update.
6043         (expand_call): Update.
6044         * bt-load.c (compute_defs_uses_and_gen): Update.
6045         * except.c (sjlj_assign_call_site_values): Update.
6046         (sjlj_emit_function_enter): Update.
6047         (can_throw_external): Update.
6048         (set_nothrow_function_flags): Update.
6049         (expand_builtin_unwind_init): Update.
6050         (expand_eh_return): Update.
6051         (convert_to_eh_region_ranges): Update.
6052         (output_function_exception_table): Update.
6053         * emit-rtl.c (gen_tmp_stack_mem): Update.
6054         * cfgexpand.c (expand_used_vars): Update.
6055         (tree_expand_cfg): Update.
6056         * cfgcleanup.c (rest_of_handle_jump): Update.
6057         * explow.c (allocate_dynamic_stack_space): Update.
6058         * varasm.c (assemble_start_function): Update.
6059         (force_const_mem): Update.
6060         (mark_constant_pool): Update.
6061         * tree-optimize.c (tree_rest_of_compilation): Update.
6062         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
6063         * tree-cfg.c (notice_special_calls): Update.
6064         (is_ctrl_altering_stmt): Update.
6065         (tree_can_make_abnormal_goto): Update.
6066         (tree_purge_dead_abnormal_call_edges): Update.
6067         * config/alpha/predicates.md: Update.
6068         * config/alpha/alpha.c (alpha_sa_mask): Update.
6069         (alpha_sa_size): Update.
6070         (alpha_does_function_need_gp): Update.
6071         (alpha_expand_prologue): Update.
6072         (alpha_start_function): Update.
6073         (alpha_output_function_end_prologue): Update.
6074         (alpha_expand_epilogue): Update.
6075         * config/frv/frv.c (frv_stack_info): Update.
6076         (frv_expand_epilogue): Update.
6077         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
6078         (s390_register_info): Update.
6079         (s390_frame_info): Update.
6080         (s390_init_frame_layout): Update.
6081         (s390_can_eliminate): Update.
6082         (save_gprs): Update.
6083         * config/spu/spu.c (spu_split_immediate): Update.
6084         (need_to_save_reg): Update.
6085         (spu_expand_prologue): Update.
6086         (spu_expand_epilogue): Update.
6087         * config/sparc/sparc.md: Update.
6088         * config/sparc/sparc.c (eligible_for_return_delay): Update.
6089         (sparc_tls_got): Update.
6090         (legitimize_pic_address): Update.
6091         (sparc_emit_call_insn): Update.
6092         (sparc_expand_prologue): Update.
6093         (output_return): Update.
6094         (print_operand): Update.
6095         (sparc_function_ok_for_sibcall): Update.
6096         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
6097         * config/m32r/m32r.md: Update.
6098         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
6099         (m32r_compute_frame_size): Update.
6100         (m32r_expand_prologue): Update.
6101         (m32r_expand_epilogue): Update.
6102         (m32r_legitimize_pic_address): Update.
6103         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
6104         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
6105         * config/i386/i386.c (ix86_frame_pointer_required): Update.
6106         (gen_push): Update.
6107         (ix86_save_reg): Update.
6108         (ix86_compute_frame_layout): Update.
6109         (ix86_expand_prologue): Update.
6110         (ix86_expand_epilogue): Update.
6111         * config/sh/sh.c (output_stack_adjust): Update.
6112         (calc_live_regs): Update.
6113         (sh5_schedule_saves): Update.
6114         (sh_expand_prologue): Update.
6115         (sh_expand_epilogue): Update.
6116         (sh_setup_incoming_varargs): Update.
6117         (sh_allocate_initial_value): Update.
6118         (sh_get_pr_initial_val): Update.
6119         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
6120         * config/sh/sh.md (label:): Update.
6121         * config/avr/avr.c (out_movhi_mr_r): Update.
6122         * config/crx/crx.h (enum): Update.
6123         * config/xtensa/xtensa.h (along): Update.
6124         * config/stormy16/stormy16.c Update.
6125         (xstormy16_compute_stack_layout): Update.
6126         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
6127         (fr30_expand_prologue): Update.
6128         * config/cris/cris.c (cris_conditional_register_usage): Update.
6129         (cris_reg_saved_in_regsave_area): Update.
6130         (cris_initial_frame_pointer_offset): Update.
6131         (cris_simple_epilogue): Update.
6132         (cris_expand_prologue): Update.
6133         (cris_expand_epilogue): Update.
6134         (cris_expand_pic_call_address): Update.
6135         (cris_asm_output_symbol_ref): Update.
6136         (cris_asm_output_label_ref): Update.
6137         * config/cris/cris.md Update.
6138         * config/iq2000/iq2000.c (compute_frame_size): Update.
6139         (iq2000_expand_epilogue): Update.
6140         * config/mt/mt.h (save_direction): Update.
6141         * config/mn10300/mn10300.c (mn10300_function_value): Update.
6142         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
6143         (ia64_secondary_reload_class): Update.
6144         * config/m68k/m68k.c (m68k_save_reg): Update.
6145         (m68k_expand_prologue): Update.
6146         (m68k_expand_epilogue): Update.
6147         (legitimize_pic_address): Update.
6148         * config/rs6000/rs6000.c (rs6000_got_register): Update.
6149         (first_reg_to_save): Update.
6150         (first_altivec_reg_to_save): Update.
6151         (compute_vrsave_mask): Update.
6152         (compute_save_world_info): Update.
6153         (rs6000_stack_info): Update.
6154         (spe_func_has_64bit_regs_p): Update.
6155         (rs6000_ra_ever_killed): Update.
6156         (rs6000_emit_eh_reg_restore): Update.
6157         (rs6000_emit_allocate_stack): Update.
6158         (rs6000_emit_prologue): Update.
6159         (rs6000_emit_epilogue): Update.
6160         (rs6000_output_function_epilogue): Update.
6161         (output_profile_hook): Update.
6162         (rs6000_elf_declare_function_name): Update.
6163         * config/rs6000/rs6000.h (rs6000_args): Update.
6164         * config/rs6000/rs6000.md: Update.
6165         * config/mcore/mcore.c (mcore_expand_prolog): Update.
6166         * config/arc/arc.c (arc_output_function_epilogue): Update.
6167         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
6168         * config/darwin.c (machopic_function_base_name): Update.
6169         * config/score/score3.c (score3_compute_frame_size): Update.
6170         (rpush): Update.
6171         (rpop): Update.
6172         (score3_epilogue): Update.
6173         * config/score/score7.c (score7_compute_frame_size): Update.
6174         (score7_prologue): Update.
6175         (score7_epilogue): Update.
6176         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
6177         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
6178         * config/arm/arm.c (use_return_insn): Update.
6179         (require_pic_register): Update.
6180         (arm_load_pic_register): Update.
6181         (arm_compute_save_reg0_reg12_mask): Update.
6182         (arm_compute_save_reg_mask): Update.
6183         (thumb1_compute_save_reg_mask): Update.
6184         (output_return_instruction): Update.
6185         (arm_output_function_prologue): Update.
6186         (arm_output_epilogue): Update.
6187         (arm_get_frame_offsets): Update.
6188         (arm_expand_prologue): Update.
6189         (thumb_pushpop): Update.
6190         (thumb_exit): Update.
6191         (thumb1_expand_prologue): Update.
6192         (thumb1_expand_epilogue): Update.
6193         (arm_unwind_emit): Update.
6194         (arm_output_fn_unwind): Update.
6195         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
6196         * config/arm/arm.md: Update.
6197         * config/pa/pa.md: Update.
6198         * config/pa/pa.c (legitimize_pic_address): Update.
6199         (compute_frame_size): Update.
6200         (hppa_expand_prologue): Update.
6201         (hppa_expand_epilogue): Update.
6202         (borx_reg_operand): Update.
6203         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
6204         (HARD_REGNO_RENAME_OK): Update.
6205         * config/mips/mips.c (mips_global_pointer): Update.
6206         (mips_save_reg_p): Update.
6207         (mips_compute_frame_info): Update.
6208         (mips_frame_pointer_required): Update.
6209         (mips_expand_prologue): Update.
6210         (mips_expand_epilogue): Update.
6211         (mips_can_use_return_insn): Update.
6212         (mips_reorg_process_insns): Update.
6213         * config/v850/v850.c (compute_register_save_size): Update.
6214         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
6215         * config/mmix/mmix.c (along): Update.
6216         (mmix_expand_epilogue): Update.
6217         * config/bfin/bfin.c (legitimize_pic_address): Update.
6218         (must_save_p): Update.
6219         (stack_frame_needed_p): Update.
6220         (add_to_reg): Update.
6221         (bfin_expand_prologue): Update.
6222         * stmt.c (expand_asm_operands): Update.
6223         * reload1.c (reload): Update.
6224         (init_elim_table): Update.
6225
6226 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
6227         
6228         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
6229         
6230 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
6231
6232         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
6233         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
6234         (mov<mode>): Removed.
6235         (*movv4sf_internal): Likewise.
6236         (*movv2df_internal): Likewise.
6237
6238 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
6239
6240         * config.gcc (crx-*-elf): Remove deprecation.
6241
6242 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
6243
6244         * config/i386/cygming-crtend.c (register_frame_ctor): Register
6245         __gcc_deregister_frame with atexit.
6246         (deregister_frame_dtor): Remove.
6247
6248 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
6249             Nathan Sidwell  <nathan@codesourcery.com>
6250
6251         * config/rs6000/rs6000.opt (mspe): Remove Var property.
6252         (misel): Likewise.
6253         * config/rs6000/rs6000.h (rs6000_spe): Declare.
6254         (rs6000_isel): Likewise.
6255         * config/rs6000/rs6000.c (rs6000_spe): New variable.
6256         (rs6000_isel): New variable.
6257         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
6258
6259 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
6260
6261         PR c++/35758
6262         * c-common.c (handle_vector_size_attribute): Call
6263         lang_hooks.types.reconstruct_complex_type instead of
6264         reconstruct_complex_type.
6265         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
6266         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
6267         * langhooks.h (struct lang_hooks_for_types): Add
6268         reconstruct_complex_type hook.
6269         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
6270         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
6271
6272 2008-04-24  Richard Guenther  <rguenther@suse.de>
6273
6274         * c-common.h (check_builtin_function_arguments): Declare.
6275         * c-common.c (validate_nargs): New function.
6276         (check_builtin_function_arguments): Likewise.
6277         * c-typeck.c (build_function_call): Call
6278         check_builtin_function_arguments.
6279         * builtins.c (fold_builtin_classify): Remove error reporting code.
6280         (fold_builtin_unordered_cmp): Likewise.
6281         (fold_builtin_1): Likewise.
6282         (fold_builtin_n): Likewise.
6283
6284 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
6285
6286         PR tree-optimization/36008
6287         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
6288         the original op1, rather than delta by step.
6289
6290 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
6291             Sebastian Pop  <sebastian.pop@amd.com>
6292
6293         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
6294         eliminate_local_variables_stmt, eliminate_local_variables,
6295         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
6296         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
6297         of code delimited by two edges in the CFG.
6298         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
6299         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
6300         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
6301         the case of parallelisation of reductions.
6302         (expr_invariant_in_region_p): New.
6303
6304         * tree-flow.h (gather_blocks_in_sese_region): Declared.
6305         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
6306
6307 2008-04-24  Ira Rosen  <irar@il.ibm.com>
6308             Richard Guenther  <rguenther@suse.de>
6309
6310         PR tree-optimization/36034
6311         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
6312         incapable of dealing with loads with gaps.
6313
6314 2008-04-24  Rafael Espindola  <espindola@google.com>
6315
6316         * tree-flow.h (vrp_evaluate_conditional): Change signature.
6317         * tree-ssa-propagate.c (fold_predicate_in): Update call to
6318         vrp_evaluate_conditional.
6319         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
6320         (vrp_evaluate_conditional): Split the cond argument.
6321         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
6322         (simplify_stmt_for_jump_threading): Update call to
6323         vrp_evaluate_conditional.
6324
6325 2008-04-24  Ira Rosen  <irar@il.ibm.com>
6326
6327         PR tree-optimization/35982
6328         * tree-vect-analyze.c (vect_check_interleaving): Check that the
6329         interleaved data-refs are of the same type.
6330
6331 2008-04-24  Danny Smith  <dannysmith@users.net>
6332
6333         * c-format.c (check_format_info_main): Use strncmp rather than a
6334         magic prefix to handle multichar length specs.
6335         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
6336         Don't prefix "I64" and "I32" with '\0'.
6337
6338 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
6339
6340         PR target/36015
6341         * config/i386/i386.c (init_cumulative_args): Don't pass anything
6342         in registers for -m32 only if stdarg_p (fntype).
6343
6344 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
6345
6346         PR rtl-optimization/36006
6347         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
6348         temp to op0 in order to avoid invalid rtx sharing.
6349
6350 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
6351
6352         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
6353         check TREE_INVARIANT.
6354         * tree-gimple.c (is_gimple_address): New.
6355         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
6356         * tree-gimple.h (is_gimple_address): New.
6357         * tree.h (decl_address_invariant_p): New.
6358         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
6359         (build_string): Likewise.
6360         (decl_address_invariant_p): New, from is_gimple_invariant_address.
6361         (tree_invariant_p_1): Likewise.
6362         (save_expr): Use it.
6363         (tree_invariant_p): New.
6364         (skip_simple_arithmetic): Use it.
6365         (stabilize_reference_1): Use it.
6366         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
6367         simplify.
6368         (build1_stat): Drop code to compute TREE_INVARIANT.
6369         (build2_stat): Drop code to compute TREE_INVARIANT.
6370         (build3_stat): Drop code to compute TREE_INVARIANT.
6371         (build4_stat): Drop code to compute TREE_INVARIANT.
6372         (build5_stat): Drop code to compute TREE_INVARIANT.
6373         (build7_stat): Drop code to compute TREE_INVARIANT.
6374         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
6375         * tree.h (struct tree_base): Remove invariant_flag.
6376         (TREE_INVARIANT): Remove.
6377         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
6378         (fold_builtin_expect): Check TREE_CONSTANT.
6379         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
6380         * c-tree.h (c_expr_to_decl): Drop third parameter.
6381         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
6382         (build_c_cast): Don't set TREE_INVARIANT.
6383         (pop_init_level): Don't set TREE_INVARIANT.
6384         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
6385         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
6386         TREE_CONSTANT.
6387         (gimplify_init_constructor): Don't set TREE_INVARIANT.
6388         (gimplify_addr_expr): Adjust comment.
6389         * tree-mudflap.c (mf_build_string):
6390         * print-tree.c (print_node): Don't print TREE_INVARIANT.
6391         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
6392         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
6393         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
6394         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
6395         * langhooks.h (struct lang_hooks): Drop third parameter from
6396         expr_to_decl.
6397
6398 2008-04-23  Richard Guenther  <rguenther@suse.de>
6399
6400         PR tree-optimization/27799
6401         PR tree-optimization/32921
6402         PR tree-optimization/32624
6403         * tree-ssa-structalias.c (merge_smts_into): Only merge the
6404         SMTs aliases and the tag itself into the solution.
6405         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
6406         merge the points-to solution back into the SMT aliases.
6407         (may_alias_p): Use alias_set_subset_of instead of
6408         aliases_conflict_p.  A pointer which points to
6409         memory with alias set zero may access any variable.
6410
6411 2008-04-23  Richard Guenther  <rguenther@suse.de>
6412
6413         * alias.c (alias_set_subset_of): Correctly handle asking
6414         if zero is a subset of an alias set with zero child.
6415         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
6416         (compute_flow_insensitive_aliasing): Correctly walk all
6417         pointers.  Do not unnecessarily union sets.
6418
6419 2008-04-23  Richard Guenther  <rguenther@suse.de>
6420
6421         PR middle-end/36021
6422         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
6423
6424 2008-04-22  Tomas Bily  <tbily@suse.cz>
6425
6426         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
6427         unreachable case.
6428         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
6429         NON_LVALUE_EXPR.
6430         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6431         * tree-ssa-structalias.c (get_constraint_for): Likewise.
6432         * tree-inline.c (estimate_num_insns_1): Likewise.
6433         * varasm.c (const_hash_1, compare_constant, copy_constant)
6434         (compute_reloc_for_constant, output_addressed_constants): Likewise.
6435         * emit-rtl.c (component_ref_for_mem_expr)
6436         (set_mem_attributes_minus_bitpos): Likewise.
6437         * expr.c (highest_pow2_factor, expand_expr_real_1, )
6438         (is_aligning_offset): Likewise.
6439         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
6440         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6441         * dojump.c (do_jump): Likewise.
6442         * builtins.c (get_pointer_alignment, get_memory_rtx)
6443         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
6444         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
6445
6446 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
6447
6448         PR rtl-optimization/36017
6449         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
6450         expanding the library call.
6451
6452 2008-04-22  Ian Lance Taylor  <iant@google.com>
6453
6454         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
6455         than size_in_bytes.
6456
6457 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
6458
6459         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
6460         of LR/CTR moves for Power6.
6461
6462 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
6463
6464         PR middle-end/36003
6465         * passes.c (init_optimization_passes): Remove
6466         pass_fast_rtl_byte_dce.
6467         
6468 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
6469
6470         PR target/29096
6471         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
6472         builtin functions to generate faster code.
6473         (_mm_cvtpu16_ps): Ditto.
6474         (_mm_cvtpi32x2_ps): Ditto.
6475
6476 2008-04-22  Nick Clifton  <nickc@redhat.com>
6477
6478         * common.opt (ftree-loop-distribution): Add Optimization
6479         attribute.
6480
6481         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
6482         (frv_expand_builtin_va_start): Likewise.
6483
6484         * config/arm/arm.c (thumb_find_work_register): Fix location of
6485         argument register count.
6486
6487 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
6488
6489         Support scheduling for ColdFire V1 and V3 microarchitecture.
6490         Improve scheduling of multiplication instructions.
6491
6492         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
6493         (mac): New instruction attribute.
6494         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
6495         (m68k_sched_mac): New variable.
6496         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
6497         Handle cfv1 and cfv3.
6498         (max_insn_size): New static variable.
6499         (struct _sched_ib): New type.
6500         (sched_ib): New static variable.
6501         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
6502         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
6503         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
6504         Update.
6505         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
6506         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
6507         new variables.  Update.
6508         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6509         Add modeling of cfv3 instruction buffer.  Update.
6510         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
6511         * config/m68k/m68k.h (TUNE_CFV3): New macro.
6512         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
6513         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
6514         a particular reservation applies to.
6515         (type2): Reorganize attribute values.  Rename alu to alu_reg,
6516         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
6517         to mul_l and mul_w.
6518         (cf_ib_*): Simplify description of instruction buffer.
6519         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
6520         (cf_mem): Split into cf_mem1 and cf_mem2.
6521         (cf_v2_move_??): Rename to cfv12_alu_??.
6522         (cf_v2_move_l_??): Rename to cfv12_omove_??.
6523         (cf_v2_mul_??): Remove reservations.
6524         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
6525         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
6526         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
6527         appropriate place.
6528         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
6529         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
6530         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
6531         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
6532         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
6533         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
6534         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
6535         expansions of the above reservations for instructions of sizes
6536         1, 2 and 3 words.
6537
6538 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
6539
6540         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
6541
6542 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
6543
6544         * coverage.c: Include tree-pass.h.
6545         (coverage_counter_alloc): Print da_file_name to the dump file.
6546
6547 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
6548
6549         * sbitmap.c (sbitmap_range_empty_p): New function.
6550         * sbitmap.h (sbitmap_range_empty_p): New function.
6551         * bitmap.h: Now includes obstack.h.
6552
6553 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
6554             Kenneth Zadeck  <zadeck@naturalbridge.com>
6555
6556         * dbgcnt.def (ra_byte_scan): Added.
6557         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
6558         when the last hit happens for a counter.  
6559         * timevar.def (TV_DF_BYTE_LR): New variable.
6560         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
6561         * passes.c (pass_fast_rtl_byte_dce): New pass.
6562         * fwprop.c (update_df): Added mode to call df_ref_create.
6563         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
6564         DF_REF_EXTRACT_OFFSET.
6565         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
6566         DF_BYTE_LR_OUT, df_byte_lr): New macro.
6567         (df_mm): New enum.
6568         (df_ref_extract): Added mode field.
6569         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
6570         DF_REF_EXTRACT_OFFSET.
6571         (DF_REF_EXTRACT_MODE): New macro.
6572         (df_byte_lr_bb_info): New structure.
6573         (df_print_byte_regset, df_compute_accessed_bytes, 
6574         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
6575         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
6576         df_byte_lr_simulate_uses,
6577         df_byte_lr_simulate_artificial_refs_at_top,
6578         df_byte_lr_simulate_artificial_refs_at_end,
6579         df_compute_accessed_bytes): New function.
6580         (df_ref_create): Add parameter.
6581         (df_byte_lr_get_bb_info): New inline function.
6582         * df-scan.c (df_ref_record, df_uses_record,
6583         df_ref_create_structure): Added mode parameter.
6584         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
6585         df_defs_record, df_uses_record, df_get_conditional_uses,
6586         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
6587         df_entry_block_defs_collect, df_exit_block_uses_collect):
6588         Added mode parameter to calls to df_ref_record, df_uses_record,
6589         df_ref_create_structure.
6590         (df_ref_equal_p, df_ref_compare): Added test for modes.
6591         (df_ref_create_structure): Added code to set mode.  Renamed
6592         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
6593         DF_REF_EXTRACT_OFFSET.
6594         * df-core.c (df_print_byte_regset): New function.
6595         * df-byte-scan.c: New file.
6596         * df-problems.c (df_rd_transfer_function): Removed unnecessary
6597         calls to BITMAP_FREE.  
6598         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
6599         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
6600         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
6601         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
6602         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
6603         df_byte_lr_local_compute, df_byte_lr_init,
6604         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
6605         df_byte_lr_transfer_function, df_byte_lr_free, 
6606         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
6607         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
6608         df_byte_lr_simulate_uses,
6609         df_byte_lr_simulate_artificial_refs_at_top,
6610         df_byte_lr_simulate_artificial_refs_at_end): New function.
6611         * dce.c (byte_dce_process_block): New function.
6612         (dce_process_block): au is now passed in rather than computed
6613         locally.  Changed loops that look at artificial defs to not look
6614         for conditional or partial ones, because there never are any.  
6615         (fast_dce): Now is able to drive byte_dce_process_block or 
6616         dce_process_block depending on the kind of dce being done.
6617         (rest_of_handle_fast_dce): Add parameter to fast_dce.
6618         (rest_of_handle_fast_byte_dce): New function.
6619         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
6620         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
6621
6622 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
6623
6624         PR fortran/35019
6625         * gcc.h: Added fortran options that take arguments to
6626         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
6627         macros.
6628
6629 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6630
6631         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
6632         scalarization if on the LHS and not a full access.
6633
6634 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6635
6636         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
6637
6638 2008-04-18  Rafael Espindola  <espindola@google.com>
6639
6640         * tree-vrp.c (find_case_label_index): Fix the binary search.
6641         (find_case_label_range): New.
6642         (vrp_visit_switch_stmt): Use find_case_label_range.
6643         (simplify_switch_using_ranges): Use find_case_label_range.
6644
6645 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
6646
6647         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
6648         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
6649
6650 2008-04-18  Tom Tromey  <tromey@redhat.com>
6651
6652         PR libcpp/15500:
6653         * doc/cpp.texi (Implementation-defined behavior): Mention
6654         -finput-charset.
6655
6656 2008-04-18  Ian Lance Taylor  <iant@google.com>
6657
6658         * fold-const.c (pointer_may_wrap_p): New static function.
6659         (fold_comparison): Add another test for pointer overflow.  Use
6660         pointer_may_wrap_p to disable some false positives.
6661
6662 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
6663           
6664         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
6665         (fname_as_string): Match updated cpp_interpret_string prototype.
6666         (fix_string_type): Support char16_t* and char32_t*.
6667         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
6668         derivative) nodes.  Register as builtin if C++0x.
6669         (c_parse_error): Support CPP_CHAR{16,32}.
6670         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
6671         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
6672         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
6673         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
6674         CTI_CHAR32_ARRAY_TYPE>: New elements.
6675         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
6676         char32_type_node, signed_char32_type_node, char16_array_type_node,
6677         char32_array_type_node): New defines.
6678         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
6679         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
6680         (lex_string): Support CPP_STRING{16,32}, match updated
6681         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
6682         (lex_charconst): Support CPP_CHAR{16,32}.
6683         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
6684         and CPP_STRING{16,32}.
6685
6686 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
6687
6688         PR bootstrap/35457
6689         * aclocal.m4: Regenerate.
6690         * configure: Regenerate.
6691
6692 2008-04-18  Jan Hubicka  <jh@suse.cz>
6693
6694         * except.c (dw2_size_of_call_site_table,
6695         sjlj_size_of_call_site_table): Use vector API for call_site_record.
6696
6697         * cgraphbuild.c (build_cgraph_edges): Update.
6698         * tree-pass.h: Update comment.
6699         * final.c (leaf_function_p): Update.
6700         (leaf_renumber_regs): Update.
6701         (rest_of_clean_state): Update.
6702         * omp-low.c (expand_omp_parallel): Update.
6703         * ipa-reference.c (analyze_function): Update.
6704         * reorg.c (find_end_label): Update.
6705         (optimize_skip): Update.
6706         (fill_simple_delay_slots): Update.
6707         (fill_simple_delay_slots): Update.
6708         (make_return_insns): Update.
6709         (dbr_schedule): Update.
6710         * gimple-low.c (record_vars_into): Update.
6711         * cfgbuild.c (make_edges): Update.
6712         * function.c (assign_stack_local): Update.
6713         (assign_parm_adjust_stack_rtl): Update.
6714         (locate_and_pad_parm): Update.
6715         (allocate_struct_function): Do not initialize stack_alignment_needed
6716         and preferred_stack_boundary here.
6717         (stack_protect_prologue): Update.
6718         (stack_protect_epilogue): Update.
6719         (expand_function_start): Initialize stack_alignment_needed,
6720         preferred_stack_boundary and max_jumptable_ents.
6721         (expand_function_end): Update.
6722         (free_after_compilation): Do not NULLify epilogue_delay_list.
6723         * function.h (struct rtl_data): Add stack_protect_guard,
6724         stack_alignment_needed,
6725         preferred_stack_boundary, epilogue_delay_list.
6726         (struct function): Remove value_histograms, stack_alignment_needed,
6727         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
6728         last_label_uid,
6729         unexpanded_var_list, stack_protect_guard.
6730         (current_function_epilogue_delay_list): Remove.
6731         * ipa-type-escape.c (analyze_function): Update.
6732         * gimplify.c (pop_gimplify_context): Update comment.
6733         * calls.c (expand_call): Update.
6734         (emit_library_call_value_1): Update.
6735         * except.c (set_nothrow_function_flags): Update.
6736         * cfgexpand.c (get_decl_align_unit): Update.
6737         (create_stack_guard): Update.
6738         (estimated_stack_frame_size): Update.
6739         (expand_used_vars): Update.
6740         (tree_expand_cfg): Free histogram earliers, init expansion variables.
6741         * explow.c (allocate_dynamic_stack_space): Update.
6742         * tree-ssa-live.c (remove_unused_locals): Update.
6743         * varasm.c (mark_constant_pool): Update.
6744         * tree-inline.c (remap_decls): Update.
6745         (initialize_cfun): Update.
6746         (declare_return_variable): Update.
6747         (inline_forbidden_p): Update.
6748         (expand_call_inline): Update.
6749         (declare_inline_vars): Update.
6750         (tree_function_versioning): Update.
6751         * tree-flow.h (value_histograms): New.
6752         (VALUE_HISTOGRAMS): New macro.
6753         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
6754         last_label_uid.
6755         * tree-cfg.c (set_bb_for_stmt): Update.
6756         (replace_by_duplicate_decl): Update.
6757         (move_block_to_fn): Update.
6758         (new_label_mapper): Update.
6759         (dump_function_to_file): Update.
6760         * ipa-struct-reorg.c (build_data_structure): Update.
6761         * cfgrtl.c (print_rtl_with_bb): Update.
6762         * reload1.c (reload): Update.
6763         (reload): Update.
6764         * config/i386/i386.c (setup_incoming_varargs_64,
6765         ix86_compute_frame_layout): Update.
6766         * config/arc/arc.c (arc_output_function_epilogue): Update.
6767
6768 2008-04-18  Marius Strobl <marius@FreeBSD.org>
6769
6770         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
6771         for FreeBSD as well.
6772         * gthr-posix95.h: Likewise.
6773
6774 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
6775
6776         PR rtl-optimization/35838
6777         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
6778         out the byte offset of the first subreg.
6779
6780 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
6781
6782         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
6783         to split_ti instead of three separate calls with single member arrays.
6784         (subti3 splitter): Ditto.
6785         (adddi3 splitter): Ditto with split_di.
6786         (subdi3 splitter): Ditto.
6787         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
6788         two separate calls with single member arrays.  Swap match_dup
6789         operands 1 and 2 to better fit into the array.
6790         (negdi2 splitter): Ditto with split_di.
6791         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
6792         two separate calls with single member arrays.  Swap match_dup operands
6793         6 and 7 to better fit into the array.
6794
6795 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
6796
6797         * config/i386/i386.c (sse_builtin_type): New.
6798         (bdesc_sse_args): Likewise.
6799         (bdesc_sse_3arg): Removed.
6800         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
6801         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
6802         IX86_BUILTIN_ROUNDPS.
6803         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
6804         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
6805         IX86_BUILTIN_ROUNDPS.
6806         (ix86_expand_sse_4_operands_builtin): Removed.
6807         (ix86_expand_sse_operands_builtin): New.
6808         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
6809         and CODE_FOR_sse4_1_roundps.
6810         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
6811         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
6812
6813 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
6814
6815         PR target/35907
6816         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
6817         regs before frame pop when needed.  If use_backchain_to_restore_sp
6818         then load backchain into a temp reg to restore vr and vrsave.  Add
6819         code to restore vr after frame pop if possible.
6820
6821 2008-04-17  Richard Guenther  <rguenther@suse.de>
6822
6823         * tree-vn.c (expressions_equal_p): Do not check type
6824         equality or compatibility before calling operand_equal_p.
6825         * fold-const.c (operand_equal_p): Check equivalence of
6826         integer constants before bailing out due to signedness or
6827         precision differences.
6828         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
6829         spurious differences in type qualification.  Ignore types
6830         for COMPONENT_REFs at all.
6831
6832 2008-04-17  Christian Bruel  <christian.bruel@st.com>
6833
6834         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
6835         msw_skip comparison.
6836         
6837 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
6838
6839         PR c/35739
6840         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
6841         reg type.
6842
6843         PR tree-optimization/35899
6844         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
6845         rather than TREE_OPERAND.
6846
6847 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
6848
6849         PR target/35944
6850         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
6851         temporary registers.  Change operand predicate to general_operand.
6852         (remainderxf3): Ditto.
6853
6854 2008-04-16  Richard Guenther  <rguenther@suse.de>
6855
6856         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
6857         * tree-affine.c (aff_combination_expand): Look through some
6858         conversions.
6859
6860 2008-04-15  Doug Kwan  <dougkwan@google.com>
6861
6862         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
6863         for hex printing.
6864         * tree-pretty-print.c (dump_generic_node): Ditto.
6865         * final.c (output_addr_const): Ditto.
6866         * dwarf2out.c (output_cfi): Ditto.
6867         * c-pretty-print.c (pp_c_integer_constant): Ditto.
6868         * print-rtl.c (print_rtx): Ditto.
6869         * print-tree.c (print_node_brief, print_node): Ditto.
6870         * c-common.c (match_case_to_enum_1): Ditto.
6871         * sched-vis.c (print_value): Ditto.
6872         * config/i386/i386.c (print_operand): Cast to long unsigned int
6873         for hex printing.
6874
6875 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
6876         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
6877         MS Windows VirtualProtect function.
6878
6879 2008-04-15  Jan Hubicka  <jh@suse.cz>
6880
6881         * gengtype.c (write_root): Param_is argument is OK.
6882         * expr.c (expand_expr_real_1): Update call of get_exception_*.
6883         * function.h: Include varray.h
6884         (rtl_eh): New stucture based on except.c one.
6885         (call_site_record): New forward declaration and vector type.
6886         * calls.c (emit_call_1): Do not call
6887         note_current_region_may_contain_throw.
6888         * except.c (eh_status): Remove cur_region, try_region since they are
6889         unused.
6890         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
6891         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
6892         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
6893         Remove call_site_data_used, call_site_data_size.
6894         Turn call_site_record into vector in function.h.
6895         (note_current_region_may_contain_throw): Remove.
6896         (get_exception_pointer, get_exception_filter): Do not take struct
6897         function argument; update.
6898         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
6899         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
6900         build_post_landing_pads, dw2_build_landing_pads,
6901         sjlj_assign_call_site_values, sjlj_mark_call_sites,
6902         sjlj_emit_function_enter, sjlj_emit_function_enter, 
6903         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
6904         sjlj_build_landing_pads, finish_eh_generation,
6905         remove_exception_handler_label, remove_eh_handler,
6906         maybe_remove_eh_handler, add_reachable_handler,
6907         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
6908         add_action_record, collect_one_action_chain, add_call_site,
6909         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
6910         sjlj_output_call_site_table, output_function_exception_table,
6911         * except.h (note_current_region_may_contain_throw): Remove
6912         (get_exception_pointer, get_exception_filter): Do not take struct
6913         function argument.
6914         * Makefile.in (GTFILES): Put varargs before struct function.
6915
6916 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6917
6918         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
6919         punt for STRING_CST.
6920         (get_constraint_for): Deal with STRING_CST here instead.
6921
6922 2008-04-15  Richard Guenther  <rguenther@suse.de>
6923
6924         * tree-ssa-propagate.c (substitute_and_fold): Substitute
6925         statements in a basic-block with a backward walk.  Do not
6926         substitute into dead statements but instead remove those.
6927
6928 2008-04-15  Richard Guenther  <rguenther@suse.de>
6929
6930         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
6931         to zero, thus disable creation of SFTs.
6932
6933 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6934
6935         * tree-predcom.c (suitable_reference_p): Return false if the
6936         reference can throw.
6937
6938 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
6939
6940         PR c/35751
6941         * c-decl.c (finish_decl): If extern or static var has variable
6942         size, set TREE_TYPE (decl) to error_mark_node.
6943
6944 2008-04-15  Rafael Espindola  <espindola@google.com>
6945
6946         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
6947         variable arg1.
6948
6949 2008-04-15  Richard Guenther  <rguenther@suse.de>
6950
6951         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
6952         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
6953         (visit_reference_op_load): Do walk vuse-vdef chains on
6954         vn_reference_lookup.
6955         (visit_reference_op_store): But do not here.
6956         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
6957         vn_reference_lookup.
6958         (vn_lookup_with_vuses): But do so here.
6959
6960 2008-04-14  Ian Lance Taylor  <iant@google.com>
6961
6962         * fold-const.c (fold_overflow_warning): Remove assertion.
6963
6964 2008-04-15  Ben Elliston  <bje@au.ibm.com>
6965
6966         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
6967         temp1 local variables.
6968
6969 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
6970
6971         PR target/35661
6972         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
6973         ".text.unlikely" section as executable.
6974
6975 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
6976
6977         * config/ia64/ia64.c (rtx_needs_barrier): Handle
6978         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
6979         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
6980         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
6981         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
6982         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
6983         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
6984
6985 2008-04-14  Ian Lance Taylor  <iant@google.com>
6986
6987         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
6988         * fold-const.c (fold_comparison): If appropriate, test
6989         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
6990         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
6991         reassociating a pointer type.
6992         * doc/invoke.texi (Optimize Options): Document that
6993         -fstrict-overflow applies to pointer wraparound.
6994
6995 2008-04-13  Jan Hubicka  <jh@suse.cz>
6996
6997         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
6998
6999 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
7000
7001         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
7002         we are going to "save the world".
7003
7004 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
7005
7006         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
7007         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
7008         operand 0 constraint, not "=".
7009
7010 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
7011
7012         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
7013
7014 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7015
7016         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
7017         of size of positions_needed * CHAR_BIT.
7018
7019 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7020
7021         PR middle-end/35897
7022         * dse.c (store_info): Change positions_needed to unsigned
7023         HOST_WIDE_INT.
7024         (lowpart_bitmask): New.
7025         (record_store): Cast to unsigned HOST_WIDE_INT for
7026         positions_needed.  Assert width <= size of positions_needed *
7027         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
7028         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
7029         lowpart_bitmask to set mask.
7030
7031 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
7032
7033         * config/bfin/constraints.md: New file.
7034         * config/bfin/bfin.md: Include it.
7035         (adddi3): Use satisfies_constraint functions instead of the old macros.
7036         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
7037         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
7038         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
7039         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
7040         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
7041         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
7042         EXTRA_CONSTRAINT): Delete.
7043         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
7044         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
7045         of the old macros.
7046         * config/bfin/bfin.c: Include "tm-constrs.h".
7047         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
7048         Use satisfies_constraint functions instead of the old macros.
7049         * doc/md.texi (Blackfin Constraints): Update file name reference.
7050
7051 2008-04-11  Richard Guenther  <rguenther@suse.de>
7052
7053         PR tree-optimization/35869
7054         * tree-vrp.c (execute_vrp): Move switch statement update after
7055         jump threading.  Schedule another cfg cleanup run.
7056
7057 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
7058
7059         PR c/35744
7060         * attribs.c (decl_attributes): Return early on errorneous node.
7061
7062 2008-04-10  Oleg Ryjkov  <olegr@google.com>
7063
7064         * tree.h (struct tree_base): Added a new flag default_def_flag.
7065         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
7066
7067 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7068
7069         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
7070
7071 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7072
7073         PR target/35768
7074         * pa.md: Define mode iterator P.  Define mode attribute dwc.
7075         (dcacheflush): Update pattern to use iterator P and attribute dwc.
7076         (icacheflush): Likewise.
7077         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
7078         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
7079
7080 2008-04-11  Ben Elliston  <bje@au.ibm.com>
7081
7082         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
7083
7084 2008-04-10  Rafael Espindola  <espindola@google.com>
7085
7086         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
7087         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
7088         (extract_range_from_expr): The same.
7089
7090 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
7091
7092         * config/mips/mips.md (GPR2): New mode iterator.
7093         (seq): Add comment.
7094         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
7095         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
7096         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
7097         Rewrite these to take two modes, the mode of comparison and the
7098         mode of the destination.
7099         * config/mips/mips.c (mips_expand_scc): Instead of having
7100         paradoxical subreg as destination, expand "narrowing" scc if mode
7101         of comparison is SI and target is requested in DI mode.
7102         (mips_emit_int_order_test): Update comment.  Make mode of
7103         comparison match CMP0 rather than TARGET.  When creating inverse
7104         target use mode of TARGET.
7105
7106 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
7107
7108         * gcov-dump.c (tag_summary): Only print summaries for the first
7109         GCOV_COUNTERS_SUMMABLE counters.
7110
7111 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
7112
7113         * config/i386/i386.md (absneg): New code iterator.
7114         (absnegprefix): New code attribute.
7115         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
7116         patterns using absneg code iterator.
7117         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
7118         using absneg code iterator.
7119         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
7120         *neg<mode>2 patterns using absneg code iterator.
7121         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
7122         *negextendsfdf2 patterns using absneg code iterator.
7123         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
7124         *negextendsfxf2 patterns using absneg code iterator.
7125         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
7126         *negextendsfdf2 patterns using absneg code iterator.
7127         * config/i386/sse.md (<code><mode>2): Macroize expander from
7128         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
7129
7130 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
7131
7132         * config/s390/s390.h: Remove the remains of the recent search
7133         & replace action of current_function_outgoing_args_size.
7134
7135 2008-04-10  Ira Rosen  <irar@il.ibm.com>
7136
7137         PR tree-optimization/35821
7138         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
7139         NEW_STMT_LIST is not NULL.
7140
7141 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
7142
7143         PR libstdc++/35597
7144         * toplev.c (process_options): Remove -ffunction-sections debugging
7145         warning.
7146
7147 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
7148
7149         PR middle-end/PR28690
7150         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
7151         than gen_rtx_fmt_ee to perform more canonicalizations.
7152
7153 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7154
7155         PR driver/35665
7156         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
7157
7158 2008-04-09  Richard Guenther  <rguenther@suse.de>
7159
7160         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
7161         (dump_function_to_file): Dump function arguments with types.
7162
7163 2008-04-08  Richard Guenther  <rguenther@suse.de>
7164
7165         * fold-const.c (fold_widened_comparison): Do not allow
7166         sign-changes that change the result.
7167
7168 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
7169
7170         PR target/35839
7171         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
7172         kinds of indirect references.
7173
7174 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
7175
7176         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
7177         GNU Fortran language string.
7178
7179 2008-04-08  Rafael Espindola  <espindola@google.com>
7180
7181         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
7182         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
7183         * tree.h (tree_call_nonnegative_warnv_p): New.
7184
7185 2008-04-08  Jan Hubicka  <jh@suse.cz>
7186
7187         * function.c (free_after_compilation): Clear out regno_reg_rtx
7188         pointer.
7189
7190 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
7191
7192         Revert
7193         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
7194
7195         PR middle-end/PR28690
7196         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
7197         same precedence as REG_POINTER and MEM_POINTER operands.
7198
7199 2008-04-08  Richard Guenther  <rguenther@suse.de>
7200
7201         PR middle-end/35834
7202         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
7203         for adding index to base.
7204
7205 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
7206
7207         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
7208         (MINGW_ENABLE_EXECUTE_STACK): New.
7209         (IN_LIBGCC2): For libgcc include windows.h file for
7210         function declarations.
7211
7212 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
7213
7214         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
7215         and tem2 if tem1 is not a REG or MULT.
7216
7217 2008-04-08  Jan Hubicka  <jh@suse.cz>
7218
7219         * function.h (incomming_args): Break out of struct function.
7220         (function_subsections): Break out of struct function.
7221         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
7222         return_rtx and hard_reg_initial_vals from struct function.
7223         Kill inl_max_label_num.
7224         (current_function_pops_args, current_function_args_info,
7225         current_function_args_size, current_function_args_size,
7226         current_function_pretend_args_size,
7227         current_function_outgoing_args_size,
7228         current_function_internal_arg_pointer, current_function_return_rtx):
7229         Kill compatibility accestor macros.
7230         * builtins.c (expand_builtin_apply_args_1): Update.
7231         (expand_builtin_next_arg): Update.
7232         * df-scan.c (df_get_call_refs): Update.
7233         * dbxout.c (dbxout_function_end): Update.
7234         * dwarf2out.c (dwarf2out_switch_text_section): Update.
7235         (output_line_info): Update.
7236         (secname_for_decl): Update.
7237         (dwarf2out_var_location): Update.
7238         * function.c (free_after_compilation): Update.
7239         (assign_parm_find_stack_rtl): Update.
7240         (assign_parms): Update.
7241         (expand_dummy_function_end): Update.
7242         (expand_function_end): Update.
7243         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
7244         (expand_call): Update.
7245         (emit_library_call_value_1): Update.
7246         (store_one_arg): Update.
7247         * varasm.c (initialize_cold_section_name): Update.
7248         (unlikely_text_section): Update.
7249         (unlikely_text_section_p): Update.
7250         (assemble_start_function): Update.
7251         (assemble_end_function): Update.
7252         (default_section_type_flags): Update.
7253         (switch_to_section): Update.
7254         * integrate.c (set_decl_abstract_flags): Update.
7255         (get_hard_reg_initial_val): Update.
7256         (has_hard_reg_initial_val): Update.
7257         (allocate_initial_values): Update.
7258         * resource.c (init_resource_info): Update.
7259         * config/alpha/alpha.c (NUM_ARGS): Update.
7260         (direct_return): Update.
7261         (alpha_va_start): Update.
7262         (alpha_sa_size): Update.
7263         (alpha_initial_elimination_offset): Update.
7264         (alpha_expand_prologue): Update.
7265         (alpha_start_function): Update.
7266         (alpha_expand_epilogue): Update.
7267         (unicosmk_initial_elimination_offset):
7268         * config/alpha/alpha.md (call expander): Update.
7269         * config/s390/s390.c (s390_register_info): Update.
7270         (s390_register_info): Update.
7271         (s390_frame_info): Update.
7272         (s390_initial_elimination_offset): Update.
7273         (s390_build_builtin_va_list): Update.
7274         (s390_va_start): Update.
7275         * config/spu/spu.c (direct_return): Update.
7276         (spu_expand_prologue): Update.
7277         (spu_initial_elimination_offset): Update.
7278         (spu_build_builtin_va_list): Update.
7279         (spu_va_start): Update.
7280         * config/sparc/sparc.c (sparc_init_modes): Update.
7281         (sparc_compute_frame_size): Update.
7282         (function_value): Update.
7283         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
7284         * config/i386/i386.md (return expander): Update.
7285         * config/i386/i386.c (ix86_va_start): Update.
7286         (ix86_can_use_return_insn_p): Update.
7287         (ix86_compute_frame_layout): Update.
7288         (ix86_expand_epilogue): Update.
7289         * config/sh/sh.c (output_stack_adjust): Update.
7290         (calc_live_regs): Update.
7291         (sh_expand_prologue): Update.
7292         (sh_builtin_saveregs): Update.
7293         (sh_va_start): Update.
7294         (initial_elimination_offset): Update.
7295         (sh_allocate_initial_value): Update.
7296         (sh_function_ok_for_sibcall): Update.
7297         (sh_get_pr_initial_val): Update.
7298         * config/sh/sh.md (return expander): Update.
7299         * config/avr/avr.c (frame_pointer_required_p): UPdate.
7300         * config/crx/crx.c (crx_compute_frame): UPdate.
7301         (crx_initial_elimination_offset): UPdate.
7302         * config/xtensa/xtensa.c (compute_frame_size): Update
7303         (xtensa_builtin_saveregs): Update.
7304         (xtensa_va_start): Update.
7305         (order_regs_for_local_alloc): Update.
7306         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
7307         (xstormy16_expand_builtin_va_start): Update.
7308         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
7309         * config/m68hc11/m68hc11.md (return expanders): Update.
7310         * config/m68hc11/m68hc11.c (expand_prologue): Update.
7311         (expand_epilogue): Update.
7312         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
7313         (cris_simple_epilogue): Update.
7314         (cris_expand_prologue): Update.
7315         (cris_expand_epilogue): Update.
7316         * config/iq2000/iq2000.c (iq2000_va_start): Update.
7317         (compute_frame_size): Update.
7318         * config/mt/mt.c (mt_compute_frame_size): Update.
7319         * config/mn10300/mn10300.c (expand_prologue): Update.
7320         (expand_epilogue): Update.
7321         (initial_offset): Update.
7322         (mn10300_builtin_saveregs):
7323         * config/mn10300/mn10300.md (return expander): Update.
7324         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
7325         (ia64_initial_elimination_offset): Update.
7326         (ia64_initial_elimination_offset): Update.
7327         (ia64_expand_prologue): Update.
7328         * config/m68k/m68k.md (return expander): Update.
7329         * config/rs6000/rs6000.c (rs6000_va_start): Update.
7330         (rs6000_stack_info): Update.
7331         * config/mcore/mcore.c (layout_mcore_frame): Update.
7332         (mcore_expand_prolog): Update.
7333         * config/arc/arc.c (arc_compute_frame_size): Update.
7334         * config/score/score3.c (score3_compute_frame_size): Update.
7335         * config/score/score7.c (score7_compute_frame_size): Update.
7336         * config/arm/arm.c (use_return_insn): Update.
7337         (thumb_find_work_register): Update.
7338         (arm_compute_save_reg_mask): Update.
7339         (arm_output_function_prologue): Update.
7340         (arm_output_epilogue): Update.
7341         (arm_size_return_regs): Update.
7342         (arm_get_frame_offsets): Update.
7343         (arm_expand_prologue): Update.
7344         (thumb_exit): Update.
7345         (thumb_unexpanded_epilogue): Update.
7346         (thumb1_output_function_prologue): Update.
7347         * config/pa/pa.md (return expander): Update.
7348         * config/pa/pa.c (compute_frame_size): Update.
7349         (hppa_builtin_saveregs): Update.
7350         * config/mips/mips.c (mips_va_start): Update.
7351         (mips16_build_function_stub): Update.
7352         (mips_compute_frame_info): Update.
7353         (mips_restore_gp): Update.
7354         (mips_output_function_prologue): Update.
7355         (mips_expand_prologue): Update.
7356         * config/v850/v850.c (compute_frame_size): Update.
7357         (expand_prologue): * config/mmix/mmix.c (along): update.
7358         (mmix_initial_elimination_offset): update.
7359         (mmix_reorg): update.
7360         (mmix_use_simple_return): update.
7361         (mmix_expand_prologue): update.
7362         (mmix_expand_epilogue): Update.
7363         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
7364         (emit_link_insn): Update.
7365
7366 2008-04-08  Anatoly Sokolov <aesok@post.ru>
7367
7368         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
7369         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
7370         instructions.
7371         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
7372         atmega103 device.
7373
7374 2008-04-07  Jan Hubicka  <jh@suse.cz>
7375
7376         * function.h (rtl): Rename to x_rtl.
7377         (crtl): New define.
7378         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
7379         frame_offset, stack_check_probe_note, arg_pointer_save_area,
7380         used_temp_slots avail_temp_slots, temp_slot_level,
7381         nonlocal_goto_handler_labels): Update accesstors.
7382         (rtl): New global variable.
7383         (struct function): Move some fileds to rtl_data.
7384         (get_arg_pointer_save_area): Update prototype.
7385         * builtins.c (expand_builtin_setjmp_receiver): Update call of
7386         get_arg_pointer_save_area.
7387         * expr.c (init_expr): Update
7388         * function.c (get_frame_size): Update
7389         (assign_stack_local): Update
7390         (expand_function_end): Update.
7391         (get_art_pointer_save_area): Update
7392         * function.h 
7393         * emit-rtl.c (rtl): Declare.
7394         (regno_reg_rtx): Declare.
7395         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
7396         Update.
7397         (gen_reg_rtx): Update.
7398         * varasm.c (n_deferred_constatns): Update accestor.
7399         (init_varasm_status): Do not allocate varasm_status.
7400         (force_const_mem, get_pool_size, output_constant_pool): Update.
7401         * stmt.c (force_label_rtx): Do not use x_ prefixes.
7402         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
7403         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
7404         * sparc/sparc.h (INIT_EXPANDERS): Update.
7405         * ia64/ia64.h (INIT_EXPANDERS): Update.
7406
7407 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
7408
7409         * reload.c (push_secondary_reload): Add missing break to for loop.
7410
7411 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
7412
7413         PR middle-end/PR28690
7414         * rtlanal.c: Update copyright years.
7415         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
7416         as REG_POINTER and MEM_POINTER operands.
7417         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
7418         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
7419         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
7420         * gcse.c: Update copyright years.
7421         (pre_delete): Call gen_reg_rtx_and_attrs.
7422         (hoist_code): Likewise.
7423         (build_store_vectors): Likewise.
7424         (delete_store): Likewise.
7425         * loop-invariant.c (move_invariant_reg): Likewise.
7426         Update copyright years.
7427
7428 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
7429
7430         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
7431         control string instead of quoted.
7432
7433 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
7434
7435         * doc/rtl.texi: Rewrite of subreg section.
7436
7437 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
7438
7439         PR/35842
7440         * config/i386/i386.c (legitimize_pic_address): Add treating
7441         of dllimport SYM_REF's.
7442         (legitimize_dllimport_symbol): Add prototype.
7443
7444 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7445
7446         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
7447         reference in constructor with non self-referential type.
7448
7449 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
7450
7451         Removal of Return with Depressed Stack Pointer support
7452         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
7453         (ECF_SP_DEPRESSED): Likewise.
7454         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
7455         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
7456         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
7457         (expand_call): Do not test ECF_SP_DEPRESSED.
7458         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
7459         * function.c (keep_stack_depressed): Delete.
7460         (handle_epilogue_set): Likewise.
7461         (update_epilogue_consts): Likewise.
7462         (emit_equiv_load): Likewise.
7463         (thread_prologue_and_epilogue_insns): Remove support for Return with
7464         Depressed Stack Pointer.
7465         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
7466
7467 2008-04-06  Richard Guenther  <rguenther@suse.de>
7468
7469         PR tree-optimization/35400
7470         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
7471         information from SSA_NAMEs.
7472
7473 2008-04-06  Anatoly Sokolov <aesok@post.ru>
7474
7475         * config/avr/avr.h (avr_mega_p): Remove declaration.
7476         (AVR_MEGA): Remove macro.
7477         * config/avr/avr.c (avr_mega_p): Remove variable.
7478         (avr_override_options): Remove inicializion of avr_mega_p.
7479         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
7480         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
7481         (avr_jump_mode): (Ditto.).
7482         (avr_output_progmem_section_asm_op): (Ditto.).
7483         (avr_asm_init_sections): (Ditto.).
7484         (avr_asm_init_sections): (Ditto.).
7485         (avr_rtx_costs): (Ditto.).
7486         * config/avr/avr.md: (Ditto.).
7487         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
7488         '__AVR_MEGA__'.
7489
7490 2008-04-06  Richard Guenther  <rguenther@suse.de>
7491
7492         PR tree-optimization/35842
7493         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
7494         is_gimple_invariant_address.
7495
7496 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7497
7498         * gcc.c (default_compilers): Sync Fortran extensions list with
7499         that in fortran/lang-specs.h.
7500         * doc/invoke.texi: Likewise.
7501         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
7502         * dwarf2out.c (gen_compile_unit_die): Likewise.
7503
7504 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
7505
7506         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
7507
7508 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
7509
7510         PR target/12329
7511         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
7512         attribute is used for nested functions.
7513
7514 2008-04-05  Jan Hubicka  <jh@suse.cz>
7515
7516         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
7517
7518         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
7519         letter argument.
7520         (dump_files): Update.
7521         (enable_rtl_dump_file): Do not accept letter argument.
7522         * tree-pass.h (dump_file_info): Remove letter argument.
7523         * toplev.c (decode_d_option): Update -da handling.
7524         * toplev.h (enable_rtl_dump_file): Update prototype.
7525         * passes.c (register_one_dump_file): Do not accept IPA argument; work
7526         it out based on pass type.
7527         (register_dump_files_1): Likewise.
7528         (init_optimization_passes): Update register_one_dump_file calls.
7529         (execute_one_pass): Sanity check that IPA passes are called at IPA
7530         level and RTL passes at RTL level.
7531         (execute_pass_list): IPA pass can not be after or subpass of
7532         GIMPLE/RTL pass.
7533         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
7534         disallov RTL subpasses of IPA subpasses.
7535
7536 2008-04-05  Ben Elliston  <bje@au.ibm.com>
7537
7538         * tree-cfg.c (need_fake_edge_p): Return false for calls to
7539         builtins that return exactly once and do not throw. Cache call to
7540         call_expr_flags.
7541
7542 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
7543
7544         PR rtl-optimization/34916
7545         PR middle-end/35519
7546         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
7547         between instruction pairs.
7548
7549 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
7550
7551         * doc/invoke.texi: Document -mbitops for SH.
7552         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
7553         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
7554         * config/sh/sh.c (print_operand): Add %t operand code.
7555         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
7556         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
7557         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
7558         (extendqihi2): Likewise.
7559         (movqi_i): Likewise.
7560         (insv): Use bset, bclr and bst instructions for SH2A if possible.
7561         (extv): Use bld instruction for SH2A if possible.
7562         (extzv): Likewise.
7563         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
7564         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
7565         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
7566         (bset.b, bclr.b): Define peepholes.
7567         * config/sh/sh.opt (mbitops): New option.
7568
7569 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
7570
7571         PR target/35620
7572         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
7573         and view convert expression.
7574
7575 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
7576
7577         PR target/35364
7578         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
7579
7580 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
7581
7582         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
7583
7584         * config/i386/cpuid.h (bit_AES): New.
7585         (bit_PCLMUL): Likewise.
7586
7587         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
7588         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
7589         SSE2 if AES or PCLMUL is enabled.
7590         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
7591         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
7592         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
7593         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
7594         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
7595         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
7596         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
7597         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
7598         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
7599         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
7600         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
7601         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
7602         __builtin_ia32_aeskeygenassist128 and
7603         __builtin_ia32_pclmulqdq128.
7604         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
7605         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
7606         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
7607
7608         * config/i386/i386.h (TARGET_AES): New.
7609         (TARGET_PCLMUL): Likewise.
7610         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
7611
7612         * config/i386/i386.md (UNSPEC_AESENC): New.
7613         (UNSPEC_AESENCLAST): Likewise.
7614         (UNSPEC_AESDEC): Likewise.
7615         (UNSPEC_AESDECLAST): Likewise.
7616         (UNSPEC_AESIMC): Likewise.
7617         (UNSPEC_AESKEYGENASSIST): Likewise.
7618         (UNSPEC_PCLMUL): Likewise.
7619
7620         * config/i386/i386.opt (maes): New.
7621         (mpclmul): Likewise.
7622
7623         * config/i386/sse.md (aesenc): New pattern.
7624         (aesenclast): Likewise.
7625         (aesdec): Likewise.
7626         (aesdeclast): Likewise.
7627         (aesimc): Likewise.
7628         (aeskeygenassist): Likewise.
7629         (pclmulqdq): Likewise.
7630
7631         * config/i386/wmmintrin.h: New.
7632
7633         * doc/extend.texi: Document AES and PCLMUL built-in function.
7634
7635         * doc/invoke.texi: Document -maes and -mpclmul.
7636
7637 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
7638
7639         * function.c (free_after_parsing): Replace with
7640         cxx_push_function_context from C++ front-end.
7641         (allocate_struct_function): Don't call langhook.
7642         * langhooks.h (struct lang_hooks_for_functions): Delete.
7643         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
7644         member "function".
7645         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
7646         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
7647         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
7648         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
7649         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
7650         remove LANG_HOOKS_FUNCTION_INITIALIZER.
7651         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
7652
7653         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
7654         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
7655         
7656 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
7657
7658         PR c/35440
7659         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
7660         for all types.
7661
7662 2008-04-04  Richard Guenther  <rguenther@suse.de>
7663
7664         PR middle-end/35823
7665         * fold-const.c (optimize_minmax_comparison): Use the correct
7666         type for the constant in the simplified comparison.
7667
7668 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
7669
7670         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
7671         Pass L2 size as "--param l2-cache-size" to the compiler.
7672         (decode_l2_cache): New function to decode L2 cache parameters using
7673         0x8000006 extended cpuid function.
7674         (detect_caches_amd): Determine parameters of L2 cache using
7675         decode_l2_caches function.
7676         (decode_caches_intel): Decode L2 cache parameters.
7677         (detect_caches_intel): Determine L2 cache parameters using
7678         decode_caches_intel and decode_l2_caches functions.
7679
7680 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
7681
7682         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
7683         secondary input reload for subword loads from the constant pool.
7684
7685 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
7686
7687         PR target/35713
7688         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
7689           constants of the appropriate size for runtime calculations.
7690
7691         PR c/35712
7692         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
7693           decimal-float literal constant zero.
7694
7695 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
7696
7697         PR c/35738
7698         * c-parser.c (c_parser_omp_atomic): Call
7699         default_function_array_conversion on the RHS.
7700
7701         PR middle-end/35818
7702         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
7703         call is_variable_sized if decl has incomplete type.
7704
7705 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
7706
7707         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
7708
7709 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
7710
7711         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
7712         iterators.
7713         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
7714         (sgt<u>): Merge sgt and sgtu into new expander.
7715         (sgt, sgtu): Remove expanders.
7716         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
7717         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
7718         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
7719         *sgtu_<mode>_mips16 into new pattern.
7720         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
7721         (sge<u>): Merge sge and sgeu into new expander.
7722         (sge, sgeu): Remove expanders.
7723         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
7724         new pattern.
7725         (*sge_<mode>, second *sge_<mode>): Remove patterns.
7726         (slt<u>): Merge slt and sltu into new expander.
7727         (slt, sltu): Remove expanders.
7728         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
7729         (*slt_<mode>, *sltu_<mode>): Remove patterns.
7730         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
7731         *sltu_<mode>_mips16 into new pattern.
7732         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
7733         (sle<u>): Merge sle and sleu into new expander.
7734         (sle, sleu): Remove expanders.
7735         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
7736         (*sle_<mode>, *sleu_<mode>): Remove patterns.
7737         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
7738         *sleu_<mode>_mips16 into new pattern.
7739         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
7740
7741 2008-04-03  Jan Hubicka  <jh@suse.cz>
7742
7743         PR tree-optimization/35795
7744         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
7745         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7746         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7747         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7748         * score/score3.c (score3_output_mi_thunk): Likewise.
7749         * score/score7.c (score7_output_mi_thunk): Likewise.
7750         * mips/mips.c (mips_output_mi_thunk): Likewise.
7751
7752 2008-04-03  Richard Guenther  <rguenther@suse.de>
7753
7754         * tree-vrp.c (extract_range_from_unary_expr): Handle all
7755         conversions.  Simplify code.
7756
7757 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
7758
7759         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
7760
7761 2008-04-03  Tom Tromey  <tromey@redhat.com>
7762             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7763
7764         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
7765         * config/bfin/t-bfin-linux (generated_files): Add
7766         linux-sysroot-suffix.h.
7767         * doc/install.texi (Prerequisites): Require make 3.80.
7768         * doc/sourcebuild.texi (Front End Directory): Document new
7769         variable.
7770         * Makefile.in (generated_files): New variable.
7771         (ALL_HOST_OBJS): New variable.
7772         ($(ALL_HOST_OBJS)): New target.
7773
7774 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
7775
7776         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
7777         (remap_block): Call id->transform_lang_insert_block instead
7778         of langhook.
7779         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
7780         Set id.transform_lang_insert_block to NULL.
7781         (clone_body): Move to cp/optimize.c
7782         * tree-inline.h (struct copy_body_data): Change
7783         transform_lang_insert_block to function pointer.
7784         (copy_generic_body, copy_decl_no_change): Export.
7785         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
7786         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
7787         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
7788
7789         * c-tree.h (insert_block): Kill.
7790         * c-decl.c (insert_block): Kill.
7791
7792 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
7793
7794         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
7795         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
7796         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
7797         argument.
7798         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
7799         argument, call {push,pop}_function_context from here.
7800         * c-parser.c: Use c_{push,pop}_function_context.
7801
7802         * function.c (push_function_context_to): Move meat ...
7803         (push_function_context): ... here.  Simplify.
7804         * function.c (pop_function_context_from): Move meat ...
7805         (pop_function_context): ... here.  Simplify.
7806         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
7807         leave_nested).
7808         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
7809         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
7810         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
7811         * tree.h (push_function_context_to, pop_function_context_from): Remove.
7812
7813 2008-04-03  Ben Elliston  <bje@au.ibm.com>
7814
7815         * expmed.c (extract_force_align_mem_bit_field): Remove.
7816
7817 2008-04-03  Richard Guenther  <rguenther@suse.de>
7818
7819         PR middle-end/35800
7820         * expr.h (try_casesi): Adjust prototype.
7821         * expr.c (try_casesi): Take fallback label as extra parameter.
7822         Use that for gen_casesi if default_label is NULL.
7823         * stmt.c (expand_case): Pass fallback label to try_casesi,
7824         make sure to fill gaps with a fallback label if default_label
7825         is not present.
7826
7827 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
7828
7829         PR target/35801
7830         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
7831
7832 2008-04-03  Ben Elliston  <bje@au.ibm.com>
7833
7834         * expmed.c (extract_split_bit_field): Remove if (0) code.
7835         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
7836         (do_ds_constraint): Likewise.
7837
7838 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
7839
7840         * doc/cppopts.texi (-dU): Document.
7841         * c-common.h (flag_dump_macros): Update comment.
7842         * c-opts.c (handle_OPT_d): Handle -dU.
7843         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
7844         dump_queued_macros, cb_used_define, cb_used_undef): New.
7845         (init_pp_output): Handle -dU.
7846         (cb_line_change): Call dump_queued_macros.
7847         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
7848
7849 2008-04-02  Anatoly Sokolov <aesok@post.ru>
7850
7851         * config/avr/predicates.md (io_address_operand): New predicate. 
7852         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
7853         * config/avr/avr.c (avr_io_address_p): Remove function.
7854         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
7855         'avr_io_address_p' function.
7856         (out_movhi_r_mr): (Ditto.).
7857         (out_movqi_mr_r): (Ditto.).
7858         (out_movhi_mr_r): (Ditto.).
7859         (avr_address_cost): (Ditto.).
7860
7861 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
7862
7863         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
7864         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
7865         in 32bit mode when XMM registers are available to avoid store
7866         forwarding stalls.
7867         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
7868         corresponding post-reload splitters.
7869
7870 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
7871
7872         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
7873         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
7874         __builtin_ia32_roundss.
7875         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
7876         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
7877         __builtin_ia32_roundss.
7878         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
7879         IX86_BUILTIN_SHUFPD here.
7880
7881 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
7882
7883         * config/i386/i386.md (plogic): New.
7884         (plogicprefix): Likewise.
7885
7886         * config/i386/mmx.md (mmx_<code><mode>3): New.
7887         (mmx_and<mode>3): Removed.
7888         (mmx_ior<mode>3): Likewise.
7889         (mmx_xor<mode>3): Likewise.
7890
7891         * config/i386/sse.md (<code><mode>3): New.
7892         (*<code><mode>3): Likewise.
7893         (*<code><mode>3): Likewise.
7894         (<code><mode>3): Likewise.
7895         (*sse_<code><mode>3): Likewise.
7896         (*sse2_<code><mode>3): Likewise.
7897         (<code>tf3): Likewise.
7898         (*<code>tf3): Likewise.
7899         (and<mode>3): Likewise.
7900         (*and<mode>3): Likewise.
7901         (ior<mode>3): Removed.
7902         (*ior<mode>3): Likewise.
7903         (xor<mode>3): Likewise.
7904         (*xor<mode>3): Likewise.
7905         (*and<mode>3): Likewise.
7906         (*ior<mode>3): Likewise.
7907         (*xor<mode>3): Likewise.
7908         (and<mode>3): Likewise.
7909         (*sse_and<mode>3): Likewise.
7910         (*sse2_and<mode>3): Likewise.
7911         (andtf3): Likewise.
7912         (*andtf3): Likewise.
7913         (ior<mode>3): Likewise.
7914         (*sse_ior<mode>3): Likewise.
7915         (*sse2_ior<mode>3): Likewise.
7916         (iortf3): Likewise.
7917         (*iortf3): Likewise.
7918         (xor<mode>3): Likewise.
7919         (*sse_xor<mode>3): Likewise.
7920         (*sse2_xor<mode>3): Likewise.
7921         (xortf3): Likewise.
7922         (*xortf3): Likewise.
7923
7924 2008-04-02  Richard Guenther  <rguenther@suse.de>
7925
7926         PR tree-optimization/14495
7927         PR tree-optimization/34793
7928         * tree-vrp.c (struct switch_update): New structure.
7929         (to_remove_edges, to_update_switch_stmts): New VECs.
7930         (simplify_switch_using_ranges): New function.  Remove not taken
7931         case labels and edges.
7932         (simplify_stmt_using_ranges): Call it.
7933         (identify_jump_threads): Mark edges we have queued for removal
7934         so we don't thread them.
7935         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
7936         case label vector.
7937         * tree-cfg.c (group_case_labels): Deal with missing default label.
7938         (tree_verify_flow_info): Allow missing default label.
7939         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
7940         (emit_case_nodes): Likewise.
7941         (expand_case): Do not rely on the default label to be present.
7942         * expr.c (try_casesi): Deal with NULL default_label.
7943         (do_tablejump): Likewise.
7944
7945 2008-04-02  Richard Guenther  <rguenther@suse.de>
7946
7947         PR tree-optimization/14495
7948         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
7949         SWITCH_EXPR here ...
7950         (vrp_visit_switch_stmt): ... but here (new function).
7951         (find_case_label_index): New helper function.
7952         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
7953
7954 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
7955
7956         * fwprop.c: Fix ISO-C99ism.
7957
7958 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
7959
7960         PR bootstrap/35752
7961         * Makefile.in (objdir): Set it here.
7962         * configure.ac: Not here.  Find dynamic linker characteristics.
7963         * exec-tool.in: Use them.
7964         * aclocal.m4: Regenerate.
7965         * configure: Regenerate.
7966
7967 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
7968
7969         * expr.c (expand_var): Delete it.
7970         * expr.h (expand_var): Delete prototype.
7971         * function.c (expand_function_start): Use expand_decl instead.
7972         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
7973         langhook.
7974
7975 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
7976
7977         PR rtl-optimization/35542
7978         * fwprop.c (forward_propagate_and_simplify): Replace
7979         loc_reg_mentioned_in_p with reg_mentioned_p.
7980
7981 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
7982
7983         PR rtl-optimization/35281
7984         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
7985         (propagate_rtx_1): Handle PR_HANDLE_MEM.
7986         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
7987         (varying_mem_p): Move above propagate_rtx.
7988         (all_uses_available_at): Do not check MEMs.
7989
7990 2008-04-02  Rafael Espindola  <espindola@google.com>
7991
7992         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
7993         (register_edge_assert_for_2): Split the cond argument.
7994         (register_edge_assert_for_1): Adjust for the change in
7995         register_edge_assert_for_2.
7996         (register_edge_assert_for): Split the cond argument.
7997         (find_switch_asserts): Adjust for the change in
7998         register_edge_assert_for.
7999
8000 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
8001
8002         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
8003         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
8004         offsets for 64-bit mingw.
8005         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
8006         abi for x86_64-pc-mingw.
8007
8008 2008-04-02  Richard Guenther  <rguenther@suse.de>
8009
8010         * tree-vrp.c (extract_range_from_assert): Make sure to not
8011         produce range min/max with TREE_OVERFOW set.
8012         If merging a anti-range and a range keep the anti-range if
8013         the range covers all values of the type.
8014         (register_edge_assert_for_2): Only allow sign-changing
8015         conversions in detecting canonical range checks.  Also
8016         register an assert for the unsigned name if useful.
8017
8018         PR tree-optimization/35787
8019         * tree-vrp.c (vrp_val_max): New function.
8020         (vrp_val_min): Likewise.
8021         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
8022         (vrp_val_is_min): Likewise.
8023         (supports_overflow_infinity): Use vrp_val_{min,max}.
8024         (negative_overflow_infinity): Likewise.
8025         (positive_overflow_infinity): Likewise.
8026         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
8027         (is_positive_overflow_infinity): Likewise.
8028         (is_overflow_infinity): Likewise.
8029         (avoid_overflow_infinity): Use vrp_val_{min,max} and
8030         vrp_val_is_{min,max}.
8031         (set_and_canonicalize_value_range): Canonicalize anti-ranges
8032         to ranges if possible.  Avoid empty ranges.
8033
8034 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8035
8036         PR middle-end/35705
8037         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
8038         the expression is a function address.
8039
8040 2008-04-01  George Helffrich  <george@gcc.gnu.org>
8041
8042         PR fortran/35154, fortran/23057
8043         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
8044         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
8045         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
8046         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
8047         in common.
8048         (dbxout_syms): Check for COMMON-based symbol and wrap in
8049         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
8050         in bracket for efficiency.
8051
8052         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
8053         using DW_TAG_common_block + member offset.
8054         (add_pubname_string): New function.
8055         (dw_expand_expr): New function to find block name and offset for
8056         COMMON var.
8057         (common_check): New function to check whether symbol in Fortran COMMON.
8058         (gen_variable_die): If COMMON, use DW_TAG_common_block.
8059
8060 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
8061
8062         PR c/35436
8063         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
8064
8065 2008-04-02  Ben Elliston  <bje@au.ibm.com>
8066
8067         * config/v850/v850.md (casesi): Remove if (0) code.
8068         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8069         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8070
8071 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
8072
8073         * config/i386/i386.md (rex64suffix): New mode attribute.
8074         (floathi<mode>2): Disable expander for SSE math.
8075         (*floathi<mode>2_1): New insn insn_and_split pattern.
8076         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
8077         corresponding post-reload splitters.
8078         (*floathi<mode>2_i387): New macroized insn pattern.
8079         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
8080         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
8081         insn_and_split pattern.
8082         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
8083         New macroized instruction patterns and corresponding post-reload
8084         splitters.
8085         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
8086         and corresponding post-reload splitters.
8087         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
8088         New macroized instruction patterns.
8089         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
8090         macroized instruction patterns and corresponding post-reload splitters.
8091         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
8092         corresponding post-reload splitters.
8093         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
8094         New macroized instruction patterns.
8095         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
8096         corresponding post-reload splitters.
8097         (*floatsi<mode>2_i387): New macroized instruction patterns.
8098
8099 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
8100
8101         * config/i386/i386.md (smaxmin): New.
8102         (umaxmin): Likewise.
8103         (maxminiprefix): Likewise.
8104         (maxminfprefix): Likewise.
8105         (<code><mode>3): Likewise.
8106         (smin<mode>3): Removed.
8107         (smax<mode>3): Likewise.
8108
8109         * config/i386/mmx.md (mmx_<code>v2sf3): New.
8110         (mmx_<code>v4hi3): Likewise.
8111         (mmx_<code>v8qi3): Likewise.
8112         (mmx_smaxv2sf3): Removed.
8113         (mmx_sminv2sf3): Likewise.
8114         (mmx_umaxv8qi3): Likewise.
8115         (mmx_smaxv4hi3): Likewise.
8116         (mmx_uminv8qi3): Likewise.
8117         (mmx_sminv4hi3): Likewise.
8118
8119         * config/i386/sse.md (<addsub><mode>3): New.
8120         (*<addsub><mode>3): Likewise.
8121         (<sse>_vm<addsub><mode>3): Likewise.
8122         (<maxmin><mode>3): Likewise.
8123         (*<maxmin><mode>3_finite): Likewise.
8124         (*<maxmin><mode>3): Likewise.
8125         (<sse>_vm<maxmin><mode>3): Likewise.
8126         (sse3_h<addsub>v4sf3): Likewise.
8127         (sse3_h<addsub>v2df3): Likewise.
8128         (<maxmin>v16qi3): Likewise.
8129         (*<maxmin>v16qi3): Likewise.
8130         (<maxmin>v8hi3): Likewise.
8131         (*<maxmin>v8hi3): Likewise.
8132         (*sse4_1_<maxmin><mode>3): Likewise.
8133         (*sse4_1_<maxmin><mode>3): Likewise.
8134         (add<mode>3): Removed.
8135         (*add<mode>3): Likewise.
8136         (<sse>_vmadd<mode>3): Likewise.
8137         (sub<mode>3): Likewise.
8138         (*sub<mode>3): Likewise.
8139         (<sse>_vmsub<mode>3): Likewise.
8140         (smin<mode>3): Likewise.
8141         (*smin<mode>3_finite): Likewise.
8142         (*smin<mode>3): Likewise.
8143         (<sse>_vmsmin<mode>3): Likewise.
8144         (smax<mode>3): Likewise.
8145         (*smax<mode>3_finite): Likewise.
8146         (*smax<mode>3): Likewise.
8147         (<sse>_vmsmax<mode>3): Likewise.
8148         (sse3_haddv4sf3): Likewise.
8149         (sse3_haddv2df3): Likewise.
8150         (sse3_hsubv4sf3): Likewise.
8151         (sse3_hsubv2df3): Likewise.
8152         (umaxv16qi3): Likewise.
8153         (*umaxv16qi3): Likewise.
8154         (smaxv8hi3): Likewise.
8155         (*smaxv8hi3): Likewise.
8156         (*sse4_1_smax<mode>3): Likewise.
8157         (*sse4_1_umax<mode>3): Likewise.
8158         (uminv16qi3): Likewise.
8159         (*uminv16qi3): Likewise.
8160         (sminv8hi3): Likewise.
8161         (*sminv8hi3): Likewise.
8162         (*sse4_1_smin<mode>3): Likewise.
8163         (*sse4_1_umin<mode>3): Likewise.
8164
8165 2008-04-01  Rafael Espindola  <espindola@google.com>
8166
8167         * tree-cfg.c (verify_expr): remove in_phi.
8168         (verify_stmt): Don't call walk_tree with verify_expr. Use
8169         is_gimple_min_invariant instead of is_gimple_val.
8170
8171 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
8172
8173         * doc/include/gpl_v3.texi: Update for manpage generation.
8174         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
8175         gpl.texi.
8176         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
8177         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
8178         gpl_v3.texi instead of gpl.texi.
8179         (gpl.pod): New.
8180
8181 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
8182
8183         PR pch/13675
8184         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
8185
8186 2008-04-01  Rafael Espindola  <espindola@google.com>
8187
8188         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
8189         (extract_code_and_val_from_cond): Use
8190         extract_code_and_val_from_cond_with_ops.
8191
8192 2008-04-01  Jan Hubicka  <jh@suse.cz>
8193
8194         * function.c (free_after_compilation): Free epilogue_delay_list.
8195         (prepare_function_start): Assert that previous compilation was freed.
8196
8197 2008-04-01  Jan Hubicka  <jh@suse.cz>
8198             Jim Wilson  <wilson@tuliptree.org>
8199             Andreas Tobler <andreast@gcc.gnu.org>
8200
8201         PR middle-end/35781
8202         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
8203         rtl.emit instead cfun->emit.
8204         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
8205         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
8206
8207 2008-04-01  Ben Elliston  <bje@au.ibm.com>
8208
8209         * doc/c-tree.texi (Function Basics): Fix grammatical error.
8210
8211 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
8212
8213         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
8214         New options
8215         (fprofile-use): Add var flag_profile_use
8216         * coverage.c (coverage_begin_output): Do not open a gcno file for
8217         output only if -ftest-coverage is set.
8218         Do not add getpwd() to gcda file path.
8219         (build_gcov_info): Check the new flag
8220         flag_profile_datafile_relative_path.
8221         (coverage_init): Use profile_data_prefix.
8222         Read profile counter only if flag_profile_use is set.
8223         * opts.c (common_handle_option): New option fprofile-use=,
8224         fprofile-dir=, fprofile-generate=.
8225         * toplev.c (profile_data_prefix): New variable definition.
8226         * toplev.h (profile_data_prefix): New declaration.
8227         * doc/invoke.tex (Option Summary, Optimization Options):
8228         Add new options.
8229
8230 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
8231
8232         * varasm.c (output_constant_pool_1): In LABEL_REF check,
8233         use tmp consistently.
8234
8235         PR target/35695
8236         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
8237         * config/ia64/ia64.c (rtx_needs_barrier): Handle
8238         UNSPEC_FR_RECIP_APPROX_RES.
8239         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
8240
8241 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
8242
8243         PR c/35750
8244         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
8245
8246 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8247
8248         PR middle-end/30186
8249         * fold-const.c (fold_indirect_ref_1): Support accessing non first
8250         element of the vector via a pointer.
8251
8252 2008-03-31  Ian Lance Taylor  <iant@google.com>
8253
8254         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
8255
8256 2008-03-31  Jan Hubicka  <jh@suse.cz>
8257
8258         * builtins.c (expand_builtin_setjmp_receiver): Update call of
8259         get_arg_pointer_save_area.
8260         * expr.c (init_expr): Just clear out rtl.expr.
8261         * function.c (free_after_compilation): Clear out whole RTL structure.
8262         (get_func_frame_size): Merge into ...
8263         (get_frame_size): ... this one.
8264         (assign_stack_local_1): Merge into ...
8265         (assign_stack_local): ... this one.
8266         (expand_function_end): Update call of get_arg_pointer_save_area.
8267         (get_art_pointer_save_area): Remove cfun argument.
8268         * function.h (emit_status): regno_pointer_align does not need length
8269         attribute. Move x_regno_reg_rtx to ...
8270         (regno_reg_rtx): ... new global array.
8271         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
8272         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
8273         apply_args_value, forced_labels, stack_pointer_delta):
8274         Update accestors.
8275         (struct varasm_status): Move here from varasm.c
8276         (struct rtl_data): New. Move here some fields from struct function.
8277         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
8278         frame_offset, stack_check_probe_note, arg_pointer_save_area,
8279         used_temp_slots avail_temp_slots, temp_slot_level,
8280         nonlocal_goto_handler_labels): Update accesstors.
8281         (rtl): New global variable.
8282         (struct function): Move some fileds to rtl_data.
8283         (get_arg_pointer_save_area): Update prototype.
8284         * emit-rtl.c (rtl): Declare.
8285         (regno_reg_rtx): Declare.
8286         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
8287         Update.
8288         (gen_reg_rtx): Update.
8289         (init_virtual_regs): Do not tate emit_status argument.
8290         (init_emit): Do not allocate emit.
8291         * varasm.c (varasm_statuc): Move to function.h.
8292         (n_deferred_constatns): Update accestor.
8293         (init_varasm_status): Do not allocate varasm_status.
8294         (force_const_mem, get_pool_size, output_constant_pool): Update.
8295         * stmt.c (force_label_rtx): Do not use x_ prefixes.
8296         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
8297
8298 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
8299
8300         PR rtl-optimization/35729
8301         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
8302         references.
8303
8304 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
8305
8306         PR target/32000
8307         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
8308         load/store if memory is unaligned.
8309         (*movti_rex64): Likewise.
8310
8311         * config/i386/predicates.md (misaligned_operand): New.
8312
8313 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
8314
8315         PR tree-opt/35431
8316         * tree-ssa-phiopt.c (conditional_replacement): Return early for
8317         complex types.
8318
8319 2008-03-31  Jan Beulich  <jbeulich@novell.com>
8320
8321         * config/ia64/constraints.md: Add 'j' constraint.
8322         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
8323         (movdi_internal): Likewise.
8324
8325 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
8326
8327         PR c/35748
8328         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
8329
8330 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8331
8332         PR target/35757
8333         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
8334         proper error message for the third argument on blendpd and
8335         blendps.
8336
8337         * config/i386/sse.md (blendbits): New.
8338         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
8339
8340 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
8341
8342         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
8343
8344 2008-03-30  Richard Guenther  <rguenther@suse.de>
8345
8346         PR middle-end/31023
8347         * fold-const.c (fold_sign_changed_comparison): Do leave
8348         conversions to base-types alone.
8349
8350 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8351
8352         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
8353         the link register if one altivec register is be saved.
8354
8355 2008-03-30  Ben Elliston  <bje@au.ibm.com>
8356
8357         * final.c (final_scan_insn): Remove if (0) code.
8358
8359 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
8360
8361         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
8362
8363 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8364
8365         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
8366         of V4SFmode to ix86_binary_operator_ok.
8367
8368 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
8369
8370         * config/i386/i386.c (override_options): Initialize
8371         ix86_veclib_handler to ix86_veclibabi_svml when
8372         -mveclibabi=svml is used.
8373         (ix86_veclibabi_svml): New function for SVML ABI style
8374         vectorization support.
8375         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
8376
8377 2008-03-28  Rafael Espindola  <espindola@google.com>
8378
8379         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
8380         (tree_binary_nonnegative_warnv_p): Make it public.
8381         (tree_single_nonnegative_warnv_p): Make it public.
8382         (tree_invalid_nonnegative_warnv_p): Make it public.
8383         (tree_unary_nonzero_warnv_p): Make it public.
8384         (tree_binary_nonzero_warnv_p): Make it public
8385         (tree_single_nonzero_warnv_p): Make it public.
8386         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
8387         (extract_range_from_binary_expr): Split the expr argument.
8388         (extract_range_from_unary_expr): Split the expr argument.
8389         (extract_range_from_comparison): Split the expr argument.
8390         (extract_range_from_expr): Use the new aux functions.
8391         (vrp_evaluate_conditional_warnv): Use
8392         vrp_evaluate_conditional_warnv_with_ops.
8393         * tree.h (tree_unary_nonzero_warnv_p): Declare.
8394         (tree_binary_nonzero_warnv_p): Declare.
8395         (tree_single_nonzero_warnv_p): Declare.
8396         (tree_expr_nonzero_warnv_p): Declare.
8397         (tree_unary_nonnegative_warnv_p): Declare.
8398         (tree_binary_nonnegative_warnv_p): Declare.
8399         (tree_single_nonnegative_warnv_p): Declare.
8400         (tree_invalid_nonnegative_warnv_p): Declare.
8401
8402 2008-03-28  Richard Guenther  <rguenther@suse.de>
8403
8404         PR tree-optimization/30317
8405         PR tree-optimization/30911
8406         PR tree-optimization/34793
8407         * tree-vrp.c (set_and_canonicalize_value_range): New function.
8408         (struct assert_locus_d): New member EXPR.
8409         (register_new_assert_for): Add EXPR parameter to support
8410         ASSERT_EXPR <name, expr OP limit>.
8411         (register_edge_assert_for_1): Adjust callers.
8412         (find_assert_locations): Likewise.
8413         (process_assert_insertions_for): Build condition from expression.
8414         (extract_range_from_assert): Handle ASSERT_EXPRs
8415         of the form ASSERT_EXPR <name, expr OP limit>.
8416         (register_edge_assert_for_2): New helper registering
8417         asserts for comparisons.  Recognize range tests of the form
8418         (unsigned)i - CST1 OP CST2.
8419         (register_edge_assert_for_1): Use it.
8420         (register_edge_assert_for): Likewise.
8421         (needs_overflow_infinity): Integer sub-types
8422         do not need overflow infinities.
8423         (vrp_val_is_max): The extreme values of integer sub-types
8424         are those of the base type.
8425         (vrp_val_is_min): Likewise.
8426         * tree.def (ASSERT_EXPR): Document extra allowed conditional
8427         expressions.
8428
8429 2008-03-28  Nick Clifton  <nickc@redhat.com>
8430
8431         PR target/31110
8432         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
8433         Return GENERAL_REGS for stack adjustment reloads.
8434
8435 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8436
8437         PR target/31334
8438         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
8439         const_vector when all the vectors are constant.
8440
8441 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
8442
8443         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
8444         comparisons.
8445         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
8446         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
8447         (scc_sf): New.
8448         (s<code>_sf): Use new scc_sf attribute for opcode names.
8449
8450 2008-03-27  Tom Tromey  <tromey@redhat.com>
8451
8452         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
8453         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
8454         config/spu/t-spu-elf, config/i386/t-interix,
8455         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
8456         config/i386/x-darwin, config/i386/x-mingw32,
8457         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
8458         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
8459         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
8460         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
8461         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
8462         config/rs6000/x-darwin, config/rs6000/t-rs6000,
8463         config/score/t-score-elf, config/arm/t-strongarm-pe,
8464         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
8465         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
8466         Revert automatic dependency patch.
8467
8468 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8469
8470         PR target/35657
8471         * config/i386/i386.c (ix86_function_arg_boundary): Align
8472         decimal floating point to its natural boundary.
8473
8474 2008-03-27  Richard Guenther  <rguenther@suse.de>
8475
8476         PR middle-end/35716
8477         * fold-const.c (fold_comparison): Restrict distinct decl
8478         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
8479         solely rely on operand_equal_p.
8480
8481 2008-03-27  Richard Guenther  <rguenther@suse.de>
8482
8483         PR c/32511
8484         * c-common.c (handle_weak_attribute): Reject combination of
8485         weak and inline.
8486
8487 2008-03-27  Richard Guenther  <rguenther@suse.de>
8488
8489         PR tree-optimization/32810
8490         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
8491         conversions from DECL_INITIAL.
8492         (fold_const_aggregate_ref): Likewise from constructor elements.
8493
8494 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
8495
8496         * tree-affine.h (aff_combination_expand): Declare.
8497         (get_inner_reference_aff): Likewise.
8498         * tree-affine.c (aff_combination_expand): Split out from
8499         tree_to_aff_combination_expand.
8500         (get_inner_reference_aff): New function.
8501         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
8502         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
8503         (struct lim_aux_data): sm_done field removed.
8504         (mem_ref_loc_p, mem_ref_locs_p): New types.
8505         (struct mem_ref): Added id, stored, accesses_in_loop,
8506         indep_loop, dep_loop, indep_ref, dep_ref fields.
8507         Removed is_stored, locs and next fields.
8508         (memory_accesses): New variable.
8509         (movement_possibility): Do not allow moving statements
8510         that store to memory.
8511         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
8512         New functions.
8513         (determine_max_movement): For statements with memory references,
8514         find the outermost loop in that the reference is independent.
8515         (move_computations_stmt): Mark the virtual operands for renaming.
8516         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
8517         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
8518         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
8519         add_vop_ref_mapping, create_vop_ref_mapping_loop,
8520         create_vop_ref_mapping, analyze_memory_references,
8521         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
8522         get_all_locs_in_loop, ref_always_accessed_p,
8523         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
8524         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
8525         store_motion_loop, store_motion): New functions.
8526         (struct vop_to_refs_elt): New type.
8527         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
8528         memref_hash, memref_eq, hoist_memory_references): Rewritten.
8529         (schedule_sm): Replaced by...
8530         (execute_sm): ... this.
8531         (determine_lsm_ref, hoist_memory_references,
8532         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
8533         find_more_ref_vops, free_mem_ref, free_mem_refs,
8534         determine_lsm_loop, determine_lsm): Removed.
8535         (tree_ssa_lim_finalize): Free data structures used by store motion.
8536         (tree_ssa_lim): Call analyze_memory_references.  Use
8537         store_motion instead of determine_lsm.
8538
8539 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
8540
8541         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
8542         rename tmake_file to m68hc11/t-m68hc11.
8543         (mcore): Set inhibit_libc to true.
8544         * config.host (alpha*-dec-*vms*): Set extra_programs.
8545         (interix3*): Don't use host_xmake_file.
8546         * configure.ac: Let config.gcc override inhibit_libc.
8547         * configure: Regenerate.
8548
8549         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
8550         * config/t-openbsd-thread: Remove commented out lines.
8551         
8552         * config/x-interix: Remove.
8553
8554         * config/m68hc11/t-m68hc11-gas: Rename to...
8555         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
8556
8557         * config/mcore/t-mcore: Remove T_CFLAGS.
8558         * config/mcore/t-mcore-pe: Likewise.
8559
8560 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
8561
8562         * configure.ac: Replace custom __GNU_SOURCE test with
8563         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
8564         * aclocal.m4: Regenerate.
8565         * configure: Regenerate.
8566         * config.in: Regenerate.
8567
8568 2008-03-27  Richard Guenther  <rguenther@suse.de>
8569
8570         * fold-const.c (target.h): Include.
8571         (fold_comparison): Fold comparison of addresses of decls
8572         that bind locally or of constants.  Consolidate address folding code.
8573         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
8574         results from fold_binary_to_constant.
8575         (compare_values_warnv): Likewise.
8576
8577 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
8578
8579         PR middle-end/35429
8580         * fold-const.c (fold_truthop): Check for integeral types when folding
8581         a == 0 && b == 0 and a != 0 || b != 0 .
8582
8583 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8584
8585         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
8586
8587 2008-03-26  Andreas Schwab  <schwab@suse.de>
8588
8589         * doc/invoke.texi: Fix use of @item vs. @itemx.
8590
8591 2008-03-26  Tom Tromey  <tromey@redhat.com>
8592
8593         * Makefile.in (build/gensupport.o, build/print-rtl.o,
8594         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
8595         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
8596         build/gencodes.o, build/genconditions.o, build/genconfig.o,
8597         build/genconstants.o, build/genemit.o, build/genextract.o,
8598         build/genflags.o, build/genmddeps.o, build/genopinit.o,
8599         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
8600         options.h.
8601
8602 2008-03-26  Richard Guenther  <rguenther@suse.de>
8603
8604         Revert
8605         2008-03-26  Richard Guenther  <rguenther@suse.de>
8606
8607         * fold-const.c (target.h): Include.
8608         (fold_comparison): Fold comparison of addresses of two decls
8609         that bind locally.  Consolidate address folding code.
8610
8611 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8612
8613         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
8614         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
8615         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
8616         dconstsqrt2, dconstthird, dconste and/or dconst10.
8617         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
8618         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
8619         dconstsqrt2, dconste): Delete.
8620         (init_emit_once): Likewise.  Simplify initializing dconstm1.
8621         Constify variable.
8622         * real.c (get_real_const): New.
8623         * real.h (dconst3, dconst10, dconstm2, dconstthird,
8624         dconstsqrt2, dconste): Delete.
8625         (real_value_const, get_real_const): New.
8626
8627 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
8628
8629         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
8630
8631         * config/i386/i386.c (ix86_function_arg_boundary): Check
8632         BIGGEST_ALIGNMENT instead of 128.
8633         (setup_incoming_varargs_64): Likewise.
8634
8635 2008-03-26  Tom Tromey  <tromey@redhat.com>
8636
8637         * Makefile.in (DEPFILES): Add missing '/'.
8638
8639 2008-03-26  Richard Guenther  <rguenther@suse.de>
8640
8641         * fold-const.c (target.h): Include.
8642         (fold_comparison): Fold comparison of addresses of two decls
8643         that bind locally.  Consolidate address folding code.
8644
8645 2008-03-26  Nick Clifton  <nickc@redhat.com>
8646
8647         PR target/31232
8648         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
8649         not allow INT+INT as a legitimate addressing mode.
8650
8651 2008-03-26  Richard Guenther  <rguenther@suse.de>
8652
8653         * tree-flow.h (widen_bitfield): Remove declaration.
8654         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
8655         (widen_bitfield): Remove function.
8656         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
8657         code.
8658
8659 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8660
8661         PR target/31558
8662         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
8663         error_mark_node's.
8664
8665 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
8666
8667         PR rtl-optimization/35232
8668         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
8669         (forget_old_reloads_1, forget_marked_reloads): Don't clear
8670         reg_reloaded_call_part_clobbered here.
8671         (reload_regs_reach_end_p): New function.
8672         (reload_reg_rtx_for_input): New variable.
8673         (reload_reg_rtx_for_output): Likewise.
8674         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
8675         when reassigning a pseudo register.  Load reloadreg from 
8676         reload_reg_rtx_for_input, moving the mode and register
8677         calculation to...
8678         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
8679         instead of the original when deciding whether an input reload
8680         would be a no-op or whether an output reload can be deleted.
8681         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
8682         when setting up new_spill_reg_store.  Load it from
8683         reload_reg_rtx_for_output, moving the mode and register
8684         calculation to...
8685         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
8686         instead of the original when deciding whether an output reload
8687         would be a no-op.  Do the same when modifying insn notes.
8688         Use rtx_equal_p instead of == to compare the registers.
8689         (inherit_piecemeal_p): Take a mode and two register numbers
8690         as argument.
8691         (emit_reload_insns): Clear new_spill_reg_store for every hard
8692         register in the reload register.  Remove spill registers
8693         from reg_reloaded_valid before considering whether to record
8694         inheritance information for them.  Use reload_reg_rtx_for_output
8695         instead of reg_rtx when recording output reloads.  Use
8696         reload_reg_rtx_for_input instead of reg_rtx when recording
8697         input reloads.  Set or clear reg_reloaded_call_part_clobbered
8698         at the same time as setting reg_reloaded_valid.
8699         (delete_output_reload): Add a new_reload_reg parameter and use it
8700         instead of rld[j].reg_rtx.
8701         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
8702         calls accordingly.
8703
8704 2008-03-25  Tom Tromey  <tromey@redhat.com>
8705
8706         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
8707         (build/genattr.o): Likewise.
8708         (build/genattrtab.o): Likewise.
8709         (build/gencodes.o): Likewise.
8710         (build/genconfig.o): Likewise.
8711         (build/genconstants.o): Likewise.
8712         (build/genemit.o): Likewise.
8713         (build/genextract.o): Likewise.
8714         (build/genflags.o): Likewise.
8715
8716 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
8717         
8718         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
8719         instead of size_int for integer types.
8720         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
8721         to match type of MINUS_EXPR.
8722         
8723 2008-03-25  Tom Tromey  <tromey@redhat.com>
8724
8725         * configure: Rebuilt.
8726         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
8727         Makefile.
8728
8729 2008-03-25  Tom Tromey  <tromey@redhat.com>
8730
8731         * config/x-solaris (host-solaris.o): Update.
8732         * config/x-linux (host-linux.o): Update.
8733         * config/x-hpux (host-hpux.o): Update.
8734         * config/x-darwin (host-darwin.o): Update.
8735         * config/v850/t-v850e (v850-c.o): Update.
8736         * config/v850/t-v850 (v850-c.o): Update.
8737         * config/t-vxworks (vxworks.o): Update.
8738         * config/t-sol2 (sol2-c.o, sol2.o): Update.
8739         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
8740         * config/spu/t-spu-elf (spu-c.o): Update.
8741         (spu.o): Remove.
8742         * config/sh/t-symbian (sh-c.o): Update.
8743         (symbian.o): Update.
8744         * config/sh/t-sh (sh-c.o): Update.
8745         * config/score/t-score-elf (score7.o, score3.o): Update.
8746         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
8747         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
8748         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
8749         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
8750         (rs6000.o): Remove.
8751         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
8752         * config/m32c/t-m32c (m32c-pragma.o): Update.
8753         * config/ia64/t-ia64 (ia64-c.o): Update.
8754         * config/i386/x-mingw32 (host-mingw32.o): Update.
8755         * config/i386/x-i386 (driver-i386.o): Update.
8756         * config/i386/x-darwin (host-i386-darwin.o): Update.
8757         * config/i386/x-cygwin (host-cygwin.o): Update.
8758         * config/i386/t-nwld (nwld.o): Update.
8759         * config/i386/t-netware (netware.o): Update.
8760         * config/i386/t-interix (winnt.o): Update.
8761         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
8762         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
8763         msformat-c.o): Update.
8764         * config/bfin/t-bfin-linux (generated_files): Add
8765         linux-sysroot-suffix.h.
8766         * config/arm/t-wince-pe (pe.o): Update.
8767         * config/arm/t-strongarm-pe (pe.o): Update.
8768         * config/arm/t-pe (pe.o): Update.
8769         * config/arm/t-arm (arm-c.o): Update.
8770         * doc/install.texi (Prerequisites): Require make 3.80.
8771         * Makefile.in: Remove .o targets.
8772         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
8773         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
8774         (simple_generated_h, simple_generated_c): Move earlier.
8775         (generated_files): New variable.
8776         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
8777         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
8778         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
8779         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
8780         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
8781         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
8782         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
8783         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
8784         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
8785         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
8786         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
8787         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
8788         (.c.o): Remove.
8789         (COMPILE.base, COMPILE): New variables.
8790         (%.o): New pattern rule.
8791         (ALL_HOST_OBJS): New variable.
8792         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
8793         (dummy-checksum.o, cc1-checksum.o): Remove.
8794         (DRIVER_SHLIB): New variable.
8795         (DRIVER_DEFINES): Use it.
8796         (gencondmd.c): Move out of build/.
8797         (s-conditions): Update.
8798         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
8799         (ALL_BUILD_OBJS): Likewise.
8800         (build/%.o): Use BUILDCOMPILE.
8801         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
8802         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
8803         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
8804         build/gencheck.o, build/gencodes.o, build/genconditions.o,
8805         build/genconfig.o, build/genconstants.o, build/genemit.o,
8806         build/genextract.o, build/genflags.o, build/genmddeps.o,
8807         build/genopinit.o, build/genoutput.o, build/genpeep.o,
8808         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
8809         build/gen-protos.o, build/scan.o, build/fix-header.o,
8810         build/scan-decls.o): Simplify.
8811         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
8812         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
8813         prefix.o, toplev.o): Reduce to variable setting.
8814         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
8815         ($(out_object_file), gcc-options.o): New targets.
8816         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
8817         * configure: Rebuilt.
8818         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
8819         * doc/sourcebuild.texi (Front End Directory): Document new variable.
8820
8821 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
8822
8823         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
8824         complain when we hit an error, return ERROR_MARK_NODE.
8825
8826 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
8827
8828         * config/sh/constraints.md (Pso, Psz): New constraints.
8829         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
8830         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
8831
8832 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
8833
8834         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
8835         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
8836
8837 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
8838
8839         * config/sh/sh.md (prefetch): Add condition for SH2A target.
8840         (prefetch_sh2a): New.   
8841
8842 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
8843             Naveen.H.S  <naveen.hs@kpitcummins.com>
8844
8845         * config/sh/constraints.md (I28): New constraint.
8846         * config/sh/sh.c (broken_move): Add support for movi20s.
8847         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
8848
8849 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
8850             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
8851             Naveen.H.S  <naveen.hs@kpitcummins.com>
8852
8853         * config/sh/sh.c (SH_ATTRIBUTES): Define.
8854         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
8855         (print_operand): Handle resbank in %@ operand code.
8856         (sh_encode_section_info): New.
8857         (push_regs): Add conditions for resbank.
8858         (sh_expand_epilogue): Likewise.
8859         (sh_insert_attributes): Likewise.
8860         (sh_attribute_table): Likewise.
8861         (sh_handle_resbank_handler_attribute): New.
8862         (sh2a_handle_function_vector_handler_attribute): New.
8863         (sh2a_is_function_vector_call): New.
8864         (sh2a_get_function_vector_number): New.
8865         (sh2a_function_vector_p): New.
8866         (sh_cfun_resbank_handler_p): New.
8867         * config/sh/sh.md (calli): Emit jsr/n if possible.
8868         (calli_tbr_rel): New.
8869         (calli_pcrel): Emit jsr/n if possible.
8870         (return_i): Emit rts/n if possible.
8871         (call_valuei_tbr_rel): New.
8872         (call_valuei_pcrel): Add condition for SH2A target.
8873         (call_value): Likewise.
8874         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
8875         (sh2a_get_function_vector_number): Likewise.
8876         (sh2a_is_function_vector_call): Likewise.
8877         * doc/extend.texi: Document TBR relative addressing of SH2A.
8878         (resbank): Add description for SH2A.
8879
8880 2008-03-24  Richard Guenther  <rguenther@suse.de>
8881
8882         PR c/22371
8883         * gimplify.c (gimplify_modify_expr): For frontend type-correct
8884         pointer assignments change conversions according to middle-end rules.
8885         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
8886         * configure.ac: Include type checking in yes.
8887         * configure: Regenerate.
8888
8889 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8890
8891         * diagnostic.c (diagnostic_count_diagnostic): Delete.
8892         (diagnostic_report_diagnostic): Update. Handle ICEs here.
8893         
8894 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
8895
8896         * gthr-vxworks.h (UNUSED): Define.
8897
8898 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8899
8900         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
8901
8902 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
8903
8904         * doc/extend.texi (Function Attributes): Add missing comma in the
8905         example of the "alloc_size" attribute.
8906         
8907 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
8908
8909         Revert:
8910         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
8911
8912         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8913         32bit host.
8914
8915         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
8916
8917         PR target/35496
8918         * stor-layout.c (update_alignment_for_field): Set minimum alignment
8919         of the underlying type of a MS bitfield layout to the natural
8920         alignment of the type.
8921
8922         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
8923
8924         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
8925         to their natural alignment to avoid store forwarding stalls.
8926
8927 2008-03-22  Richard Guenther  <rguenther@suse.de>
8928
8929         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
8930         For PHI nodes verify the address is invariant.
8931         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
8932         (get_symbol_constant_value): Use is_gimple_min_invariant.
8933         (maybe_fold_stmt_indirect): Likewise.
8934
8935 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
8936
8937         PR rtl-optimization/33927
8938         * Makefile.in (dse.o): Depend on $(TM_P_H).
8939         * expr.h (extract_low_bits): Declare.
8940         * expmed.c (extract_low_bits): New function.
8941         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
8942         * dse.c: Include tm_p.h.
8943         (find_shift_sequence): Remove the read_reg argument and return the
8944         read value.  Emit the instructions instead of returning them.
8945         Iterate on new_mode rather than calculating it each time.
8946         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
8947         source to NEW_MODE and extract_low_bits to convert the shifted
8948         value to READ_MODE.
8949         (replace_read): Allow the load and store to have different mode
8950         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
8951         or extraction instructions before trying the replacement.  Update
8952         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
8953
8954 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
8955
8956         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
8957         to their natural alignment to avoid store forwarding stalls.
8958
8959 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8960
8961         PR target/27946
8962         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
8963         encouraging but not allowing gprs for input;
8964         change the input constraint to !f#r.
8965         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
8966         gprs for output;
8967         change the output constraint to !f#r.
8968
8969 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
8970
8971         PR target/13958
8972         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
8973         corresponding post-reload splitters.
8974         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
8975         when x87 FP math is selected.
8976         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
8977         New function prototype.
8978         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
8979         unreachable function to ease macroization of insn patterns.
8980
8981 2008-03-21  Martin Jambor  <mjambor@suse.cz>
8982
8983         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
8984         reference dumps if ddr is NULL or dependence is unknown.
8985
8986 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8987
8988         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
8989         unsigned extension into account.
8990         (ATOMIC_COMPARE_AND_SWAP): Likewise.
8991         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
8992         Do computations on a scratch register.
8993
8994 2008-03-21  Richard Guenther  <rguenther@suse.de>
8995
8996         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8997         Use is_gimple_min_invariant instead of TREE_INVARIANT.
8998         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8999         * tree-ssa-dom.c (record_equality): Likewise.
9000         * tree-inline.c (copy_body_r): Likewise.
9001         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
9002         TREE_INVARIANT.
9003
9004 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9005
9006         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
9007         as 'delete_unused' argument.
9008
9009 2008-03-20  Richard Guenther  <rguenther@suse.de>
9010
9011         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
9012         special casing of constant qualifiers.
9013         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
9014         care about them in general.
9015         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
9016         regardless of their type.
9017         (fold_stmt_r): Forcefully fold *& if we end up with that.
9018
9019 2008-03-20  Paul Brook  <paul@codesourcery.com>
9020
9021         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
9022         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
9023         linker flags.
9024         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
9025         definition.
9026         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
9027         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
9028
9029 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
9030
9031         * common.opt (Wmudflap): New option.
9032         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
9033         (mx_register_decls): Likewise.
9034         (mudflap_finish_file): Likewise.
9035         * doc/invoke.texi: Document -Wno-mudflap.
9036
9037 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
9038
9039         * c-format.c (replace_format_name_to_system_name): New.
9040         (cmp_attribs): New.
9041         (convert_format_name_to_system_name): New.
9042         (decode_format_attr): Add use of convert_format_name_to_system_name.
9043         (format_types_orig): Add gnu_ prefix to names.
9044         (check_format_info_main): Special treating of \0 escaped names for
9045         supporting multi-character format specifiers as I32, I64.
9046         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
9047         (gnu_target_overrides_format_attributes): New.
9048         * c-format.h: Add structure target_ovr_attr to hold
9049         system specific formatter names.
9050         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
9051         msformat-c.o file to c_target_objs and cxx_target_objs.
9052         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
9053         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
9054         (TARGET_N_FORMAT_TYPES): New.
9055         * config/i386/msformat-c.c: New.
9056         * config/i386/t-cygming: Add build rule for msformat-c.o.
9057         * doc/extend.texi: Add new format names gnu_* and ms_* and
9058         further details.
9059         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
9060
9061 2008-03-20  Ira Rosen  <irar@il.ibm.com>
9062
9063         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
9064         optimizations turned on under -O3.
9065         (ftree-vectorize): Add that the flag is turned on with -O3.
9066
9067 2008-03-20  Ben Elliston  <bje@au.ibm.com>
9068
9069         * regmove.c (try_auto_increment): Fix spelling error in comment.
9070         * final.c (final_scan_insn): Likewise.
9071
9072 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
9073
9074         PR target/14552
9075         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
9076         allocator preferences for "y" and "r" class registers.
9077         ("*mov<mode>_internal"): Ditto.
9078         ("*movv2sf_internal_rex64"): Ditto.
9079         ("*movv2sf_internal"): Ditto.
9080
9081 2008-03-19  Michael Matz  <matz@suse.de>
9082
9083         PR middle-end/35616
9084         * calls.c (expand_call): Check overlap of arguments with call
9085         address for sibcalls.
9086
9087 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
9088
9089         PR target/35496
9090         * stor-layout.c (update_alignment_for_field): Set minimum alignment
9091         of the underlying type of a MS bitfield layout to the natural
9092         alignment of the type.
9093
9094 2008-03-19  Jan Hubicka  <jh@suse.cz>
9095
9096         PR other/35094
9097         * toplev.c (decode_d_option): Handle all CPP flags.
9098         * tree-vrp.c: Update tree_pass descriptors.
9099         * regrename.c: Update tree_pass descriptors.
9100         * fwprop.c: Update tree_pass descriptors.
9101         * doc/invoke.texi: Remove documentation of dropped -d? flags.
9102         * tree-into-ssa.c: Update tree_pass descriptors.
9103         * tree-dump.c: Update tree_pass descriptors.
9104         * tree-complex.c: Update tree_pass descriptors.
9105         * tree-dump.h: Update tree_pass descriptors.
9106         * see.c: Update tree_pass descriptors.
9107         * cgraphbuild.c: Update tree_pass descriptors.
9108         * tracer.c: Update tree_pass descriptors.
9109         * tree-loop-distribution.c: Update tree_pass descriptors.
9110         * cgraph.c: Update tree_pass descriptors.
9111         * postreload-gcse.c: Update tree_pass descriptors.
9112         * postreload.c: Update tree_pass descriptors.
9113         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
9114         * tree-tailcall.c: Update tree_pass descriptors.
9115         * tree-pass.h (tree_opt_pass): Rename to ...
9116         (opt_pass) ... this one; add "type" field and remove letter field.
9117         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
9118         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
9119         all_lowering_passes): Update declaration.
9120         * ipa-cp.c: Update tree_pass descriptors.
9121         * final.c: Update tree_pass descriptors.
9122         * omp-low.c: Update tree_pass descriptors.
9123         * tree-ssa-dse.c: Update tree_pass descriptors.
9124         * ipa-reference.c: Update tree_pass descriptors.
9125         * tree-ssa-uncprop.c: Update tree_pass descriptors.
9126         * auto-inc-dec.c: Update tree_pass descriptors.
9127         * reorg.c: Update tree_pass descriptors.
9128         * cgraphunit.c: Update tree_pass descriptors.
9129         * tree-ssa-copyrename.c: Update tree_pass descriptors.
9130         * tree-ssa-ccp.c: Update tree_pass descriptors.
9131         * df-core.c: Update tree_pass descriptors.
9132         * mode-switching.c: Update tree_pass descriptors.
9133         * tree-nomudflap.c: Update tree_pass descriptors.
9134         * modulo-sched.c: Update tree_pass descriptors.
9135         * ipa-pure-const.c: Update tree_pass descriptors.
9136         * cse.c: Update tree_pass descriptors.
9137         * web.c: Update tree_pass descriptors.
9138         * tree-stdarg.c: Update tree_pass descriptors.
9139         * tree-ssa-math-opts.c: Update tree_pass descriptors.
9140         * tree-ssa-dom.c: Update tree_pass descriptors.
9141         * tree-nrv.c: Update tree_pass descriptors.
9142         * tree-ssa-alias.c: Update tree_pass descriptors.
9143         * loop-init.c: Update tree_pass descriptors.
9144         * gimple-low.c: Update tree_pass descriptors.
9145         * ipa-inline.c: Update tree_pass descriptors.
9146         * tree-ssa-sink.c: Update tree_pass descriptors.
9147         * global.c: Update tree_pass descriptors.
9148         * ifcvt.c: Update tree_pass descriptors.
9149         * jump.c: Update tree_pass descriptors.
9150         * predict.c: Update tree_pass descriptors.
9151         * tree-ssa-loop.c: Update tree_pass descriptors.
9152         * recog.c: Update tree_pass descriptors.
9153         * dse.c: Update tree_pass descriptors.
9154         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
9155         * tree-eh.c: Update tree_pass descriptors.
9156         * regmove.c: Update tree_pass descriptors.
9157         * local-alloc.c
9158         * function.c: Update tree_pass descriptors.
9159         * tree-vectorizer.c: Update tree_pass descriptors.
9160         * gcse.c: Update tree_pass descriptors.
9161         * ipa-type-escape.c: Update tree_pass descriptors.
9162         * tree-if-conv.c: Update tree_pass descriptors.
9163         * init-regs.c: Update tree_pass descriptors.
9164         * ipa.c: Update tree_pass descriptors.
9165         * tree-ssa-phiopt.c: Update tree_pass descriptors.
9166         * rtl-factoring.c: Update tree_pass descriptors.
9167         * lower-subreg.c: Update tree_pass descriptors.
9168         * bt-load.c: Update tree_pass descriptors.
9169         * tree-dfa.c: Update tree_pass descriptors.
9170         * except.c: Update tree_pass descriptors.
9171         * emit-rtl.c: Update tree_pass descriptors.
9172         * cfgexpand.c: Update tree_pass descriptors.
9173         * tree-cfgcleanup.c: Update tree_pass descriptors.
9174         * cfgcleanup.c: Update tree_pass descriptors.
9175         * tree-ssa-pre.c: Update tree_pass descriptors.
9176         * tree-sra.c: Update tree_pass descriptors.
9177         * tree-mudflap.c: Update tree_pass descriptors.
9178         * tree-ssa-copy.c: Update tree_pass descriptors.
9179         * cfglayout.c: Update tree_pass descriptors.
9180         * tree-ssa-forwprop.c: Update tree_pass descriptors.
9181         * tree-ssa-dce.c: Update tree_pass descriptors.
9182         * tree-ssa.c: Update tree_pass descriptors.
9183         * regclass.c: Update tree_pass descriptors.
9184         * integrate.c: Update tree_pass descriptors.
9185         * tree-optimize.c: Update tree_pass descriptors.
9186         * tree-ssa-phiprop.c: Update tree_pass descriptors.
9187         * tree-object-size.c: Update tree_pass descriptors.
9188         * combine.c: Update tree_pass descriptors.
9189         * tree-outof-ssa.c: Update tree_pass descriptors.
9190         * bb-reorder.c: Update tree_pass descriptors.
9191         * stack-ptr-mod.c: Update tree_pass descriptors.
9192         * var-tracking.c: Update tree_pass descriptors.
9193         * tree-profile.c: Update tree_pass descriptors.
9194         * tree-vect-generic.c: Update tree_pass descriptors.
9195         * reg-stack.c: Update tree_pass descriptors.
9196         * sched-rgn.c: Update tree_pass descriptors.
9197         * tree-ssa-structalias.c: Update tree_pass descriptors.
9198         * tree-cfg.c: Update tree_pass descriptors.
9199         * passes.c (current_pass): Update declaration.
9200         (finish_optimization_passes): Update.
9201         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
9202         (register_one_dump_file, register_dump_files_1, next_pass_1):
9203         Update arguments.
9204         (init_optimization_passes): Update handling of new types.
9205         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
9206         * ipa-struct-reorg.c: Update tree_pass descriptors.
9207         * tree-ssa-reassoc.c: Update tree_pass descriptors.
9208         * combine-stack-adj.c: Update tree_pass descriptors.
9209         * cfgrtl.c: Update tree_pass descriptors.
9210         * dce.c: Update tree_pass descriptors.
9211         * tree-ssanames.c: Update tree_pass descriptors.
9212
9213 2008-03-19  Richard Guenther  <rguenther@suse.de>
9214
9215         PR middle-end/35609
9216         * tree-ssa.c (walk_data): New structure.
9217         (warn_uninitialized_var): If not always_executed warn with "maybe"
9218         instead of "is".
9219         (execute_early_warn_uninitialized): Compute post-dominators.
9220         Initialize always_executed before processing each basic block.
9221
9222 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
9223
9224         PR target/35504
9225         * config/i386/i386.c (x86_this_parameter): Calculate correct location
9226         of "this" pointer when "regparm = N" or "fastcall" is in effect.
9227
9228 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9229
9230         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
9231
9232 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
9233
9234         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
9235         is true.
9236         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
9237         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
9238         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
9239         target after ignore has been set, and move there also the commputation
9240         of subtarget and original_target.
9241         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
9242         (LANG_HOOKS_INITIALIZER): Remove it.
9243         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
9244
9245 2008-03-18  Richard Guenther  <rguenther@suse.de>
9246
9247         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
9248         found an expression with constants, note that in the VN for the lhs.
9249         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
9250         fold them to constants if possible.  Run cleanup_cfg if done so.
9251         (execute_pre): Return todo.
9252         (do_pre): Likewise.
9253         (execute_fre): Likewise.
9254         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
9255         of constants.
9256         (get_prop_source_stmt): Look through pointer conversions.
9257
9258 2008-03-18  Jan Hubicka  <jh@suse.cz>
9259
9260         * tree-pretty-print.c: Include predict.h.
9261         (dump_generic_node): Dump predictor.
9262         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
9263         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
9264         * gimple-low.c (lower_stmt): Likewise.
9265         * expr.c (expand_expr_real): Likewise.
9266         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
9267         them.
9268         (build_predict_expr, build_predict_expr): New.
9269         * predict.h (predictor_name, build_predict_expr): Update.
9270         * c-typeck.c (c_finish_bc_stmt): Add prediction.
9271         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
9272         * predict.def (PRED_CONTINUE): Update hitrate.
9273         * tree.def (PREDICT_EXPR): Define.
9274         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
9275         do not handle BIND_EXPR.
9276         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
9277         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
9278         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
9279         operands.
9280
9281 2008-03-18  Michael Matz  <matz@suse.de>
9282
9283         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
9284
9285 2008-03-18  Richard Guenther  <rguenther@suse.de>
9286
9287         * tree-gimple.h (is_gimple_invariant_address): Declare.
9288         (is_gimple_constant): Likewise.
9289         * tree-gimple.c (is_gimple_constant): New function.
9290         (is_gimple_invariant_address): Likewise.
9291         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
9292         and is_gimple_invariant_address.
9293         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
9294         previous change.
9295         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
9296         an addressable base.
9297
9298 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
9299
9300         PR middle-end/35611
9301         * gimplify.c (gimplify_expr): Gimplify second operand of
9302         OMP_ATOMIC_LOAD.
9303
9304 2008-03-17  Richard Guenther  <rguenther@suse.de>
9305
9306         PR tree-optimization/19637
9307         * fold-const.c (fold_unary): Remove restrictions of removing
9308         intermediate pointer-conversions (P2)(P1)P0.
9309         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
9310         conversion to void pointer.
9311         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
9312
9313 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
9314
9315         PR debug/31510
9316         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
9317         emulated thread local variables.
9318
9319 2008-03-16  Richard Guenther  <rguenther@suse.de>
9320
9321         PR middle-end/35607
9322         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9323         expand TREE_INVARIANT operations that are not gimple invariant.
9324
9325 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
9326
9327         * doc/extend.texi (Alignment): Say that the ABI controls
9328         the __alignof__ for non-strict-alignment targets rather
9329         than being a recommendation.
9330
9331 2008-03-15  Paul Brook  <paul@codesourcery.com>
9332
9333         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
9334         annotations.
9335         (arm_output_fn_unwind): Mark functions that can not be unwound.
9336
9337 2008-03-15  Paul Brook  <paul@codesourcery.com>
9338
9339         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
9340         extension instructions.
9341
9342 2008-03-15  Richard Guenther  <rguenther@suse.de>
9343
9344         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
9345         and fold constant aggregate refs.
9346         (fold_const_aggregate_ref): Handle string constants
9347         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
9348         (evaluate_stmt): Simplify now that ccp_fold folds constant
9349         aggregate refs.
9350
9351 2008-03-15  Paul Brook  <paul@codesourcery.com>
9352
9353         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
9354         (extzv): Use gen_extzv_t2.
9355         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
9356
9357 2008-03-15  Richard Guenther  <rguenther@suse.de>
9358
9359         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
9360         (fold_const_aggregate_ref): Likewise.
9361         (get_value): Return NULL if we don't have any values.
9362         (ccp_finalize): Set const_val to NULL after freeing it.
9363         * tree-flow.h (get_symbol_constant_value): Declare.
9364         (fold_const_aggregate_ref): Likewise.
9365         * tree-ssa-sccvn.c (try_to_simplify): Use them.
9366
9367 2008-03-15  Richard Guenther  <rguenther@suse.de>
9368
9369         PR middle-end/35593
9370         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
9371         to not produce negative array indices if not allowed.  Add
9372         parameter to indicate that.
9373         (maybe_fold_offset_to_component_ref): Allow negative array
9374         indices only for the first member of a structure.
9375         (maybe_fold_offset_to_reference): Allow negative array indices.
9376         (maybe_fold_stmt_addition): Likewise.
9377
9378 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
9379             Anatoly Sokolov <aesok@post.ru>
9380
9381         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
9382         (avr_arch): Add ARCH_AVR6.
9383         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
9384         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
9385         instead of fixed value 2.
9386         (print_operand_address): Use gs() asm specifier instead of pm().
9387         (avr_assemble_integer): (Ditto.).
9388         (avr_output_addr_vec_elt): (Ditto.).
9389         (print_operand): Handle "!" code.
9390         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
9391         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
9392         (AVR_HAVE_EIJMP_EICALL): Define.
9393         (AVR_3_BYTE_PC): Redefine.
9394         (AVR_2_BYTE_PC): (Ditto.).
9395         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
9396         (LINK_SPEC): Add atmega2560 and atmega2561.
9397         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
9398         (crtm2561.o).
9399         * config/avr/avr.md (call_insn): Use eicall instead of icall 
9400         for 3 byte PC devices.
9401         (call_value_insn): (Ditto.).
9402         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
9403         (indirect_jump): Use only for for 2 byte PC devices.
9404         (*tablejump): (Ditto.).
9405         (*indirect_jump_avr6): Add insn.
9406         (*tablejump_rjmp): Don't use for 3 byte PC devices.
9407         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
9408         instead of ijmp for 3 byte PC devices.
9409         (__tablejump2__): (Ditto.).
9410         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
9411         (MULITLIB_DIRNAMES): (Ditto.). 
9412         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
9413
9414 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
9415
9416         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
9417         "sse2_umulsidi3".  Use V1DI mode for operand 0.
9418         ("mmx_psadbw"): Use V1DI mode for operand 0.
9419         * config/i386/i386-modes.def (V1SI): New vector mode.
9420         * config/i386/i386.c (struct builtin_description)
9421         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
9422         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
9423         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
9424         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
9425         v1di_ftype_v8qi_v8qi type.
9426         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
9427
9428         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
9429         __builtin_ia32_pmuludq]: Fix the mode of return value.
9430
9431 2008-03-15  Richard Guenther  <rguenther@suse.de>
9432
9433         PR middle-end/35595
9434         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
9435         being a PHI_NODE.
9436
9437 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
9438         
9439         * doc/invoke.texi (Option Summary, Xtensa Options): Document
9440         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
9441         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
9442         unless TARGET_SERIALIZE_VOLATILE is enabled.
9443         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
9444         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
9445         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
9446
9447 2008-03-14  Richard Guenther  <rguenther@suse.de>
9448
9449         PR tree-optimization/34172
9450         * tree-flow.h (refs_may_alias_p): Declare.
9451         (get_single_def_stmt): Likewise.
9452         (get_single_def_stmt_from_phi): Likewise.
9453         (get_single_def_stmt_with_phi): Likewise.
9454         * tree-dfa.c (refs_may_alias_p): New function.
9455         (get_single_def_stmt): Likewise.
9456         (get_single_def_stmt_from_phi): Likewise.
9457         (get_single_def_stmt_with_phi): Likewise.
9458         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
9459         (vn_reference_lookup_1): New helper function.
9460         (vn_reference_lookup): Walk the virtual use-def chain to
9461         continue searching for a match if the def does not alias the
9462         reference we are looking for.
9463
9464 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
9465
9466         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
9467         archive and Perzl.  Update The Written Word listing.
9468
9469 2008-03-14  Richard Guenther  <rguenther@suse.de>
9470
9471         PR tree-optimization/34043
9472         PR tree-optimization/33989
9473         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
9474         when doing FRE.
9475         (bitmap_find_leader): Use extra argument to verify dominance
9476         relationship inside a basic-block.
9477         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
9478         (find_leader_in_sets): Adjust.
9479         (create_component_ref_by_pieces): Take extra argument for
9480         dominance check, handle lookup failures.
9481         (find_or_generate_expression): Likewise.
9482         (create_expression_by_pieces): Likewise.
9483         (insert_into_preds_of_block): Adjust.
9484         (create_value_expr_from): If asked for, verify all operands
9485         are in the blocks AVAIL_OUT set.
9486         (make_values_for_stmt): Check for SSA_NAMEs that are life
9487         over an abnormal edge.
9488         (compute_avail): Remove such check.
9489         (do_SCCVN_insertion): New function.
9490         (eliminate): If we do not find a leader suitable for replacement
9491         insert a replacement expression from SCCVN if available.
9492         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
9493         (struct vn_ssa_aux): Add needs_insertion flag.
9494         * tree-ssa-sccvn.c (may_insert): New global flag.
9495         (copy_reference_ops_from_ref): Value-number union member access
9496         based on its size, not type and member if insertion is allowed.
9497         (visit_reference_op_load): For a weak match from union type
9498         punning lookup a view-converted value and insert a SSA_NAME
9499         for that value if that is not found.
9500         (visit_use): Make dumps shorter.  Do not disallow value numbering
9501         SSA_NAMEs that are life over an abnormal edge to constants.
9502         (free_scc_vn): Release inserted SSA_NAMEs.
9503         (run_scc_vn): New flag to specify whether insertion is allowed.
9504         Process SSA_NAMEs in forward order.
9505         * tree-ssa-loop-im.c (for_each_index): Handle invariant
9506         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
9507         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
9508         pointer type to/from integral types that do not change the
9509         precision to regular conversions.
9510
9511 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
9512
9513         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
9514         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
9515         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
9516         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
9517         input arguments and the mode of return value.  Built-in functions
9518         that operate on whole 64-bit MMX register now use V1DI mode.
9519
9520 2008-03-13  Alon Dayan  <alond@il.ibm.com>
9521             Olga Golovanevsky  <olga@il.ibm.com>
9522
9523         PR tree-optimization/35041
9524         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
9525         to locate the right position in a statement.
9526
9527 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
9528
9529         PR target/34000
9530         PR target/35553
9531         * config/i386/xmmintrin.h:  Change all static inline functions to
9532         extern inline and add __gnu_inline__ attribute.
9533         * config/i386/bmintrin.h: Ditto.
9534         * config/i386/smmintrin.h: Ditto.
9535         * config/i386/tmmintrin.h: Ditto.
9536         * config/i386/mmintrin-common.h: Ditto.
9537         * config/i386/ammintrin.h: Ditto.
9538         * config/i386/emmintrin.h: Ditto.
9539         * config/i386/pmmintrin.h: Ditto.
9540         * config/i386/mmintrin.h: Ditto.
9541         * config/i386/mm3dnow.h: Ditto.
9542
9543 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
9544
9545         PR middle-end/35185
9546         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
9547         (lower_omp_2): New function.
9548         (lower_omp_1, lower_omp): Rewritten.
9549
9550 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
9551
9552         PR 35054
9553         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
9554         with the phrase "Microsoft Windows compilers".
9555         (Push/Pop Macro Pragmas): New subsection. Document
9556         #pragma push_macro and pragma pop_macro.
9557
9558 2008-03-12  Paul Brook  <paul@codesourcery.com>
9559
9560         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
9561
9562 2008-03-12  Paul Brook  <paul@codesourcery.com>
9563
9564         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
9565         (thumb2_alusi3_short): Exclude PLUS and MINUS.
9566         (thumb2_addsi_shortim): Rename ...
9567         (thumb2_addsi_short): ... to this.  Allow register operands.
9568         (thumb2_subsi_short): New pattern.
9569         (thumb2_one_cmplsi2_short,
9570         thumb2_negsi2_short): New patterns and peepholes.
9571
9572 2008-03-12  Paul Brook  <paul@codesourcery.com>
9573
9574         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
9575
9576 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
9577
9578         * config/i386/i386.md (int_cond): New code iterator.
9579         (fp_cond): Ditto.
9580         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
9581         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
9582         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
9583         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
9584         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
9585         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
9586         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
9587         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
9588
9589 2008-03-12  Paul Brook  <paul@codesourcery.com>
9590
9591         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
9592         instead of {arm,thumb}_compute_save_reg_mask.
9593         (output_return_instruction): Ditto.
9594         (thumb_unexpanded_epilogue): Ditto.
9595         (thumb1_expand_prologue): Ditto.
9596         (thumb1_output_function_prologue): Ditto.
9597         (arm_set_return_address): Ditto.
9598         (thumb_set_return_address): Ditto.
9599         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
9600         regs to achieve stack alignment.
9601         (thumb1_compute_save_reg_mask): Fix compiler warning.
9602         (arm_output_epilogue): Use offsets->saved_regs_mask.
9603         Adjust stack pointer by poping call clobered registers.
9604         (arm_expand_prologue): Use offsets->saved_regs_mask.
9605         Adjust stack pointer by pushing extra registers.
9606         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
9607
9608 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
9609
9610         PR tree-opt/35422
9611         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
9612         conversion to the operands of a multiplication.
9613
9614 2008-03-12  Richard Guenther  <rguenther@suse.de>
9615
9616         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
9617         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
9618         * timevar.def (TV_TREE_PHIPROP): Add.
9619         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
9620         pass description.  Use TV_TREE_PHIPROP.
9621         * tree-ssa-forwprop.c: Remove phiprop code.
9622
9623 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
9624
9625         PR middle-end/35549
9626         * omp-low.c (maybe_lookup_decl): Constify first argument.
9627         (use_pointer_for_field): Change last argument from bool to
9628         omp_context *.  Disallow shared copy-in/out in nested
9629         parallel if decl is shared in outer parallel too.
9630         (build_outer_var_ref, scan_sharing_clauses,
9631         lower_rec_input_clauses, lower_copyprivate_clauses,
9632         lower_send_clauses, lower_send_shared_vars): Adjust callers.
9633
9634 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
9635             Ira Rosen  <irar@il.ibm.com>
9636
9637         * tree-vectorizer.c (free_stmt_vec_info): New function.
9638         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
9639         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
9640         * tree-vectorizer.h (free_stmt_vec_info): Declare.
9641         * tree-vect-transform.c (vectorizable_conversion): Free
9642         vec_oprnds0 if it was allocated.
9643         (vect_permute_store_chain): Remove unused VECs.
9644         (vectorizable_store): Free VECs that are allocated in the..
9645         function.
9646         (vect_transform_strided_load, vectorizable_load): Likewise.
9647         (vect_remove_stores): Simplify the code.
9648         (vect_transform_loop): Move code to vect_remove_stores().
9649         Call vect_remove_stores() and free_stmt_vec_info().
9650
9651 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9652
9653         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
9654         TARGET_HPUX.  Revise comment.
9655         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
9656         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
9657         Use sr4 variant of `be' instruction when not generating PIC code.
9658         (attr_length_call): Adjust for above change.
9659
9660 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9661
9662         * ipa-reference.c (static_execute): Remove module_statics_const and
9663         associated setting code.
9664
9665 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
9666
9667         PR target/35540
9668         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
9669         predicate for operand 1.
9670         (paritysi2_cmp): Use register_operand predicate for operand 2.
9671         Use earlyclobber modifier for operand 1.  Remove support for
9672         memory operands.
9673         (paritydi2_cmp): Use register_operand predicate for operand 3.
9674         Use earlyclobber modifier for operand 1.  Remove support for
9675         memory operands.
9676
9677 2008-03-11  Paul Brook  <paul@codesourcery.com>
9678             Vladimir Prus  <vladimir@codesourcery.com>
9679
9680         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
9681         (arm_compute_save_reg0_reg12_mask): Always
9682         check if register 11 must be saved.  Always safe hard frame pointer
9683         when frame_pointer_needeed.
9684         (arm_compute_save_reg_mask): Save IP and PC
9685         only with apcs frames.
9686         (arm_output_epilogue): Adjust Thumb2 codepath to
9687         be also invoked and work for ARM non-apcs frames.
9688         (arm_expand_prologue): Don't bother saving IP
9689         for non-apcs frame, since it's not clobbered by
9690         prologue code.  Implement non-apcs frame
9691         layout.
9692
9693 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
9694
9695         PR rtl-optimization/35281
9696         * expr.c (convert_move): Use a new pseudo for the intermediate
9697         from_mode->word_mode result.
9698
9699 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
9700
9701         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
9702         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
9703         * toplev.c (compile_file): Don't call it.
9704
9705 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
9706
9707         PR middle-end/35526
9708         * expr.c (store_expr): Call emit_block_move if the mode
9709         of "temp" RTX is BLKmode.
9710
9711 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9712             Richard Guenther  <rguenther@suse.de>
9713
9714         PR tree-optimization/31358
9715         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
9716         the step with a NULL_TREE.
9717         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
9718         to sizetype if type is a pointer type.
9719         (add_candidate_1): Don't convert the base and step to
9720         the generic type if the orginal type is a pointer type.
9721         (add_iv_value_candidates): Use sizetype for the step
9722         if type is a pointer type.
9723         (cand_value_at): Likewise.
9724         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
9725         for pointer types.
9726         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
9727         Don't convert the tem affine to the type.
9728         (add_elt_to_tree): Use sizetype for the step if a pointer.
9729         Use POINTER_PLUS_EXPR for pointers.
9730         (aff_combination_to_tree): Use sizetype for the step if a
9731         pointer.
9732
9733 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
9734
9735         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
9736         Remove commutativity hint.
9737
9738 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
9739
9740         PR c/35438
9741         PR c/35439
9742         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
9743         errorneous type.  Check that v is a VAR_DECL.
9744
9745         PR middle-end/35099
9746         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
9747
9748 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
9749
9750         PR tree-optimization/35494
9751         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
9752         may be overriden at link and run time.
9753
9754 2008-03-10  Richard Guenther  <rguenther@suse.de>
9755
9756         PR tree-optimization/34677
9757         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
9758         (poolify_tree): Likewise.
9759         (modify_expr_template): Likewise.
9760         (poolify_modify_stmt): Likewise.
9761         (insert_fake_stores): Handle all component-ref style stores
9762         in addition to INDIRECT_REF.  Also handle complex types.
9763         Do not poolify the inserted load.
9764         (realify_fake_stores): Do not rebuild the tree but only
9765         make it a SSA_NAME copy.
9766         (init_pre): Remove initialzation of modify_expr_template.
9767         Do not allocate modify_expr_node_pool.
9768         (fini_pre): Do not free modify_expr_node_pool.
9769
9770 2008-03-10  Paul Brook  <paul@codesourcery.com>
9771
9772         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
9773         to avoid conflicts.
9774
9775 2008-03-10  Paul Brook  <paul@codesourcery.com>
9776             Mark Shinwell  <shinwell@codesourcery.com>
9777
9778         * config/arm/cortex-r4.md: New.
9779         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
9780         insn attributes.
9781         * config/arm/arm.md: Include cortex-r4.md.
9782         (insn): Add smmls, sdiv and udiv values.
9783         (generic_sched): Don't use generic scheduling for Cortex-R4.
9784         (arm_issue_rate): New function.
9785         (TARGET_SCHED_ISSUE_RATE): Define.
9786
9787 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
9788
9789         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
9790
9791 2008-03-10  Richard Guenther  <rguenther@suse.de>
9792
9793         * tree-ssa-pre.c (get_sccvn_value): Simplify.
9794         (compute_avail): Do not add stmt uses to AVAIL_OUT.
9795
9796 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
9797
9798         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
9799         Set default to true.
9800
9801 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9802
9803         * c.opt (Wsynth): Deprecate.
9804         * doc/invoke.texi (Option Summary, Warning Options): Document
9805         -Wno-format-contains-nul.
9806
9807 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
9808
9809         PR target/35496
9810         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
9811         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
9812
9813 2008-03-09  Ira Rosen  <irar@il.ibm.com>
9814
9815         * config/rs6000/rs6000.c (builtin_description): Rename vector
9816         left shift operations.
9817         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
9818         (altivec_vsl<VI_char>): Rename to ...
9819         (ashl<mode>3): ... new name.
9820         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
9821         gen_ashlv4si3.
9822         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
9823
9824 2008-03-08  Richard Guenther  <rguenther@suse.de>
9825
9826         * coverage.h (tree_coverage_counter_addr): Declare.
9827         * coverage.c (tree_coverage_counter_addr): New function.
9828         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
9829         before using again.
9830         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
9831         (tree_gen_one_value_profiler): Likewise.
9832         (tree_gen_ic_profiler): Likewise.
9833         (tree_gen_average_profiler): Likewise.
9834         (tree_gen_ior_profiler): Likewise.
9835
9836 2008-03-08  Richard Guenther  <rguenther@suse.de>
9837
9838         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
9839         (vn_binary_op_insert): Likewise.
9840         (vn_unary_op_lookup): Likewise.
9841         (vn_unary_op_insert): Likewise.
9842         (vn_nary_op_lookup): Declare.
9843         (vn_nary_op_insert): Likewise.
9844         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
9845         and binary hashes, use a single obstack for unary_op_pool
9846         and binary_op_pool.
9847         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
9848         a single struct vn_nary_op_s.  Store tree code length and
9849         a variable number of operands.
9850         (struct vn_reference_op_struct): Remove unused op2.
9851         (vn_reference_op_eq): Do not compare op2.
9852         (vn_reference_op_compute_hash): Do not compute hash of op2.
9853         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
9854         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
9855         with vn_nary_op_compute_hash.
9856         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
9857         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
9858         vn_nary_op_lookup.
9859         (vn_unary_op_insert, vn_binary_op_insert): Replace with
9860         vn_nary_op_insert.
9861         (visit_unary_op): Call nary functions.
9862         (visit_binary_op): Likewise.
9863         (process_scc): Adjust for struct vn_tables_s changes.
9864         (allocate_vn_table): Likewise.
9865         (free_vn_table): Likewise.
9866         * tree-vn.c (vn_add): Call nary functions.
9867         (vn_lookup): Likewise.
9868
9869 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
9870
9871         PR target/35498
9872         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
9873         wdst back after sync_compare_and_swapqhi_internal.
9874
9875 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
9876
9877         PR target/22152
9878         * config/i386/i386-modes.def (V1DI): New vector mode.
9879         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
9880         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
9881         (MMXMODE248): Ditto.
9882         (MMXMODE): Add V1DI mode.
9883         (mmxvecsize): Change DI mode to V1DI mode.
9884         ("mov<mode>): Use MMXMODEI8 mode iterator.
9885         ("*mov<mode>_internal_rex64"): Ditto.
9886         ("*mov<mode>_internal"): Ditto.
9887         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
9888         ("mmx_sub<mode>3"): Ditto.
9889         ("mmx_adddi3"): Remove insn pattern.
9890         ("mmx_subdi3"): Ditto.
9891         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
9892         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
9893         ("mmx_ashl<mode>3"): Ditto.
9894         ("mmx_lshrdi3"): Remove insn pattern.
9895         ("mmx_ashldi3"): Ditto.
9896         * config/i386/i386.c (classify_argument): Handle V1DImode.
9897         (function_arg_advance_32): Ditto.
9898         (function_arg_32): Ditto.
9899         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
9900         mmx_addv1di3 insn pattern.
9901         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
9902         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
9903         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
9904         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
9905         Remove definitions of built-in functions.
9906         (V1DI_type_node): New node.
9907         (v1di_ftype_v1di_int): Ditto.
9908         (v1di_ftype_v1di_v1di): Ditto.
9909         (v2si_ftype_v2si_si): Ditto.
9910         (v4hi_ftype_v4hi_di): Remove node.
9911         (v2si_ftype_v2si_di): Ditto.
9912         (ix86_init_mmx_sse_builtins): Handle V1DImode.
9913         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
9914         Redefine builtins using def_builtin_const with *_ftype_*_int node.
9915         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
9916         Add new builtins using def_builtin_const.
9917         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
9918         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
9919         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
9920         * config/i386/mmintrin.h (__v1di): New typedef.
9921         (_mm_add_si64): Cast arguments to __v1di type.
9922         (_mm_sub_si64): Ditto.
9923         (_mm_sll_pi16): Cast __count to __v4hi type.
9924         (_mm_sll_pi32): Cast __count to __v2si type.
9925         (_mm_sll_si64): Cast arguments to __v1di type.
9926         (_mm_srl_pi16): Cast __count to __v4hi type.
9927         (_mm_srl_pi32): Cast __count to __v2si type.
9928         (_mm_srl_si64): Cast arguments to __v1di type.
9929         (_mm_sra_pi16): Cast __count to __v4hi type.
9930         (_mm_sra_pi32): Cast __count to __v2si type.
9931         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
9932         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
9933         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
9934         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
9935         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
9936         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
9937         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
9938         (_mm_srai_pi32): Use __builtin_ia32_psradi.
9939         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
9940         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
9941         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
9942         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
9943
9944 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
9945
9946         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
9947
9948 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
9949
9950         PR target/35373
9951         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
9952         reg+const addressing for Altivec modes.  Don't generate reg+reg
9953         addressing for TFmode or TDmode quantities.
9954
9955 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
9956
9957         * c-common.c (vector_types_convertible_p): Call langhook
9958         instead of comptypes.
9959
9960 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9961
9962         PR tree-opt/35402
9963         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
9964         integral and scalar float variables which have a
9965         NULL DECL_INITIAL.
9966
9967 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
9968
9969         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
9970         dwarf_register_span hook when emitting unwind information for
9971         register-to-memory saves.
9972         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
9973         (rs6000_frame_related): Remove call to spe_synthesize_frame.
9974
9975 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
9976
9977         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
9978         for the same VAR_DECL.
9979
9980 2008-03-06  Tom Tromey  <tromey@redhat.com>
9981
9982         * treelang: Delete.
9983         * doc/standards.texi (Standards): Don't mention treelang.
9984         * doc/invoke.texi (Overall Options): Don't mention treelang.
9985         * doc/install.texi (Prerequisites): Don't mention bison or
9986         treelang.
9987         (Configuration): Don't mention treelang.
9988         (Building): Likewise.
9989         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
9990
9991 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
9992
9993         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
9994         word-extractions out of a multi-word object.
9995
9996 2008-03-06  Richard Guenther  <rguenther@suse.de>
9997
9998         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
9999         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
10000         result type and precision.
10001         * expr.c (get_inner_reference): Set unsignedp based on the result
10002         type of BIT_FIELD_REF.
10003         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
10004         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
10005         (try_instantiate_multiple_fields): Likewise.  Use the correct type
10006         for BIT_FIELD_REF.
10007         (sra_build_assignment): Likewise.
10008         (sra_build_elt_assignment): Likewise.
10009         (sra_explode_bitfield_assignment): Likewise.
10010         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
10011         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
10012         set BIT_FIELD_REF_UNSIGNED.
10013         (vectorizable_load): Likewise.
10014
10015 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
10016
10017         * cse.c (cse_extended_basic_block): Invalidate artificial defs
10018         at bb start.
10019
10020 2008-03-06  Richard Guenther  <rguenther@suse.de>
10021
10022         * alias.c (struct alias_set_entry): Move has_zero_child field
10023         to pack with alias_set.
10024
10025 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10026
10027         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10028         32bit host.
10029
10030 2008-03-05  Ian Lance Taylor  <iant@google.com>
10031
10032         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
10033
10034 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
10035
10036         * fwprop.c (update_df): Support width and offset parameters of
10037         df_ref_create.
10038         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
10039         global_conflicts): Change DF_REF_EXTRACT to either
10040         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
10041         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10042         * df-scan.c (df_ref_record, df_defs_record,
10043         df_ref_create_structure, df_def_record_1, df_uses_record,
10044         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
10045         df_bb_refs_collect, df_entry_block_defs_collect,
10046         df_exit_block_uses_collect): Support new width and offset fields.
10047         (ref_extract_pool): New storage pool.
10048         (df_free_ref): New function.
10049         (df_reg_chain_unlink, df_free_collection_rec,
10050         df_sort_and_compress_refs): Call df_free_ref.
10051         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
10052         of df_ref_extract.
10053         (df_ref_create_structure): Allocate df_ref_extract if offset and
10054         width fields are used.
10055         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
10056         (df_uses_record): Get offset and width from ZERO_EXTRACT 
10057         and SIGN_EXTRACT.
10058         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
10059         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
10060         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10061         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
10062         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
10063         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10064         (df_ref_extract): New structure.
10065         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
10066         (df_ref_create): Add width and offset parameters.
10067         
10068 2008-03-05  Richard Guenther  <rguenther@suse.de>
10069
10070         * tree-ssa-structalias.c (get_constraint_for_component_ref):
10071         Use ranges_overlap_p.
10072         (offset_overlaps_with_access): Rename
10073         to ranges_overlap_p and move ...
10074         * tree-flow-inline.h (ranges_overlap_p): ... here.
10075
10076         * tree.h (get_inner_reference, handled_component_p): Update
10077         comments.
10078
10079         * tree.h (record_component_aliases, get_alias_set,
10080         alias_sets_conflict_p, alias_sets_must_conflict_p,
10081         objects_must_conflict_p): Move declarations ...
10082         * alias.h (record_component_aliases, get_alias_set,
10083         alias_sets_conflict_p, alias_sets_must_conflict_p,
10084         objects_must_conflict_p): ... here.
10085         Include coretypes.h.
10086         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
10087
10088 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
10089
10090         * cfg.c: Include tree-flow.h.
10091         (remove_edge_raw): Call redirect_edge_var_map_clear.
10092         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
10093         * tree-flow-inline.h (redirect_edge_var_map_def): New.
10094         (redirect_edge_var_map_result): New.
10095         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
10096         PENDING_STMT use with redirect_edge_var_map_*.
10097         * tree-ssa.c (edge_var_maps): New definition.
10098         (redirect_edge_var_map_add): New.
10099         (redirect_edge_var_map_clear): New.
10100         (redirect_edge_var_map_dup): New.
10101         (redirect_edge_var_map_vector): New.
10102         (redirect_edge_var_map_destroy): New.
10103         (ssa_redirect_edge): Replace PENDING_STMT use with
10104         redirect_edge_var_map_*.
10105         (flush_pending_stmts): Same.
10106         (delete_tree_ssa): Destroy edge var map.
10107         * tree-flow.h (struct _edge_var_map): New.
10108         Define edge_var_map vector type.
10109         Declare redirect_edge_var_map_* prototypes.
10110         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
10111         * tree-cfg.c (reinstall_phi_args): Replace
10112         PENDING_STMT use with redirect_edge_var_map_*.
10113
10114 2008-03-05  Richard Guenther  <rguenther@suse.de>
10115
10116         PR tree-optimization/35472
10117         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
10118         whose single use_stmt has a overlapping set of loaded and
10119         stored symbols as that use_stmt might be a noop assignment then.
10120
10121 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
10122
10123         * gthr-rtems.h: Implement __gthread_mutex_destroy.
10124
10125 2008-03-05  Richard Guenther  <rguenther@suse.de>
10126
10127         PR c++/35336
10128         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
10129         should be constants.
10130         * tree-cfg.c (verify_expr): Verify it.
10131         * fold-const.c (fold_truthop): Remove code generating
10132         BIT_FIELD_REFs of structure bases.
10133         (fold_binary): Likewise.
10134         (fold_ternary): Position and size of BIT_FIELD_REFs are
10135         always host integers.
10136         (make_bit_field_ref): Remove.
10137         (optimize_bit_field_compare): Remove.
10138         (all_ones_mask_p): Remove.
10139
10140 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
10141
10142         PR gcc/33009
10143         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
10144         (split_block_and_df_analyze): New. Split basic block and rebuild
10145         dataflow.
10146         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
10147         SPLIT_BLOCK.
10148         (split_pattern_seq): Likewise.
10149         (erase_matching_seqs): Likewise.
10150         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
10151
10152 2008-03-04  Geoff Keating  <geoffk@apple.com>
10153
10154         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
10155         declaration and code.
10156         (tree_invalid_nonnegative_warnv_p): Likewise.
10157
10158 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10159
10160         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
10161         examples.  Truncate option-names then causing overfull hbox.
10162
10163 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10164
10165         PR target/35222
10166         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
10167         on hpux10.
10168         * configure: Rebuilt.
10169
10170 2008-03-04  Rafael Espindola  <espindola@google.com>
10171
10172         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
10173         (tree_unary_nonnegative_warnv_p): New.
10174         (tree_binary_nonnegative_warnv_p): New.
10175         (tree_single_nonnegative_warnv_p): New.
10176         (tree_invalid_nonnegative_warnv_p): New.
10177         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
10178
10179 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10180
10181         PR 28322
10182         * opts.c (handle_option): Postpone 'unknown option' errors only for
10183         warning options.
10184
10185 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10186
10187         PR target/35453
10188         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
10189         (_SIDD_XXX): This.
10190
10191 2008-03-04  Rafael Espindola  <espindola@google.com>
10192
10193         * fold-const.c (tree_unary_nonzero_warnv_p): New.
10194         (tree_binary_nonzero_warnv_p): New.
10195         (tree_single_nonzero_warnv_p): New.
10196         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
10197
10198 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
10199
10200         PR middle-end/35456
10201         * fold-const.c (fold_cond_expr_with_comparison): Prevent
10202         transformations for modes that have signed zeros.
10203         * ifcvt.c (noce_try_abs): Ditto.
10204
10205 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
10206
10207         * config/i386/i386.c (override_options): Force
10208         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
10209
10210 2008-03-04  Jan Hubicka  <jh@suse.cz>
10211
10212         PR c++/35262
10213         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
10214         in last commit.
10215
10216 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
10217
10218         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
10219         label to probe the stack.
10220
10221 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
10222
10223         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
10224         (__gthr_win32_mutex_destroy): Declare.
10225         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
10226         __gthr_win32_mutex_destroy.
10227         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
10228
10229 2008-03-03  Jan Hubicka  <jh@suse.cz>
10230
10231         PR c++/35262
10232         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
10233         aggressive on inlining cold calls.
10234
10235 2008-03-03  Richard Guenther  <rguenther@suse.de>
10236
10237         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
10238         struct copies into the expression table.
10239         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
10240         (try_to_simplify): Likewise.
10241         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
10242         integral and pointer arguments which do not change the
10243         precision to NOP_EXPRs.
10244         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
10245         VIEW_CONVERT_EXPR case.
10246
10247 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
10248
10249         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
10250         defined in a loop at depth 0 is invariant.
10251         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
10252         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
10253         be called at loop depth 0.
10254
10255 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
10256
10257         PR driver/35420
10258         * gcc.c (process_command): Update copyright notice dates.
10259         * gcov.c (print_version): Likewise.
10260         * gcov-dump.c (print_version): Likewise.
10261         * mips-tfile.c (main): Likewise.
10262         * mips-tdump.c (main): Likewise.
10263
10264 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10265
10266         PR 24924
10267         * c-common.c (flag_permissive): Delete.
10268         (constant_expression_warnings): Check flags first.
10269         (constant_expression_error): New.
10270         * c-common.h (flag_permissive): Delete.
10271         (constant_expression_error): Declare.
10272         * flags.h (flag_permissive): Declare. Update description.
10273         * diagnostic.c (pedwarn): Update.
10274         (permerror): New.
10275         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
10276         (permissive_error_kind): New.
10277         * toplev.c (flag_permissive): Define. Update description.
10278         * toplev.h (permissive_error_kind): Declare.
10279         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
10280         (pedwarn_c90): Use pedantic_warning_kind.
10281         * c-opts.c (c_common_post_options): flag_permissive does not affect
10282         flag_pedantic_errors.
10283
10284 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
10285
10286         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
10287         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
10288         __absvsi2, __absvDI2): Use unsigned arithmetic.
10289
10290 2008-03-02  Andi Kleen  <ak@suse.de>
10291             Richard Guenther  <rguenther@suse.de>
10292
10293         * struct-equiv.c: Remove file.
10294         * cfg_cleanup.c (condjump_equiv_p): Remove.
10295         * Makefile.in (OBJS-common): Remove struct-equiv.o.
10296         (struct-equiv.o): Remove rule.
10297         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
10298         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
10299         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
10300
10301 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
10302
10303         * ifcvt.c (noce_process_if_block): Try to handle only the then
10304         block if the else block exists but isn't suitable.
10305
10306 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
10307
10308         PR gcc/35063
10309         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
10310         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
10311         regression from previous patch.
10312
10313 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
10314
10315         PR gcc/35063
10316         * gthr.h: Add __gthread_mutex_destroy as a function that must be
10317         implemented.
10318         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
10319         * gthr-single.h (__gthread_mutex_destroy): Likewise.
10320         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
10321         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
10322         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
10323         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
10324         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
10325         (__gthread_mutex_destroy_function): Rename to
10326         __gthread_mutex_destroy.
10327         * gthr-dce.h (__gthread_mutex_destroy): Call
10328         pthread_mutex_destroy.
10329         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
10330         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
10331         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
10332
10333 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
10334
10335         * df-scan.c (df_ref_chain_change_bb): Simplify.
10336         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
10337         set_block_for_insn if there's any change.
10338         * df.h ((df_insn_change_bb): Fix prototype.
10339         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
10340         df_insn_change_bb, don't call set_block_for_insn.
10341         * emit-rtl.c (reorder_insns): Likewise.
10342         * haifa-sched.c (move_insn): Likewise.
10343
10344 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
10345
10346         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
10347
10348 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
10349
10350         * tree-flow-inline.h (next_readonly_imm_use): Return
10351         NULL_USE_OPERAND_P after the end.
10352
10353 2008-03-01  Richard Guenther  <rguenther@suse.de>
10354
10355         PR tree-optimization/35411
10356         * tree-sra.c (sra_build_assignment): Split conversion to
10357         final type to a separate statement if we are not assigning
10358         to a register.
10359
10360 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
10361
10362         * fold-const.c (fold_convertible_p): Correct the logic to follow
10363         that in fold_convert().
10364
10365 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
10366
10367         PR c++/35315
10368         * tree-inline.c (build_duplicate_type): When we make a
10369         duplicate type, make it unique in the canonical types system.
10370
10371 2008-02-29  Tom Tromey  <tromey@redhat.com>
10372
10373         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
10374         input_file_stack_history, input_file_stack_restored): Remove.
10375         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
10376         * input.h (struct file_stack): Remove.
10377         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
10378         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
10379         Likewise.
10380         * diagnostic.h (struct diagnostic_context) <last_module>: Change
10381         type.
10382         (diagnostic_last_module_changed): Add 'map' argument.
10383         (diagnostic_set_last_function): Likewise.
10384         * diagnostic.c (undiagnostic_report_current_module): Iterate using
10385         line map, not input_file_stack.
10386         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
10387
10388 2008-02-29  Paul Brook  <paul@codesourcery.com>
10389
10390         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
10391
10392 2008-02-29  Paul Brook  <paul@codesourcery.com>
10393
10394         * config/arm/ieee754-df.S (muldf3): Use RET macros.
10395
10396 2008-02-29  Richard Guenther  <rguenther@suse.de>
10397
10398         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
10399         vn_lookup_or_add.
10400         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
10401         value for comparing for a store match.
10402         (simplify_unary_expression): Do nothing for SSA_NAMEs.
10403         (try_to_simplify): Do not do a full-blown reference lookup.
10404
10405 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
10406
10407         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
10408         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
10409
10410         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
10411
10412 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
10413
10414         * tree-loop-linear.c (try_interchange_loops): Compare memory access
10415         strides against cache sizes.
10416
10417 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
10418
10419         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
10420         constant to fpul.
10421
10422 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
10423
10424         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
10425         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
10426         is smaller than the original promoted value.
10427         (simplify_subreg): If OP is a SUBREG, try to preserve its
10428         SUBREG_PROMOTED_VAR_P information.
10429
10430 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
10431
10432         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
10433         (VN_INFO_GET): Allocate new objects on the obstack.
10434         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
10435         for rpo_numbers_temp, for consistency.
10436         (free_scc_vn): Free the obstack.
10437
10438 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
10439
10440         * doc/invoke.texi: Document -ftree-loop-distribution.
10441         * tree-loop-distribution.c: New.
10442         * tree-pass.h (pass_loop_distribution): New.
10443         * graphds.h (struct graph): Add htab_t indices.
10444         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
10445         * tree-vectorizer.c (rename_variables_in_loop): Extern.
10446         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
10447         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
10448         * tree-data-ref.c (debug_data_dependence_relations): New.
10449         (dump_data_dependence_relation): Also print data references.
10450         (free_data_ref): Extern.
10451         (same_access_functions): Moved...
10452         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
10453         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
10454         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
10455         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
10456         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
10457         (stmts_from_loop): Skip LABEL_EXPR.
10458         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
10459         New.
10460         (build_rdg): Initialize rdg->indices htab.
10461         (free_rdg, stores_from_loop, ref_base_address,
10462         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
10463         have_similar_memory_accesses_1, ref_base_address_1,
10464         remove_similar_memory_refs): New.
10465         * tree-data-ref.h: Depend on tree-chrec.h.
10466         (debug_data_dependence_relations, free_data_ref): Declared.
10467         (same_access_functions): ... here.
10468         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
10469         New.
10470         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
10471         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
10472         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
10473         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
10474         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
10475         rdg_vertex_for_stmt): Declared.
10476         (struct rdg_edge): Add level.
10477         (RDGE_LEVEL): New.
10478         (free_rdg, stores_from_loop, remove_similar_memory_refs,
10479         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
10480         Declared.
10481         (rdg_has_similar_memory_accesses): New.
10482         * tree-vect-analyze.c: Remove unused static decls.
10483         * lambda.h (dependence_level): New.
10484         * common.opt (ftree-loop-distribution): New.
10485         * tree-flow.h (mark_virtual_ops_in_bb, 
10486         slpeel_tree_duplicate_loop_to_edge_cfg,
10487         rename_variables_in_loop): Declared.
10488         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
10489         (OBJS-common): Add tree-loop-distribution.o.
10490         (tree-loop-distribution.o): New rule.
10491         * tree-cfg.c (mark_virtual_ops_in_bb): New.
10492         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
10493         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
10494
10495 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
10496
10497         PR target/33963
10498         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
10499         other than structures and unions.
10500
10501 2008-02-28  Richard Guenther  <rguenther@suse.de>
10502
10503         Revert:
10504         2008-02-26  Richard Guenther  <rguenther@suse.de>
10505
10506         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
10507         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
10508         (lookup_decl_from_uid): Declare.
10509         (remove_decl_from_map): Likewise.
10510         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
10511         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
10512         (decl_for_uid_map): New global hashtable mapping DECL_UID
10513         to the decl tree.
10514         (init_ttree): Allocate it.
10515         (insert_decl_to_uid_decl_map): New helper function.
10516         (make_node_stat): Insert new decls into the map.
10517         (copy_node_stat): Likewise.
10518         (lookup_decl_from_uid): New function.
10519         (remove_decl_from_map): Likewise.
10520         (print_decl_for_uid_map_statistics): New helper.
10521         (dump_tree_statistics): Call it.
10522
10523         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
10524         (referenced_var_iterator): Adjust.
10525         (FOR_EACH_REFERENCED_VAR): Adjust.
10526         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
10527         (num_referenced_vars): Adjust.
10528         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
10529         (first_referenced_var): Remove.
10530         (end_referenced_vars_p): Likewise.
10531         (next_referenced_var): Likewise.
10532         (referenced_var_iterator_set): New helper function.
10533         * tree-dfa.c (referenced_var_lookup): Adjust.
10534         (referenced_var_check_and_insert): Likewise.
10535         (remove_referenced_var): Likewise.
10536         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
10537         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10538         (verify_call_clobbering): Likewise.
10539         (verify_memory_partitions): Likewise.
10540         (init_tree_ssa): Allocate bitmap instead of hashtable for
10541         referenced_vars.
10542         (delete_tree_ssa): Adjust.
10543         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
10544         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10545         (compute_tag_properties): Likewise.
10546         (set_initial_properties): Likewise.
10547         (find_partition_for): Likewise.
10548         (update_reference_counts): Likewise.
10549         (dump_may_aliases_for): Likewise.
10550         * tree-ssa-operands.c (add_virtual_operand): Likewise.
10551         (add_call_clobber_ops): Likewise.
10552         (add_call_read_ops): Likewise.
10553         (get_asm_expr_operands): Likewise.
10554         * tree-into-ssa.c (dump_decl_set): Likewise.
10555         (update_ssa): Likewise.
10556         * tree-sra.c (scan_function): Likewise.
10557         (decide_instantiations): Likewise.
10558         (scalarize_parms): Likewise.
10559         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
10560         (dsa_named_for): Likewise.
10561         * tree-ssa-structalias.c (update_alias_info): Likewise.
10562         (merge_smts_into): Likewise.
10563
10564 2008-02-27  David Daney  <ddaney@avtrex.com>
10565
10566         PR target/34409
10567         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
10568         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
10569         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
10570         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
10571         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
10572
10573 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
10574
10575         PR target/25477
10576         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
10577         (BUILT_IN_NEXTTOWARD): Remove.
10578         (BUILT_IN_NEXTTOWARDF): Ditto.
10579         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
10580         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
10581
10582 2008-02-27  Tom Tromey  <tromey@redhat.com>
10583
10584         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
10585         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
10586
10587 2008-02-27  Jan Beulich  <jbeulich@novell.com>
10588
10589         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
10590         update the respective field on newdecl.
10591
10592 2008-02-27  Revital Eres  <eres@il.ibm.com>
10593
10594         PR rtl-optimization/34999
10595         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
10596         crossing edges that ends with a call insn.
10597         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
10598         call insn and clear the EDGE_CROSSING flag of the crossing edge
10599         when fixing fallthru edges.
10600
10601 2008-02-27  Richard Guenther  <rguenther@suse.de>
10602
10603         PR middle-end/35390
10604         * fold-const.c (fold_unary): Return the correct argument,
10605         converted to the result type.
10606
10607 2008-02-27  Richard Guenther  <rguenther@suse.de>
10608
10609         PR middle-end/34971
10610         * expr.c (expand_expr_real_1): Assert on rotates that operate
10611         on partial modes.
10612         * fold-const.c (fold_binary): Use the types precision, not the
10613         bitsize of the mode if folding rotate expressions.  Build rotates
10614         only for full modes.
10615
10616 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
10617
10618         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
10619         and CPP_PRAGMA_EOL.
10620         * c-pragma.c (pragma_ns_name): New typedef.
10621         (registered_pp_pragmas): New variable.
10622         (c_pp_lookup_pragma): New function.
10623         (c_register_pragma_1): If flag_preprocess_only, do nothing
10624         for non-expanded pragmas, for expanded ones push pragma's
10625         namespace and name into registered_pp_pragmas vector.
10626         (c_invoke_pragma_handler): Register OpenMP pragmas even when
10627         flag_preprocess_only, don't register GCC pch_preprocess
10628         pragma if flag_preprocess_only.
10629         * c-opts.c (c_common_init): Call init_pragma even if
10630         flag_preprocess_only.
10631         * c-pragma.c (c_pp_lookup_pragma): New prototype.
10632         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
10633         cpp_register_pragma if flag_preprocess_only.
10634
10635 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10636
10637         PR c/28800
10638         * c-parser.c (c_parser_translation_unit): Warn for empty
10639         translation unit, not empty source file.
10640
10641 2008-02-26  Paul Brook  <paul@codesourcery.com>
10642
10643         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
10644         operand for Thumb-2.
10645         * config/arm/arm.h (reg_class): Add CORE_REGS.
10646         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
10647         (BASE_REG_CLASS): Use CORE_REGS.
10648         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
10649         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
10650         (REGNO_OK_FOR_INDEX_P): Exclude SP.
10651         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
10652         ARM_REGNO_OK_FOR_INDEX_P.
10653         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
10654         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
10655         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
10656         (ldm/stm peepholes): Ditto.
10657         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
10658         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
10659         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
10660         * config/arm/constraints.md: Enable "k" constraint on ARM.
10661
10662 2008-02-27  Ben Elliston  <bje@au.ibm.com>
10663
10664         * config/rs6000/rs6000.c: Annotate cache line size field in all
10665         instances of struct processor_costs.
10666
10667 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
10668
10669         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
10670         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
10671         jump_bypass): New counters.
10672         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
10673         * dce.c (gate_ud_dce): Same.
10674         (gate_fast_dce): Same.
10675         * dse.c (gate_dse1): New function.
10676         (gate_dse2): New function.
10677         (gate_dse): Merge results of new gate functions.
10678         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
10679         (gate_handle_jump_bypass): Add dbg_cnt.
10680         (gate_handle_gcse): Add dbg_cnt.
10681         * ifcvt.c (gate_handle_if_conversion): Same.
10682         (gate_handle_if_after_combine): Same.
10683         (gate_handle_if_after_reload): Same.
10684         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
10685
10686 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
10687
10688         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
10689         line sizes.
10690         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
10691
10692 2008-02-26  Jason Merrill  <jason@redhat.com>
10693
10694         PR c++/35315
10695         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
10696         alone if it's the naming decl for the type's main variant.
10697
10698 2008-02-26  Tom Tromey  <tromey@redhat.com>
10699
10700         * system.h (USE_MAPPED_LOCATION): Poison.
10701         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
10702         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
10703         (make_goto_expr_edges): Likewise.
10704         (remove_bb): Likewise.
10705         (execute_warn_function_return): Likewise.
10706         * basic-block.h (struct edge_def) <goto_locus>: Change type to
10707         location_t.
10708         * c-common.c (fname_decl): Remove old location code.
10709         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
10710         location code.
10711         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
10712         variant.
10713         (ASM_INPUT_SOURCE_LOCATION): Likewise.
10714         (gen_rtx_ASM_INPUT): Likewise.
10715         (gen_rtx_ASM_INPUT_loc): Likewise.
10716         (get_rtx_asm_OPERANDS): Remove.
10717         * cfglayout.c (insn_locators_alloc): Remove old location code.
10718         (set_curr_insn_source_location): Likewise.
10719         (curr_insn_locator): Likewise.
10720         * print-tree.c (print_node): Remove old location code.
10721         * tree-mudflap.c (mf_varname_tree): Remove old location code.
10722         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
10723         * cfgexpand.c (expand_gimple_cond_expr): Don't use
10724         location_from_locus.
10725         (construct_exit_block): Remove old location code.
10726         * emit-rtl.c (force_next_line_note): Remove old location code.
10727         * profile.c (branch_prob): Remove old location code.
10728         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
10729         LOC_LINE): Remove old-location variants.
10730         * langhooks.c (lhd_print_error_function): Remove old location
10731         code.
10732         * configure, config.in: Rebuilt.
10733         * configure.ac (--enable-mapped-location): Remove.
10734         * c-decl.c (c_init_decl_processing): Remove old location code.
10735         (finish_function): Likewise.
10736         * recog.c (decode_asm_operands): Remove old location code.
10737         * c-pch.c (c_common_read_pch): Remove old location code.
10738         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
10739         variants.
10740         * gimple-low.c (lower_function_body): Remove old location code.
10741         * toplev.c (unknown_location): Remove.
10742         (push_srcloc): Remove old-location variant.
10743         (process_options): Remove old location code.
10744         (lang_dependent_init): Likewise.
10745         * input.h (UNKNOWN_LOCATION): Move definition.
10746         (location_t): Undeprecate.
10747         (source_locus): Remove.
10748         (location_from_locus): Remove.
10749         (struct location_s): Remove.
10750         Remove all old-location code.
10751         (input_line, input_filename): Remove.
10752         * final.c (final_scan_insn): Remove old location code.
10753         * diagnostic.c (diagnostic_build_prefix): Remove
10754         USE_MAPPED_LOCATION test.
10755         * tree.h (gimple_stmt) <locus>: Now a location_t.
10756         (tree_exp) <locus>: Likewise.
10757         (DECL_IS_BUILTIN): Remove old-location variant.
10758         (annotate_with_file_line, annotate_with_locus): Likewise.
10759         (expr_locus, set_expr_locus): Update.
10760         * tree.c (build1_stat): Remove old location code.
10761         (last_annotated_node): Remove.
10762         (annotate_with_file_line): Remove old-location variant.
10763         (annotate_with_locus): Likewise.
10764         (expr_location): Remove old location code.
10765         (set_expr_location): Likewise.
10766         (expr_has_location): Likewise.
10767         (expr_locus): Likewise.
10768         (set_expr_locus): Likewise.
10769         (expr_filename): Don't use location_from_locus.
10770         (expr_lineno): Likewise.
10771         * rtl-error.c (location_for_asm): Remove old location code.
10772         * c-lex.c (cb_line_change): Remove old location code.
10773         (fe_file_change): Likewise.
10774         (cb_def_pragma): Likewise.
10775         (c_lex_with_flags): Likewise.
10776         * gengtype.c (do_typedef): Don't special-case location types.
10777         (define_location_structures): Remove.
10778         (main): Don't call define_location_structures.
10779         * tree-pretty-print.c (dump_implicit_edges): Remove old location
10780         code.
10781
10782 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10783
10784         PR 26264
10785         * builtins.def (BUILT_IN_STDARG_START): Remove.
10786         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
10787         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10788         * tree-inline.c (inline_forbidden_p_1): Likewise.
10789         
10790 2008-02-26  Richard Guenther  <rguenther@suse.de>
10791
10792         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
10793         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
10794         (lookup_decl_from_uid): Declare.
10795         (remove_decl_from_map): Likewise.
10796         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
10797         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
10798         (decl_for_uid_map): New global hashtable mapping DECL_UID
10799         to the decl tree.
10800         (init_ttree): Allocate it.
10801         (insert_decl_to_uid_decl_map): New helper function.
10802         (make_node_stat): Insert new decls into the map.
10803         (copy_node_stat): Likewise.
10804         (lookup_decl_from_uid): New function.
10805         (remove_decl_from_map): Likewise.
10806         (print_decl_for_uid_map_statistics): New helper.
10807         (dump_tree_statistics): Call it.
10808
10809         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
10810         (referenced_var_iterator): Adjust.
10811         (FOR_EACH_REFERENCED_VAR): Adjust.
10812         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
10813         (num_referenced_vars): Adjust.
10814         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
10815         (first_referenced_var): Remove.
10816         (end_referenced_vars_p): Likewise.
10817         (next_referenced_var): Likewise.
10818         (referenced_var_iterator_set): New helper function.
10819         * tree-dfa.c (referenced_var_lookup): Adjust.
10820         (referenced_var_check_and_insert): Likewise.
10821         (remove_referenced_var): Likewise.
10822         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
10823         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10824         (verify_call_clobbering): Likewise.
10825         (verify_memory_partitions): Likewise.
10826         (init_tree_ssa): Allocate bitmap instead of hashtable for
10827         referenced_vars.
10828         (delete_tree_ssa): Adjust.
10829         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
10830         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10831         (compute_tag_properties): Likewise.
10832         (set_initial_properties): Likewise.
10833         (find_partition_for): Likewise.
10834         (update_reference_counts): Likewise.
10835         (dump_may_aliases_for): Likewise.
10836         * tree-ssa-operands.c (add_virtual_operand): Likewise.
10837         (add_call_clobber_ops): Likewise.
10838         (add_call_read_ops): Likewise.
10839         (get_asm_expr_operands): Likewise.
10840         * tree-into-ssa.c (dump_decl_set): Likewise.
10841         (update_ssa): Likewise.
10842         * tree-sra.c (scan_function): Likewise.
10843         (decide_instantiations): Likewise.
10844         (scalarize_parms): Likewise.
10845         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
10846         (dsa_named_for): Likewise.
10847         * tree-ssa-structalias.c (update_alias_info): Likewise.
10848         (merge_smts_into): Likewise.
10849
10850 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10851
10852         PR 34351
10853         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
10854         * c-opts.c (c_common_handle_option): Wall enables
10855         Wvolatile-register-var.
10856         * common.opt: Move Wvolatile-register-var to...
10857         * c.opt: ...here.
10858         
10859 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10860
10861         * common.opt (Wlarger-than=): New.
10862         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
10863         -Wlarger-than=.
10864         * opts.c (common_handle_option): Handle -Wlarger-than=.
10865         * optc-gen.awk: Likewise.
10866         * opth-gen.awk: Likewise.
10867         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
10868         * tree-optimize.c (tree_rest_of_compilation): Likewise.
10869         
10870 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10871
10872         * c-common.c (match_case_to_enum_1): Add appropriate
10873         OPT_W* parameter to warning.
10874         (c_do_switch_warnings): Likewise.
10875         * c-typeck.c (warning_init): Add one more parameter following
10876         'warning' function.
10877         (push_init_level): Update call to warning_init.
10878         (pop_init_level): Likewise.
10879         (add_pending_init): Likewise.
10880         (output_init_element: Likewise.
10881
10882 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10883
10884         PR 28322
10885         * toplev.c (toplev_main): If there are warnings or error, print
10886         errors for ignored options.
10887         * opts.c (ignored_options): New static variable.
10888         (postpone_unknown_option_error): New.
10889         (print_ignored_options): New.
10890         (handle_option): Postpone errors for unknown -Wno-* options.
10891         * opts.h (print_ignored_options): Declare.
10892         
10893 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
10894
10895         * config/mips/mips.md (loadgp_blockage, blockage): Change type
10896         to "ghost".
10897
10898 2008-02-25  Richard Guenther  <rguenther@suse.de>
10899
10900         Revert:
10901         2008-02-25  Richard Guenther  <rguenther@suse.de>
10902
10903         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
10904         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
10905         (lookup_decl_from_uid): Declare.
10906         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
10907         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
10908         (decl_for_uid_map): New global hashtable mapping DECL_UID
10909         to the decl tree.
10910         (init_ttree): Allocate it.
10911         (insert_decl_to_uid_decl_map): New helper function.
10912         (make_node_stat): Insert new decls into the map.
10913         (copy_node_stat): Likewise.
10914         (lookup_decl_from_uid): New function.
10915         (print_decl_for_uid_map_statistics): New helper.
10916         (dump_tree_statistics): Call it.
10917
10918         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
10919         (referenced_var_iterator): Adjust.
10920         (FOR_EACH_REFERENCED_VAR): Adjust.
10921         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
10922         (num_referenced_vars): Adjust.
10923         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
10924         (first_referenced_var): Remove.
10925         (end_referenced_vars_p): Likewise.
10926         (next_referenced_var): Likewise.
10927         (referenced_var_iterator_set): New helper function.
10928         * tree-dfa.c (referenced_var_lookup): Adjust.
10929         (referenced_var_check_and_insert): Likewise.
10930         (remove_referenced_var): Likewise.
10931         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
10932         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10933         (verify_call_clobbering): Likewise.
10934         (verify_memory_partitions): Likewise.
10935         (init_tree_ssa): Allocate bitmap instead of hashtable for
10936         referenced_vars.
10937         (delete_tree_ssa): Adjust.
10938         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
10939         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10940         (compute_tag_properties): Likewise.
10941         (set_initial_properties): Likewise.
10942         (find_partition_for): Likewise.
10943         (update_reference_counts): Likewise.
10944         (dump_may_aliases_for): Likewise.
10945         * tree-ssa-operands.c (add_virtual_operand): Likewise.
10946         (add_call_clobber_ops): Likewise.
10947         (add_call_read_ops): Likewise.
10948         (get_asm_expr_operands): Likewise.
10949         * tree-into-ssa.c (dump_decl_set): Likewise.
10950         (update_ssa): Likewise.
10951         * tree-sra.c (scan_function): Likewise.
10952         (decide_instantiations): Likewise.
10953         (scalarize_parms): Likewise.
10954         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
10955         (dsa_named_for): Likewise.
10956         * tree-ssa-structalias.c (update_alias_info): Likewise.
10957         (merge_smts_into): Likewise.
10958
10959 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
10960
10961         PR fortran/29549
10962         * doc/invoke.texi (-fcx-limited-range): Document new option.
10963         * toplev.c (process_options): Handle -fcx-fortran-rules.
10964         * common.opt: Add documentation for -fcx-fortran-rules.
10965
10966 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
10967
10968         PR c/35162
10969         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
10970         actual behaviour and C99.
10971         
10972 2008-02-26  Ben Elliston  <bje@au.ibm.com>
10973
10974         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
10975         (ASM_CPU_POWER6_SPEC): Likewise.
10976         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
10977         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
10978         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
10979
10980 2008-02-25  Richard Guenther  <rguenther@suse.de>
10981
10982         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
10983         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
10984         (lookup_decl_from_uid): Declare.
10985         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
10986         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
10987         (decl_for_uid_map): New global hashtable mapping DECL_UID
10988         to the decl tree.
10989         (init_ttree): Allocate it.
10990         (insert_decl_to_uid_decl_map): New helper function.
10991         (make_node_stat): Insert new decls into the map.
10992         (copy_node_stat): Likewise.
10993         (lookup_decl_from_uid): New function.
10994         (print_decl_for_uid_map_statistics): New helper.
10995         (dump_tree_statistics): Call it.
10996
10997         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
10998         (referenced_var_iterator): Adjust.
10999         (FOR_EACH_REFERENCED_VAR): Adjust.
11000         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11001         (num_referenced_vars): Adjust.
11002         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11003         (first_referenced_var): Remove.
11004         (end_referenced_vars_p): Likewise.
11005         (next_referenced_var): Likewise.
11006         (referenced_var_iterator_set): New helper function.
11007         * tree-dfa.c (referenced_var_lookup): Adjust.
11008         (referenced_var_check_and_insert): Likewise.
11009         (remove_referenced_var): Likewise.
11010         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11011         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11012         (verify_call_clobbering): Likewise.
11013         (verify_memory_partitions): Likewise.
11014         (init_tree_ssa): Allocate bitmap instead of hashtable for
11015         referenced_vars.
11016         (delete_tree_ssa): Adjust.
11017         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11018         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11019         (compute_tag_properties): Likewise.
11020         (set_initial_properties): Likewise.
11021         (find_partition_for): Likewise.
11022         (update_reference_counts): Likewise.
11023         (dump_may_aliases_for): Likewise.
11024         * tree-ssa-operands.c (add_virtual_operand): Likewise.
11025         (add_call_clobber_ops): Likewise.
11026         (add_call_read_ops): Likewise.
11027         (get_asm_expr_operands): Likewise.
11028         * tree-into-ssa.c (dump_decl_set): Likewise.
11029         (update_ssa): Likewise.
11030         * tree-sra.c (scan_function): Likewise.
11031         (decide_instantiations): Likewise.
11032         (scalarize_parms): Likewise.
11033         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11034         (dsa_named_for): Likewise.
11035         * tree-ssa-structalias.c (update_alias_info): Likewise.
11036         (merge_smts_into): Likewise.
11037
11038 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
11039
11040         PR target/35258
11041         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
11042         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
11043         * alias.h (nonoverlapping_memrefs_p): Likewise.
11044
11045 2008-02-25  Jan Beulich  <jbeulich@novell.com>
11046
11047         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
11048         * config/i386/netware-libgcc.exp: Add __bswap?i2,
11049         __emultls_get_address, __emultls_register_common,
11050         __floatundi?f, and _Unwind_GetIPInfo.
11051         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
11052         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
11053         (gen_regparm_prefix): Likewise.
11054         (i386_nlm_encode_section_info): Sync with
11055         config/i386/winnt.c:i386_pe_encode_section_info().
11056         (i386_nlm_maybe_mangle_decl_assembler_name): New.
11057         i386_nlm_mangle_decl_assembler_name): New.
11058         (netware_override_options): New.
11059         * config/i386/netware.h (netware_override_options): Declare.
11060         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
11061         (i386_nlm_mangle_decl_assembler_name): Declare.
11062         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
11063
11064 2008-02-25  Ben Elliston  <bje@au.ibm.com>
11065
11066         PR other/32948
11067         * c-decl.c (grokdeclarator): Remove unused local variables
11068         `typedef_type' and `type_as_written'.
11069         * bb-reorder.c
11070         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
11071         unused local variable `has_hot_blocks'.
11072         (fix_crossing_conditional_branches): Remove unused local variable
11073         `prev_bb'.
11074         
11075 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
11076
11077         PR middle-end/19984
11078         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
11079         using DEF_C99_BUILTIN.
11080         (BUILT_IN_NANF): Ditto.
11081         (BUILT_IN_NANL): Ditto.
11082
11083 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
11084             Revital Eres  <eres@il.ibm.com>
11085
11086         * modulo-sched.c (calculate_must_precede_follow): Address TODO
11087         regarding the order of two dependent insns in the same row.
11088
11089 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11090
11091         * stor-layout.c (layout_decl): Do not bump the alignment of a
11092         bit-field to more than byte alignment if it is packed.
11093
11094 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
11095
11096         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
11097         e300c2 and e300c3.
11098
11099 2008-02-24  Diego Novillo  <dnovillo@google.com>
11100
11101         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
11102
11103         PR 33738
11104         * tree-vrp.c (vrp_evaluate_conditional): With
11105         -Wtype-limits, emit a warning when comparing against a
11106         constant outside the natural range of OP0's type.
11107         * c.opt (Wtype-limits): Move ...
11108         * common.opt (Wtype-limits): ... here.
11109
11110 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
11111
11112         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
11113         * config/rs6000/e300c2c3.md: New file.
11114         * config/rs6000/rs6000.c (processor_costs): Add new costs for
11115         e300c2 and e300c3.
11116         (rs6000_override_options): Add e300c2 and e300c3 cases to
11117         processor_target_table. Do not allow usage of Altivec or Spe
11118         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
11119         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
11120         * config/rs6000/rs6000.h (processor_type): Add
11121         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
11122         (ASM_CPU_SPEC): Add e300c2 and e300c3.
11123         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
11124         and ppce300c3. Include e300c2c3.md.
11125
11126 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
11127
11128         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
11129         instead of TARGET_STRICT_ALIGN.
11130
11131 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
11132
11133         * explow.c (memory_address): Assert that the generated address is
11134         valid.
11135
11136 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
11137
11138         PR target/25477
11139         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
11140         * config/darwin-ppc-ldouble-patch.def: New file.
11141         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
11142         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
11143         SUBTARGET_INIT_BUILTINS if defined.
11144         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
11145         New functions.
11146
11147 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11148
11149         PR rtl-opt/33512
11150         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
11151         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
11152
11153 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11154
11155         PR pch/35027
11156         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
11157         file" warning condtional on -Winvalid-PCH.
11158
11159 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
11160
11161         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
11162
11163 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
11164
11165         PR target/22076
11166         PR target/34256 
11167         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
11168         prevent reload from using MMX registers.
11169         (*mov<mode>_internal): Ditto.
11170         (*movv2sf_internal_rex64): Ditto.
11171         (*movv2sf_internal): Ditto.
11172
11173 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11174
11175         PR documentation/31569
11176         * doc/install.texi2html: Use makeinfo --no-number-sections.
11177
11178 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
11179
11180         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
11181         ensure that we can address an entire entity > 8 bytes.  Don't
11182         generate reg+reg addressing for such data.
11183
11184 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
11185
11186         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
11187         strings when optimizing for size, unless the target cares about
11188         alignment.
11189
11190 2008-02-22  Tom Tromey  <tromey@redhat.com>
11191
11192         * regclass.c (current_pass): Remove declaration.
11193
11194 2008-02-22  Anatoly Sokolov <aesok@post.ru>
11195
11196         * config/avr/libgcc.S (__RAMPZ__): Define.
11197         (__do_copy_data): Add for devices with 128KB code memory.
11198
11199 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
11200
11201         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
11202         Use spe_abi.
11203         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
11204
11205 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
11206
11207         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
11208         GENNONACR_REGS.
11209
11210 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11211
11212         PR c/19999
11213         * c-typeck.c (build_binary_op): Warn about floating point
11214         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
11215
11216 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
11217
11218         PR target/34526
11219         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
11220         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
11221         add vrsave.
11222         (rs6000_override_options): Set altivec_abi as default, not override,
11223         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
11224         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
11225         is used; use new member spe_abi.
11226         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
11227         spe_abi and altivec_abi.
11228
11229 2008-02-22  Tomas Bily  <tbily@suse.cz>
11230
11231         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
11232
11233 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11234
11235         PR bootstrap/35273
11236         * config.build (build_file_translate): Set to `CMD //c' only if
11237         it works.
11238         * Makefile.in (build_file_translate): Improve comment.
11239
11240 2008-02-21  Jan Hubicka  <jh@suse.cz>
11241
11242         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
11243         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
11244         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
11245
11246 2008-02-21  Michael Matz  <matz@suse.de>
11247
11248         PR target/35264
11249         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
11250
11251 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
11252
11253         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
11254         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
11255         as insn constraint.
11256         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
11257         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
11258         SSE_VEC_FLOAT_MODE_P as insn constraint.
11259         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
11260         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
11261         sse4a_movntdf using MODEF mode iterator.
11262         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
11263         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
11264         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
11265         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
11266         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
11267         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
11268         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
11269
11270 2008-02-21  Richard Guenther  <rguenther@suse.de>
11271
11272         * tree.def (PAREN_EXPR): New tree code.
11273         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
11274         and PAREN_EXPR.
11275         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
11276         * expr.c (expand_expr_real_1): Likewise.
11277         * tree-inline.c (estimate_num_insns_1): Likewise.
11278         * tree-complex.c (expand_complex_move): Likewise.
11279         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
11280         as plain x.
11281
11282 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
11283
11284         PR target/35225
11285         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
11286
11287 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
11288
11289         PR target/35190
11290         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
11291
11292         * config/sh/sh.c (find_barrier): Don't go past
11293         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
11294
11295 2008-02-20  DJ Delorie  <dj@redhat.com>
11296
11297         * config/h8300/h8300.md (insv): Force source operand to be a register.
11298
11299         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
11300         as a jump, not as a plain insn.
11301         
11302 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
11303
11304         * doc/invoke.texi (Warning Options): Add new option
11305         -Wframe-larger-than=.
11306         (-Wframe-larger-than): Document.
11307
11308         * flags.h (warn_frame_larger_than, frame_larger_than_size):
11309         Add declarations for new option variables.
11310
11311         * final.c (final_start_function): Check the frame size
11312         before emission and issue a Wframe-larger-than warning.
11313
11314         * opts.c (warn_frame_larger_than, frame_larger_than_size):
11315         Add definitions for new option variables.
11316         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
11317
11318         * common.opt (Wframe-larger-than=): New option.
11319
11320 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
11321
11322         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
11323         (<sse>_div<mode>3): Ditto.
11324         (<sse>_vmdiv<mode>3): Ditto.
11325         (<sse>_vmsqrt<mode>2): Ditto.
11326         (*smax<mode>3): Ditto.
11327         (sse5_frcz<mode>2): Ditto.
11328         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
11329         as insn constraint.
11330
11331 2008-02-20  Richard Guenther  <rguenther@suse.de>
11332
11333         PR middle-end/35265
11334         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
11335         be happy with INTEGRAL_TYPE_P.
11336
11337 2008-02-20  Richard Guenther  <rguenther@suse.de>
11338
11339         * fold-const.c (split_tree): Associate floatig-point expressions
11340         if flag_associative_math is set.
11341
11342 2008-02-20  Richard Guenther  <rguenther@suse.de>
11343
11344         * tree.h (fold_real_zero_addition_p): Declare.
11345         * fold-const.c (fold_real_zero_addition_p): Export.
11346         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
11347         floating-point operations with zero and one.
11348
11349 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
11350
11351         * doc/install.texi: Correct references to CFLAGS, replacing them
11352         with BOOT_CFLAGS.  Document flags used during bootstrap for
11353         target libraries.
11354                                 
11355 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
11356
11357         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
11358         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
11359         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
11360         insn constraint.
11361         (smin<mode>3): Ditto from similar patterns.
11362         (smax<mode>3): Ditto.
11363         (*ieee_smin<mode>3): Ditto.
11364         (*ieee_smax<mode>3): Ditto.
11365         * config/i386/sse.md (sse): New mode attribute.
11366         (mov<mode>): Macroize expander from movv4sf and movv2df using
11367         SSEMODEF2P mode iterator.
11368         (<sse>_movnt<mode>): Ditto from similar patterns. Use
11369         SSE_VEC_FLOAT_MODE_P as insn constraint.
11370         (storent<mode>): Ditto.
11371         (storent<mode>): Macroize expander from storentsf and storentdf using
11372         MODEF mode iterator.
11373         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
11374         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
11375         (abs<mode>2): Ditto from similar patterns.
11376         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
11377         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
11378         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
11379         (<sse>_vmsqrt<mode>2): Ditto.
11380         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
11381         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
11382         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
11383         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
11384         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
11385         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
11386         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
11387         insn constraint.
11388         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
11389         iterator and SSE_FLOAT_MODE_P as insn constraint.
11390         (<sse>_ucomi): Ditto from similar patterns.
11391         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
11392         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
11393         SSE_VEC_FLOAT_MODE_P as insn constraint.
11394         (vcond<mode>): Ditto from similar patterns.
11395         (and<mode>3, *and<mode>3): Ditto.
11396         (<sse>_nand<mode>3): Ditto.
11397         (ior<mode>3, *ior<mode>3): Ditto.
11398         (xor<mode>3, *xor<mode>3): Ditto.
11399         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
11400         iterator and SSE_FLOAT_MODE_P as insn constraint.
11401         (*nand<mode>3): Ditto from similar patterns.
11402         (*ior<mode>3): Ditto.
11403         (*xor<mode>3): Ditto.
11404
11405 2008-02-20  Ira Rosen  <irar@il.ibm.com>
11406
11407         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
11408         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
11409         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
11410
11411 2008-02-19  Jan Hubicka  <jh@suse.cz>
11412
11413         * predict.c (tree_bb_level_predictions): Remove variable next
11414         mistakely introduced by previous commit.
11415
11416 2008-02-19  Jan Hubicka  <jh@suse.cz>
11417
11418         * predict.c (predict_paths_leading_to): Rewrite.
11419         (predict_paths_for_bb): New.
11420         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
11421
11422 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11423
11424         PR bootstrap/35218
11425         * Makefile.in (build_file_translate): New.
11426         (gcc-vers.texi): Use it for translating $(abs_srcdir).
11427         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
11428         * configure.ac (build_file_translate): Substitute it.
11429         * configure: Regenerate.
11430
11431 2008-02-19  Jan Hubicka  <jh@suse.cz>
11432
11433         PR rtl-optimization/34408
11434         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
11435         invalid sharing.
11436
11437 2008-02-19  Jan Hubicka  <jh@suse.cz>
11438
11439         PR middle-end/28779
11440         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
11441         call_expr.
11442
11443 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
11444
11445         PR Ada/35186
11446         * config/i386/i386-modes.def: Revert the last DI alignment
11447         change until Ada people can look into it.
11448
11449 2008-02-19  Nick Clifton  <nickc@redhat.com>
11450
11451         * opts.c (print_specific_help): Fix typo in --help text.
11452
11453 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
11454
11455         PR target/35239
11456         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
11457         32-bit inline asm without asm alternatives for host GCC < 3.0.
11458
11459 2008-02-19  Richard Guenther  <rguenther@suse.de>
11460
11461         PR tree-optimization/34989
11462         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
11463         Allow propagation to INDIRECT_REF if we can simplify only.
11464
11465 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11466
11467         * c-common.c (warn_for_collisions_1): Use appropriate option when
11468         warning.
11469
11470 2008-02-19  Nick Clifton  <nickc@redhat.com>
11471
11472         PR other/31349
11473         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
11474         (handle_options): Fix indentation.
11475         (print_filtered_help): If no language-specific options were
11476         displayed tell the user how to list all the options supported by
11477         the language's front-end.
11478         (print_specific_help): Fix indentation and remove duplicate line.
11479         (common_handle_option): Handle the -v option.
11480         For --help enable the display of undocumented options if the -v
11481         switch has been included on the command line.
11482         For --help= check for overlaps in the arguments between the option
11483         classes and the language names and issue a warning when they
11484         cannot be disambiguated.
11485         * c.opt (v): Pass on to the common option handler.
11486
11487 2008-02-19  Revital Eres  <eres@il.ibm.com> 
11488
11489         * modulo-sched.c (sms_schedule): Change dump message when
11490         create_ddg function fails.
11491         (try_scheduling_node_in_cycle): Rename row to cycle.
11492         (print_partial_schedule): Rename CYCLE to ROW.
11493
11494 2008-02-19  Christian Bruel  <christian.bruel@st.com>
11495             Zdenek Dvorak  <ook@ucw.cz>
11496
11497         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
11498
11499 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
11500
11501         PR target/33555
11502         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
11503         (*x86_movdicc_0_m1_se): Ditto.
11504
11505 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
11506
11507         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
11508         (CMPtype): Define as __gcc_CMPtype.
11509         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
11510         (CMPtype): Define as __gcc_CMPtype.
11511
11512 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
11513
11514         Support valgrind 3.3 for --enable-checking=valgrind.
11515         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
11516         here.
11517         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
11518         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
11519         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
11520         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
11521         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
11522         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
11523         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
11524         respectively.
11525         * ggc-zone.c: Similar.
11526         * ggc-page.c: Similar.
11527
11528 2008-02-19  Paul Brook  <paul@codesourcery.com>
11529
11530         PR target/35071
11531         * config/arm/ieee754-df.S: Fix do_it typo.
11532         * config/arm/ieee754-sf.S: Fix do_it typo.
11533
11534 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11535
11536         PR target/35189
11537         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
11538         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
11539         (OPTION_MASK_ISA_SSE_SET): Likewise.
11540         (OPTION_MASK_ISA_SSE2_SET): Likewise.
11541         (OPTION_MASK_ISA_SSE3_SET): Likewise.
11542         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
11543         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
11544         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
11545         (OPTION_MASK_ISA_SSE4_SET): Likewise.
11546         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
11547         (OPTION_MASK_ISA_SSE5_SET): Likewise.
11548         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
11549         (OPTION_MASK_ISA_MMX_UNSET): Updated.
11550         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
11551         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
11552         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
11553         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
11554         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
11555         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
11556         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
11557         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
11558         (OPTION_MASK_ISA_SSE4): Removed.
11559         (ix86_handle_option): Turn on bits in ix86_isa_flags and
11560         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
11561         (override_options): Don't turn on implied SSE/MMX bits in
11562         ix86_isa_flags.
11563
11564 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
11565
11566         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11567         32bit host.
11568
11569 2008-02-18  Joey Ye  <joey.ye@intel.com>
11570
11571         PR middle-end/34921
11572         * tree-nested.c (insert_field_into_struct): Set type alignment
11573         to field alignment if the former is less than the latter.
11574
11575 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
11576
11577         * BASE-VER: Set to 4.4.0.
11578
11579 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11580
11581         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
11582         * doc/cfg.texi: Likewise.
11583         * doc/extend.texi: Likewise.
11584         * doc/gty.texi: Likewise.
11585         * doc/invoke.texi: Likewise.
11586         * doc/loop.texi: Likewise.
11587         * doc/md.texi: Likewise.
11588         * doc/passes.texi: Likewise.
11589         * doc/rtl.texi: Likewise.
11590         * doc/sourcebuild.texi: Likewise.
11591         * doc/tm.texi: Likewise.
11592         * doc/tree-ssa.texi: Likewise.
11593
11594 2008-02-17  Richard Guenther  <rguenther@suse.de>
11595
11596         PR middle-end/35227
11597         * tree-complex.c (init_parameter_lattice_values): Handle parameters
11598         without default definition.
11599
11600 2008-02-17  Richard Guenther  <rguenther@suse.de>
11601
11602         PR tree-optimization/35231
11603         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
11604         if A | B != 1.
11605
11606 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
11607
11608         Revert:
11609         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
11610         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
11611         libgcc_cmp_return mode.
11612
11613 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11614
11615         PR c/28368
11616         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
11617
11618 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
11619
11620         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
11621         multilibs.
11622
11623 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11624
11625         * doc/c-tree.texi: Use `@.' where appropriate.
11626         * doc/extend.texi: Likewise.
11627         * doc/install.texi: Likewise.
11628         * doc/invoke.texi: Likewise.
11629         * doc/loop.texi: Likewise.
11630         * doc/makefile.texi: Likewise.
11631         * doc/md.texi: Likewise.
11632         * doc/passes.texi: Likewise.
11633         * doc/standards.texi: Likewise.
11634         * doc/tm.texi: Likewise.
11635
11636 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
11637
11638         PR middle-end/35196
11639         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
11640         in entry_bb.
11641         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
11642         rather than in entry_bb.
11643
11644 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
11645
11646         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
11647         libgcc_cmp_return mode.
11648
11649 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
11650
11651         PR middle-end/35130
11652         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
11653         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
11654
11655 2008-02-15  Richard Guenther  <rguenther@suse.de>
11656             Zdenek Dvorak  <ook@ucw.cz>
11657
11658         PR tree-optimization/35164
11659         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
11660         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
11661         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
11662         Only propagate addresses which do not have abnormal SSA_NAMEs
11663         in their operands.
11664
11665 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
11666
11667         PR target/35088
11668         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
11669
11670 2008-02-15  Jan Hubicka  <jh@suse.cz>
11671
11672         PR middle-end/35149
11673         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
11674
11675 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
11676
11677         PR middle-end/34621
11678         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
11679         when calculating alignment_pad.
11680
11681 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
11682
11683         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
11684         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
11685         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
11686         and STACK_BOUNDARY define.
11687
11688 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
11689
11690         PR preprocessor/35061
11691         * c-pragma.c (handle_pragma_pop_macro): Check that
11692         pushed_macro_table has been allocated.
11693
11694 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11695
11696         PR middle-end/35136
11697         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
11698         (force_gimple_operand): Likewise.
11699         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
11700         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
11701         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
11702         (find_interesting_uses_address): Check addressability and alignment
11703         of the base expression only after substituting bases of IVs into it.
11704
11705 2008-02-14  Michael Matz  <matz@suse.de>
11706
11707         PR target/34930
11708         * function.c (instantiate_virtual_regs_in_insn): Reload address
11709         before falling back to reloading the whole operand.
11710
11711 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
11712
11713         * config/s390/s390.c (s390_mainpool_start): Emit the pool
11714         before the first section switch note.
11715
11716 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11717
11718         * doc/bugreport.texi: Update copyright years.
11719         * doc/c-tree.texi: Likewise.
11720         * doc/cfg.texi: Likewise.
11721         * doc/cpp.texi: Likewise.
11722         * doc/cppinternals.texi: Likewise.
11723         * doc/fragments.texi: Likewise.
11724         * doc/frontends.texi: Likewise.
11725         * doc/gcc.texi: Likewise.
11726         * doc/gty.texi: Likewise.
11727         * doc/hostconfig.texi: Likewise.
11728         * doc/implement-c.texi: Likewise.
11729         * doc/libgcc.texi: Likewise.
11730         * doc/loop.texi: Likewise.
11731         * doc/makefile.texi: Likewise.
11732         * doc/options.texi: Likewise.
11733         * doc/passes.texi: Likewise.
11734         * doc/rtl.texi: Likewise.
11735         * doc/sourcebuild.texi: Likewise.
11736         * doc/standards.texi: Likewise.
11737         * doc/tree-ssa.texi: Likewise.
11738         * doc/trouble.texi: Likewise.
11739
11740         * doc/extend.texi: Use @: or add comma where appropriate.
11741         * doc/invoke.texi: Likewise.
11742         * doc/tm.texi: Likewise.
11743
11744 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
11745
11746         PR target/34393
11747         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
11748         to a reg.
11749
11750 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
11751
11752         * doc/md.texi (clz, ctz): Add reference.
11753         * doc/rtl.texi (clz, ctz): Likewise.
11754
11755 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11756
11757         PR other/35148
11758         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
11759         srcdir.
11760
11761 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
11762
11763         * config/s390/s390.c (struct constant_pool): New field
11764         emit_pool_after added.
11765         (s390_mainpool_start): Set the emit_pool_after flag according
11766         to the section switch notes.
11767         (s390_mainpool_finish): Consider emit_pool_after when emitting
11768         the literal pool at the end of the function.
11769         (s390_chunkify_start): Force literal pool splits at section
11770         switch notes.
11771
11772 2008-02-13  Michael Matz  <matz@suse.de>
11773
11774         PR debug/35065
11775         * var-tracking.c (clobber_variable_part): Correctly traverse the
11776         list.
11777
11778 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11779
11780         PR 29673
11781         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
11782         Add -fdump-ipa-inline.
11783         * tree-dump.c (dump_files): Remove tree-inlined dump.
11784         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
11785         
11786 2008-02-12  Richard Guenther  <rguenther@suse.de>
11787
11788         PR tree-optimization/35171
11789         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
11790         default defs.
11791
11792 2008-02-12  Richard Guenther  <rguenther@suse.de>
11793
11794         PR middle-end/35163
11795         * fold-const.c (fold_widened_comparison): Use get_unwidened in
11796         value-preserving mode.  Disallow final truncation.
11797
11798 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
11799
11800         PR middle-end/35136
11801         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
11802         code from here to...
11803         (force_gimple_operand): ...here.
11804
11805 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
11806
11807         PR c++/35144
11808         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
11809         non-compatible pointers.
11810         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
11811         different FIELD_DECLs, try harder by comparing field offsets, sizes
11812         and types.
11813
11814         PR inline-asm/35160
11815         * function.c (match_asm_constraints_1): Don't replace the same input
11816         multiple times.
11817
11818 2008-02-12  Anatoly Sokolov <aesok@post.ru>
11819
11820         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
11821         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
11822         (expand_epilogue): Restore RAMPZ register.
11823         * config/avr/avr.md (RAMPZ_ADDR): New constant.
11824
11825 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
11826
11827         * config/i386/cygwin.asm: (__alloca): Correct calling
11828         convention and alignment.
11829         (__chkstk): Force 8 byte stack alignment.
11830
11831 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
11832             Richard Guenther  <rguenther@suse.de>
11833
11834         PR tree-optimization/33992
11835         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
11836         the zero we compare against.
11837
11838 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
11839
11840         PR libfortran/35063
11841         * gthr-win32.h (__gthread_mutex_destroy_function): New function
11842         to CloseHandle after unlocking to prevent accumulation of handle
11843         count.
11844
11845 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11846
11847         PR middle_end/34150
11848         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
11849         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
11850         and update LABEL_NUSES during and after reload.
11851
11852 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
11853
11854         PR middle-end/34627
11855         * combine.c (simplify_if_then_else): Make sure the comparison is
11856         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
11857
11858 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
11859
11860         PR bootstrap/35051
11861         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
11862         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
11863         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
11864         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
11865         * tree.h (get_type_static_bounds): Likewise.
11866
11867 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11868
11869         * doc/invoke.texi (Option Summary, C++ Dialect Options)
11870         (Objective-C and Objective-C++ Dialect Options, Warning Options):
11871         Make -Wfoo language annotations match what the compiler outputs.
11872
11873 2008-02-08  Sa Liu  <saliu@de.ibm.com>
11874
11875         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
11876         intrinsics spu_convts, spu_convtu, spu_convtf.
11877
11878 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
11879
11880         * doc/extend.texi (Function Attributes) <noinline>: Mention
11881         asm ("") as method to keep calls.
11882
11883 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11884
11885         PR other/32754
11886         * doc/options.texi (Options): Replace references to opts.sh with
11887         optc-gen.awk.
11888         * opts-common.c: Likewise.
11889         * optc-gen.awk: Likewise.
11890         
11891 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
11892
11893         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
11894
11895 2008-02-07  Richard Henderson  <rth@redhat.com>
11896
11897         PR rtl-opt/33410
11898         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
11899         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
11900         funny mode.
11901
11902 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
11903
11904         PR tree-optimization/35085
11905         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
11906         for operand entry oe2 in addition to operand entry oe3 in order to
11907         expose more opportunities for vectorizer sum reduction.
11908
11909 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11910
11911         PR other/35107
11912         * Makefile.in (LIBS): Remove $(GMPLIBS).
11913         (cc1-dummy, cc1): Add $(GMPLIBS).
11914
11915 2008-02-06  Jan Hubicka  <jh@suse.cz>
11916
11917         PR target/23322
11918         * i386.md (moddf_integer): Do not produce partial memory stalls for
11919         targets where it hurts.
11920
11921 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
11922
11923         PR target/35083
11924         * optabs.c (expand_float): Do not check for decimal modes when
11925         expanding unsigned integer through signed conversion.
11926
11927 2008-02-06  Nick Clifton  <nickc@redhat.com>
11928
11929         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
11930         inside the clobber with a match_operand and duplicated operand
11931         number in the constraint.
11932         (ineqbranchsi): Delete redundant comment.
11933
11934 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
11935
11936         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
11937         builtin_define ("__USE_INIT_FINI__").
11938         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
11939         -msx multilibs.
11940         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
11941
11942 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11943
11944         PR documentation/30330
11945         * doc/invoke.texi (C++ Dialect Options)
11946         (Objective-C and Objective-C++ Dialect Options, Warning Options):
11947         For each warning option -Wfoo that allows -Wno-foo, ensure both
11948         -Wfoo and -Wno-foo are listed in the option index.  Fix index
11949         entry of -Wswitch-default, index -Wnormalized= including the
11950         `=', and -Wlarger-than-@var{len} including @var{len}.
11951
11952 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
11953
11954         * config/i386/i386.md (floatunssisf2): Use
11955         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
11956         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
11957         Macroize expander using MODEF mode iterator.
11958
11959 2008-02-05  Diego Novillo  <dnovillo@google.com>
11960
11961         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
11962
11963         PR 33738
11964         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
11965
11966 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11967
11968         PR other/35070
11969         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
11970
11971 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11972
11973         PR target/35084
11974         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
11975         to indicate if a message should be generated.
11976         (init_cumulative_args): Updated.
11977         (function_value_32): Likewise.
11978
11979 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
11980
11981         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
11982
11983 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
11984
11985         PR target/35083
11986         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
11987         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
11988
11989 2008-02-04  Diego Novillo  <dnovillo@google.com>
11990
11991         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
11992
11993         PR 33738
11994         * tree-vrp.c (vrp_evaluate_conditional): With
11995         -Wtype-limits, emit a warning when comparing against a
11996         constant outside the natural range of OP0's type.
11997
11998 2008-02-04  Richard Guenther  <rguenther@suse.de>
11999
12000         PR middle-end/33631
12001         * expr.c (count_type_elements): Give for unions instead of
12002         guessing.
12003
12004 2008-02-04  Richard Guenther  <rguenther@suse.de>
12005
12006         PR middle-end/35043
12007         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
12008         to TYPE_DOMAINs base type instead of using bitsizetype here.
12009
12010 2008-02-03  Jason Merrill  <jason@redhat.com>
12011
12012         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
12013
12014 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12015
12016         PR other/29972
12017         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
12018         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
12019         (RS/6000 and PowerPC Options): Fix typos and markup.
12020         * doc/passes.texi (Tree-SSA passes): Likewise.
12021
12022 2008-02-02  Michael Matz  <matz@suse.de>
12023
12024         PR target/35045
12025         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
12026         from record_last_reg_set_info.
12027         (record_last_reg_set_info): Take an RTX argument, iterate over all
12028         constituent hardregs.
12029         (record_last_set_info, record_opr_changes): Change calls to
12030         new signature or to record_last_reg_set_info_regno.
12031
12032 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12033
12034         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
12035
12036 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
12037
12038         PR rtl-optimization/34773
12039         * reg-notes.def (EQUAL): Mention significance of combination of
12040         REG_EQUAL and REG_RETVAL.
12041         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
12042         insn that has a REG_RETVAL.
12043
12044 2008-02-01  Roger Sayle  <roger@eyesopen.com>
12045
12046         PR bootstrap/33781
12047         * configure.ac (--enable-fixed-point): Disable unless explicitly
12048         requested on IRIX.
12049         * configure: Regenerate.
12050
12051 2008-02-01  Richard Guenther  <rguenther@suse.de>
12052
12053         PR other/35042
12054         * invoke.texi (-finline-limit): Remove no longer true parts
12055         of the documentation.  Note that there is no default value.
12056
12057 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
12058             Mark Mitchell  <mark@codesourcery.com>
12059             Ben Elliston  <bje@au.ibm.com>
12060
12061         PR c/29326
12062         * doc/extend.texi (Other Builtins): Document.
12063
12064 2008-01-31  Tom Browder <tom.browder@gmail.com>
12065
12066         * doc/c-tree.texi (Types): Fix grammar.
12067         (Expression trees): Ditto.
12068         * doc/passes.texi (Tree-SSA passes): Ditto.
12069         
12070         * doc/configterms.texi (Configure Terms): Fix typo.
12071         * doc/cpp.texi (Common Predefined Macros): Ditto.
12072         * doc/md.texi (Machine Constraints): Ditto.
12073         
12074         * doc/makefile.texi (Makefile): Add comma.
12075
12076 2008-01-31  Tom Browder  <tom.browder@gmail.com>
12077             Gerald Pfeifer  <gerald@pfeifer.com>
12078         
12079         * doc/sourcebuild.texi (Front End): Remove references to CVS
12080         and CVSROOT/modules.
12081         (Texinfo Manuals): Replace reference to CVS by one to SVN.
12082         (Back End): Remove reference to CVS.
12083
12084 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
12085
12086         PR target/34900
12087         * config/mips/mips.c (gen_load_const_gp): New function, taking a
12088         comment from...
12089         (mips16_gp_pseudo_reg): ...here.
12090         * config/mips/mips.md (load_const_gp): Replace with...
12091         (load_const_gp_<mode>): ...this :P-based insn.
12092
12093 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12094
12095         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
12096         options. Minor fixes.
12097         (-std): Move reference to standards closer to where language
12098         standards are first mentioned.
12099         
12100 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
12101
12102         PR rtl-optimization/34995
12103         * reload.c (alternative_allows_const_pool_ref): Take an rtx
12104         parameter and return a bool.  If the rtx parameter is nonnull,
12105         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
12106         (find_reloads): Update call accordingly.  Pass the new operand
12107         if it needed no address reloads, otherwise pass null.
12108
12109 2008-01-30  Richard Henderson  <rth@redhat.com>
12110
12111         PR c/34993
12112         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
12113         for unbounded arrays.
12114
12115 2008-01-30  Silvius Rus  <rus@google.com>
12116
12117         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
12118
12119 2008-01-30  Jan Hubicka  <jh@suse.cz>
12120
12121         PR target/34982
12122         * i386.c (init_cumulative_args): Use real function declaration when
12123         calling locally.
12124
12125 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
12126
12127         PR rtl-optimization/34998
12128         * global.c (build_insn_chain): Treat non-subreg_lowpart
12129         SUBREGs of pseudos as clobbering all the words covered by the
12130         SUBREG, not just all the bytes.
12131         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
12132         original df_ref rather than an extract parameter.
12133         (global_conflicts): Update call accordingly.
12134
12135 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
12136
12137         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
12138         the overflow check to make it easier to read.
12139         (__fixtfdi): Change the type of the ll member in union
12140         long_double to UDItype_x.
12141
12142 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
12143
12144         PR middle-end/34969
12145         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
12146         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
12147         * tree-inline.c (fold_marked_statements): Call
12148         cgraph_update_edges_for_call_stmt if folding a call statement.
12149         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
12150         debug_generic_stmt calls, reset it back afterwards.
12151
12152         PR c/35017
12153         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
12154         static decls.
12155         * c-typeck.c (build_external_ref): Don't pedwarn about
12156         static vars in current function's scope.
12157
12158 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
12159
12160         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
12161
12162 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
12163
12164         PR c/35002
12165         * ipa-struct-reorg.c: Fix spelling.
12166         * params.def: Ditto.
12167
12168 2008-01-29  Richard Guenther  <rguenther@suse.de>
12169
12170         PR middle-end/35006
12171         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
12172         field.
12173         * tree-inline.c (remap_type): Increment remapping_type_depth
12174         around remapping types.
12175         (copy_body_r): Only add referenced variables if they are referenced
12176         from code, not types.
12177
12178 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
12179
12180         PR c++/34055
12181         PR c++/34103
12182         PR c++/34219
12183         PR c++/34606
12184         PR c++/34753
12185         PR c++/34754
12186         PR c++/34755
12187         PR c++/34919
12188         PR c++/34961
12189         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
12190         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
12191
12192 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
12193
12194         PR target/34412
12195         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
12196         pointer for tiny stack.
12197
12198 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
12199
12200         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
12201
12202 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
12203
12204         * config/vx-common.h: Fix typo in comment.
12205
12206 2008-01-28  Ian Lance Taylor  <iant@google.com>
12207
12208         PR c++/34862
12209         PR c++/33407
12210         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12211         coalesce pointers if they have different DECL_NO_TBAA_P values.
12212         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
12213         between variables with different DECL_NO_TBAA_P values.
12214
12215 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
12216
12217         PR 31535
12218         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
12219         are not legitimate small data references on SPE targets.
12220
12221 2008-01-28  David Daney  <ddaney@avtrex.com>
12222
12223         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
12224
12225 2008-01-28  David Daney  <ddaney@avtrex.com>
12226
12227         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
12228
12229 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
12230
12231         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
12232         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
12233         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
12234         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
12235         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
12236         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
12237         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
12238         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
12239
12240 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
12241
12242         * basic-block.h (condjump_equiv_p): Fix comment.
12243
12244 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
12245
12246         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
12247         print_generic_stmt_indented): Fix comment.
12248
12249 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
12250
12251         * configure.ac (__stack_chk_fail): Add detecion for availability
12252         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
12253         * configure: Regenerate.
12254
12255 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
12256
12257         PR middle-end/34688
12258         * final.c (output_addr_const): Handle TRUNCATE.
12259
12260 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
12261
12262         PR target/34711
12263         * tree-ssa-loop-ivopts.c (comp_cost): New type.
12264         (zero_cost, infinite_cost): New constants.
12265         (struct cost_pair): Change type of cost to comp_cost.
12266         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
12267         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
12268         New functions.
12269         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
12270         split_address_cost, ptr_difference_cost, difference_cost,
12271         get_computation_cost_at, get_computation_cost,
12272         determine_use_iv_cost_generic, determine_use_iv_cost_address,
12273         determine_use_iv_cost_condition, determine_use_iv_costs,
12274         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
12275         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
12276         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
12277         Change type of cost to comp_cost.
12278         (determine_iv_cost): Increase cost of non-original ivs, instead
12279         of decreasing the cost of original ones.
12280         (get_address_cost): Indicate the complexity of the addressing mode 
12281         in comp_cost.
12282         (try_add_cand_for): Prefer using ivs not specific to some object.
12283         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
12284
12285 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
12286             Janis Johnson  <janis187@us.ibm.com>
12287
12288         PR target/34814
12289         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
12290         (TARGET_INSTANTIATE_DECLS): Likewise.
12291         * target.h (expand_to_rtl_hook): New target hook.
12292         (instantiate_decls): Likewise.
12293         * function.c (instantiate_decl): Make non-static.  Rename to...
12294         (instantiate_decl_rtl): ... this.
12295         (instantiate_expr): Use instantiate_decl_rtl.
12296         (instantiate_decls_1): Likewise.
12297         (instantiate_decls): Likewise.
12298         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
12299         * function.h (instantiate_decl_rtl): Add prototype.
12300         * cfgexpand.c (target.h): New include.
12301         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
12302         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
12303         (TARGET_INSTANTIATE_DECLS): Likewise.
12304         (TARGET_INITIALIZER): New target hooks added.
12305         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
12306         New prototype.
12307         * config/rs6000/rs6000.c (tree-flow.h): New include.
12308         (machine_function): Add sdmode_stack_slot field.
12309         (rs6000_alloc_sdmode_stack_slot): New function.
12310         (rs6000_instantiate_decls): Likewise.
12311         (rs6000_secondary_memory_needed_rtx): Likewise.
12312         (rs6000_check_sdmode): Likewise.
12313         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
12314         (TARGET_INSTANTIATE_DECLS): Likewise.
12315         (rs6000_hard_regno_mode_ok): Allow SDmode.
12316         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
12317         (rs6000_emit_move): Handle SDmode.
12318         (function_arg_advance): Likewise.
12319         (function_arg): Likewise.
12320         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
12321         SDmode var args for 32-bit compiles.
12322         (rs6000_secondary_reload_class): Handle SDmode.
12323         (rs6000_output_function_epilogue): Likewise.
12324         (rs6000_function_value): Simplify if statement.
12325         (rs6000_libcall_value): Likewise.
12326         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
12327         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
12328         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
12329         (movsd_hardfloat): New define_insn.
12330         (movsd_softfloat): Likewise.
12331         (movsd_store): Likewise.
12332         (movsd_load): Likewise.
12333         (extendsddd2): Likewise.
12334         (extendsdtd2): Likewise.
12335         (truncddsd2): Likewise.
12336         (movdd_hardfloat64): Fixup comment.
12337         (UNSPEC_MOVSD_LOAD): New constant.
12338         (UNSPEC_MOVSD_STORE): Likewise.
12339
12340 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
12341
12342         PR c++/34965
12343         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
12344         TRUTH_XOR_EXPR.
12345         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
12346         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
12347         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
12348         and TRUTH_XOR_EXPR.
12349
12350 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
12351
12352         PR target/34794
12353         * config.gcc: Separate AIX 5.3 from AIX 6.1.
12354         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
12355         __LONGDOUBLE128 too.
12356         * config/rs6000/aix61.h: New file.
12357
12358 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
12359
12360         PR rtl-optimization/34959
12361         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
12362         popcount and parity rtxes the same mode as their operand.
12363         Truncate or extend the result to the return value's mode
12364         if necessary.
12365
12366 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
12367
12368         PR target/34981
12369         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
12370         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
12371         to GOT_VERSION_REGNUM.
12372         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
12373         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
12374         * config/mips/mips.c (mips_emit_call_insn): New function.
12375         (mips_call_tls_get_addr): Call mips_expand_call directly.
12376         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
12377         emit_call_insn.
12378         (mips16_build_call_stub): Likewise.  Return the call insn or null.
12379         (mips_expand_call): Update the call to mips16_build_call_stub
12380         accordingly and a remove redundant condition.  Assert that MIPS16
12381         stubs do not use lazy binding.  Use mips_emit_call_insn and return
12382         the call insn.
12383         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
12384         TARGET_USE_GOT.
12385         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
12386         (mips_avoid_hazard): Remove hazard_set handling.
12387         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
12388         (UNSPEC_RESTORE_GP): ...this.
12389         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
12390         (FAKE_CALL_REGNO): Rename to...
12391         (GOT_VERSION_REGNUM): ...this.
12392         (type): Add "ghost" value.  Add an associated insn reservation.
12393         (hazard_set): Remove.
12394         (exception_receiver): Rename to...
12395         (restore_gp): ...this and update the unspec identifier accordingly.
12396         (exception_receiver, nonlocal_got_receiver): New expanders.
12397         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
12398         FAKE_CALL_REGNO.  Remove hazard_set attribute.
12399         (set_got_version, update_got_version): New patterns.
12400
12401 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
12402
12403         PR target/34970
12404         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
12405
12406 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
12407
12408         PR other/31955
12409         * doc/install.texi2html: Generate gcc-vers.texi.
12410
12411 2008-01-25  DJ Delorie  <dj@redhat.com>
12412
12413         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12414
12415 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
12416
12417         * config/c4x: Remove directory.
12418         * config.gcc (crx-*, mt-*): Mark obsolete.
12419         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
12420         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
12421         sh-*-rtemscoff*): Remove cases.
12422         * defaults.h (C4X_FLOAT_FORMAT): Remove.
12423         * real.c (encode_c4x_single, decode_c4x_single,
12424         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
12425         c4x_extended_format): Remove.
12426         * real.h (c4x_single_format, c4x_extended_format): Remove.
12427         * doc/extend.texi (interrupt, naked): Remove mention of attributes
12428         on C4x.
12429         (Pragmas): Remove comment about c4x pragmas.
12430         * doc/install.texi (c4x): Remove target-specific instructions.
12431         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
12432         * doc/md.texi (Machine Constraints): Remove C4x documentation.
12433         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
12434         refer to C4x source files as examples.
12435         (C4X_FLOAT_FORMAT): Remove documentation.
12436
12437 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
12438
12439         * config/bfin/bfin.c (override_options): Reorder tests so that
12440         flag_pic gets enabled for -msep-data.
12441
12442 2008-01-25  Richard Guenther  <rguenther@suse.de>
12443
12444         PR middle-end/32244
12445         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
12446         to its bitfield precision if required.
12447
12448 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
12449
12450         PR middle-end/33880
12451         * tree-nested.c (walk_omp_for): New function.
12452         (convert_nonlocal_reference, convert_local_reference): Call
12453         walk_omp_for on OMP_FOR.
12454         (convert_call_expr): Call walk_body on OMP_FOR's
12455         OMP_FOR_PRE_INIT_BODY.
12456
12457 2008-01-25  Richard Guenther  <rguenther@suse.de>
12458
12459         PR tree-optimization/34966
12460         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
12461         default defs and PHI_NODEs we have to insert after the
12462         defining statement.
12463
12464 2008-01-24  Nick Clifton  <nickc@redhat.com>
12465
12466         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
12467         Provide a default definition.
12468         (LIBGCC2_UNITS_PER_WORD): Likewise.
12469
12470         * config/stormy16/stormy16.c: Include df.h for the prototype
12471         for df_regs_ever_live_p.
12472         (xstormy16_expand_builtin_va_start): Convert the stack offset
12473         into a component_ref and then use POINTER_PLUS_EXPR to add it
12474         to the incoming_virtual_args_rtx.
12475         (xstormy16_gimplify_va_arg_expr): Rename to
12476         xstormy16_gimplify_va_arg_expr.
12477         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
12478         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
12479         xstormy16_gimplify_va_arg_expr.
12480         Fix up some formatting issues.
12481
12482         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
12483         Move to predicates.md.
12484         (xs_hi_general_operand): Likewise.
12485         (xs_hi_nonmemory_operand): Likewise.
12486         * config/stormy16/predicates.md:
12487         (xstormy16_carry_plus_operand): New predicate.
12488         (xs_hi_general_operand): New predicate.
12489         (xs_hi_nonmemory_operand): New predicate.
12490         * config/stormy16/stormy16-protos.h:
12491         (xstormy16_carry_plus_operand): Delete prototype.
12492         (xs_hi_general_operand): Likewise.
12493         (xs_hi_nonmemory_operand): Likewise.
12494
12495         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
12496         modifiers as they are no longer needed and they can trigger
12497         reload spill failures.
12498
12499         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
12500         with a match_operand in order to help reload.
12501
12502         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
12503         constraint with 'e' for the 8th alternative as this version of
12504         the mov.w instruction only accepts the lower 8 registers.
12505
12506 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
12507
12508         PR target/34856
12509         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
12510         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
12511         vector elements.
12512
12513 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
12514
12515         PR middle-end/33333
12516         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
12517
12518 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
12519
12520         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
12521         New functions.
12522         (remove_structure): Update allocations list before removing structure.
12523         
12524 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
12525
12526         * ipa-struct-reorg.c (is_safe_cond_expr, 
12527         create_new_stmts_for_cond_expr): Use integer_zerop function,
12528         that recognize not only zero-pointer, but zero-integer too.
12529
12530 2008-01-25  Ben Elliston  <bje@au.ibm.com>
12531
12532         PR other/22232
12533         * fixproto: Escape "." in sed expression that strips leading "./".
12534
12535 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12536
12537         PR driver/34904
12538         * gcc.c (SWITCH_OK): Removed.
12539         (SWITCH_LIVE): Changed to bit.
12540         (SWITCH_FALSE): Likewise.
12541         (SWITCH_IGNORE): Likewise.
12542         (switchstr): Change live_cond to unsigned int.
12543         (process_command): Replace SWITCH_OK with 0.
12544         (do_self_spec): Likewise.
12545         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
12546         (give_switch): Likewise.
12547         (used_arg): Likewise.
12548         (do_spec_1): Set the SWITCH_IGNORE bit.
12549         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
12550         bits.  Set the SWITCH_LIVE bit.
12551
12552 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
12553
12554         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
12555
12556 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
12557
12558         PR tree-optimization/34472
12559         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
12560         parameter to a "bool *" and set *DATA to false if there is
12561         an unsafe access.  Do not delete the structure here.
12562         (check_cond_exprs): Delete it here instead.
12563         (check_cond_exprs, exclude_cold_structs): Do not increase
12564         I when removing a structure.
12565
12566 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
12567
12568         PR target/34856
12569         * config/i386/i386.c (ix86_expand_vector_init): Consider only
12570         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
12571
12572 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
12573
12574         PR middle-end/34934
12575         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
12576         a fixed vector for stack.
12577
12578 2008-01-24  Ben Elliston  <bje@au.ibm.com>
12579
12580         PR c++/25701
12581         * doc/gcc.texi (Software development): Add a direntry for g++.
12582         
12583 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
12584
12585         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
12586         stale and straggling -fforce-addr comments above.
12587
12588         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
12589         define.
12590         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
12591         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
12592
12593 2008-01-23  Michael Matz  <matz@suse.de>
12594
12595         PR debug/34895
12596         * dwarf2out.c (force_type_die): Use modified_type_die instead of
12597         gen_type_die.
12598
12599 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
12600
12601         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
12602         malloc result type.
12603
12604 2008-01-23 Anatoly Sokolov <aesok@post.ru>
12605
12606         * config/avr/avr.c (avr_current_arch): New variable.
12607         (avr_arch_types): Add 'avr31' and 'avr51' entries.
12608         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
12609         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
12610         (avr_override_options): Init 'avr_current_arch'. 
12611         (base_arch_s): Move from here...
12612         * config/avr/avr.h (base_arch_s): ... here. Add new members 
12613         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
12614         'mega' to 'have_jmp_call'.
12615         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
12616         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
12617         macros.
12618         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
12619         architectures.
12620         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
12621         MULTILIB_MATCHES): (Ditto.).
12622
12623 2008-01-23  Richard Guenther  <rguenther@suse.de>
12624
12625         PR middle-end/31529
12626         * cgraphunit.c (cgraph_reset_node): Always mark the node
12627         not reachable if it is not queued already.
12628
12629 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
12630
12631         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
12632         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
12633         (cputype_selected): New static variable.
12634         (bfin_handle_option): Set it if -mcpu is used.
12635         (override_option): Select default set of workarounds if no cpu type
12636         selected on the command line.
12637         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
12638
12639         From  Michael Frysinger  <michael.frysinger@analog.com>
12640         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
12641         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
12642
12643         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
12644         for bf547, bf523, bf524, and bf526.
12645         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
12646         bf526.
12647         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12648         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
12649         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
12650         __ADSPBF547__ and __ADSPBF54x__ for bf547.
12651         * doc/invoke.texi (Blackfin Options): Document that
12652         -mcpu now accept bf547, bf523, bf524, and bf526.
12653
12654 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
12655
12656         PR rtl-optimization/34628
12657         * combine.c (try_combine): Stop and undo after the first combination
12658         if an autoincrement side-effect on the first insn has effectively
12659         been lost.
12660
12661 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
12662
12663         PR target/34529
12664         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
12665         Offset addresses are not valid for Altivec or paired float modes.
12666
12667 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
12668
12669         PR c++/34607
12670         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
12671         if DECL_INITIAL (decl) is error_mark_node.
12672
12673         PR c++/34914
12674         * c-common.c (handle_vector_size_attribute): Only allow
12675         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
12676         the same way as pointer, array etc. types.
12677         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
12678
12679         PR c++/34917
12680         * tree.c (build_type_attribute_qual_variant): Call
12681         build_qualified_type if attributes are equal, but quals are not.
12682
12683 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12684
12685         PR 32102
12686         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
12687         * flags.h (warn_strict_aliasing): Remove.
12688         (warn_strict_overflow): Remove.
12689         * opts.c (warn_strict_aliasing): Remove.
12690         (warn_strict_overflow): Remove.
12691         * c-opts.c (c_common_handle_option): -Wall only sets
12692         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
12693         (c_common_post_options): Give default values to -Wstrict-aliasing
12694         and -Wstrict-overflow if they are uninitialized.
12695         * common.opt (Wstrict-aliasing): Specify Var and Init.
12696         (Wstrict-overflow): Likewise.
12697
12698 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
12699
12700         PR rtl-optimization/26854
12701         PR rtl-optimization/34400
12702         PR rtl-optimization/34884
12703         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
12704         DF_RD->gen.
12705         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
12706         (df_rd_bb_info.expanded_lr_out): Deleted
12707         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
12708         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
12709         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
12710         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
12711         Removed code to allocate, initialize or free expanded_lr_out.
12712         (df_rd_bb_local_compute_process_def): Restructured to make more
12713         understandable.
12714         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
12715         sets if the sets are being trimmed.
12716
12717 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
12718
12719         PR bootstrap/32287
12720         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
12721         (as_vers): Likewise.
12722         * configure: Regenerated.
12723
12724 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12725
12726         PR middle-end/33092
12727         * tree-pass.h (pass_build_alias): New pass.
12728         * tree-ssa-alias.c (gate_build_alias): New.
12729         (pass_build_alias): New.
12730         * passes.c (init_optimization_passes): Add pass_build_alias after
12731         pass_create_structure_vars.
12732
12733 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
12734
12735         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
12736         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
12737         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
12738         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
12739         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
12740         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
12741         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
12742         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
12743         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
12744         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
12745         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
12746         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
12747         * config/s390/s390.md (FP_ALL): New mode iterator.
12748         (_d): New mode attribute.
12749         ("*signbit<mode>2>"): Changed mode of first operand.
12750         ("isinf<mode>2"): Changed mode of first operand.
12751         ("*TDC_insn"): Adaptation for DFP modes.
12752
12753 2008-01-22  Ben Elliston  <bje@au.ibm.com>
12754
12755         * tree.c (check_qualified_type): Improve function description.
12756
12757 2008-01-21  Jason Merrill  <jason@redhat.com>
12758
12759         PR c++/34196
12760         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
12761         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
12762         if it is set.
12763
12764 2008-01-21  DJ Delorie  <dj@redhat.com>
12765
12766         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
12767         return zero.
12768
12769 2008-01-21  Richard Guenther  <rguenther@suse.de>
12770
12771         PR middle-end/34856
12772         * tree-cfg.c (verify_expr): Allow all invariant expressions
12773         instead of just constant class ones as reference argument.
12774         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
12775         like any other constant.
12776         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
12777
12778 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
12779
12780         * regmove.c (fixup_match_1): Update call crossed frequencies.
12781
12782 2008-01-21  Richard Guenther  <rguenther@suse.de>
12783
12784         PR c/34885
12785         * tree-inline.c (setup_one_parameter): Deal with mismatched
12786         types using a VIEW_CONVERT_EXPR.
12787
12788 2008-01-21  Alon Dayan  <alond@il.ibm.com>
12789             Olga Golovanevsky  <olga@il.ibm.com>
12790         
12791         PR tree-optimization/34701
12792         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
12793         when the structure size is not a power of 2.
12794
12795 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
12796
12797         * doc/install.texi: Add doc for --enable-checking=df.
12798         
12799 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12800
12801         PR rtl-optimization/34808
12802         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
12803
12804 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
12805
12806         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
12807         input.
12808
12809 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
12810
12811         PR rtl-optimization/26854
12812         PR rtl-optimization/34400
12813         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
12814         DF_RD->gen.
12815         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
12816         (df_rd_bb_info.expanded_lr_out): New.
12817         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
12818         * loop_iv.c (iv_analysis_loop_init): Ditto.
12819         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
12820         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
12821         Added code to allocate, initialize or free expanded_lr_out.
12822         (df_rd_bb_local_compute_process_def): Restructured to make
12823         more understandable.
12824         (df_rd_confluence_n): Add code to do nothing with fake edges and
12825         code to no apply invalidate_by_call sets if the sets are being trimmed.
12826         (df_lr_local_finalize): Renamed to df_lr_finalize.
12827         (df_live_local_finalize): Renamed to df_live_finalize.
12828
12829 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
12830
12831         PR target/34831
12832         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
12833         deciding whether to use reciprocal instructions.
12834
12835 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
12836
12837         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
12838         dwarf2out_note_section_used if cold_text_section is NULL.
12839
12840 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
12841
12842         PR gcov-profile/34610
12843         * tree-cfg.c (make_edges): Mark both outgoing edges from
12844         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
12845         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
12846         from OMP_FOR and OMP_CONTINUE outgoing edges.
12847
12848         * tree-profile.c (tree_profiling): Return early if
12849         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
12850         at the end.
12851         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
12852         from cfun to child_cfun.
12853         * function.h (struct function): Add after_tree_profile bit.
12854
12855 2008-01-19 Anatoly Sokolov <aesok@post.ru>
12856
12857         * config/avr/avr.S (_exit): Disable interrupt.
12858
12859 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
12860             Steven Bosscher  <stevenb.gcc@gmail.com>
12861
12862         PR rtl-optimization/26854
12863         PR rtl-optimization/34400
12864         * df-problems.c (df_live_scratch): New scratch bitmap.
12865         (df_live_alloc): Allocate df_live_scratch when doing df_live.
12866         (df_live_reset): Clear the proper bitmaps.
12867         (df_live_bb_local_compute): Only process the artificial defs once
12868         since the order is not important.
12869         (df_live_init): Init the df_live sets only with the variables
12870         found live by df_lr.
12871         (df_live_transfer_function): Use the df_lr sets to prune the
12872         df_live sets as they are being computed.  
12873         (df_live_free): Free df_live_scratch.
12874
12875 2008-01-18  Ian Lance Taylor  <iant@google.com>
12876
12877         * common.opt: Add fmerge-debug-strings.
12878         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
12879         flag_merge_debug_strings rather than flag_merge_constants.
12880         * doc/invoke.texi (Option Summary): Mention
12881         -fmerge-debug-strings.
12882         (Debugging Options): Document -fmerge-debug-strings.
12883
12884 2008-01-18  Ian Lance Taylor  <iant@google.com>
12885
12886         PR c++/33407
12887         * tree.h (DECL_IS_OPERATOR_NEW): Define.
12888         (struct tree_function_decl): Add new field operator_new_flag.
12889         * tree-inline.c (expand_call_inline): When inlining a call to
12890         operator new, force the return value to go into a variable, and
12891         set DECL_NO_TBAA_P on that variable.
12892         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
12893
12894 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
12895
12896         PR debug/34484
12897         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
12898         DWARF2_DEBUGGING_INFO.
12899         (dwarf2out_note_section_used): Ditto.  Add prototype.
12900         (have_multiple_function_sections, text_section_used,
12901         cold_text_section_used, *cold_text_sections): Move declarations
12902         before their uses.
12903
12904 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
12905
12906         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
12907         field and add signal_ra.
12908         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
12909         assignments to frame state pc.  Move end of stack check after
12910         MD_FALLBACK_FRAME_STATE_FOR.
12911         (uw_update_context_1): Use frame state signal_regs if set, instead
12912         of checking signal_frame flag.
12913         (uw_update_context): Use frame state signal_ra if set.
12914         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
12915         * config/xtensa/linux-unwind.h: New file.
12916
12917 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
12918
12919         * modulo-sched.c (get_sched_window): Fix comment typo.
12920
12921 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
12922
12923         PR tree-optimization/34648
12924         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
12925
12926 2008-01-17  Anatoly Sokolov <aesok@post.ru>
12927
12928         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
12929         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
12930
12931 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
12932
12933         PR rtl-optimization/34400
12934         * df-core.c (df_worklist_dataflow_overeager,
12935         df_worklist_dataflow_doublequeue): New functions.
12936         (df_worklist_dataflow): Two different worklist solvers.
12937         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
12938         New param.
12939
12940 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
12941
12942         PR testsuite/34821
12943         * doc/invoke.texi: Document the dependence on pthread for fopenmp
12944         and ftree-parallelize-loops.
12945
12946 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
12947
12948         PR rtl-optimization/34826
12949         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
12950
12951 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
12952
12953         * global.c (find_reg): Mark the eh regs as used if necessary.
12954         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
12955         * ra.h (struct allocno): no_eh_reg field added.  Changed
12956         no_stack_reg type to bitfield.
12957
12958 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
12959
12960         * tree.c (substitute_in_expr): Add missing 'break'.
12961
12962 2008-01-17  Richard Guenther  <rguenther@suse.de>
12963
12964         PR tree-optimization/34825
12965         * tree-ssa-math-opts.c (is_division_by): Do not recognize
12966         x / x as division to handle.
12967
12968 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12969
12970         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
12971         "-pthread" is specified.
12972         * pa-hpux11.h (LIB_SPEC): Likewise.
12973
12974 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
12975             Peter Bergner  <bergner@vnet.ibm.com>
12976
12977         PR rtl-optimization/33796
12978         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
12979
12980 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12981
12982         PR libgfortran/34699
12983         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
12984         static links.
12985         * pa-hpux10.h (LINK_SPEC): Likewise.
12986         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
12987
12988 2008-01-16  Richard Guenther  <rguenther@suse.de>
12989
12990         PR middle-end/32628
12991         * fold-const.c (fold_convert_const_int_from_int): Do not
12992         set overflow if that occured only because of a sign extension
12993         change when converting from/to a sizetype with the same
12994         precision and signedness.
12995
12996 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
12997
12998         PR debug/34249
12999         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
13000         location address to the correct place.  Update copyright year.
13001
13002 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13003
13004         * lambda-code.c (lambda_transform_legal_p): Handle the case of
13005         no dependences in the dependence_relations vector.
13006
13007 2008-01-16  Jan Hubicka  <jh@suse.cz>
13008
13009         PR rtl-optimization/31396
13010         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
13011         * cfg.c (dump_reg_info): Print it.
13012         * regs.h (struct reg_info_t): add freq_calls_crossed.
13013         (REG_FREQ_CALLS_CROSSED): New macro.
13014         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
13015         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
13016         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
13017         regmove_optimize): Update call crossed frequencies.
13018         * local-alloc.c (struct qty): Add freq_calls_crossed.
13019         (alloc_qty): Copute freq_calls_crossed.
13020         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
13021         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
13022         * ra.h (struct allocno): Add freq_calls_crossed.
13023
13024 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13025
13026         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
13027         libgomp when compiling with ftree-parallelize-loops.
13028         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
13029
13030 2008-01-16  Richard Guenther  <rguenther@suse.de>
13031
13032         PR tree-optimization/34769
13033         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
13034         * tree.c (int_cst_value): Instead make this function more
13035         permissive in what it accepts as valid input.  Document this
13036         function always sign-extends the value.
13037
13038 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
13039             Richard Guenther  <rguenther@suse.de>
13040
13041         PR c/34668
13042         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
13043         (gimple_fold_indirect_ref_rhs): ... this.
13044         (gimple_fold_indirect_ref): New function with foldings
13045         that preserve lvalueness.
13046         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
13047         * tree-flow.h (gimple_fold_indirect_ref): Declare.
13048         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
13049         to fold an INDIRECT_REF, fall back to the old use of
13050         fold_indirect_ref_1.
13051
13052 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13053
13054         * tree-data-ref.c (subscript_dependence_tester_1): Call 
13055         free_conflict_function.
13056         (compute_self_dependence): Same.
13057
13058 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
13059
13060         PR debug/34249
13061         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
13062         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
13063         function global.
13064         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
13065         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
13066         for DWARF2_UNWIND_INFO targets.
13067
13068 2008-01-16  Richard Guenther  <rguenther@suse.de>
13069
13070         PR c/34768
13071         * c-typeck.c (common_pointer_type): Do not merge inconsistent
13072         type qualifiers for function types.
13073
13074 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
13075
13076         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
13077         loop_iterator li from previous commit.
13078
13079 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
13080
13081         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
13082
13083 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
13084
13085         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
13086         (parallelize_loops): Don't parallelize irreducible components.
13087
13088 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13089
13090         PR c++/24924
13091         * c-opts (c_common_post_options): Do not enable CPP
13092         flag_pedantic_errors by default.
13093         
13094 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
13095
13096         PR rtl-optimization/31944
13097         * cse.c (remove_pseudo_from_table): New function.
13098         (merge_equiv_classes): Use above function to remove pseudo-registers.
13099         (invalidate): Likewise.
13100
13101 2008-01-13  Richard Guenther  <rguenther@suse.de>
13102
13103         PR middle-end/34601
13104         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
13105         instead of TYPE_MODE to deal with calls from expand_one_error_var.
13106
13107 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
13108
13109         * gcse.c (cprop_jump): Call validate_unshare_change instead of
13110         validate_change to unshare the source of the PC set.
13111
13112 2008-01-12  Jan Hubicka  <jh@suse.cz>
13113
13114         PR middle-end/32135
13115         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
13116         references above array bounds.  This might trigger bounds checks for
13117         pointers to arrays.
13118
13119 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
13120
13121         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
13122         new_replaceable_dependencies.
13123
13124 2008-01-12  Doug Kwan  <dougkwan@google.com>
13125
13126         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
13127         instead of OPT_Wreturn_type in warning due to ignored return type
13128         qualifiers.
13129         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
13130         options included in -Wextra.
13131         * c.opt: New option -Wignored_qualifiers.
13132         * doc/invoke.texi (Warning Options, -Wextra): Add new option
13133         -Wignore_qualifiers.
13134         (-Wignored-qualifiers): Document.
13135         (-Wreturn-type): Remove description of functionality now handled
13136         by -Wignored-qualifiers.
13137
13138 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
13139
13140         PR ada/33788
13141         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
13142         NOP_EXPR if it is between integral types with the same precision.
13143
13144 2008-01-12  Jan Hubicka  <jh@suse.cz>
13145
13146         PR other/28023
13147         * invoke.texi (max-inline-recursive-depth): Fix default value.
13148
13149 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
13150
13151         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
13152         correct type.
13153
13154 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
13155         
13156         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
13157         
13158 2008-01-11  James E. Wilson  <wilson@specifix.com>
13159
13160         PR target/26015
13161         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
13162
13163 2008-01-11  Anatoly Sokolov <aesok@post.ru>
13164
13165         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
13166         save/restore frame pointer register and don't use 'call-prologues' 
13167         optimization in function with "OS_task" attribute.
13168
13169 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13170
13171         PR middle-end/31309
13172         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
13173         when copying to memory.
13174
13175 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
13176
13177         PR rtl-optimization/30905
13178         * cfgcleanup.c: Include dce.h
13179         (crossjumps_occured): New global variable.
13180         (try_crossjump_bb): Exit loop after finding a fallthru edge.
13181         If something changed, set crossjumps_occured to true.
13182         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
13183         Don't add/remove fake edges to exit here...
13184         (cleanup_cfg): ...but do it here, when crossjumping.
13185         Run a fast DCE when successful crossjumps occured in the latest
13186         iteration of try_optimize_cfg.
13187
13188 2008-01-11  Richard Guenther  <rguenther@suse.de>
13189
13190         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
13191         (struct vn_unary_op_s): Likewise.
13192         (vn_reference_insert): Free old reference on hash collision.
13193
13194 2008-01-10  Raksit Ashok  <raksit@google.com>
13195
13196         PR rtl-optimization/27971
13197         * combine.c (find_split_point): Split PLUS expressions which are
13198         inside a MEM rtx, and whose first operand is complex.
13199
13200 2008-01-10  DJ Delorie  <dj@redhat.com>
13201
13202         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
13203         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
13204         (m32c_hard_regno_ok): Call the underlying function.
13205
13206 2008-01-10  Richard Guenther  <rguenther@suse.de>
13207
13208         PR middle-end/34683
13209         * tree-cfg.c (tree_merge_blocks): Do not go through the
13210         full-blown folding and stmt updating path if we just deal
13211         with virtual operands.
13212         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
13213         test for abnormal SSA_NAMEs.
13214
13215 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
13216
13217         PR middle-end/34641
13218         * reload.c (push_reload): Add assertions.  All constants from
13219         reg_equiv_constant should have been used for replacing the respective
13220         pseudo earlier.
13221         (find_reloads_address): Invoke find_reloads_address_part for
13222         constant taken from the reg_equiv_constant array.
13223
13224 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
13225
13226         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
13227         field (valnum) the first in the struct.  Replace bools with
13228         unit bit fields.
13229
13230 2008-01-10  Richard Guenther  <rguenther@suse.de>
13231
13232         PR tree-optimization/34651
13233         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
13234         types and ordering for masking and converting.
13235
13236 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
13237
13238         PR tree-optimization/34017
13239         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
13240         also for PHI_NODE expressions.
13241
13242 2008-01-09  Jan Hubicka  <jh@suse.cz>
13243
13244         PR tree-optimization/34708
13245         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
13246         based on number of case labels.
13247         (init_inline_once): Remove switch_cost.
13248         * tree-inline.h (eni_weights_d): Remove switch_cost.
13249
13250 2008-01-09  Richard Guenther  <rguenther@suse.de>
13251         Andrew Pinski  <andrew_pinski@playstation.sony.com>
13252
13253         PR middle-end/30132
13254         * gimplify.c (gimplify_cond_expr): Do not create an addressable
13255         temporary if an rvalue is ok or an lvalue is not required.
13256
13257 2008-01-09  Richard Guenther  <rguenther@suse.de>
13258
13259         PR middle-end/34458
13260         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
13261         adjust return type.
13262
13263 2008-01-09  Richard Guenther  <rguenther@suse.de>
13264
13265         PR middle-end/34679
13266         * tree.c (host_integerp): Check for sizetype only if the
13267         type is an integer type.
13268
13269 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
13270
13271         PR debug/26364
13272         * opts.c (decode_options): Disable inlining of functions called
13273         once if not in unit-at-a-time mode.
13274
13275 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
13276
13277         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
13278
13279 2008-01-08  Richard Guenther  <rguenther@suse.de>
13280
13281         PR middle-end/31863
13282         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
13283         out early if the result will be unused.
13284
13285 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
13286
13287         PR target/34709
13288         Revert:
13289
13290         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
13291         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
13292         for TARGET_RECIP.       
13293         
13294 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
13295         
13296         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
13297         for vectorization tuned.
13298         
13299 2008-01-08  Richard Guenther  <rguenther@suse.de>
13300
13301         PR tree-optimization/34683
13302         * tree-ssa-operands.c (operand_build_cmp): Export.
13303         * tree-ssa-operands.h (operand_build_cmp): Declare.
13304         * tree-vn.c (vuses_compare): Remove.
13305         (sort_vuses): Use operand_build_cmp.
13306         (sort_vuses_heap): Likewise.
13307         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
13308         to re-use old VEC if available.  Do not sort already sorted VUSEs.
13309         (vdefs_to_vec): Do not sort already sorted VDEFs.
13310
13311 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
13312
13313         PR middle-end/34694
13314         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
13315
13316 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
13317
13318         PR target/34702
13319         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
13320         limitations of reciprocal sequences on x86 targets.
13321
13322 2008-01-08  Richard Guenther  <rguenther@suse.de>
13323
13324         PR tree-optimization/34683
13325         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
13326
13327 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
13328
13329         PR target/34622
13330         * config/darwin.c (darwin_mergeable_string_section): Don't use
13331         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
13332
13333 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
13334
13335         PR target/34682
13336         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
13337         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
13338         predicates of op0 and op1 to register_operand.
13339         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
13340         expander using X87MODEF mode iterator.  Change predicates of
13341         op0 and op1 to register_operand.
13342         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
13343         corresponding patterns and macroize using MODEF macro.  Change
13344         predicates of op0 and op1 to register_operand and remove
13345         "m" constraint. Disparage "r" alternative with "!".
13346         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
13347         macroize using X87MODEF macro.  Change predicates of op0 and op1
13348         to register_operand and remove "m" constraint.  Disparage "r"
13349         alternative with "!".
13350         (absneg splitter with memory operands): Remove.
13351         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
13352         patterns and macroize using X87MODEF mode iterator.
13353         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
13354         Change predicate of op1 to register_operand.
13355         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
13356         for memory operands.
13357
13358 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
13359
13360         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
13361
13362 2008-01-07  Richard Guenther  <rguenther@suse.de>
13363
13364         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
13365         fields.
13366
13367 2008-01-07  Richard Guenther  <rguenther@suse.de>
13368
13369         PR tree-optimization/34683
13370         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
13371         VOPs of the needed size to save memory.  Use VEC_quick_push
13372         to save compile-time.
13373         (vdefs_to_vec): Likewise.
13374
13375 2008-01-07  Sa Liu  <saliu@de.ibm.com>
13376
13377         * config/spu/spu.md (divdf3): Genetate inline code for double
13378         division.  The implementation doesn't handle INF or NAN, therefore it
13379         only applies when -ffinite-math-only is given.
13380
13381 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
13382
13383         PR libstdc++/34680
13384         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
13385         * doc/cpp.texi ([Common Predefined Macros]): Document.
13386
13387 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
13388
13389         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
13390         order to use commutative addition instead of subtraction.
13391
13392 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13393             Mircea Namolaru  <namolaru@il.ibm.com>
13394             Vladimir Yanovsky  <yanov@il.ibm.com>
13395             Revital Eres  <eres@il.ibm.com>
13396
13397         PR tree-optimization/34263
13398         * tree-outof-ssa.c (process_single_block_loop_latch,
13399         contains_tree_r): New functions.
13400         (analyze_edges_for_bb): Call process_single_block_loop_latch
13401         function to empty single-basic-block latch block if possible.
13402
13403 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
13404
13405         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
13406         for TARGET_RECIP.
13407         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
13408
13409 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
13410
13411         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
13412
13413 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
13414
13415         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
13416
13417 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
13418
13419         PR tree-optimization/34618
13420         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
13421         flag from T.
13422
13423 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
13424
13425         PR target/34673
13426         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
13427         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
13428         Update copyright year.
13429
13430         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
13431         Update copyright year.
13432         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
13433         using NR fixup.
13434
13435 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
13436
13437         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
13438         edge does not point to current bb before changing need_assert.
13439
13440 2008-01-04  Richard Guenther  <rguenther@suse.de>
13441
13442         PR middle-end/34029
13443         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
13444         for verifying purposes if they are is_gimple_min_invariant.
13445
13446 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
13447
13448         PR tree-optimization/34448
13449         PR tree-optimization/34465
13450         * gimplify.c (gimplify_init_constructor): Add new parameter
13451         notify_temp_creation.  Use it.
13452         (gimplify_modify_expr_rhs): Take volatiles into account when
13453         optimizing constructors.
13454         Do not optimize constructors if gimplify_init_constructor will dump to
13455         memory.
13456         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
13457         * gcc.c-torture/compile/pr34448.c: New.
13458
13459 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
13460
13461         PR gcov-profile/34609
13462         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
13463         return_slot if result is TREE_ADDRESSABLE.
13464
13465 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
13466
13467         * config/mips/mips.md (sqrt_condition): Tweak comment.
13468         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
13469
13470 2008-01-03  Tom Tromey  <tromey@redhat.com>
13471
13472         PR c/34457
13473         * c-common.c (c_type_hash): Handle VLAs.
13474
13475 2008-01-03  Jan Hubicka  <jh@suse.cz>
13476
13477         PR tree-optimization/31081
13478         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
13479         0 when inlining and not inlining to first basic block.
13480         (remap_decl): When var is initialized to 0, don't set default_def.
13481         (expand_call_inline): Set entry_bb.
13482         * tree-inline.h (copy_body_data): Add entry_bb.
13483
13484 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
13485
13486         PR c++/34619
13487         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
13488         before returning.
13489
13490         PR tree-optimization/29484
13491         * tree-inline.c (inline_forbidden_p_2): New function.
13492         (inline_forbidden_p): Disallow inlining if some static var
13493         has an address of a local LABEL_DECL in its initializer.
13494         * doc/extend.texi (Labels as Values): Document &&foo behaviour
13495         vs. inlining.
13496
13497 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13498
13499         PR tree-optimization/34635
13500         * tree-data-ref.c (add_other_self_distances): Make sure that the
13501         evolution step is constant.
13502
13503 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
13504
13505         PR middle-end/34608
13506         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
13507
13508 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
13509
13510         * tree-sra.c (scalarize_init): Insert the generate_element_init
13511         statements after the generate_element_zero statements.
13512
13513 2008-01-02  Richard Guenther  <rguenther@suse.de>
13514
13515         PR middle-end/34093
13516         PR middle-end/31976
13517         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
13518         for very large number of operands instead of ICEing.
13519
13520 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
13521
13522         PR target/34013
13523         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
13524         while stack probing.
13525
13526 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
13527
13528         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
13529         in C++0x mode.
13530
13531 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
13532
13533         PR libmudflap/26442
13534         * tree-mudflap.c (mx_register_decls): Guard warning by
13535         !DECL_ARTIFICIAL check.
13536
13537 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
13538
13539         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
13540         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
13541         sse5_perm<mode>): Fix constraints.