]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
re PR debug/36617 (Debug info for OpenMP code is almost non-existent)
[gcc.git] / gcc / ChangeLog
1 2008-06-27 Jakub Jelinek <jakub@redhat.com>
2
3 PR debug/36617
4 * tree-cfg.c (struct move_stmt_d): Replace block field with
5 orig_block and new_block fields.
6 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
7 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
8 (move_block_to_fn): Replace vars_map and new_label_map arguments
9 with struct move_stmt_d pointer.
10 (replace_block_vars_by_duplicates): New function.
11 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
12 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
13 all subblocks of ORIG_BLOCK to the new function. Call
14 replace_block_vars_by_duplicates.
15 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
16 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
17 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
18 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
19 (expand_omp): Temporarily set input_location to the location of
20 region's controlling stmt.
21 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
22 BIND_EXPR, push ctx->block_vars and gimplification vars into
23 the BIND_EXPR and its block's BLOCK_VARS instead of directly
24 into dest function.
25 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
26 there are any BLOCK_VARS.
27 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
28 OMP_PARALLEL or OMP_TASK stmt.
29 (lower_omp): Save and restore input_location around the lower_omp_1
30 call.
31
32 2008-06-27 Richard Guenther <rguenther@suse.de>
33
34 PR tree-optimization/36400
35 PR tree-optimization/36373
36 PR tree-optimization/36344
37 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
38 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
39 (update_alias_info): Remove call clobbering code.
40 (make_constraint_to): New helper function.
41 (make_escape_constraint): Likewise.
42 (handle_rhs_call): Use it on all pointer containing arguments.
43 Also mark the static chain escaped.
44 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
45 instead of ANYTHING.
46 (make_constraint_from): New helper split out from ...
47 (make_constraint_from_anything): ... here.
48 (find_func_aliases): Add constraints for escape sites.
49 (intra_create_variable_infos): Make constraints from NONLOCAL
50 for parameters.
51 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
52 as ANYTHING.
53 (clobber_what_p_points_to): Remove.
54 (clobber_what_escaped): New function.
55 (init_base_vars): Init NONLOCAL and ESCAPED.
56 (do_sd_constraint): Do not propagate the solution from ESCAPED
57 but use ESCAPED as a placeholder.
58 (solve_graph): Likewise.
59 * tree-flow.h (clobber_what_p_points_to): Remove.
60 (clobber_what_escaped): Declare.
61 * tree-ssa-alias.c (set_initial_properties): Call it.
62 Remove code clobbering escaped pointers.
63
64 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
65
66 * function.c (allocate_struct_function): Only allocate a unique
67 funcdef_no if the decl is nonzero.
68
69 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
70
71 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
72 * config/mips/mips.c (mips_split_const_insns): New function.
73 * config/mips/mips.md (move_type): New attribute.
74 (mode): Move attribute definition earlier in file. Add "TI"
75 and "TF".
76 (dword_mode): New attribute.
77 (type): Avoid long line. Map "move_type"s to "type"s,
78 choosing "multi" for doubleword moves if appropriate.
79 Swap MTC/MFC comments to match their declaration order.
80 (extended_mips16): Default to "yes" if "move_type" is "sll0",
81 "type" is "branch" or "jal" is "direct".
82 (length): Handle "extended_mips16" first. Make the default
83 "0" for "ghost" instructions. Set the length from "move_type".
84 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
85 of "type", with "sll0" for the register alternative. Remove the
86 "extended_mips16" attribute.
87 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
88 of "type", with "shift_shift" for the register alternative.
89 Remove the "length" attribute.
90 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
91 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
92 of "type", with "andi" for the register alternative.
93 (*zero_extendqihi2): Likewise.
94 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
95 of "andi" instead of a "type" of "arith".
96 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
97 instead of "type".
98 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
99 (mov_<store>r, *mov<mode>_ra): Likewise.
100 (extendsidi2): Use "move_type" instead of "type", with "move"
101 for the register alternative.
102 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
103 of "type", with "signext" for the register alternative.
104 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
105 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
106 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
107 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
108 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
109 (unnamed branch insn): Likewise.
110 (*movdi_gp32_fp64): Fold into...
111 (*movdi_32bit): ...here.
112 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
113 (*movdf_hardfloat): ...this new pattern.
114 (*movdf_softfloat): Remove redundant FPR alternatives.
115 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
116 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
117 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
118 the "move" attribute.
119 (*movdi_32bit): Use "move_type" instead of "type" and remove the
120 "length" attribute. Use "fpload" and "fpstore" instead of "load"
121 and "store" for COP loads and stores.
122 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
123 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
124 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
125 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
126 (*movtf_mips16, *movv2sf): Likewise.
127 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
128 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
129 (mfhc1<mode>): Use "move_type" instead of "move".
130 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
131 (loadgp_blockage): Remove the "length" attribute.
132 (blockage, set_got_version, update_got_version): Likewise.
133 (call_internal): Remove the "extended_mips16" attribute.
134 (call_value_internal, call_value_multiple_internal): Likewise.
135 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
136 instead of "move".
137 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
138 the "length" attribute.
139
140 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
141
142 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
143 -Wcast-qual warnings.
144 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
145 handle_pragma_pop_macro): Likewise.
146 * collect2.c (resolve_lib_name): Likewise.
147 * config/arc/arc.c (arc_init): Likewise.
148 * config/arm/arm.c (neon_builtin_compare,
149 locate_neon_builtin_icode): Likewise.
150 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section):
151 Likewise.
152 * config/bfin/bfin.c (bfin_init_machine_status,
153 bfin_optimize_loop): Likewise.
154 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
155 * config/cris/cris.c (cris_init_expanders): Likewise.
156 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
157 * config/darwin.c (machopic_indirection_eq,
158 machopic_indirection_name, machopic_output_indirection):
159 Likewise.
160 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
161 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
162 frv_optimize_membar): Likewise.
163 * config/i386/cygwin.h (mingw_scan,
164 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
165 * config/i386/cygwin1.c (mingw_scan): Likewise.
166 * config/i386/i386.c (machopic_output_stub): Likewise.
167 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
168 i386_pe_unique_section): Likewise.
169 * config/ia64/ia64.c (ia64_init_machine_status,
170 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
171 Likewise.
172 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
173 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
174 * config/m68k/m68k.c (m68k_handle_option,
175 m68k_sched_md_init_global): Likewise.
176 * config/mcore/mcore.c (mcore_mark_dllexport,
177 mcore_mark_dllimport, mcore_unique_section): Likewise.
178 * config/mips/mips.c (mips_block_move_straight,
179 mips16_rewrite_pool_refs, mips_sim_wait_regs_2,
180 mips_sim_record_set): Likewise.
181 * config/mmix/mmix.c (mmix_init_machine_status,
182 mmix_encode_section_info): Likewise.
183 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label):
184 Likewise.
185 * config/rs6000/rs6000.c (rs6000_init_machine_status,
186 print_operand_address, output_toc, redefine_groups,
187 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
188 * config/s390/s390.c (s390_init_machine_status): Likewise.
189 * config/score/score.c (score_block_move_straight,
190 score_block_move_loop_body): Likewise.
191 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
192 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
193 * emit-rtl.c (find_auto_inc): Likewise.
194 * gcc.c (translate_options, process_command): Likewise.
195 * reorg.c (dbr_schedule): Likewise.
196 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
197 * xcoffout.c (xcoffout_declare_function): Likewise.
198
199 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
200
201 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
202 ipa-pta working again.
203
204 2008-06-27 David Edelsohn <edelsohn@gnu.org>
205
206 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
207 genautomata.
208
209 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
210
211 * config.gcc (powerpc*-*-*): Add new core e500mc.
212 * config/rs6000/e500mc.md: New file.
213 * config/rs6000/rs6000.c (processor_costs): Add new costs for
214 e500mc.
215 (rs6000_override_options): Add e500mc case to
216 processor_target_table. Altivec and Spe options not allowed
217 with e500mc. Add isel instruction to e500mc by
218 default. Initialize rs6000_cost for e500mc.
219 (rs6000_issue_rate): Set issue rate for e500mc.
220 * config/rs6000/rs6000.h (processor_type): Add
221 PROCESSOR_PPCE500MC.
222 (ASM_CPU_SPEC): Add e500mc.
223 Set TARGET_ISEL to rs6000_isel.
224 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
225 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
226 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
227 Include e500mc.md.
228 * doc/invoke.texi: Add e500mc to list of cpus.
229
230 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
231
232 PR c/34867
233 * c-lex.c (lex_charconst): Initialize unsignedp.
234
235 2008-06-27 Olivier Hainque <hainque@adacore.com>
236
237 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
238 documented assumptions.
239
240 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
241
242 * dwarf2out.c: Remove trailing white spaces. Break long line
243 in comments.
244
245 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
246
247 * libfuncs.h (LTI_synchronize): New libfunc_index.
248 (synchronize_libfunc): Declare.
249 * builtins.c (expand_builtin_synchronize): Consider using
250 synchronize_libfunc before falling back on an asm blockage.
251 * config/mips/mips.c: Include libfuncs.h
252 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
253
254 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
255
256 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
257 parameter. Copy stack_reg to r11 where appropriate.
258 (no_global_regs_above): Add gpr parameter.
259 (rs6000_stack_info): Only add padding for SPE save area if we
260 are saving SPE GPRs and CR.
261 (saveres_routine_syms): New variable.
262 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
263 Define.
264 (rs6000_savres_routine_sym): New function.
265 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
266 split out of...
267 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
268 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
269 Tweak FPR out-of-line saving.
270 (rs6000_make_savres_rtx): New function.
271 (rs6000_use_multiple_p): New function.
272 (rs6000_savres_strategy): New function.
273 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
274 out-of-line if appropriate.
275 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
276 if we are optimizing for size.
277 (GP_SAVE_INLINE): Define.
278 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
279 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
280 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
281 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
282 (*save_fpregs_<mode>): Add use of r11.
283 (*restore_gpregs_<mode>): New insn.
284 (*return_and_restore_gpregs_<mode>): New insn.
285 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
286 use r11.
287 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
288 (*restore_gpregs_spe): New insn.
289 (*return_and_restore_gpregs_spe): New insn.
290 * config/rs6000/predicates.md (save_world_operation): Fix check.
291
292 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
293
294 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
295 this point, so assert that.
296
297 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
298
299 * cfganal.c: Include vec.h and vecprim.h.
300 (compute_idf): Import from...
301 * tree-into-ssa (compute_idf): ...here.
302 * basic-block.h (compute_idf): Export.
303
304 2008-06-26 Joseph Myers <joseph@codesourcery.com>
305
306 * c-decl.c (merge_decls): Use !current_function_decl to check for
307 extern declaration of C99 inline function being at file scope.
308
309 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
310
311 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
312
313 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
314
315 * alias.c (record_alias_subset, init_alias_analysis): Fix
316 -Wc++-compat and/or -Wcast-qual warnings.
317 * attribs.c (lookup_attribute_spec): Likewise.
318 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
319 copy_bb, connect_traces,
320 find_rarely_executed_basic_blocks_and_cr): Likewise.
321 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
322 note_btr_set, migrate_btr_defs): Likewise.
323 * builtins.c (result_vector, expand_builtin_memcpy,
324 expand_builtin_mempcpy_args, expand_builtin_strncpy,
325 builtin_memset_read_str, expand_builtin_printf,
326 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
327 Likewise.
328 * caller-save.c (mark_set_regs): Likewise.
329 * calls.c (expand_call, emit_library_call_value_1): Likewise.
330 * cgraph.c (cgraph_edge): Likewise.
331 * combine.c (likely_spilled_retval_1): Likewise.
332 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
333 htab_counts_entry_del, get_coverage_counts): Likewise.
334 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
335 new_cselib_val): Likewise.
336 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
337 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
338 Likewise.
339 * df-core.c (df_compact_blocks): Likewise.
340 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
341 * df-scan.c (df_grow_reg_info, df_ref_create,
342 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
343 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
344 df_record_entry_block_defs, df_record_exit_block_uses,
345 df_bb_verify): Likewise.
346 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
347 DF_REF_EXTRACT_MODE_CONST): New.
348 * dominance.c (get_immediate_dominator, get_dominated_by,
349 nearest_common_dominator, root_of_dom_tree,
350 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
351 -Wc++-compat and/or -Wcast-qual warnings.
352 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
353 record_store, replace_read, check_mem_read_rtx, scan_insn,
354 dse_step1, dse_record_singleton_alias_set): Likewise.
355 * dwarf2asm.c (dw2_force_const_mem): Likewise.
356
357 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
358
359 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
360 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
361 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
362 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
363 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
364 add_ranges_num, add_ranges_by_labels, file_info_cmp,
365 file_name_acquire, output_file_names, add_const_value_attribute,
366 premark_used_types_helper, file_table_eq, file_table_hash,
367 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
368 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
369 -Wcast-qual warnings.
370 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
371 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
372 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
373 gen_reg_rtx, start_sequence, init_emit): Likewise.
374 * et-forest.c (et_new_occ, et_new_tree): Likewise.
375 * except.c (init_eh_for_function, gen_eh_region,
376 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
377 arh_to_landing_pad, arh_to_label, add_action_record,
378 add_call_site, switch_to_exception_section): Likewise.
379 * expmed.c (synth_mult): Likewise.
380 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
381 store_expr): Likewise.
382 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
383 Likewise.
384 * function.c (assign_stack_temp_for_type,
385 allocate_struct_function, match_asm_constraints_1): Likewise.
386 * gcov-io.c (gcov_allocate): Likewise.
387 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
388 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
389 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
390 record_one_set, insert_expr_in_table, insert_set_in_table,
391 dump_hash_table, compute_hash_table_work, alloc_hash_table,
392 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
393 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
394 -Wcast-qual warnings.
395
396 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
397
398 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
399 -Wcast-qual warnings.
400 * gcc.c (process_command): Likewise.
401 * genattrtab.c (oballoc): Use XOBNEW.
402 (oballocvec): Define.
403 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
404 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
405 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
406 -Wc++-compat and/or -Wcast-qual warnings.
407 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
408 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
409 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
410 gen_presence_absence_set, gen_automaton, gen_regexp_el,
411 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
412 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
413 add_excls, process_presence_absence_names,
414 process_presence_absence_patterns, add_presence_absence,
415 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
416 get_free_state, add_arc, get_free_automata_list_el,
417 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
418 transform_3, cache_presence, create_ainsns, create_automata,
419 create_state_ainsn_table, dfa_insn_code_enlarge,
420 output_trans_func, output_min_issue_delay_func,
421 output_dead_lock_func, output_reset_func,
422 output_get_cpu_unit_code_func, output_dfa_start_func,
423 expand_automata): Likewise.
424 * genextract.c (gen_insn): Likewise.
425 * gengtype-lex.l: Likewise.
426 * gengtype.c (read_input_list, adjust_field_type,
427 process_gc_options): Likewise.
428 * genoutput.c (note_constraint): Likewise.
429 * genpreds.c (mangle, add_constraint): Likewise.
430 * genrecog.c (process_define_predicate, new_decision,
431 add_to_sequence): Likewise.
432 * gensupport.c (record_insn_name): Likewise.
433
434 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
435
436 * config/i386/driver-i386.c (detect_caches_amd,
437 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
438 and/or -Wcast-qual warnings.
439 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
440 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
441 gt_pch_save): Likewise.
442 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
443 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
444 * global.c (compute_regsets): Likewise.
445 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
446 finish_graph_dump_file): Likewise.
447 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
448 unlink_bb_notes): Likewise.
449 * integrate.c (get_hard_reg_initial_val): Likewise.
450 * ipa-prop.c (ipa_push_func_to_list): Likewise.
451 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
452 * local-alloc.c (update_equiv_regs): Likewise.
453 * loop-invariant.c (check_invariant_table_size,
454 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
455 Likewise.
456 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
457 altered_reg_used, mark_altered): Likewise.
458 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
459 insert_var_expansion_initialization,
460 combine_var_copies_in_loop_exit, apply_opt_in_copies,
461 release_var_copies): Likewise.
462 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
463 analyze_matrix_decl, add_allocation_site, analyze_transpose,
464 analyze_accesses_for_phi_node, check_var_notmodified_p,
465 check_allocation_function, find_sites_in_func,
466 record_all_accesses_in_func, transform_access_sites,
467 transform_allocation_sites): Likewise.
468 * omp-low.c (new_omp_region, create_omp_child_function_name,
469 check_omp_nesting_restrictions, check_combined_parallel,
470 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
471 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
472 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
473 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
474 Likewise.
475 * opts-common.c (prune_options): Likewise.
476 * opts.c (add_input_filename, print_filtered_help,
477 get_option_state): Likewise.
478 * params.c (add_params): Likewise.
479 * passes.c (set_pass_for_id, next_pass_1,
480 do_per_function_toporder, pass_fini_dump_file): Likewise.
481 * postreload.c (reload_cse_simplify_operands): Likewise.
482 * predict.c (tree_predicted_by_p, tree_predict_edge,
483 clear_bb_predictions, combine_predictions_for_bb): Likewise.
484
485 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
486
487 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
488 warnings.
489 * recog.c (check_asm_operands, validate_change_1): Likewise.
490 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
491 subst_asm_stack_regs): Likewise.
492 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
493 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
494 * regmove.c (reg_is_remote_constant_p): Likewise.
495 * regrename.c (regrename_optimize, scan_rtx_reg,
496 kill_clobbered_value, kill_set_value, kill_autoinc_value):
497 Likewise.
498 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
499 regstat_compute_calls_crossed): Likewise.
500 * reload1.c (init_reload, new_insn_chain,
501 has_nonexceptional_receiver, reload, copy_reloads,
502 calculate_needs_all_insns, init_elim_table): Likewise.
503 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
504 * rtl.c (shallow_copy_rtx_stat): Likewise.
505 * rtlanal.c (parms_set): Likewise.
506 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
507 sbitmap_resize, sbitmap_vector_alloc): Likewise.
508 * sched-ebb.c (earliest_block_with_similiar_load,
509 add_deps_for_risky_insns): Likewise.
510 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
511 schedule_region): Likewise.
512 * see.c (eq_descriptor_pre_extension,
513 hash_descriptor_pre_extension, hash_del_pre_extension,
514 eq_descriptor_properties, hash_descriptor_properties,
515 hash_del_properties, see_seek_pre_extension_expr,
516 see_initialize_data_structures, see_print_register_properties,
517 see_print_pre_extension_expr, see_delete_merged_def_extension,
518 see_delete_unmerged_def_extension, see_emit_use_extension,
519 see_pre_delete_extension, see_map_extension, see_commit_changes,
520 see_analyze_merged_def_local_prop,
521 see_analyze_merged_def_local_prop,
522 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
523 see_set_prop_merged_def, see_set_prop_unmerged_def,
524 see_set_prop_unmerged_use, see_print_one_extension,
525 see_merge_one_use_extension, see_merge_one_def_extension,
526 see_store_reference_and_extension, see_update_uses_relevancy,
527 see_update_defs_relevancy): Likewise.
528 * statistics.c (hash_statistics_hash, hash_statistics_eq,
529 hash_statistics_free, curr_statistics_hash): Likewise.
530 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
531 expand_asm_operands, expand_return, case_bit_test_cmp,
532 expand_case): Likewise.
533 * stor-layout.c (start_record_layout): Likewise.
534 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
535 gt_pch_save_stringpool): Likewise.
536 * tree-data-ref.c (hash_stmt_vertex_info,
537 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
538 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
539
540 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
541
542 PR target/36627
543 * config/i386/i386.md : Change constraints of HImode and QImode
544 immediate operands from "i" to "n". Change SImode "ni" constraint to
545 "i" and SImode "rmi" constraint to "g". Remove all constraints
546 from const0_operand and const1_operand predicated operands.
547 (i): Change QImode and HImode attribute from "i" to "n".
548 (*subqi_2): Change HImode operands to QImode.
549 (*subqi_3): Ditto.
550
551 2008-06-25 Olivier Hainque <hainque@adacore.com>
552
553 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
554 sed substitutions.
555
556 2008-06-25 Richard Guenther <rguenther@suse.de>
557
558 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
559 not overflow the result type.
560
561 2008-06-25 Richard Guenther <rguenther@suse.de>
562
563 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
564 (vn_lookup): Likewise.
565
566 2008-06-25 Richard Guenther <rguenther@suse.de>
567
568 PR tree-optimization/35518
569 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
570 * tree-sra.c (instantiate_element): Use fold_build3 to build
571 BIT_FIELD_REFs.
572 (try_instantiate_multiple_fields): Likewise.
573
574 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
575
576 * config/rs6000/rs6000.md: Change all string instruction's clobber to
577 be early clobbers.
578
579 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
580
581 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
582 use_backchain_to_restore_sp to true
583 if the offset of the link register save area would go over the 32k - 1
584 offset limit of the load
585 instructions.
586
587 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
588
589 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
590 anchor for the type-punning blurb. Cross-reference "Structures
591 unions enumerations and bit-fields implementation". Provide a
592 cast-through-pointer example. Make final sentence self-contained.
593 * doc/implement-c.texi (Structures unions enumerations and
594 bit-fields implementation): Cross-reference the type-punning blurb
595 in the -fstrict-aliasing documentation.
596
597 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
598
599 PR middle-end/36594
600 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
601 the memory instead of the memory itself for the save area.
602
603 2008-06-24 Olivier Hainque <hainque@adacore.com>
604 Nicolas Roche <roche@adacore.com>
605
606 * gengtype.c (srcdir_len): size_t instead of int.
607 (get_file_realbasename): New function. For F a filename, the real
608 basename of F, with all the path components stripped.
609 (get_file_srcdir_relative_path): New function. For F a filename, the
610 relative path to F from $(srcdir).
611 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
612 get_file_realbasename. Adjust the head comment.
613 (get_prefix_langdir_index): New function. For F a filename, return the
614 lang_dir_names[] relative index of the language directory that is
615 a prefix in F.
616 (get_file_langdir): For F a filename, return the name of the language
617 directory where F is located.
618 (get_file_gtfilename): New function. The gt- output file name for an
619 input filename F.
620 (get_output_file_with_visibility): Replace in-line computations with
621 uses of get_file_gtfilename and get_prefix_langdir_index.
622 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
623
624 2008-06-24 Jakub Jelinek <jakub@redhat.com>
625
626 PR tree-optimization/36504
627 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
628 references without base address.
629
630 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
631
632 PR middle-end/36584
633 * calls.c (expand_call): Increase alignment for recursive functions.
634
635 2008-06-23 Anatoly Sokolov <aesok@post.ru>
636
637 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
638 (TARGET_FUNCTION_VALUE): New define.
639 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
640 * config/avr/avr.h (FUNCTION_VALUE): Remove.
641
642 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
643
644 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
645 (fmod<mode>3): Ditto.
646 (remainderxf3): Ditto.
647 (remainder<mode>3): Ditto.
648
649 2008-06-23 Jakub Jelinek <jakub@redhat.com>
650
651 PR target/36533
652 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
653 REG is a hard register.
654
655 PR tree-optimization/36508
656 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
657 499, don't check it at all in release compilers.
658
659 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
660
661 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
662 together with SSE_TARGET_MATH to disable insn pattern.
663 (*fop_<MODEF:mode>_2_i387): Ditto.
664 (*fop_<MODEF:mode>_3_i387): Ditto.
665
666 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
667
668 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
669
670 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
671
672 PR middle-end/34906
673 * gimplify.c (gimplify_asm_expr): Check the return code of
674 parse_output_constraint call, set function return and is_inout
675 value if it failed.
676
677 2008-06-22 Ian Lance Taylor <iant@google.com>
678
679 * c-lex.c (narrowest_unsigned_type): Change itk to int.
680 (narrowest_signed_type): Likewise.
681 * c-typeck.c (c_common_type): Change local variable mclass to enum
682 mode_class, twice.
683 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
684 tcc_comparison, not the tree code itself.
685 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
686 (c_expand_expr): Cast modifier to enum expand_modifier.
687 * c-common.h (C_RID_CODE): Add casts.
688 (C_SET_RID_CODE): Define.
689 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
690 (c_lex_one_token): Add cast to avoid warning.
691 (c_parser_objc_type_name): Rename local typename to type_name.
692 (check_no_duplicate_clause): Change code parameter to enum
693 omp_clause_code.
694 (c_parser_omp_var_list_parens): Change kind parameter to enum
695 omp_clause_code.
696 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
697 c_parser_omp_list_var_parens.
698 (c_parser_omp_threadprivate): Likewise.
699 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
700 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
701 * c-format.c (NO_FMT): Define.
702 (printf_length_specs): Use NO_FMT.
703 (asm_fprintf_length_specs): Likewise.
704 (gcc_diag_length_specs): Likewise.
705 (scanf_length_specs): Likewise.
706 (strfmon_length_specs): Likewise.
707 (gcc_gfc_length_specs): Likewise.
708 (printf_flag_specs): Change 0 to STD_C89.
709 (asm_fprintf_flag_specs): Likewise.
710 (gcc_diag_flag_specs): Likewise.
711 (gcc_cxxdiag_flag_specs): Likewise.
712 (scanf_flag_specs): Likewise.
713 (strftime_flag_specs): Likewise.
714 (strfmon_flag_specs): Likewise.
715 (print_char_table): Likewise.
716 (asm_fprintf_char_table): Likewise.
717 (gcc_diag_char_table): Likewise.
718 (gcc_tdiag_char_table): Likewise.
719 (gcc_cdiag_char_table): Likewise.
720 (gcc_cxxdiag_char_table): Likewise.
721 (gcc_gfc_char_table): Likewise.
722 (scan_char_table): Likewise.
723 (time_char_table): Likewis.
724 (monetary_char_table): Likewise.
725 * c-format.h (BADLEN): Likewise.
726
727 2008-06-21 Ian Lance Taylor <iant@google.com>
728
729 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
730 Define END_OF_BASE_TREE_CODES around inclusion.
731 * tree.c (tree_code_type): New global array.
732 (tree_code_length, tree_code_name): Likewise.
733 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
734 $(lang_tree_files).
735 (all-tree.def, s-alltree): New targets.
736 (gencheck.h, s-gencheck): Remove.
737 (tree.o): Depend upon all-tree.def.
738 (build/gencheck.o): Remove gencheck.h dependency.
739 (mostlyclean): Don't remove gencheck.h.
740 * c-common.h (enum c_tree_code): Remove.
741 * c-lang.c (tree_code_type): Remove.
742 (tree_code_length, tree_code_name): Remove.
743 * gencheck.c (tree_codes): Include all-tree.def, rather than
744 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
745 after it is used.
746 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
747 than tree.def.
748 * cp/cp-tree.h (enum cplus_tree_code): Remove.
749 (operator_name_info): Size to MAX_TREE_CODES.
750 (assignment_operator_name_info): Likewise.
751 * cp/cp-lang.c (tree_code_type): Remove.
752 (tree_code_length, tree_code_name): Remove.
753 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
754 (assignment_operator_name_info): Likewise.
755 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
756 MAX_TREE_CODES.
757 * cp/mangle.c (write_expression): Likewise.
758 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
759 * fortran/f95-lang.c (tree_code_type): Remove.
760 (tree_code_length, tree_code_name): Remove.
761 * java/java-tree.h (enum java_tree_code): Remove.
762 * java/lang.c (tree_code_type): Remove.
763 (tree_code_length, tree_code_name): Remove.
764 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
765 * objc/objc-act.h (enum objc_tree_code): Remove.
766 * objc/objc-lang.c (tree_code_type): Remove.
767 (tree_code_length, tree_code_name): Remove.
768 * objcp/objcp-lang.c (tree_code_type): Remove.
769 (tree_code_length, tree_code_name): Remove.
770 * ada/ada-tree.h (enum gnat_tree_code): Remove.
771 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
772 * ada/misc.c (tree_code_type): Remove.
773 (tree_code_length, tree_code_name): Remove.
774
775 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
776
777 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
778 the grand_bitmap_obstack.
779
780 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
781
782 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
783 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
784 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
785 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
786 move_stmt_r, new_label_mapper): Likewise.
787 * tree-complex.c (cvc_lookup): Likewise.
788 * tree-dfa.c (create_function_ann): Likewise.
789 * tree-dump.c (dump_register): Likewise.
790 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
791 find_phi_replacement_condition): Likewise.
792 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
793 tree_function_versioning): Likewise.
794 * tree-into-ssa.c (cmp_dfsnum): Likewise.
795 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
796 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
797 get_nonlocal_debug_decl, convert_nonlocal_reference,
798 convert_nonlocal_omp_clauses, get_local_debug_decl,
799 convert_local_reference, convert_local_omp_clauses,
800 convert_nl_goto_reference, convert_nl_goto_receiver,
801 convert_tramp_reference, convert_call_expr): Likewise.
802 * tree-outof-ssa.c (contains_tree_r): Likewise.
803 * tree-parloops.c (reduction_phi, initialize_reductions,
804 eliminate_local_variables_1, add_field_for_reduction,
805 add_field_for_name, create_phi_for_local_result,
806 create_call_for_reduction_1, create_loads_for_reductions,
807 create_stores_for_reduction, create_loads_and_stores_for_name):
808 Likewise.
809 * tree-phinodes.c (allocate_phi_node): Likewise.
810 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
811 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
812 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
813 * tree-ssa-coalesce.c (compare_pairs): Likewise.
814 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
815 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
816 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
817 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
818 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
819 vn_nary_op_insert): Likewise.
820 * tree-ssa.c (redirect_edge_var_map_add,
821 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
822 * tree-vectorizer.c (vectorize_loops): Likewise.
823 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
824 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
825 tree_cons_stat, build1_stat, build_variant_type_copy,
826 decl_init_priority_lookup, decl_fini_priority_lookup,
827 decl_priority_info, decl_restrict_base_lookup,
828 decl_restrict_base_insert, decl_debug_expr_lookup,
829 decl_debug_expr_insert, decl_value_expr_lookup,
830 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
831 type_hash_add, get_file_function_name, tree_check_failed,
832 tree_not_check_failed, tree_range_check_failed,
833 omp_clause_range_check_failed, build_omp_clause,
834 build_vl_exp_stat): Likewise.
835 * value-prof.c (gimple_histogram_value,
836 gimple_duplicate_stmt_histograms): Likewise.
837 * var-tracking.c (attrs_list_insert, attrs_list_copy,
838 unshare_variable, variable_union_info_cmp_pos, variable_union,
839 dataflow_set_different_1, dataflow_set_different_2,
840 vt_find_locations, variable_was_changed, set_variable_part,
841 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
842 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
843 section_entry_hash, object_block_entry_eq,
844 object_block_entry_hash, create_block_symbol,
845 initialize_cold_section_name, default_function_rodata_section,
846 strip_reg_name, set_user_assembler_name, const_desc_eq,
847 build_constant_desc, output_constant_def, lookup_constant_def,
848 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
849 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
850 default_internal_label): Likewise.
851 * varray.c (varray_init, varray_grow): Likewise.
852 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
853
854 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
855
856 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
857 operators for "test" insn. Macroize insn using SWI mode macro.
858 (*jcc_fused_2): Ditto.
859 (*jcc_fused_3): Macroize insn using SWI mode macro.
860 (*jcc_fused_4): Ditto.
861
862 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
863
864 * tree-ssa-pre.c: Fix typo in comment.
865 (init_antic, fini_antic): Add explicit funtions for
866 initializing and deinitializing ANTIC and AVAIL sets.
867 (create_expression_by_pieces): Fix typo in comment.
868 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
869 (execute_pre): Eventually dump details about ANTIC_IN.
870
871 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
872
873 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
874 * gcc.c (translate_options, init_spec, store_arg, read_specs,
875 add_to_obstack, file_at_path, find_a_file, execute,
876 add_preprocessor_option, add_assembler_option, add_linker_option,
877 process_command, insert_wrapper, do_option_spec, do_self_spec,
878 spec_path, do_spec_1, is_directory, main, used_arg,
879 getenv_spec_function): Likewise.
880 * tlink.c (symbol_hash_lookup, file_hash_lookup,
881 demangled_hash_lookup, symbol_push, file_push, frob_extension):
882 Likewise.
883
884 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
885
886 * doc/rtl.texi: Updated subreg section.
887
888 2008-06-19 Jakub Jelinek <jakub@redhat.com>
889
890 PR c++/36523
891 * cgraphunit.c (cgraph_process_new_functions): Don't clear
892 node->needed and node->reachable.
893 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
894 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
895 (expand_task_call): Don't call expand_task_copyfn.
896 (expand_task_copyfn): Renamed to...
897 (finalize_task_copyfn): ... this.
898
899 2008-06-19 Jan Hubicka <jh@suse.cz>
900
901 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
902 clobbering framepointer.
903
904 2008-06-19 Jan Hubicka <jh@suse.cz>
905
906 * tree-optimize.c (execute_early_local_optimizations): Set
907 cgraph_state only at first invocation.
908
909 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
910
911 * system.h (-Wc++-compat): Activate as a warning, no an error.
912
913 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
914
915 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
916 instead of "#" in insn asm template.
917 (*jcc_fused_2): Ditto.
918
919 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
920
921 * config/i386/i386.h (ix86_tune_indices)
922 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
923 (TARGET_FUSE_CMP_AND_BRANCH): New define.
924 * config/i386/i386.md (*jcc_fused_1): New insn pattern
925 (*jcc_fused_2): Ditto.
926 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
927 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
928 (print operand): Handle 'E' and 'e' code.
929
930 2008-06-19 Anatoly Sokolov <aesok@post.ru>
931
932 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
933 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
934 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
935
936 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
937
938 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
939 node->decl.
940 (cgraph_expand_function): Use local copy of decl.
941 (cgraph_expand_all_functions): Remove redundant initialization of
942 order_pos.
943 (cgraph_optimize): Reword internal_error message.
944
945 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
946
947 * arm-protos.h (arm_return_in_memory): Remove public
948 arm_return_in_memory() prototype.
949 * arm.c (arm_return_in_memory): Add static prototype, add target
950 hook macro, change definition and comments.
951 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
952
953 2008-06-19 Ben Elliston <bje@au.ibm.com>
954
955 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
956 real.c: Remove references to IEEE 754R.
957 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
958 * doc/libgcc.texi (Decimal float library routines): Likewise.
959
960 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
961
962 * targhooks.h (struct gcc_target): New member unwind_word_mode.
963 (default_unwind_word_mode): Add prototype.
964 * targhooks.c (default_unwind_word_mode): New function.
965 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
966 instead of word_mode.
967 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
968 (TARGET_INITIALIZER): Use it.
969
970 * c-common.c (handle_mode_attribute): Support "unwind_word"
971 mode attribute.
972 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
973
974 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
975 word_mode to access SjLj_Function_Context member "data".
976 (sjlj_emit_dispatch_table): Likewise. Also, perform type
977 conversion from targetm.eh_return_filter_mode () to
978 targetm.unwind_word_mode () if they differ.
979
980 * builtin-types.def (BT_UNWINDWORD): New primitive type.
981 (BT_FN_UNWINDWORD_PTR): New function type.
982 (BT_FN_WORD_PTR): Remove.
983 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
984 * except.c (expand_builtin_extend_pointer): Convert pointer to
985 targetm.unwind_word_mode () instead of word_mode.
986
987 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
988 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
989 (spu_unwind_word_mode): New function.
990 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
991 (TARGET_UNWIND_WORD_MODE): Define.
992 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
993
994 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
995
996 * config/spu/spu.c (reg_align): Remove.
997 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
998 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
999 (spu_split_store): Likewise.
1000
1001 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
1002
1003 * gcc/tree-vn.c: Fix typo in comment.
1004
1005 2008-06-18 Jan Hubicka <jh@suse.cz>
1006
1007 * cgraphunit.c (cgraph_optimize): Output debug info when doing
1008 toplevel reorder too.
1009
1010 2008-06-18 Jan Hubicka <jh@suse.cz>
1011
1012 * c-opts.c (c_common_post_options): PCH is not compatible with
1013 no-unit-at-a-time.
1014 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
1015 -fno-toplevel-reorder by default now.
1016
1017 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1018
1019 PR documentation/30739
1020 * doc/install.texi (Prerequisites): Document dependency on awk.
1021
1022 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
1023 Ian Lance Taylor <iant@google.com>
1024
1025 PR rtl-optimization/35604
1026 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
1027 only want to change jump destinations, not eventual label comparisons.
1028
1029 2008-06-16 Jan Hubicka <jh@suse.cz>
1030
1031 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
1032 syntax errors.
1033 (cgraph_analyze_function): Likewise.
1034
1035 2008-06-16 Jan Hubicka <jh@suse.cz>
1036
1037 * cgraph.h (cgraph_mark_if_needed): New function.
1038 * cgraphunit.c (cgraph_mark_if_needed): New function.
1039 * c-decl.c (duplicate_decl): Use it.
1040
1041 2008-06-16 Jan Hubicka <jh@suse.cz>
1042
1043 * cgraph.c (cgraph_add_new_function): When in expansion state, do
1044 lowering.
1045
1046 2008-06-16 Jan Hubicka <jh@suse.cz>
1047
1048 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
1049
1050 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
1051 Kazu Hirata <kazu@codesourcery.com>
1052 Maxim Kuvyrkov <maxim@codesourcery.com
1053
1054 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
1055 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
1056 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
1057 EXTRA_SPEC_FUNCTIONS.
1058 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
1059 (DRIVER_SELF_SPECS): Adjust.
1060 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
1061 * config/mips/st.h, config/mips/t-st: New.
1062 * config/mips/driver-native.c, config/mips/x-native: New.
1063 * doc/invoke.texi (MIPS): Document 'native' value for -march and
1064 -mtune options.
1065
1066 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
1067
1068 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
1069 from it.
1070 (ISA_HAS_FP_CONDMOVE): New macro.
1071 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
1072 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
1073 (ISA_HAS_NMADD3_NMSUB3): New macro.
1074 * config/mips/mips.c (mips_rtx_costs): Update.
1075 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
1076 compiling for ST Loongson 2E/2F.
1077 (madd<mode>): Rename to madd4<mode>. Update.
1078 (madd3<mode>): New pattern.
1079 (msub<mode>): Rename to msub4<mode>. Update.
1080 (msub3<mode>): New pattern.
1081 (nmadd<mode>): Rename to nmadd4<mode>. Update.
1082 (nmadd3<mode>): New pattern.
1083 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
1084 (nmadd3<mode>_fastmath): New pattern.
1085 (nmsub<mode>): Rename to nmsub4<mode>. Update.
1086 (nmsub3<mode>): New pattern.
1087 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
1088 (nmsub3<mode>_fastmath): New pattern.
1089 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
1090
1091 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
1092
1093 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
1094 (DF_REF_INSN_INFO): New.
1095 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
1096 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
1097 with a NULL DF_REF_INSN_INFO.
1098 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
1099 DF_INSN_SET.
1100 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
1101 DF_INSN_INFO_EQ_USES): New.
1102 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
1103 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
1104 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
1105 * df-core.c: Update comment for above changes.
1106 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
1107 DF_INSN_UID_* macros.
1108 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
1109 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
1110 insn rtx. Update all callers.
1111 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
1112 df_ref_create_structure, df_insn_refs_collect): Likewise.
1113 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
1114 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
1115 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
1116 macros to access the insn refs.
1117 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
1118 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
1119 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
1120 for accessing the refs.
1121 (try_fwprop_subst): Likewise.
1122 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
1123 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
1124 for accessing the refs.
1125 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
1126 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
1127 to look at the insn refs.
1128 (record_uses): Likewise.
1129 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
1130 function anymore.
1131 (mark_artificial_uses): Don't mark_insn for artificial refs.
1132 (mark_reg_rependencies): Likewise.
1133
1134 * doc/rtl.texi: Remove documentation of ADDRESSOF.
1135
1136 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1137
1138 * configure: Regenerate.
1139
1140 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
1141
1142 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
1143 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1144 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1145
1146 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
1147
1148 * config/avr/avr.c (avr_mcu_t): Add attiny167.
1149 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1150 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1151
1152 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
1153
1154 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
1155 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1156 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1157
1158 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
1159
1160 * tree-ssa-sccvn.c: Fix format of comments.
1161
1162 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
1163
1164 * cgraph.c: Remove unneeded forward declarations of eq_node()
1165 and hash_node().
1166
1167 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
1168
1169 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
1170 REG_RETVAL notes.
1171 (see_update_relevancy): Likewise.
1172 * fwprop.c (try_fwprop_subst): Likewise.
1173 * rtlanal.c (noop_move_p): Likewise.
1174 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
1175 notes to non-existing libcall blocks.
1176 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
1177 Remove orig_set.
1178 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
1179 (dead_libcall_p): Remove.
1180 (delete_trivially_dead_insns): Don't use it.
1181 * web.c (union_defs): Remove comment about keeping nops.
1182 * gcse.c (hash_scan_insn): Don't take libcall pointers.
1183 (compute_hash_table_work): Don't track libcall notes.
1184 (do_local_cprop): Don't take libcall pointers. Don't update
1185 libcall notes.
1186 (adjust_libcall_notes): Deleted.
1187 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
1188 ever have existed in the first place).
1189 (replace_store_insn): Don't try to remove libcall notes.
1190 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
1191 (resolve_reg_notes): Don't call them.
1192 (resolve_simple_move): Likewise.
1193 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
1194 Don't remove REG_RETVAL notes.
1195 * emit-rtl.c (try_split): Don't update libcall notes.
1196 (emit_copy_of_insn_after): Dito.
1197 * cselib.c (cselib_current_insn_in_libcall): Remove.
1198 (cselib_process_insn): Don't set/clear it.
1199 (new_elt_loc_list): Don't record it.
1200 (cselib_init): Don't initialize it.
1201 * cselib.c (struct elt_loc_list): Remove in_libcall field.
1202 * loop-invariant.c (find_invariant_insn): Don't look for libcall
1203 notes.
1204 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
1205 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
1206 (init_deps): Don't initialize it.
1207 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
1208 * combine.c (delete_noop_moves): Don't update libcall notes.
1209 (can_combine_p): Remove now pointless #if 0 block.
1210 (try_combine): Remove another obsolete #if 0 block.
1211 (distribute_notes): Don't distribute libcall notes.
1212 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
1213 * dce.c (libcall_dead_p): Remove.
1214 (delete_unmarked_insns): Don't handle libcall blocks.
1215 (preserve_libcall_for_dce): Remove.
1216 (prescan_insns_for_dce): Don't special-case libcall block insns.
1217 * reload1 (reload): Don't handle libcall notes.
1218 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
1219 documentation.
1220
1221 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
1222
1223 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
1224 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1225 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1226
1227 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
1228
1229 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
1230 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1231 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1232
1233 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1234
1235 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
1236
1237 2008-06-16 Ira Rosen <irar@il.ibm.com>
1238
1239 PR tree-optimization/36493
1240 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
1241 the arguments list. Use VECTYPE to create vector pointer.
1242 (vectorizable_store): Fail if accesses through a pointer to vectype
1243 do not alias the original memory reference operands.
1244 Call vect_create_data_ref_ptr without the removed argument.
1245 (vectorizable_load): Likewise.
1246 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
1247 removed argument.
1248
1249 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
1250
1251 PR target/36336
1252 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
1253 reg_equiv_constant.
1254
1255 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1256
1257 * config/mips/loongson2ef.md: New file.
1258 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1259 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1260 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1261 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
1262 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
1263 and loongson_2f.
1264 (loongson2ef.md): New include.
1265 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
1266 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
1267 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
1268 (loongson_gt_<mode>, loongson_extract_halfword)
1269 (loongson_insert_halfword_0, loongson_insert_halfword_2)
1270 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
1271 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
1272 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
1273 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
1274 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
1275 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
1276 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
1277 (vec_interleave_low<mode>): Define type attribute.
1278 * config/mips/mips.c (mips_ls2): New static variable.
1279 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
1280 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
1281 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
1282 Implement target scheduling hooks.
1283 (mips_multipass_dfa_lookahead): Update to handle tuning for
1284 Loongson 2E/2F.
1285 (mips_sched_init): Initialize data for Loongson scheduling.
1286 (mips_ls2_variable_issue): New static function.
1287 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
1288 Add sanity check.
1289 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
1290 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
1291 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
1292 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
1293 Handle ST Loongson 2E/2F cores.
1294 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
1295
1296 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1297
1298 * omp-low.c (extract_omp_for_data): Fix comment typo.
1299 * c.opt: Fix typo.
1300
1301 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1302
1303 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
1304 FIXME note about gcc/config.guess.
1305 * doc/options.texi (Option file format): Remove non-ASCII bytes.
1306 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
1307 * doc/cppopts.texi: Likewise.
1308 * doc/extend.texi: Likewise.
1309 * doc/gcc.texi: Likewise.
1310 * doc/gccint.texi: Likewise.
1311 * doc/gcov.texi: Likewise.
1312 * doc/gty.texi: Likewise.
1313 * doc/hostconfig.texi: Likewise.
1314 * doc/install.texi: Likewise.
1315 * doc/invoke.texi: Likewise.
1316 * doc/loop.texi: Likewise.
1317 * doc/makefile.texi: Likewise.
1318 * doc/md.texi: Likewise.
1319 * doc/passes.texi: Likewise.
1320 * doc/tm.texi: Likewise.
1321 * doc/tree-ssa.texi: Likewise.
1322 * doc/trouble.texi: Likewise.
1323
1324 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
1325 Nathan Sidwell <nathan@codesourcery.com>
1326 Maxim Kuvyrkov <maxim@codesourcery.com>
1327 Richard Sandiford <rdsandiford@googlemail.com>
1328
1329 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
1330 * config/mips/mips-protos.h (mips_expand_vector_init): New.
1331 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
1332 builtins.
1333 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
1334 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
1335 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
1336 V8QImode cases.
1337 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
1338 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
1339 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
1340 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
1341 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
1342 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
1343 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
1344 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
1345 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
1346 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
1347 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
1348 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
1349 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
1350 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
1351 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
1352 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
1353 (mips_builtins): Add Loongson builtins.
1354 (mips_loongson_2ef_bdesc): New.
1355 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
1356 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
1357 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
1358 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
1359 New.
1360 (mips_expand_vector_init): New.
1361 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
1362 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
1363 if appropriate.
1364 * config/mips/mips.md: Add unspec numbers for Loongson
1365 builtins. Include loongson.md.
1366 (MOVE64): Include Loongson vector modes.
1367 (SPLITF): Include Loongson vector modes.
1368 (HALFMODE): Handle Loongson vector modes.
1369 * config/mips/loongson.md: New.
1370 * config/mips/loongson.h: New.
1371 * config.gcc: Add loongson.h header for mips*-*-* targets.
1372 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
1373
1374 2008-06-14 Joseph Myers <joseph@codesourcery.com>
1375
1376 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
1377 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
1378 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
1379 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
1380 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
1381 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
1382 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
1383 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
1384 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
1385 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
1386 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
1387 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
1388 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
1389 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
1390 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
1391 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
1392 Remove use_fixproto=yes.
1393 (ia64*-*-hpux*): Remove comment about using fixproto.
1394 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
1395
1396 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1397
1398 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
1399 library rebuilds.
1400 * configure: Regenerate.
1401
1402 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
1403
1404 PR middle-end/36520
1405 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
1406 before evaluating it.
1407
1408 2008-06-13 Jakub Jelinek <jakub@redhat.com>
1409
1410 PR c/36507
1411 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
1412 nested inline functions.
1413 (start_decl, start_function): Don't invert DECL_EXTERNAL
1414 for nested inline functions.
1415
1416 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
1417
1418 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
1419 splits that must be made for correctness.
1420
1421 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
1422
1423 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
1424 (AVAIL_NON_MIPS16): Likewise.
1425 (mips_builtin_description): Replace target_flags with a predicate.
1426 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
1427 (dspr2_32): New availability predicates.
1428 (MIPS_BUILTIN): New macro.
1429 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
1430 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
1431 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
1432 Replace the TARGET_FLAGS parameters with AVAIL parameters.
1433 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
1434 (mips_dsp_32only_bdesc): Merge into...
1435 (mips_builtins): ...this new array.
1436 (mips_bdesc_map, mips_bdesc_arrays): Delete.
1437 (mips_init_builtins): Update after above changes.
1438 (mips_expand_builtin_1): Merge into...
1439 (mips_expand_builtin): ...here and update after above changes.
1440
1441 2008-06-12 Paul Brook <paul@codesourcery.com>
1442
1443 * longlong.h (__arm__): Define count_leading_zeros.
1444 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
1445 (clzsi2, clzdi2): New functions.
1446 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
1447 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
1448 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
1449 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
1450 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
1451 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
1452 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
1453 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
1454 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
1455 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
1456
1457 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
1458
1459 * config/m68k/m68k.c (m68k_tune_flags): New.
1460 (override_options): Compute m68k_tune_flags.
1461 (MULL_COST, MULW_COST): Update for various variants of CFV2.
1462 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
1463
1464 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1465
1466 PR middle-end/36506
1467 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
1468
1469 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
1470
1471 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
1472 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
1473
1474 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
1475
1476 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
1477 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
1478
1479 2008-06-12 Jakub Jelinek <jakub@redhat.com>
1480
1481 PR middle-end/36506
1482 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
1483 reductions.
1484
1485 2008-06-12 Richard Guenther <rguenther@suse.de>
1486
1487 PR tree-optimization/36345
1488 * tree-flow.h (struct ptr_info_def): Align escape_mask,
1489 add memory_tag_needed flag.
1490 (may_alias_p): Declare.
1491 * tree-ssa-alias.c (may_alias_p): Export.
1492 (set_initial_properties): Use memory_tag_needed flag.
1493 (update_reference_counts): Likewise.
1494 (reset_alias_info): Reset memory_tag_needed flag.
1495 (create_name_tags): Check memory_tag_needed flag.
1496 (dump_points_to_info_for): Dump it.
1497 * tree-ssa-structalias.c (struct variable_info): Remove
1498 directly_dereferenced flag.
1499 (new_var_info): Do not initialize it.
1500 (process_constraint_1): Do not set it.
1501 (update_alias_info): Set is_dereferenced flag.
1502 (set_uids_in_ptset): Use may_alias_p.
1503 (set_used_smts): Check memory_tag_needed flag.
1504 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
1505 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
1506 memory_tag_needed flag.
1507 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
1508 from broken design.
1509
1510 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
1511
1512 * config/i386/i386.c (ix86_compute_frame_layout): Disable
1513 red zone for w64 abi.
1514 (ix86_expand_prologue): Likewise.
1515 (ix86_force_to_memory): Likewise.
1516 (ix86_free_from_memory): Likewise.
1517
1518 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
1519
1520 PR target/36425
1521 * config/rs6000/rs6000.c (rs6000_override_options): Set
1522 rs6000_isel conditionally to the absence of comand line override.
1523 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1524 Remove duplicate rs6000_isel setting.
1525 * config/rs6000/eabispe.h: Ditto.
1526
1527 2008-06-11 Richard Guenther <rguenther@suse.de>
1528
1529 * alias.c (get_alias_set): Use the element alias-set for arrays.
1530 (record_component_aliases): For arrays and vectors do nothing.
1531 * c-common.c (strict_aliasing_warning): Handle the cases
1532 of alias set zero explicitly.
1533 * Makefile.in (dfp.o-warn): Add -Wno-error.
1534
1535 2008-06-11 Joseph Myers <joseph@codesourcery.com>
1536
1537 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
1538 tune_32 tune_64.
1539 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
1540 tune_32 tune_64 to supported_defaults. Allow values not
1541 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
1542 x86_64. Do not override cpu_32 or cpu_64 values from target name.
1543 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
1544 with_cpu_64 to generic for 64-bit-supporting configurations, not
1545 with_cpu. Remove FIXMEs.
1546 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
1547 --with-arch-64, --with-tune-32, --with-tune-64): Document.
1548 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
1549 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
1550 arch_32 and arch_64.
1551
1552 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
1553 Olivier Hainque <hainque@adacore.com>
1554
1555 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
1556 Use DECL_SIZE_UNIT to retrieve the size of the field.
1557
1558 2008-06-11 Joseph Myers <joseph@codesourcery.com>
1559
1560 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
1561 with function calls after declarations. Lay out
1562 neon_float_type_node before further use.
1563
1564 2008-06-11 Richard Guenther <rguenther@suse.de>
1565
1566 * tree-flow.h (may_point_to_global_var): Declare.
1567 * tree-ssa-alias.c (may_point_to_global_var): New function.
1568 * tree-ssa-sink.c (is_hidden_global_store): Use it.
1569
1570 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
1571
1572 * configure.ac: Teach that fido supports .debug_line.
1573 * configure: Regenerate.
1574
1575 2008-06-10 Tom Tromey <tromey@redhat.com>
1576
1577 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
1578 debug hook.
1579
1580 2008-06-10 Joseph Myers <joseph@codesourcery.com>
1581
1582 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
1583 (encode_decimal64, decode_decimal64, encode_decimal128,
1584 decode_decimal128): Reverse order of 32-bit parts of value if host
1585 and target endianness differ.
1586
1587 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
1588
1589 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
1590 Avoid division by 0.
1591 (tree_mod_pow2_value_transform): Likewise.
1592 (tree_ic_transform): Likewise.
1593 (tree_stringops_transform): Likewise.
1594 (tree_mod_subtract_transform): Likewise.
1595 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
1596 (copy_edges_for_bb): Likewise.
1597 (initialize_cfun): Likewise.
1598
1599 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
1600
1601 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
1602 nonmemory_operand. Add "N" operand constraint.
1603 (*btsi): Ditto.
1604 (*jcc_btdi_mask_rex64): New instruction and split pattern.
1605 (*jcc_btsi_mask): Ditto.
1606 (*jcc_btsi_mask_1): Ditto.
1607
1608 2008-06-10 Joseph Myers <joseph@codesourcery.com>
1609
1610 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
1611 TYPE_CANONICAL for copied element type.
1612
1613 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
1614
1615 PR target/36473
1616 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
1617 Add m_CORE2 and m_GENERIC.
1618 * config/i386/predicates.md (bt_comparison_operator): New predicate.
1619 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
1620 (*btsi): Ditto.
1621 (*jcc_btdi_rex64): New instruction and split pattern.
1622 (*jcc_btsi): Ditto.
1623 (*jcc_btsi_1): Ditto.
1624 (*btsq): Fix Intel asm dialect operand order.
1625 (*btrq): Ditto.
1626 (*btcq): Ditto.
1627
1628 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
1629
1630 PR middle-end/36447
1631 * simplify-rtx.c (simplify_subreg): Add check for shift count
1632 greater than size.
1633
1634 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
1635
1636 * doc/md.texi: Synchronize with later constraints.md change.
1637 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
1638 with a C implementation.
1639 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
1640 MFLO handling.
1641 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
1642 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
1643 when moving to and from MD_REGNUM.
1644 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
1645 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
1646 Handle byte and halfword moves.
1647 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
1648 separately.
1649 * config/mips/constraints.md (h): Turn into NO_REGS.
1650 (l, x): Update documentation.
1651 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
1652 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
1653 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
1654 (HILO): New mode iterator.
1655 (MOVE128): Add TI.
1656 (any_div): New code iterator.
1657 (u): Extend code attribute to div and udiv.
1658 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
1659 d_operand in the splitters. Remove redundant CONST_INT checks.
1660 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
1661 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
1662 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
1663 accordingly, using normal moves instead of unspecs to move LO into
1664 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
1665 (<u>mulsidi3): Handle expansion in C code.
1666 (<u>mulsidi3_32bit_internal): Rename to...
1667 (<u>mulsidi3_32bit): ...this.
1668 (<u>mulsidi3_32bit_r4000): Fix insn separator.
1669 (*<u>mulsidi3_64bit): Rename to...
1670 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
1671 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
1672 to set LO and HI to the multiplication result. Use a normal move
1673 for MFLO and an unspec for MFHI.
1674 (*<u>mulsidi3_64bit_parts): Replace with...
1675 (<u>mulsidi3_64bit_hilo): ...this new instruction.
1676 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
1677 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
1678 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
1679 instead of HI. Split the instruction into a separate multiplication
1680 and MFHI if !TARGET_FIX_R4000.
1681 (<su>muldi3_highpart): Likewise.
1682 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
1683 and the "=h" clobber.
1684 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
1685 (<u>mulditi3): New expander.
1686 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
1687 (madsi): Remove "=h" clobber.
1688 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
1689 Force the modulus result to be a GPR and split the instruction into
1690 a division followed by an MFHI after reload.
1691 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
1692 (*lea_high64): Use d_operand in the define_peephole2. Likewise
1693 the MIPS16 HIGH define_split.
1694 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
1695 of acc<->gpr moves to "multi".
1696 (*movdi_64bit): Replace the single "x" alternative with
1697 alternatives for moving into and out of "a".
1698 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
1699 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
1700 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
1701 Use d_operand in the splitters. Remove redundant CONST_INT checks.
1702 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
1703 (movti): New expander.
1704 (*movti, *movti_mips16): New insns.
1705 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
1706 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
1707 (mthi<GPR:mode>_<HILO:mode>): Likewise.
1708 * config/mips/predicates.md (fpr_operand): Delete.
1709 (d_operand): New predicate.
1710
1711 2008-06-09 Michael Meissner <michael.meissner@amd.com>
1712
1713 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
1714 failure on some Bourne shells.
1715 (x86_64-*-*): Ditto.
1716
1717 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
1718
1719 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
1720
1721 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
1722
1723 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
1724 (sparc-sun-solaris2*): Likewise.
1725
1726 2008-06-09 Arnaud Charlet <charlet@adacore.com
1727
1728 * doc/install.texi: Update requirements to build the Ada compiler.
1729
1730 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
1731
1732 * df-scan.c (struct df_scan_problem_data): Remove the
1733 mw_link_pool alloc pool.
1734 (df_scan_free_internal): Don't free it.
1735 (df_scan_alloc): Don't allocate it.
1736 * df.h (struct df_link): Update comment.
1737
1738 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
1739
1740 * except.h: Correct checks for when SJLJ exceptions must be used.
1741
1742 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1743
1744 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
1745 default.
1746
1747 2008-06-08 Joseph Myers <joseph@codesourcery.com>
1748
1749 PR tree-optimization/36218
1750 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
1751 configure for the build system.
1752 (BUILD_LDFLAGS): Define.
1753 * configure: Regenerate.
1754 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
1755
1756 2008-07-08 Anatoly Sokolov <aesok@post.ru>
1757
1758 PR target/36424
1759 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
1760 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
1761 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
1762
1763 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
1764
1765 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
1766
1767 2008-06-07 Joseph Myers <joseph@codesourcery.com>
1768
1769 * config.gcc (Obsolete configurations): Remove list of
1770 configurations.
1771 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
1772 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
1773 targets matched by those patterns.
1774 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
1775 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
1776 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
1777 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
1778 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
1779 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
1780 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
1781 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
1782 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
1783 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
1784 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
1785 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
1786 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
1787 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
1788 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
1789 Make code for Solaris 7 and greater unconditional for Solaris.
1790 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
1791 Remove --with-* handling.
1792 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
1793 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
1794 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
1795 LINK_OS_WINDISS_SPEC): Remove.
1796 * config/rs6000/sysv4.opt (mwindiss): Remove.
1797 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
1798 * configure: Regenerate.
1799 * doc/cpp.texi: Don't mention BeOS.
1800 * doc/extend.texi (interrupt): Don't mention MS1.
1801 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
1802 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
1803 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
1804 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
1805 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
1806 Remove.
1807 * doc/invoke.texi (MT Options): Remove.
1808 (-mwindiss): Remove.
1809 (CRIS Options): Remove cris-axis-aout references.
1810 (HPPA Options): Don't mention hppa1.1-*-pro.
1811 * doc/md.texi: (MorphoTech family): Remove.
1812 * libgcc2.c: Don't handle UWIN.
1813 * config/alpha/t-unicosmk: Remove.
1814 * config/alpha/unicosmk.h: Remove.
1815 * config/arm/kaos-arm.h: Remove.
1816 * config/arm/kaos-strongarm.h: Remove.
1817 * config/arm/strongarm-coff.h: Remove.
1818 * config/arm/strongarm-elf.h: Remove.
1819 * config/arm/strongarm-pe.h: Remove.
1820 * config/arm/t-strongarm-pe: Remove.
1821 * config/arm/t-xscale-coff: Remove.
1822 * config/arm/t-xscale-elf: Remove.
1823 * config/arm/xscale-coff.h: Remove.
1824 * config/arm/xscale-elf.h: Remove.
1825 * config/chorus.h: Remove.
1826 * config/cris/aout.h: Remove.
1827 * config/cris/aout.opt: Remove.
1828 * config/cris/t-aout: Remove.
1829 * config/i386/beos-elf.h: Remove.
1830 * config/i386/kaos-i386.h: Remove.
1831 * config/i386/ptx4-i.h: Remove.
1832 * config/i386/sco5.h: Remove.
1833 * config/i386/sco5.opt: Remove.
1834 * config/i386/sysv4-cpp.h: Remove.
1835 * config/i386/sysv5.h: Remove.
1836 * config/i386/t-beos: Remove.
1837 * config/i386/t-sco5: Remove.
1838 * config/i386/t-uwin: Remove.
1839 * config/i386/uwin.asm: Remove.
1840 * config/i386/uwin.h: Remove.
1841 * config/kaos.h: Remove.
1842 * config/mips/windiss.h: Remove.
1843 * config/mt: Remove directory.
1844 * config/pa/pa-osf.h: Remove.
1845 * config/pa/pa-pro-end.h: Remove.
1846 * config/pa/t-pro: Remove.
1847 * config/ptx4.h: Remove.
1848 * config/rs6000/beos.h: Remove.
1849 * config/rs6000/kaos-ppc.h: Remove.
1850 * config/rs6000/t-beos: Remove.
1851 * config/rs6000/windiss.h: Remove.
1852 * config/sh/kaos-sh.h: Remove.
1853 * config/sol2-6.h: Remove.
1854 * config/sparc/sol26-sld.h: Remove.
1855 * config/sparc/sysv4-only.h: Remove.
1856 * config/vax/bsd.h: Remove.
1857 * config/vax/t-memfuncs: Remove.
1858 * config/vax/ultrix.h: Remove.
1859 * config/vax/vaxv.h: Remove.
1860 * config/windiss.h: Remove.
1861
1862 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
1863
1864 PR rtl-optimization/36438
1865 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
1866 for vector shifts with constant scalar shift operands.
1867
1868 2008-06-06 Sandip Matte <sandip@rmicorp.com>
1869
1870 * doc/invoke.texi: Document -march=xlr.
1871 * config/mips/xlr.md: New file.
1872 * config/mips/mips.md: Include it.
1873 (cpu): Add "xlr".
1874 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
1875 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
1876 (mips_rtx_cost_data): Likewise.
1877
1878 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
1879
1880 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
1881 PRE_INC and PRE_DEC cases.
1882
1883 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1884
1885 PR rtl-optimization/36419
1886 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
1887 the emitting jump insn.
1888
1889 PR target/36362
1890 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
1891 is not bool, boolify the whole *expr_p and convert to the desired type.
1892
1893 2008-06-06 Jakub Jelinek <jakub@redhat.com>
1894
1895 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
1896 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
1897 Add omp_private_outer_ref hook, add another argument to
1898 omp_clause_default_ctor hook.
1899 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
1900 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
1901 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
1902 hook_tree_tree_tree_tree_null.
1903 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
1904 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
1905 * hooks.c (hook_tree_tree_tree_tree_null): New function.
1906 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
1907 * tree.def (OMP_TASK): New tree code.
1908 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
1909 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
1910 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
1911 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
1912 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
1913 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
1914 OMP_CLAUSE_COLLAPSE_EXPR): Define.
1915 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
1916 (OMP_DIRECTIVE_P): Add OMP_TASK.
1917 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
1918 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
1919 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
1920 and OMP_CLAUSE_UNTIED entries.
1921 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
1922 num_ops to 2.
1923 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
1924 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
1925 * tree-pretty-print.c (dump_omp_clause): Handle
1926 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
1927 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
1928 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
1929 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
1930 warning about unsigned iterators. Change decl/init/cond/incr
1931 arguments to TREE_VECs, check arguments for all collapsed loops.
1932 (c_finish_omp_taskwait): New function.
1933 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
1934 ws_clauses.
1935 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
1936 default_function_array_conversion on init. Add par_clauses argument.
1937 If decl is present in parallel's lastprivate clause, change it to
1938 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
1939 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
1940 collapse count in clauses.
1941 (c_parser_omp_for, c_parser_omp_parallel): Adjust
1942 c_parser_omp_for_loop callers.
1943 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
1944 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
1945 (c_parser_omp_clause_name): Handle collapse and untied clauses.
1946 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
1947 functions.
1948 (c_parser_omp_clause_schedule): Handle schedule(auto).
1949 Include correct location in the error message.
1950 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
1951 and PRAGMA_OMP_CLAUSE_UNTIED.
1952 (OMP_TASK_CLAUSE_MASK): Define.
1953 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
1954 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
1955 * tree-nested.c (convert_nonlocal_omp_clauses,
1956 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
1957 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
1958 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
1959 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
1960 OMP_CLAUSE_DECL.
1961 (conver_nonlocal_reference, convert_local_reference,
1962 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
1963 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
1964 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
1965 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
1966 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
1967 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
1968 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
1969 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
1970 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
1971 OMP_CLAUSE_UNTIED.
1972 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
1973 * c-common.h (c_finish_omp_taskwait): New prototype.
1974 * gimple-low.c (lower_stmt): Handle OMP_TASK.
1975 * tree-parloops.c (create_parallel_loop): Create 1 entry
1976 vectors for OMP_FOR_{INIT,COND,INCR}.
1977 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
1978 (make_edges): Handle OMP_TASK.
1979 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
1980 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
1981 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
1982 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
1983 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
1984 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
1985 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
1986 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
1987 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
1988 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
1989 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
1990 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
1991 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
1992 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
1993 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
1994 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
1995 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
1996 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
1997 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
1998 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
1999 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
2000 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
2001 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
2002 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
2003 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
2004 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
2005 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
2006 original iterator is present in lastprivate clause or if
2007 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
2008 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
2009 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
2010 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
2011 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
2012 if it is set, lookup var in outer contexts too. Handle
2013 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
2014 to be implicitly determined firstprivate for task regions.
2015 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
2016 if it is set, lookup var in outer contexts too. Set
2017 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
2018 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
2019 OMP_CLAUSE_UNTIED. Take region_type as last argument
2020 instead of in_parallel and in_combined_parallel.
2021 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
2022 Adjust callers.
2023 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
2024 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
2025 (new_omp_context): Set default_kind to
2026 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
2027 (omp_region_type): New enum.
2028 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
2029 fields, add region_type.
2030 (new_omp_context): Take region_type as argument instead of is_parallel
2031 and is_combined_parallel.
2032 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
2033 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
2034 ctx->is_combined_parallel checks.
2035 (gimplify_omp_task): New function.
2036 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
2037 OMP_CLAUSE_UNTIED.
2038 * omp-low.c (extract_omp_for_data): Use schedule(static)
2039 for schedule(auto). Handle pointer and unsigned iterators.
2040 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
2041 Add loops argument. Extract data for collapsed OMP_FOR loops.
2042 (expand_parallel_call): Assert sched_kind isn't auto,
2043 map runtime schedule to index 3.
2044 (struct omp_for_data_loop): New type.
2045 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
2046 Add loop, loops, collapse and iter_type fields.
2047 (workshare_safe_to_combine_p): Disallow combined for if
2048 iter_type is unsigned long long. Don't combine collapse > 1 loops
2049 unless all bounds and steps are constant. Adjust extract_omp_for_data
2050 caller.
2051 (expand_omp_for_generic): Handle pointer, unsigned and long long
2052 iterators. Handle collapsed OMP_FOR loops. Adjust
2053 for struct omp_for_data changes. If libgomp function doesn't return
2054 boolean_type_node, add comparison of the return value with 0.
2055 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
2056 pointer, unsigned and long long iterators. Adjust for struct
2057 omp_for_data changes.
2058 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
2059 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
2060 unsigned long long. Allocate loops array, pass it to
2061 extract_omp_for_data. For collapse > 1 loops use always
2062 expand_omp_for_generic.
2063 (omp_context): Add sfield_map and srecord_type fields.
2064 (is_task_ctx, lookup_sfield): New functions.
2065 (use_pointer_for_field): Use is_task_ctx helper. Change first
2066 argument's type from const_tree to tree. Clarify comment.
2067 In OMP_TASK disallow copy-in/out sharing.
2068 (build_sender_ref): Call lookup_sfield instead of lookup_field.
2069 (install_var_field): Add mask argument. Populate both record_type
2070 and srecord_type if needed.
2071 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
2072 in srecord_type.
2073 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
2074 and DECL_FIELD_OFFSET.
2075 (scan_sharing_clauses): Adjust install_var_field callers. For
2076 firstprivate clauses on explicit tasks allocate the var by value in
2077 record_type unconditionally, rather than by reference.
2078 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
2079 Use is_taskreg_ctx instead of is_parallel_ctx.
2080 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
2081 (create_omp_child_function_name): Add task_copy argument, use
2082 *_omp_cpyfn* names if it is true.
2083 (create_omp_child_function): Add task_copy argument, if true create
2084 *_omp_cpyfn* helper function.
2085 (scan_omp_parallel): Adjust create_omp_child_function callers.
2086 Rename parallel_nesting_level to taskreg_nesting_level.
2087 (scan_omp_task): New function.
2088 (lower_rec_input_clauses): Don't run constructors for firstprivate
2089 explicit task vars which are initialized by *_omp_cpyfn*.
2090 Pass outer var ref to omp_clause_default_ctor hook if
2091 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
2092 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
2093 OMP_CLAUSE_REDUCTION_INIT.
2094 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
2095 avoid duplicate setting of fields. Handle
2096 OMP_CLAUSE_PRIVATE_OUTER_REF.
2097 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
2098 copy-out if TREE_READONLY, only copy-in.
2099 (expand_task_copyfn): New function.
2100 (expand_task_call): New function.
2101 (struct omp_taskcopy_context): New type.
2102 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
2103 New functions.
2104 (lower_omp_parallel): Rename to...
2105 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
2106 Call create_task_copyfn if srecord_type is needed. Adjust
2107 sender_decl type.
2108 (task_shared_vars): New variable.
2109 (check_omp_nesting_restrictions): Warn if work-sharing,
2110 barrier, master or ordered region is closely nested inside OMP_TASK.
2111 Add warnings for barrier if closely nested inside of work-sharing,
2112 ordered, or master region.
2113 (scan_omp_1): Call check_omp_nesting_restrictions even for
2114 GOMP_barrier calls. Rename parallel_nesting_level to
2115 taskreg_nesting_level. Handle OMP_TASK.
2116 (lower_lastprivate_clauses): Even if some lastprivate is found on a
2117 work-sharing construct, continue looking for them on parent parallel
2118 construct.
2119 (lower_omp_for_lastprivate): Add lastprivate clauses
2120 to the beginning of dlist rather than end. Adjust for struct
2121 omp_for_data changes.
2122 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
2123 not after it. Handle collapsed OMP_FOR loops, adjust for
2124 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
2125 (get_ws_args_for): Adjust extract_omp_for_data caller.
2126 (scan_omp_for): Handle collapsed OMP_FOR
2127 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
2128 (lower_omp_single_simple): If libgomp function doesn't return
2129 boolean_type_node, add comparison of the return value with 0.
2130 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
2131 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
2132 (parallel_nesting_level): Rename to...
2133 (taskreg_nesting_level): ... this.
2134 (is_taskreg_ctx): New function.
2135 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
2136 of is_parallel_ctx.
2137 (execute_lower_omp): Rename parallel_nesting_level to
2138 taskreg_nesting_level.
2139 (expand_omp_parallel): Rename to...
2140 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
2141 Call omp_task_call for OMP_TASK regions.
2142 (expand_omp): Adjust caller, handle OMP_TASK.
2143 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
2144
2145 * bitmap.c (bitmap_default_obstack_depth): New variable.
2146 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
2147 if argument is NULL and bitmap_default_obstack is already initialized.
2148 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
2149 at the end.
2150 * matrix-reorg.c (matrix_reorg): Likewise.
2151
2152 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
2153
2154 * config/i386/i386.md (*indirect_jump): Macroize using P
2155 mode iterator. Remove !TARGET_64BIT from insn constraints.
2156 (*tablejump_1): Ditto.
2157 (*indirect_jump_rex64): Remove insn pattern.
2158 (*tablejump_1_rex64): Ditto.
2159 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
2160 and eh_return_si insn patterns.
2161
2162 2008-06-06 Richard Guenther <rguenther@suse.de>
2163
2164 * tree-ssa-structalias.c (merge_smts_into): Remove.
2165 (find_what_p_points_to): Do not bother to compute the
2166 points-to set for pt_anything pointers.
2167 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
2168 for pt_anything pointers is ok.
2169
2170 2008-06-06 Jan Hubicka <jh@suse.cz>
2171
2172 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
2173
2174 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2175
2176 * cgraph.c: Fix typos in comments.
2177 (cgraph_availability_names): Fix string typo.
2178 * fold-const.c: Fix typos in comments.
2179 (fold_binary): Fix typo in warning.
2180 * genautomata.c: Fix typos in comments.
2181 (check_presence_pattern_sets): Fix typo in local variable.
2182 (output_description): Fix typo in output.
2183 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
2184 * hwint.h: Likewise.
2185 * matrix-reorg.c (check_allocation_function): Likewise.
2186 * omega.c (smooth_weird_equations): Likewise.
2187 * auto-inc-dec.c: Fix typos in comments.
2188 * bb-reorder.c: Likewise.
2189 * builtins.c: Likewise.
2190 * c-common.c: Likewise.
2191 * c-cppbuiltin.c: Likewise.
2192 * c-parser.c: Likewise.
2193 * c-pretty-print.c: Likewise.
2194 * cfgcleanup.c: Likewise.
2195 * cfgexpand.c: Likewise.
2196 * cfghooks.c: Likewise.
2197 * cfglayout.c: Likewise.
2198 * cfgloopmanip.c: Likewise.
2199 * cgraphunit.c: Likewise.
2200 * coverage.c: Likewise.
2201 * dbxout.c: Likewise.
2202 * df-byte-scan.c: Likewise.
2203 * df-core.c: Likewise.
2204 * df-problems.c: Likewise.
2205 * df-scan.c: Likewise.
2206 * dfp.c: Likewise.
2207 * dominance.c: Likewise.
2208 * domwalk.c: Likewise.
2209 * dse.c: Likewise.
2210 * dwarf2out.c: Likewise.
2211 * emit-rtl.c: Likewise.
2212 * et-forest.c: Likewise.
2213 * function.c: Likewise.
2214 * function.h: Likewise.
2215 * gcc.c: Likewise.
2216 * gcov-io.c: Likewise.
2217 * gcov.c: Likewise.
2218 * gcse.c: Likewise.
2219 * genattrtab.c: Likewise.
2220 * ggc-page.c: Likewise.
2221 * gimplify.c: Likewise.
2222 * gthr-lynx.h: Likewise.
2223 * haifa-sched.c: Likewise.
2224 * ipa-cp.c: Likewise.
2225 * ipa-inline.c: Likewise.
2226 * ipa-prop.h: Likewise.
2227 * ipa-pure-const.c: Likewise.
2228 * ipa-struct-reorg.c: Likewise.
2229 * ipa-struct-reorg.h: Likewise.
2230 * ipa-type-escape.c: Likewise.
2231 * ipa.c: Likewise.
2232 * loop-doloop.c: Likewise.
2233 * mips-tfile.c: Likewise.
2234 * mkmap-flat.awk: Likewise.
2235 * mkmap-symver.awk: Likewise.
2236 * modulo-sched.c: Likewise.
2237 * omp-low.c: Likewise.
2238 * optabs.c: Likewise.
2239 * optabs.h: Likewise.
2240 * opts.c: Likewise.
2241 * passes.c: Likewise.
2242 * postreload-gcse.c: Likewise.
2243 * postreload.c: Likewise.
2244 * predict.c: Likewise.
2245 * pretty-print.h: Likewise.
2246 * profile.c: Likewise.
2247 * protoize.c: Likewise.
2248 * ra-conflict.c: Likewise.
2249 * real.c: Likewise.
2250 * recog.c: Likewise.
2251 * regclass.c: Likewise.
2252 * regs.h: Likewise.
2253 * reload.c: Likewise.
2254 * rtl-error.c: Likewise.
2255 * rtlanal.c: Likewise.
2256 * scan.h: Likewise.
2257 * sched-rgn.c: Likewise.
2258 * see.c: Likewise.
2259 * stmt.c: Likewise.
2260 * target.h: Likewise.
2261 * tree-dfa.c: Likewise.
2262 * tree-eh.c: Likewise.
2263 * tree-flow-inline.h: Likewise.
2264 * tree-inline.c: Likewise.
2265 * tree-into-ssa.c: Likewise.
2266 * tree-loop-distribution.c: Likewise.
2267 * tree-nested.c: Likewise.
2268 * tree-parloops.c: Likewise.
2269 * tree-pass.h: Likewise.
2270 * tree-pretty-print.c: Likewise.
2271 * tree-profile.c: Likewise.
2272 * tree-scalar-evolution.c: Likewise.
2273 * tree-sra.c: Likewise.
2274 * tree-ssa-alias-warnings.c: Likewise.
2275 * tree-ssa-ccp.c: Likewise.
2276 * tree-ssa-coalesce.c: Likewise.
2277 * tree-ssa-dom.c: Likewise.
2278 * tree-ssa-dse.c: Likewise.
2279 * tree-ssa-forwprop.c: Likewise.
2280 * tree-ssa-live.c: Likewise.
2281 * tree-ssa-live.h: Likewise.
2282 * tree-ssa-loop-im.c: Likewise.
2283 * tree-ssa-loop-ivopts.c: Likewise.
2284 * tree-ssa-loop-niter.c: Likewise.
2285 * tree-ssa-loop-prefetch.c: Likewise.
2286 * tree-ssa-phiopt.c: Likewise.
2287 * tree-ssa-phiprop.c: Likewise.
2288 * tree-ssa-sccvn.c: Likewise.
2289 * tree-ssa-ter.c: Likewise.
2290 * tree-ssa-threadupdate.c: Likewise.
2291 * tree-ssa.c: Likewise.
2292 * tree-vect-analyze.c: Likewise.
2293 * tree-vect-transform.c: Likewise.
2294 * tree-vectorizer.c: Likewise.
2295 * tree-vn.c: Likewise.
2296 * tree-vrp.c: Likewise.
2297 * tree.c: Likewise.
2298 * tree.def: Likewise.
2299 * tree.h: Likewise.
2300 * unwind-dw2-fde.c: Likewise.
2301 * unwind.inc: Likewise.
2302 * value-prof.c: Likewise.
2303 * vmsdbgout.c: Likewise.
2304
2305 2008-06-05 David Edelsohn <edelsohn@gnu.org>
2306
2307 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
2308 always place FP constants in the TOC for TARGET_POWERPC64.
2309 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
2310
2311 2008-06-05 Joseph Myers <joseph@codesourcery.com>
2312
2313 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
2314 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
2315 enable for TARGET_E500_DOUBLE.
2316 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
2317 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
2318 floating-point modes like integer modes for E500 double.
2319 (rs6000_legitimate_offset_address_p): Likewise.
2320 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
2321 addressing for DDmode for E500 double.
2322 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
2323 modes as using 64-bits of registers for E500 double.
2324 (spe_build_register_parallel): Do not handle DDmode or TDmode.
2325 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
2326 specially for E500 double.
2327 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
2328 TDmode for E500 double.
2329 (rs6000_gimplify_va_arg): Only handle SDmode in registers
2330 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
2331 (rs6000_split_multireg_move): Do not handle TDmode specially for
2332 E500 double.
2333 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
2334 using 64-bit registers for E500 double.
2335 (emit_frame_save): Do not handle DDmode specially for E500 double.
2336 (gen_frame_mem_offset): Likewise.
2337 (rs6000_function_value): Do not call spe_build_register_parallel
2338 for DDmode or TDmode.
2339 (rs6000_libcall_value): Likewise.
2340 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
2341 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
2342 for E500 double.
2343
2344 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
2345
2346 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
2347 in comments.
2348
2349 2008-06-04 Junjie Gu <jgu@tensilica.com>
2350
2351 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
2352 comparison for frame pointers.
2353
2354 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
2355
2356 PR target/27386
2357 * config/avr/avr.h (PUSH_ROUNDING): Remove.
2358
2359 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
2360
2361 PR target/30243
2362 * builtins.c (expand_builtin_signbit): Don't take lowpart when
2363 register is already smaller or equal to required mode.
2364
2365 2008-06-04 Xinliang David Li <davidxl@google.com>
2366
2367 * tree-call-cdce.c: New file.
2368 (cond_dead_built_in_calls): New static variable.
2369 (input_domain): New struct.
2370 (check_pow): New function.
2371 (check_builtin_call): Ditto.
2372 (check_target_format): Ditto.
2373 (is_call_dce_candidate): Ditto.
2374 (gen_one_condition): Ditto.
2375 (gen_conditions_for_domain): Ditto.
2376 (get_domain): Ditto.
2377 (gen_conditions_for_pow_cst_base): Ditto.
2378 (gen_conditions_for_pow_int_base): Ditto.
2379 (gen_conditions_for_pow): Ditto.
2380 (get_no_error_domain): Ditto.
2381 (gen_shrink_wrap_conditions): Ditto.
2382 (shrink_wrap_one_built_in_call): Ditto.
2383 (shink_wrap_conditional_dead_built_in_calls): Ditto.
2384 (tree_call_cdce): Ditto.
2385 (gate_call_cdce): Ditto.
2386 (pass_call_cdce): New gimple pass.
2387 * passes.c: (init_optimization_passes): New pass.
2388 * tree-pass.h: New pass declaration.
2389 * opts.c (decode_options): New flag setting.
2390 * common.opt: Add -ftree-builtin-call-dce flag.
2391 * Makefile.in: Add new source file.
2392 * tempvar.def: New tv_id.
2393 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
2394
2395 2008-06-04 Richard Guenther <rguenther@suse.de>
2396
2397 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
2398 (is_call_clobbered): Always check var_ann->call_clobbered.
2399 (mark_call_clobbered): Always set var_ann->call_clobbered.
2400 (clear_call_clobbered): Always clear var_ann->call_clobbered.
2401 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
2402 (reset_alias_info): Clear call clobbering info on MTAGs and
2403 globals as well.
2404 (set_pt_anything): Set pt_global_mem.
2405 (create_tag_raw): Adjust comment.
2406 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
2407
2408 2008-06-04 Joseph Myers <joseph@codesourcery.com>
2409 Maxim Kuvyrkov <maxim@codesourcery.com>
2410
2411 * config/m68k/m68k.opt (mxgot): New option.
2412 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
2413 (m68k_output_addr_const_extra): New.
2414 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
2415 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
2416 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
2417 * doc/invoke.texi (M680x0 Options): Document -mxgot.
2418
2419 2008-06-04 Richard Guenther <rguenther@suse.de>
2420
2421 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
2422 negative or non-representable offsets.
2423
2424 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
2425
2426 * config/i386/i386.c (ix86_gen_leave): New.
2427 (ix86_gen_pop1): Likewise.
2428 (ix86_gen_add3): Likewise.
2429 (ix86_gen_sub3): Likewise.
2430 (ix86_gen_sub3_carry): Likewise.
2431 (ix86_gen_one_cmpl2): Likewise.
2432 (ix86_gen_monitor): Likewise.
2433 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
2434 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
2435 ix86_gen_one_cmpl2 and ix86_gen_monitor.
2436 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
2437 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
2438 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
2439 (ix86_expand_epilogue): Updated.
2440 (print_operand): Handle integer register operand for 'z'.
2441 (ix86_expand_strlensi_unroll_1): Likewise.
2442 (ix86_expand_strlen): Likewise.
2443 (ix86_expand_builtin): Likewise.
2444 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
2445 mov{q}/mov{l} and add{q}/add{l}.
2446
2447 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
2448
2449 * config/i386/i386.md (P): New mode iterator.
2450 (SFmode push_operand splitter): Macroize DImode and SImode pushes
2451 using P mode iterator.
2452 (DFmode push_operand splitter): Ditto.
2453 (XFmode push_operand splitter): Ditto.
2454 (DFmode float_extend SFmode push_operand splitter): Ditto.
2455 (XFmode float_extend SFmode push_operand splitter): Do not generate
2456 SImode pushes for 64bit target. Macroize Dimode and SImode
2457 pushes using P mode iterator.
2458 (XFmode float_extend DFmode push_operand splitter): Ditto.
2459
2460 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
2461
2462 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
2463 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
2464 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
2465 return type to int.
2466 (ix86_call_abi_override): Remove check for call_used_regs.
2467
2468 2008-06-03 Richard Guenther <rguenther@suse.de>
2469
2470 * tree-ssa-structalias.c (find_func_aliases): Add constraints
2471 for the lhs of calls if the return type contains pointers.
2472
2473 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
2474
2475 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
2476 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
2477 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
2478 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
2479 of cfun and DEFAULT_ABI to deceide abi mode.
2480 (DEFAULT_ABI): New.
2481 (REG_PARM_STACK_SPACE): Removed.
2482 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
2483 (STACK_BOUNDARY): Use default target to deceide stack boundary.
2484 * config/i386/i386-protos.h (ix86_cfun_abi): New.
2485 (ix86_function_abi): Likewise.
2486 (ix86_function_type_abi): Likewise.
2487 (ix86_call_abi_override): Likewise.
2488 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
2489 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
2490 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
2491 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
2492 specific defines.
2493 (X86_64_REGPARM_MAX): New.
2494 (X86_64_SSE_REGPARM_MAX): New.
2495 (X64_REGPARM_MAX): New.
2496 (X64_SSE_REGPARM_MAX): New.
2497 (X86_32_REGPARM_MAX): New.
2498 (X86_32_SSE_REGPARM_MAX): New.
2499 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
2500 (ix86_function_regparm): Handle user calling abi.
2501 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
2502 by DEFAULT_ABI versus SYSV_ABI check.
2503 (ix86_reg_parm_stack_space): New.
2504 (ix86_function_type_abi): New.
2505 (ix86_call_abi_override): New.
2506 (ix86_function_abi): New.
2507 (ix86_cfun_abi): New.
2508 (init_cumulative_args): Call abi specific initialization.
2509 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
2510 (function_arg_64): Extend SSE_REGPARM_MAX check.
2511 (function_arg (): Remove TARGET_64BIT_MS_ABI.
2512 (ix86_pass_by_reference): Likewise.
2513 (ix86_function_value_regno_p): Likewise.
2514 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
2515 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
2516 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
2517 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
2518 (setup_incoming_varargs_64): Adjust regparm for call abi.
2519 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
2520 (ix86_va_start): Likewise.
2521 (ix86_gimplify_va_arg): Likewise.
2522 (ix86_expand_prologue): Likewise.
2523 (output_pic_addr_const): Likewise.
2524 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
2525 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
2526 (x86_output_mi_thunk): Likewise.
2527 (x86_function_profiler): Likewise.
2528 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
2529 (SYSV_ABI, MS_ABI): New constants.
2530 (DEFAULT_ABI): New.
2531 (init_regs): Add prototype of function in regclass.c file.
2532 (OVERRIDE_ABI_FORMAT): New.
2533 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
2534 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
2535 (OUTGOING_REG_PARM_STACK_SPACE): New.
2536 (ix86_reg_parm_stack_space): New prototype.
2537 (CUMULATIVE_ARGS): Add call_abi member.
2538 (machine_function): Add call_abi member.
2539 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
2540 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
2541
2542 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
2543
2544 PR target/34879
2545 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
2546 (avr_builtin_setjmp_frame_value): New function.
2547 * config/avr/avr.md (nonlocal_goto_receiver): Define.
2548 (nonlocal_goto): Define.
2549
2550 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
2551
2552 * config/mips/mips.c (mips_emit_loadgp): Return early if
2553 there is nothing do to, otherwise emit a blockage if
2554 !TARGET_EXPLICIT_RELOCS || crtl->profile.
2555 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
2556
2557 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2558
2559 * configure.ac: Drop unneeded backslash ending up in config.in.
2560 * acinclude.m4: Likewise.
2561 * config.in: Regenerate.
2562
2563 2008-05-26 Jan Hubicka <jh@suse.cz>
2564
2565 * predict.c (maybe_hot_frequency_p): Break out of...
2566 (maybe_hot_bb_p): ... here.
2567 (maybe_hot_edge_p): New.
2568 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
2569 * basic-block.h (maybe_hot_edge_p): Declare.
2570
2571 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
2572
2573 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
2574 (*cmpfp_<mode>_cc): Ditto.
2575 (*fp_jcc_8<mode>_387): Ditto.
2576 (*fop_<MODEF:mode>_2_i387): Ditto.
2577 (*fop_<MODEF:mode>_3_i387): Ditto.
2578 (*fop_xf_2_i387): Ditto.
2579 (*fop_xf_3_i387): Ditto.
2580
2581 2008-06-02 Tomas Bily <tbily@suse.cz>
2582
2583 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
2584
2585 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2586
2587 * config/mips/mips.c (mips_valid_offset_p): New function.
2588 (mips_valid_lo_sum_p): Likewise.
2589 (mips_classify_address): Use them.
2590 (mips_force_address): New function.
2591 (mips_legitimize_address): Use it.
2592 * config/mips/mips.md (MOVE128): New mode iterator.
2593 (movtf): Require TARGET_64BIT. Remove empty strings.
2594 (*movtf_internal): Rename to...
2595 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
2596 of "R" and use {,fp}{load,store} attributes instead of "multi".
2597 Use a separate define_split.
2598 (*movtf_mips16): New pattern.
2599
2600 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2601
2602 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
2603 * config/mips/mips.c (mips_expand_before_return): New function.
2604 (mips_expand_epilogue): Call it.
2605 * config/mips/mips.md (return): Turn into a define_expand.
2606 (*return): New insn.
2607
2608 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2609
2610 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
2611 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
2612 functions. Do not emit uses and clobbers of CONCATs; individually
2613 use and clobber their operands.
2614 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
2615 gen_clobber, emit_use and gen_use.
2616 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
2617 (expand_builtin_return): Likewise.
2618 * cfgbuild.c (count_basic_blocks): Likewise.
2619 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2620 * explow.c (emit_stack_restore): Likewise.
2621 * expmed.c (extract_bit_field_1): Likewise.
2622 * expr.c (convert_move, emit_move_complex_parts): Likewise.
2623 (emit_move_multi_word, store_constructor): Likewise.
2624 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
2625 (thread_prologue_and_epilogue_insns): Likewise.
2626 * lower-subreg.c (resolve_simple_move): Likewise.
2627 * optabs.c (widen_operand, expand_binop): Likewise.
2628 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
2629 * reload.c (find_reloads): Likewise.
2630 * reload1.c (eliminate_regs_in_insn): Likewise.
2631 * stmt.c (expand_nl_goto_receiver): Likewise.
2632 * config/alpha/alpha.md (builtin_longjmp): Likewise.
2633 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
2634 * config/arm/arm.c (arm_load_pic_register): Likewise.
2635 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
2636 * config/arm/arm.md (untyped_return): Likewise.
2637 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
2638 * config/avr/avr.c (expand_prologue): Likewise.
2639 * config/bfin/bfin.c (do_unlink): Likewise.
2640 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
2641 * config/cris/cris.c (cris_expand_prologue): Likewise.
2642 * config/darwin.c (machopic_indirect_data_reference): Likewise.
2643 (machopic_legitimize_pic_address): Likewise.
2644 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
2645 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
2646 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
2647 (ix86_expand_convert_uns_didf_sse): Likewise.
2648 (ix86_expand_vector_init_general): Likewise.
2649 * config/ia64/ia64.md (eh_epilogue): Likewise.
2650 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
2651 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
2652 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
2653 (config/iq2000/iq2000.c): Likewise.
2654 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
2655 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
2656 (builtin_longjmp): Likewise.
2657 * config/mn10300/mn10300.md (call, call_value): Likewise.
2658 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
2659 * config/pdp11/pdp11.md (abshi2): Likewise.
2660 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
2661 * config/s390/s390.c (s390_emit_prologue): Likewise.
2662 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
2663 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
2664 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
2665 * config/sh/sh.c (prepare_move_operands): Likewise.
2666 (output_stack_adjust, sh_expand_epilogue): Likewise.
2667 (sh_set_return_address, sh_expand_t_scc): Likewise.
2668 * config/sparc/sparc.c (load_pic_register): Likewise.
2669 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
2670 * config/spu/spu.c (spu_expand_epilogue): Likewise.
2671 * config/v850/v850.c (expand_epilogue): Likewise.
2672
2673 2008-05-31 Anatoly Sokolov <aesok@post.ru>
2674
2675 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
2676 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
2677 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
2678 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
2679 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
2680 stack pointer register.
2681 (output_movhi): Remove code for interrupt specific writing to the
2682 stack pointer register.
2683
2684 2008-05-31 Richard Guenther <rguenther@suse.de>
2685
2686 PR tree-optimization/34244
2687 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
2688 (tree_expr_nonzero_warnv_p): Likewise.
2689 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
2690 ssa_name_nonnegative_p.
2691 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
2692 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
2693 not tree_expr_nonzero_warnv_p.
2694
2695 PR tree-optimization/36262
2696 Revert
2697 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
2698
2699 PR tree-optimization/34244
2700 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
2701 (record_numbers_of_iterations): New function.
2702 (execute_vrp): Cache the numbers of iterations of loops.
2703 * tree-scalar-evolution.c (scev_reset_except_niters):
2704 New function.
2705 (scev_reset): Use scev_reset_except_niters.
2706 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
2707
2708 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
2709
2710 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2711 __WORKAROUND_RETS when appropriate.
2712
2713 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
2714
2715 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
2716 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
2717 mode iterator.
2718 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
2719 *fop_df_comm_sse insn patterns using MODEF mode iterator.
2720 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
2721 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
2722 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
2723 *fop_df_1_mixed insn patterns using MODEF mode iterator.
2724 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
2725 *fop_df_1_sse insn patterns using MODEF mode iterator.
2726 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
2727 *fop_df_1_i387 insn patterns using MODEF mode iterator.
2728 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
2729 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
2730 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
2731 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
2732 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
2733 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
2734 (*fop_xf_4_i387): Use <MODE> for mode attribute.
2735 (*fop_xf_5_i387): Ditto.
2736 (*fop_xf_6_i387): Ditto.
2737
2738 2008-05-30 Richard Guenther <rguenther@suse.de>
2739
2740 * builtins.c (build_string_literal): Avoid generating
2741 a non-gimple_val result.
2742
2743 2008-05-30 DJ Delorie <dj@redhat.com>
2744
2745 * exec-tool.in: Use an environment variable (private) instead of a
2746 file (shared) as a semaphore, so as to not break parallel builds.
2747
2748 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
2749
2750 * optabs.c (maybe_encapsulate_block): Remove.
2751 (emit_libcall_block): Adjust accordingly.
2752 * optabs.h (maybe_encapsulate_block): Remove prototype.
2753
2754 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
2755 Don't use maybe_encapsulate_block.
2756
2757 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
2758
2759 * config/rs6000/rs6000.c (rs6000_legitimize_address,
2760 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
2761 rtx is a SYMBOL_REF before calling get_pool_constant.
2762
2763 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
2764
2765 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
2766
2767 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
2768
2769 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
2770 rather than OS names to choose INO_T_EQ definition.
2771 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
2772 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
2773
2774 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
2775
2776 PR target/36348
2777 * config/darwin-f.c: New.
2778 * config/t-darwin: Added rule to build darwin-f.o.
2779 * config.gcc: Defined new variable, fortran_target_objs.
2780 (*-*-darwin*): Set fortran_target_objs.
2781 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
2782 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
2783 * configure: Regenerated.
2784
2785 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
2786
2787 PR target/35771
2788 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
2789 canonical type if needed.
2790
2791 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
2792
2793 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
2794
2795 2008-05-29 Richard Guenther <rguenther@suse.de>
2796
2797 PR tree-optimization/36343
2798 PR tree-optimization/36346
2799 PR tree-optimization/36347
2800 * tree-flow.h (clobber_what_p_points_to): Declare.
2801 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
2802 pointed-to variable is dereferenced is irrelevant to whether
2803 the pointer can access the pointed-to variable.
2804 (clobber_what_p_points_to): New function.
2805 * tree-ssa-alias.c (set_initial_properties): Use it.
2806 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
2807 call clobber check for NMTs.
2808
2809 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
2810
2811 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
2812 for printing gcov_type.
2813
2814 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
2815
2816 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
2817 and the eh region information.
2818 * value-prof.c (gimple_move_stmt_histograms): New function.
2819 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
2820
2821 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
2822
2823 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
2824
2825 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
2826
2827 * value-prof.c (tree_ic_transform): Print counts.
2828 * tree-profile.c (tree_gen_ic_func_profiler):
2829 Clear __gcov_indreict_call_callee variable to avoid misattribution
2830 of the profile.
2831
2832 2008-05-28 Rafael Espindola <espindola@google.com>
2833
2834 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
2835 invalid sharing.
2836
2837 2008-05-28 Richard Guenther <rguenther@suse.de>
2838
2839 PR tree-optimization/36339
2840 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
2841 and clobbering code out of the loop.
2842
2843 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
2844
2845 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
2846 letters defined.
2847
2848 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
2849 s390_contiguous_bitmask_p, s390_symref_operand_p,
2850 s390_check_symref_alignment, s390_reload_larl_operand,
2851 s390_reload_symref_address): New functions.
2852 (s390_branch_condition_mnemonic): Support compare and branch
2853 instructions.
2854 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
2855 and 'W' constraints.
2856 (s390_secondary_reload): Add secondary reloads for unaligned
2857 symbol refs or symbol refs to floating point or QI/TI mode
2858 integer values.
2859 (legitimate_address_p): Accept symbol references as addresses.
2860 (s390_expand_insv): Use rotate and insert selected bits
2861 instruction for insv when building for z10.
2862 (print_operand_address): Handle symbol ref addresses.
2863 (print_operand): Output modifier 'c' added for signed byte values.
2864 (s390_encode_section_info): Mark symbol refs with
2865 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
2866
2867 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
2868 (length attribute): RRF, RRR have 4 byte length.
2869 (FPALL, INTALL): New mode iterators added.
2870 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
2871 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
2872 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
2873 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
2874 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
2875 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
2876 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
2877 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
2878 instructions.
2879 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
2880 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
2881 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
2882 reload<INTALL:mode><P:mode>_toreg_z10,
2883 reload<FPALL:mode><P:mode>_tomem_z10,
2884 reload<FPALL:mode><P:mode>_toreg_z10,
2885 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
2886 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
2887 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
2888 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
2889 definition.
2890 (movmem, clrmem, cmpmem): New splitters added.
2891
2892 * config/s390/predicates.md (larl_operand): Use
2893 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
2894 SYMBOL_REF_ALIGN1_P.
2895 (s390_signed_integer_comparison,
2896 s390_unsigned_integer_comparison): New predicates.
2897
2898 * config/s390/s390-protos.h (s390_check_symref_alignment,
2899 s390_contiguous_bitmask_p, s390_reload_larl_operand,
2900 s390_reload_symref_address,
2901 s390_compare_and_branch_condition_mask): Prototypes added.
2902
2903 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
2904 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
2905 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
2906
2907 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
2908
2909 * config/s390/s390.c (z10_cost): New cost function for z10.
2910 (s390_handle_arch_option, override_options): Support -march=z10 switch.
2911 (s390_issue_rate): Adjust issue rate for z10.
2912 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
2913 (processor_flags): Add PF_Z10.
2914 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
2915 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
2916 * gcc/config.gcc: Add z10.
2917
2918 2008-05-28 Richard Guenther <rguenther@suse.de>
2919
2920 PR tree-optimization/36291
2921 * tree-flow. h (struct gimple_df): Remove var_anns member.
2922 * tree-flow-inline.h (gimple_var_anns): Remove.
2923 (var_ann): Simplify.
2924 * tree-dfa.c (create_var_ann): Simplify.
2925 (remove_referenced_var): Clear alias info from var_anns of globals.
2926 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
2927 (delete_tree_ssa): Clear alias info from var_anns of globals.
2928 Do not free var_anns.
2929 (var_ann_eq): Remove.
2930 (var_ann_hash): Likewise.
2931
2932 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
2933
2934 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
2935 and loongson2f entries.
2936 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
2937 * config/mips/mips.h (processor_type): Add Loongson-2E
2938 and Loongson-2F entries.
2939 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
2940 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
2941 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
2942 * doc/invoke.texi (MIPS Options): Document loongson2e
2943 and loongson2f processor names.
2944
2945 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
2946
2947 PR target/35767
2948 PR target/35771
2949 * config/i386/i386.c (ix86_function_arg_boundary): Use
2950 alignment of canonical type.
2951 (ix86_expand_vector_move): Check unaligned memory access for
2952 all SSE modes.
2953
2954 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
2955
2956 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
2957 Moved to the front of file.
2958
2959 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
2960 H.J. Lu <hongjiu.lu@intel.com>
2961
2962 * dwarf2out.c (current_fde): New.
2963 (add_cfi): Use it.
2964 (lookup_cfa:): Likewise.
2965 (dwarf2out_end_epilogue): Likewise.
2966 (dwarf2out_note_section_used): Likewise.
2967
2968 2008-05-27 Michael Matz <matz@suse.de>
2969
2970 PR c++/27975
2971 * c.opt (Wenum-compare): New warning option.
2972 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
2973
2974 2008-05-27 Michael Matz <matz@suse.de>
2975
2976 PR middle-end/36326
2977 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
2978 non-BLKmode types.
2979 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
2980 into memory as tail calls.
2981
2982 2008-05-27 Richard Guenther <rguenther@suse.de>
2983
2984 PR tree-optimization/36339
2985 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
2986 pointers cause all addressable variables to be call clobbered.
2987
2988 2008-05-27 Richard Guenther <rguenther@suse.de>
2989
2990 PR tree-optimization/36245
2991 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
2992
2993 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
2994
2995 * config/s390/s390.md: Replace all occurences of the 'm'
2996 constraint with 'RT'.
2997
2998 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
2999
3000 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
3001 definitions added.
3002 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
3003 "*movdi_64".
3004 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
3005 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
3006 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
3007
3008 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
3009
3010 * reload.c: (find_reloads): Skip alternatives according to the
3011 "enabled" attribute. Constify the constraint variable.
3012 * recog.c (get_attr_enabled): Add default implementation.
3013 (extract_insn): Set the alternative_enabled_p array
3014 in the recog_data struct.
3015 (preprocess_constraints, constrain_operands): Skip
3016 alternatives according to the "enabled" attribute
3017 * recog.h (struct recog_data): New field alternative_enabled_p.
3018 (skip_alternative): New inline function.
3019 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
3020 (record_reg_classes): Skip alternative according to the
3021 "enabled" attribute.
3022
3023 * doc/md.texi: Add documention for the "enabled" attribute.
3024
3025 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
3026
3027 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
3028 * postreload.c (reload_cse_simplify_operands): Replace 'm'
3029 constraint with TARGET_MEM_CONSTRAINT.
3030 * recog.c (asm_operand_ok, preprocess_constraints,
3031 constrain_operands): Likewise.
3032 * regclass.c (record_reg_classes): Likewise.
3033 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
3034 * reload1.c (maybe_fix_stack_asms): Likewise.
3035 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3036 * recog.h: Adjust comment.
3037 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
3038 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
3039 * doc/md.texi: Add a note to description of 'm' constraint.
3040 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
3041
3042 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
3043
3044 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
3045 that the bitfield is of integral type before testing its precision.
3046
3047 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
3048 Sa Liu <saliu@de.ibm.com>
3049
3050 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
3051 __modti3, __udivti3, __umodti3 and __udivmodti4.
3052 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
3053 that implement TImode mul and div functions.
3054 * config/spu/multi3.c: New. Implement __multi3.
3055 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
3056 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
3057 functions on SPU.
3058
3059 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
3060
3061 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
3062 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
3063 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
3064 tls_sysv_suffix): New mode and mode attribute iterators.
3065 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
3066 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
3067 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
3068 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
3069 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
3070 iterators.
3071
3072 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3073
3074 PR tree-optimization/36329
3075 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
3076 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
3077 * cgraphbuild.c (initialize_inline_failed): Use the latter
3078 macro in lieu of the former.
3079 * ipa-inline.c (cgraph_mark_inline): Likewise.
3080 (cgraph_decide_inlining_of_small_function): Likewise.
3081 (cgraph_decide_inlining): Likewise.
3082 (cgraph_decide_inlining_incrementally): Likewise.
3083
3084 2008-05-26 Tristan Gingold <gingold@adacore.com>
3085 Anatoly Sokolov <aesok@post.ru>
3086
3087 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
3088 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
3089 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
3090 optimization for 'avr6' architecture.
3091
3092 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
3093
3094 PR target/34932
3095 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
3096
3097 2008-05-26 Richard Guenther <rguenther@suse.de>
3098
3099 * tree-ssa-sccvn.c (expr_has_constants): Declare.
3100 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
3101
3102 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
3103
3104 PR middle-end/36253
3105 * caller-save.c (insert_restore): Verify alignment of spill space.
3106 (insert_save): Likewise.
3107 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
3108 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
3109 (STACK_SLOT_ALIGNMENT): Likewise.
3110 * function.c (LOCAL_ALIGNMENT): Removed.
3111 (get_stack_local_alignment): New.
3112 (assign_stack_local): Use it. Set alignment on stack slot.
3113 (assign_stack_temp_for_type): Use get_stack_local_alignment.
3114 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
3115 (STACK_SLOT_ALIGNMENT): New.
3116 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
3117 stack slot in XFmode.
3118
3119 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
3120
3121 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
3122
3123 PR/36321
3124 * config/i386/i386.md (allocate_stack_worker_64): Make sure
3125 argument operand in rax isn't removed.
3126
3127 2008-05-26 Richard Guenther <rguenther@suse.de>
3128
3129 PR middle-end/36300
3130 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
3131 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
3132
3133 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
3134
3135 PR bootstrap/36331
3136 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
3137
3138 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
3139
3140 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
3141 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
3142
3143 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3144
3145 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
3146 build a trampoline if we don't want one.
3147 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
3148 return zero for nested functions if we don't want a trampoline.
3149
3150 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
3151
3152 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
3153
3154 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
3155
3156 PR fortran/18428
3157 * c.opt: Removed undocumented option '-lang-fortran'.
3158 * c-common.h: Removed global variable 'lang_fortran'.
3159 * c-opts.c (c_common_handle_option): Removed code to handle
3160 option '-lang-fortran'. Updated includes.
3161 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
3162 definition of '__GFORTRAN__'.
3163 (define__GNUC__): Reimplemented to use BASEVER and
3164 cpp_define_formatted.
3165 (builtin_define_with_value_n): Removed.
3166 * c-incpath.h: Renamed to ...
3167 * incpath.h: ... this.
3168 * c-incpath.c: Renamed to ...
3169 * incpath.c: ... this. Updated includes.
3170 * fix-header.c: Updated includes.
3171 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
3172 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
3173 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
3174
3175 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3176
3177 * tree.h: Update the table of flags used on tree nodes.
3178 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
3179 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
3180 (FORCED_LABEL): Add access check.
3181 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
3182 (ASM_INPUT_P): Likewise.
3183 (ASM_VOLATILE_P): Likewise.
3184 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
3185 (OMP_SECTION_LAST): Access private_flag directly.
3186 (OMP_RETURN_NOWAIT): Likewise.
3187 (OMP_PARALLEL_COMBINED): Likewise.
3188 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
3189 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
3190 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
3191 deprecated_flag directly.
3192
3193 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
3194
3195 * final.c (frame_pointer_needed): Removed.
3196 * flags.h (frame_pointer_needed): Likewise.
3197
3198 * function.h (rtl_data): Add frame_pointer_needed.
3199 (frame_pointer_needed): New.
3200
3201 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
3202
3203 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
3204
3205 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
3206
3207 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
3208 SRC is a REG.
3209
3210 2008-05-25 Alan Modra <amodra@bigpond.net.au>
3211
3212 * c-common.c (strip_array_types): Move function to..
3213 * tree.c: ..here.
3214 (get_inner_array_type): Delete.
3215 * c-common.h (strip_array_types): Move declaration to..
3216 * tree.h: ..here.
3217 (get_inner_array_type): Delete.
3218 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
3219 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
3220 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3221 * config/pa/pa.c (emit_move_sequence): Likewise.
3222
3223 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
3224
3225 * config/i386/i386.md (*sse_prologue_save_insn): Set length
3226 attribute to 34.
3227
3228 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
3229
3230 * function.c: Include target hook for nonlocal_goto frame value.
3231
3232 2008-05-24 Richard Guenther <rguenther@suse.de>
3233
3234 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
3235 variable can be only accessed through a pointer or a union.
3236
3237 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3238
3239 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
3240 * doc/extend.texi: Likewise.
3241
3242 2008-05-23 DJ Delorie <dj@redhat.com>
3243
3244 * config/m32c/jump.md (untyped_call): Add.
3245
3246 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
3247 for A24 to PSImode.
3248 (m32c_address_cost): Detail costs for indirect offsets.
3249
3250 2008-05-23 Rafael Espindola <espindola@google.com>
3251
3252 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
3253 if a node is a SUBREG.
3254 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
3255 is a SUBREG.
3256
3257 2008-05-23 Paul Brook <paul@codesourcery.com>
3258 Carlos O'Donell <carlos@codesourcery.com>
3259
3260 * doc/extend.texi: Clarify use of __attribute__((naked)).
3261 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
3262 * target.h (gcc_target): Add allocate_stack_slots_for_args.
3263 * function.c (use_register_for_decl): Use
3264 targetm.calls.allocate_stack_slots_for_args.
3265 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
3266 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
3267 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
3268
3269 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3270
3271 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
3272
3273 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
3274
3275 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
3276 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
3277 is only rounded once.
3278
3279 2008-05-23 Richard Guenther <rguenther@suse.de>
3280
3281 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
3282
3283 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
3284 Jakub Jelinek <jakub@redhat.com>
3285
3286 PR target/36079
3287 * configure.ac: Handle --enable-cld.
3288 * configure: Regenerated.
3289 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
3290 * config/i386/i386.h (struct machine_function): Add needs_cld field.
3291 (ix86_current_function_needs_cld): New define.
3292 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
3293 (cld): New isns pattern.
3294 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
3295 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
3296 * config/i386/i386.opt (mcld): New option.
3297 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
3298 TARGET_CLD and ix86_current_function_needs_cld.
3299 (override_options): Use -mcld by default for 32-bit code if
3300 USE_IX86_CLD.
3301
3302 * doc/install.texi (Options specification): Document --enable-cld.
3303 * doc/invoke.texi (Machine Dependent Options)
3304 [i386 and x86-64 Options]: Add -mcld option.
3305 (Intel 386 and AMD x86-64 Options): Document -mcld option.
3306
3307 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
3308 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
3309 (return_in_memory_64): Likewise.
3310 (return_in_memory_ms_64): Likewise.
3311
3312 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3313
3314 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
3315 * builtins.c (fold_builtin_fpclassify): New.
3316 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
3317 * builtins.def (BUILT_IN_FPCLASSIFY): New.
3318 * c-common.c (handle_type_generic_attribute): Adjust to accept
3319 fixed arguments before an elipsis.
3320 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
3321 * doc/extend.texi: Document __builtin_fpclassify.
3322
3323 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
3324
3325 * omp-low.c (gate_expand_omp_ssa): Remove.
3326 (pass_expand_omp_ssa): Remove.
3327 (gate_expand_omp): Do not check for flag_openmp_ssa.
3328 * common.opt (-fopenmp-ssa): Remove.
3329 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
3330
3331 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
3332
3333 * config/sh/sh.opt (mfixed-range): New option.
3334 * config/sh/sh-protos.h (sh_fix_range): Declare.
3335 * config/sh/sh.c (sh_fix_range): New function.
3336 * config/sh/sh.h (sh_fixed_range_str): Declare.
3337 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
3338 is not empty.
3339 * doc/invoke.texi (SH Options): Document -mfixed-range.
3340
3341 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
3342
3343 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
3344 it before the redeclaration.
3345
3346 2008-05-22 Anatoly Sokolov <aesok@post.ru>
3347
3348 * config/avr/avr.c (get_sequence_length): Add new function.
3349 (expand_prologue, expand_epilogue): Remove duplicate code.
3350
3351 2008-05-22 Rafael Espindola <espindola@google.com>
3352
3353 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
3354 sharing.
3355
3356 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
3357
3358 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
3359 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
3360
3361 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
3362 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
3363 (vect_update_misalignment_for_peel): Likewise.
3364 (vector_alignment_reachable_p): Likewise.
3365 * tree-vect-transform.c (vectorizable_load): Likewise.
3366 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
3367 (get_vectype_for_scalar_type): Pass mode of scalar_type
3368 to UNITS_PER_SIMD_WORD.
3369
3370 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
3371 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
3372 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
3373 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
3374 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
3375
3376 2008-05-22 Ira Rosen <irar@il.ibm.com>
3377
3378 PR tree-optimization/36293
3379 * tree-vect-transform.c (vect_transform_strided_load): Don't check
3380 if the first load must be skipped because of a gap.
3381
3382 2008-05-22 Richard Guenther <rguenther@suse.de>
3383
3384 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
3385 more cases of offset disambiguation that is possible if
3386 strict-aliasing rules apply.
3387 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
3388 for basic offset and type-based disambiguation.
3389
3390 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
3391
3392 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
3393 ix86_expand_vector_set on V16QImode for SSE4.1.
3394
3395 2008-05-21 Tom Tromey <tromey@redhat.com>
3396
3397 * c.opt (Wimport): Mark as undocumented.
3398 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
3399 -Wno-import.
3400 (Warning Options): Likewise.
3401 * doc/cppopts.texi: Don't mention -Wimport.
3402
3403 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
3404
3405 PR tree-optimization/36287
3406 PR tree-optimization/36286
3407 * lambda-code.c (build_access_matrix): Do not use the loop->num
3408 for computing the number of induction variables: use the loop depth
3409 instead.
3410
3411 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
3412
3413 PR/36280
3414 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
3415 option -f(no-)leading-underscore.
3416
3417 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
3418
3419 * config/i386/i386.c (ix86_expand_vector_init_general): Use
3420 GET_MODE_NUNITS (mode).
3421
3422 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
3423
3424 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
3425 (-mmulhw): Add 464 to description.
3426 (-mdlmzb): Likewise.
3427 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
3428 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
3429 464fp entries.
3430 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
3431 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
3432 * config/rs6000/rs6000.md: Update comments for 464.
3433
3434 2008-05-21 Janis Johnson <janis187@us.ibm.com>
3435
3436 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
3437
3438 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
3439
3440 * config/i386/sse.md (vec_extractv4sf): Removed.
3441 (vec_extractv2df): Likewise.
3442 (vec_extractv2di): Likewise.
3443 (vec_extractv4si): Likewise.
3444 (vec_extractv8hi): Likewise.
3445 (vec_extractv16qi): Likewise.
3446 (vec_extract<mode>): New.
3447
3448 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
3449
3450 * config/i386/sse.md (vec_setv4sf): Removed.
3451 (vec_setv2df): Likewise.
3452 (vec_setv2di): Likewise.
3453 (vec_setv4si): Likewise.
3454 (vec_setv8hi): Likewise.
3455 (vec_setv16qi): Likewise.
3456 (vec_set<mode>): New.
3457
3458 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
3459
3460 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
3461 goto for vec_concat and vec_interleave.
3462
3463 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
3464
3465 * config/i386/sse.md (vec_initv4sf): Removed.
3466 (vec_initv2df): Likewise.
3467 (vec_initv2di): Likewise.
3468 (vec_initv4si): Likewise.
3469 (vec_initv8hi): Likewise.
3470 (vec_initv16qi): Likewise.
3471 (vec_init<mode>): New.
3472
3473 2008-05-21 Joseph Myers <joseph@codesourcery.com>
3474
3475 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
3476
3477 2008-05-21 Tom Tromey <tromey@redhat.com>
3478
3479 * ggc-zone.c (lookup_page_table_if_allocated): New function.
3480 (zone_find_object_offset): Likewise.
3481 (gt_ggc_m_S): Likewise.
3482 (highest_bit): Likewise.
3483 * ggc-page.c (gt_ggc_m_S): New function.
3484 * stringpool.c (string_stack): Remove.
3485 (init_stringpool): Update.
3486 (ggc_alloc_string): Use ggc_alloc.
3487 (maybe_delete_ident): New function.
3488 (ggc_purge_stringpool): Likewise.
3489 (gt_ggc_m_S): Remove.
3490 * ggc-common.c (ggc_protect_identifiers): New global.
3491 (ggc_mark_roots): Call ggc_purge_stringpool. Use
3492 ggc_protect_identifiers.
3493 * ggc.h (ggc_protect_identifiers): Declare.
3494 (gt_ggc_m_S): Update.
3495 (ggc_purge_stringpool): Declare.
3496 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
3497 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
3498 special case.
3499 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
3500
3501 2008-05-21 David S. Miller <davem@davemloft.net>
3502
3503 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
3504 tmake_file.
3505
3506 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
3507
3508 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
3509 once finished.
3510
3511 2008-05-20 David Daney <ddaney@avtrex.com>
3512
3513 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
3514 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
3515 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
3516 UNSPEC_UPDATE_GOT_VERSION): Renumber.
3517 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
3518 (atomic_hiqi_op): New define_code_iterator.
3519 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
3520 mips_expand_compare_and_swap_12.
3521 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
3522 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
3523 (sync_<optab><mode>, sync_old_<optab><mode>,
3524 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
3525 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
3526 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
3527 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
3528 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
3529 (test_and_set_12): New insn.
3530 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
3531 sync_new_<optab><mode>, sync_old_nand<mode>,
3532 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
3533 clobber to operand 0 for SI and DI mode insns.
3534 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
3535 mips_gen_fn_4): New typedefs.
3536 (mips_gen_fn_ptrs): Define new union type.
3537 (mips_expand_compare_and_swap_12): Remove declaration.
3538 (mips_expand_atomic_qihi): Declare function.
3539 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
3540 (mips_expand_atomic_qihi): ... this. Use new generator function
3541 parameter.
3542 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
3543 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
3544 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
3545 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
3546 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
3547 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
3548 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
3549 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
3550 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
3551 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
3552 New macros.
3553
3554 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
3555
3556 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
3557 the missing break.
3558
3559 2008-05-20 Anatoly Sokolov <aesok@post.ru>
3560
3561 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
3562 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
3563 (avr_attribute_table): Add 'OS_main' function attribute.
3564 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
3565 functions with 'OS_main' attribute.
3566
3567 2008-05-20 Richard Guenther <rguenther@suse.de>
3568
3569 PR tree-optimization/35204
3570 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
3571 helper, split out from ...
3572 (DFS): ... here. Make the DFS walk non-recursive.
3573
3574 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
3575 Jan Sjodin <jan.sjodin@amd.com>
3576
3577 PR tree-optimization/36181
3578 * tree-parloops.c (loop_has_vector_phi_nodes): New.
3579 (parallelize_loops): Don't parallelize when the loop has vector
3580 phi nodes.
3581
3582 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
3583 Sebastian Pop <sebastian.pop@amd.com>
3584
3585 * tree-loop-linear.c (gather_interchange_stats): Look in the access
3586 matrix, and never look at the tree representation of the memory
3587 accesses.
3588 (linear_transform_loops): Computes parameters and access matrices.
3589 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
3590 when fails.
3591 (access_matrix_get_index_for_parameter): New.
3592 * tree-data-ref.h (struct access_matrix): New.
3593 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
3594 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
3595 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
3596 am_vector_index_for_loop): New.
3597 (struct data_reference): Add field access_matrix.
3598 (DR_ACCESS_MATRIX): New.
3599 (compute_data_dependences_for_loop): Update declaration.
3600 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
3601 * lambda.h (lambda_vector_vec_p): Declared.
3602 * lambda-code.c: Depend on pointer-set.h.
3603 (lambda_collect_parameters_from_af, lambda_collect_parameters,
3604 av_for_af_base, av_for_af, build_access_matrix,
3605 lambda_compute_access_matrices): New.
3606 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
3607
3608 2008-05-20 Joseph Myers <joseph@codesourcery.com>
3609
3610 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
3611 $SOURCEDIR/include.
3612
3613 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
3614 Sebastian Pop <sebastian.pop@amd.com>
3615
3616 PR tree-optimization/36206
3617 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
3618 FOLD_CONVERSIONS.
3619 (instantiate_scev_1): Rename flags to fold_conversions.
3620 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
3621 outeside instantiation_loop.
3622 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
3623 (evolution_function_is_affine_or_constant_p): Removed.
3624 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
3625 instantiate_scev.
3626 (analyze_siv_subscript): Pass in the loop nest number.
3627 Call evolution_function_is_affine_in_loop instead of
3628 evolution_function_is_affine_p.
3629 (analyze_overlapping_iterations): Pass in the loop nest number.
3630
3631 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
3632 Sebastian Pop <sebastian.pop@amd.com>
3633
3634 PR tree-optimization/36206
3635 * tree-chrec.h (chrec_fold_op): New.
3636 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
3637 and other trees.
3638
3639 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
3640
3641 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
3642 (DIRS_EQ): New.
3643 (remove_duplicates): Do not set inode on non-inode systems.
3644 Use DIRS_EQ.
3645
3646 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
3647
3648 * config.gcc (tm_file): Update comments about relative pathnames.
3649
3650 2008-05-20 Richard Guenther <rguenther@suse.de>
3651
3652 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
3653 * tree-ssa-sccvn.c (process_scc): Likewise.
3654 * tree-ssa-sink.c (execute_sink_code): Likewise.
3655 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
3656 * tree-vrp.c (process_assert_insertions): Likewise.
3657 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
3658 (perform_tree_ssa_dce): Likewise.
3659 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
3660 (dump_dominator_optimization_stats): Likewise.
3661 * tree-vectorizer.c (vectorize_loops): Likewise.
3662
3663 2008-05-20 Richard Guenther <rguenther@suse.de>
3664
3665 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
3666
3667 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
3668
3669 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
3670 (ix86_i386elf_return_in_memory): Likewise.
3671 (ix86_i386interix_return_in_memory): Likewise.
3672 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
3673 (SUBTARGET_RETURN_IN_MEMORY): New.
3674 * config/i386/i386elf.h: Likewise.
3675 * config/i386/ptx4-i.h: Likewise.
3676 * config/i386/sol2-10.h: Likewise.
3677 * config/i386/sysv4.h: Likewise.
3678 * config/i386/vx-common.h: Likewise.
3679 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
3680 * config/i386/i386.c (ix86_return_in_memory): Made static and
3681 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
3682 (ix86_i386elf_return_in_memory): Removed.
3683 (ix86_i386interix_return_in_memory): Removed.
3684 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
3685 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
3686
3687 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
3688
3689 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
3690
3691 2008-05-19 Xinliang David Li <davidxl@google.com>
3692
3693 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
3694 * opts.c: Ditto.
3695 * common.opt: Ditto.
3696 * doc/invoke.texi: Ditto.
3697
3698 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
3699
3700 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
3701 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
3702
3703 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
3704
3705 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
3706 sizes of operand array from 8/4 to 4/2.
3707 (ix86_expand_vector_init_general): Change size of operand array
3708 from 32 to 16. Remove op0, op1 and half_mode.
3709
3710 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
3711
3712 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
3713 (ix86_expand_vector_init_interleave): Likewise.
3714 (ix86_expand_vector_init_general): Use them. Assert
3715 word_mode == SImode when n_words == 4.
3716
3717 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
3718
3719 * config/i386/i386.c (ix86_secondary_reload): New static function.
3720 (TARGET_SECONDARY_RELOAD): New define.
3721 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
3722 * config/i386/i386.md (reload_outqi): Remove.
3723
3724 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3725
3726 PR middle-end/35509
3727 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
3728 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
3729 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
3730 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
3731 (fold_builtin_1): Likewise.
3732 * builtins.def (BUILT_IN_ISINF_SIGN): New.
3733 c-common.c (check_builtin_function_arguments): Handle
3734 BUILT_IN_ISINF_SIGN.
3735 * doc/extend.texi: Document __builtin_isinf_sign.
3736 * fold-const.c (operand_equal_p): Handle COND_EXPR.
3737
3738 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
3739
3740 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
3741 EH cleanup at the end of the pass, search for those that have been
3742 turned into forwarder blocks and do the cleanup on their successor.
3743
3744 2008-05-18 Richard Guenther <rguenther@suse.de>
3745
3746 * tree-cfg.c (verify_gimple_expr): Allow conversions from
3747 pointers to sizetype and vice versa.
3748
3749 2008-05-18 Xinliang David Li <davidxl@google.com>
3750
3751 * gcc/tree-ssa-dce.c: Coding style fix.
3752 (check_pow): Documentation comment.
3753 (check_log): Documenation comment. Coding style fix.
3754 (is_unnecessary_except_errno_call): Ditto.
3755 (gen_conditions_for_pow): Ditto.
3756 (gen_conditions_for_log): Ditto.
3757 (gen_shrink_wrap_conditions): Ditto.
3758 (shrink_wrap_one_built_in_calls): Ditto.
3759 * gcc/doc/invoke.texi: Better documentation string.
3760 * ChangeLog: Fix wrong change log entries from
3761 May 17 checkin on function call DCE.
3762
3763 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
3764
3765 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
3766
3767 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
3768
3769 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
3770 * df-problems.c (simulation routines): Fixed block comment to
3771 properly say how to add forwards scanning functions.
3772
3773 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
3774
3775 * tree-inline.c (setup_one_parameter): Remove dead code.
3776
3777 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
3778
3779 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
3780 a BIT_AND_EXPR only for an INTEGER_TYPE.
3781
3782 2008-05-17 Xinliang David Li <davidxl@google.com>
3783
3784 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
3785 (check_pow, check_log, is_unnecessary_except_errno_call): New
3786 functions to check for eliminating math functions that are pure
3787 except for setting errno.
3788 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
3789 general condition expressions for shrink-wrapping pow/log calls.
3790 (gen_shrink_wrap_conditions): Ditto.
3791 (shrink_wrap_one_built_in_call): Ditto.
3792 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
3793 (mark_operand_necessary): If debugging, output if OP is necessary.
3794 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
3795 unnecessary.
3796 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
3797 opt level >= 2.
3798 * gcc/common.opt: New user flag -ftree-builtin-dce.
3799 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
3800
3801 2008-05-16 David S. Miller <davem@davemloft.net>
3802
3803 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
3804 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
3805
3806 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
3807
3808 PR target/36246
3809 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
3810
3811 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
3812
3813 * ifcvt.c (dead_or_predicable): Rename
3814 df_simulate_one_insn_backwards to df_simulate_one_insn.
3815 * recog.c (peephole2_optimize): Ditto.
3816 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
3817 Ditto.
3818 * df.h: Rename df_simulate_one_insn_backwards to
3819 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
3820 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
3821 scanning of defs and uses.
3822 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
3823 (df_simulate_one_insn_forwards): Removed.
3824
3825 2008-05-16 Doug Kwan <dougkwan@google.com>
3826
3827 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
3828 QNaN & SNaN.
3829 (real_from_string): Handle NaNs and Inf as approriate.
3830
3831 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
3832
3833 * doc/gty.texi (Source Files Containing Type Information): Note
3834 that headers should appear first in the gtfiles list.
3835
3836 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
3837
3838 * tree.def (COND_EXEC): Properly documented this code.
3839
3840 2008-05-16 Diego Novillo <dnovillo@google.com>
3841
3842 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
3843 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
3844 the new field.
3845
3846 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
3847
3848 * tree-ssa-dse (max_stmt_uid): Removed.
3849 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
3850 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
3851 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
3852 * function.h (cfun.last_stmt_uid): New field.
3853 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
3854 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
3855 New functions.
3856 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
3857 (create_stmt_ann): Initialize the ann->uid field.
3858 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
3859 with new calls.
3860 * tree-flow.h (renumber_gimple_stmt_uids): New function.
3861
3862 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
3863
3864 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
3865 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
3866 (init_empty_tree_cfg): Call it.
3867
3868 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
3869
3870 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
3871 Update all users.
3872
3873 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
3874
3875 * doc/invoke.text (-fdump-tree-*-verbose): New option.
3876 * tree-dump.c (dump_options): New verbose option.
3877 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
3878 Add verbose dump.
3879 * tree-pass.h (TDF_VERBOSE): New dump flag.
3880 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
3881 (tree-flow.h): Added include.
3882 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
3883
3884 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
3885
3886 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
3887
3888 From Jie Zhang <jie.zhang@analog.com>
3889 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3890 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
3891 mcpu=bf561-none and mcpu=bf561-0.2.
3892 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3893 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
3894 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3895 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
3896 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
3897 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
3898 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
3899 option.
3900 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
3901 (cputype_selected): Remove.
3902 (bfin_handle_option): Don't use cputype_selected.
3903 (override_options): When no mcpu option, enable all workarounds.
3904 Don't use bfin_workarounds.
3905 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
3906 processor type.
3907 (DEFAULT_CPU_TYPE): Don't define.
3908
3909 2008-05-16 Richard Guenther <rguenther@suse.de>
3910
3911 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
3912 on deletion of the last stmt.
3913
3914 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
3915
3916 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
3917 V8HImode for SSE2 and V16QImode for SSE4.1.
3918
3919 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
3920
3921 * cgraph.h (compute_inline_parameters): Made public.
3922 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
3923 variable_generate_summary, function_write_summary,
3924 variable_write_summary, variable_read_summary. Added generate_summary,
3925 write_summary, read_summary.
3926 * cgraphunit.c (cgraph_process_new_functions): Changed call from
3927 pass_ipa_inline.function_generate_summary, to
3928 compute_inline_parameters.
3929 * ipa-inline.c (compute_inline_parameters): Made public and added
3930 node parameter.
3931 (compute_inline_parameters_for_current): New function.
3932 (pass_inline_param): Now calls compute_inline_parameters_for_current.
3933 (inline_generate_summary): Removed parameter and made to loop over
3934 all cgraph nodes.
3935 (pass_ipa_inline): Updated for new IPA_PASS structure.
3936 * passes.c (execute_ipa_summary_passes): Now is called once per
3937 pass rather than once per node*pass.
3938
3939 2008-05-15 Anatoly Sokolov <aesok@post.ru>
3940
3941 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
3942 avr_have_mul_p, avr_asm_only_p): Remove variables.
3943 (avr_override_options): Remove initialization of removed variables.
3944 (avr_file_start): Convert removed variables to fields of
3945 'struct base_arch_s *avr_current_arch'.
3946 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
3947 (AVR_HAVE_MUL): (Ditto.).
3948 (AVR_HAVE_MOVW): (Ditto.).
3949 (AVR_HAVE_LPMX): (Ditto.).
3950 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
3951 avr_asm_only_p): Remove declaration.
3952
3953 2008-05-15 Diego Novillo <dnovillo@google.com>
3954
3955 * config/arm/arm.c (arm_return_in_memory): Fix return type.
3956 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
3957
3958 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
3959
3960 PR middle-end/36194
3961 * combine.c (check_conversion): Rename back to check_promoted_subreg.
3962 Don't call record_truncated_value from here.
3963 (record_truncated_value): Turn it into a for_each_rtx callback.
3964 (record_truncated_values): New function.
3965 (combine_instructions): Call note_uses with record_truncated_values.
3966 Change name of check_conversion to check_promoted_subreg.
3967
3968 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3969
3970 * doc/sourcebuild.texi: Document support for torture tests.
3971
3972 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
3973
3974 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
3975 to alternative 4 of operand 2.
3976
3977 2008-05-15 Richard Guenther <rguenther@suse.de>
3978
3979 * tree-pass.h (current_pass): Declare.
3980 (get_pass_for_id): Likewise.
3981 * passes.c (passes_by_id, passes_by_id_size): New globals.
3982 (set_pass_for_id): New function.
3983 (get_pass_for_id): Likewise.
3984 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
3985 (execute_function_todo): Flush per function statistics.
3986 * toplev.c (compile_file): Init statistics.
3987 (general_init): Do early statistics initialization.
3988 (finalize): Finish statistics.
3989 * statistics.h (statistics_early_init): Declare.
3990 (statistics_init): Likewise.
3991 (statistics_fini): Likewise.
3992 (statistics_fini_pass): Likewise.
3993 (statistics_counter_event): Likewise.
3994 (statistics_histogram_event): Likewise.
3995 * statistics.c: New file.
3996 * Makefile.in (OBJS-common): Add statistics.o.
3997 (statistics.o): Add dependencies.
3998 * doc/invoke.texi (-fdump-statistics): Document.
3999
4000 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
4001 (insert): Likewise.
4002 (execute_pre): Use statistics_counter_event.
4003 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
4004 (substitute_and_fold): Increment it. Use statistics_counter_event.
4005
4006 2008-05-15 Diego Novillo <dnovillo@google.com>
4007
4008 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
4009
4010 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
4011 * tree-ssa-alias.c (new_type_alias): Remove references to
4012 sub-variables from comment.
4013 * tree-ssa-operands.c (swap_tree_operands): Likewise.
4014
4015 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
4016
4017 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
4018 attribute to 1 only for insertps alternative.
4019
4020 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
4021
4022 * config/bfin/bfin.md (loadbytes): New pattern.
4023 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
4024 (bfin_init_builtins): Initialize it.
4025 (bdesc_1arg): Add it.
4026
4027 2008-05-15 Sa Liu <saliu@de.ibm.com>
4028
4029 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
4030 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
4031 * testsuite/lib/target-supports.exp: Add
4032 check_effective_target_fortran_integer_16.
4033
4034 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
4035
4036 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
4037 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
4038 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
4039 (TARGET_RETURN_IN_MEMORY): Define.
4040
4041 2008-05-15 Richard Guenther <rguenther@suse.de>
4042
4043 PR middle-end/36244
4044 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
4045 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
4046 represent unmodifiable vars.
4047
4048 2008-05-15 Richard Guenther <rguenther@suse.de>
4049
4050 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
4051 INDIRECT_REF and TARGET_MEM_REF.
4052 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4053 TARGET_MEM_REF.
4054
4055 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
4056 H.J. Lu <hongjiu.lu@intel.com>
4057
4058 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
4059 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
4060 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
4061 insn alternatives. Add missing alternatives.
4062 (*vec_concatv2di_rex64_sse4_1): Likewise.
4063 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
4064 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
4065 Require TARGET_SSE.
4066
4067 2008-05-15 Richard Guenther <rguenther@suse.de>
4068
4069 PR tree-optimization/36009
4070 PR tree-optimization/36204
4071 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
4072 (determine_invariantness_stmt): Record the loop a store is
4073 always executed in.
4074 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
4075 dependency.
4076
4077 2008-05-15 Richard Guenther <rguenther@suse.de>
4078
4079 PR tree-optimization/34330
4080 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
4081 through the pointer will alias the SMT.
4082
4083 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
4084
4085 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
4086
4087 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
4088
4089 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
4090
4091 2008-05-14 Michael Meissner <michael.meissner@amd.com>
4092 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4093
4094 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
4095 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
4096 (vashl_optab): New optab for vector/vector shifts.
4097 (vashr_optab): Ditto.
4098 (vlshr_optab): Ditto.
4099 (vrotl_optab): Ditto.
4100 (vrotr_optab): Ditto.
4101 (optab_subtype): New enum for optab_for_tree_code call.
4102 (optab_for_tree_code): Add enum optab_subtype argument.
4103
4104 * optabs.c (optab_for_tree_code): Take an additional argument to
4105 distinguish between a vector shift by a scalar and vector shift by
4106 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
4107 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
4108 vector shift by a vector.
4109 (expand_widen_pattern_expr): Pass additional argument to
4110 optab_for_tree_code.
4111
4112 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
4113 vrotl_optab, vrotr_optab.
4114
4115 * expr.c (expand_expr_real_1): Update calls to
4116 optab_for_tree_code to distinguish between vector shifted by a
4117 scalar and vector shifted by a vector.
4118 * tree-vectorizer.c (supportable_widening_operation): Ditto.
4119 (supportable_narrowing_operation): Ditto.
4120 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
4121 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
4122 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
4123 (vect_create_epilog_for_reduction): Ditto.
4124 (vectorizable_reduction): Ditto.
4125 (vectorizable_operation): Ditto.
4126 (vect_strided_store_supported): Ditto.
4127 (vect_strided_load_supported): Ditto.
4128 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4129 * expmed.c (expand_shift): Ditto.
4130
4131 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
4132 scalar type.
4133 (ashr@var{m}3): Ditto.
4134 (vashl@var{m}3): Document new vector/vector shift standard name.
4135 (vashr@var{m}3): Ditto.
4136 (vlshr@var{m}3): Ditto.
4137 (vrotl@var{m}3): Ditto.
4138 (vrotr@var{m}3): Ditto.
4139
4140 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
4141 (PPERM_INVERT): Ditto.
4142 (PPERM_REVERSE): Ditto.
4143 (PPERM_REV_INV): Ditto.
4144 (PPERM_ZERO): Ditto.
4145 (PPERM_ONES): Ditto.
4146 (PPERM_SIGN): Ditto.
4147 (PPERM_INV_SIGN): Ditto.
4148 (PPERM_SRC1): Ditto.
4149 (PPERM_SRC2): Ditto.
4150
4151 * config/i386/sse.md (mulv2di3): Add SSE5 support.
4152 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
4153 allows a memory operand to be the value being added, and split it
4154 to improve vectorization.
4155 (sse5_pmacsdqh_mem): Ditto.
4156 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
4157 (sse5_mulv2div2di3_high): Ditto.
4158 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
4159 (vec_pack_trunc_v4si): Ditto.
4160 (vec_pack_trunc_v2di): Ditto.
4161 (sse5_pcmov_<mode>): Remove code that tried to use use
4162 andps/andnps instead of pcmov.
4163 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
4164 pmacsdqh instructions.
4165 (vec_widen_smult_lo_v4si): Ditto.
4166
4167 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
4168 (PPERM_INVERT): Ditto.
4169 (PPERM_REVERSE): Ditto.
4170 (PPERM_REV_INV): Ditto.
4171 (PPERM_ZERO): Ditto.
4172 (PPERM_ONES): Ditto.
4173 (PPERM_SIGN): Ditto.
4174 (PPERM_INV_SIGN): Ditto.
4175 (PPERM_SRC1): Ditto.
4176 (PPERM_SRC2): Ditto.
4177 (ix86_expand_sse_movcc): Move the SSE5 test after the if
4178 true/false tests.
4179 (ix86_expand_int_vcond): If SSE5 generate all possible integer
4180 comparisons.
4181 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
4182 says ignore whether the last reference is a memory operand.
4183
4184 2008-05-14 Michael Meissner <michael.meissner@amd.com>
4185 Paolo Bonzini <bonzini at gnu dot org>
4186
4187 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
4188 shift patterns.
4189
4190 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
4191 (vlshr<mode>3): Rename from vlshr<mode>3.
4192 (vashr<mode>3): Rename from vashr<mode>3.
4193 (mulv4sf3): Change the names of vector shift patterns.
4194 (mulv4si3): Ditto.
4195 (negv4sf2): Ditt.
4196
4197 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
4198 shift insns.
4199
4200 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
4201 (SI_SHLHI): Ditto.
4202 (SI_SHL): Ditto.
4203 (SI_SHLI): Ditto.
4204 (SI_ROTH): Ditto.
4205 (SI_ROTHI): Ditto.
4206 (SI_ROT): Ditto.
4207 (SI_ROTI): Ditto.
4208 (SPU_RL_0): Ditto.
4209 (SPU_RL_1): Ditto.
4210 (SPU_RL_2): Ditto.
4211 (SPU_RL_3): Ditto.
4212 (SPU_RL_4): Ditto.
4213 (SPU_RL_5): Ditto.
4214 (SPU_RL_6): Ditto.
4215 (SPU_RL_7): Ditto.
4216 (SPU_SL_0): Ditto.
4217 (SPU_SL_1): Ditto.
4218 (SPU_SL_2): Ditto.
4219 (SPU_SL_3): Ditto.
4220 (SPU_SL_4): Ditto.
4221 (SPU_SL_5): Ditto.
4222 (SPU_SL_6): Ditto.
4223 (SPU_SL_7): Ditto.
4224
4225 * config/spu/spu.md (v): New iterator macro to add v for vector types.
4226 (floatunssidf2_internal): Change vector/vector shift names.
4227 (floatunsdidf2_internal): Ditto.
4228 (mulv8hi3): Ditto.
4229 (ashrdi3): Ditto.
4230 (ashrti3): Ditto.
4231 (cgt_df): Ditto.
4232 (cgt_v2df): Ditto.
4233 (dftsv): Ditto.
4234 (vashl<mode>3): Rename from ashl<mode>3.
4235 (vashr<mode>3): Rename from ashr<mode>3.
4236 (vlshr<mode>3): Rename from lshr<mode>3.
4237 (vrotl<mode>3): Rename from rotl<mode>3.
4238
4239 2008-05-14 Michael Meissner <michael.meissner@amd.com>
4240
4241 PR target/36224
4242 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
4243 multiply gives the wrong value when doing widening multiplies.
4244 (vec_widen_smult_lo_v4si): Ditto.
4245
4246 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
4247
4248 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
4249 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
4250 emit_library_call_value.
4251 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
4252 * tree.h (ECF_LIBCALL_BLOCK): Removed.
4253 * calls.c (initialize_argument_information, precompute_arguments,
4254 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
4255 (precompute_arguments): Removed flags parameter.
4256 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
4257
4258 2008-05-14 Richard Guenther <rguenther@suse.de>
4259
4260 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
4261 Make sure to register the store if the use is a PHI_NODE.
4262
4263 2008-05-14 Olivier Hainque <hainque@adacore.com>
4264
4265 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
4266 memory if the component is to be referenced in BLKmode according
4267 to get_inner_reference.
4268
4269 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
4270
4271 * calls.c (emit_library_call_value_1): Restore code clearing
4272 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
4273
4274 2008-05-14 Olivier Hainque <hainque@adacore.com>
4275 Nicolas Roche <roche@adacore.com>
4276
4277 * configure.ac: Add support for a "gcc_subdir" variable in
4278 config-lang.in, to denote a subdirectory where the language/GCC
4279 integration files are to be found.
4280 * configure: Regenerate.
4281
4282 2008-05-14 Ira Rosen <irar@il.ibm.com>
4283
4284 PR tree-optimization/36098
4285 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
4286 value for the first load in the group in case of a gap.
4287 (vect_build_slp_tree): Check that there are no gaps in loads.
4288
4289 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
4290
4291 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
4292 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
4293 expand_copysign_bit, ): Change call to emit_no_conflict_block to
4294 emit_insn and remove unneeded code to construct extra args.
4295 (emit_no_conflict_block): Removed.
4296 * optabls.h: (emit_no_conflict_block): Removed.
4297 * cse.c (cse_extended_basic_block): Remove search for
4298 REG_NO_CONFLICT note.
4299 * global.c: Removed incorrect comment added in revision 117.
4300 * expr.c (convert_move): Change call to emit_no_conflict_block to
4301 emit_insn.
4302 * recog.c: Change comments so that they do not mention
4303 REG_NO_CONFLICT.
4304 * local_alloc.c (combine_regs): Removed last parameter.
4305 (no_conflict_p): Removed.
4306 (block_alloc): Removed note, no_conflict_combined_regno and set
4307 local vars. Removed all code to process REG_NO_CONFLICT blocks.
4308 (combine_regs): Removed already_dead and code to look for
4309 REG_NO_CONFLICT notes.
4310 * lower_subreg (remove_retval_note): Removed code to look for
4311 REG_NO_CONFLICT block.
4312 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
4313 (resolve_clobber): Remove code to process libcalls that have
4314 REG_NO_CONFLICT notes.
4315 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
4316 case.
4317 * combine.c (can_combine_p, distribute_notes): Removed
4318 REG_NO_CONFLICT case.
4319 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
4320 to emit_insns.
4321 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
4322 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
4323 Ditto.
4324 * reg-notes.def (NO_CONFLICT): Removed.
4325
4326 2008-05-14 David S. Miller <davem@davemloft.net>
4327
4328 * config/sparc/sparc.c (sparc_profile_hook): If
4329 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
4330 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
4331 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
4332
4333 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
4334
4335 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
4336
4337 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
4338
4339 PR target/36222
4340 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
4341 and op1 expansion before vector concat to have less live pseudos.
4342
4343 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
4344
4345 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
4346 ix86_expand_vector_set if supported.
4347
4348 2008-05-13 Diego Novillo <dnovillo@google.com>
4349 Kenneth Zadeck <zadeck@naturalbridge.com>
4350
4351 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
4352
4353 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
4354 phinodes_print_statistics, init_ssanames, fini_ssanames,
4355 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
4356 release_ssa_name, release_defs, replace_ssa_name_symbol,
4357 ssanames_print_statistics): Move ...
4358 * tree-flow.h: ... here.
4359 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
4360 Use FN instead of cfun.
4361 (make_ssa_name_fn): Rename from make_ssa_name.
4362 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
4363 * tree-flow-inline.h (make_ssa_name): Move from
4364 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
4365 * omp-low.c (expand_omp_parallel):
4366 * tree-flow-inline.h (redirect_edge_var_map_result):
4367 * tree-ssa.c (init_tree_ssa): Add argument FN.
4368 Use it instead of cfun. Update all users.
4369
4370 2008-05-13 Tom Tromey <tromey@redhat.com>
4371
4372 PR preprocessor/22168:
4373 * doc/cpp.texi (Top): Update menu.
4374 (Alternatives to Wrapper #ifndef): New node.
4375 (Other Directives): Document deprecation.
4376 (Obsolete Features): Remove menu.
4377 (Assertions): Merge node into Obsolete Features.
4378 (Obsolete once-only headers): Move earlier; rename to Alternatives
4379 to Wrapper #ifndef.
4380 * doc/cppopts.texi: Update.
4381 * c.opt (Wdeprecated): Enable for C and ObjC.
4382 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
4383 (C++ Dialect Options): Move -Wno-deprecated from here to...
4384 (Warning Options): ... here.
4385
4386 2008-05-13 Richard Guenther <rguenther@suse.de>
4387
4388 PR middle-end/36227
4389 * fold-const.c (fold_sign_changed_comparison): Do not allow
4390 changes in pointer-ness.
4391
4392 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
4393
4394 PR target/24713
4395 * config/sh/sh.c (sh_expand_prologue): Don't clear
4396 RTX_FRAME_RELATED_P for push insns.
4397
4398 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
4399
4400 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
4401
4402 2008-05-12 Anatoly Sokolov <aesok@post.ru>
4403
4404 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
4405 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
4406 Use 'machine->is_leaf' instead of 'leaf_func_p'.
4407
4408 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
4409
4410 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
4411 (*vec_concatv4sf_sse): This.
4412 (*sse2_concatv2si): Renamed to ...
4413 (*vec_concatv2si_sse2): This.
4414 (*sse1_concatv2si): Renamed to ...
4415 (*vec_concatv2si_sse): This.
4416 (*vec_concatv2di_rex): Renamed to ...
4417 (*vec_concatv2di_rex64): This.
4418 (*vec_concatv2si_sse4_1): New.
4419 (*vec_concatv2di_rex64_sse4_1): Likewise.
4420
4421 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
4422
4423 PR rtl-optimization/36111
4424 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
4425 that was created for swappable operands.
4426
4427 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4428
4429 PR ada/36001
4430 * Makefile.in: Substitute GNATMAKE and GNATBIND.
4431 * configure.ac: Add call to ACX_PROG_GNAT.
4432
4433 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
4434
4435 * optc-gen.awk: Fix comment typo.
4436
4437 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4438
4439 * pretty-print.c (pp_integer_with_precision): Use
4440 HOST_LONG_LONG_FORMAT.
4441
4442 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
4443
4444 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
4445
4446 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
4447
4448 * config/i386/i386.c (bdesc_ptest): Removed.
4449 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
4450 (bdesc_args): Add __builtin_ia32_ptestz128,
4451 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
4452 (ix86_init_mmx_sse_builtins): Updated.
4453 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
4454 (ix86_expand_builtin): Updated.
4455
4456 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4457
4458 * tree-cfg.c (valid_fixed_convert_types_p): New function.
4459 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
4460
4461 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
4462
4463 * value-prof.c (interesting_stringop_to_profile): Do not
4464 return early for BUILT_IN_MEMPCPY.
4465
4466 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
4467
4468 * calls.c (expand_call): Don't use callgraph to increase
4469 preferred_stack_boundary.
4470
4471 * cgraph.h (cgraph_rtl_info): Use unsigned on
4472 preferred_incoming_stack_boundary.
4473
4474 * final.c (rest_of_clean_state): Use unsigned on
4475 preferred_stack_boundary.
4476
4477 2008-05-09 Tom Tromey <tromey@redhat.com>
4478
4479 PR preprocessor/22231:
4480 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
4481 proceeding.
4482
4483 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
4484
4485 PR tree-optimization/36129
4486 * tree-ssa-ccp.c: Include value-prof.h.
4487 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
4488 built-in function was folded to a constant.
4489 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
4490
4491 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
4492 Sebastian Pop <sebastian.pop@amd.com>
4493
4494 * tree-scalar-evolution.c: Document instantiate_scev.
4495 (instantiate_parameters_1): Renamed instantiate_scev_1.
4496 Don't use the same loop for instantiation_loop and evolution_loop.
4497 (instantiate_scev): New.
4498 (instantiate_parameters): Moved...
4499 (resolve_mixers): Update call to instantiate_scev_1 to pass the
4500 same loop twice. Maintains the semantics for this function.
4501 * tree-scalar-evolution.h (instantiate_scev): Declare.
4502 (instantiate_parameters): ...here. Now static inline.
4503 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
4504 instead of resolve_mixers.
4505
4506 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
4507
4508 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
4509
4510 2008-05-09 Tomas Bily <tbily@suse.cz>
4511
4512 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
4513 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
4514 * tree-ssa-structalias.c (get_constraint_for): Likewise.
4515 * c-common.c (c_common_truthvalue_conversion): Likewise.
4516 * tree-object-size.c (compute_object_offset): Likewise.
4517 * tree-inline.c (estimate_num_insns_1): Likewise.
4518 * varasm.c (const_hash_1, compare_constant, copy_constant)
4519 (compute_reloc_for_constant, output_addressed_constants)
4520 (initializer_constant_valid_p): Likewise.
4521 * c-omp.c (check_omp_for_incr_expr): Likewise.
4522 * gimplify.c (gimplify_expr): Likewise.
4523 * c-typeck.c (c_finish_return): Likewise.
4524 * tree-vectorizer.c (supportable_widening_operation)
4525 (supportable_narrowing_operation): Likewise.
4526 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
4527 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
4528 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
4529 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
4530 (descr_info_loc): Likewise.
4531 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
4532 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
4533 (fold_unary): Likewise.
4534 * builtins.c (get_pointer_alignment): Likewise.
4535 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
4536 (instantiate_parameters_1): Likewise.
4537 * tree.c (expr_align, stabilize_reference): Likewise.
4538 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
4539 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
4540 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
4541 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
4542 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
4543 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
4544 Likewise.
4545 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
4546 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
4547 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4548 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
4549 (forward_propagate_comparison)
4550 (tree_ssa_forward_propagate_single_use_vars): Likewise.
4551 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
4552 * emit-rtl.c (component_ref_for_mem_expr)
4553 (set_mem_attributes_minus_bitpos): Likewise.
4554 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
4555 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
4556 Likewise.
4557 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
4558 (build_function_call, pointer_diff, build_compound_expr)
4559 (c_finish_return): Likewise.
4560 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
4561 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
4562 Likewise.
4563 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
4564 * expr.c (is_aligning_offset): Likewise.
4565 * tree-ssa-alias.c (is_escape_site): Likewise.
4566 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
4567 (check_all_va_list_escapes): Likewise.
4568 * tree-ssa-loop-ivopts.c (determine_base_object)
4569 (determine_common_wider_type): Likewise.
4570 * dojump.c (do_jump): Likewise.
4571 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
4572 * tree-gimple.c (is_gimple_cast): Likewise.
4573 * fold-const.c (decode_field_reference, )
4574 (fold_sign_changed_comparison, fold_unary, fold_comparison)
4575 (fold_binary): Likewise.
4576 * tree-ssa-alias-warnings.c (find_alias_site_helper)
4577 (already_warned_in_frontend_p): Likewise.
4578 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
4579 * tree.c (really_constant_p, get_unwidened): Likewise.
4580 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4581 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4582 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
4583 Likewise.
4584 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
4585 CONVERT_EXPR_P.
4586 (CONVERT_EXPR_P): Define.
4587 (CASE_CONVERT): Define.
4588
4589 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
4590
4591 PR middle-end/36117
4592 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
4593 (delete_unmarked_insns): When deleting a call, call
4594 delete_unreachable_blocks.
4595 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
4596 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
4597
4598 2008-05-08 Richard Guenther <rguenther@suse.de>
4599
4600 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
4601 (-ftree-salias): Likewise.
4602 (salias-max-implicit-fields): Remove param documentation.
4603 (salias-max-array-elements): Likewise.
4604 * tree-pass.h (pass_create_structure_vars): Remove.
4605 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
4606 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
4607 * tree-ssa-alias.c (create_structure_vars): Remove.
4608 (gate_structure_vars): Likewise.
4609 (pass_create_structure_vars): Likewise.
4610 (gate_build_alias): Likewise.
4611 (pass_build_alias): Adjust to run always and dump the function.
4612 * common.opt (ftree-salias): Hide.
4613 * passes.c (init_optimization_passes): Remove
4614 pass_create_structure_vars, adjust comment.
4615 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
4616 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
4617 * opts.c (decode_options): Do not set flag_tree_salias.
4618 (common_handle_option): Add OPT_ftree_salias to the backward
4619 compatibility section.
4620
4621 2008-05-08 Richard Guenther <rguenther@suse.de>
4622
4623 * tree-flow-inline.h (var_can_have_subvars): Move ...
4624 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
4625 * tree-flow.h (var_can_have_subvars): Remove.
4626 (push_fields_onto_fieldstack): Remove.
4627 (sort_fieldstack): Likewise.
4628 (struct fieldoff): Move ...
4629 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
4630 alias_set and base_for_components fields.
4631 (sort_fieldstack): Make static.
4632 (push_fields_onto_fieldstack): Likewise. Remove code that
4633 handles anything but RECORD_TYPEs. Remove alias_set and
4634 base_for_components handling.
4635 (create_variable_info_for): Adjust.
4636
4637 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
4638
4639 * common.opt (Wframe-larger-than=): Shorten the help message
4640 to one line.
4641 * doc/invoke.texi (Wframe-larger-than=): Add more description.
4642
4643 2008-05-08 Rafael Espindola <espindola@google.com>
4644
4645 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
4646 trap.
4647 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
4648 trap and that both operands are gimple values.
4649 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
4650 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
4651 is a fp operation.
4652
4653 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
4654
4655 * read-rtl.c (join_c_conditions): Return the first string if the
4656 two strings are equal.
4657
4658 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
4659
4660 * gensupport.h (pred_data): Add a "num_codes" field.
4661 (add_predicate_code): Declare.
4662 * gensupport.c (add_predicate_code): New function.
4663 (std_pred_table): Add an "allows_const_p" field.
4664 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
4665 Remove the (incomplete) list of such codes from the codes field.
4666 (init_predicate_table): Use add_predicate_code. Add all
4667 RTX_CONST_OBJs if allows_const_p is true.
4668 * genrecog.c (process_define_predicate): Use add_predicate_code.
4669
4670 2008-05-08 David Daney <ddaney@avtrex.com>
4671 Richard Sandiford <rsandifo@nildram.co.uk>
4672
4673 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
4674 special case of constant zero operands.
4675 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
4676 old and new values. Special case constant zero values.
4677 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
4678 fails.
4679 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
4680 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
4681
4682 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
4683
4684 PR target/36090
4685 * simplify-rtx.c (simplify_plus_minus): Create CONST of
4686 similar RTX_CONST_OBJ before CONST_INT.
4687
4688 2008-05-08 Steve Ellcey <sje@cup.hp.com>
4689
4690 * stmt.c (expand_stack_restore): Change sa mode if needed.
4691
4692 2008-05-08 Richard Guenther <rguenther@suse.de>
4693
4694 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
4695 return type to bool.
4696 (ix86_sol10_return_in_memory): Likewise.
4697 (ix86_i386elf_return_in_memory): Likewise.
4698 (ix86_i386interix_return_in_memory): Likewise.
4699 * config/i386/i386.c (ix86_return_in_memory): Likewise.
4700 (ix86_sol10_return_in_memory): Likewise.
4701 (ix86_i386elf_return_in_memory): Likewise.
4702 (ix86_i386interix_return_in_memory): Likewise.
4703
4704 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
4705
4706 PR bootstrap/36180
4707 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
4708 fndecl argument.
4709 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
4710 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
4711 declared in front.
4712
4713 2008-05-08 Richard Guenther <rguenther@suse.de>
4714
4715 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
4716 * tree-data-ref.h (struct dr_alias): Remove subvars field.
4717 (DR_SUBVARS): Remove.
4718 * tree-dfa.c (dump_subvars_for): Remove.
4719 (debug_subvars_for): Likewise.
4720 (dump_variable): Do not dump subvars.
4721 (remove_referenced_var): Do not remove subvars.
4722 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
4723 (lookup_subvars_for_var): Remove.
4724 (get_subvars_for_var): Likewise.
4725 (get_subvars_at): Likewise.
4726 (get_first_overlapping_subvar): Likewise.
4727 (overlap_subvar): Likewise.
4728 * tree-flow.h (subvar_t): Remove.
4729 (struct var_ann_d): Remove subvars field.
4730 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
4731 argument. Remove special handling of SFTs.
4732 (compute_tag_properties): Likewise.
4733 (set_initial_properties): Likewise.
4734 (compute_call_clobbered): Likewise.
4735 (count_mem_refs): Likewise.
4736 (compute_memory_partitions): Likewise.
4737 (compute_flow_insensitive_aliasing): Likewise.
4738 (setup_pointers_and_addressables): Likewise.
4739 (new_type_alias): Likewise.
4740 (struct used_part): Remove.
4741 (used_portions): Likewise.
4742 (struct used_part_map): Likewise.
4743 (used_part_map_eq): Likewise.
4744 (used_part_map_hash): Likewise.
4745 (free_used_part_map): Likewise.
4746 (up_lookup): Likewise.
4747 (up_insert): Likewise.
4748 (get_or_create_used_part_for): Likewise.
4749 (create_sft): Likewise.
4750 (create_overlap_variables_for): Likewise.
4751 (find_used_portions): Likewise.
4752 (create_structure_vars): Likewise.
4753 * tree.def (STRUCT_FIELD_TAG): Remove.
4754 * tree.h (MTAG_P): Adjust.
4755 (struct tree_memory_tag): Remove base_for_components and
4756 unpartitionable flags.
4757 (struct tree_struct_field_tag): Remove.
4758 (SFT_PARENT_VAR): Likewise.
4759 (SFT_OFFSET): Likewise.
4760 (SFT_SIZE): Likewise.
4761 (SFT_NONADDRESSABLE_P): Likewise.
4762 (SFT_ALIAS_SET): Likewise.
4763 (SFT_UNPARTITIONABLE_P): Likewise.
4764 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
4765 (union tree_node): Remove sft field.
4766 * alias.c (get_alias_set): Remove special handling of SFTs.
4767 * print-tree.c (print_node): Remove handling of SFTs.
4768 * tree-dump.c (dequeue_and_dump): Likewise.
4769 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
4770 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
4771 * tree-predcom.c (set_alias_info): Do not set subvars.
4772 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
4773 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
4774 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
4775 (add_vars_for_offset): Remove.
4776 (add_virtual_operand): Remove special handling of SFTs.
4777 (add_call_clobber_ops): Likewise.
4778 (add_call_read_ops): Likewise.
4779 (get_asm_expr_operands): Likewise.
4780 (get_modify_stmt_operands): Likewise.
4781 (get_expr_operands): Likewise.
4782 (add_to_addressable_set): Likewise.
4783 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
4784 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
4785 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
4786 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
4787 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
4788 (tree_node_structure): Likewise.
4789 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
4790 handling of SFTs.
4791 (find_what_p_points_to): Likewise.
4792
4793 2008-05-08 Sa Liu <saliu@de.ibm.com>
4794
4795 * config/spu/spu.md: Fixed subti3 pattern.
4796
4797 2008-05-08 Richard Guenther <rguenther@suse.de>
4798
4799 PR middle-end/36154
4800 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
4801 sure to create a representative for trailing arrays for PTA.
4802
4803 2008-05-08 Richard Guenther <rguenther@suse.de>
4804
4805 PR middle-end/36172
4806 * fold-const.c (operand_equal_p): Two objects which types
4807 differ in pointerness are not equal.
4808
4809 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
4810
4811 * calls.c (compute_argument_block_size): Add argument tree fndecl.
4812 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
4813 (emit_library_call_value_1): Add new variable fndecl initialized by
4814 NULL_TREE. It should be the decl type of orgfun, but this information
4815 seems not to be available here, so it uses the default calling abi.
4816 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
4817 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
4818 by TARGET_RETURN_IN_MEMORY.
4819 * config/i386/i386-interix.h: Likewise.
4820 * config/i386/i386.h: Likewise.
4821 * config/i386/i386elf.h: Likewise.
4822 * config/i386/ptx4-i.h: Likewise.
4823 * config/i386/sol2-10.h: Likewise.
4824 * config/i386/sysv4.h: Likewise.
4825 * config/i386/vx-common.h: Likewise.
4826 * config/cris/cris.h: Removed #if 0 clause.
4827 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
4828 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
4829 argument.
4830 (ix86_sol10_return_in_memory): Likewise.
4831 (ix86_i386elf_return_in_memory): New.
4832 (ix86_i386interix_return_in_memory): New.
4833 * config/mt/mt-protos.h (mt_return_in_memory): New.
4834 * config/mt/mt.c: Likewise.
4835 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
4836 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
4837 * config/bfin/bfin.h: Likewise.
4838 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
4839 argument.
4840 * config/bfin/bfin.c: Likewise.
4841 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
4842 * config/alpha/unicosmk.h: Likewise.
4843 * config/i386/cygming.h: Likewise.
4844 * config/iq2000/iq2000.h: Likewise.
4845 * config/mips/mips.h: Likewise.
4846 * config/mn10300/mn10300.h: Likewise.
4847 * config/rs6000/rs6000.h: Likewise.
4848 * config/score/score.h: Likewise.
4849 * config/spu/spu.h: Likewise.
4850 * config/v850/v850.h: Likewise.
4851 * defaults.h: Likewise.
4852 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
4853 * expr.c (emit_block_move): Adjust use of
4854 OUTGOING_REG_PARM_STACK_SPACE.
4855 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
4856 OUTGOING_REG_PARM_STACK_SPACE.
4857 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
4858
4859 2008-05-08 Jakub Jelinek <jakub@redhat.com>
4860
4861 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
4862 on OMP_RETURN for OMP_FOR.
4863
4864 PR debug/35896
4865 * dwarf2out.c (dw_expand_expr, common_check): Removed.
4866 (fortran_common): New function.
4867 (gen_variable_die): Call fortran_common instead of common_check,
4868 adjust for it returning tree instead of rtx. Formatting.
4869
4870 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
4871
4872 PR rtl/7335
4873 PR rtl/33826
4874 * see.c (see_copy_insn): Copy new pure const attributes for new call.
4875 * c-decl.c (merge_decls): Ditto.
4876 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
4877 to RTL_CONST_OR_PURE_CALL_P.
4878 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
4879 Initialized DECL_LOOPING_CONST_PURE.
4880 (process_call_operands): Set tree_side_effects properly.
4881 * tree.h (TREE_READONLY_DECL_P): Removed.
4882 (DECL_IS_PURE): Renamed to DECL_PURE_P.
4883 (DECL_LOOPING_OR_CONST_P): New macro.
4884 (struct tree_function_decl): Added looping_const_or_pure_p.
4885 (ECF_*) Renumbered.
4886 (ECF_LOOPING_OR_CONST_P): New macro.
4887 * rtlanal.c (pure_const_p): Removed.
4888 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
4889 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
4890 to RTL_CONST_CALL_P.
4891 * ipa-pure-const.c (pure_const_state_e): Added looping field.
4892 (check_decl, check_tree, check_call, scan_function): Initialize
4893 looping.
4894 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
4895 (static_execute): Set looping true for recursive functions.
4896 Undo setting state to IPA_NEITHER for recursive functions.
4897 * cse.c (cse_insn):
4898 * ifcvt.c (noce_can_store_speculate_p): Changed
4899 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
4900 RTL_CONST_OR_PURE_CALL_P.
4901 * dse.c (scan_insn): Ditto.
4902 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
4903 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
4904 RTL_CONST_OR_PURE_CALL_P.
4905 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
4906 pure_call_p to RTL_CONST_CALL_P.
4907 * gimplify.c (gimplify_call_expr): Clear side effects for
4908 non-looping pure and constant calls.
4909 * calls.c (emit_call_1): Set rtl flags from ecf flags.
4910 (flags_from_decl_or_type): Set ecf flags from decl flags.
4911 (initialize_argument_information): Turn off
4912 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
4913 Change const to pure if callee_copies is true rather than just
4914 turning off const.
4915 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
4916 way of marking pure calls.
4917 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
4918 Remove hack that was supposed to fix pr7335 and remove old
4919 way of marking pure calls.
4920 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
4921 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
4922 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
4923 RTL_CONST_OR_PURE_CALL_P.
4924 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
4925 * loop-invariant.c (find_exits, find_invariant_bb): Changed
4926 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
4927 * sched-deps.c (schedule_analyze): Ditto.
4928 * rtl.h (struct rtx_def): Use call field, unchanging field, and
4929 return_val field of calls to represent pure and const function info.
4930 (CONST_OR_PURE_CALL_P): Deleted macro.
4931 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
4932 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
4933 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
4934 TREE_READONLY.
4935 * tree-optimize.c (execute_fixup_cfg): Added test for
4936 ECF_LOOPING_CONST_OR_PURE.
4937 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
4938 DECL_PURE_P.
4939 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
4940 effects for looping pure or const calls.
4941 (verify_gimple_expr): Added verification code.
4942 * config/alpha/alpha.c (alpha_legitimize_address,
4943 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
4944 RTL_CONST_CALL_P.
4945 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
4946 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
4947 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
4948 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
4949 RTL_CONST_OR_PURE_CALL_P.
4950 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
4951 and const calls to be deleted.
4952
4953 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
4954
4955 PR target/35714
4956 * config/i386/mmx.md (mmx_subv2sf3): New expander.
4957 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
4958 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
4959 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
4960 to handle nonimmediate operands.
4961 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
4962 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
4963 to handle nonimmediate operands.
4964 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
4965 (mmx_pmulhrwv4hi3): New expander. Use
4966 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4967 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
4968 (sse2_umulv1siv1di3): New expander. Use
4969 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4970 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
4971 (mmx_eq<mode>3): New expander. Use
4972 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4973 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
4974 (mmx_uavgv8qi3): New expander. Use
4975 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4976 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
4977 (mmx_uavgv4hi3): New expander. Use
4978 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4979
4980 * config/i386/sse.md
4981 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
4982 to handle nonimmediate operands.
4983 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
4984 to handle nonimmediate operands.
4985 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
4986 to handle nonimmediate operands.
4987 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
4988 to handle nonimmediate operands.
4989 (sse2_unpckhpd_exp): New expander. Use
4990 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4991 (sse2_unpcklpd_exp): New expander. Use
4992 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4993 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
4994 to handle nonimmediate operands.
4995 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
4996 to handle nonimmediate operands.
4997 (*sse2_<plusminus_insn><mode>3): Rename from
4998 sse2_<plusminus_insn><mode>3 insn pattern.
4999 (sse2_<plusminus_insn><mode>3): New expander. Use
5000 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5001 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
5002 (sse2_umulv2siv2di3): New expander. Use
5003 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5004 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
5005 (sse4_1_mulv2siv2di3): New expander. Use
5006 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5007 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
5008 (sse2_pmaddwd): New expander. Use
5009 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5010 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
5011 (sse2_eq<mode>3): New expander. Use
5012 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5013 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
5014 (sse4_1_eqv2di3): New expander. Use
5015 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5016 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
5017 (sse2_uavgv16qi3): New expander. Use
5018 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5019 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
5020 (sse2_uavgv16qi3): New expander. Use
5021 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5022 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
5023 (sse2_uavgv8hi3): New expander. Use
5024 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5025 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
5026 (ssse3_pmulhrswv8hi3): New expander. Use
5027 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5028 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
5029 (ssse3_pmulhrswv4hi3): New expander. Use
5030 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5031
5032 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
5033 (<sse>_vmmul<mode>3): Ditto.
5034 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
5035 (divv2df3): Ditto.
5036 (ssse3_pmaddubsw128): Use register_operand for operand 1.
5037 (ssse3_pmaddubsw): Ditto.
5038
5039 * config/i386/i386.c (struct_builtin_description)
5040 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
5041 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
5042 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
5043 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
5044 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
5045 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
5046 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
5047 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
5048 (ix86_fixup_binary_operands): Assert that src1
5049 and src2 must have the same mode when swapped.
5050 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
5051 and ix86_binary_operator_ok. Do not force operands in registers
5052 when optimizing.
5053
5054 2008-05-07 Jan Hubicka <jh@suse.cz>
5055
5056 * cgraph.c (dump_cgraph_node): Update.
5057 * cgraph.h (cgraph_local_info): Break out inline summary.
5058 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
5059 hook.
5060 * ipa-inline (inline_summary): New accestor function.
5061 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
5062 cgraph_decide_inlining, compute_inline_parameters): Update.
5063 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
5064
5065 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
5066
5067 Cleanup ColdFire scheduling support and add V4 pipeline model.
5068
5069 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
5070 (define_attr cpu): Add cfv4 value.
5071 (define_attr type, define_attr type1): Merge into a single 'type'
5072 attribute. Update all uses.
5073 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
5074 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
5075 Update all uses.
5076 (define_attr opx_mem, define_attr opy_mem): Remove.
5077 (define_attr op_mem): Clean up, update comment.
5078 (define_attr size): Use specific values instead of general int.
5079 (define_attr guess, define_attr split): Remove. Update all uses.
5080 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
5081 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
5082 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
5083 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
5084 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
5085 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
5086 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
5087 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
5088 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
5089 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
5090 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
5091 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
5092 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
5093 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
5094 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
5095 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
5096 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
5097 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
5098 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
5099 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
5100 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
5101 Update or set attributes.
5102 (stack_tie): New fake instruction.
5103
5104 * config/m68k/m68k.h (TUNE_CFV4): New macro.
5105 (m68k_sched_attr_size): Update declaration.
5106 (m68k_sched_attr_type2): Remove.
5107 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
5108 Declare new bypass predicates.
5109
5110 * config/m68k/m68k.c (m68k_sched_issue_rate,
5111 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
5112 implementations.
5113 (TARGET_SCHED_ISSUE_RATE,
5114 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
5115 (override_options): Handle scheduling for ColdFire V4 core.
5116 (m68k_expand_prologue): Emit stack_tie.
5117 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
5118 'OP_TYPE_FPN'. Update all uses.
5119 (sched_guess_p): Remove.
5120 (sched_address_type): Handle symbolic addresses.
5121 (sched_get_operand): New static function.
5122 (sched_operand_type): Merge into sched_attr_op_type.
5123 (sched_attr_op_type): Handle FP registers, handle quick constants,
5124 update.
5125 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
5126 (m68k_sched_attr_size): Update. Move logic to ...
5127 (sched_get_attr_size_int): New static function.
5128 (sched_get_opxy_mem_type): New static function.
5129 (m68k_sched_attr_op_mem): Update.
5130 (m68k_sched_attr_type2): Remove.
5131 (sched_cfv4_bypass_data): New static variable.
5132 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
5133 (m68k_sched_issue_rate): Implement scheduler hook.
5134 (struct _sched_ib: enabled_p): New field.
5135 (m68k_sched_variable_issue): Update. Handle V4.
5136 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
5137 sched_dump_class_func_t, sched_dump_split_class,
5138 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
5139 sched_dump_dfa_class, m68k_sched_dump): Remove.
5140 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
5141 hook.
5142 (m68k_sched_init_global): Remove statisctics dumping, introduce
5143 sanity check that all instructions have pipeline reservations. Handle
5144 ColdFire V4 core.
5145 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
5146 Handle ColdFire V4 core.
5147 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
5148 New static functions.
5149 (m68k_sched_address_bypass_p): New bypass predicate.
5150 (sched_get_indexed_address_scale): New static function.
5151 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
5152
5153 * cf.md: Update comments.
5154 (define_attr type2): Remove. Use 'type' attribute instead.
5155 Update all uses.
5156 (cf_ib): Rename to cfv123_ib. Update all uses.
5157 (cf_oep): Rename to cfv123_oep. Update all uses.
5158 (cf_chr): Rename to cfv123_chr. Update all uses.
5159 (cf_mem): Rename to cfv123_mem. Update all uses.
5160 (cf_mac): Move to more appropriate place.
5161 (cfv123_guess): New automaton and cpu_unit.
5162 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
5163 Update uses of 'size' attribute. Handle before reload scheduling.
5164 (cfv123_guess): New dummy reservation for unhandled instructions.
5165 (cfv4_*): Pipeline description of ColdFire V4 core.
5166 (ignore): New reservation to handle 'ignore' type.
5167
5168 2008-05-07 Ian Lance Taylor <iant@google.com>
5169
5170 PR middle-end/36013
5171 * gimplify.c (find_single_pointer_decl_1): Don't look through
5172 indirections.
5173 (find_single_pointer_decl): Adjust comments.
5174
5175 2008-05-07 Jakub Jelinek <jakub@redhat.com>
5176
5177 PR middle-end/36137
5178 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
5179 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
5180
5181 PR middle-end/36106
5182 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
5183 integral type rather than floating point, then VIEW_CONVERT_EXPR
5184 to the floating point type.
5185
5186 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
5187
5188 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
5189 TFmode op0 to register.
5190
5191 2008-05-07 Alan Modra <amodra@bigpond.net.au>
5192
5193 * c-decl.c (grokdeclarator): Comment typo.
5194
5195 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
5196
5197 * tree-flow.h: Remove prototype for computed_goto_p.
5198 * tree-cfg.c (computed_goto_p): Make static.
5199
5200 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
5201
5202 PR target/35657
5203 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
5204 (contains_aligned_value_p): This. Handle _Decimal128.
5205 (ix86_function_arg_boundary): Only align _Decimal128 to its
5206 natural boundary and handle it properly.
5207
5208 2008-05-06 Martin Jambor <mjambor@suse.cz>
5209
5210 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
5211 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
5212 (ipcp_method_set_orig_node): Removed.
5213 (ipcp_cval_get_cvalue_type): Removed.
5214 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
5215 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
5216 (ipcp_cval_set_cvalue_type): Removed.
5217 (ipcp_cval_get_cvalue): Removed.
5218 (ipcp_cval_set_cvalue): Removed.
5219 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
5220 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
5221 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
5222 (ipcp_cval_meet): Renamed to ipa_lattice_meet
5223 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
5224 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
5225 (ipcp_get_ith_lattice): Changed parameters.
5226 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
5227 (ipcp_lattice_from_jfunc): Changed parameters.
5228 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
5229 (ipcp_method_cval_print): Added temporary variable info.
5230 (ipcp_redirect): Removed already unused local variable caller.
5231 (ipcp_redirect): New temporary variable orig_callee_info
5232 (ipcp_redirect): Removed newly unused local variable callee.
5233 (ipcp_redirect): Removed (a bit confusing) local variable type.
5234 (ipcp_insert_stage): Added local variable info.
5235 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
5236 renamed too
5237 (ipcp_formal_create): Removed.
5238 (ipcp_method_cval_set): Removed.
5239 (ipcp_propagate_stage): Renamed lattice variables.
5240 (ipcp_method_cval_set_cvalue_type): Removed.
5241 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
5242 (ipcp_print_all_lattices): Changed printed strings to refer to
5243 lattices rather than cvals.
5244 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
5245 (ipcp_propagate_const): Changed formal parameters.
5246 (build_const_val): Changed formal parameters.
5247 (ipcp_insert_stage): Removed useless variable cvalue
5248 (build_const_val): Changed formal parameters.
5249 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
5250 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
5251 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
5252 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
5253 (ipcp_print_func_profile_counts): Changed string from "method" to
5254 "function"
5255 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
5256 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
5257 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
5258 (ipcp_structures_print): Renamed to ipcp_print_all_structures
5259 (ipcp_profile_print): Renamed to ipcp_print_profile_data
5260 (ipcp_lat_is_const): Changed parameters and made inline.
5261 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
5262 (ipcp_redirect): Renamed to ipcp_need_redirect_p
5263 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
5264 the predicate condition directly
5265 (ipcp_propagate_stage): Added local variable args. Removed local
5266 variable callee. (Both are mere code simplifications.)
5267 (ipcp_method_dont_insert_const): Renamed to
5268 ipcp_node_not_modifiable_p.
5269 (ipcp_node_not_modifiable_p): Made inline.
5270 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
5271 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
5272 (ipcp_print_all_lattices): Removed variable cvalue
5273 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
5274 Updated comments.
5275
5276 2008-05-06 Olivier Hainque <hainque@adacore.com>
5277
5278 * tree-sra.c (try_instantiate_multiple_fields): Early return
5279 if field has POINTER_TYPE.
5280
5281 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
5282
5283 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
5284 by using 'q' specifier for instruction.
5285 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
5286
5287 2008-05-06 Anatoly Sokolov <aesok@post.ru>
5288
5289 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
5290 Change mode of zero_extract from QImode to HImode.
5291 (sign bit tests peepholes): (Ditto.).
5292
5293 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
5294
5295 * config/i386/mmx.md: Remove double backslashes from asm templates.
5296 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
5297 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
5298 to handle nonimmediate operands.
5299 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
5300 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
5301 to handle nonimmediate operands.
5302 (*mmx_<code>v2sf3_finite): New insn pattern.
5303 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
5304 (mmx_<code>v2sf3): New expander. Use
5305 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5306 (mmx_<plusminus_insn><mode>3): New expander. Use
5307 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5308 (*mmx_<plusminus_insn><mode>3): New insn pattern.
5309 (mmx_add<mode>3): Removed.
5310 (mmx_ssadd<mode>3): Ditto.
5311 (mmx_usadd<mode>3): Ditto.
5312 (mmx_sub<mode>3): Ditto.
5313 (mmx_sssub<mode>3): Ditto.
5314 (mmx_ussub<mode>3): Ditto.
5315 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
5316 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
5317 to handle nonimmediate operands.
5318 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
5319 insn pattern.
5320 (mmx_smulv4hi3_highpart): New expander. Use
5321 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5322 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
5323 insn pattern.
5324 (mmx_umulv4hi3_highpart): New expander. Use
5325 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5326 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
5327 (mmx_<code>v4hi3): New expander. Use
5328 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5329 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
5330 (mmx_<code>v8qi3): New expander. Use
5331 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5332 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
5333 (mmx_<code><mode>3): New expander. Use
5334 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5335
5336 2008-05-05 Jan Hubicka <jh@suse.cz>
5337
5338 PR tree-optimization/36118
5339 * passes.c (pass_init_dump_file): Fix dump header.
5340
5341 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
5342
5343 PR middle-end/36141
5344 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
5345 VCE for function decls.
5346
5347 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
5348
5349 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
5350
5351 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
5352
5353 * config/i386/i386.md (sat_plusminus): New.
5354 (plusminus_insn): Likewise.
5355 (plusminus_mnemonic): Likewise.
5356 (addsub): Removed.
5357 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
5358 (*<addsub><mode>3_cc_overflow): Renamed to ...
5359 (*<plusminus_insn><mode>3_cc_overflow): This.
5360 (*<addsub>si3_zext_cc_overflow): Renamed to ...
5361 (*<plusminus_insn>si3_zext_cc_overflow): This.
5362
5363 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
5364 (<plusminus_insn><mode>3): This.
5365 (*<addsub><mode>3): Renamed to ...
5366 (*<plusminus_insn><mode>3): This.
5367 (<sse>_vm<addsub><mode>3): Renamed to ...
5368 (<sse>_vm<plusminus_insn><mode>3): This.
5369 (sse3_h<addsub>v4sf3): Renamed to ...
5370 (sse3_h<plusminus_insn>v4sf3): This.
5371 (sse3_h<addsub>v2df3): Renamed to ...
5372 (sse3_h<plusminus_insn>v2df3): This.
5373 (<plusminus_insn><mode>3): New.
5374 (*<plusminus_insn><mode>3): Likewise.
5375 (sse2_<plusminus_insn><mode>3): Likewise.
5376 (add<mode>): Removed.
5377 (*add<mode>3): Likewise.
5378 (sse2_ssadd<mode>3): Likewise.
5379 (sse2_usadd<mode>3): Likewise.
5380 (sub<mode>3): Likewise.
5381 (*sub<mode>3): Likewise.
5382 (sse2_sssub<mode>3): Likewise.
5383 (sse2_ussub<mode>3): Likewise.
5384
5385 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
5386
5387 * gthr-single.h: Add in required interface elements as per gthr.h.
5388 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
5389 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
5390 Generalize UNUSED macro.
5391 (__gthread_once): Add.
5392 (__gthread_key_create): Add.
5393 (__gthread_key_delete): Add.
5394 (__gthread_getspecific): Add.
5395 (__gthread_setspecific): Add.
5396
5397 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
5398
5399 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
5400 the same size types for the indirect reference on the rhs, then
5401 create a VCE.
5402
5403 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
5404
5405 * config/i386/i386.md
5406 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
5407 one insn template instead of template series.
5408 (*xordi_1_rex64): Ditto.
5409 (*xordi_2_rex64): Ditto.
5410
5411 2008-05-05 Ira Rosen <irar@il.ibm.com>
5412
5413 PR tree-optimization/36119
5414 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
5415 in case of SLP.
5416
5417 2008-06-04 Jan Hubicka <jh@suse.cz>
5418
5419 tree-optimization/36100
5420 * tree-pass.h (pass_O0_always_inline): Declare.
5421 * ipa-inline.c (inline_transform): Remove dead code.
5422 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
5423 pass_O0_always_inline): New.
5424 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
5425
5426 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
5427
5428 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
5429 mnemonic in this_param move for TARGET_64BIT.
5430
5431 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
5432
5433 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
5434 (*strmovsi_rex_1): Ditto.
5435 (*strsetsi_1): Ditto.
5436 (*strsetsi_rex_1): Ditto.
5437
5438 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
5439 adddicc expanders using SWI mode iterator.
5440
5441 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
5442
5443 PR target/36121
5444 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
5445 argument handling.
5446
5447 2008-05-04 David S. Miller <davem@davemloft.net>
5448
5449 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
5450 (sparc*-*-linux*): Use linux.h in tm_file.
5451 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
5452 compiler defaulting to 32-bit.
5453 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
5454 no longer needed.
5455 * config/sparc/linux.h: Remove definitions now obtained
5456 properly from linux.h
5457 * config/sparc/linux64.h: Likewise.
5458 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
5459 don't want this setting for 32-bit builds in a biarch compiler.
5460 * doc/install.texi: Add sparc-linux to list of targets
5461 supporting --enable-targets=all.
5462
5463 2008-05-03 Andrew Pinski <pinskia@gmail.com>
5464
5465 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
5466
5467 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
5468
5469 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
5470 after V4SI_FTYPE_V8HI.
5471 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
5472 case V4SI_FTYPE_V2DF.
5473
5474 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5475
5476 * doc/invoke.texi (max-flow-memory-locations): Removed.
5477 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
5478
5479 2008-05-03 Richard Guenther <rguenther@suse.de>
5480
5481 PR middle-end/34973
5482 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
5483
5484 2008-05-02 David S. Miller <davem@davemloft.net>
5485
5486 * config.gcc (need_64bit_hwint): Document libcpp dependency.
5487
5488 2008-05-02 Simon Baldwin <simonb@google.com>
5489
5490 PR bootstrap/36108
5491 * c-common.h (warn_array_subscript_range): Removed.
5492 * c-common.c (warn_array_subscript_range): Ditto.
5493 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
5494 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
5495
5496 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
5497
5498 * config/i386/i386.c (ix86_special_builtin_type): New.
5499 (bdesc_special_args): Likewise.
5500 (ix86_expand_special_args_builtin): Likewise.
5501 (ix86_init_mmx_sse_builtins): Updated.
5502 (ix86_expand_builtin): Updated.
5503 (ix86_expand_store_builtin): Removed.
5504 (ix86_expand_unop_builtin): Likewise.
5505
5506 * config/i386/mm3dnow.h (__v2sf): Moved to ...
5507 * config/i386/mmintrin.h (__v2sf): Here.
5508
5509 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
5510 const __v2sf.
5511 (_mm_loadl_pi): Likewise.
5512 (_mm_storeh_pi): Replace __v2si with __v2sf.
5513 (_mm_storel_pi): Likewise.
5514
5515 * doc/extend.texi: Correct __builtin_ia32_loadhps,
5516 __builtin_ia32_loadlps, __builtin_ia32_storehps,
5517 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
5518 __builtin_ia32_loadlpd.
5519
5520 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
5521
5522 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
5523 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
5524 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
5525 (ix86_init_mmx_sse_builtins): Updated.
5526 (ix86_expand_args_builtin): Likewise.
5527 (ix86_expand_builtin): Likewise.
5528 (ix86_expand_unop1_builtin): Renamed to ...
5529 (ix86_expand_unop_vec_merge_builtin): This.
5530
5531 2008-05-01 Jan Hubicka <jh@suse.cz>
5532
5533 PR bootstrap/36100
5534 * ipa-inline.c (inline_generate_summary): Make static.
5535 (inline_transform): Do not call inlining at -O0; make static.
5536 * passes.c (execute_todo): Add sanity check.
5537 (execute_one_ipa_transform_pass): Execute proper flags.
5538
5539 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
5540
5541 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
5542 (DECL_NONADDRESSABLE_P): Likewise.
5543 * alias.c (record_component_aliases): Fix comment.
5544
5545 2008-05-01 Simon Baldwin <simonb@google.com>
5546
5547 * c-common.h (warn_array_subscript_range): New function.
5548 * c-common.c (warn_array_subscript_range): Ditto.
5549 * tree-vrp.c (check_array_ref): Corrected code to agree with
5550 comment, ignoring only arrays of size 0 or size 1.
5551 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
5552
5553 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
5554
5555 * config/i386/i386.c (ix86_builtin_type): Replace
5556 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
5557 (bdesc_args): Updated.
5558 (ix86_init_mmx_sse_builtins): Likewise.
5559 (ix86_expand_args_builtin): Likewise.
5560
5561 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
5562 with __v1di.
5563
5564 * doc/extend.texi: Correct __builtin_ia32_palignr.
5565
5566 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
5567
5568 PR target/36095
5569 * config/i386/i386.c (bdesc_crc32): Removed.
5570 (ix86_expand_crc32): Likewise.
5571 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
5572 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
5573 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
5574 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
5575 UINT_FTYPE_UINT_UCHAR.
5576 (bdesc_args): Updated. Add crc32 builtins.
5577 (ix86_init_mmx_sse_builtins): Updated.
5578 (ix86_expand_args_builtin): Updated to support subreg.
5579
5580 * doc/extend.texi: Correct __builtin_ia32_crc32di.
5581
5582 2008-05-01 Jan Hubicka <jh@suse.cz>
5583
5584 * tree-pass.h (opt_pass): Add IPA_PASS.
5585 (varpool_node, cgraph_node): Forward declare.
5586 (ipa_opt_pass): Define.
5587 (pass_ipa_inline): Turn into ipa_opt_pass.
5588 (pass_apply_inline): Remove.
5589 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
5590 (apply_inline): Turn into ....
5591 (inline_transform): ... this one.
5592 (inline_generate_summary): New function.
5593 (pass_apply_inline): Remove.
5594 * function.h (ipa_opt_pass): Forward declare structure; typedef;
5595 vector.
5596 (struct function): Add ipa_transforms_to_apply.
5597 * passes.c (register_one_dump_file): Work on IPA_PASS.
5598 (init_optimization_passes): Remove pass_inline_parameters and
5599 pass_apply_inline.
5600 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
5601 (execute_one_pass) ... here; apply transforms when possible.
5602 (add_ipa_transform_pass, execute_ipa_summary_asses,
5603 execute_one_ipa_transform_pass): New.
5604 (execute_ipa_pass_list): Update for IPA_PASS type.
5605
5606 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
5607
5608 * config/i386/i386.c (ix86_builtin_type): Add
5609 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
5610 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
5611 (bdesc_args): Add SSE4a builtins.
5612 (ix86_init_mmx_sse_builtins): Updated.
5613 (ix86_expand_args_builtin): Likewise.
5614 (ix86_expand_builtin): Likewise.
5615
5616 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
5617
5618 * config/i386/i386.c (ix86_builtin_type): Add
5619 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
5620 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
5621 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
5622 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
5623 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
5624 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
5625 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
5626 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
5627 and DI_FTYPE_DI_DI_INT.
5628 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
5629 (ix86_init_mmx_sse_builtins): Updated.
5630 (ix86_expand_args_builtin): Likewise.
5631 (ix86_expand_builtin): Likewise.
5632 (ix86_expand_binop_imm_builtin): Removed.
5633
5634 * doc/extend.texi: Correct __builtin_ia32_palignr128.
5635
5636 2008-04-30 Richard Guenther <rguenther@suse.de>
5637
5638 PR tree-optimization/32921
5639 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
5640
5641 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
5642
5643 * config/arm/arm.c (arm_unwind_emit): Use
5644 crtl->all_throwers_are_sibcalls instead of
5645 cfun->all_throwers_are_sibcalls.
5646 (arm_output_fn_unwind): Likewise.
5647 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
5648 instead of cfun->uses_pic_offset_table.
5649 (frv_expand_prologue): Likewise.
5650 (frv_frame_pointer_required): Likewise.
5651 (frv_expand_fdpic_call): Likewise.
5652 (frv_emit_movsi): Likewise.
5653 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
5654 cfun->returns_pcc_struct instead of
5655 current_function_returns_pcc_struct.
5656 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
5657 instead of cfun->calls_eh_return.
5658 (m32c_pushm_popm): Likewise.
5659 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
5660 "extern" declaration.
5661
5662 2008-04-30 Richard Guenther <rguenther@suse.de>
5663
5664 PR tree-optimization/21636
5665 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
5666 constant address.
5667 (evaluate_stmt): Print the likely value.
5668 (ccp_visit_stmt): Avoid excessive vertical spacing.
5669
5670 2008-04-30 Rafael Espindola <espindola@google.com>
5671
5672 * builtins.c (fold_call_expr): Return realret.
5673 * tree-ssa-threadedge.c
5674 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
5675 __builtin_object_size.
5676
5677 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
5678
5679 * gcc.c (wrapper_string): New variable.
5680 (insert_wrapper): New function.
5681 (execute): New option -wrapper.
5682 * doc/invoke.texi (Overall Options): New driver option -wrapper.
5683
5684 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
5685
5686 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
5687 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
5688 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
5689 from...
5690 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
5691 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
5692 config/rs6000/e500crtres64gprctr.asm,
5693 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
5694 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
5695 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
5696 config/rs6000/e500crtsav64gprctr.asm,
5697 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
5698 config/rs6000/e500crtsavg64gprctr.asm: New files.
5699 * config/rs6000/t-ppccomm: Add build rules for new files.
5700 (LIB2FUNCS_STATIC_EXTRA): Add new files.
5701 * config/rs6000/t-netbsd: Add build rules for new files.
5702 (LIB2FUNCS_STATIC_EXTRA): New variable.
5703 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
5704 (CRTSAVRES_DEFAULT_SPEC): Likewise.
5705 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
5706
5707 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
5708
5709 * config/i386/i386.c (ix86_builtin_type): Add
5710 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
5711 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
5712 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
5713 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
5714 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
5715 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
5716 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
5717 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
5718 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
5719 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
5720 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
5721 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
5722 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
5723 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
5724 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
5725 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
5726 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
5727 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
5728 V1DI_FTYPE_V2SI_V2SI.
5729 (bdesc_2arg): Moved to ...
5730 (bdesc_args): Here.
5731 (ix86_init_mmx_sse_builtins): Updated.
5732 (ix86_expand_args_builtin): Updated. Take a pointer
5733 to const struct builtin_description. Handle comparison
5734 builtin functions.
5735 (ix86_expand_sse_compare): Take a new argument for swapping operands.
5736 (ix86_expand_builtin): Updated.
5737
5738 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
5739 (ssse3_pmaddubsw128): This.
5740 (ssse3_pmaddubswv4hi3): Renamed to ...
5741 (ssse3_pmaddubsw): This.
5742
5743 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
5744 (__builtin_ia32_packssdw128): Likewise.
5745 (__builtin_ia32_packuswb128): Likewise.
5746 (__builtin_ia32_pmaddubsw): Likewise.
5747 (__builtin_ia32_pmaddubsw128): Likewise.
5748
5749 2008-04-30 Richard Guenther <rguenther@suse.de>
5750
5751 PR tree-optimization/14847
5752 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
5753 (recognize_bits_test): Use it.
5754 (recognize_single_bit_test): Likewise.
5755
5756 2008-04-30 Martin Jambor <mjambor@suse.cz>
5757
5758 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
5759 instead of setting number of formal parameters to zero.
5760 (ipcp_init_stage): Do not set the number of actual parameters to zero
5761 either.
5762 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
5763 which are called with variable number of arguments.
5764 (ipcp_insert_stage): Explicitely skipping all nodes which are
5765 called with variable number of arguments.
5766 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
5767 number of parameters.
5768
5769 * ipa-prop.h (struct ipa_node_params): Added flag
5770 called_with_var_arguments
5771 (ipa_set_param_count): Added. Changed sole setter to use it.
5772 (ipa_get_param_count): Added. All readers of param_count
5773 converted to use it instead.
5774 (ipa_set_called_with_variable_arg): Added.
5775 (ipa_is_called_with_var_arguments): Added.
5776 (ipa_get_ith_param): Added. All readers of param_decls converted
5777 to use it instead.
5778 (ipa_set_cs_argument_count): Added, sole writer to argument_count
5779 changed to use it.
5780 (ipa_get_cs_argument_count): Added, all readers of argument_count
5781 changed to cal it.
5782 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
5783 to use it.
5784
5785 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
5786 (struct ipcp_lattice): Renamed cval_type to type
5787 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
5788
5789 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
5790 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
5791 (ipcp_insert_stage): Changed the type of variable cvalue to tree
5792 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
5793 (build_const_val): Changed the type of parameter cvalue to tree
5794 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
5795 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
5796
5797 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
5798 constant
5799
5800 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
5801 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
5802 (ipa_add_method): Renamed to ipa_push_func_to_list
5803 (ipa_remove_method): Renamed to ipa_pop_func_from_list
5804 (ipa_callsite_param_count): Removed.
5805 (ipa_callsite_param_count_set): Removed.
5806 (ipa_callsite_param): Removed.
5807 (ipa_callsite_callee): Removed.
5808 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
5809 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
5810 (ipa_method_formal_count): Removed.
5811 (ipa_method_formal_count_set): Removed.
5812 (ipa_method_get_tree): Removed.
5813 (ipa_method_tree_map_create): Removed.
5814 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
5815 (ipa_create_param_decls_array): Creates the array itself
5816 (ipa_create_param_decls_array): Temporary variable info instead of
5817 a few dereferences.
5818 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
5819 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
5820 (get_type): Removed.
5821 (ipa_jf_get_info_type): Removed.
5822 (ipa_node_create): Renamed to ipa_create_node_params
5823 (ipa_free): Renamed to ipa_free_all_node_params
5824 (ipa_nodes_create): Renamed to ipa_create_all_node_params
5825 (ipa_edges_create): Renamed to ipa_create_all_edge_args
5826 (ipa_edges_free): Renamed to ipa_free_all_edge_args
5827 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
5828 (ipa_free_all_node_params): Deallocation to jump_functions moved to
5829 ipa_free_all_edge_args
5830 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
5831 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
5832 (ipa_create_methodlist_node): Removed.
5833 (ipa_methodlist_method): Removed.
5834 (ipa_methodlist_method_set): Removed.
5835 (ipa_methodlist_next_method): Removed.
5836 (ipa_methodlist_next_method_set): Removed.
5837 (ipa_method_is_modified): Removed.
5838 (ipa_method_modify_create): Removed.
5839 (ipa_method_modify_init): Temporary variable info instead of a few
5840 dereferences.
5841 (ipa_detect_param_modifications): Temporary variable info instead of
5842 a few dereferences.
5843 (ipa_compute_jump_functions): Temporary variable info instead of
5844 a few dereferences.
5845 (ipa_method_modify_set): Removed.
5846 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
5847 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
5848 than craph_node as the first parameter.
5849 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
5850 (ipa_method_modify_init): Removed.
5851 (ipa_compute_jump_functions): Added a temp variable instead of
5852 repeatadly dereferencing the cgraph_edge.aux pointer
5853 (ipa_callsite_param_set_type): Removed.
5854 (ipa_compute_jump_functions): i renamed to index and moved to
5855 an inner block
5856 (ipa_callsite_param_set_info_type_formal): Removed.
5857 (ipa_callsite_param_set_info_type): Removed.
5858 (ipa_callsite_param_map_create): Removed.
5859 (ipa_callsite_tree): Removed.
5860 (ipa_callsite_caller): Removed.
5861 (ipa_pop_func_from_list): return_method removed to return_func
5862
5863 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
5864 prefixed all values with IPA_. Changed all users.
5865 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
5866 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
5867 and FORMAL_IPATYPE IPA_PASS_THROUGH.
5868 (union parameter_info): Renamed to jump_func_value.
5869 (union jump_func_value): Renamed value to constant
5870 (struct ipa_jump_func): Renamed info_type to value
5871 (struct ipa_node): Renamed to ipa_node_params
5872 (struct ipa_node_params): Renamed ipa_arg_num to param_count
5873 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
5874 (struct ipa_node_params): Renamed ipa_mod to modified_flags
5875 (struct ipa_edge): Renamed to ipa_edge_args
5876 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
5877 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
5878 (struct ipa_methodlist): Renamed to ipa_func_list
5879 (struct ipa_func_list): method_p renamed to node, next_method
5880 renamed to next
5881 (ipa_methodlist_p): Removed, switched all users to struct pointer
5882 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
5883
5884 2008-04-30 Alan Modra <amodra@bigpond.net.au>
5885
5886 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
5887 (rs6000_emit_epilogue): Use backchain to restore only when we
5888 have a large frame. Make use of frame pointer to restore if we
5889 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
5890
5891 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
5892
5893 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
5894 Add mode to zero_extract.
5895 (sign bit tests peepholes): (Ditto.).
5896
5897 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
5898
5899 * config/i386/i386.c (ix86_builtins): Replace Prescott New
5900 Instructions in comments with SSE3.
5901 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
5902 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
5903 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
5904 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
5905 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
5906 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
5907 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
5908 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
5909 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
5910 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
5911 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
5912 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
5913 (bdesc_sse_args): Renamed to ...
5914 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
5915 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
5916 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
5917 IX86_BUILTIN_FABSQ.
5918 (bdesc_1arg): Moved to ...
5919 (bdesc_args): Here.
5920 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
5921 Instructions in comments with SSE3.
5922 (ix86_expand_sse_operands_builtin): Renamed to ...
5923 (ix86_expand_args_builtin): This. Updated.
5924 (ix86_expand_unop1_builtin): Update comments.
5925 (ix86_expand_builtin): Updated.
5926
5927 2008-04-29 Richard Guenther <rguenther@suse.de>
5928
5929 PR tree-optimization/36078
5930 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5931 Update virtual SSA form after cleaning up the CFG.
5932
5933 2008-04-29 Richard Guenther <rguenther@suse.de>
5934
5935 PR middle-end/15255
5936 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
5937
5938 2008-04-29 Richard Guenther <rguenther@suse.de>
5939
5940 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
5941 (compute_may_aliases): Do not call finalize_ref_all_pointers.
5942 (compute_flow_insensitive_aliasing): Do not treat
5943 PTR_IS_REF_ALL pointers special.
5944 (get_smt_for): Likewise.
5945 (may_alias_p): Re-structure.
5946 (is_escape_site): A ref-all pointer conversion is not an escape site.
5947 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
5948 PTR_IS_REF_ALL pointers special.
5949 * tree-ssa-structalias.h (struct alias_info): Remove
5950 ref_all_symbol_mem_tag field.
5951 (PTR_IS_REF_ALL): Remove.
5952
5953 2008-04-29 Richard Guenther <rguenther@suse.de>
5954
5955 PR middle-end/36077
5956 * fold-const.c (extract_muldiv_1): In combining division constants
5957 make sure to never overflow.
5958
5959 2008-04-29 Nick Clifton <nickc@redhat.com>
5960
5961 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
5962
5963 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5964
5965 PR bootstrap/35169
5966 * optc-gen.awk: Work around HP-UX/IA awk bug.
5967
5968 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
5969
5970 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
5971 2008-04-25 commit.
5972
5973 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
5974
5975 PR target/36073
5976 * config/i386/i386.md
5977 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
5978 Change operand 1 predicate to nonimmediate_operand.
5979
5980 2008-04-28 Jakub Jelinek <jakub@redhat.com>
5981
5982 PR debug/36060
5983 * dwarf2out.c (struct die_struct): Mark as chain_circular through
5984 die_sub field.
5985 * gengtype.c (walk_type, write_func_for_structure): Handle
5986 chain_circular.
5987 * doc/gty.texi: Document chain_circular.
5988
5989 2008-04-28 Richard Guenther <rguenther@suse.de>
5990
5991 PR tree-optimization/36066
5992 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
5993 SCEV and loop.
5994
5995 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
5996
5997 PR target/36064
5998 * config/i386/i386.md
5999 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
6000 Use match_scratch instead of match_operand for operands 3 and 4.
6001
6002 2008-04-27 Richard Guenther <rguenther@suse.de>
6003
6004 PR tree-optimization/18754
6005 PR tree-optimization/34223
6006 * tree-pass.h (pass_complete_unrolli): Declare.
6007 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
6008 loop size before and after unconditionally of UL_NO_GROWTH in effect.
6009 Rewrite loop into loop closed SSA form if it is not already.
6010 (tree_unroll_loops_completely): Re-structure to iterate over
6011 innermost loops with intermediate CFG cleanups.
6012 Unroll outermost loops only if requested or the code does not grow
6013 doing so.
6014 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
6015 loops are available.
6016 (tree_vectorize): Instead do so here.
6017 (tree_complete_unroll): Also unroll outermost loops.
6018 (tree_complete_unroll_inner): New function.
6019 (gate_tree_complete_unroll_inner): Likewise.
6020 (pass_complete_unrolli): New pass.
6021 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
6022 uses outside of the loop.
6023 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
6024 form if it is available.
6025 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
6026 * passes.c (init_optimization_passes): Schedule complete inner
6027 loop unrolling pass before the first CCP pass after final inlining.
6028
6029 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
6030
6031 * targhooks.h (default_emutls_var_fields,
6032 default_emutls_var_init): Declare.
6033 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
6034 * target.h (struct gcc_target): Add struct emutls member.
6035 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
6036 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
6037 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
6038 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
6039 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
6040 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
6041 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
6042 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
6043 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
6044 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
6045 emit debug information.
6046 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
6047 * varasm.c: Include targhooks.h.
6048 (emutls_object_section, emutls_tmpl_section): New.
6049 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
6050 (EMUTLS_SEPARATOR): New.
6051 (prefix_name): New.
6052 (get_emutls_object_name): New.
6053 (default_emutls_var_fields): New, broken out of ...
6054 (get_emutls_object_type): ... here. Adjust to use target hooks.
6055 (get_emutls_init_templ_addr): Adjust to use target hooks.
6056 (emutls_decl): Adjust to use target hooks.
6057 (emutls_finish): Likewise.
6058 (default_emutls_var_init): New, broken out of ...
6059 (assemble_variable): ... here. Adjust to use target hooks.
6060 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
6061 SECCAT_EMUTLS_TMPL.
6062 * c-common.c (handle_section_attribute): Prevent overriding
6063 sections for emulated tls with special sections.
6064 * config/i386/i386.c (x86_64_elf_select_section): Add
6065 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
6066 (x86_64_elf_unique_section): Likewise.
6067 * config/vxworks.c: Include tree.h.
6068 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
6069 (vxworks_override_options): Set TLS scheme.
6070 * doc/tm.texi (Emulated TLS): New node.
6071
6072 2008-04-26 Simon Baldwin <simonb@google.com>
6073
6074 PR c/35652
6075 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
6076 with propagated string constants.
6077
6078 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
6079
6080 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
6081 constraint for operand 2 when operand 0 is memory operand.
6082 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
6083 operand 0 is memory operand.
6084 (fix_trunc<mode>_i387_with_temp): Ditto.
6085 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
6086 operand 2 when operand 1 is memory operand.
6087 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
6088 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
6089 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
6090 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
6091 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
6092 operands 2,3 and 4 when operand 1 is memory operand.
6093 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
6094 is memory operand.
6095 (fistdi2_floor_with_temp): Ditto.
6096 (fist<mode>2_floor_with_temp): Ditto.
6097 (fistdi2_ceil_with_temp): Ditto.
6098 (fist<mode>2_ceil_with_temp): Ditto.
6099 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
6100
6101 2008-04-26 David Daney <ddaney@avtrex.com>
6102
6103 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
6104 unspec_volitile.
6105 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
6106 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6107 UNSPEC_UPDATE_GOT_VERSION): Renumber.
6108 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
6109 (compare_and_swap_12): New insn.
6110 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
6111 * config/mips/mips.c (mips_force_binary): New function.
6112 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
6113 (mips_expand_compare_and_swap_12): New function.
6114 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
6115
6116 2008-04-25 Jan Hubicka <jh@suse.cz>
6117
6118 PR testsuite/35843
6119 * cfgexpand.c (pass_expand): Turn into RTL pass.
6120 * passes.c (execute_one_pass): Do pass typechecking after execution.
6121 * tree-pass.h (pass_expand): Turn into RTL pass.
6122
6123 * function.h (struct rtl_data): Move here fields
6124 accesses_prior_frames, calls_eh_return, saves_all_registers,
6125 has_nonlocal_goto, has_asm_statement, is_thunk,
6126 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
6127 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
6128 arg_pointer_save_area_init from struct function; turn into bool.
6129 (struct function): Move
6130 calls_eh_return, saves_all_registers, has_nonlocal_goto,
6131 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
6132 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
6133 tail_call_emit, arg_pointer_save_area_init
6134 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
6135 (current_function_returns_struct, current_function_returns_pcc_struct,
6136 current_function_calls_setjmp, current_function_calls_alloca,
6137 current_function_accesses_prior_frames,
6138 current_function_calls_eh_return, current_function_is_thunk,
6139 current_function_stdarg, current_function_profile,
6140 current_function_limit_stack, current_function_uses_pic_offset_table,
6141 current_function_uses_const_pool, current_function_has_nonlocal_label,
6142 current_function_saves_all_registers,
6143 current_function_has_nonlocal_goto,
6144 current_function_has_asm_statement): Remove accesor macros.
6145 * ra-conflict.c (global_conflicts): Update.
6146 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
6147 (suitable_for_tail_call_opt_p): Update.
6148 * builtins.c (expand_builtin_return_addr): Update.
6149 (expand_builtin_setjmp_setup): Update.
6150 (expand_builtin_nonlocal_goto): Update.
6151 * final.c (final_start_function): Update.
6152 (profile_function): Update.
6153 (leaf_function_p): Update.
6154 (only_leaf_regs_used): Update.
6155 * df-scan.c (df_get_exit_block_use_set): Update.
6156 * dojump.c (clear_pending_stack_adjust): Update.
6157 * tree-stdarg.c (gate_optimize_stdarg): Update.
6158 * gimple-low.c (lower_function_body): Update.
6159 * global.c (compute_regsets): Update.
6160 (global_alloc): Update.
6161 * dwarf2out.c (dwarf2out_begin_prologue): Update.
6162 * expr.c (expand_assignment): Update.
6163 * dse.c (dse_step0): Update.
6164 (dse_step1): Update.
6165 * c-decl.c (store_parm_decls): Update.
6166 * local-alloc.c (combine_regs): Update.
6167 (find_free_reg): Update.
6168 * function.c (assign_parms_augmented_arg_list): Update.
6169 (assign_parm_find_data_types): Update.
6170 (assign_parms): Update.
6171 (allocate_struct_function): Update.
6172 (expand_function_start): Update.
6173 (expand_function_end): Update.
6174 (get_arg_pointer_save_area): Update.
6175 (thread_prologue_and_epilogue_insns): Update.
6176 (rest_of_match_asm_constraints): Update.
6177 * stor-layout.c (variable_size): Update.
6178 * gcse.c (gcse_main): Update.
6179 (bypass_jumps): Update.
6180 * gimplify.c (gimplify_function_tree): Update.
6181 * calls.c (emit_call_1): Update.
6182 (expand_call): Update.
6183 * bt-load.c (compute_defs_uses_and_gen): Update.
6184 * except.c (sjlj_assign_call_site_values): Update.
6185 (sjlj_emit_function_enter): Update.
6186 (can_throw_external): Update.
6187 (set_nothrow_function_flags): Update.
6188 (expand_builtin_unwind_init): Update.
6189 (expand_eh_return): Update.
6190 (convert_to_eh_region_ranges): Update.
6191 (output_function_exception_table): Update.
6192 * emit-rtl.c (gen_tmp_stack_mem): Update.
6193 * cfgexpand.c (expand_used_vars): Update.
6194 (tree_expand_cfg): Update.
6195 * cfgcleanup.c (rest_of_handle_jump): Update.
6196 * explow.c (allocate_dynamic_stack_space): Update.
6197 * varasm.c (assemble_start_function): Update.
6198 (force_const_mem): Update.
6199 (mark_constant_pool): Update.
6200 * tree-optimize.c (tree_rest_of_compilation): Update.
6201 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
6202 * tree-cfg.c (notice_special_calls): Update.
6203 (is_ctrl_altering_stmt): Update.
6204 (tree_can_make_abnormal_goto): Update.
6205 (tree_purge_dead_abnormal_call_edges): Update.
6206 * config/alpha/predicates.md: Update.
6207 * config/alpha/alpha.c (alpha_sa_mask): Update.
6208 (alpha_sa_size): Update.
6209 (alpha_does_function_need_gp): Update.
6210 (alpha_expand_prologue): Update.
6211 (alpha_start_function): Update.
6212 (alpha_output_function_end_prologue): Update.
6213 (alpha_expand_epilogue): Update.
6214 * config/frv/frv.c (frv_stack_info): Update.
6215 (frv_expand_epilogue): Update.
6216 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
6217 (s390_register_info): Update.
6218 (s390_frame_info): Update.
6219 (s390_init_frame_layout): Update.
6220 (s390_can_eliminate): Update.
6221 (save_gprs): Update.
6222 * config/spu/spu.c (spu_split_immediate): Update.
6223 (need_to_save_reg): Update.
6224 (spu_expand_prologue): Update.
6225 (spu_expand_epilogue): Update.
6226 * config/sparc/sparc.md: Update.
6227 * config/sparc/sparc.c (eligible_for_return_delay): Update.
6228 (sparc_tls_got): Update.
6229 (legitimize_pic_address): Update.
6230 (sparc_emit_call_insn): Update.
6231 (sparc_expand_prologue): Update.
6232 (output_return): Update.
6233 (print_operand): Update.
6234 (sparc_function_ok_for_sibcall): Update.
6235 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
6236 * config/m32r/m32r.md: Update.
6237 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
6238 (m32r_compute_frame_size): Update.
6239 (m32r_expand_prologue): Update.
6240 (m32r_expand_epilogue): Update.
6241 (m32r_legitimize_pic_address): Update.
6242 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
6243 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
6244 * config/i386/i386.c (ix86_frame_pointer_required): Update.
6245 (gen_push): Update.
6246 (ix86_save_reg): Update.
6247 (ix86_compute_frame_layout): Update.
6248 (ix86_expand_prologue): Update.
6249 (ix86_expand_epilogue): Update.
6250 * config/sh/sh.c (output_stack_adjust): Update.
6251 (calc_live_regs): Update.
6252 (sh5_schedule_saves): Update.
6253 (sh_expand_prologue): Update.
6254 (sh_expand_epilogue): Update.
6255 (sh_setup_incoming_varargs): Update.
6256 (sh_allocate_initial_value): Update.
6257 (sh_get_pr_initial_val): Update.
6258 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
6259 * config/sh/sh.md (label:): Update.
6260 * config/avr/avr.c (out_movhi_mr_r): Update.
6261 * config/crx/crx.h (enum): Update.
6262 * config/xtensa/xtensa.h (along): Update.
6263 * config/stormy16/stormy16.c Update.
6264 (xstormy16_compute_stack_layout): Update.
6265 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
6266 (fr30_expand_prologue): Update.
6267 * config/cris/cris.c (cris_conditional_register_usage): Update.
6268 (cris_reg_saved_in_regsave_area): Update.
6269 (cris_initial_frame_pointer_offset): Update.
6270 (cris_simple_epilogue): Update.
6271 (cris_expand_prologue): Update.
6272 (cris_expand_epilogue): Update.
6273 (cris_expand_pic_call_address): Update.
6274 (cris_asm_output_symbol_ref): Update.
6275 (cris_asm_output_label_ref): Update.
6276 * config/cris/cris.md Update.
6277 * config/iq2000/iq2000.c (compute_frame_size): Update.
6278 (iq2000_expand_epilogue): Update.
6279 * config/mt/mt.h (save_direction): Update.
6280 * config/mn10300/mn10300.c (mn10300_function_value): Update.
6281 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
6282 (ia64_secondary_reload_class): Update.
6283 * config/m68k/m68k.c (m68k_save_reg): Update.
6284 (m68k_expand_prologue): Update.
6285 (m68k_expand_epilogue): Update.
6286 (legitimize_pic_address): Update.
6287 * config/rs6000/rs6000.c (rs6000_got_register): Update.
6288 (first_reg_to_save): Update.
6289 (first_altivec_reg_to_save): Update.
6290 (compute_vrsave_mask): Update.
6291 (compute_save_world_info): Update.
6292 (rs6000_stack_info): Update.
6293 (spe_func_has_64bit_regs_p): Update.
6294 (rs6000_ra_ever_killed): Update.
6295 (rs6000_emit_eh_reg_restore): Update.
6296 (rs6000_emit_allocate_stack): Update.
6297 (rs6000_emit_prologue): Update.
6298 (rs6000_emit_epilogue): Update.
6299 (rs6000_output_function_epilogue): Update.
6300 (output_profile_hook): Update.
6301 (rs6000_elf_declare_function_name): Update.
6302 * config/rs6000/rs6000.h (rs6000_args): Update.
6303 * config/rs6000/rs6000.md: Update.
6304 * config/mcore/mcore.c (mcore_expand_prolog): Update.
6305 * config/arc/arc.c (arc_output_function_epilogue): Update.
6306 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
6307 * config/darwin.c (machopic_function_base_name): Update.
6308 * config/score/score3.c (score3_compute_frame_size): Update.
6309 (rpush): Update.
6310 (rpop): Update.
6311 (score3_epilogue): Update.
6312 * config/score/score7.c (score7_compute_frame_size): Update.
6313 (score7_prologue): Update.
6314 (score7_epilogue): Update.
6315 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
6316 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
6317 * config/arm/arm.c (use_return_insn): Update.
6318 (require_pic_register): Update.
6319 (arm_load_pic_register): Update.
6320 (arm_compute_save_reg0_reg12_mask): Update.
6321 (arm_compute_save_reg_mask): Update.
6322 (thumb1_compute_save_reg_mask): Update.
6323 (output_return_instruction): Update.
6324 (arm_output_function_prologue): Update.
6325 (arm_output_epilogue): Update.
6326 (arm_get_frame_offsets): Update.
6327 (arm_expand_prologue): Update.
6328 (thumb_pushpop): Update.
6329 (thumb_exit): Update.
6330 (thumb1_expand_prologue): Update.
6331 (thumb1_expand_epilogue): Update.
6332 (arm_unwind_emit): Update.
6333 (arm_output_fn_unwind): Update.
6334 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
6335 * config/arm/arm.md: Update.
6336 * config/pa/pa.md: Update.
6337 * config/pa/pa.c (legitimize_pic_address): Update.
6338 (compute_frame_size): Update.
6339 (hppa_expand_prologue): Update.
6340 (hppa_expand_epilogue): Update.
6341 (borx_reg_operand): Update.
6342 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
6343 (HARD_REGNO_RENAME_OK): Update.
6344 * config/mips/mips.c (mips_global_pointer): Update.
6345 (mips_save_reg_p): Update.
6346 (mips_compute_frame_info): Update.
6347 (mips_frame_pointer_required): Update.
6348 (mips_expand_prologue): Update.
6349 (mips_expand_epilogue): Update.
6350 (mips_can_use_return_insn): Update.
6351 (mips_reorg_process_insns): Update.
6352 * config/v850/v850.c (compute_register_save_size): Update.
6353 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
6354 * config/mmix/mmix.c (along): Update.
6355 (mmix_expand_epilogue): Update.
6356 * config/bfin/bfin.c (legitimize_pic_address): Update.
6357 (must_save_p): Update.
6358 (stack_frame_needed_p): Update.
6359 (add_to_reg): Update.
6360 (bfin_expand_prologue): Update.
6361 * stmt.c (expand_asm_operands): Update.
6362 * reload1.c (reload): Update.
6363 (init_elim_table): Update.
6364
6365 2008-04-25 Bob Wilson <bob.wilson@acm.org>
6366
6367 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
6368
6369 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
6370
6371 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
6372 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
6373 (mov<mode>): Removed.
6374 (*movv4sf_internal): Likewise.
6375 (*movv2df_internal): Likewise.
6376
6377 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
6378
6379 * config.gcc (crx-*-elf): Remove deprecation.
6380
6381 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
6382
6383 * config/i386/cygming-crtend.c (register_frame_ctor): Register
6384 __gcc_deregister_frame with atexit.
6385 (deregister_frame_dtor): Remove.
6386
6387 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
6388 Nathan Sidwell <nathan@codesourcery.com>
6389
6390 * config/rs6000/rs6000.opt (mspe): Remove Var property.
6391 (misel): Likewise.
6392 * config/rs6000/rs6000.h (rs6000_spe): Declare.
6393 (rs6000_isel): Likewise.
6394 * config/rs6000/rs6000.c (rs6000_spe): New variable.
6395 (rs6000_isel): New variable.
6396 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
6397
6398 2008-04-24 Jakub Jelinek <jakub@redhat.com>
6399
6400 PR c++/35758
6401 * c-common.c (handle_vector_size_attribute): Call
6402 lang_hooks.types.reconstruct_complex_type instead of
6403 reconstruct_complex_type.
6404 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
6405 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
6406 * langhooks.h (struct lang_hooks_for_types): Add
6407 reconstruct_complex_type hook.
6408 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
6409 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
6410
6411 2008-04-24 Richard Guenther <rguenther@suse.de>
6412
6413 * c-common.h (check_builtin_function_arguments): Declare.
6414 * c-common.c (validate_nargs): New function.
6415 (check_builtin_function_arguments): Likewise.
6416 * c-typeck.c (build_function_call): Call
6417 check_builtin_function_arguments.
6418 * builtins.c (fold_builtin_classify): Remove error reporting code.
6419 (fold_builtin_unordered_cmp): Likewise.
6420 (fold_builtin_1): Likewise.
6421 (fold_builtin_n): Likewise.
6422
6423 2008-04-24 Jakub Jelinek <jakub@redhat.com>
6424
6425 PR tree-optimization/36008
6426 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
6427 the original op1, rather than delta by step.
6428
6429 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
6430 Sebastian Pop <sebastian.pop@amd.com>
6431
6432 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
6433 eliminate_local_variables_stmt, eliminate_local_variables,
6434 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
6435 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
6436 of code delimited by two edges in the CFG.
6437 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
6438 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
6439 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
6440 the case of parallelisation of reductions.
6441 (expr_invariant_in_region_p): New.
6442
6443 * tree-flow.h (gather_blocks_in_sese_region): Declared.
6444 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
6445
6446 2008-04-24 Ira Rosen <irar@il.ibm.com>
6447 Richard Guenther <rguenther@suse.de>
6448
6449 PR tree-optimization/36034
6450 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
6451 incapable of dealing with loads with gaps.
6452
6453 2008-04-24 Rafael Espindola <espindola@google.com>
6454
6455 * tree-flow.h (vrp_evaluate_conditional): Change signature.
6456 * tree-ssa-propagate.c (fold_predicate_in): Update call to
6457 vrp_evaluate_conditional.
6458 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
6459 (vrp_evaluate_conditional): Split the cond argument.
6460 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
6461 (simplify_stmt_for_jump_threading): Update call to
6462 vrp_evaluate_conditional.
6463
6464 2008-04-24 Ira Rosen <irar@il.ibm.com>
6465
6466 PR tree-optimization/35982
6467 * tree-vect-analyze.c (vect_check_interleaving): Check that the
6468 interleaved data-refs are of the same type.
6469
6470 2008-04-24 Danny Smith <dannysmith@users.net>
6471
6472 * c-format.c (check_format_info_main): Use strncmp rather than a
6473 magic prefix to handle multichar length specs.
6474 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
6475 Don't prefix "I64" and "I32" with '\0'.
6476
6477 2008-04-24 Jakub Jelinek <jakub@redhat.com>
6478
6479 PR target/36015
6480 * config/i386/i386.c (init_cumulative_args): Don't pass anything
6481 in registers for -m32 only if stdarg_p (fntype).
6482
6483 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
6484
6485 PR rtl-optimization/36006
6486 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
6487 temp to op0 in order to avoid invalid rtx sharing.
6488
6489 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
6490
6491 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
6492 check TREE_INVARIANT.
6493 * tree-gimple.c (is_gimple_address): New.
6494 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
6495 * tree-gimple.h (is_gimple_address): New.
6496 * tree.h (decl_address_invariant_p): New.
6497 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
6498 (build_string): Likewise.
6499 (decl_address_invariant_p): New, from is_gimple_invariant_address.
6500 (tree_invariant_p_1): Likewise.
6501 (save_expr): Use it.
6502 (tree_invariant_p): New.
6503 (skip_simple_arithmetic): Use it.
6504 (stabilize_reference_1): Use it.
6505 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
6506 simplify.
6507 (build1_stat): Drop code to compute TREE_INVARIANT.
6508 (build2_stat): Drop code to compute TREE_INVARIANT.
6509 (build3_stat): Drop code to compute TREE_INVARIANT.
6510 (build4_stat): Drop code to compute TREE_INVARIANT.
6511 (build5_stat): Drop code to compute TREE_INVARIANT.
6512 (build7_stat): Drop code to compute TREE_INVARIANT.
6513 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
6514 * tree.h (struct tree_base): Remove invariant_flag.
6515 (TREE_INVARIANT): Remove.
6516 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
6517 (fold_builtin_expect): Check TREE_CONSTANT.
6518 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
6519 * c-tree.h (c_expr_to_decl): Drop third parameter.
6520 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
6521 (build_c_cast): Don't set TREE_INVARIANT.
6522 (pop_init_level): Don't set TREE_INVARIANT.
6523 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
6524 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
6525 TREE_CONSTANT.
6526 (gimplify_init_constructor): Don't set TREE_INVARIANT.
6527 (gimplify_addr_expr): Adjust comment.
6528 * tree-mudflap.c (mf_build_string):
6529 * print-tree.c (print_node): Don't print TREE_INVARIANT.
6530 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
6531 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
6532 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
6533 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
6534 * langhooks.h (struct lang_hooks): Drop third parameter from
6535 expr_to_decl.
6536
6537 2008-04-23 Richard Guenther <rguenther@suse.de>
6538
6539 PR tree-optimization/27799
6540 PR tree-optimization/32921
6541 PR tree-optimization/32624
6542 * tree-ssa-structalias.c (merge_smts_into): Only merge the
6543 SMTs aliases and the tag itself into the solution.
6544 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
6545 merge the points-to solution back into the SMT aliases.
6546 (may_alias_p): Use alias_set_subset_of instead of
6547 aliases_conflict_p. A pointer which points to
6548 memory with alias set zero may access any variable.
6549
6550 2008-04-23 Richard Guenther <rguenther@suse.de>
6551
6552 * alias.c (alias_set_subset_of): Correctly handle asking
6553 if zero is a subset of an alias set with zero child.
6554 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
6555 (compute_flow_insensitive_aliasing): Correctly walk all
6556 pointers. Do not unnecessarily union sets.
6557
6558 2008-04-23 Richard Guenther <rguenther@suse.de>
6559
6560 PR middle-end/36021
6561 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
6562
6563 2008-04-22 Tomas Bily <tbily@suse.cz>
6564
6565 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
6566 unreachable case.
6567 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
6568 NON_LVALUE_EXPR.
6569 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6570 * tree-ssa-structalias.c (get_constraint_for): Likewise.
6571 * tree-inline.c (estimate_num_insns_1): Likewise.
6572 * varasm.c (const_hash_1, compare_constant, copy_constant)
6573 (compute_reloc_for_constant, output_addressed_constants): Likewise.
6574 * emit-rtl.c (component_ref_for_mem_expr)
6575 (set_mem_attributes_minus_bitpos): Likewise.
6576 * expr.c (highest_pow2_factor, expand_expr_real_1, )
6577 (is_aligning_offset): Likewise.
6578 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
6579 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6580 * dojump.c (do_jump): Likewise.
6581 * builtins.c (get_pointer_alignment, get_memory_rtx)
6582 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
6583 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
6584
6585 2008-04-23 Jakub Jelinek <jakub@redhat.com>
6586
6587 PR rtl-optimization/36017
6588 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
6589 expanding the library call.
6590
6591 2008-04-22 Ian Lance Taylor <iant@google.com>
6592
6593 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
6594 than size_in_bytes.
6595
6596 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
6597
6598 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
6599 of LR/CTR moves for Power6.
6600
6601 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
6602
6603 PR middle-end/36003
6604 * passes.c (init_optimization_passes): Remove
6605 pass_fast_rtl_byte_dce.
6606
6607 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
6608
6609 PR target/29096
6610 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
6611 builtin functions to generate faster code.
6612 (_mm_cvtpu16_ps): Ditto.
6613 (_mm_cvtpi32x2_ps): Ditto.
6614
6615 2008-04-22 Nick Clifton <nickc@redhat.com>
6616
6617 * common.opt (ftree-loop-distribution): Add Optimization
6618 attribute.
6619
6620 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
6621 (frv_expand_builtin_va_start): Likewise.
6622
6623 * config/arm/arm.c (thumb_find_work_register): Fix location of
6624 argument register count.
6625
6626 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
6627
6628 Support scheduling for ColdFire V1 and V3 microarchitecture.
6629 Improve scheduling of multiplication instructions.
6630
6631 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
6632 (mac): New instruction attribute.
6633 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
6634 (m68k_sched_mac): New variable.
6635 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
6636 Handle cfv1 and cfv3.
6637 (max_insn_size): New static variable.
6638 (struct _sched_ib): New type.
6639 (sched_ib): New static variable.
6640 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
6641 to fields of 'struct _sched_ib sched_ib'. Update all uses.
6642 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
6643 Update.
6644 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
6645 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
6646 new variables. Update.
6647 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6648 Add modeling of cfv3 instruction buffer. Update.
6649 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
6650 * config/m68k/m68k.h (TUNE_CFV3): New macro.
6651 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
6652 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
6653 a particular reservation applies to.
6654 (type2): Reorganize attribute values. Rename alu to alu_reg,
6655 alu_l to alu, move_l to omove. Join move to alu. Split mul
6656 to mul_l and mul_w.
6657 (cf_ib_*): Simplify description of instruction buffer.
6658 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
6659 (cf_mem): Split into cf_mem1 and cf_mem2.
6660 (cf_v2_move_??): Rename to cfv12_alu_??.
6661 (cf_v2_move_l_??): Rename to cfv12_omove_??.
6662 (cf_v2_mul_??): Remove reservations.
6663 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
6664 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
6665 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
6666 appropriate place.
6667 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
6668 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
6669 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
6670 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
6671 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
6672 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
6673 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
6674 expansions of the above reservations for instructions of sizes
6675 1, 2 and 3 words.
6676
6677 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
6678
6679 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
6680
6681 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
6682
6683 * coverage.c: Include tree-pass.h.
6684 (coverage_counter_alloc): Print da_file_name to the dump file.
6685
6686 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
6687
6688 * sbitmap.c (sbitmap_range_empty_p): New function.
6689 * sbitmap.h (sbitmap_range_empty_p): New function.
6690 * bitmap.h: Now includes obstack.h.
6691
6692 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
6693 Kenneth Zadeck <zadeck@naturalbridge.com>
6694
6695 * dbgcnt.def (ra_byte_scan): Added.
6696 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
6697 when the last hit happens for a counter.
6698 * timevar.def (TV_DF_BYTE_LR): New variable.
6699 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
6700 * passes.c (pass_fast_rtl_byte_dce): New pass.
6701 * fwprop.c (update_df): Added mode to call df_ref_create.
6702 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
6703 DF_REF_EXTRACT_OFFSET.
6704 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
6705 DF_BYTE_LR_OUT, df_byte_lr): New macro.
6706 (df_mm): New enum.
6707 (df_ref_extract): Added mode field.
6708 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
6709 DF_REF_EXTRACT_OFFSET.
6710 (DF_REF_EXTRACT_MODE): New macro.
6711 (df_byte_lr_bb_info): New structure.
6712 (df_print_byte_regset, df_compute_accessed_bytes,
6713 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
6714 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
6715 df_byte_lr_simulate_uses,
6716 df_byte_lr_simulate_artificial_refs_at_top,
6717 df_byte_lr_simulate_artificial_refs_at_end,
6718 df_compute_accessed_bytes): New function.
6719 (df_ref_create): Add parameter.
6720 (df_byte_lr_get_bb_info): New inline function.
6721 * df-scan.c (df_ref_record, df_uses_record,
6722 df_ref_create_structure): Added mode parameter.
6723 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
6724 df_defs_record, df_uses_record, df_get_conditional_uses,
6725 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
6726 df_entry_block_defs_collect, df_exit_block_uses_collect):
6727 Added mode parameter to calls to df_ref_record, df_uses_record,
6728 df_ref_create_structure.
6729 (df_ref_equal_p, df_ref_compare): Added test for modes.
6730 (df_ref_create_structure): Added code to set mode. Renamed
6731 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
6732 DF_REF_EXTRACT_OFFSET.
6733 * df-core.c (df_print_byte_regset): New function.
6734 * df-byte-scan.c: New file.
6735 * df-problems.c (df_rd_transfer_function): Removed unnecessary
6736 calls to BITMAP_FREE.
6737 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
6738 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
6739 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
6740 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
6741 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
6742 df_byte_lr_local_compute, df_byte_lr_init,
6743 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6744 df_byte_lr_transfer_function, df_byte_lr_free,
6745 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
6746 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
6747 df_byte_lr_simulate_uses,
6748 df_byte_lr_simulate_artificial_refs_at_top,
6749 df_byte_lr_simulate_artificial_refs_at_end): New function.
6750 * dce.c (byte_dce_process_block): New function.
6751 (dce_process_block): au is now passed in rather than computed
6752 locally. Changed loops that look at artificial defs to not look
6753 for conditional or partial ones, because there never are any.
6754 (fast_dce): Now is able to drive byte_dce_process_block or
6755 dce_process_block depending on the kind of dce being done.
6756 (rest_of_handle_fast_dce): Add parameter to fast_dce.
6757 (rest_of_handle_fast_byte_dce): New function.
6758 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
6759 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
6760
6761 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
6762
6763 PR fortran/35019
6764 * gcc.h: Added fortran options that take arguments to
6765 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
6766 macros.
6767
6768 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
6769
6770 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
6771 scalarization if on the LHS and not a full access.
6772
6773 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6774
6775 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
6776
6777 2008-04-18 Rafael Espindola <espindola@google.com>
6778
6779 * tree-vrp.c (find_case_label_index): Fix the binary search.
6780 (find_case_label_range): New.
6781 (vrp_visit_switch_stmt): Use find_case_label_range.
6782 (simplify_switch_using_ranges): Use find_case_label_range.
6783
6784 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
6785
6786 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
6787 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
6788
6789 2008-04-18 Tom Tromey <tromey@redhat.com>
6790
6791 PR libcpp/15500:
6792 * doc/cpp.texi (Implementation-defined behavior): Mention
6793 -finput-charset.
6794
6795 2008-04-18 Ian Lance Taylor <iant@google.com>
6796
6797 * fold-const.c (pointer_may_wrap_p): New static function.
6798 (fold_comparison): Add another test for pointer overflow. Use
6799 pointer_may_wrap_p to disable some false positives.
6800
6801 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
6802
6803 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
6804 (fname_as_string): Match updated cpp_interpret_string prototype.
6805 (fix_string_type): Support char16_t* and char32_t*.
6806 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
6807 derivative) nodes. Register as builtin if C++0x.
6808 (c_parse_error): Support CPP_CHAR{16,32}.
6809 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
6810 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
6811 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
6812 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
6813 CTI_CHAR32_ARRAY_TYPE>: New elements.
6814 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
6815 char32_type_node, signed_char32_type_node, char16_array_type_node,
6816 char32_array_type_node): New defines.
6817 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
6818 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
6819 (lex_string): Support CPP_STRING{16,32}, match updated
6820 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
6821 (lex_charconst): Support CPP_CHAR{16,32}.
6822 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
6823 and CPP_STRING{16,32}.
6824
6825 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
6826
6827 PR bootstrap/35457
6828 * aclocal.m4: Regenerate.
6829 * configure: Regenerate.
6830
6831 2008-04-18 Jan Hubicka <jh@suse.cz>
6832
6833 * except.c (dw2_size_of_call_site_table,
6834 sjlj_size_of_call_site_table): Use vector API for call_site_record.
6835
6836 * cgraphbuild.c (build_cgraph_edges): Update.
6837 * tree-pass.h: Update comment.
6838 * final.c (leaf_function_p): Update.
6839 (leaf_renumber_regs): Update.
6840 (rest_of_clean_state): Update.
6841 * omp-low.c (expand_omp_parallel): Update.
6842 * ipa-reference.c (analyze_function): Update.
6843 * reorg.c (find_end_label): Update.
6844 (optimize_skip): Update.
6845 (fill_simple_delay_slots): Update.
6846 (fill_simple_delay_slots): Update.
6847 (make_return_insns): Update.
6848 (dbr_schedule): Update.
6849 * gimple-low.c (record_vars_into): Update.
6850 * cfgbuild.c (make_edges): Update.
6851 * function.c (assign_stack_local): Update.
6852 (assign_parm_adjust_stack_rtl): Update.
6853 (locate_and_pad_parm): Update.
6854 (allocate_struct_function): Do not initialize stack_alignment_needed
6855 and preferred_stack_boundary here.
6856 (stack_protect_prologue): Update.
6857 (stack_protect_epilogue): Update.
6858 (expand_function_start): Initialize stack_alignment_needed,
6859 preferred_stack_boundary and max_jumptable_ents.
6860 (expand_function_end): Update.
6861 (free_after_compilation): Do not NULLify epilogue_delay_list.
6862 * function.h (struct rtl_data): Add stack_protect_guard,
6863 stack_alignment_needed,
6864 preferred_stack_boundary, epilogue_delay_list.
6865 (struct function): Remove value_histograms, stack_alignment_needed,
6866 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
6867 last_label_uid,
6868 unexpanded_var_list, stack_protect_guard.
6869 (current_function_epilogue_delay_list): Remove.
6870 * ipa-type-escape.c (analyze_function): Update.
6871 * gimplify.c (pop_gimplify_context): Update comment.
6872 * calls.c (expand_call): Update.
6873 (emit_library_call_value_1): Update.
6874 * except.c (set_nothrow_function_flags): Update.
6875 * cfgexpand.c (get_decl_align_unit): Update.
6876 (create_stack_guard): Update.
6877 (estimated_stack_frame_size): Update.
6878 (expand_used_vars): Update.
6879 (tree_expand_cfg): Free histogram earliers, init expansion variables.
6880 * explow.c (allocate_dynamic_stack_space): Update.
6881 * tree-ssa-live.c (remove_unused_locals): Update.
6882 * varasm.c (mark_constant_pool): Update.
6883 * tree-inline.c (remap_decls): Update.
6884 (initialize_cfun): Update.
6885 (declare_return_variable): Update.
6886 (inline_forbidden_p): Update.
6887 (expand_call_inline): Update.
6888 (declare_inline_vars): Update.
6889 (tree_function_versioning): Update.
6890 * tree-flow.h (value_histograms): New.
6891 (VALUE_HISTOGRAMS): New macro.
6892 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
6893 last_label_uid.
6894 * tree-cfg.c (set_bb_for_stmt): Update.
6895 (replace_by_duplicate_decl): Update.
6896 (move_block_to_fn): Update.
6897 (new_label_mapper): Update.
6898 (dump_function_to_file): Update.
6899 * ipa-struct-reorg.c (build_data_structure): Update.
6900 * cfgrtl.c (print_rtl_with_bb): Update.
6901 * reload1.c (reload): Update.
6902 (reload): Update.
6903 * config/i386/i386.c (setup_incoming_varargs_64,
6904 ix86_compute_frame_layout): Update.
6905 * config/arc/arc.c (arc_output_function_epilogue): Update.
6906
6907 2008-04-18 Marius Strobl <marius@FreeBSD.org>
6908
6909 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
6910 for FreeBSD as well.
6911 * gthr-posix95.h: Likewise.
6912
6913 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
6914
6915 PR rtl-optimization/35838
6916 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
6917 out the byte offset of the first subreg.
6918
6919 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
6920
6921 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
6922 to split_ti instead of three separate calls with single member arrays.
6923 (subti3 splitter): Ditto.
6924 (adddi3 splitter): Ditto with split_di.
6925 (subdi3 splitter): Ditto.
6926 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
6927 two separate calls with single member arrays. Swap match_dup
6928 operands 1 and 2 to better fit into the array.
6929 (negdi2 splitter): Ditto with split_di.
6930 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
6931 two separate calls with single member arrays. Swap match_dup operands
6932 6 and 7 to better fit into the array.
6933
6934 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
6935
6936 * config/i386/i386.c (sse_builtin_type): New.
6937 (bdesc_sse_args): Likewise.
6938 (bdesc_sse_3arg): Removed.
6939 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
6940 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
6941 IX86_BUILTIN_ROUNDPS.
6942 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
6943 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
6944 IX86_BUILTIN_ROUNDPS.
6945 (ix86_expand_sse_4_operands_builtin): Removed.
6946 (ix86_expand_sse_operands_builtin): New.
6947 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
6948 and CODE_FOR_sse4_1_roundps.
6949 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
6950 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
6951
6952 2008-04-17 Alan Modra <amodra@bigpond.net.au>
6953
6954 PR target/35907
6955 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
6956 regs before frame pop when needed. If use_backchain_to_restore_sp
6957 then load backchain into a temp reg to restore vr and vrsave. Add
6958 code to restore vr after frame pop if possible.
6959
6960 2008-04-17 Richard Guenther <rguenther@suse.de>
6961
6962 * tree-vn.c (expressions_equal_p): Do not check type
6963 equality or compatibility before calling operand_equal_p.
6964 * fold-const.c (operand_equal_p): Check equivalence of
6965 integer constants before bailing out due to signedness or
6966 precision differences.
6967 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
6968 spurious differences in type qualification. Ignore types
6969 for COMPONENT_REFs at all.
6970
6971 2008-04-17 Christian Bruel <christian.bruel@st.com>
6972
6973 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
6974 msw_skip comparison.
6975
6976 2008-04-16 Jakub Jelinek <jakub@redhat.com>
6977
6978 PR c/35739
6979 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
6980 reg type.
6981
6982 PR tree-optimization/35899
6983 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
6984 rather than TREE_OPERAND.
6985
6986 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
6987
6988 PR target/35944
6989 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
6990 temporary registers. Change operand predicate to general_operand.
6991 (remainderxf3): Ditto.
6992
6993 2008-04-16 Richard Guenther <rguenther@suse.de>
6994
6995 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
6996 * tree-affine.c (aff_combination_expand): Look through some
6997 conversions.
6998
6999 2008-04-15 Doug Kwan <dougkwan@google.com>
7000
7001 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
7002 for hex printing.
7003 * tree-pretty-print.c (dump_generic_node): Ditto.
7004 * final.c (output_addr_const): Ditto.
7005 * dwarf2out.c (output_cfi): Ditto.
7006 * c-pretty-print.c (pp_c_integer_constant): Ditto.
7007 * print-rtl.c (print_rtx): Ditto.
7008 * print-tree.c (print_node_brief, print_node): Ditto.
7009 * c-common.c (match_case_to_enum_1): Ditto.
7010 * sched-vis.c (print_value): Ditto.
7011 * config/i386/i386.c (print_operand): Cast to long unsigned int
7012 for hex printing.
7013
7014 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
7015 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
7016 MS Windows VirtualProtect function.
7017
7018 2008-04-15 Jan Hubicka <jh@suse.cz>
7019
7020 * gengtype.c (write_root): Param_is argument is OK.
7021 * expr.c (expand_expr_real_1): Update call of get_exception_*.
7022 * function.h: Include varray.h
7023 (rtl_eh): New stucture based on except.c one.
7024 (call_site_record): New forward declaration and vector type.
7025 * calls.c (emit_call_1): Do not call
7026 note_current_region_may_contain_throw.
7027 * except.c (eh_status): Remove cur_region, try_region since they are
7028 unused.
7029 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
7030 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
7031 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
7032 Remove call_site_data_used, call_site_data_size.
7033 Turn call_site_record into vector in function.h.
7034 (note_current_region_may_contain_throw): Remove.
7035 (get_exception_pointer, get_exception_filter): Do not take struct
7036 function argument; update.
7037 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
7038 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
7039 build_post_landing_pads, dw2_build_landing_pads,
7040 sjlj_assign_call_site_values, sjlj_mark_call_sites,
7041 sjlj_emit_function_enter, sjlj_emit_function_enter,
7042 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
7043 sjlj_build_landing_pads, finish_eh_generation,
7044 remove_exception_handler_label, remove_eh_handler,
7045 maybe_remove_eh_handler, add_reachable_handler,
7046 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
7047 add_action_record, collect_one_action_chain, add_call_site,
7048 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
7049 sjlj_output_call_site_table, output_function_exception_table,
7050 * except.h (note_current_region_may_contain_throw): Remove
7051 (get_exception_pointer, get_exception_filter): Do not take struct
7052 function argument.
7053 * Makefile.in (GTFILES): Put varargs before struct function.
7054
7055 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
7056
7057 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
7058 punt for STRING_CST.
7059 (get_constraint_for): Deal with STRING_CST here instead.
7060
7061 2008-04-15 Richard Guenther <rguenther@suse.de>
7062
7063 * tree-ssa-propagate.c (substitute_and_fold): Substitute
7064 statements in a basic-block with a backward walk. Do not
7065 substitute into dead statements but instead remove those.
7066
7067 2008-04-15 Richard Guenther <rguenther@suse.de>
7068
7069 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
7070 to zero, thus disable creation of SFTs.
7071
7072 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
7073
7074 * tree-predcom.c (suitable_reference_p): Return false if the
7075 reference can throw.
7076
7077 2008-04-15 Jakub Jelinek <jakub@redhat.com>
7078
7079 PR c/35751
7080 * c-decl.c (finish_decl): If extern or static var has variable
7081 size, set TREE_TYPE (decl) to error_mark_node.
7082
7083 2008-04-15 Rafael Espindola <espindola@google.com>
7084
7085 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
7086 variable arg1.
7087
7088 2008-04-15 Richard Guenther <rguenther@suse.de>
7089
7090 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7091 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
7092 (visit_reference_op_load): Do walk vuse-vdef chains on
7093 vn_reference_lookup.
7094 (visit_reference_op_store): But do not here.
7095 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
7096 vn_reference_lookup.
7097 (vn_lookup_with_vuses): But do so here.
7098
7099 2008-04-14 Ian Lance Taylor <iant@google.com>
7100
7101 * fold-const.c (fold_overflow_warning): Remove assertion.
7102
7103 2008-04-15 Ben Elliston <bje@au.ibm.com>
7104
7105 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
7106 temp1 local variables.
7107
7108 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
7109
7110 PR target/35661
7111 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
7112 ".text.unlikely" section as executable.
7113
7114 2008-04-14 James E. Wilson <wilson@tuliptree.org>
7115
7116 * config/ia64/ia64.c (rtx_needs_barrier): Handle
7117 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
7118 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
7119 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
7120 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
7121 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
7122 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
7123
7124 2008-04-14 Ian Lance Taylor <iant@google.com>
7125
7126 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
7127 * fold-const.c (fold_comparison): If appropriate, test
7128 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
7129 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
7130 reassociating a pointer type.
7131 * doc/invoke.texi (Optimize Options): Document that
7132 -fstrict-overflow applies to pointer wraparound.
7133
7134 2008-04-13 Jan Hubicka <jh@suse.cz>
7135
7136 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
7137
7138 2008-04-12 Andrew Pinski <pinskia@gmail.com>
7139
7140 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
7141 we are going to "save the world".
7142
7143 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
7144
7145 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
7146 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
7147 operand 0 constraint, not "=".
7148
7149 2008-04-11 James E. Wilson <wilson@tuliptree.org>
7150
7151 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
7152
7153 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
7154
7155 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
7156 of size of positions_needed * CHAR_BIT.
7157
7158 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
7159
7160 PR middle-end/35897
7161 * dse.c (store_info): Change positions_needed to unsigned
7162 HOST_WIDE_INT.
7163 (lowpart_bitmask): New.
7164 (record_store): Cast to unsigned HOST_WIDE_INT for
7165 positions_needed. Assert width <= size of positions_needed *
7166 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
7167 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
7168 lowpart_bitmask to set mask.
7169
7170 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
7171
7172 * config/bfin/constraints.md: New file.
7173 * config/bfin/bfin.md: Include it.
7174 (adddi3): Use satisfies_constraint functions instead of the old macros.
7175 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
7176 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
7177 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
7178 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
7179 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
7180 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
7181 EXTRA_CONSTRAINT): Delete.
7182 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
7183 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
7184 of the old macros.
7185 * config/bfin/bfin.c: Include "tm-constrs.h".
7186 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
7187 Use satisfies_constraint functions instead of the old macros.
7188 * doc/md.texi (Blackfin Constraints): Update file name reference.
7189
7190 2008-04-11 Richard Guenther <rguenther@suse.de>
7191
7192 PR tree-optimization/35869
7193 * tree-vrp.c (execute_vrp): Move switch statement update after
7194 jump threading. Schedule another cfg cleanup run.
7195
7196 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
7197
7198 PR c/35744
7199 * attribs.c (decl_attributes): Return early on errorneous node.
7200
7201 2008-04-10 Oleg Ryjkov <olegr@google.com>
7202
7203 * tree.h (struct tree_base): Added a new flag default_def_flag.
7204 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
7205
7206 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
7207
7208 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
7209
7210 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7211
7212 PR target/35768
7213 * pa.md: Define mode iterator P. Define mode attribute dwc.
7214 (dcacheflush): Update pattern to use iterator P and attribute dwc.
7215 (icacheflush): Likewise.
7216 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
7217 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
7218
7219 2008-04-11 Ben Elliston <bje@au.ibm.com>
7220
7221 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
7222
7223 2008-04-10 Rafael Espindola <espindola@google.com>
7224
7225 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
7226 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
7227 (extract_range_from_expr): The same.
7228
7229 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
7230
7231 * config/mips/mips.md (GPR2): New mode iterator.
7232 (seq): Add comment.
7233 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
7234 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
7235 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
7236 Rewrite these to take two modes, the mode of comparison and the
7237 mode of the destination.
7238 * config/mips/mips.c (mips_expand_scc): Instead of having
7239 paradoxical subreg as destination, expand "narrowing" scc if mode
7240 of comparison is SI and target is requested in DI mode.
7241 (mips_emit_int_order_test): Update comment. Make mode of
7242 comparison match CMP0 rather than TARGET. When creating inverse
7243 target use mode of TARGET.
7244
7245 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
7246
7247 * gcov-dump.c (tag_summary): Only print summaries for the first
7248 GCOV_COUNTERS_SUMMABLE counters.
7249
7250 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
7251
7252 * config/i386/i386.md (absneg): New code iterator.
7253 (absnegprefix): New code attribute.
7254 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
7255 patterns using absneg code iterator.
7256 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
7257 using absneg code iterator.
7258 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
7259 *neg<mode>2 patterns using absneg code iterator.
7260 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
7261 *negextendsfdf2 patterns using absneg code iterator.
7262 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
7263 *negextendsfxf2 patterns using absneg code iterator.
7264 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
7265 *negextendsfdf2 patterns using absneg code iterator.
7266 * config/i386/sse.md (<code><mode>2): Macroize expander from
7267 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
7268
7269 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
7270
7271 * config/s390/s390.h: Remove the remains of the recent search
7272 & replace action of current_function_outgoing_args_size.
7273
7274 2008-04-10 Ira Rosen <irar@il.ibm.com>
7275
7276 PR tree-optimization/35821
7277 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
7278 NEW_STMT_LIST is not NULL.
7279
7280 2008-04-09 David Edelsohn <edelsohn@gnu.org>
7281
7282 PR libstdc++/35597
7283 * toplev.c (process_options): Remove -ffunction-sections debugging
7284 warning.
7285
7286 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
7287
7288 PR middle-end/PR28690
7289 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
7290 than gen_rtx_fmt_ee to perform more canonicalizations.
7291
7292 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7293
7294 PR driver/35665
7295 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
7296
7297 2008-04-09 Richard Guenther <rguenther@suse.de>
7298
7299 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
7300 (dump_function_to_file): Dump function arguments with types.
7301
7302 2008-04-08 Richard Guenther <rguenther@suse.de>
7303
7304 * fold-const.c (fold_widened_comparison): Do not allow
7305 sign-changes that change the result.
7306
7307 2008-04-08 Janis Johnson <janis187@us.ibm.com>
7308
7309 PR target/35839
7310 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
7311 kinds of indirect references.
7312
7313 2008-04-08 David Edelsohn <edelsohn@gnu.org>
7314
7315 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
7316 GNU Fortran language string.
7317
7318 2008-04-08 Rafael Espindola <espindola@google.com>
7319
7320 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
7321 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
7322 * tree.h (tree_call_nonnegative_warnv_p): New.
7323
7324 2008-04-08 Jan Hubicka <jh@suse.cz>
7325
7326 * function.c (free_after_compilation): Clear out regno_reg_rtx
7327 pointer.
7328
7329 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
7330
7331 Revert
7332 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
7333
7334 PR middle-end/PR28690
7335 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
7336 same precedence as REG_POINTER and MEM_POINTER operands.
7337
7338 2008-04-08 Richard Guenther <rguenther@suse.de>
7339
7340 PR middle-end/35834
7341 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
7342 for adding index to base.
7343
7344 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
7345
7346 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
7347 (MINGW_ENABLE_EXECUTE_STACK): New.
7348 (IN_LIBGCC2): For libgcc include windows.h file for
7349 function declarations.
7350
7351 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
7352
7353 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
7354 and tem2 if tem1 is not a REG or MULT.
7355
7356 2008-04-08 Jan Hubicka <jh@suse.cz>
7357
7358 * function.h (incomming_args): Break out of struct function.
7359 (function_subsections): Break out of struct function.
7360 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
7361 return_rtx and hard_reg_initial_vals from struct function.
7362 Kill inl_max_label_num.
7363 (current_function_pops_args, current_function_args_info,
7364 current_function_args_size, current_function_args_size,
7365 current_function_pretend_args_size,
7366 current_function_outgoing_args_size,
7367 current_function_internal_arg_pointer, current_function_return_rtx):
7368 Kill compatibility accestor macros.
7369 * builtins.c (expand_builtin_apply_args_1): Update.
7370 (expand_builtin_next_arg): Update.
7371 * df-scan.c (df_get_call_refs): Update.
7372 * dbxout.c (dbxout_function_end): Update.
7373 * dwarf2out.c (dwarf2out_switch_text_section): Update.
7374 (output_line_info): Update.
7375 (secname_for_decl): Update.
7376 (dwarf2out_var_location): Update.
7377 * function.c (free_after_compilation): Update.
7378 (assign_parm_find_stack_rtl): Update.
7379 (assign_parms): Update.
7380 (expand_dummy_function_end): Update.
7381 (expand_function_end): Update.
7382 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
7383 (expand_call): Update.
7384 (emit_library_call_value_1): Update.
7385 (store_one_arg): Update.
7386 * varasm.c (initialize_cold_section_name): Update.
7387 (unlikely_text_section): Update.
7388 (unlikely_text_section_p): Update.
7389 (assemble_start_function): Update.
7390 (assemble_end_function): Update.
7391 (default_section_type_flags): Update.
7392 (switch_to_section): Update.
7393 * integrate.c (set_decl_abstract_flags): Update.
7394 (get_hard_reg_initial_val): Update.
7395 (has_hard_reg_initial_val): Update.
7396 (allocate_initial_values): Update.
7397 * resource.c (init_resource_info): Update.
7398 * config/alpha/alpha.c (NUM_ARGS): Update.
7399 (direct_return): Update.
7400 (alpha_va_start): Update.
7401 (alpha_sa_size): Update.
7402 (alpha_initial_elimination_offset): Update.
7403 (alpha_expand_prologue): Update.
7404 (alpha_start_function): Update.
7405 (alpha_expand_epilogue): Update.
7406 (unicosmk_initial_elimination_offset):
7407 * config/alpha/alpha.md (call expander): Update.
7408 * config/s390/s390.c (s390_register_info): Update.
7409 (s390_register_info): Update.
7410 (s390_frame_info): Update.
7411 (s390_initial_elimination_offset): Update.
7412 (s390_build_builtin_va_list): Update.
7413 (s390_va_start): Update.
7414 * config/spu/spu.c (direct_return): Update.
7415 (spu_expand_prologue): Update.
7416 (spu_initial_elimination_offset): Update.
7417 (spu_build_builtin_va_list): Update.
7418 (spu_va_start): Update.
7419 * config/sparc/sparc.c (sparc_init_modes): Update.
7420 (sparc_compute_frame_size): Update.
7421 (function_value): Update.
7422 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
7423 * config/i386/i386.md (return expander): Update.
7424 * config/i386/i386.c (ix86_va_start): Update.
7425 (ix86_can_use_return_insn_p): Update.
7426 (ix86_compute_frame_layout): Update.
7427 (ix86_expand_epilogue): Update.
7428 * config/sh/sh.c (output_stack_adjust): Update.
7429 (calc_live_regs): Update.
7430 (sh_expand_prologue): Update.
7431 (sh_builtin_saveregs): Update.
7432 (sh_va_start): Update.
7433 (initial_elimination_offset): Update.
7434 (sh_allocate_initial_value): Update.
7435 (sh_function_ok_for_sibcall): Update.
7436 (sh_get_pr_initial_val): Update.
7437 * config/sh/sh.md (return expander): Update.
7438 * config/avr/avr.c (frame_pointer_required_p): UPdate.
7439 * config/crx/crx.c (crx_compute_frame): UPdate.
7440 (crx_initial_elimination_offset): UPdate.
7441 * config/xtensa/xtensa.c (compute_frame_size): Update
7442 (xtensa_builtin_saveregs): Update.
7443 (xtensa_va_start): Update.
7444 (order_regs_for_local_alloc): Update.
7445 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
7446 (xstormy16_expand_builtin_va_start): Update.
7447 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
7448 * config/m68hc11/m68hc11.md (return expanders): Update.
7449 * config/m68hc11/m68hc11.c (expand_prologue): Update.
7450 (expand_epilogue): Update.
7451 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
7452 (cris_simple_epilogue): Update.
7453 (cris_expand_prologue): Update.
7454 (cris_expand_epilogue): Update.
7455 * config/iq2000/iq2000.c (iq2000_va_start): Update.
7456 (compute_frame_size): Update.
7457 * config/mt/mt.c (mt_compute_frame_size): Update.
7458 * config/mn10300/mn10300.c (expand_prologue): Update.
7459 (expand_epilogue): Update.
7460 (initial_offset): Update.
7461 (mn10300_builtin_saveregs):
7462 * config/mn10300/mn10300.md (return expander): Update.
7463 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
7464 (ia64_initial_elimination_offset): Update.
7465 (ia64_initial_elimination_offset): Update.
7466 (ia64_expand_prologue): Update.
7467 * config/m68k/m68k.md (return expander): Update.
7468 * config/rs6000/rs6000.c (rs6000_va_start): Update.
7469 (rs6000_stack_info): Update.
7470 * config/mcore/mcore.c (layout_mcore_frame): Update.
7471 (mcore_expand_prolog): Update.
7472 * config/arc/arc.c (arc_compute_frame_size): Update.
7473 * config/score/score3.c (score3_compute_frame_size): Update.
7474 * config/score/score7.c (score7_compute_frame_size): Update.
7475 * config/arm/arm.c (use_return_insn): Update.
7476 (thumb_find_work_register): Update.
7477 (arm_compute_save_reg_mask): Update.
7478 (arm_output_function_prologue): Update.
7479 (arm_output_epilogue): Update.
7480 (arm_size_return_regs): Update.
7481 (arm_get_frame_offsets): Update.
7482 (arm_expand_prologue): Update.
7483 (thumb_exit): Update.
7484 (thumb_unexpanded_epilogue): Update.
7485 (thumb1_output_function_prologue): Update.
7486 * config/pa/pa.md (return expander): Update.
7487 * config/pa/pa.c (compute_frame_size): Update.
7488 (hppa_builtin_saveregs): Update.
7489 * config/mips/mips.c (mips_va_start): Update.
7490 (mips16_build_function_stub): Update.
7491 (mips_compute_frame_info): Update.
7492 (mips_restore_gp): Update.
7493 (mips_output_function_prologue): Update.
7494 (mips_expand_prologue): Update.
7495 * config/v850/v850.c (compute_frame_size): Update.
7496 (expand_prologue): * config/mmix/mmix.c (along): update.
7497 (mmix_initial_elimination_offset): update.
7498 (mmix_reorg): update.
7499 (mmix_use_simple_return): update.
7500 (mmix_expand_prologue): update.
7501 (mmix_expand_epilogue): Update.
7502 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
7503 (emit_link_insn): Update.
7504
7505 2008-04-08 Anatoly Sokolov <aesok@post.ru>
7506
7507 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
7508 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
7509 instructions.
7510 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
7511 atmega103 device.
7512
7513 2008-04-07 Jan Hubicka <jh@suse.cz>
7514
7515 * function.h (rtl): Rename to x_rtl.
7516 (crtl): New define.
7517 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
7518 frame_offset, stack_check_probe_note, arg_pointer_save_area,
7519 used_temp_slots avail_temp_slots, temp_slot_level,
7520 nonlocal_goto_handler_labels): Update accesstors.
7521 (rtl): New global variable.
7522 (struct function): Move some fileds to rtl_data.
7523 (get_arg_pointer_save_area): Update prototype.
7524 * builtins.c (expand_builtin_setjmp_receiver): Update call of
7525 get_arg_pointer_save_area.
7526 * expr.c (init_expr): Update
7527 * function.c (get_frame_size): Update
7528 (assign_stack_local): Update
7529 (expand_function_end): Update.
7530 (get_art_pointer_save_area): Update
7531 * function.h
7532 * emit-rtl.c (rtl): Declare.
7533 (regno_reg_rtx): Declare.
7534 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
7535 Update.
7536 (gen_reg_rtx): Update.
7537 * varasm.c (n_deferred_constatns): Update accestor.
7538 (init_varasm_status): Do not allocate varasm_status.
7539 (force_const_mem, get_pool_size, output_constant_pool): Update.
7540 * stmt.c (force_label_rtx): Do not use x_ prefixes.
7541 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
7542 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
7543 * sparc/sparc.h (INIT_EXPANDERS): Update.
7544 * ia64/ia64.h (INIT_EXPANDERS): Update.
7545
7546 2008-04-07 James E. Wilson <wilson@tuliptree.org>
7547
7548 * reload.c (push_secondary_reload): Add missing break to for loop.
7549
7550 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
7551
7552 PR middle-end/PR28690
7553 * rtlanal.c: Update copyright years.
7554 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
7555 as REG_POINTER and MEM_POINTER operands.
7556 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
7557 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
7558 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
7559 * gcse.c: Update copyright years.
7560 (pre_delete): Call gen_reg_rtx_and_attrs.
7561 (hoist_code): Likewise.
7562 (build_store_vectors): Likewise.
7563 (delete_store): Likewise.
7564 * loop-invariant.c (move_invariant_reg): Likewise.
7565 Update copyright years.
7566
7567 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
7568
7569 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
7570 control string instead of quoted.
7571
7572 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
7573
7574 * doc/rtl.texi: Rewrite of subreg section.
7575
7576 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
7577
7578 PR/35842
7579 * config/i386/i386.c (legitimize_pic_address): Add treating
7580 of dllimport SYM_REF's.
7581 (legitimize_dllimport_symbol): Add prototype.
7582
7583 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
7584
7585 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
7586 reference in constructor with non self-referential type.
7587
7588 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
7589
7590 Removal of Return with Depressed Stack Pointer support
7591 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
7592 (ECF_SP_DEPRESSED): Likewise.
7593 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
7594 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
7595 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
7596 (expand_call): Do not test ECF_SP_DEPRESSED.
7597 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
7598 * function.c (keep_stack_depressed): Delete.
7599 (handle_epilogue_set): Likewise.
7600 (update_epilogue_consts): Likewise.
7601 (emit_equiv_load): Likewise.
7602 (thread_prologue_and_epilogue_insns): Remove support for Return with
7603 Depressed Stack Pointer.
7604 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
7605
7606 2008-04-06 Richard Guenther <rguenther@suse.de>
7607
7608 PR tree-optimization/35400
7609 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
7610 information from SSA_NAMEs.
7611
7612 2008-04-06 Anatoly Sokolov <aesok@post.ru>
7613
7614 * config/avr/avr.h (avr_mega_p): Remove declaration.
7615 (AVR_MEGA): Remove macro.
7616 * config/avr/avr.c (avr_mega_p): Remove variable.
7617 (avr_override_options): Remove inicializion of avr_mega_p.
7618 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
7619 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
7620 (avr_jump_mode): (Ditto.).
7621 (avr_output_progmem_section_asm_op): (Ditto.).
7622 (avr_asm_init_sections): (Ditto.).
7623 (avr_asm_init_sections): (Ditto.).
7624 (avr_rtx_costs): (Ditto.).
7625 * config/avr/avr.md: (Ditto.).
7626 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
7627 '__AVR_MEGA__'.
7628
7629 2008-04-06 Richard Guenther <rguenther@suse.de>
7630
7631 PR tree-optimization/35842
7632 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
7633 is_gimple_invariant_address.
7634
7635 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7636
7637 * gcc.c (default_compilers): Sync Fortran extensions list with
7638 that in fortran/lang-specs.h.
7639 * doc/invoke.texi: Likewise.
7640 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
7641 * dwarf2out.c (gen_compile_unit_die): Likewise.
7642
7643 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
7644
7645 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
7646
7647 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
7648
7649 PR target/12329
7650 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
7651 attribute is used for nested functions.
7652
7653 2008-04-05 Jan Hubicka <jh@suse.cz>
7654
7655 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
7656
7657 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
7658 letter argument.
7659 (dump_files): Update.
7660 (enable_rtl_dump_file): Do not accept letter argument.
7661 * tree-pass.h (dump_file_info): Remove letter argument.
7662 * toplev.c (decode_d_option): Update -da handling.
7663 * toplev.h (enable_rtl_dump_file): Update prototype.
7664 * passes.c (register_one_dump_file): Do not accept IPA argument; work
7665 it out based on pass type.
7666 (register_dump_files_1): Likewise.
7667 (init_optimization_passes): Update register_one_dump_file calls.
7668 (execute_one_pass): Sanity check that IPA passes are called at IPA
7669 level and RTL passes at RTL level.
7670 (execute_pass_list): IPA pass can not be after or subpass of
7671 GIMPLE/RTL pass.
7672 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
7673 disallov RTL subpasses of IPA subpasses.
7674
7675 2008-04-05 Ben Elliston <bje@au.ibm.com>
7676
7677 * tree-cfg.c (need_fake_edge_p): Return false for calls to
7678 builtins that return exactly once and do not throw. Cache call to
7679 call_expr_flags.
7680
7681 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
7682
7683 PR rtl-optimization/34916
7684 PR middle-end/35519
7685 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
7686 between instruction pairs.
7687
7688 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
7689
7690 * doc/invoke.texi: Document -mbitops for SH.
7691 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
7692 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
7693 * config/sh/sh.c (print_operand): Add %t operand code.
7694 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
7695 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
7696 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
7697 (extendqihi2): Likewise.
7698 (movqi_i): Likewise.
7699 (insv): Use bset, bclr and bst instructions for SH2A if possible.
7700 (extv): Use bld instruction for SH2A if possible.
7701 (extzv): Likewise.
7702 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
7703 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
7704 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
7705 (bset.b, bclr.b): Define peepholes.
7706 * config/sh/sh.opt (mbitops): New option.
7707
7708 2008-04-04 Janis Johnson <janis187@us.ibm.com>
7709
7710 PR target/35620
7711 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
7712 and view convert expression.
7713
7714 2008-04-04 Jakub Jelinek <jakub@redhat.com>
7715
7716 PR target/35364
7717 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
7718
7719 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
7720
7721 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
7722
7723 * config/i386/cpuid.h (bit_AES): New.
7724 (bit_PCLMUL): Likewise.
7725
7726 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
7727 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
7728 SSE2 if AES or PCLMUL is enabled.
7729 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
7730 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
7731 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
7732 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
7733 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
7734 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
7735 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
7736 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
7737 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
7738 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
7739 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
7740 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
7741 __builtin_ia32_aeskeygenassist128 and
7742 __builtin_ia32_pclmulqdq128.
7743 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
7744 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
7745 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
7746
7747 * config/i386/i386.h (TARGET_AES): New.
7748 (TARGET_PCLMUL): Likewise.
7749 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
7750
7751 * config/i386/i386.md (UNSPEC_AESENC): New.
7752 (UNSPEC_AESENCLAST): Likewise.
7753 (UNSPEC_AESDEC): Likewise.
7754 (UNSPEC_AESDECLAST): Likewise.
7755 (UNSPEC_AESIMC): Likewise.
7756 (UNSPEC_AESKEYGENASSIST): Likewise.
7757 (UNSPEC_PCLMUL): Likewise.
7758
7759 * config/i386/i386.opt (maes): New.
7760 (mpclmul): Likewise.
7761
7762 * config/i386/sse.md (aesenc): New pattern.
7763 (aesenclast): Likewise.
7764 (aesdec): Likewise.
7765 (aesdeclast): Likewise.
7766 (aesimc): Likewise.
7767 (aeskeygenassist): Likewise.
7768 (pclmulqdq): Likewise.
7769
7770 * config/i386/wmmintrin.h: New.
7771
7772 * doc/extend.texi: Document AES and PCLMUL built-in function.
7773
7774 * doc/invoke.texi: Document -maes and -mpclmul.
7775
7776 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
7777
7778 * function.c (free_after_parsing): Replace with
7779 cxx_push_function_context from C++ front-end.
7780 (allocate_struct_function): Don't call langhook.
7781 * langhooks.h (struct lang_hooks_for_functions): Delete.
7782 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
7783 member "function".
7784 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
7785 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
7786 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
7787 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
7788 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
7789 remove LANG_HOOKS_FUNCTION_INITIALIZER.
7790 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
7791
7792 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
7793 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
7794
7795 2008-04-04 Jakub Jelinek <jakub@redhat.com>
7796
7797 PR c/35440
7798 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
7799 for all types.
7800
7801 2008-04-04 Richard Guenther <rguenther@suse.de>
7802
7803 PR middle-end/35823
7804 * fold-const.c (optimize_minmax_comparison): Use the correct
7805 type for the constant in the simplified comparison.
7806
7807 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
7808
7809 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
7810 Pass L2 size as "--param l2-cache-size" to the compiler.
7811 (decode_l2_cache): New function to decode L2 cache parameters using
7812 0x8000006 extended cpuid function.
7813 (detect_caches_amd): Determine parameters of L2 cache using
7814 decode_l2_caches function.
7815 (decode_caches_intel): Decode L2 cache parameters.
7816 (detect_caches_intel): Determine L2 cache parameters using
7817 decode_caches_intel and decode_l2_caches functions.
7818
7819 2008-04-03 Bob Wilson <bob.wilson@acm.org>
7820
7821 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
7822 secondary input reload for subword loads from the constant pool.
7823
7824 2008-04-03 Janis Johnson <janis187@us.ibm.com>
7825
7826 PR target/35713
7827 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
7828 constants of the appropriate size for runtime calculations.
7829
7830 PR c/35712
7831 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
7832 decimal-float literal constant zero.
7833
7834 2008-04-03 Jakub Jelinek <jakub@redhat.com>
7835
7836 PR c/35738
7837 * c-parser.c (c_parser_omp_atomic): Call
7838 default_function_array_conversion on the RHS.
7839
7840 PR middle-end/35818
7841 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
7842 call is_variable_sized if decl has incomplete type.
7843
7844 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
7845
7846 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
7847
7848 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
7849
7850 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
7851 iterators.
7852 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
7853 (sgt<u>): Merge sgt and sgtu into new expander.
7854 (sgt, sgtu): Remove expanders.
7855 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
7856 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
7857 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
7858 *sgtu_<mode>_mips16 into new pattern.
7859 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
7860 (sge<u>): Merge sge and sgeu into new expander.
7861 (sge, sgeu): Remove expanders.
7862 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
7863 new pattern.
7864 (*sge_<mode>, second *sge_<mode>): Remove patterns.
7865 (slt<u>): Merge slt and sltu into new expander.
7866 (slt, sltu): Remove expanders.
7867 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
7868 (*slt_<mode>, *sltu_<mode>): Remove patterns.
7869 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
7870 *sltu_<mode>_mips16 into new pattern.
7871 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
7872 (sle<u>): Merge sle and sleu into new expander.
7873 (sle, sleu): Remove expanders.
7874 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
7875 (*sle_<mode>, *sleu_<mode>): Remove patterns.
7876 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
7877 *sleu_<mode>_mips16 into new pattern.
7878 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
7879
7880 2008-04-03 Jan Hubicka <jh@suse.cz>
7881
7882 PR tree-optimization/35795
7883 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
7884 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7885 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7886 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7887 * score/score3.c (score3_output_mi_thunk): Likewise.
7888 * score/score7.c (score7_output_mi_thunk): Likewise.
7889 * mips/mips.c (mips_output_mi_thunk): Likewise.
7890
7891 2008-04-03 Richard Guenther <rguenther@suse.de>
7892
7893 * tree-vrp.c (extract_range_from_unary_expr): Handle all
7894 conversions. Simplify code.
7895
7896 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
7897
7898 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
7899
7900 2008-04-03 Tom Tromey <tromey@redhat.com>
7901 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7902
7903 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
7904 * config/bfin/t-bfin-linux (generated_files): Add
7905 linux-sysroot-suffix.h.
7906 * doc/install.texi (Prerequisites): Require make 3.80.
7907 * doc/sourcebuild.texi (Front End Directory): Document new
7908 variable.
7909 * Makefile.in (generated_files): New variable.
7910 (ALL_HOST_OBJS): New variable.
7911 ($(ALL_HOST_OBJS)): New target.
7912
7913 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
7914
7915 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
7916 (remap_block): Call id->transform_lang_insert_block instead
7917 of langhook.
7918 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
7919 Set id.transform_lang_insert_block to NULL.
7920 (clone_body): Move to cp/optimize.c
7921 * tree-inline.h (struct copy_body_data): Change
7922 transform_lang_insert_block to function pointer.
7923 (copy_generic_body, copy_decl_no_change): Export.
7924 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
7925 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
7926 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
7927
7928 * c-tree.h (insert_block): Kill.
7929 * c-decl.c (insert_block): Kill.
7930
7931 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
7932
7933 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
7934 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
7935 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
7936 argument.
7937 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
7938 argument, call {push,pop}_function_context from here.
7939 * c-parser.c: Use c_{push,pop}_function_context.
7940
7941 * function.c (push_function_context_to): Move meat ...
7942 (push_function_context): ... here. Simplify.
7943 * function.c (pop_function_context_from): Move meat ...
7944 (pop_function_context): ... here. Simplify.
7945 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
7946 leave_nested).
7947 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
7948 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
7949 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
7950 * tree.h (push_function_context_to, pop_function_context_from): Remove.
7951
7952 2008-04-03 Ben Elliston <bje@au.ibm.com>
7953
7954 * expmed.c (extract_force_align_mem_bit_field): Remove.
7955
7956 2008-04-03 Richard Guenther <rguenther@suse.de>
7957
7958 PR middle-end/35800
7959 * expr.h (try_casesi): Adjust prototype.
7960 * expr.c (try_casesi): Take fallback label as extra parameter.
7961 Use that for gen_casesi if default_label is NULL.
7962 * stmt.c (expand_case): Pass fallback label to try_casesi,
7963 make sure to fill gaps with a fallback label if default_label
7964 is not present.
7965
7966 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
7967
7968 PR target/35801
7969 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
7970
7971 2008-04-03 Ben Elliston <bje@au.ibm.com>
7972
7973 * expmed.c (extract_split_bit_field): Remove if (0) code.
7974 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
7975 (do_ds_constraint): Likewise.
7976
7977 2008-04-02 Joseph Myers <joseph@codesourcery.com>
7978
7979 * doc/cppopts.texi (-dU): Document.
7980 * c-common.h (flag_dump_macros): Update comment.
7981 * c-opts.c (handle_OPT_d): Handle -dU.
7982 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
7983 dump_queued_macros, cb_used_define, cb_used_undef): New.
7984 (init_pp_output): Handle -dU.
7985 (cb_line_change): Call dump_queued_macros.
7986 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
7987
7988 2008-04-02 Anatoly Sokolov <aesok@post.ru>
7989
7990 * config/avr/predicates.md (io_address_operand): New predicate.
7991 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
7992 * config/avr/avr.c (avr_io_address_p): Remove function.
7993 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
7994 'avr_io_address_p' function.
7995 (out_movhi_r_mr): (Ditto.).
7996 (out_movqi_mr_r): (Ditto.).
7997 (out_movhi_mr_r): (Ditto.).
7998 (avr_address_cost): (Ditto.).
7999
8000 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
8001
8002 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
8003 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
8004 in 32bit mode when XMM registers are available to avoid store
8005 forwarding stalls.
8006 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
8007 corresponding post-reload splitters.
8008
8009 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
8010
8011 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
8012 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
8013 __builtin_ia32_roundss.
8014 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
8015 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
8016 __builtin_ia32_roundss.
8017 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
8018 IX86_BUILTIN_SHUFPD here.
8019
8020 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
8021
8022 * config/i386/i386.md (plogic): New.
8023 (plogicprefix): Likewise.
8024
8025 * config/i386/mmx.md (mmx_<code><mode>3): New.
8026 (mmx_and<mode>3): Removed.
8027 (mmx_ior<mode>3): Likewise.
8028 (mmx_xor<mode>3): Likewise.
8029
8030 * config/i386/sse.md (<code><mode>3): New.
8031 (*<code><mode>3): Likewise.
8032 (*<code><mode>3): Likewise.
8033 (<code><mode>3): Likewise.
8034 (*sse_<code><mode>3): Likewise.
8035 (*sse2_<code><mode>3): Likewise.
8036 (<code>tf3): Likewise.
8037 (*<code>tf3): Likewise.
8038 (and<mode>3): Likewise.
8039 (*and<mode>3): Likewise.
8040 (ior<mode>3): Removed.
8041 (*ior<mode>3): Likewise.
8042 (xor<mode>3): Likewise.
8043 (*xor<mode>3): Likewise.
8044 (*and<mode>3): Likewise.
8045 (*ior<mode>3): Likewise.
8046 (*xor<mode>3): Likewise.
8047 (and<mode>3): Likewise.
8048 (*sse_and<mode>3): Likewise.
8049 (*sse2_and<mode>3): Likewise.
8050 (andtf3): Likewise.
8051 (*andtf3): Likewise.
8052 (ior<mode>3): Likewise.
8053 (*sse_ior<mode>3): Likewise.
8054 (*sse2_ior<mode>3): Likewise.
8055 (iortf3): Likewise.
8056 (*iortf3): Likewise.
8057 (xor<mode>3): Likewise.
8058 (*sse_xor<mode>3): Likewise.
8059 (*sse2_xor<mode>3): Likewise.
8060 (xortf3): Likewise.
8061 (*xortf3): Likewise.
8062
8063 2008-04-02 Richard Guenther <rguenther@suse.de>
8064
8065 PR tree-optimization/14495
8066 PR tree-optimization/34793
8067 * tree-vrp.c (struct switch_update): New structure.
8068 (to_remove_edges, to_update_switch_stmts): New VECs.
8069 (simplify_switch_using_ranges): New function. Remove not taken
8070 case labels and edges.
8071 (simplify_stmt_using_ranges): Call it.
8072 (identify_jump_threads): Mark edges we have queued for removal
8073 so we don't thread them.
8074 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
8075 case label vector.
8076 * tree-cfg.c (group_case_labels): Deal with missing default label.
8077 (tree_verify_flow_info): Allow missing default label.
8078 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
8079 (emit_case_nodes): Likewise.
8080 (expand_case): Do not rely on the default label to be present.
8081 * expr.c (try_casesi): Deal with NULL default_label.
8082 (do_tablejump): Likewise.
8083
8084 2008-04-02 Richard Guenther <rguenther@suse.de>
8085
8086 PR tree-optimization/14495
8087 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
8088 SWITCH_EXPR here ...
8089 (vrp_visit_switch_stmt): ... but here (new function).
8090 (find_case_label_index): New helper function.
8091 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
8092
8093 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
8094
8095 * fwprop.c: Fix ISO-C99ism.
8096
8097 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
8098
8099 PR bootstrap/35752
8100 * Makefile.in (objdir): Set it here.
8101 * configure.ac: Not here. Find dynamic linker characteristics.
8102 * exec-tool.in: Use them.
8103 * aclocal.m4: Regenerate.
8104 * configure: Regenerate.
8105
8106 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
8107
8108 * expr.c (expand_var): Delete it.
8109 * expr.h (expand_var): Delete prototype.
8110 * function.c (expand_function_start): Use expand_decl instead.
8111 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
8112 langhook.
8113
8114 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
8115
8116 PR rtl-optimization/35542
8117 * fwprop.c (forward_propagate_and_simplify): Replace
8118 loc_reg_mentioned_in_p with reg_mentioned_p.
8119
8120 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
8121
8122 PR rtl-optimization/35281
8123 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
8124 (propagate_rtx_1): Handle PR_HANDLE_MEM.
8125 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
8126 (varying_mem_p): Move above propagate_rtx.
8127 (all_uses_available_at): Do not check MEMs.
8128
8129 2008-04-02 Rafael Espindola <espindola@google.com>
8130
8131 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
8132 (register_edge_assert_for_2): Split the cond argument.
8133 (register_edge_assert_for_1): Adjust for the change in
8134 register_edge_assert_for_2.
8135 (register_edge_assert_for): Split the cond argument.
8136 (find_switch_asserts): Adjust for the change in
8137 register_edge_assert_for.
8138
8139 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
8140
8141 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
8142 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
8143 offsets for 64-bit mingw.
8144 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
8145 abi for x86_64-pc-mingw.
8146
8147 2008-04-02 Richard Guenther <rguenther@suse.de>
8148
8149 * tree-vrp.c (extract_range_from_assert): Make sure to not
8150 produce range min/max with TREE_OVERFOW set.
8151 If merging a anti-range and a range keep the anti-range if
8152 the range covers all values of the type.
8153 (register_edge_assert_for_2): Only allow sign-changing
8154 conversions in detecting canonical range checks. Also
8155 register an assert for the unsigned name if useful.
8156
8157 PR tree-optimization/35787
8158 * tree-vrp.c (vrp_val_max): New function.
8159 (vrp_val_min): Likewise.
8160 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
8161 (vrp_val_is_min): Likewise.
8162 (supports_overflow_infinity): Use vrp_val_{min,max}.
8163 (negative_overflow_infinity): Likewise.
8164 (positive_overflow_infinity): Likewise.
8165 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
8166 (is_positive_overflow_infinity): Likewise.
8167 (is_overflow_infinity): Likewise.
8168 (avoid_overflow_infinity): Use vrp_val_{min,max} and
8169 vrp_val_is_{min,max}.
8170 (set_and_canonicalize_value_range): Canonicalize anti-ranges
8171 to ranges if possible. Avoid empty ranges.
8172
8173 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8174
8175 PR middle-end/35705
8176 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
8177 the expression is a function address.
8178
8179 2008-04-01 George Helffrich <george@gcc.gnu.org>
8180
8181 PR fortran/35154, fortran/23057
8182 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
8183 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
8184 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
8185 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
8186 in common.
8187 (dbxout_syms): Check for COMMON-based symbol and wrap in
8188 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
8189 in bracket for efficiency.
8190
8191 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
8192 using DW_TAG_common_block + member offset.
8193 (add_pubname_string): New function.
8194 (dw_expand_expr): New function to find block name and offset for
8195 COMMON var.
8196 (common_check): New function to check whether symbol in Fortran COMMON.
8197 (gen_variable_die): If COMMON, use DW_TAG_common_block.
8198
8199 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
8200
8201 PR c/35436
8202 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
8203
8204 2008-04-02 Ben Elliston <bje@au.ibm.com>
8205
8206 * config/v850/v850.md (casesi): Remove if (0) code.
8207 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8208 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8209
8210 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
8211
8212 * config/i386/i386.md (rex64suffix): New mode attribute.
8213 (floathi<mode>2): Disable expander for SSE math.
8214 (*floathi<mode>2_1): New insn insn_and_split pattern.
8215 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
8216 corresponding post-reload splitters.
8217 (*floathi<mode>2_i387): New macroized insn pattern.
8218 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
8219 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
8220 insn_and_split pattern.
8221 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
8222 New macroized instruction patterns and corresponding post-reload
8223 splitters.
8224 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
8225 and corresponding post-reload splitters.
8226 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
8227 New macroized instruction patterns.
8228 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
8229 macroized instruction patterns and corresponding post-reload splitters.
8230 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
8231 corresponding post-reload splitters.
8232 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
8233 New macroized instruction patterns.
8234 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
8235 corresponding post-reload splitters.
8236 (*floatsi<mode>2_i387): New macroized instruction patterns.
8237
8238 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
8239
8240 * config/i386/i386.md (smaxmin): New.
8241 (umaxmin): Likewise.
8242 (maxminiprefix): Likewise.
8243 (maxminfprefix): Likewise.
8244 (<code><mode>3): Likewise.
8245 (smin<mode>3): Removed.
8246 (smax<mode>3): Likewise.
8247
8248 * config/i386/mmx.md (mmx_<code>v2sf3): New.
8249 (mmx_<code>v4hi3): Likewise.
8250 (mmx_<code>v8qi3): Likewise.
8251 (mmx_smaxv2sf3): Removed.
8252 (mmx_sminv2sf3): Likewise.
8253 (mmx_umaxv8qi3): Likewise.
8254 (mmx_smaxv4hi3): Likewise.
8255 (mmx_uminv8qi3): Likewise.
8256 (mmx_sminv4hi3): Likewise.
8257
8258 * config/i386/sse.md (<addsub><mode>3): New.
8259 (*<addsub><mode>3): Likewise.
8260 (<sse>_vm<addsub><mode>3): Likewise.
8261 (<maxmin><mode>3): Likewise.
8262 (*<maxmin><mode>3_finite): Likewise.
8263 (*<maxmin><mode>3): Likewise.
8264 (<sse>_vm<maxmin><mode>3): Likewise.
8265 (sse3_h<addsub>v4sf3): Likewise.
8266 (sse3_h<addsub>v2df3): Likewise.
8267 (<maxmin>v16qi3): Likewise.
8268 (*<maxmin>v16qi3): Likewise.
8269 (<maxmin>v8hi3): Likewise.
8270 (*<maxmin>v8hi3): Likewise.
8271 (*sse4_1_<maxmin><mode>3): Likewise.
8272 (*sse4_1_<maxmin><mode>3): Likewise.
8273 (add<mode>3): Removed.
8274 (*add<mode>3): Likewise.
8275 (<sse>_vmadd<mode>3): Likewise.
8276 (sub<mode>3): Likewise.
8277 (*sub<mode>3): Likewise.
8278 (<sse>_vmsub<mode>3): Likewise.
8279 (smin<mode>3): Likewise.
8280 (*smin<mode>3_finite): Likewise.
8281 (*smin<mode>3): Likewise.
8282 (<sse>_vmsmin<mode>3): Likewise.
8283 (smax<mode>3): Likewise.
8284 (*smax<mode>3_finite): Likewise.
8285 (*smax<mode>3): Likewise.
8286 (<sse>_vmsmax<mode>3): Likewise.
8287 (sse3_haddv4sf3): Likewise.
8288 (sse3_haddv2df3): Likewise.
8289 (sse3_hsubv4sf3): Likewise.
8290 (sse3_hsubv2df3): Likewise.
8291 (umaxv16qi3): Likewise.
8292 (*umaxv16qi3): Likewise.
8293 (smaxv8hi3): Likewise.
8294 (*smaxv8hi3): Likewise.
8295 (*sse4_1_smax<mode>3): Likewise.
8296 (*sse4_1_umax<mode>3): Likewise.
8297 (uminv16qi3): Likewise.
8298 (*uminv16qi3): Likewise.
8299 (sminv8hi3): Likewise.
8300 (*sminv8hi3): Likewise.
8301 (*sse4_1_smin<mode>3): Likewise.
8302 (*sse4_1_umin<mode>3): Likewise.
8303
8304 2008-04-01 Rafael Espindola <espindola@google.com>
8305
8306 * tree-cfg.c (verify_expr): remove in_phi.
8307 (verify_stmt): Don't call walk_tree with verify_expr. Use
8308 is_gimple_min_invariant instead of is_gimple_val.
8309
8310 2008-04-01 Joseph Myers <joseph@codesourcery.com>
8311
8312 * doc/include/gpl_v3.texi: Update for manpage generation.
8313 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
8314 gpl.texi.
8315 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
8316 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
8317 gpl_v3.texi instead of gpl.texi.
8318 (gpl.pod): New.
8319
8320 2008-04-01 Jakub Jelinek <jakub@redhat.com>
8321
8322 PR pch/13675
8323 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
8324
8325 2008-04-01 Rafael Espindola <espindola@google.com>
8326
8327 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
8328 (extract_code_and_val_from_cond): Use
8329 extract_code_and_val_from_cond_with_ops.
8330
8331 2008-04-01 Jan Hubicka <jh@suse.cz>
8332
8333 * function.c (free_after_compilation): Free epilogue_delay_list.
8334 (prepare_function_start): Assert that previous compilation was freed.
8335
8336 2008-04-01 Jan Hubicka <jh@suse.cz>
8337 Jim Wilson <wilson@tuliptree.org>
8338 Andreas Tobler <andreast@gcc.gnu.org>
8339
8340 PR middle-end/35781
8341 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
8342 rtl.emit instead cfun->emit.
8343 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
8344 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
8345
8346 2008-04-01 Ben Elliston <bje@au.ibm.com>
8347
8348 * doc/c-tree.texi (Function Basics): Fix grammatical error.
8349
8350 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
8351
8352 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
8353 New options
8354 (fprofile-use): Add var flag_profile_use
8355 * coverage.c (coverage_begin_output): Do not open a gcno file for
8356 output only if -ftest-coverage is set.
8357 Do not add getpwd() to gcda file path.
8358 (build_gcov_info): Check the new flag
8359 flag_profile_datafile_relative_path.
8360 (coverage_init): Use profile_data_prefix.
8361 Read profile counter only if flag_profile_use is set.
8362 * opts.c (common_handle_option): New option fprofile-use=,
8363 fprofile-dir=, fprofile-generate=.
8364 * toplev.c (profile_data_prefix): New variable definition.
8365 * toplev.h (profile_data_prefix): New declaration.
8366 * doc/invoke.tex (Option Summary, Optimization Options):
8367 Add new options.
8368
8369 2008-03-31 James E. Wilson <wilson@tuliptree.org>
8370
8371 * varasm.c (output_constant_pool_1): In LABEL_REF check,
8372 use tmp consistently.
8373
8374 PR target/35695
8375 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
8376 * config/ia64/ia64.c (rtx_needs_barrier): Handle
8377 UNSPEC_FR_RECIP_APPROX_RES.
8378 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
8379
8380 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
8381
8382 PR c/35750
8383 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
8384
8385 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
8386
8387 PR middle-end/30186
8388 * fold-const.c (fold_indirect_ref_1): Support accessing non first
8389 element of the vector via a pointer.
8390
8391 2008-03-31 Ian Lance Taylor <iant@google.com>
8392
8393 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
8394
8395 2008-03-31 Jan Hubicka <jh@suse.cz>
8396
8397 * builtins.c (expand_builtin_setjmp_receiver): Update call of
8398 get_arg_pointer_save_area.
8399 * expr.c (init_expr): Just clear out rtl.expr.
8400 * function.c (free_after_compilation): Clear out whole RTL structure.
8401 (get_func_frame_size): Merge into ...
8402 (get_frame_size): ... this one.
8403 (assign_stack_local_1): Merge into ...
8404 (assign_stack_local): ... this one.
8405 (expand_function_end): Update call of get_arg_pointer_save_area.
8406 (get_art_pointer_save_area): Remove cfun argument.
8407 * function.h (emit_status): regno_pointer_align does not need length
8408 attribute. Move x_regno_reg_rtx to ...
8409 (regno_reg_rtx): ... new global array.
8410 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
8411 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
8412 apply_args_value, forced_labels, stack_pointer_delta):
8413 Update accestors.
8414 (struct varasm_status): Move here from varasm.c
8415 (struct rtl_data): New. Move here some fields from struct function.
8416 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
8417 frame_offset, stack_check_probe_note, arg_pointer_save_area,
8418 used_temp_slots avail_temp_slots, temp_slot_level,
8419 nonlocal_goto_handler_labels): Update accesstors.
8420 (rtl): New global variable.
8421 (struct function): Move some fileds to rtl_data.
8422 (get_arg_pointer_save_area): Update prototype.
8423 * emit-rtl.c (rtl): Declare.
8424 (regno_reg_rtx): Declare.
8425 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
8426 Update.
8427 (gen_reg_rtx): Update.
8428 (init_virtual_regs): Do not tate emit_status argument.
8429 (init_emit): Do not allocate emit.
8430 * varasm.c (varasm_statuc): Move to function.h.
8431 (n_deferred_constatns): Update accestor.
8432 (init_varasm_status): Do not allocate varasm_status.
8433 (force_const_mem, get_pool_size, output_constant_pool): Update.
8434 * stmt.c (force_label_rtx): Do not use x_ prefixes.
8435 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
8436
8437 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
8438
8439 PR rtl-optimization/35729
8440 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
8441 references.
8442
8443 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
8444
8445 PR target/32000
8446 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
8447 load/store if memory is unaligned.
8448 (*movti_rex64): Likewise.
8449
8450 * config/i386/predicates.md (misaligned_operand): New.
8451
8452 2008-03-31 Andrew Pinski <pinskia@gmail.com>
8453
8454 PR tree-opt/35431
8455 * tree-ssa-phiopt.c (conditional_replacement): Return early for
8456 complex types.
8457
8458 2008-03-31 Jan Beulich <jbeulich@novell.com>
8459
8460 * config/ia64/constraints.md: Add 'j' constraint.
8461 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
8462 (movdi_internal): Likewise.
8463
8464 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
8465
8466 PR c/35748
8467 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
8468
8469 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
8470
8471 PR target/35757
8472 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
8473 proper error message for the third argument on blendpd and
8474 blendps.
8475
8476 * config/i386/sse.md (blendbits): New.
8477 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
8478
8479 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
8480
8481 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
8482
8483 2008-03-30 Richard Guenther <rguenther@suse.de>
8484
8485 PR middle-end/31023
8486 * fold-const.c (fold_sign_changed_comparison): Do leave
8487 conversions to base-types alone.
8488
8489 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
8490
8491 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
8492 the link register if one altivec register is be saved.
8493
8494 2008-03-30 Ben Elliston <bje@au.ibm.com>
8495
8496 * final.c (final_scan_insn): Remove if (0) code.
8497
8498 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
8499
8500 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
8501
8502 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
8503
8504 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
8505 of V4SFmode to ix86_binary_operator_ok.
8506
8507 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
8508
8509 * config/i386/i386.c (override_options): Initialize
8510 ix86_veclib_handler to ix86_veclibabi_svml when
8511 -mveclibabi=svml is used.
8512 (ix86_veclibabi_svml): New function for SVML ABI style
8513 vectorization support.
8514 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
8515
8516 2008-03-28 Rafael Espindola <espindola@google.com>
8517
8518 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
8519 (tree_binary_nonnegative_warnv_p): Make it public.
8520 (tree_single_nonnegative_warnv_p): Make it public.
8521 (tree_invalid_nonnegative_warnv_p): Make it public.
8522 (tree_unary_nonzero_warnv_p): Make it public.
8523 (tree_binary_nonzero_warnv_p): Make it public
8524 (tree_single_nonzero_warnv_p): Make it public.
8525 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
8526 (extract_range_from_binary_expr): Split the expr argument.
8527 (extract_range_from_unary_expr): Split the expr argument.
8528 (extract_range_from_comparison): Split the expr argument.
8529 (extract_range_from_expr): Use the new aux functions.
8530 (vrp_evaluate_conditional_warnv): Use
8531 vrp_evaluate_conditional_warnv_with_ops.
8532 * tree.h (tree_unary_nonzero_warnv_p): Declare.
8533 (tree_binary_nonzero_warnv_p): Declare.
8534 (tree_single_nonzero_warnv_p): Declare.
8535 (tree_expr_nonzero_warnv_p): Declare.
8536 (tree_unary_nonnegative_warnv_p): Declare.
8537 (tree_binary_nonnegative_warnv_p): Declare.
8538 (tree_single_nonnegative_warnv_p): Declare.
8539 (tree_invalid_nonnegative_warnv_p): Declare.
8540
8541 2008-03-28 Richard Guenther <rguenther@suse.de>
8542
8543 PR tree-optimization/30317
8544 PR tree-optimization/30911
8545 PR tree-optimization/34793
8546 * tree-vrp.c (set_and_canonicalize_value_range): New function.
8547 (struct assert_locus_d): New member EXPR.
8548 (register_new_assert_for): Add EXPR parameter to support
8549 ASSERT_EXPR <name, expr OP limit>.
8550 (register_edge_assert_for_1): Adjust callers.
8551 (find_assert_locations): Likewise.
8552 (process_assert_insertions_for): Build condition from expression.
8553 (extract_range_from_assert): Handle ASSERT_EXPRs
8554 of the form ASSERT_EXPR <name, expr OP limit>.
8555 (register_edge_assert_for_2): New helper registering
8556 asserts for comparisons. Recognize range tests of the form
8557 (unsigned)i - CST1 OP CST2.
8558 (register_edge_assert_for_1): Use it.
8559 (register_edge_assert_for): Likewise.
8560 (needs_overflow_infinity): Integer sub-types
8561 do not need overflow infinities.
8562 (vrp_val_is_max): The extreme values of integer sub-types
8563 are those of the base type.
8564 (vrp_val_is_min): Likewise.
8565 * tree.def (ASSERT_EXPR): Document extra allowed conditional
8566 expressions.
8567
8568 2008-03-28 Nick Clifton <nickc@redhat.com>
8569
8570 PR target/31110
8571 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
8572 Return GENERAL_REGS for stack adjustment reloads.
8573
8574 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
8575
8576 PR target/31334
8577 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
8578 const_vector when all the vectors are constant.
8579
8580 2008-03-27 Bob Wilson <bob.wilson@acm.org>
8581
8582 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
8583 comparisons.
8584 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
8585 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
8586 (scc_sf): New.
8587 (s<code>_sf): Use new scc_sf attribute for opcode names.
8588
8589 2008-03-27 Tom Tromey <tromey@redhat.com>
8590
8591 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
8592 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
8593 config/spu/t-spu-elf, config/i386/t-interix,
8594 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
8595 config/i386/x-darwin, config/i386/x-mingw32,
8596 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
8597 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
8598 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
8599 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
8600 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
8601 config/rs6000/x-darwin, config/rs6000/t-rs6000,
8602 config/score/t-score-elf, config/arm/t-strongarm-pe,
8603 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
8604 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
8605 Revert automatic dependency patch.
8606
8607 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
8608
8609 PR target/35657
8610 * config/i386/i386.c (ix86_function_arg_boundary): Align
8611 decimal floating point to its natural boundary.
8612
8613 2008-03-27 Richard Guenther <rguenther@suse.de>
8614
8615 PR middle-end/35716
8616 * fold-const.c (fold_comparison): Restrict distinct decl
8617 comparison folding to VAR_DECLs and PARM_DECLs. Do not
8618 solely rely on operand_equal_p.
8619
8620 2008-03-27 Richard Guenther <rguenther@suse.de>
8621
8622 PR c/32511
8623 * c-common.c (handle_weak_attribute): Reject combination of
8624 weak and inline.
8625
8626 2008-03-27 Richard Guenther <rguenther@suse.de>
8627
8628 PR tree-optimization/32810
8629 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
8630 conversions from DECL_INITIAL.
8631 (fold_const_aggregate_ref): Likewise from constructor elements.
8632
8633 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
8634
8635 * tree-affine.h (aff_combination_expand): Declare.
8636 (get_inner_reference_aff): Likewise.
8637 * tree-affine.c (aff_combination_expand): Split out from
8638 tree_to_aff_combination_expand.
8639 (get_inner_reference_aff): New function.
8640 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
8641 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
8642 (struct lim_aux_data): sm_done field removed.
8643 (mem_ref_loc_p, mem_ref_locs_p): New types.
8644 (struct mem_ref): Added id, stored, accesses_in_loop,
8645 indep_loop, dep_loop, indep_ref, dep_ref fields.
8646 Removed is_stored, locs and next fields.
8647 (memory_accesses): New variable.
8648 (movement_possibility): Do not allow moving statements
8649 that store to memory.
8650 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
8651 New functions.
8652 (determine_max_movement): For statements with memory references,
8653 find the outermost loop in that the reference is independent.
8654 (move_computations_stmt): Mark the virtual operands for renaming.
8655 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
8656 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
8657 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
8658 add_vop_ref_mapping, create_vop_ref_mapping_loop,
8659 create_vop_ref_mapping, analyze_memory_references,
8660 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
8661 get_all_locs_in_loop, ref_always_accessed_p,
8662 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
8663 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
8664 store_motion_loop, store_motion): New functions.
8665 (struct vop_to_refs_elt): New type.
8666 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
8667 memref_hash, memref_eq, hoist_memory_references): Rewritten.
8668 (schedule_sm): Replaced by...
8669 (execute_sm): ... this.
8670 (determine_lsm_ref, hoist_memory_references,
8671 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
8672 find_more_ref_vops, free_mem_ref, free_mem_refs,
8673 determine_lsm_loop, determine_lsm): Removed.
8674 (tree_ssa_lim_finalize): Free data structures used by store motion.
8675 (tree_ssa_lim): Call analyze_memory_references. Use
8676 store_motion instead of determine_lsm.
8677
8678 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
8679
8680 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
8681 rename tmake_file to m68hc11/t-m68hc11.
8682 (mcore): Set inhibit_libc to true.
8683 * config.host (alpha*-dec-*vms*): Set extra_programs.
8684 (interix3*): Don't use host_xmake_file.
8685 * configure.ac: Let config.gcc override inhibit_libc.
8686 * configure: Regenerate.
8687
8688 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
8689 * config/t-openbsd-thread: Remove commented out lines.
8690
8691 * config/x-interix: Remove.
8692
8693 * config/m68hc11/t-m68hc11-gas: Rename to...
8694 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
8695
8696 * config/mcore/t-mcore: Remove T_CFLAGS.
8697 * config/mcore/t-mcore-pe: Likewise.
8698
8699 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
8700
8701 * configure.ac: Replace custom __GNU_SOURCE test with
8702 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
8703 * aclocal.m4: Regenerate.
8704 * configure: Regenerate.
8705 * config.in: Regenerate.
8706
8707 2008-03-27 Richard Guenther <rguenther@suse.de>
8708
8709 * fold-const.c (target.h): Include.
8710 (fold_comparison): Fold comparison of addresses of decls
8711 that bind locally or of constants. Consolidate address folding code.
8712 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
8713 results from fold_binary_to_constant.
8714 (compare_values_warnv): Likewise.
8715
8716 2008-03-27 Andrew Pinski <pinskia@gmail.com>
8717
8718 PR middle-end/35429
8719 * fold-const.c (fold_truthop): Check for integeral types when folding
8720 a == 0 && b == 0 and a != 0 || b != 0 .
8721
8722 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
8723
8724 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
8725
8726 2008-03-26 Andreas Schwab <schwab@suse.de>
8727
8728 * doc/invoke.texi: Fix use of @item vs. @itemx.
8729
8730 2008-03-26 Tom Tromey <tromey@redhat.com>
8731
8732 * Makefile.in (build/gensupport.o, build/print-rtl.o,
8733 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
8734 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
8735 build/gencodes.o, build/genconditions.o, build/genconfig.o,
8736 build/genconstants.o, build/genemit.o, build/genextract.o,
8737 build/genflags.o, build/genmddeps.o, build/genopinit.o,
8738 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
8739 options.h.
8740
8741 2008-03-26 Richard Guenther <rguenther@suse.de>
8742
8743 Revert
8744 2008-03-26 Richard Guenther <rguenther@suse.de>
8745
8746 * fold-const.c (target.h): Include.
8747 (fold_comparison): Fold comparison of addresses of two decls
8748 that bind locally. Consolidate address folding code.
8749
8750 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8751
8752 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
8753 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
8754 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
8755 dconstsqrt2, dconstthird, dconste and/or dconst10.
8756 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
8757 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
8758 dconstsqrt2, dconste): Delete.
8759 (init_emit_once): Likewise. Simplify initializing dconstm1.
8760 Constify variable.
8761 * real.c (get_real_const): New.
8762 * real.h (dconst3, dconst10, dconstm2, dconstthird,
8763 dconstsqrt2, dconste): Delete.
8764 (real_value_const, get_real_const): New.
8765
8766 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
8767
8768 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
8769
8770 * config/i386/i386.c (ix86_function_arg_boundary): Check
8771 BIGGEST_ALIGNMENT instead of 128.
8772 (setup_incoming_varargs_64): Likewise.
8773
8774 2008-03-26 Tom Tromey <tromey@redhat.com>
8775
8776 * Makefile.in (DEPFILES): Add missing '/'.
8777
8778 2008-03-26 Richard Guenther <rguenther@suse.de>
8779
8780 * fold-const.c (target.h): Include.
8781 (fold_comparison): Fold comparison of addresses of two decls
8782 that bind locally. Consolidate address folding code.
8783
8784 2008-03-26 Nick Clifton <nickc@redhat.com>
8785
8786 PR target/31232
8787 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
8788 not allow INT+INT as a legitimate addressing mode.
8789
8790 2008-03-26 Richard Guenther <rguenther@suse.de>
8791
8792 * tree-flow.h (widen_bitfield): Remove declaration.
8793 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
8794 (widen_bitfield): Remove function.
8795 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
8796 code.
8797
8798 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
8799
8800 PR target/31558
8801 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
8802 error_mark_node's.
8803
8804 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
8805
8806 PR rtl-optimization/35232
8807 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
8808 (forget_old_reloads_1, forget_marked_reloads): Don't clear
8809 reg_reloaded_call_part_clobbered here.
8810 (reload_regs_reach_end_p): New function.
8811 (reload_reg_rtx_for_input): New variable.
8812 (reload_reg_rtx_for_output): Likewise.
8813 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
8814 when reassigning a pseudo register. Load reloadreg from
8815 reload_reg_rtx_for_input, moving the mode and register
8816 calculation to...
8817 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
8818 instead of the original when deciding whether an input reload
8819 would be a no-op or whether an output reload can be deleted.
8820 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
8821 when setting up new_spill_reg_store. Load it from
8822 reload_reg_rtx_for_output, moving the mode and register
8823 calculation to...
8824 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
8825 instead of the original when deciding whether an output reload
8826 would be a no-op. Do the same when modifying insn notes.
8827 Use rtx_equal_p instead of == to compare the registers.
8828 (inherit_piecemeal_p): Take a mode and two register numbers
8829 as argument.
8830 (emit_reload_insns): Clear new_spill_reg_store for every hard
8831 register in the reload register. Remove spill registers
8832 from reg_reloaded_valid before considering whether to record
8833 inheritance information for them. Use reload_reg_rtx_for_output
8834 instead of reg_rtx when recording output reloads. Use
8835 reload_reg_rtx_for_input instead of reg_rtx when recording
8836 input reloads. Set or clear reg_reloaded_call_part_clobbered
8837 at the same time as setting reg_reloaded_valid.
8838 (delete_output_reload): Add a new_reload_reg parameter and use it
8839 instead of rld[j].reg_rtx.
8840 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
8841 calls accordingly.
8842
8843 2008-03-25 Tom Tromey <tromey@redhat.com>
8844
8845 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
8846 (build/genattr.o): Likewise.
8847 (build/genattrtab.o): Likewise.
8848 (build/gencodes.o): Likewise.
8849 (build/genconfig.o): Likewise.
8850 (build/genconstants.o): Likewise.
8851 (build/genemit.o): Likewise.
8852 (build/genextract.o): Likewise.
8853 (build/genflags.o): Likewise.
8854
8855 2008-03-25 Bob Wilson <bob.wilson@acm.org>
8856
8857 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
8858 instead of size_int for integer types.
8859 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
8860 to match type of MINUS_EXPR.
8861
8862 2008-03-25 Tom Tromey <tromey@redhat.com>
8863
8864 * configure: Rebuilt.
8865 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
8866 Makefile.
8867
8868 2008-03-25 Tom Tromey <tromey@redhat.com>
8869
8870 * config/x-solaris (host-solaris.o): Update.
8871 * config/x-linux (host-linux.o): Update.
8872 * config/x-hpux (host-hpux.o): Update.
8873 * config/x-darwin (host-darwin.o): Update.
8874 * config/v850/t-v850e (v850-c.o): Update.
8875 * config/v850/t-v850 (v850-c.o): Update.
8876 * config/t-vxworks (vxworks.o): Update.
8877 * config/t-sol2 (sol2-c.o, sol2.o): Update.
8878 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
8879 * config/spu/t-spu-elf (spu-c.o): Update.
8880 (spu.o): Remove.
8881 * config/sh/t-symbian (sh-c.o): Update.
8882 (symbian.o): Update.
8883 * config/sh/t-sh (sh-c.o): Update.
8884 * config/score/t-score-elf (score7.o, score3.o): Update.
8885 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
8886 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
8887 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
8888 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
8889 (rs6000.o): Remove.
8890 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
8891 * config/m32c/t-m32c (m32c-pragma.o): Update.
8892 * config/ia64/t-ia64 (ia64-c.o): Update.
8893 * config/i386/x-mingw32 (host-mingw32.o): Update.
8894 * config/i386/x-i386 (driver-i386.o): Update.
8895 * config/i386/x-darwin (host-i386-darwin.o): Update.
8896 * config/i386/x-cygwin (host-cygwin.o): Update.
8897 * config/i386/t-nwld (nwld.o): Update.
8898 * config/i386/t-netware (netware.o): Update.
8899 * config/i386/t-interix (winnt.o): Update.
8900 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
8901 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
8902 msformat-c.o): Update.
8903 * config/bfin/t-bfin-linux (generated_files): Add
8904 linux-sysroot-suffix.h.
8905 * config/arm/t-wince-pe (pe.o): Update.
8906 * config/arm/t-strongarm-pe (pe.o): Update.
8907 * config/arm/t-pe (pe.o): Update.
8908 * config/arm/t-arm (arm-c.o): Update.
8909 * doc/install.texi (Prerequisites): Require make 3.80.
8910 * Makefile.in: Remove .o targets.
8911 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
8912 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
8913 (simple_generated_h, simple_generated_c): Move earlier.
8914 (generated_files): New variable.
8915 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
8916 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
8917 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
8918 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
8919 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
8920 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
8921 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
8922 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
8923 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
8924 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
8925 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
8926 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
8927 (.c.o): Remove.
8928 (COMPILE.base, COMPILE): New variables.
8929 (%.o): New pattern rule.
8930 (ALL_HOST_OBJS): New variable.
8931 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
8932 (dummy-checksum.o, cc1-checksum.o): Remove.
8933 (DRIVER_SHLIB): New variable.
8934 (DRIVER_DEFINES): Use it.
8935 (gencondmd.c): Move out of build/.
8936 (s-conditions): Update.
8937 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
8938 (ALL_BUILD_OBJS): Likewise.
8939 (build/%.o): Use BUILDCOMPILE.
8940 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
8941 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
8942 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
8943 build/gencheck.o, build/gencodes.o, build/genconditions.o,
8944 build/genconfig.o, build/genconstants.o, build/genemit.o,
8945 build/genextract.o, build/genflags.o, build/genmddeps.o,
8946 build/genopinit.o, build/genoutput.o, build/genpeep.o,
8947 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
8948 build/gen-protos.o, build/scan.o, build/fix-header.o,
8949 build/scan-decls.o): Simplify.
8950 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
8951 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
8952 prefix.o, toplev.o): Reduce to variable setting.
8953 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
8954 ($(out_object_file), gcc-options.o): New targets.
8955 ($(ALL_HOST_OBJS)): New target. Include dependency files.
8956 * configure: Rebuilt.
8957 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
8958 * doc/sourcebuild.texi (Front End Directory): Document new variable.
8959
8960 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
8961
8962 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
8963 complain when we hit an error, return ERROR_MARK_NODE.
8964
8965 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
8966
8967 * config/sh/constraints.md (Pso, Psz): New constraints.
8968 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
8969 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
8970
8971 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
8972
8973 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
8974 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
8975
8976 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
8977
8978 * config/sh/sh.md (prefetch): Add condition for SH2A target.
8979 (prefetch_sh2a): New.
8980
8981 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
8982 Naveen.H.S <naveen.hs@kpitcummins.com>
8983
8984 * config/sh/constraints.md (I28): New constraint.
8985 * config/sh/sh.c (broken_move): Add support for movi20s.
8986 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
8987
8988 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
8989 Jayant Sonar <Jayant.sonar@kpitcummins.com>
8990 Naveen.H.S <naveen.hs@kpitcummins.com>
8991
8992 * config/sh/sh.c (SH_ATTRIBUTES): Define.
8993 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
8994 (print_operand): Handle resbank in %@ operand code.
8995 (sh_encode_section_info): New.
8996 (push_regs): Add conditions for resbank.
8997 (sh_expand_epilogue): Likewise.
8998 (sh_insert_attributes): Likewise.
8999 (sh_attribute_table): Likewise.
9000 (sh_handle_resbank_handler_attribute): New.
9001 (sh2a_handle_function_vector_handler_attribute): New.
9002 (sh2a_is_function_vector_call): New.
9003 (sh2a_get_function_vector_number): New.
9004 (sh2a_function_vector_p): New.
9005 (sh_cfun_resbank_handler_p): New.
9006 * config/sh/sh.md (calli): Emit jsr/n if possible.
9007 (calli_tbr_rel): New.
9008 (calli_pcrel): Emit jsr/n if possible.
9009 (return_i): Emit rts/n if possible.
9010 (call_valuei_tbr_rel): New.
9011 (call_valuei_pcrel): Add condition for SH2A target.
9012 (call_value): Likewise.
9013 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
9014 (sh2a_get_function_vector_number): Likewise.
9015 (sh2a_is_function_vector_call): Likewise.
9016 * doc/extend.texi: Document TBR relative addressing of SH2A.
9017 (resbank): Add description for SH2A.
9018
9019 2008-03-24 Richard Guenther <rguenther@suse.de>
9020
9021 PR c/22371
9022 * gimplify.c (gimplify_modify_expr): For frontend type-correct
9023 pointer assignments change conversions according to middle-end rules.
9024 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
9025 * configure.ac: Include type checking in yes.
9026 * configure: Regenerate.
9027
9028 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9029
9030 * diagnostic.c (diagnostic_count_diagnostic): Delete.
9031 (diagnostic_report_diagnostic): Update. Handle ICEs here.
9032
9033 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
9034
9035 * gthr-vxworks.h (UNUSED): Define.
9036
9037 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
9038
9039 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
9040
9041 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
9042
9043 * doc/extend.texi (Function Attributes): Add missing comma in the
9044 example of the "alloc_size" attribute.
9045
9046 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
9047
9048 Revert:
9049 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
9050
9051 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
9052 32bit host.
9053
9054 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
9055
9056 PR target/35496
9057 * stor-layout.c (update_alignment_for_field): Set minimum alignment
9058 of the underlying type of a MS bitfield layout to the natural
9059 alignment of the type.
9060
9061 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
9062
9063 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
9064 to their natural alignment to avoid store forwarding stalls.
9065
9066 2008-03-22 Richard Guenther <rguenther@suse.de>
9067
9068 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
9069 For PHI nodes verify the address is invariant.
9070 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
9071 (get_symbol_constant_value): Use is_gimple_min_invariant.
9072 (maybe_fold_stmt_indirect): Likewise.
9073
9074 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
9075
9076 PR rtl-optimization/33927
9077 * Makefile.in (dse.o): Depend on $(TM_P_H).
9078 * expr.h (extract_low_bits): Declare.
9079 * expmed.c (extract_low_bits): New function.
9080 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
9081 * dse.c: Include tm_p.h.
9082 (find_shift_sequence): Remove the read_reg argument and return the
9083 read value. Emit the instructions instead of returning them.
9084 Iterate on new_mode rather than calculating it each time.
9085 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
9086 source to NEW_MODE and extract_low_bits to convert the shifted
9087 value to READ_MODE.
9088 (replace_read): Allow the load and store to have different mode
9089 classes. Use extract_low_bits when SHIFT == 0. Create the shift
9090 or extraction instructions before trying the replacement. Update
9091 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
9092
9093 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
9094
9095 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
9096 to their natural alignment to avoid store forwarding stalls.
9097
9098 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
9099
9100 PR target/27946
9101 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
9102 encouraging but not allowing gprs for input;
9103 change the input constraint to !f#r.
9104 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
9105 gprs for output;
9106 change the output constraint to !f#r.
9107
9108 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
9109
9110 PR target/13958
9111 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
9112 corresponding post-reload splitters.
9113 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
9114 when x87 FP math is selected.
9115 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
9116 New function prototype.
9117 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
9118 unreachable function to ease macroization of insn patterns.
9119
9120 2008-03-21 Martin Jambor <mjambor@suse.cz>
9121
9122 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
9123 reference dumps if ddr is NULL or dependence is unknown.
9124
9125 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
9126
9127 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
9128 unsigned extension into account.
9129 (ATOMIC_COMPARE_AND_SWAP): Likewise.
9130 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
9131 Do computations on a scratch register.
9132
9133 2008-03-21 Richard Guenther <rguenther@suse.de>
9134
9135 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9136 Use is_gimple_min_invariant instead of TREE_INVARIANT.
9137 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
9138 * tree-ssa-dom.c (record_equality): Likewise.
9139 * tree-inline.c (copy_body_r): Likewise.
9140 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
9141 TREE_INVARIANT.
9142
9143 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
9144
9145 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
9146 as 'delete_unused' argument.
9147
9148 2008-03-20 Richard Guenther <rguenther@suse.de>
9149
9150 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
9151 special casing of constant qualifiers.
9152 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
9153 care about them in general.
9154 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
9155 regardless of their type.
9156 (fold_stmt_r): Forcefully fold *& if we end up with that.
9157
9158 2008-03-20 Paul Brook <paul@codesourcery.com>
9159
9160 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
9161 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
9162 linker flags.
9163 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
9164 definition.
9165 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
9166 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
9167
9168 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
9169
9170 * common.opt (Wmudflap): New option.
9171 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
9172 (mx_register_decls): Likewise.
9173 (mudflap_finish_file): Likewise.
9174 * doc/invoke.texi: Document -Wno-mudflap.
9175
9176 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
9177
9178 * c-format.c (replace_format_name_to_system_name): New.
9179 (cmp_attribs): New.
9180 (convert_format_name_to_system_name): New.
9181 (decode_format_attr): Add use of convert_format_name_to_system_name.
9182 (format_types_orig): Add gnu_ prefix to names.
9183 (check_format_info_main): Special treating of \0 escaped names for
9184 supporting multi-character format specifiers as I32, I64.
9185 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
9186 (gnu_target_overrides_format_attributes): New.
9187 * c-format.h: Add structure target_ovr_attr to hold
9188 system specific formatter names.
9189 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
9190 msformat-c.o file to c_target_objs and cxx_target_objs.
9191 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
9192 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
9193 (TARGET_N_FORMAT_TYPES): New.
9194 * config/i386/msformat-c.c: New.
9195 * config/i386/t-cygming: Add build rule for msformat-c.o.
9196 * doc/extend.texi: Add new format names gnu_* and ms_* and
9197 further details.
9198 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
9199
9200 2008-03-20 Ira Rosen <irar@il.ibm.com>
9201
9202 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
9203 optimizations turned on under -O3.
9204 (ftree-vectorize): Add that the flag is turned on with -O3.
9205
9206 2008-03-20 Ben Elliston <bje@au.ibm.com>
9207
9208 * regmove.c (try_auto_increment): Fix spelling error in comment.
9209 * final.c (final_scan_insn): Likewise.
9210
9211 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
9212
9213 PR target/14552
9214 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
9215 allocator preferences for "y" and "r" class registers.
9216 ("*mov<mode>_internal"): Ditto.
9217 ("*movv2sf_internal_rex64"): Ditto.
9218 ("*movv2sf_internal"): Ditto.
9219
9220 2008-03-19 Michael Matz <matz@suse.de>
9221
9222 PR middle-end/35616
9223 * calls.c (expand_call): Check overlap of arguments with call
9224 address for sibcalls.
9225
9226 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
9227
9228 PR target/35496
9229 * stor-layout.c (update_alignment_for_field): Set minimum alignment
9230 of the underlying type of a MS bitfield layout to the natural
9231 alignment of the type.
9232
9233 2008-03-19 Jan Hubicka <jh@suse.cz>
9234
9235 PR other/35094
9236 * toplev.c (decode_d_option): Handle all CPP flags.
9237 * tree-vrp.c: Update tree_pass descriptors.
9238 * regrename.c: Update tree_pass descriptors.
9239 * fwprop.c: Update tree_pass descriptors.
9240 * doc/invoke.texi: Remove documentation of dropped -d? flags.
9241 * tree-into-ssa.c: Update tree_pass descriptors.
9242 * tree-dump.c: Update tree_pass descriptors.
9243 * tree-complex.c: Update tree_pass descriptors.
9244 * tree-dump.h: Update tree_pass descriptors.
9245 * see.c: Update tree_pass descriptors.
9246 * cgraphbuild.c: Update tree_pass descriptors.
9247 * tracer.c: Update tree_pass descriptors.
9248 * tree-loop-distribution.c: Update tree_pass descriptors.
9249 * cgraph.c: Update tree_pass descriptors.
9250 * postreload-gcse.c: Update tree_pass descriptors.
9251 * postreload.c: Update tree_pass descriptors.
9252 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
9253 * tree-tailcall.c: Update tree_pass descriptors.
9254 * tree-pass.h (tree_opt_pass): Rename to ...
9255 (opt_pass) ... this one; add "type" field and remove letter field.
9256 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
9257 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
9258 all_lowering_passes): Update declaration.
9259 * ipa-cp.c: Update tree_pass descriptors.
9260 * final.c: Update tree_pass descriptors.
9261 * omp-low.c: Update tree_pass descriptors.
9262 * tree-ssa-dse.c: Update tree_pass descriptors.
9263 * ipa-reference.c: Update tree_pass descriptors.
9264 * tree-ssa-uncprop.c: Update tree_pass descriptors.
9265 * auto-inc-dec.c: Update tree_pass descriptors.
9266 * reorg.c: Update tree_pass descriptors.
9267 * cgraphunit.c: Update tree_pass descriptors.
9268 * tree-ssa-copyrename.c: Update tree_pass descriptors.
9269 * tree-ssa-ccp.c: Update tree_pass descriptors.
9270 * df-core.c: Update tree_pass descriptors.
9271 * mode-switching.c: Update tree_pass descriptors.
9272 * tree-nomudflap.c: Update tree_pass descriptors.
9273 * modulo-sched.c: Update tree_pass descriptors.
9274 * ipa-pure-const.c: Update tree_pass descriptors.
9275 * cse.c: Update tree_pass descriptors.
9276 * web.c: Update tree_pass descriptors.
9277 * tree-stdarg.c: Update tree_pass descriptors.
9278 * tree-ssa-math-opts.c: Update tree_pass descriptors.
9279 * tree-ssa-dom.c: Update tree_pass descriptors.
9280 * tree-nrv.c: Update tree_pass descriptors.
9281 * tree-ssa-alias.c: Update tree_pass descriptors.
9282 * loop-init.c: Update tree_pass descriptors.
9283 * gimple-low.c: Update tree_pass descriptors.
9284 * ipa-inline.c: Update tree_pass descriptors.
9285 * tree-ssa-sink.c: Update tree_pass descriptors.
9286 * global.c: Update tree_pass descriptors.
9287 * ifcvt.c: Update tree_pass descriptors.
9288 * jump.c: Update tree_pass descriptors.
9289 * predict.c: Update tree_pass descriptors.
9290 * tree-ssa-loop.c: Update tree_pass descriptors.
9291 * recog.c: Update tree_pass descriptors.
9292 * dse.c: Update tree_pass descriptors.
9293 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
9294 * tree-eh.c: Update tree_pass descriptors.
9295 * regmove.c: Update tree_pass descriptors.
9296 * local-alloc.c
9297 * function.c: Update tree_pass descriptors.
9298 * tree-vectorizer.c: Update tree_pass descriptors.
9299 * gcse.c: Update tree_pass descriptors.
9300 * ipa-type-escape.c: Update tree_pass descriptors.
9301 * tree-if-conv.c: Update tree_pass descriptors.
9302 * init-regs.c: Update tree_pass descriptors.
9303 * ipa.c: Update tree_pass descriptors.
9304 * tree-ssa-phiopt.c: Update tree_pass descriptors.
9305 * rtl-factoring.c: Update tree_pass descriptors.
9306 * lower-subreg.c: Update tree_pass descriptors.
9307 * bt-load.c: Update tree_pass descriptors.
9308 * tree-dfa.c: Update tree_pass descriptors.
9309 * except.c: Update tree_pass descriptors.
9310 * emit-rtl.c: Update tree_pass descriptors.
9311 * cfgexpand.c: Update tree_pass descriptors.
9312 * tree-cfgcleanup.c: Update tree_pass descriptors.
9313 * cfgcleanup.c: Update tree_pass descriptors.
9314 * tree-ssa-pre.c: Update tree_pass descriptors.
9315 * tree-sra.c: Update tree_pass descriptors.
9316 * tree-mudflap.c: Update tree_pass descriptors.
9317 * tree-ssa-copy.c: Update tree_pass descriptors.
9318 * cfglayout.c: Update tree_pass descriptors.
9319 * tree-ssa-forwprop.c: Update tree_pass descriptors.
9320 * tree-ssa-dce.c: Update tree_pass descriptors.
9321 * tree-ssa.c: Update tree_pass descriptors.
9322 * regclass.c: Update tree_pass descriptors.
9323 * integrate.c: Update tree_pass descriptors.
9324 * tree-optimize.c: Update tree_pass descriptors.
9325 * tree-ssa-phiprop.c: Update tree_pass descriptors.
9326 * tree-object-size.c: Update tree_pass descriptors.
9327 * combine.c: Update tree_pass descriptors.
9328 * tree-outof-ssa.c: Update tree_pass descriptors.
9329 * bb-reorder.c: Update tree_pass descriptors.
9330 * stack-ptr-mod.c: Update tree_pass descriptors.
9331 * var-tracking.c: Update tree_pass descriptors.
9332 * tree-profile.c: Update tree_pass descriptors.
9333 * tree-vect-generic.c: Update tree_pass descriptors.
9334 * reg-stack.c: Update tree_pass descriptors.
9335 * sched-rgn.c: Update tree_pass descriptors.
9336 * tree-ssa-structalias.c: Update tree_pass descriptors.
9337 * tree-cfg.c: Update tree_pass descriptors.
9338 * passes.c (current_pass): Update declaration.
9339 (finish_optimization_passes): Update.
9340 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
9341 (register_one_dump_file, register_dump_files_1, next_pass_1):
9342 Update arguments.
9343 (init_optimization_passes): Update handling of new types.
9344 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
9345 * ipa-struct-reorg.c: Update tree_pass descriptors.
9346 * tree-ssa-reassoc.c: Update tree_pass descriptors.
9347 * combine-stack-adj.c: Update tree_pass descriptors.
9348 * cfgrtl.c: Update tree_pass descriptors.
9349 * dce.c: Update tree_pass descriptors.
9350 * tree-ssanames.c: Update tree_pass descriptors.
9351
9352 2008-03-19 Richard Guenther <rguenther@suse.de>
9353
9354 PR middle-end/35609
9355 * tree-ssa.c (walk_data): New structure.
9356 (warn_uninitialized_var): If not always_executed warn with "maybe"
9357 instead of "is".
9358 (execute_early_warn_uninitialized): Compute post-dominators.
9359 Initialize always_executed before processing each basic block.
9360
9361 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
9362
9363 PR target/35504
9364 * config/i386/i386.c (x86_this_parameter): Calculate correct location
9365 of "this" pointer when "regparm = N" or "fastcall" is in effect.
9366
9367 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9368
9369 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
9370
9371 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
9372
9373 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
9374 is true.
9375 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
9376 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
9377 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
9378 target after ignore has been set, and move there also the commputation
9379 of subtarget and original_target.
9380 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
9381 (LANG_HOOKS_INITIALIZER): Remove it.
9382 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
9383
9384 2008-03-18 Richard Guenther <rguenther@suse.de>
9385
9386 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
9387 found an expression with constants, note that in the VN for the lhs.
9388 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
9389 fold them to constants if possible. Run cleanup_cfg if done so.
9390 (execute_pre): Return todo.
9391 (do_pre): Likewise.
9392 (execute_fre): Likewise.
9393 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
9394 of constants.
9395 (get_prop_source_stmt): Look through pointer conversions.
9396
9397 2008-03-18 Jan Hubicka <jh@suse.cz>
9398
9399 * tree-pretty-print.c: Include predict.h.
9400 (dump_generic_node): Dump predictor.
9401 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
9402 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
9403 * gimple-low.c (lower_stmt): Likewise.
9404 * expr.c (expand_expr_real): Likewise.
9405 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
9406 them.
9407 (build_predict_expr, build_predict_expr): New.
9408 * predict.h (predictor_name, build_predict_expr): Update.
9409 * c-typeck.c (c_finish_bc_stmt): Add prediction.
9410 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
9411 * predict.def (PRED_CONTINUE): Update hitrate.
9412 * tree.def (PREDICT_EXPR): Define.
9413 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
9414 do not handle BIND_EXPR.
9415 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
9416 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
9417 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
9418 operands.
9419
9420 2008-03-18 Michael Matz <matz@suse.de>
9421
9422 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
9423
9424 2008-03-18 Richard Guenther <rguenther@suse.de>
9425
9426 * tree-gimple.h (is_gimple_invariant_address): Declare.
9427 (is_gimple_constant): Likewise.
9428 * tree-gimple.c (is_gimple_constant): New function.
9429 (is_gimple_invariant_address): Likewise.
9430 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
9431 and is_gimple_invariant_address.
9432 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
9433 previous change.
9434 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
9435 an addressable base.
9436
9437 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9438
9439 PR middle-end/35611
9440 * gimplify.c (gimplify_expr): Gimplify second operand of
9441 OMP_ATOMIC_LOAD.
9442
9443 2008-03-17 Richard Guenther <rguenther@suse.de>
9444
9445 PR tree-optimization/19637
9446 * fold-const.c (fold_unary): Remove restrictions of removing
9447 intermediate pointer-conversions (P2)(P1)P0.
9448 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
9449 conversion to void pointer.
9450 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
9451
9452 2008-03-16 James E. Wilson <wilson@tuliptree.org>
9453
9454 PR debug/31510
9455 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
9456 emulated thread local variables.
9457
9458 2008-03-16 Richard Guenther <rguenther@suse.de>
9459
9460 PR middle-end/35607
9461 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9462 expand TREE_INVARIANT operations that are not gimple invariant.
9463
9464 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
9465
9466 * doc/extend.texi (Alignment): Say that the ABI controls
9467 the __alignof__ for non-strict-alignment targets rather
9468 than being a recommendation.
9469
9470 2008-03-15 Paul Brook <paul@codesourcery.com>
9471
9472 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
9473 annotations.
9474 (arm_output_fn_unwind): Mark functions that can not be unwound.
9475
9476 2008-03-15 Paul Brook <paul@codesourcery.com>
9477
9478 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
9479 extension instructions.
9480
9481 2008-03-15 Richard Guenther <rguenther@suse.de>
9482
9483 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
9484 and fold constant aggregate refs.
9485 (fold_const_aggregate_ref): Handle string constants
9486 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
9487 (evaluate_stmt): Simplify now that ccp_fold folds constant
9488 aggregate refs.
9489
9490 2008-03-15 Paul Brook <paul@codesourcery.com>
9491
9492 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
9493 (extzv): Use gen_extzv_t2.
9494 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
9495
9496 2008-03-15 Richard Guenther <rguenther@suse.de>
9497
9498 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
9499 (fold_const_aggregate_ref): Likewise.
9500 (get_value): Return NULL if we don't have any values.
9501 (ccp_finalize): Set const_val to NULL after freeing it.
9502 * tree-flow.h (get_symbol_constant_value): Declare.
9503 (fold_const_aggregate_ref): Likewise.
9504 * tree-ssa-sccvn.c (try_to_simplify): Use them.
9505
9506 2008-03-15 Richard Guenther <rguenther@suse.de>
9507
9508 PR middle-end/35593
9509 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
9510 to not produce negative array indices if not allowed. Add
9511 parameter to indicate that.
9512 (maybe_fold_offset_to_component_ref): Allow negative array
9513 indices only for the first member of a structure.
9514 (maybe_fold_offset_to_reference): Allow negative array indices.
9515 (maybe_fold_stmt_addition): Likewise.
9516
9517 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
9518 Anatoly Sokolov <aesok@post.ru>
9519
9520 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
9521 (avr_arch): Add ARCH_AVR6.
9522 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
9523 (initial_elimination_offset): Initialize and use 'avr_pc_size'
9524 instead of fixed value 2.
9525 (print_operand_address): Use gs() asm specifier instead of pm().
9526 (avr_assemble_integer): (Ditto.).
9527 (avr_output_addr_vec_elt): (Ditto.).
9528 (print_operand): Handle "!" code.
9529 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
9530 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
9531 (AVR_HAVE_EIJMP_EICALL): Define.
9532 (AVR_3_BYTE_PC): Redefine.
9533 (AVR_2_BYTE_PC): (Ditto.).
9534 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
9535 (LINK_SPEC): Add atmega2560 and atmega2561.
9536 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
9537 (crtm2561.o).
9538 * config/avr/avr.md (call_insn): Use eicall instead of icall
9539 for 3 byte PC devices.
9540 (call_value_insn): (Ditto.).
9541 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
9542 (indirect_jump): Use only for for 2 byte PC devices.
9543 (*tablejump): (Ditto.).
9544 (*indirect_jump_avr6): Add insn.
9545 (*tablejump_rjmp): Don't use for 3 byte PC devices.
9546 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
9547 instead of ijmp for 3 byte PC devices.
9548 (__tablejump2__): (Ditto.).
9549 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
9550 (MULITLIB_DIRNAMES): (Ditto.).
9551 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
9552
9553 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
9554
9555 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
9556 "sse2_umulsidi3". Use V1DI mode for operand 0.
9557 ("mmx_psadbw"): Use V1DI mode for operand 0.
9558 * config/i386/i386-modes.def (V1SI): New vector mode.
9559 * config/i386/i386.c (struct builtin_description)
9560 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
9561 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
9562 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
9563 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
9564 v1di_ftype_v8qi_v8qi type.
9565 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
9566
9567 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
9568 __builtin_ia32_pmuludq]: Fix the mode of return value.
9569
9570 2008-03-15 Richard Guenther <rguenther@suse.de>
9571
9572 PR middle-end/35595
9573 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
9574 being a PHI_NODE.
9575
9576 2008-03-14 Bob Wilson <bob.wilson@acm.org>
9577
9578 * doc/invoke.texi (Option Summary, Xtensa Options): Document
9579 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
9580 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
9581 unless TARGET_SERIALIZE_VOLATILE is enabled.
9582 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
9583 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
9584 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
9585
9586 2008-03-14 Richard Guenther <rguenther@suse.de>
9587
9588 PR tree-optimization/34172
9589 * tree-flow.h (refs_may_alias_p): Declare.
9590 (get_single_def_stmt): Likewise.
9591 (get_single_def_stmt_from_phi): Likewise.
9592 (get_single_def_stmt_with_phi): Likewise.
9593 * tree-dfa.c (refs_may_alias_p): New function.
9594 (get_single_def_stmt): Likewise.
9595 (get_single_def_stmt_from_phi): Likewise.
9596 (get_single_def_stmt_with_phi): Likewise.
9597 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
9598 (vn_reference_lookup_1): New helper function.
9599 (vn_reference_lookup): Walk the virtual use-def chain to
9600 continue searching for a match if the def does not alias the
9601 reference we are looking for.
9602
9603 2008-03-14 David Edelsohn <edelsohn@gnu.org>
9604
9605 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
9606 archive and Perzl. Update The Written Word listing.
9607
9608 2008-03-14 Richard Guenther <rguenther@suse.de>
9609
9610 PR tree-optimization/34043
9611 PR tree-optimization/33989
9612 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
9613 when doing FRE.
9614 (bitmap_find_leader): Use extra argument to verify dominance
9615 relationship inside a basic-block.
9616 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
9617 (find_leader_in_sets): Adjust.
9618 (create_component_ref_by_pieces): Take extra argument for
9619 dominance check, handle lookup failures.
9620 (find_or_generate_expression): Likewise.
9621 (create_expression_by_pieces): Likewise.
9622 (insert_into_preds_of_block): Adjust.
9623 (create_value_expr_from): If asked for, verify all operands
9624 are in the blocks AVAIL_OUT set.
9625 (make_values_for_stmt): Check for SSA_NAMEs that are life
9626 over an abnormal edge.
9627 (compute_avail): Remove such check.
9628 (do_SCCVN_insertion): New function.
9629 (eliminate): If we do not find a leader suitable for replacement
9630 insert a replacement expression from SCCVN if available.
9631 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
9632 (struct vn_ssa_aux): Add needs_insertion flag.
9633 * tree-ssa-sccvn.c (may_insert): New global flag.
9634 (copy_reference_ops_from_ref): Value-number union member access
9635 based on its size, not type and member if insertion is allowed.
9636 (visit_reference_op_load): For a weak match from union type
9637 punning lookup a view-converted value and insert a SSA_NAME
9638 for that value if that is not found.
9639 (visit_use): Make dumps shorter. Do not disallow value numbering
9640 SSA_NAMEs that are life over an abnormal edge to constants.
9641 (free_scc_vn): Release inserted SSA_NAMEs.
9642 (run_scc_vn): New flag to specify whether insertion is allowed.
9643 Process SSA_NAMEs in forward order.
9644 * tree-ssa-loop-im.c (for_each_index): Handle invariant
9645 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
9646 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
9647 pointer type to/from integral types that do not change the
9648 precision to regular conversions.
9649
9650 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
9651
9652 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
9653 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
9654 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
9655 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
9656 input arguments and the mode of return value. Built-in functions
9657 that operate on whole 64-bit MMX register now use V1DI mode.
9658
9659 2008-03-13 Alon Dayan <alond@il.ibm.com>
9660 Olga Golovanevsky <olga@il.ibm.com>
9661
9662 PR tree-optimization/35041
9663 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
9664 to locate the right position in a statement.
9665
9666 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
9667
9668 PR target/34000
9669 PR target/35553
9670 * config/i386/xmmintrin.h: Change all static inline functions to
9671 extern inline and add __gnu_inline__ attribute.
9672 * config/i386/bmintrin.h: Ditto.
9673 * config/i386/smmintrin.h: Ditto.
9674 * config/i386/tmmintrin.h: Ditto.
9675 * config/i386/mmintrin-common.h: Ditto.
9676 * config/i386/ammintrin.h: Ditto.
9677 * config/i386/emmintrin.h: Ditto.
9678 * config/i386/pmmintrin.h: Ditto.
9679 * config/i386/mmintrin.h: Ditto.
9680 * config/i386/mm3dnow.h: Ditto.
9681
9682 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9683
9684 PR middle-end/35185
9685 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
9686 (lower_omp_2): New function.
9687 (lower_omp_1, lower_omp): Rewritten.
9688
9689 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
9690
9691 PR 35054
9692 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
9693 with the phrase "Microsoft Windows compilers".
9694 (Push/Pop Macro Pragmas): New subsection. Document
9695 #pragma push_macro and pragma pop_macro.
9696
9697 2008-03-12 Paul Brook <paul@codesourcery.com>
9698
9699 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
9700
9701 2008-03-12 Paul Brook <paul@codesourcery.com>
9702
9703 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
9704 (thumb2_alusi3_short): Exclude PLUS and MINUS.
9705 (thumb2_addsi_shortim): Rename ...
9706 (thumb2_addsi_short): ... to this. Allow register operands.
9707 (thumb2_subsi_short): New pattern.
9708 (thumb2_one_cmplsi2_short,
9709 thumb2_negsi2_short): New patterns and peepholes.
9710
9711 2008-03-12 Paul Brook <paul@codesourcery.com>
9712
9713 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
9714
9715 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
9716
9717 * config/i386/i386.md (int_cond): New code iterator.
9718 (fp_cond): Ditto.
9719 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
9720 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
9721 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
9722 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
9723 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
9724 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
9725 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
9726 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
9727
9728 2008-03-12 Paul Brook <paul@codesourcery.com>
9729
9730 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
9731 instead of {arm,thumb}_compute_save_reg_mask.
9732 (output_return_instruction): Ditto.
9733 (thumb_unexpanded_epilogue): Ditto.
9734 (thumb1_expand_prologue): Ditto.
9735 (thumb1_output_function_prologue): Ditto.
9736 (arm_set_return_address): Ditto.
9737 (thumb_set_return_address): Ditto.
9738 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
9739 regs to achieve stack alignment.
9740 (thumb1_compute_save_reg_mask): Fix compiler warning.
9741 (arm_output_epilogue): Use offsets->saved_regs_mask.
9742 Adjust stack pointer by poping call clobered registers.
9743 (arm_expand_prologue): Use offsets->saved_regs_mask.
9744 Adjust stack pointer by pushing extra registers.
9745 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
9746
9747 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
9748
9749 PR tree-opt/35422
9750 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
9751 conversion to the operands of a multiplication.
9752
9753 2008-03-12 Richard Guenther <rguenther@suse.de>
9754
9755 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
9756 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
9757 * timevar.def (TV_TREE_PHIPROP): Add.
9758 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
9759 pass description. Use TV_TREE_PHIPROP.
9760 * tree-ssa-forwprop.c: Remove phiprop code.
9761
9762 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9763
9764 PR middle-end/35549
9765 * omp-low.c (maybe_lookup_decl): Constify first argument.
9766 (use_pointer_for_field): Change last argument from bool to
9767 omp_context *. Disallow shared copy-in/out in nested
9768 parallel if decl is shared in outer parallel too.
9769 (build_outer_var_ref, scan_sharing_clauses,
9770 lower_rec_input_clauses, lower_copyprivate_clauses,
9771 lower_send_clauses, lower_send_shared_vars): Adjust callers.
9772
9773 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
9774 Ira Rosen <irar@il.ibm.com>
9775
9776 * tree-vectorizer.c (free_stmt_vec_info): New function.
9777 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
9778 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
9779 * tree-vectorizer.h (free_stmt_vec_info): Declare.
9780 * tree-vect-transform.c (vectorizable_conversion): Free
9781 vec_oprnds0 if it was allocated.
9782 (vect_permute_store_chain): Remove unused VECs.
9783 (vectorizable_store): Free VECs that are allocated in the..
9784 function.
9785 (vect_transform_strided_load, vectorizable_load): Likewise.
9786 (vect_remove_stores): Simplify the code.
9787 (vect_transform_loop): Move code to vect_remove_stores().
9788 Call vect_remove_stores() and free_stmt_vec_info().
9789
9790 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9791
9792 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
9793 TARGET_HPUX. Revise comment.
9794 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
9795 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
9796 Use sr4 variant of `be' instruction when not generating PIC code.
9797 (attr_length_call): Adjust for above change.
9798
9799 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
9800
9801 * ipa-reference.c (static_execute): Remove module_statics_const and
9802 associated setting code.
9803
9804 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
9805
9806 PR target/35540
9807 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
9808 predicate for operand 1.
9809 (paritysi2_cmp): Use register_operand predicate for operand 2.
9810 Use earlyclobber modifier for operand 1. Remove support for
9811 memory operands.
9812 (paritydi2_cmp): Use register_operand predicate for operand 3.
9813 Use earlyclobber modifier for operand 1. Remove support for
9814 memory operands.
9815
9816 2008-03-11 Paul Brook <paul@codesourcery.com>
9817 Vladimir Prus <vladimir@codesourcery.com>
9818
9819 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
9820 (arm_compute_save_reg0_reg12_mask): Always
9821 check if register 11 must be saved. Always safe hard frame pointer
9822 when frame_pointer_needeed.
9823 (arm_compute_save_reg_mask): Save IP and PC
9824 only with apcs frames.
9825 (arm_output_epilogue): Adjust Thumb2 codepath to
9826 be also invoked and work for ARM non-apcs frames.
9827 (arm_expand_prologue): Don't bother saving IP
9828 for non-apcs frame, since it's not clobbered by
9829 prologue code. Implement non-apcs frame
9830 layout.
9831
9832 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
9833
9834 PR rtl-optimization/35281
9835 * expr.c (convert_move): Use a new pseudo for the intermediate
9836 from_mode->word_mode result.
9837
9838 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
9839
9840 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
9841 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
9842 * toplev.c (compile_file): Don't call it.
9843
9844 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
9845
9846 PR middle-end/35526
9847 * expr.c (store_expr): Call emit_block_move if the mode
9848 of "temp" RTX is BLKmode.
9849
9850 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
9851 Richard Guenther <rguenther@suse.de>
9852
9853 PR tree-optimization/31358
9854 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
9855 the step with a NULL_TREE.
9856 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
9857 to sizetype if type is a pointer type.
9858 (add_candidate_1): Don't convert the base and step to
9859 the generic type if the orginal type is a pointer type.
9860 (add_iv_value_candidates): Use sizetype for the step
9861 if type is a pointer type.
9862 (cand_value_at): Likewise.
9863 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
9864 for pointer types.
9865 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
9866 Don't convert the tem affine to the type.
9867 (add_elt_to_tree): Use sizetype for the step if a pointer.
9868 Use POINTER_PLUS_EXPR for pointers.
9869 (aff_combination_to_tree): Use sizetype for the step if a
9870 pointer.
9871
9872 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
9873
9874 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
9875 Remove commutativity hint.
9876
9877 2008-03-10 Jakub Jelinek <jakub@redhat.com>
9878
9879 PR c/35438
9880 PR c/35439
9881 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
9882 errorneous type. Check that v is a VAR_DECL.
9883
9884 PR middle-end/35099
9885 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
9886
9887 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
9888
9889 PR tree-optimization/35494
9890 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
9891 may be overriden at link and run time.
9892
9893 2008-03-10 Richard Guenther <rguenther@suse.de>
9894
9895 PR tree-optimization/34677
9896 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
9897 (poolify_tree): Likewise.
9898 (modify_expr_template): Likewise.
9899 (poolify_modify_stmt): Likewise.
9900 (insert_fake_stores): Handle all component-ref style stores
9901 in addition to INDIRECT_REF. Also handle complex types.
9902 Do not poolify the inserted load.
9903 (realify_fake_stores): Do not rebuild the tree but only
9904 make it a SSA_NAME copy.
9905 (init_pre): Remove initialzation of modify_expr_template.
9906 Do not allocate modify_expr_node_pool.
9907 (fini_pre): Do not free modify_expr_node_pool.
9908
9909 2008-03-10 Paul Brook <paul@codesourcery.com>
9910
9911 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
9912 to avoid conflicts.
9913
9914 2008-03-10 Paul Brook <paul@codesourcery.com>
9915 Mark Shinwell <shinwell@codesourcery.com>
9916
9917 * config/arm/cortex-r4.md: New.
9918 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
9919 insn attributes.
9920 * config/arm/arm.md: Include cortex-r4.md.
9921 (insn): Add smmls, sdiv and udiv values.
9922 (generic_sched): Don't use generic scheduling for Cortex-R4.
9923 (arm_issue_rate): New function.
9924 (TARGET_SCHED_ISSUE_RATE): Define.
9925
9926 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
9927
9928 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
9929
9930 2008-03-10 Richard Guenther <rguenther@suse.de>
9931
9932 * tree-ssa-pre.c (get_sccvn_value): Simplify.
9933 (compute_avail): Do not add stmt uses to AVAIL_OUT.
9934
9935 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
9936
9937 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
9938 Set default to true.
9939
9940 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9941
9942 * c.opt (Wsynth): Deprecate.
9943 * doc/invoke.texi (Option Summary, Warning Options): Document
9944 -Wno-format-contains-nul.
9945
9946 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
9947
9948 PR target/35496
9949 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
9950 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
9951
9952 2008-03-09 Ira Rosen <irar@il.ibm.com>
9953
9954 * config/rs6000/rs6000.c (builtin_description): Rename vector
9955 left shift operations.
9956 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
9957 (altivec_vsl<VI_char>): Rename to ...
9958 (ashl<mode>3): ... new name.
9959 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
9960 gen_ashlv4si3.
9961 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
9962
9963 2008-03-08 Richard Guenther <rguenther@suse.de>
9964
9965 * coverage.h (tree_coverage_counter_addr): Declare.
9966 * coverage.c (tree_coverage_counter_addr): New function.
9967 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
9968 before using again.
9969 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
9970 (tree_gen_one_value_profiler): Likewise.
9971 (tree_gen_ic_profiler): Likewise.
9972 (tree_gen_average_profiler): Likewise.
9973 (tree_gen_ior_profiler): Likewise.
9974
9975 2008-03-08 Richard Guenther <rguenther@suse.de>
9976
9977 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
9978 (vn_binary_op_insert): Likewise.
9979 (vn_unary_op_lookup): Likewise.
9980 (vn_unary_op_insert): Likewise.
9981 (vn_nary_op_lookup): Declare.
9982 (vn_nary_op_insert): Likewise.
9983 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
9984 and binary hashes, use a single obstack for unary_op_pool
9985 and binary_op_pool.
9986 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
9987 a single struct vn_nary_op_s. Store tree code length and
9988 a variable number of operands.
9989 (struct vn_reference_op_struct): Remove unused op2.
9990 (vn_reference_op_eq): Do not compare op2.
9991 (vn_reference_op_compute_hash): Do not compute hash of op2.
9992 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
9993 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
9994 with vn_nary_op_compute_hash.
9995 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
9996 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
9997 vn_nary_op_lookup.
9998 (vn_unary_op_insert, vn_binary_op_insert): Replace with
9999 vn_nary_op_insert.
10000 (visit_unary_op): Call nary functions.
10001 (visit_binary_op): Likewise.
10002 (process_scc): Adjust for struct vn_tables_s changes.
10003 (allocate_vn_table): Likewise.
10004 (free_vn_table): Likewise.
10005 * tree-vn.c (vn_add): Call nary functions.
10006 (vn_lookup): Likewise.
10007
10008 2008-03-08 Jakub Jelinek <jakub@redhat.com>
10009
10010 PR target/35498
10011 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
10012 wdst back after sync_compare_and_swapqhi_internal.
10013
10014 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
10015
10016 PR target/22152
10017 * config/i386/i386-modes.def (V1DI): New vector mode.
10018 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
10019 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
10020 (MMXMODE248): Ditto.
10021 (MMXMODE): Add V1DI mode.
10022 (mmxvecsize): Change DI mode to V1DI mode.
10023 ("mov<mode>): Use MMXMODEI8 mode iterator.
10024 ("*mov<mode>_internal_rex64"): Ditto.
10025 ("*mov<mode>_internal"): Ditto.
10026 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
10027 ("mmx_sub<mode>3"): Ditto.
10028 ("mmx_adddi3"): Remove insn pattern.
10029 ("mmx_subdi3"): Ditto.
10030 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
10031 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
10032 ("mmx_ashl<mode>3"): Ditto.
10033 ("mmx_lshrdi3"): Remove insn pattern.
10034 ("mmx_ashldi3"): Ditto.
10035 * config/i386/i386.c (classify_argument): Handle V1DImode.
10036 (function_arg_advance_32): Ditto.
10037 (function_arg_32): Ditto.
10038 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
10039 mmx_addv1di3 insn pattern.
10040 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
10041 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
10042 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
10043 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
10044 Remove definitions of built-in functions.
10045 (V1DI_type_node): New node.
10046 (v1di_ftype_v1di_int): Ditto.
10047 (v1di_ftype_v1di_v1di): Ditto.
10048 (v2si_ftype_v2si_si): Ditto.
10049 (v4hi_ftype_v4hi_di): Remove node.
10050 (v2si_ftype_v2si_di): Ditto.
10051 (ix86_init_mmx_sse_builtins): Handle V1DImode.
10052 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
10053 Redefine builtins using def_builtin_const with *_ftype_*_int node.
10054 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
10055 Add new builtins using def_builtin_const.
10056 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
10057 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
10058 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
10059 * config/i386/mmintrin.h (__v1di): New typedef.
10060 (_mm_add_si64): Cast arguments to __v1di type.
10061 (_mm_sub_si64): Ditto.
10062 (_mm_sll_pi16): Cast __count to __v4hi type.
10063 (_mm_sll_pi32): Cast __count to __v2si type.
10064 (_mm_sll_si64): Cast arguments to __v1di type.
10065 (_mm_srl_pi16): Cast __count to __v4hi type.
10066 (_mm_srl_pi32): Cast __count to __v2si type.
10067 (_mm_srl_si64): Cast arguments to __v1di type.
10068 (_mm_sra_pi16): Cast __count to __v4hi type.
10069 (_mm_sra_pi32): Cast __count to __v2si type.
10070 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
10071 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
10072 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
10073 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
10074 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
10075 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
10076 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
10077 (_mm_srai_pi32): Use __builtin_ia32_psradi.
10078 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
10079 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
10080 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
10081 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
10082
10083 2008-03-07 Joseph Myers <joseph@codesourcery.com>
10084
10085 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
10086
10087 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
10088
10089 PR target/35373
10090 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
10091 reg+const addressing for Altivec modes. Don't generate reg+reg
10092 addressing for TFmode or TDmode quantities.
10093
10094 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
10095
10096 * c-common.c (vector_types_convertible_p): Call langhook
10097 instead of comptypes.
10098
10099 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
10100
10101 PR tree-opt/35402
10102 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
10103 integral and scalar float variables which have a
10104 NULL DECL_INITIAL.
10105
10106 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
10107
10108 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
10109 dwarf_register_span hook when emitting unwind information for
10110 register-to-memory saves.
10111 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
10112 (rs6000_frame_related): Remove call to spe_synthesize_frame.
10113
10114 2008-03-06 Jakub Jelinek <jakub@redhat.com>
10115
10116 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
10117 for the same VAR_DECL.
10118
10119 2008-03-06 Tom Tromey <tromey@redhat.com>
10120
10121 * treelang: Delete.
10122 * doc/standards.texi (Standards): Don't mention treelang.
10123 * doc/invoke.texi (Overall Options): Don't mention treelang.
10124 * doc/install.texi (Prerequisites): Don't mention bison or
10125 treelang.
10126 (Configuration): Don't mention treelang.
10127 (Building): Likewise.
10128 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
10129
10130 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
10131
10132 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
10133 word-extractions out of a multi-word object.
10134
10135 2008-03-06 Richard Guenther <rguenther@suse.de>
10136
10137 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
10138 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
10139 result type and precision.
10140 * expr.c (get_inner_reference): Set unsignedp based on the result
10141 type of BIT_FIELD_REF.
10142 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
10143 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
10144 (try_instantiate_multiple_fields): Likewise. Use the correct type
10145 for BIT_FIELD_REF.
10146 (sra_build_assignment): Likewise.
10147 (sra_build_elt_assignment): Likewise.
10148 (sra_explode_bitfield_assignment): Likewise.
10149 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
10150 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
10151 set BIT_FIELD_REF_UNSIGNED.
10152 (vectorizable_load): Likewise.
10153
10154 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
10155
10156 * cse.c (cse_extended_basic_block): Invalidate artificial defs
10157 at bb start.
10158
10159 2008-03-06 Richard Guenther <rguenther@suse.de>
10160
10161 * alias.c (struct alias_set_entry): Move has_zero_child field
10162 to pack with alias_set.
10163
10164 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
10165
10166 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10167 32bit host.
10168
10169 2008-03-05 Ian Lance Taylor <iant@google.com>
10170
10171 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
10172
10173 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
10174
10175 * fwprop.c (update_df): Support width and offset parameters of
10176 df_ref_create.
10177 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
10178 global_conflicts): Change DF_REF_EXTRACT to either
10179 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
10180 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10181 * df-scan.c (df_ref_record, df_defs_record,
10182 df_ref_create_structure, df_def_record_1, df_uses_record,
10183 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
10184 df_bb_refs_collect, df_entry_block_defs_collect,
10185 df_exit_block_uses_collect): Support new width and offset fields.
10186 (ref_extract_pool): New storage pool.
10187 (df_free_ref): New function.
10188 (df_reg_chain_unlink, df_free_collection_rec,
10189 df_sort_and_compress_refs): Call df_free_ref.
10190 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
10191 of df_ref_extract.
10192 (df_ref_create_structure): Allocate df_ref_extract if offset and
10193 width fields are used.
10194 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
10195 (df_uses_record): Get offset and width from ZERO_EXTRACT
10196 and SIGN_EXTRACT.
10197 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
10198 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
10199 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10200 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
10201 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
10202 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10203 (df_ref_extract): New structure.
10204 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
10205 (df_ref_create): Add width and offset parameters.
10206
10207 2008-03-05 Richard Guenther <rguenther@suse.de>
10208
10209 * tree-ssa-structalias.c (get_constraint_for_component_ref):
10210 Use ranges_overlap_p.
10211 (offset_overlaps_with_access): Rename
10212 to ranges_overlap_p and move ...
10213 * tree-flow-inline.h (ranges_overlap_p): ... here.
10214
10215 * tree.h (get_inner_reference, handled_component_p): Update
10216 comments.
10217
10218 * tree.h (record_component_aliases, get_alias_set,
10219 alias_sets_conflict_p, alias_sets_must_conflict_p,
10220 objects_must_conflict_p): Move declarations ...
10221 * alias.h (record_component_aliases, get_alias_set,
10222 alias_sets_conflict_p, alias_sets_must_conflict_p,
10223 objects_must_conflict_p): ... here.
10224 Include coretypes.h.
10225 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
10226
10227 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
10228
10229 * cfg.c: Include tree-flow.h.
10230 (remove_edge_raw): Call redirect_edge_var_map_clear.
10231 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
10232 * tree-flow-inline.h (redirect_edge_var_map_def): New.
10233 (redirect_edge_var_map_result): New.
10234 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
10235 PENDING_STMT use with redirect_edge_var_map_*.
10236 * tree-ssa.c (edge_var_maps): New definition.
10237 (redirect_edge_var_map_add): New.
10238 (redirect_edge_var_map_clear): New.
10239 (redirect_edge_var_map_dup): New.
10240 (redirect_edge_var_map_vector): New.
10241 (redirect_edge_var_map_destroy): New.
10242 (ssa_redirect_edge): Replace PENDING_STMT use with
10243 redirect_edge_var_map_*.
10244 (flush_pending_stmts): Same.
10245 (delete_tree_ssa): Destroy edge var map.
10246 * tree-flow.h (struct _edge_var_map): New.
10247 Define edge_var_map vector type.
10248 Declare redirect_edge_var_map_* prototypes.
10249 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
10250 * tree-cfg.c (reinstall_phi_args): Replace
10251 PENDING_STMT use with redirect_edge_var_map_*.
10252
10253 2008-03-05 Richard Guenther <rguenther@suse.de>
10254
10255 PR tree-optimization/35472
10256 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
10257 whose single use_stmt has a overlapping set of loaded and
10258 stored symbols as that use_stmt might be a noop assignment then.
10259
10260 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
10261
10262 * gthr-rtems.h: Implement __gthread_mutex_destroy.
10263
10264 2008-03-05 Richard Guenther <rguenther@suse.de>
10265
10266 PR c++/35336
10267 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
10268 should be constants.
10269 * tree-cfg.c (verify_expr): Verify it.
10270 * fold-const.c (fold_truthop): Remove code generating
10271 BIT_FIELD_REFs of structure bases.
10272 (fold_binary): Likewise.
10273 (fold_ternary): Position and size of BIT_FIELD_REFs are
10274 always host integers.
10275 (make_bit_field_ref): Remove.
10276 (optimize_bit_field_compare): Remove.
10277 (all_ones_mask_p): Remove.
10278
10279 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
10280
10281 PR gcc/33009
10282 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
10283 (split_block_and_df_analyze): New. Split basic block and rebuild
10284 dataflow.
10285 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
10286 SPLIT_BLOCK.
10287 (split_pattern_seq): Likewise.
10288 (erase_matching_seqs): Likewise.
10289 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
10290
10291 2008-03-04 Geoff Keating <geoffk@apple.com>
10292
10293 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
10294 declaration and code.
10295 (tree_invalid_nonnegative_warnv_p): Likewise.
10296
10297 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
10298
10299 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
10300 examples. Truncate option-names then causing overfull hbox.
10301
10302 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10303
10304 PR target/35222
10305 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
10306 on hpux10.
10307 * configure: Rebuilt.
10308
10309 2008-03-04 Rafael Espindola <espindola@google.com>
10310
10311 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
10312 (tree_unary_nonnegative_warnv_p): New.
10313 (tree_binary_nonnegative_warnv_p): New.
10314 (tree_single_nonnegative_warnv_p): New.
10315 (tree_invalid_nonnegative_warnv_p): New.
10316 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
10317
10318 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10319
10320 PR 28322
10321 * opts.c (handle_option): Postpone 'unknown option' errors only for
10322 warning options.
10323
10324 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
10325
10326 PR target/35453
10327 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
10328 (_SIDD_XXX): This.
10329
10330 2008-03-04 Rafael Espindola <espindola@google.com>
10331
10332 * fold-const.c (tree_unary_nonzero_warnv_p): New.
10333 (tree_binary_nonzero_warnv_p): New.
10334 (tree_single_nonzero_warnv_p): New.
10335 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
10336
10337 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
10338
10339 PR middle-end/35456
10340 * fold-const.c (fold_cond_expr_with_comparison): Prevent
10341 transformations for modes that have signed zeros.
10342 * ifcvt.c (noce_try_abs): Ditto.
10343
10344 2008-03-04 Joseph Myers <joseph@codesourcery.com>
10345
10346 * config/i386/i386.c (override_options): Force
10347 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
10348
10349 2008-03-04 Jan Hubicka <jh@suse.cz>
10350
10351 PR c++/35262
10352 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
10353 in last commit.
10354
10355 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
10356
10357 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
10358 label to probe the stack.
10359
10360 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
10361
10362 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
10363 (__gthr_win32_mutex_destroy): Declare.
10364 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
10365 __gthr_win32_mutex_destroy.
10366 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
10367
10368 2008-03-03 Jan Hubicka <jh@suse.cz>
10369
10370 PR c++/35262
10371 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
10372 aggressive on inlining cold calls.
10373
10374 2008-03-03 Richard Guenther <rguenther@suse.de>
10375
10376 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
10377 struct copies into the expression table.
10378 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
10379 (try_to_simplify): Likewise.
10380 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
10381 integral and pointer arguments which do not change the
10382 precision to NOP_EXPRs.
10383 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
10384 VIEW_CONVERT_EXPR case.
10385
10386 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
10387
10388 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
10389 defined in a loop at depth 0 is invariant.
10390 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
10391 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
10392 be called at loop depth 0.
10393
10394 2008-03-02 Jakub Jelinek <jakub@redhat.com>
10395
10396 PR driver/35420
10397 * gcc.c (process_command): Update copyright notice dates.
10398 * gcov.c (print_version): Likewise.
10399 * gcov-dump.c (print_version): Likewise.
10400 * mips-tfile.c (main): Likewise.
10401 * mips-tdump.c (main): Likewise.
10402
10403 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10404
10405 PR 24924
10406 * c-common.c (flag_permissive): Delete.
10407 (constant_expression_warnings): Check flags first.
10408 (constant_expression_error): New.
10409 * c-common.h (flag_permissive): Delete.
10410 (constant_expression_error): Declare.
10411 * flags.h (flag_permissive): Declare. Update description.
10412 * diagnostic.c (pedwarn): Update.
10413 (permerror): New.
10414 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
10415 (permissive_error_kind): New.
10416 * toplev.c (flag_permissive): Define. Update description.
10417 * toplev.h (permissive_error_kind): Declare.
10418 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
10419 (pedwarn_c90): Use pedantic_warning_kind.
10420 * c-opts.c (c_common_post_options): flag_permissive does not affect
10421 flag_pedantic_errors.
10422
10423 2008-03-02 Joseph Myers <joseph@codesourcery.com>
10424
10425 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
10426 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
10427 __absvsi2, __absvDI2): Use unsigned arithmetic.
10428
10429 2008-03-02 Andi Kleen <ak@suse.de>
10430 Richard Guenther <rguenther@suse.de>
10431
10432 * struct-equiv.c: Remove file.
10433 * cfg_cleanup.c (condjump_equiv_p): Remove.
10434 * Makefile.in (OBJS-common): Remove struct-equiv.o.
10435 (struct-equiv.o): Remove rule.
10436 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
10437 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
10438 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
10439
10440 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
10441
10442 * ifcvt.c (noce_process_if_block): Try to handle only the then
10443 block if the else block exists but isn't suitable.
10444
10445 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
10446
10447 PR gcc/35063
10448 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
10449 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
10450 regression from previous patch.
10451
10452 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
10453
10454 PR gcc/35063
10455 * gthr.h: Add __gthread_mutex_destroy as a function that must be
10456 implemented.
10457 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
10458 * gthr-single.h (__gthread_mutex_destroy): Likewise.
10459 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
10460 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
10461 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
10462 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
10463 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
10464 (__gthread_mutex_destroy_function): Rename to
10465 __gthread_mutex_destroy.
10466 * gthr-dce.h (__gthread_mutex_destroy): Call
10467 pthread_mutex_destroy.
10468 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
10469 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
10470 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
10471
10472 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
10473
10474 * df-scan.c (df_ref_chain_change_bb): Simplify.
10475 (df_insn_change_bb): Add new_bb argument. Simplify. Call
10476 set_block_for_insn if there's any change.
10477 * df.h ((df_insn_change_bb): Fix prototype.
10478 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
10479 df_insn_change_bb, don't call set_block_for_insn.
10480 * emit-rtl.c (reorder_insns): Likewise.
10481 * haifa-sched.c (move_insn): Likewise.
10482
10483 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
10484
10485 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
10486
10487 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
10488
10489 * tree-flow-inline.h (next_readonly_imm_use): Return
10490 NULL_USE_OPERAND_P after the end.
10491
10492 2008-03-01 Richard Guenther <rguenther@suse.de>
10493
10494 PR tree-optimization/35411
10495 * tree-sra.c (sra_build_assignment): Split conversion to
10496 final type to a separate statement if we are not assigning
10497 to a register.
10498
10499 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10500
10501 * fold-const.c (fold_convertible_p): Correct the logic to follow
10502 that in fold_convert().
10503
10504 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
10505
10506 PR c++/35315
10507 * tree-inline.c (build_duplicate_type): When we make a
10508 duplicate type, make it unique in the canonical types system.
10509
10510 2008-02-29 Tom Tromey <tromey@redhat.com>
10511
10512 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
10513 input_file_stack_history, input_file_stack_restored): Remove.
10514 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
10515 * input.h (struct file_stack): Remove.
10516 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
10517 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
10518 Likewise.
10519 * diagnostic.h (struct diagnostic_context) <last_module>: Change
10520 type.
10521 (diagnostic_last_module_changed): Add 'map' argument.
10522 (diagnostic_set_last_function): Likewise.
10523 * diagnostic.c (undiagnostic_report_current_module): Iterate using
10524 line map, not input_file_stack.
10525 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
10526
10527 2008-02-29 Paul Brook <paul@codesourcery.com>
10528
10529 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
10530
10531 2008-02-29 Paul Brook <paul@codesourcery.com>
10532
10533 * config/arm/ieee754-df.S (muldf3): Use RET macros.
10534
10535 2008-02-29 Richard Guenther <rguenther@suse.de>
10536
10537 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
10538 vn_lookup_or_add.
10539 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
10540 value for comparing for a store match.
10541 (simplify_unary_expression): Do nothing for SSA_NAMEs.
10542 (try_to_simplify): Do not do a full-blown reference lookup.
10543
10544 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
10545
10546 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
10547 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
10548
10549 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
10550
10551 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
10552
10553 * tree-loop-linear.c (try_interchange_loops): Compare memory access
10554 strides against cache sizes.
10555
10556 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
10557
10558 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
10559 constant to fpul.
10560
10561 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
10562
10563 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
10564 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
10565 is smaller than the original promoted value.
10566 (simplify_subreg): If OP is a SUBREG, try to preserve its
10567 SUBREG_PROMOTED_VAR_P information.
10568
10569 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
10570
10571 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
10572 (VN_INFO_GET): Allocate new objects on the obstack.
10573 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
10574 for rpo_numbers_temp, for consistency.
10575 (free_scc_vn): Free the obstack.
10576
10577 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
10578
10579 * doc/invoke.texi: Document -ftree-loop-distribution.
10580 * tree-loop-distribution.c: New.
10581 * tree-pass.h (pass_loop_distribution): New.
10582 * graphds.h (struct graph): Add htab_t indices.
10583 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
10584 * tree-vectorizer.c (rename_variables_in_loop): Extern.
10585 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
10586 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
10587 * tree-data-ref.c (debug_data_dependence_relations): New.
10588 (dump_data_dependence_relation): Also print data references.
10589 (free_data_ref): Extern.
10590 (same_access_functions): Moved...
10591 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
10592 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
10593 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
10594 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
10595 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
10596 (stmts_from_loop): Skip LABEL_EXPR.
10597 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
10598 New.
10599 (build_rdg): Initialize rdg->indices htab.
10600 (free_rdg, stores_from_loop, ref_base_address,
10601 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
10602 have_similar_memory_accesses_1, ref_base_address_1,
10603 remove_similar_memory_refs): New.
10604 * tree-data-ref.h: Depend on tree-chrec.h.
10605 (debug_data_dependence_relations, free_data_ref): Declared.
10606 (same_access_functions): ... here.
10607 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
10608 New.
10609 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
10610 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
10611 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
10612 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
10613 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
10614 rdg_vertex_for_stmt): Declared.
10615 (struct rdg_edge): Add level.
10616 (RDGE_LEVEL): New.
10617 (free_rdg, stores_from_loop, remove_similar_memory_refs,
10618 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
10619 Declared.
10620 (rdg_has_similar_memory_accesses): New.
10621 * tree-vect-analyze.c: Remove unused static decls.
10622 * lambda.h (dependence_level): New.
10623 * common.opt (ftree-loop-distribution): New.
10624 * tree-flow.h (mark_virtual_ops_in_bb,
10625 slpeel_tree_duplicate_loop_to_edge_cfg,
10626 rename_variables_in_loop): Declared.
10627 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
10628 (OBJS-common): Add tree-loop-distribution.o.
10629 (tree-loop-distribution.o): New rule.
10630 * tree-cfg.c (mark_virtual_ops_in_bb): New.
10631 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
10632 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
10633
10634 2008-02-28 Joseph Myers <joseph@codesourcery.com>
10635
10636 PR target/33963
10637 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
10638 other than structures and unions.
10639
10640 2008-02-28 Richard Guenther <rguenther@suse.de>
10641
10642 Revert:
10643 2008-02-26 Richard Guenther <rguenther@suse.de>
10644
10645 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
10646 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
10647 (lookup_decl_from_uid): Declare.
10648 (remove_decl_from_map): Likewise.
10649 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
10650 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
10651 (decl_for_uid_map): New global hashtable mapping DECL_UID
10652 to the decl tree.
10653 (init_ttree): Allocate it.
10654 (insert_decl_to_uid_decl_map): New helper function.
10655 (make_node_stat): Insert new decls into the map.
10656 (copy_node_stat): Likewise.
10657 (lookup_decl_from_uid): New function.
10658 (remove_decl_from_map): Likewise.
10659 (print_decl_for_uid_map_statistics): New helper.
10660 (dump_tree_statistics): Call it.
10661
10662 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
10663 (referenced_var_iterator): Adjust.
10664 (FOR_EACH_REFERENCED_VAR): Adjust.
10665 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
10666 (num_referenced_vars): Adjust.
10667 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
10668 (first_referenced_var): Remove.
10669 (end_referenced_vars_p): Likewise.
10670 (next_referenced_var): Likewise.
10671 (referenced_var_iterator_set): New helper function.
10672 * tree-dfa.c (referenced_var_lookup): Adjust.
10673 (referenced_var_check_and_insert): Likewise.
10674 (remove_referenced_var): Likewise.
10675 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
10676 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10677 (verify_call_clobbering): Likewise.
10678 (verify_memory_partitions): Likewise.
10679 (init_tree_ssa): Allocate bitmap instead of hashtable for
10680 referenced_vars.
10681 (delete_tree_ssa): Adjust.
10682 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
10683 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10684 (compute_tag_properties): Likewise.
10685 (set_initial_properties): Likewise.
10686 (find_partition_for): Likewise.
10687 (update_reference_counts): Likewise.
10688 (dump_may_aliases_for): Likewise.
10689 * tree-ssa-operands.c (add_virtual_operand): Likewise.
10690 (add_call_clobber_ops): Likewise.
10691 (add_call_read_ops): Likewise.
10692 (get_asm_expr_operands): Likewise.
10693 * tree-into-ssa.c (dump_decl_set): Likewise.
10694 (update_ssa): Likewise.
10695 * tree-sra.c (scan_function): Likewise.
10696 (decide_instantiations): Likewise.
10697 (scalarize_parms): Likewise.
10698 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
10699 (dsa_named_for): Likewise.
10700 * tree-ssa-structalias.c (update_alias_info): Likewise.
10701 (merge_smts_into): Likewise.
10702
10703 2008-02-27 David Daney <ddaney@avtrex.com>
10704
10705 PR target/34409
10706 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
10707 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
10708 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
10709 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
10710 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
10711
10712 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
10713
10714 PR target/25477
10715 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
10716 (BUILT_IN_NEXTTOWARD): Remove.
10717 (BUILT_IN_NEXTTOWARDF): Ditto.
10718 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
10719 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
10720
10721 2008-02-27 Tom Tromey <tromey@redhat.com>
10722
10723 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
10724 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
10725
10726 2008-02-27 Jan Beulich <jbeulich@novell.com>
10727
10728 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
10729 update the respective field on newdecl.
10730
10731 2008-02-27 Revital Eres <eres@il.ibm.com>
10732
10733 PR rtl-optimization/34999
10734 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
10735 crossing edges that ends with a call insn.
10736 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
10737 call insn and clear the EDGE_CROSSING flag of the crossing edge
10738 when fixing fallthru edges.
10739
10740 2008-02-27 Richard Guenther <rguenther@suse.de>
10741
10742 PR middle-end/35390
10743 * fold-const.c (fold_unary): Return the correct argument,
10744 converted to the result type.
10745
10746 2008-02-27 Richard Guenther <rguenther@suse.de>
10747
10748 PR middle-end/34971
10749 * expr.c (expand_expr_real_1): Assert on rotates that operate
10750 on partial modes.
10751 * fold-const.c (fold_binary): Use the types precision, not the
10752 bitsize of the mode if folding rotate expressions. Build rotates
10753 only for full modes.
10754
10755 2008-02-27 Jakub Jelinek <jakub@redhat.com>
10756
10757 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
10758 and CPP_PRAGMA_EOL.
10759 * c-pragma.c (pragma_ns_name): New typedef.
10760 (registered_pp_pragmas): New variable.
10761 (c_pp_lookup_pragma): New function.
10762 (c_register_pragma_1): If flag_preprocess_only, do nothing
10763 for non-expanded pragmas, for expanded ones push pragma's
10764 namespace and name into registered_pp_pragmas vector.
10765 (c_invoke_pragma_handler): Register OpenMP pragmas even when
10766 flag_preprocess_only, don't register GCC pch_preprocess
10767 pragma if flag_preprocess_only.
10768 * c-opts.c (c_common_init): Call init_pragma even if
10769 flag_preprocess_only.
10770 * c-pragma.c (c_pp_lookup_pragma): New prototype.
10771 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
10772 cpp_register_pragma if flag_preprocess_only.
10773
10774 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10775
10776 PR c/28800
10777 * c-parser.c (c_parser_translation_unit): Warn for empty
10778 translation unit, not empty source file.
10779
10780 2008-02-26 Paul Brook <paul@codesourcery.com>
10781
10782 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
10783 operand for Thumb-2.
10784 * config/arm/arm.h (reg_class): Add CORE_REGS.
10785 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
10786 (BASE_REG_CLASS): Use CORE_REGS.
10787 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
10788 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
10789 (REGNO_OK_FOR_INDEX_P): Exclude SP.
10790 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
10791 ARM_REGNO_OK_FOR_INDEX_P.
10792 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
10793 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
10794 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
10795 (ldm/stm peepholes): Ditto.
10796 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
10797 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
10798 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
10799 * config/arm/constraints.md: Enable "k" constraint on ARM.
10800
10801 2008-02-27 Ben Elliston <bje@au.ibm.com>
10802
10803 * config/rs6000/rs6000.c: Annotate cache line size field in all
10804 instances of struct processor_costs.
10805
10806 2008-02-26 David Edelsohn <edelsohn@gnu.org>
10807
10808 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
10809 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
10810 jump_bypass): New counters.
10811 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
10812 * dce.c (gate_ud_dce): Same.
10813 (gate_fast_dce): Same.
10814 * dse.c (gate_dse1): New function.
10815 (gate_dse2): New function.
10816 (gate_dse): Merge results of new gate functions.
10817 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
10818 (gate_handle_jump_bypass): Add dbg_cnt.
10819 (gate_handle_gcse): Add dbg_cnt.
10820 * ifcvt.c (gate_handle_if_conversion): Same.
10821 (gate_handle_if_after_combine): Same.
10822 (gate_handle_if_after_reload): Same.
10823 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
10824
10825 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
10826
10827 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
10828 line sizes.
10829 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
10830
10831 2008-02-26 Jason Merrill <jason@redhat.com>
10832
10833 PR c++/35315
10834 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
10835 alone if it's the naming decl for the type's main variant.
10836
10837 2008-02-26 Tom Tromey <tromey@redhat.com>
10838
10839 * system.h (USE_MAPPED_LOCATION): Poison.
10840 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
10841 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
10842 (make_goto_expr_edges): Likewise.
10843 (remove_bb): Likewise.
10844 (execute_warn_function_return): Likewise.
10845 * basic-block.h (struct edge_def) <goto_locus>: Change type to
10846 location_t.
10847 * c-common.c (fname_decl): Remove old location code.
10848 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
10849 location code.
10850 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
10851 variant.
10852 (ASM_INPUT_SOURCE_LOCATION): Likewise.
10853 (gen_rtx_ASM_INPUT): Likewise.
10854 (gen_rtx_ASM_INPUT_loc): Likewise.
10855 (get_rtx_asm_OPERANDS): Remove.
10856 * cfglayout.c (insn_locators_alloc): Remove old location code.
10857 (set_curr_insn_source_location): Likewise.
10858 (curr_insn_locator): Likewise.
10859 * print-tree.c (print_node): Remove old location code.
10860 * tree-mudflap.c (mf_varname_tree): Remove old location code.
10861 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
10862 * cfgexpand.c (expand_gimple_cond_expr): Don't use
10863 location_from_locus.
10864 (construct_exit_block): Remove old location code.
10865 * emit-rtl.c (force_next_line_note): Remove old location code.
10866 * profile.c (branch_prob): Remove old location code.
10867 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
10868 LOC_LINE): Remove old-location variants.
10869 * langhooks.c (lhd_print_error_function): Remove old location
10870 code.
10871 * configure, config.in: Rebuilt.
10872 * configure.ac (--enable-mapped-location): Remove.
10873 * c-decl.c (c_init_decl_processing): Remove old location code.
10874 (finish_function): Likewise.
10875 * recog.c (decode_asm_operands): Remove old location code.
10876 * c-pch.c (c_common_read_pch): Remove old location code.
10877 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
10878 variants.
10879 * gimple-low.c (lower_function_body): Remove old location code.
10880 * toplev.c (unknown_location): Remove.
10881 (push_srcloc): Remove old-location variant.
10882 (process_options): Remove old location code.
10883 (lang_dependent_init): Likewise.
10884 * input.h (UNKNOWN_LOCATION): Move definition.
10885 (location_t): Undeprecate.
10886 (source_locus): Remove.
10887 (location_from_locus): Remove.
10888 (struct location_s): Remove.
10889 Remove all old-location code.
10890 (input_line, input_filename): Remove.
10891 * final.c (final_scan_insn): Remove old location code.
10892 * diagnostic.c (diagnostic_build_prefix): Remove
10893 USE_MAPPED_LOCATION test.
10894 * tree.h (gimple_stmt) <locus>: Now a location_t.
10895 (tree_exp) <locus>: Likewise.
10896 (DECL_IS_BUILTIN): Remove old-location variant.
10897 (annotate_with_file_line, annotate_with_locus): Likewise.
10898 (expr_locus, set_expr_locus): Update.
10899 * tree.c (build1_stat): Remove old location code.
10900 (last_annotated_node): Remove.
10901 (annotate_with_file_line): Remove old-location variant.
10902 (annotate_with_locus): Likewise.
10903 (expr_location): Remove old location code.
10904 (set_expr_location): Likewise.
10905 (expr_has_location): Likewise.
10906 (expr_locus): Likewise.
10907 (set_expr_locus): Likewise.
10908 (expr_filename): Don't use location_from_locus.
10909 (expr_lineno): Likewise.
10910 * rtl-error.c (location_for_asm): Remove old location code.
10911 * c-lex.c (cb_line_change): Remove old location code.
10912 (fe_file_change): Likewise.
10913 (cb_def_pragma): Likewise.
10914 (c_lex_with_flags): Likewise.
10915 * gengtype.c (do_typedef): Don't special-case location types.
10916 (define_location_structures): Remove.
10917 (main): Don't call define_location_structures.
10918 * tree-pretty-print.c (dump_implicit_edges): Remove old location
10919 code.
10920
10921 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10922
10923 PR 26264
10924 * builtins.def (BUILT_IN_STDARG_START): Remove.
10925 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
10926 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10927 * tree-inline.c (inline_forbidden_p_1): Likewise.
10928
10929 2008-02-26 Richard Guenther <rguenther@suse.de>
10930
10931 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
10932 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
10933 (lookup_decl_from_uid): Declare.
10934 (remove_decl_from_map): Likewise.
10935 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
10936 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
10937 (decl_for_uid_map): New global hashtable mapping DECL_UID
10938 to the decl tree.
10939 (init_ttree): Allocate it.
10940 (insert_decl_to_uid_decl_map): New helper function.
10941 (make_node_stat): Insert new decls into the map.
10942 (copy_node_stat): Likewise.
10943 (lookup_decl_from_uid): New function.
10944 (remove_decl_from_map): Likewise.
10945 (print_decl_for_uid_map_statistics): New helper.
10946 (dump_tree_statistics): Call it.
10947
10948 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
10949 (referenced_var_iterator): Adjust.
10950 (FOR_EACH_REFERENCED_VAR): Adjust.
10951 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
10952 (num_referenced_vars): Adjust.
10953 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
10954 (first_referenced_var): Remove.
10955 (end_referenced_vars_p): Likewise.
10956 (next_referenced_var): Likewise.
10957 (referenced_var_iterator_set): New helper function.
10958 * tree-dfa.c (referenced_var_lookup): Adjust.
10959 (referenced_var_check_and_insert): Likewise.
10960 (remove_referenced_var): Likewise.
10961 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
10962 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10963 (verify_call_clobbering): Likewise.
10964 (verify_memory_partitions): Likewise.
10965 (init_tree_ssa): Allocate bitmap instead of hashtable for
10966 referenced_vars.
10967 (delete_tree_ssa): Adjust.
10968 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
10969 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10970 (compute_tag_properties): Likewise.
10971 (set_initial_properties): Likewise.
10972 (find_partition_for): Likewise.
10973 (update_reference_counts): Likewise.
10974 (dump_may_aliases_for): Likewise.
10975 * tree-ssa-operands.c (add_virtual_operand): Likewise.
10976 (add_call_clobber_ops): Likewise.
10977 (add_call_read_ops): Likewise.
10978 (get_asm_expr_operands): Likewise.
10979 * tree-into-ssa.c (dump_decl_set): Likewise.
10980 (update_ssa): Likewise.
10981 * tree-sra.c (scan_function): Likewise.
10982 (decide_instantiations): Likewise.
10983 (scalarize_parms): Likewise.
10984 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
10985 (dsa_named_for): Likewise.
10986 * tree-ssa-structalias.c (update_alias_info): Likewise.
10987 (merge_smts_into): Likewise.
10988
10989 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10990
10991 PR 34351
10992 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
10993 * c-opts.c (c_common_handle_option): Wall enables
10994 Wvolatile-register-var.
10995 * common.opt: Move Wvolatile-register-var to...
10996 * c.opt: ...here.
10997
10998 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10999
11000 * common.opt (Wlarger-than=): New.
11001 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
11002 -Wlarger-than=.
11003 * opts.c (common_handle_option): Handle -Wlarger-than=.
11004 * optc-gen.awk: Likewise.
11005 * opth-gen.awk: Likewise.
11006 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
11007 * tree-optimize.c (tree_rest_of_compilation): Likewise.
11008
11009 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11010
11011 * c-common.c (match_case_to_enum_1): Add appropriate
11012 OPT_W* parameter to warning.
11013 (c_do_switch_warnings): Likewise.
11014 * c-typeck.c (warning_init): Add one more parameter following
11015 'warning' function.
11016 (push_init_level): Update call to warning_init.
11017 (pop_init_level): Likewise.
11018 (add_pending_init): Likewise.
11019 (output_init_element: Likewise.
11020
11021 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11022
11023 PR 28322
11024 * toplev.c (toplev_main): If there are warnings or error, print
11025 errors for ignored options.
11026 * opts.c (ignored_options): New static variable.
11027 (postpone_unknown_option_error): New.
11028 (print_ignored_options): New.
11029 (handle_option): Postpone errors for unknown -Wno-* options.
11030 * opts.h (print_ignored_options): Declare.
11031
11032 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
11033
11034 * config/mips/mips.md (loadgp_blockage, blockage): Change type
11035 to "ghost".
11036
11037 2008-02-25 Richard Guenther <rguenther@suse.de>
11038
11039 Revert:
11040 2008-02-25 Richard Guenther <rguenther@suse.de>
11041
11042 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11043 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11044 (lookup_decl_from_uid): Declare.
11045 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11046 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11047 (decl_for_uid_map): New global hashtable mapping DECL_UID
11048 to the decl tree.
11049 (init_ttree): Allocate it.
11050 (insert_decl_to_uid_decl_map): New helper function.
11051 (make_node_stat): Insert new decls into the map.
11052 (copy_node_stat): Likewise.
11053 (lookup_decl_from_uid): New function.
11054 (print_decl_for_uid_map_statistics): New helper.
11055 (dump_tree_statistics): Call it.
11056
11057 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11058 (referenced_var_iterator): Adjust.
11059 (FOR_EACH_REFERENCED_VAR): Adjust.
11060 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11061 (num_referenced_vars): Adjust.
11062 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11063 (first_referenced_var): Remove.
11064 (end_referenced_vars_p): Likewise.
11065 (next_referenced_var): Likewise.
11066 (referenced_var_iterator_set): New helper function.
11067 * tree-dfa.c (referenced_var_lookup): Adjust.
11068 (referenced_var_check_and_insert): Likewise.
11069 (remove_referenced_var): Likewise.
11070 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11071 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11072 (verify_call_clobbering): Likewise.
11073 (verify_memory_partitions): Likewise.
11074 (init_tree_ssa): Allocate bitmap instead of hashtable for
11075 referenced_vars.
11076 (delete_tree_ssa): Adjust.
11077 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11078 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11079 (compute_tag_properties): Likewise.
11080 (set_initial_properties): Likewise.
11081 (find_partition_for): Likewise.
11082 (update_reference_counts): Likewise.
11083 (dump_may_aliases_for): Likewise.
11084 * tree-ssa-operands.c (add_virtual_operand): Likewise.
11085 (add_call_clobber_ops): Likewise.
11086 (add_call_read_ops): Likewise.
11087 (get_asm_expr_operands): Likewise.
11088 * tree-into-ssa.c (dump_decl_set): Likewise.
11089 (update_ssa): Likewise.
11090 * tree-sra.c (scan_function): Likewise.
11091 (decide_instantiations): Likewise.
11092 (scalarize_parms): Likewise.
11093 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11094 (dsa_named_for): Likewise.
11095 * tree-ssa-structalias.c (update_alias_info): Likewise.
11096 (merge_smts_into): Likewise.
11097
11098 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
11099
11100 PR fortran/29549
11101 * doc/invoke.texi (-fcx-limited-range): Document new option.
11102 * toplev.c (process_options): Handle -fcx-fortran-rules.
11103 * common.opt: Add documentation for -fcx-fortran-rules.
11104
11105 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
11106
11107 PR c/35162
11108 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
11109 actual behaviour and C99.
11110
11111 2008-02-26 Ben Elliston <bje@au.ibm.com>
11112
11113 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
11114 (ASM_CPU_POWER6_SPEC): Likewise.
11115 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
11116 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
11117 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
11118
11119 2008-02-25 Richard Guenther <rguenther@suse.de>
11120
11121 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11122 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11123 (lookup_decl_from_uid): Declare.
11124 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11125 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11126 (decl_for_uid_map): New global hashtable mapping DECL_UID
11127 to the decl tree.
11128 (init_ttree): Allocate it.
11129 (insert_decl_to_uid_decl_map): New helper function.
11130 (make_node_stat): Insert new decls into the map.
11131 (copy_node_stat): Likewise.
11132 (lookup_decl_from_uid): New function.
11133 (print_decl_for_uid_map_statistics): New helper.
11134 (dump_tree_statistics): Call it.
11135
11136 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11137 (referenced_var_iterator): Adjust.
11138 (FOR_EACH_REFERENCED_VAR): Adjust.
11139 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11140 (num_referenced_vars): Adjust.
11141 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11142 (first_referenced_var): Remove.
11143 (end_referenced_vars_p): Likewise.
11144 (next_referenced_var): Likewise.
11145 (referenced_var_iterator_set): New helper function.
11146 * tree-dfa.c (referenced_var_lookup): Adjust.
11147 (referenced_var_check_and_insert): Likewise.
11148 (remove_referenced_var): Likewise.
11149 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11150 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11151 (verify_call_clobbering): Likewise.
11152 (verify_memory_partitions): Likewise.
11153 (init_tree_ssa): Allocate bitmap instead of hashtable for
11154 referenced_vars.
11155 (delete_tree_ssa): Adjust.
11156 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11157 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11158 (compute_tag_properties): Likewise.
11159 (set_initial_properties): Likewise.
11160 (find_partition_for): Likewise.
11161 (update_reference_counts): Likewise.
11162 (dump_may_aliases_for): Likewise.
11163 * tree-ssa-operands.c (add_virtual_operand): Likewise.
11164 (add_call_clobber_ops): Likewise.
11165 (add_call_read_ops): Likewise.
11166 (get_asm_expr_operands): Likewise.
11167 * tree-into-ssa.c (dump_decl_set): Likewise.
11168 (update_ssa): Likewise.
11169 * tree-sra.c (scan_function): Likewise.
11170 (decide_instantiations): Likewise.
11171 (scalarize_parms): Likewise.
11172 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11173 (dsa_named_for): Likewise.
11174 * tree-ssa-structalias.c (update_alias_info): Likewise.
11175 (merge_smts_into): Likewise.
11176
11177 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
11178
11179 PR target/35258
11180 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
11181 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
11182 * alias.h (nonoverlapping_memrefs_p): Likewise.
11183
11184 2008-02-25 Jan Beulich <jbeulich@novell.com>
11185
11186 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
11187 * config/i386/netware-libgcc.exp: Add __bswap?i2,
11188 __emultls_get_address, __emultls_register_common,
11189 __floatundi?f, and _Unwind_GetIPInfo.
11190 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
11191 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
11192 (gen_regparm_prefix): Likewise.
11193 (i386_nlm_encode_section_info): Sync with
11194 config/i386/winnt.c:i386_pe_encode_section_info().
11195 (i386_nlm_maybe_mangle_decl_assembler_name): New.
11196 i386_nlm_mangle_decl_assembler_name): New.
11197 (netware_override_options): New.
11198 * config/i386/netware.h (netware_override_options): Declare.
11199 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
11200 (i386_nlm_mangle_decl_assembler_name): Declare.
11201 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
11202
11203 2008-02-25 Ben Elliston <bje@au.ibm.com>
11204
11205 PR other/32948
11206 * c-decl.c (grokdeclarator): Remove unused local variables
11207 `typedef_type' and `type_as_written'.
11208 * bb-reorder.c
11209 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
11210 unused local variable `has_hot_blocks'.
11211 (fix_crossing_conditional_branches): Remove unused local variable
11212 `prev_bb'.
11213
11214 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
11215
11216 PR middle-end/19984
11217 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
11218 using DEF_C99_BUILTIN.
11219 (BUILT_IN_NANF): Ditto.
11220 (BUILT_IN_NANL): Ditto.
11221
11222 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
11223 Revital Eres <eres@il.ibm.com>
11224
11225 * modulo-sched.c (calculate_must_precede_follow): Address TODO
11226 regarding the order of two dependent insns in the same row.
11227
11228 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
11229
11230 * stor-layout.c (layout_decl): Do not bump the alignment of a
11231 bit-field to more than byte alignment if it is packed.
11232
11233 2008-02-24 David Edelsohn <edelsohn@gnu.org>
11234
11235 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
11236 e300c2 and e300c3.
11237
11238 2008-02-24 Diego Novillo <dnovillo@google.com>
11239
11240 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
11241
11242 PR 33738
11243 * tree-vrp.c (vrp_evaluate_conditional): With
11244 -Wtype-limits, emit a warning when comparing against a
11245 constant outside the natural range of OP0's type.
11246 * c.opt (Wtype-limits): Move ...
11247 * common.opt (Wtype-limits): ... here.
11248
11249 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
11250
11251 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
11252 * config/rs6000/e300c2c3.md: New file.
11253 * config/rs6000/rs6000.c (processor_costs): Add new costs for
11254 e300c2 and e300c3.
11255 (rs6000_override_options): Add e300c2 and e300c3 cases to
11256 processor_target_table. Do not allow usage of Altivec or Spe
11257 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
11258 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
11259 * config/rs6000/rs6000.h (processor_type): Add
11260 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
11261 (ASM_CPU_SPEC): Add e300c2 and e300c3.
11262 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
11263 and ppce300c3. Include e300c2c3.md.
11264
11265 2008-02-23 David Edelsohn <edelsohn@gnu.org>
11266
11267 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
11268 instead of TARGET_STRICT_ALIGN.
11269
11270 2008-02-23 Joseph Myers <joseph@codesourcery.com>
11271
11272 * explow.c (memory_address): Assert that the generated address is
11273 valid.
11274
11275 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11276
11277 PR target/25477
11278 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
11279 * config/darwin-ppc-ldouble-patch.def: New file.
11280 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
11281 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
11282 SUBTARGET_INIT_BUILTINS if defined.
11283 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
11284 New functions.
11285
11286 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
11287
11288 PR rtl-opt/33512
11289 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
11290 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
11291
11292 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
11293
11294 PR pch/35027
11295 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
11296 file" warning condtional on -Winvalid-PCH.
11297
11298 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
11299
11300 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
11301
11302 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
11303
11304 PR target/22076
11305 PR target/34256
11306 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
11307 prevent reload from using MMX registers.
11308 (*mov<mode>_internal): Ditto.
11309 (*movv2sf_internal_rex64): Ditto.
11310 (*movv2sf_internal): Ditto.
11311
11312 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11313
11314 PR documentation/31569
11315 * doc/install.texi2html: Use makeinfo --no-number-sections.
11316
11317 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
11318
11319 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
11320 ensure that we can address an entire entity > 8 bytes. Don't
11321 generate reg+reg addressing for such data.
11322
11323 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
11324
11325 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
11326 strings when optimizing for size, unless the target cares about
11327 alignment.
11328
11329 2008-02-22 Tom Tromey <tromey@redhat.com>
11330
11331 * regclass.c (current_pass): Remove declaration.
11332
11333 2008-02-22 Anatoly Sokolov <aesok@post.ru>
11334
11335 * config/avr/libgcc.S (__RAMPZ__): Define.
11336 (__do_copy_data): Add for devices with 128KB code memory.
11337
11338 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
11339
11340 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
11341 Use spe_abi.
11342 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
11343
11344 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
11345
11346 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
11347 GENNONACR_REGS.
11348
11349 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11350
11351 PR c/19999
11352 * c-typeck.c (build_binary_op): Warn about floating point
11353 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
11354
11355 2008-02-21 Janis Johnson <janis187@us.ibm.com>
11356
11357 PR target/34526
11358 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
11359 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
11360 add vrsave.
11361 (rs6000_override_options): Set altivec_abi as default, not override,
11362 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
11363 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
11364 is used; use new member spe_abi.
11365 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
11366 spe_abi and altivec_abi.
11367
11368 2008-02-22 Tomas Bily <tbily@suse.cz>
11369
11370 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
11371
11372 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11373
11374 PR bootstrap/35273
11375 * config.build (build_file_translate): Set to `CMD //c' only if
11376 it works.
11377 * Makefile.in (build_file_translate): Improve comment.
11378
11379 2008-02-21 Jan Hubicka <jh@suse.cz>
11380
11381 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
11382 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
11383 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
11384
11385 2008-02-21 Michael Matz <matz@suse.de>
11386
11387 PR target/35264
11388 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
11389
11390 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
11391
11392 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
11393 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
11394 as insn constraint.
11395 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
11396 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
11397 SSE_VEC_FLOAT_MODE_P as insn constraint.
11398 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
11399 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
11400 sse4a_movntdf using MODEF mode iterator.
11401 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
11402 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
11403 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
11404 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
11405 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
11406 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
11407 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
11408
11409 2008-02-21 Richard Guenther <rguenther@suse.de>
11410
11411 * tree.def (PAREN_EXPR): New tree code.
11412 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
11413 and PAREN_EXPR.
11414 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
11415 * expr.c (expand_expr_real_1): Likewise.
11416 * tree-inline.c (estimate_num_insns_1): Likewise.
11417 * tree-complex.c (expand_complex_move): Likewise.
11418 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
11419 as plain x.
11420
11421 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
11422
11423 PR target/35225
11424 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
11425
11426 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
11427
11428 PR target/35190
11429 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
11430
11431 * config/sh/sh.c (find_barrier): Don't go past
11432 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
11433
11434 2008-02-20 DJ Delorie <dj@redhat.com>
11435
11436 * config/h8300/h8300.md (insv): Force source operand to be a register.
11437
11438 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
11439 as a jump, not as a plain insn.
11440
11441 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
11442
11443 * doc/invoke.texi (Warning Options): Add new option
11444 -Wframe-larger-than=.
11445 (-Wframe-larger-than): Document.
11446
11447 * flags.h (warn_frame_larger_than, frame_larger_than_size):
11448 Add declarations for new option variables.
11449
11450 * final.c (final_start_function): Check the frame size
11451 before emission and issue a Wframe-larger-than warning.
11452
11453 * opts.c (warn_frame_larger_than, frame_larger_than_size):
11454 Add definitions for new option variables.
11455 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
11456
11457 * common.opt (Wframe-larger-than=): New option.
11458
11459 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
11460
11461 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
11462 (<sse>_div<mode>3): Ditto.
11463 (<sse>_vmdiv<mode>3): Ditto.
11464 (<sse>_vmsqrt<mode>2): Ditto.
11465 (*smax<mode>3): Ditto.
11466 (sse5_frcz<mode>2): Ditto.
11467 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
11468 as insn constraint.
11469
11470 2008-02-20 Richard Guenther <rguenther@suse.de>
11471
11472 PR middle-end/35265
11473 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
11474 be happy with INTEGRAL_TYPE_P.
11475
11476 2008-02-20 Richard Guenther <rguenther@suse.de>
11477
11478 * fold-const.c (split_tree): Associate floatig-point expressions
11479 if flag_associative_math is set.
11480
11481 2008-02-20 Richard Guenther <rguenther@suse.de>
11482
11483 * tree.h (fold_real_zero_addition_p): Declare.
11484 * fold-const.c (fold_real_zero_addition_p): Export.
11485 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
11486 floating-point operations with zero and one.
11487
11488 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
11489
11490 * doc/install.texi: Correct references to CFLAGS, replacing them
11491 with BOOT_CFLAGS. Document flags used during bootstrap for
11492 target libraries.
11493
11494 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
11495
11496 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
11497 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
11498 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
11499 insn constraint.
11500 (smin<mode>3): Ditto from similar patterns.
11501 (smax<mode>3): Ditto.
11502 (*ieee_smin<mode>3): Ditto.
11503 (*ieee_smax<mode>3): Ditto.
11504 * config/i386/sse.md (sse): New mode attribute.
11505 (mov<mode>): Macroize expander from movv4sf and movv2df using
11506 SSEMODEF2P mode iterator.
11507 (<sse>_movnt<mode>): Ditto from similar patterns. Use
11508 SSE_VEC_FLOAT_MODE_P as insn constraint.
11509 (storent<mode>): Ditto.
11510 (storent<mode>): Macroize expander from storentsf and storentdf using
11511 MODEF mode iterator.
11512 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
11513 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
11514 (abs<mode>2): Ditto from similar patterns.
11515 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
11516 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
11517 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
11518 (<sse>_vmsqrt<mode>2): Ditto.
11519 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
11520 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
11521 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
11522 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
11523 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
11524 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
11525 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
11526 insn constraint.
11527 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
11528 iterator and SSE_FLOAT_MODE_P as insn constraint.
11529 (<sse>_ucomi): Ditto from similar patterns.
11530 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
11531 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
11532 SSE_VEC_FLOAT_MODE_P as insn constraint.
11533 (vcond<mode>): Ditto from similar patterns.
11534 (and<mode>3, *and<mode>3): Ditto.
11535 (<sse>_nand<mode>3): Ditto.
11536 (ior<mode>3, *ior<mode>3): Ditto.
11537 (xor<mode>3, *xor<mode>3): Ditto.
11538 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
11539 iterator and SSE_FLOAT_MODE_P as insn constraint.
11540 (*nand<mode>3): Ditto from similar patterns.
11541 (*ior<mode>3): Ditto.
11542 (*xor<mode>3): Ditto.
11543
11544 2008-02-20 Ira Rosen <irar@il.ibm.com>
11545
11546 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
11547 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
11548 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
11549
11550 2008-02-19 Jan Hubicka <jh@suse.cz>
11551
11552 * predict.c (tree_bb_level_predictions): Remove variable next
11553 mistakely introduced by previous commit.
11554
11555 2008-02-19 Jan Hubicka <jh@suse.cz>
11556
11557 * predict.c (predict_paths_leading_to): Rewrite.
11558 (predict_paths_for_bb): New.
11559 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
11560
11561 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11562
11563 PR bootstrap/35218
11564 * Makefile.in (build_file_translate): New.
11565 (gcc-vers.texi): Use it for translating $(abs_srcdir).
11566 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
11567 * configure.ac (build_file_translate): Substitute it.
11568 * configure: Regenerate.
11569
11570 2008-02-19 Jan Hubicka <jh@suse.cz>
11571
11572 PR rtl-optimization/34408
11573 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
11574 invalid sharing.
11575
11576 2008-02-19 Jan Hubicka <jh@suse.cz>
11577
11578 PR middle-end/28779
11579 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
11580 call_expr.
11581
11582 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
11583
11584 PR Ada/35186
11585 * config/i386/i386-modes.def: Revert the last DI alignment
11586 change until Ada people can look into it.
11587
11588 2008-02-19 Nick Clifton <nickc@redhat.com>
11589
11590 * opts.c (print_specific_help): Fix typo in --help text.
11591
11592 2008-02-19 Jakub Jelinek <jakub@redhat.com>
11593
11594 PR target/35239
11595 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
11596 32-bit inline asm without asm alternatives for host GCC < 3.0.
11597
11598 2008-02-19 Richard Guenther <rguenther@suse.de>
11599
11600 PR tree-optimization/34989
11601 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
11602 Allow propagation to INDIRECT_REF if we can simplify only.
11603
11604 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11605
11606 * c-common.c (warn_for_collisions_1): Use appropriate option when
11607 warning.
11608
11609 2008-02-19 Nick Clifton <nickc@redhat.com>
11610
11611 PR other/31349
11612 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
11613 (handle_options): Fix indentation.
11614 (print_filtered_help): If no language-specific options were
11615 displayed tell the user how to list all the options supported by
11616 the language's front-end.
11617 (print_specific_help): Fix indentation and remove duplicate line.
11618 (common_handle_option): Handle the -v option.
11619 For --help enable the display of undocumented options if the -v
11620 switch has been included on the command line.
11621 For --help= check for overlaps in the arguments between the option
11622 classes and the language names and issue a warning when they
11623 cannot be disambiguated.
11624 * c.opt (v): Pass on to the common option handler.
11625
11626 2008-02-19 Revital Eres <eres@il.ibm.com>
11627
11628 * modulo-sched.c (sms_schedule): Change dump message when
11629 create_ddg function fails.
11630 (try_scheduling_node_in_cycle): Rename row to cycle.
11631 (print_partial_schedule): Rename CYCLE to ROW.
11632
11633 2008-02-19 Christian Bruel <christian.bruel@st.com>
11634 Zdenek Dvorak <ook@ucw.cz>
11635
11636 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
11637
11638 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
11639
11640 PR target/33555
11641 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
11642 (*x86_movdicc_0_m1_se): Ditto.
11643
11644 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
11645
11646 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
11647 (CMPtype): Define as __gcc_CMPtype.
11648 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
11649 (CMPtype): Define as __gcc_CMPtype.
11650
11651 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
11652
11653 Support valgrind 3.3 for --enable-checking=valgrind.
11654 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
11655 here.
11656 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
11657 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
11658 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
11659 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
11660 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
11661 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
11662 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
11663 respectively.
11664 * ggc-zone.c: Similar.
11665 * ggc-page.c: Similar.
11666
11667 2008-02-19 Paul Brook <paul@codesourcery.com>
11668
11669 PR target/35071
11670 * config/arm/ieee754-df.S: Fix do_it typo.
11671 * config/arm/ieee754-sf.S: Fix do_it typo.
11672
11673 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
11674
11675 PR target/35189
11676 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
11677 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
11678 (OPTION_MASK_ISA_SSE_SET): Likewise.
11679 (OPTION_MASK_ISA_SSE2_SET): Likewise.
11680 (OPTION_MASK_ISA_SSE3_SET): Likewise.
11681 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
11682 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
11683 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
11684 (OPTION_MASK_ISA_SSE4_SET): Likewise.
11685 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
11686 (OPTION_MASK_ISA_SSE5_SET): Likewise.
11687 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
11688 (OPTION_MASK_ISA_MMX_UNSET): Updated.
11689 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
11690 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
11691 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
11692 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
11693 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
11694 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
11695 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
11696 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
11697 (OPTION_MASK_ISA_SSE4): Removed.
11698 (ix86_handle_option): Turn on bits in ix86_isa_flags and
11699 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
11700 (override_options): Don't turn on implied SSE/MMX bits in
11701 ix86_isa_flags.
11702
11703 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
11704
11705 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11706 32bit host.
11707
11708 2008-02-18 Joey Ye <joey.ye@intel.com>
11709
11710 PR middle-end/34921
11711 * tree-nested.c (insert_field_into_struct): Set type alignment
11712 to field alignment if the former is less than the latter.
11713
11714 2008-02-18 Jakub Jelinek <jakub@redhat.com>
11715
11716 * BASE-VER: Set to 4.4.0.
11717
11718 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11719
11720 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
11721 * doc/cfg.texi: Likewise.
11722 * doc/extend.texi: Likewise.
11723 * doc/gty.texi: Likewise.
11724 * doc/invoke.texi: Likewise.
11725 * doc/loop.texi: Likewise.
11726 * doc/md.texi: Likewise.
11727 * doc/passes.texi: Likewise.
11728 * doc/rtl.texi: Likewise.
11729 * doc/sourcebuild.texi: Likewise.
11730 * doc/tm.texi: Likewise.
11731 * doc/tree-ssa.texi: Likewise.
11732
11733 2008-02-17 Richard Guenther <rguenther@suse.de>
11734
11735 PR middle-end/35227
11736 * tree-complex.c (init_parameter_lattice_values): Handle parameters
11737 without default definition.
11738
11739 2008-02-17 Richard Guenther <rguenther@suse.de>
11740
11741 PR tree-optimization/35231
11742 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
11743 if A | B != 1.
11744
11745 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
11746
11747 Revert:
11748 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
11749 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
11750 libgcc_cmp_return mode.
11751
11752 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11753
11754 PR c/28368
11755 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
11756
11757 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
11758
11759 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
11760 multilibs.
11761
11762 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11763
11764 * doc/c-tree.texi: Use `@.' where appropriate.
11765 * doc/extend.texi: Likewise.
11766 * doc/install.texi: Likewise.
11767 * doc/invoke.texi: Likewise.
11768 * doc/loop.texi: Likewise.
11769 * doc/makefile.texi: Likewise.
11770 * doc/md.texi: Likewise.
11771 * doc/passes.texi: Likewise.
11772 * doc/standards.texi: Likewise.
11773 * doc/tm.texi: Likewise.
11774
11775 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11776
11777 PR middle-end/35196
11778 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
11779 in entry_bb.
11780 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
11781 rather than in entry_bb.
11782
11783 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
11784
11785 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
11786 libgcc_cmp_return mode.
11787
11788 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11789
11790 PR middle-end/35130
11791 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
11792 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
11793
11794 2008-02-15 Richard Guenther <rguenther@suse.de>
11795 Zdenek Dvorak <ook@ucw.cz>
11796
11797 PR tree-optimization/35164
11798 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
11799 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
11800 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
11801 Only propagate addresses which do not have abnormal SSA_NAMEs
11802 in their operands.
11803
11804 2008-02-15 Joseph Myers <joseph@codesourcery.com>
11805
11806 PR target/35088
11807 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
11808
11809 2008-02-15 Jan Hubicka <jh@suse.cz>
11810
11811 PR middle-end/35149
11812 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
11813
11814 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
11815
11816 PR middle-end/34621
11817 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
11818 when calculating alignment_pad.
11819
11820 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
11821
11822 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
11823 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
11824 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
11825 and STACK_BOUNDARY define.
11826
11827 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
11828
11829 PR preprocessor/35061
11830 * c-pragma.c (handle_pragma_pop_macro): Check that
11831 pushed_macro_table has been allocated.
11832
11833 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
11834
11835 PR middle-end/35136
11836 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
11837 (force_gimple_operand): Likewise.
11838 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
11839 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
11840 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
11841 (find_interesting_uses_address): Check addressability and alignment
11842 of the base expression only after substituting bases of IVs into it.
11843
11844 2008-02-14 Michael Matz <matz@suse.de>
11845
11846 PR target/34930
11847 * function.c (instantiate_virtual_regs_in_insn): Reload address
11848 before falling back to reloading the whole operand.
11849
11850 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
11851
11852 * config/s390/s390.c (s390_mainpool_start): Emit the pool
11853 before the first section switch note.
11854
11855 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11856
11857 * doc/bugreport.texi: Update copyright years.
11858 * doc/c-tree.texi: Likewise.
11859 * doc/cfg.texi: Likewise.
11860 * doc/cpp.texi: Likewise.
11861 * doc/cppinternals.texi: Likewise.
11862 * doc/fragments.texi: Likewise.
11863 * doc/frontends.texi: Likewise.
11864 * doc/gcc.texi: Likewise.
11865 * doc/gty.texi: Likewise.
11866 * doc/hostconfig.texi: Likewise.
11867 * doc/implement-c.texi: Likewise.
11868 * doc/libgcc.texi: Likewise.
11869 * doc/loop.texi: Likewise.
11870 * doc/makefile.texi: Likewise.
11871 * doc/options.texi: Likewise.
11872 * doc/passes.texi: Likewise.
11873 * doc/rtl.texi: Likewise.
11874 * doc/sourcebuild.texi: Likewise.
11875 * doc/standards.texi: Likewise.
11876 * doc/tree-ssa.texi: Likewise.
11877 * doc/trouble.texi: Likewise.
11878
11879 * doc/extend.texi: Use @: or add comma where appropriate.
11880 * doc/invoke.texi: Likewise.
11881 * doc/tm.texi: Likewise.
11882
11883 2008-02-14 Alan Modra <amodra@bigpond.net.au>
11884
11885 PR target/34393
11886 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
11887 to a reg.
11888
11889 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
11890
11891 * doc/md.texi (clz, ctz): Add reference.
11892 * doc/rtl.texi (clz, ctz): Likewise.
11893
11894 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11895
11896 PR other/35148
11897 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
11898 srcdir.
11899
11900 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
11901
11902 * config/s390/s390.c (struct constant_pool): New field
11903 emit_pool_after added.
11904 (s390_mainpool_start): Set the emit_pool_after flag according
11905 to the section switch notes.
11906 (s390_mainpool_finish): Consider emit_pool_after when emitting
11907 the literal pool at the end of the function.
11908 (s390_chunkify_start): Force literal pool splits at section
11909 switch notes.
11910
11911 2008-02-13 Michael Matz <matz@suse.de>
11912
11913 PR debug/35065
11914 * var-tracking.c (clobber_variable_part): Correctly traverse the
11915 list.
11916
11917 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11918
11919 PR 29673
11920 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
11921 Add -fdump-ipa-inline.
11922 * tree-dump.c (dump_files): Remove tree-inlined dump.
11923 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
11924
11925 2008-02-12 Richard Guenther <rguenther@suse.de>
11926
11927 PR tree-optimization/35171
11928 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
11929 default defs.
11930
11931 2008-02-12 Richard Guenther <rguenther@suse.de>
11932
11933 PR middle-end/35163
11934 * fold-const.c (fold_widened_comparison): Use get_unwidened in
11935 value-preserving mode. Disallow final truncation.
11936
11937 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
11938
11939 PR middle-end/35136
11940 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
11941 code from here to...
11942 (force_gimple_operand): ...here.
11943
11944 2008-02-12 Jakub Jelinek <jakub@redhat.com>
11945
11946 PR c++/35144
11947 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
11948 non-compatible pointers.
11949 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
11950 different FIELD_DECLs, try harder by comparing field offsets, sizes
11951 and types.
11952
11953 PR inline-asm/35160
11954 * function.c (match_asm_constraints_1): Don't replace the same input
11955 multiple times.
11956
11957 2008-02-12 Anatoly Sokolov <aesok@post.ru>
11958
11959 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
11960 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
11961 (expand_epilogue): Restore RAMPZ register.
11962 * config/avr/avr.md (RAMPZ_ADDR): New constant.
11963
11964 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
11965
11966 * config/i386/cygwin.asm: (__alloca): Correct calling
11967 convention and alignment.
11968 (__chkstk): Force 8 byte stack alignment.
11969
11970 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
11971 Richard Guenther <rguenther@suse.de>
11972
11973 PR tree-optimization/33992
11974 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
11975 the zero we compare against.
11976
11977 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
11978
11979 PR libfortran/35063
11980 * gthr-win32.h (__gthread_mutex_destroy_function): New function
11981 to CloseHandle after unlocking to prevent accumulation of handle
11982 count.
11983
11984 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11985
11986 PR middle_end/34150
11987 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
11988 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
11989 and update LABEL_NUSES during and after reload.
11990
11991 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
11992
11993 PR middle-end/34627
11994 * combine.c (simplify_if_then_else): Make sure the comparison is
11995 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
11996
11997 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
11998
11999 PR bootstrap/35051
12000 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
12001 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
12002 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
12003 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
12004 * tree.h (get_type_static_bounds): Likewise.
12005
12006 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12007
12008 * doc/invoke.texi (Option Summary, C++ Dialect Options)
12009 (Objective-C and Objective-C++ Dialect Options, Warning Options):
12010 Make -Wfoo language annotations match what the compiler outputs.
12011
12012 2008-02-08 Sa Liu <saliu@de.ibm.com>
12013
12014 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
12015 intrinsics spu_convts, spu_convtu, spu_convtf.
12016
12017 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
12018
12019 * doc/extend.texi (Function Attributes) <noinline>: Mention
12020 asm ("") as method to keep calls.
12021
12022 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12023
12024 PR other/32754
12025 * doc/options.texi (Options): Replace references to opts.sh with
12026 optc-gen.awk.
12027 * opts-common.c: Likewise.
12028 * optc-gen.awk: Likewise.
12029
12030 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
12031
12032 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
12033
12034 2008-02-07 Richard Henderson <rth@redhat.com>
12035
12036 PR rtl-opt/33410
12037 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
12038 EXPR_LIST for the REG_EQUAL instead of a comparison with a
12039 funny mode.
12040
12041 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
12042
12043 PR tree-optimization/35085
12044 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
12045 for operand entry oe2 in addition to operand entry oe3 in order to
12046 expose more opportunities for vectorizer sum reduction.
12047
12048 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12049
12050 PR other/35107
12051 * Makefile.in (LIBS): Remove $(GMPLIBS).
12052 (cc1-dummy, cc1): Add $(GMPLIBS).
12053
12054 2008-02-06 Jan Hubicka <jh@suse.cz>
12055
12056 PR target/23322
12057 * i386.md (moddf_integer): Do not produce partial memory stalls for
12058 targets where it hurts.
12059
12060 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
12061
12062 PR target/35083
12063 * optabs.c (expand_float): Do not check for decimal modes when
12064 expanding unsigned integer through signed conversion.
12065
12066 2008-02-06 Nick Clifton <nickc@redhat.com>
12067
12068 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
12069 inside the clobber with a match_operand and duplicated operand
12070 number in the constraint.
12071 (ineqbranchsi): Delete redundant comment.
12072
12073 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
12074
12075 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
12076 builtin_define ("__USE_INIT_FINI__").
12077 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
12078 -msx multilibs.
12079 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
12080
12081 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12082
12083 PR documentation/30330
12084 * doc/invoke.texi (C++ Dialect Options)
12085 (Objective-C and Objective-C++ Dialect Options, Warning Options):
12086 For each warning option -Wfoo that allows -Wno-foo, ensure both
12087 -Wfoo and -Wno-foo are listed in the option index. Fix index
12088 entry of -Wswitch-default, index -Wnormalized= including the
12089 `=', and -Wlarger-than-@var{len} including @var{len}.
12090
12091 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
12092
12093 * config/i386/i386.md (floatunssisf2): Use
12094 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
12095 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
12096 Macroize expander using MODEF mode iterator.
12097
12098 2008-02-05 Diego Novillo <dnovillo@google.com>
12099
12100 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
12101
12102 PR 33738
12103 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
12104
12105 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12106
12107 PR other/35070
12108 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
12109
12110 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
12111
12112 PR target/35084
12113 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
12114 to indicate if a message should be generated.
12115 (init_cumulative_args): Updated.
12116 (function_value_32): Likewise.
12117
12118 2008-02-05 Joseph Myers <joseph@codesourcery.com>
12119
12120 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
12121
12122 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
12123
12124 PR target/35083
12125 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
12126 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
12127
12128 2008-02-04 Diego Novillo <dnovillo@google.com>
12129
12130 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
12131
12132 PR 33738
12133 * tree-vrp.c (vrp_evaluate_conditional): With
12134 -Wtype-limits, emit a warning when comparing against a
12135 constant outside the natural range of OP0's type.
12136
12137 2008-02-04 Richard Guenther <rguenther@suse.de>
12138
12139 PR middle-end/33631
12140 * expr.c (count_type_elements): Give for unions instead of
12141 guessing.
12142
12143 2008-02-04 Richard Guenther <rguenther@suse.de>
12144
12145 PR middle-end/35043
12146 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
12147 to TYPE_DOMAINs base type instead of using bitsizetype here.
12148
12149 2008-02-03 Jason Merrill <jason@redhat.com>
12150
12151 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
12152
12153 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12154
12155 PR other/29972
12156 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
12157 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
12158 (RS/6000 and PowerPC Options): Fix typos and markup.
12159 * doc/passes.texi (Tree-SSA passes): Likewise.
12160
12161 2008-02-02 Michael Matz <matz@suse.de>
12162
12163 PR target/35045
12164 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
12165 from record_last_reg_set_info.
12166 (record_last_reg_set_info): Take an RTX argument, iterate over all
12167 constituent hardregs.
12168 (record_last_set_info, record_opr_changes): Change calls to
12169 new signature or to record_last_reg_set_info_regno.
12170
12171 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12172
12173 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
12174
12175 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
12176
12177 PR rtl-optimization/34773
12178 * reg-notes.def (EQUAL): Mention significance of combination of
12179 REG_EQUAL and REG_RETVAL.
12180 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
12181 insn that has a REG_RETVAL.
12182
12183 2008-02-01 Roger Sayle <roger@eyesopen.com>
12184
12185 PR bootstrap/33781
12186 * configure.ac (--enable-fixed-point): Disable unless explicitly
12187 requested on IRIX.
12188 * configure: Regenerate.
12189
12190 2008-02-01 Richard Guenther <rguenther@suse.de>
12191
12192 PR other/35042
12193 * invoke.texi (-finline-limit): Remove no longer true parts
12194 of the documentation. Note that there is no default value.
12195
12196 2008-02-01 Andrew Pinski <pinskia@gmail.com>
12197 Mark Mitchell <mark@codesourcery.com>
12198 Ben Elliston <bje@au.ibm.com>
12199
12200 PR c/29326
12201 * doc/extend.texi (Other Builtins): Document.
12202
12203 2008-01-31 Tom Browder <tom.browder@gmail.com>
12204
12205 * doc/c-tree.texi (Types): Fix grammar.
12206 (Expression trees): Ditto.
12207 * doc/passes.texi (Tree-SSA passes): Ditto.
12208
12209 * doc/configterms.texi (Configure Terms): Fix typo.
12210 * doc/cpp.texi (Common Predefined Macros): Ditto.
12211 * doc/md.texi (Machine Constraints): Ditto.
12212
12213 * doc/makefile.texi (Makefile): Add comma.
12214
12215 2008-01-31 Tom Browder <tom.browder@gmail.com>
12216 Gerald Pfeifer <gerald@pfeifer.com>
12217
12218 * doc/sourcebuild.texi (Front End): Remove references to CVS
12219 and CVSROOT/modules.
12220 (Texinfo Manuals): Replace reference to CVS by one to SVN.
12221 (Back End): Remove reference to CVS.
12222
12223 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
12224
12225 PR target/34900
12226 * config/mips/mips.c (gen_load_const_gp): New function, taking a
12227 comment from...
12228 (mips16_gp_pseudo_reg): ...here.
12229 * config/mips/mips.md (load_const_gp): Replace with...
12230 (load_const_gp_<mode>): ...this :P-based insn.
12231
12232 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12233
12234 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
12235 options. Minor fixes.
12236 (-std): Move reference to standards closer to where language
12237 standards are first mentioned.
12238
12239 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
12240
12241 PR rtl-optimization/34995
12242 * reload.c (alternative_allows_const_pool_ref): Take an rtx
12243 parameter and return a bool. If the rtx parameter is nonnull,
12244 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
12245 (find_reloads): Update call accordingly. Pass the new operand
12246 if it needed no address reloads, otherwise pass null.
12247
12248 2008-01-30 Richard Henderson <rth@redhat.com>
12249
12250 PR c/34993
12251 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
12252 for unbounded arrays.
12253
12254 2008-01-30 Silvius Rus <rus@google.com>
12255
12256 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
12257
12258 2008-01-30 Jan Hubicka <jh@suse.cz>
12259
12260 PR target/34982
12261 * i386.c (init_cumulative_args): Use real function declaration when
12262 calling locally.
12263
12264 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
12265
12266 PR rtl-optimization/34998
12267 * global.c (build_insn_chain): Treat non-subreg_lowpart
12268 SUBREGs of pseudos as clobbering all the words covered by the
12269 SUBREG, not just all the bytes.
12270 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
12271 original df_ref rather than an extract parameter.
12272 (global_conflicts): Update call accordingly.
12273
12274 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
12275
12276 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
12277 the overflow check to make it easier to read.
12278 (__fixtfdi): Change the type of the ll member in union
12279 long_double to UDItype_x.
12280
12281 2008-01-30 Jakub Jelinek <jakub@redhat.com>
12282
12283 PR middle-end/34969
12284 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
12285 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
12286 * tree-inline.c (fold_marked_statements): Call
12287 cgraph_update_edges_for_call_stmt if folding a call statement.
12288 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
12289 debug_generic_stmt calls, reset it back afterwards.
12290
12291 PR c/35017
12292 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
12293 static decls.
12294 * c-typeck.c (build_external_ref): Don't pedwarn about
12295 static vars in current function's scope.
12296
12297 2008-01-29 Joseph Myers <joseph@codesourcery.com>
12298
12299 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
12300
12301 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
12302
12303 PR c/35002
12304 * ipa-struct-reorg.c: Fix spelling.
12305 * params.def: Ditto.
12306
12307 2008-01-29 Richard Guenther <rguenther@suse.de>
12308
12309 PR middle-end/35006
12310 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
12311 field.
12312 * tree-inline.c (remap_type): Increment remapping_type_depth
12313 around remapping types.
12314 (copy_body_r): Only add referenced variables if they are referenced
12315 from code, not types.
12316
12317 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
12318
12319 PR c++/34055
12320 PR c++/34103
12321 PR c++/34219
12322 PR c++/34606
12323 PR c++/34753
12324 PR c++/34754
12325 PR c++/34755
12326 PR c++/34919
12327 PR c++/34961
12328 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
12329 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
12330
12331 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
12332
12333 PR target/34412
12334 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
12335 pointer for tiny stack.
12336
12337 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
12338
12339 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
12340
12341 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
12342
12343 * config/vx-common.h: Fix typo in comment.
12344
12345 2008-01-28 Ian Lance Taylor <iant@google.com>
12346
12347 PR c++/34862
12348 PR c++/33407
12349 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12350 coalesce pointers if they have different DECL_NO_TBAA_P values.
12351 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
12352 between variables with different DECL_NO_TBAA_P values.
12353
12354 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
12355
12356 PR 31535
12357 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
12358 are not legitimate small data references on SPE targets.
12359
12360 2008-01-28 David Daney <ddaney@avtrex.com>
12361
12362 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
12363
12364 2008-01-28 David Daney <ddaney@avtrex.com>
12365
12366 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
12367
12368 2008-01-27 Joseph Myers <joseph@codesourcery.com>
12369
12370 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
12371 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
12372 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
12373 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
12374 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
12375 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
12376 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
12377 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
12378
12379 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
12380
12381 * basic-block.h (condjump_equiv_p): Fix comment.
12382
12383 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
12384
12385 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
12386 print_generic_stmt_indented): Fix comment.
12387
12388 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
12389
12390 * configure.ac (__stack_chk_fail): Add detecion for availability
12391 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
12392 * configure: Regenerate.
12393
12394 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
12395
12396 PR middle-end/34688
12397 * final.c (output_addr_const): Handle TRUNCATE.
12398
12399 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
12400
12401 PR target/34711
12402 * tree-ssa-loop-ivopts.c (comp_cost): New type.
12403 (zero_cost, infinite_cost): New constants.
12404 (struct cost_pair): Change type of cost to comp_cost.
12405 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
12406 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
12407 New functions.
12408 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
12409 split_address_cost, ptr_difference_cost, difference_cost,
12410 get_computation_cost_at, get_computation_cost,
12411 determine_use_iv_cost_generic, determine_use_iv_cost_address,
12412 determine_use_iv_cost_condition, determine_use_iv_costs,
12413 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
12414 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
12415 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
12416 Change type of cost to comp_cost.
12417 (determine_iv_cost): Increase cost of non-original ivs, instead
12418 of decreasing the cost of original ones.
12419 (get_address_cost): Indicate the complexity of the addressing mode
12420 in comp_cost.
12421 (try_add_cand_for): Prefer using ivs not specific to some object.
12422 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
12423
12424 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
12425 Janis Johnson <janis187@us.ibm.com>
12426
12427 PR target/34814
12428 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
12429 (TARGET_INSTANTIATE_DECLS): Likewise.
12430 * target.h (expand_to_rtl_hook): New target hook.
12431 (instantiate_decls): Likewise.
12432 * function.c (instantiate_decl): Make non-static. Rename to...
12433 (instantiate_decl_rtl): ... this.
12434 (instantiate_expr): Use instantiate_decl_rtl.
12435 (instantiate_decls_1): Likewise.
12436 (instantiate_decls): Likewise.
12437 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
12438 * function.h (instantiate_decl_rtl): Add prototype.
12439 * cfgexpand.c (target.h): New include.
12440 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
12441 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
12442 (TARGET_INSTANTIATE_DECLS): Likewise.
12443 (TARGET_INITIALIZER): New target hooks added.
12444 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
12445 New prototype.
12446 * config/rs6000/rs6000.c (tree-flow.h): New include.
12447 (machine_function): Add sdmode_stack_slot field.
12448 (rs6000_alloc_sdmode_stack_slot): New function.
12449 (rs6000_instantiate_decls): Likewise.
12450 (rs6000_secondary_memory_needed_rtx): Likewise.
12451 (rs6000_check_sdmode): Likewise.
12452 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
12453 (TARGET_INSTANTIATE_DECLS): Likewise.
12454 (rs6000_hard_regno_mode_ok): Allow SDmode.
12455 (num_insns_constant): Likewise. Handle _Decimal32 constants.
12456 (rs6000_emit_move): Handle SDmode.
12457 (function_arg_advance): Likewise.
12458 (function_arg): Likewise.
12459 (rs6000_gimplify_va_arg): Likewise. Add special handling of
12460 SDmode var args for 32-bit compiles.
12461 (rs6000_secondary_reload_class): Handle SDmode.
12462 (rs6000_output_function_epilogue): Likewise.
12463 (rs6000_function_value): Simplify if statement.
12464 (rs6000_libcall_value): Likewise.
12465 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
12466 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
12467 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
12468 (movsd_hardfloat): New define_insn.
12469 (movsd_softfloat): Likewise.
12470 (movsd_store): Likewise.
12471 (movsd_load): Likewise.
12472 (extendsddd2): Likewise.
12473 (extendsdtd2): Likewise.
12474 (truncddsd2): Likewise.
12475 (movdd_hardfloat64): Fixup comment.
12476 (UNSPEC_MOVSD_LOAD): New constant.
12477 (UNSPEC_MOVSD_STORE): Likewise.
12478
12479 2008-01-26 Jakub Jelinek <jakub@redhat.com>
12480
12481 PR c++/34965
12482 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
12483 TRUTH_XOR_EXPR.
12484 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
12485 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
12486 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
12487 and TRUTH_XOR_EXPR.
12488
12489 2008-01-26 David Edelsohn <edelsohn@gnu.org>
12490
12491 PR target/34794
12492 * config.gcc: Separate AIX 5.3 from AIX 6.1.
12493 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
12494 __LONGDOUBLE128 too.
12495 * config/rs6000/aix61.h: New file.
12496
12497 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
12498
12499 PR rtl-optimization/34959
12500 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
12501 popcount and parity rtxes the same mode as their operand.
12502 Truncate or extend the result to the return value's mode
12503 if necessary.
12504
12505 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
12506
12507 PR target/34981
12508 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
12509 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
12510 to GOT_VERSION_REGNUM.
12511 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
12512 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
12513 * config/mips/mips.c (mips_emit_call_insn): New function.
12514 (mips_call_tls_get_addr): Call mips_expand_call directly.
12515 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
12516 emit_call_insn.
12517 (mips16_build_call_stub): Likewise. Return the call insn or null.
12518 (mips_expand_call): Update the call to mips16_build_call_stub
12519 accordingly and a remove redundant condition. Assert that MIPS16
12520 stubs do not use lazy binding. Use mips_emit_call_insn and return
12521 the call insn.
12522 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
12523 TARGET_USE_GOT.
12524 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
12525 (mips_avoid_hazard): Remove hazard_set handling.
12526 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
12527 (UNSPEC_RESTORE_GP): ...this.
12528 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
12529 (FAKE_CALL_REGNO): Rename to...
12530 (GOT_VERSION_REGNUM): ...this.
12531 (type): Add "ghost" value. Add an associated insn reservation.
12532 (hazard_set): Remove.
12533 (exception_receiver): Rename to...
12534 (restore_gp): ...this and update the unspec identifier accordingly.
12535 (exception_receiver, nonlocal_got_receiver): New expanders.
12536 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
12537 FAKE_CALL_REGNO. Remove hazard_set attribute.
12538 (set_got_version, update_got_version): New patterns.
12539
12540 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
12541
12542 PR target/34970
12543 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
12544
12545 2008-01-25 Joseph Myers <joseph@codesourcery.com>
12546
12547 PR other/31955
12548 * doc/install.texi2html: Generate gcc-vers.texi.
12549
12550 2008-01-25 DJ Delorie <dj@redhat.com>
12551
12552 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
12553
12554 2008-01-25 Joseph Myers <joseph@codesourcery.com>
12555
12556 * config/c4x: Remove directory.
12557 * config.gcc (crx-*, mt-*): Mark obsolete.
12558 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
12559 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
12560 sh-*-rtemscoff*): Remove cases.
12561 * defaults.h (C4X_FLOAT_FORMAT): Remove.
12562 * real.c (encode_c4x_single, decode_c4x_single,
12563 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
12564 c4x_extended_format): Remove.
12565 * real.h (c4x_single_format, c4x_extended_format): Remove.
12566 * doc/extend.texi (interrupt, naked): Remove mention of attributes
12567 on C4x.
12568 (Pragmas): Remove comment about c4x pragmas.
12569 * doc/install.texi (c4x): Remove target-specific instructions.
12570 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
12571 * doc/md.texi (Machine Constraints): Remove C4x documentation.
12572 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
12573 refer to C4x source files as examples.
12574 (C4X_FLOAT_FORMAT): Remove documentation.
12575
12576 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
12577
12578 * config/bfin/bfin.c (override_options): Reorder tests so that
12579 flag_pic gets enabled for -msep-data.
12580
12581 2008-01-25 Richard Guenther <rguenther@suse.de>
12582
12583 PR middle-end/32244
12584 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
12585 to its bitfield precision if required.
12586
12587 2008-01-25 Jakub Jelinek <jakub@redhat.com>
12588
12589 PR middle-end/33880
12590 * tree-nested.c (walk_omp_for): New function.
12591 (convert_nonlocal_reference, convert_local_reference): Call
12592 walk_omp_for on OMP_FOR.
12593 (convert_call_expr): Call walk_body on OMP_FOR's
12594 OMP_FOR_PRE_INIT_BODY.
12595
12596 2008-01-25 Richard Guenther <rguenther@suse.de>
12597
12598 PR tree-optimization/34966
12599 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
12600 default defs and PHI_NODEs we have to insert after the
12601 defining statement.
12602
12603 2008-01-24 Nick Clifton <nickc@redhat.com>
12604
12605 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
12606 Provide a default definition.
12607 (LIBGCC2_UNITS_PER_WORD): Likewise.
12608
12609 * config/stormy16/stormy16.c: Include df.h for the prototype
12610 for df_regs_ever_live_p.
12611 (xstormy16_expand_builtin_va_start): Convert the stack offset
12612 into a component_ref and then use POINTER_PLUS_EXPR to add it
12613 to the incoming_virtual_args_rtx.
12614 (xstormy16_gimplify_va_arg_expr): Rename to
12615 xstormy16_gimplify_va_arg_expr.
12616 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
12617 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
12618 xstormy16_gimplify_va_arg_expr.
12619 Fix up some formatting issues.
12620
12621 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
12622 Move to predicates.md.
12623 (xs_hi_general_operand): Likewise.
12624 (xs_hi_nonmemory_operand): Likewise.
12625 * config/stormy16/predicates.md:
12626 (xstormy16_carry_plus_operand): New predicate.
12627 (xs_hi_general_operand): New predicate.
12628 (xs_hi_nonmemory_operand): New predicate.
12629 * config/stormy16/stormy16-protos.h:
12630 (xstormy16_carry_plus_operand): Delete prototype.
12631 (xs_hi_general_operand): Likewise.
12632 (xs_hi_nonmemory_operand): Likewise.
12633
12634 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
12635 modifiers as they are no longer needed and they can trigger
12636 reload spill failures.
12637
12638 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
12639 with a match_operand in order to help reload.
12640
12641 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
12642 constraint with 'e' for the 8th alternative as this version of
12643 the mov.w instruction only accepts the lower 8 registers.
12644
12645 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
12646
12647 PR target/34856
12648 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
12649 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
12650 vector elements.
12651
12652 2008-01-25 Jakub Jelinek <jakub@redhat.com>
12653
12654 PR middle-end/33333
12655 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
12656
12657 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
12658
12659 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
12660 New functions.
12661 (remove_structure): Update allocations list before removing structure.
12662
12663 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
12664
12665 * ipa-struct-reorg.c (is_safe_cond_expr,
12666 create_new_stmts_for_cond_expr): Use integer_zerop function,
12667 that recognize not only zero-pointer, but zero-integer too.
12668
12669 2008-01-25 Ben Elliston <bje@au.ibm.com>
12670
12671 PR other/22232
12672 * fixproto: Escape "." in sed expression that strips leading "./".
12673
12674 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
12675
12676 PR driver/34904
12677 * gcc.c (SWITCH_OK): Removed.
12678 (SWITCH_LIVE): Changed to bit.
12679 (SWITCH_FALSE): Likewise.
12680 (SWITCH_IGNORE): Likewise.
12681 (switchstr): Change live_cond to unsigned int.
12682 (process_command): Replace SWITCH_OK with 0.
12683 (do_self_spec): Likewise.
12684 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
12685 (give_switch): Likewise.
12686 (used_arg): Likewise.
12687 (do_spec_1): Set the SWITCH_IGNORE bit.
12688 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
12689 bits. Set the SWITCH_LIVE bit.
12690
12691 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
12692
12693 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
12694
12695 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
12696
12697 PR tree-optimization/34472
12698 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
12699 parameter to a "bool *" and set *DATA to false if there is
12700 an unsafe access. Do not delete the structure here.
12701 (check_cond_exprs): Delete it here instead.
12702 (check_cond_exprs, exclude_cold_structs): Do not increase
12703 I when removing a structure.
12704
12705 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
12706
12707 PR target/34856
12708 * config/i386/i386.c (ix86_expand_vector_init): Consider only
12709 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
12710
12711 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
12712
12713 PR middle-end/34934
12714 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
12715 a fixed vector for stack.
12716
12717 2008-01-24 Ben Elliston <bje@au.ibm.com>
12718
12719 PR c++/25701
12720 * doc/gcc.texi (Software development): Add a direntry for g++.
12721
12722 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
12723
12724 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
12725 stale and straggling -fforce-addr comments above.
12726
12727 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
12728 define.
12729 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
12730 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
12731
12732 2008-01-23 Michael Matz <matz@suse.de>
12733
12734 PR debug/34895
12735 * dwarf2out.c (force_type_die): Use modified_type_die instead of
12736 gen_type_die.
12737
12738 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
12739
12740 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
12741 malloc result type.
12742
12743 2008-01-23 Anatoly Sokolov <aesok@post.ru>
12744
12745 * config/avr/avr.c (avr_current_arch): New variable.
12746 (avr_arch_types): Add 'avr31' and 'avr51' entries.
12747 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
12748 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
12749 (avr_override_options): Init 'avr_current_arch'.
12750 (base_arch_s): Move from here...
12751 * config/avr/avr.h (base_arch_s): ... here. Add new members
12752 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
12753 'mega' to 'have_jmp_call'.
12754 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
12755 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
12756 macros.
12757 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
12758 architectures.
12759 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12760 MULTILIB_MATCHES): (Ditto.).
12761
12762 2008-01-23 Richard Guenther <rguenther@suse.de>
12763
12764 PR middle-end/31529
12765 * cgraphunit.c (cgraph_reset_node): Always mark the node
12766 not reachable if it is not queued already.
12767
12768 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
12769
12770 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
12771 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
12772 (cputype_selected): New static variable.
12773 (bfin_handle_option): Set it if -mcpu is used.
12774 (override_option): Select default set of workarounds if no cpu type
12775 selected on the command line.
12776 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
12777
12778 From Michael Frysinger <michael.frysinger@analog.com>
12779 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
12780 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
12781
12782 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
12783 for bf547, bf523, bf524, and bf526.
12784 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
12785 bf526.
12786 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12787 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
12788 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
12789 __ADSPBF547__ and __ADSPBF54x__ for bf547.
12790 * doc/invoke.texi (Blackfin Options): Document that
12791 -mcpu now accept bf547, bf523, bf524, and bf526.
12792
12793 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
12794
12795 PR rtl-optimization/34628
12796 * combine.c (try_combine): Stop and undo after the first combination
12797 if an autoincrement side-effect on the first insn has effectively
12798 been lost.
12799
12800 2008-01-22 David Edelsohn <edelsohn@gnu.org>
12801
12802 PR target/34529
12803 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
12804 Offset addresses are not valid for Altivec or paired float modes.
12805
12806 2008-01-22 Jakub Jelinek <jakub@redhat.com>
12807
12808 PR c++/34607
12809 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
12810 if DECL_INITIAL (decl) is error_mark_node.
12811
12812 PR c++/34914
12813 * c-common.c (handle_vector_size_attribute): Only allow
12814 integral, scalar float and fixed point types. Handle OFFSET_TYPE
12815 the same way as pointer, array etc. types.
12816 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
12817
12818 PR c++/34917
12819 * tree.c (build_type_attribute_qual_variant): Call
12820 build_qualified_type if attributes are equal, but quals are not.
12821
12822 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12823
12824 PR 32102
12825 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
12826 * flags.h (warn_strict_aliasing): Remove.
12827 (warn_strict_overflow): Remove.
12828 * opts.c (warn_strict_aliasing): Remove.
12829 (warn_strict_overflow): Remove.
12830 * c-opts.c (c_common_handle_option): -Wall only sets
12831 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
12832 (c_common_post_options): Give default values to -Wstrict-aliasing
12833 and -Wstrict-overflow if they are uninitialized.
12834 * common.opt (Wstrict-aliasing): Specify Var and Init.
12835 (Wstrict-overflow): Likewise.
12836
12837 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
12838
12839 PR rtl-optimization/26854
12840 PR rtl-optimization/34400
12841 PR rtl-optimization/34884
12842 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
12843 DF_RD->gen.
12844 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
12845 (df_rd_bb_info.expanded_lr_out): Deleted
12846 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
12847 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
12848 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
12849 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
12850 Removed code to allocate, initialize or free expanded_lr_out.
12851 (df_rd_bb_local_compute_process_def): Restructured to make more
12852 understandable.
12853 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
12854 sets if the sets are being trimmed.
12855
12856 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
12857
12858 PR bootstrap/32287
12859 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
12860 (as_vers): Likewise.
12861 * configure: Regenerated.
12862
12863 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12864
12865 PR middle-end/33092
12866 * tree-pass.h (pass_build_alias): New pass.
12867 * tree-ssa-alias.c (gate_build_alias): New.
12868 (pass_build_alias): New.
12869 * passes.c (init_optimization_passes): Add pass_build_alias after
12870 pass_create_structure_vars.
12871
12872 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
12873
12874 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
12875 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
12876 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
12877 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
12878 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
12879 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
12880 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
12881 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
12882 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
12883 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
12884 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
12885 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
12886 * config/s390/s390.md (FP_ALL): New mode iterator.
12887 (_d): New mode attribute.
12888 ("*signbit<mode>2>"): Changed mode of first operand.
12889 ("isinf<mode>2"): Changed mode of first operand.
12890 ("*TDC_insn"): Adaptation for DFP modes.
12891
12892 2008-01-22 Ben Elliston <bje@au.ibm.com>
12893
12894 * tree.c (check_qualified_type): Improve function description.
12895
12896 2008-01-21 Jason Merrill <jason@redhat.com>
12897
12898 PR c++/34196
12899 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
12900 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
12901 if it is set.
12902
12903 2008-01-21 DJ Delorie <dj@redhat.com>
12904
12905 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
12906 return zero.
12907
12908 2008-01-21 Richard Guenther <rguenther@suse.de>
12909
12910 PR middle-end/34856
12911 * tree-cfg.c (verify_expr): Allow all invariant expressions
12912 instead of just constant class ones as reference argument.
12913 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
12914 like any other constant.
12915 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
12916
12917 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
12918
12919 * regmove.c (fixup_match_1): Update call crossed frequencies.
12920
12921 2008-01-21 Richard Guenther <rguenther@suse.de>
12922
12923 PR c/34885
12924 * tree-inline.c (setup_one_parameter): Deal with mismatched
12925 types using a VIEW_CONVERT_EXPR.
12926
12927 2008-01-21 Alon Dayan <alond@il.ibm.com>
12928 Olga Golovanevsky <olga@il.ibm.com>
12929
12930 PR tree-optimization/34701
12931 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
12932 when the structure size is not a power of 2.
12933
12934 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
12935
12936 * doc/install.texi: Add doc for --enable-checking=df.
12937
12938 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
12939
12940 PR rtl-optimization/34808
12941 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
12942
12943 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
12944
12945 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
12946 input.
12947
12948 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
12949
12950 PR rtl-optimization/26854
12951 PR rtl-optimization/34400
12952 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
12953 DF_RD->gen.
12954 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
12955 (df_rd_bb_info.expanded_lr_out): New.
12956 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
12957 * loop_iv.c (iv_analysis_loop_init): Ditto.
12958 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
12959 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
12960 Added code to allocate, initialize or free expanded_lr_out.
12961 (df_rd_bb_local_compute_process_def): Restructured to make
12962 more understandable.
12963 (df_rd_confluence_n): Add code to do nothing with fake edges and
12964 code to no apply invalidate_by_call sets if the sets are being trimmed.
12965 (df_lr_local_finalize): Renamed to df_lr_finalize.
12966 (df_live_local_finalize): Renamed to df_live_finalize.
12967
12968 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
12969
12970 PR target/34831
12971 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
12972 deciding whether to use reciprocal instructions.
12973
12974 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
12975
12976 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
12977 dwarf2out_note_section_used if cold_text_section is NULL.
12978
12979 2008-01-19 Jakub Jelinek <jakub@redhat.com>
12980
12981 PR gcov-profile/34610
12982 * tree-cfg.c (make_edges): Mark both outgoing edges from
12983 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
12984 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
12985 from OMP_FOR and OMP_CONTINUE outgoing edges.
12986
12987 * tree-profile.c (tree_profiling): Return early if
12988 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
12989 at the end.
12990 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
12991 from cfun to child_cfun.
12992 * function.h (struct function): Add after_tree_profile bit.
12993
12994 2008-01-19 Anatoly Sokolov <aesok@post.ru>
12995
12996 * config/avr/avr.S (_exit): Disable interrupt.
12997
12998 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
12999 Steven Bosscher <stevenb.gcc@gmail.com>
13000
13001 PR rtl-optimization/26854
13002 PR rtl-optimization/34400
13003 * df-problems.c (df_live_scratch): New scratch bitmap.
13004 (df_live_alloc): Allocate df_live_scratch when doing df_live.
13005 (df_live_reset): Clear the proper bitmaps.
13006 (df_live_bb_local_compute): Only process the artificial defs once
13007 since the order is not important.
13008 (df_live_init): Init the df_live sets only with the variables
13009 found live by df_lr.
13010 (df_live_transfer_function): Use the df_lr sets to prune the
13011 df_live sets as they are being computed.
13012 (df_live_free): Free df_live_scratch.
13013
13014 2008-01-18 Ian Lance Taylor <iant@google.com>
13015
13016 * common.opt: Add fmerge-debug-strings.
13017 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
13018 flag_merge_debug_strings rather than flag_merge_constants.
13019 * doc/invoke.texi (Option Summary): Mention
13020 -fmerge-debug-strings.
13021 (Debugging Options): Document -fmerge-debug-strings.
13022
13023 2008-01-18 Ian Lance Taylor <iant@google.com>
13024
13025 PR c++/33407
13026 * tree.h (DECL_IS_OPERATOR_NEW): Define.
13027 (struct tree_function_decl): Add new field operator_new_flag.
13028 * tree-inline.c (expand_call_inline): When inlining a call to
13029 operator new, force the return value to go into a variable, and
13030 set DECL_NO_TBAA_P on that variable.
13031 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
13032
13033 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
13034
13035 PR debug/34484
13036 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
13037 DWARF2_DEBUGGING_INFO.
13038 (dwarf2out_note_section_used): Ditto. Add prototype.
13039 (have_multiple_function_sections, text_section_used,
13040 cold_text_section_used, *cold_text_sections): Move declarations
13041 before their uses.
13042
13043 2008-01-17 Bob Wilson <bob.wilson@acm.org>
13044
13045 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
13046 field and add signal_ra.
13047 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
13048 assignments to frame state pc. Move end of stack check after
13049 MD_FALLBACK_FRAME_STATE_FOR.
13050 (uw_update_context_1): Use frame state signal_regs if set, instead
13051 of checking signal_frame flag.
13052 (uw_update_context): Use frame state signal_ra if set.
13053 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
13054 * config/xtensa/linux-unwind.h: New file.
13055
13056 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
13057
13058 * modulo-sched.c (get_sched_window): Fix comment typo.
13059
13060 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
13061
13062 PR tree-optimization/34648
13063 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
13064
13065 2008-01-17 Anatoly Sokolov <aesok@post.ru>
13066
13067 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
13068 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
13069
13070 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
13071
13072 PR rtl-optimization/34400
13073 * df-core.c (df_worklist_dataflow_overeager,
13074 df_worklist_dataflow_doublequeue): New functions.
13075 (df_worklist_dataflow): Two different worklist solvers.
13076 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
13077 New param.
13078
13079 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
13080
13081 PR testsuite/34821
13082 * doc/invoke.texi: Document the dependence on pthread for fopenmp
13083 and ftree-parallelize-loops.
13084
13085 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
13086
13087 PR rtl-optimization/34826
13088 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
13089
13090 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
13091
13092 * global.c (find_reg): Mark the eh regs as used if necessary.
13093 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
13094 * ra.h (struct allocno): no_eh_reg field added. Changed
13095 no_stack_reg type to bitfield.
13096
13097 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
13098
13099 * tree.c (substitute_in_expr): Add missing 'break'.
13100
13101 2008-01-17 Richard Guenther <rguenther@suse.de>
13102
13103 PR tree-optimization/34825
13104 * tree-ssa-math-opts.c (is_division_by): Do not recognize
13105 x / x as division to handle.
13106
13107 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13108
13109 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
13110 "-pthread" is specified.
13111 * pa-hpux11.h (LIB_SPEC): Likewise.
13112
13113 2008-01-16 Janis Johnson <janis187@us.ibm.com>
13114 Peter Bergner <bergner@vnet.ibm.com>
13115
13116 PR rtl-optimization/33796
13117 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
13118
13119 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13120
13121 PR libgfortran/34699
13122 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
13123 static links.
13124 * pa-hpux10.h (LINK_SPEC): Likewise.
13125 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
13126
13127 2008-01-16 Richard Guenther <rguenther@suse.de>
13128
13129 PR middle-end/32628
13130 * fold-const.c (fold_convert_const_int_from_int): Do not
13131 set overflow if that occured only because of a sign extension
13132 change when converting from/to a sizetype with the same
13133 precision and signedness.
13134
13135 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
13136
13137 PR debug/34249
13138 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
13139 location address to the correct place. Update copyright year.
13140
13141 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
13142
13143 * lambda-code.c (lambda_transform_legal_p): Handle the case of
13144 no dependences in the dependence_relations vector.
13145
13146 2008-01-16 Jan Hubicka <jh@suse.cz>
13147
13148 PR rtl-optimization/31396
13149 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
13150 * cfg.c (dump_reg_info): Print it.
13151 * regs.h (struct reg_info_t): add freq_calls_crossed.
13152 (REG_FREQ_CALLS_CROSSED): New macro.
13153 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
13154 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
13155 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
13156 regmove_optimize): Update call crossed frequencies.
13157 * local-alloc.c (struct qty): Add freq_calls_crossed.
13158 (alloc_qty): Copute freq_calls_crossed.
13159 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
13160 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
13161 * ra.h (struct allocno): Add freq_calls_crossed.
13162
13163 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
13164
13165 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
13166 libgomp when compiling with ftree-parallelize-loops.
13167 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
13168
13169 2008-01-16 Richard Guenther <rguenther@suse.de>
13170
13171 PR tree-optimization/34769
13172 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
13173 * tree.c (int_cst_value): Instead make this function more
13174 permissive in what it accepts as valid input. Document this
13175 function always sign-extends the value.
13176
13177 2008-01-16 Jakub Jelinek <jakub@redhat.com>
13178 Richard Guenther <rguenther@suse.de>
13179
13180 PR c/34668
13181 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
13182 (gimple_fold_indirect_ref_rhs): ... this.
13183 (gimple_fold_indirect_ref): New function with foldings
13184 that preserve lvalueness.
13185 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
13186 * tree-flow.h (gimple_fold_indirect_ref): Declare.
13187 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
13188 to fold an INDIRECT_REF, fall back to the old use of
13189 fold_indirect_ref_1.
13190
13191 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
13192
13193 * tree-data-ref.c (subscript_dependence_tester_1): Call
13194 free_conflict_function.
13195 (compute_self_dependence): Same.
13196
13197 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
13198
13199 PR debug/34249
13200 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
13201 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
13202 function global.
13203 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
13204 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
13205 for DWARF2_UNWIND_INFO targets.
13206
13207 2008-01-16 Richard Guenther <rguenther@suse.de>
13208
13209 PR c/34768
13210 * c-typeck.c (common_pointer_type): Do not merge inconsistent
13211 type qualifiers for function types.
13212
13213 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
13214
13215 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
13216 loop_iterator li from previous commit.
13217
13218 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
13219
13220 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
13221
13222 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
13223
13224 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
13225 (parallelize_loops): Don't parallelize irreducible components.
13226
13227 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13228
13229 PR c++/24924
13230 * c-opts (c_common_post_options): Do not enable CPP
13231 flag_pedantic_errors by default.
13232
13233 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
13234
13235 PR rtl-optimization/31944
13236 * cse.c (remove_pseudo_from_table): New function.
13237 (merge_equiv_classes): Use above function to remove pseudo-registers.
13238 (invalidate): Likewise.
13239
13240 2008-01-13 Richard Guenther <rguenther@suse.de>
13241
13242 PR middle-end/34601
13243 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
13244 instead of TYPE_MODE to deal with calls from expand_one_error_var.
13245
13246 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
13247
13248 * gcse.c (cprop_jump): Call validate_unshare_change instead of
13249 validate_change to unshare the source of the PC set.
13250
13251 2008-01-12 Jan Hubicka <jh@suse.cz>
13252
13253 PR middle-end/32135
13254 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
13255 references above array bounds. This might trigger bounds checks for
13256 pointers to arrays.
13257
13258 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
13259
13260 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
13261 new_replaceable_dependencies.
13262
13263 2008-01-12 Doug Kwan <dougkwan@google.com>
13264
13265 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
13266 instead of OPT_Wreturn_type in warning due to ignored return type
13267 qualifiers.
13268 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
13269 options included in -Wextra.
13270 * c.opt: New option -Wignored_qualifiers.
13271 * doc/invoke.texi (Warning Options, -Wextra): Add new option
13272 -Wignore_qualifiers.
13273 (-Wignored-qualifiers): Document.
13274 (-Wreturn-type): Remove description of functionality now handled
13275 by -Wignored-qualifiers.
13276
13277 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
13278
13279 PR ada/33788
13280 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
13281 NOP_EXPR if it is between integral types with the same precision.
13282
13283 2008-01-12 Jan Hubicka <jh@suse.cz>
13284
13285 PR other/28023
13286 * invoke.texi (max-inline-recursive-depth): Fix default value.
13287
13288 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
13289
13290 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
13291 correct type.
13292
13293 2008-01-11 Bob Wilson <bob.wilson@acm.org>
13294
13295 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
13296
13297 2008-01-11 James E. Wilson <wilson@specifix.com>
13298
13299 PR target/26015
13300 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
13301
13302 2008-01-11 Anatoly Sokolov <aesok@post.ru>
13303
13304 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
13305 save/restore frame pointer register and don't use 'call-prologues'
13306 optimization in function with "OS_task" attribute.
13307
13308 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
13309
13310 PR middle-end/31309
13311 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
13312 when copying to memory.
13313
13314 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
13315
13316 PR rtl-optimization/30905
13317 * cfgcleanup.c: Include dce.h
13318 (crossjumps_occured): New global variable.
13319 (try_crossjump_bb): Exit loop after finding a fallthru edge.
13320 If something changed, set crossjumps_occured to true.
13321 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
13322 Don't add/remove fake edges to exit here...
13323 (cleanup_cfg): ...but do it here, when crossjumping.
13324 Run a fast DCE when successful crossjumps occured in the latest
13325 iteration of try_optimize_cfg.
13326
13327 2008-01-11 Richard Guenther <rguenther@suse.de>
13328
13329 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
13330 (struct vn_unary_op_s): Likewise.
13331 (vn_reference_insert): Free old reference on hash collision.
13332
13333 2008-01-10 Raksit Ashok <raksit@google.com>
13334
13335 PR rtl-optimization/27971
13336 * combine.c (find_split_point): Split PLUS expressions which are
13337 inside a MEM rtx, and whose first operand is complex.
13338
13339 2008-01-10 DJ Delorie <dj@redhat.com>
13340
13341 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
13342 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
13343 (m32c_hard_regno_ok): Call the underlying function.
13344
13345 2008-01-10 Richard Guenther <rguenther@suse.de>
13346
13347 PR middle-end/34683
13348 * tree-cfg.c (tree_merge_blocks): Do not go through the
13349 full-blown folding and stmt updating path if we just deal
13350 with virtual operands.
13351 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
13352 test for abnormal SSA_NAMEs.
13353
13354 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
13355
13356 PR middle-end/34641
13357 * reload.c (push_reload): Add assertions. All constants from
13358 reg_equiv_constant should have been used for replacing the respective
13359 pseudo earlier.
13360 (find_reloads_address): Invoke find_reloads_address_part for
13361 constant taken from the reg_equiv_constant array.
13362
13363 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
13364
13365 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
13366 field (valnum) the first in the struct. Replace bools with
13367 unit bit fields.
13368
13369 2008-01-10 Richard Guenther <rguenther@suse.de>
13370
13371 PR tree-optimization/34651
13372 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
13373 types and ordering for masking and converting.
13374
13375 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
13376
13377 PR tree-optimization/34017
13378 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
13379 also for PHI_NODE expressions.
13380
13381 2008-01-09 Jan Hubicka <jh@suse.cz>
13382
13383 PR tree-optimization/34708
13384 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
13385 based on number of case labels.
13386 (init_inline_once): Remove switch_cost.
13387 * tree-inline.h (eni_weights_d): Remove switch_cost.
13388
13389 2008-01-09 Richard Guenther <rguenther@suse.de>
13390 Andrew Pinski <andrew_pinski@playstation.sony.com>
13391
13392 PR middle-end/30132
13393 * gimplify.c (gimplify_cond_expr): Do not create an addressable
13394 temporary if an rvalue is ok or an lvalue is not required.
13395
13396 2008-01-09 Richard Guenther <rguenther@suse.de>
13397
13398 PR middle-end/34458
13399 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
13400 adjust return type.
13401
13402 2008-01-09 Richard Guenther <rguenther@suse.de>
13403
13404 PR middle-end/34679
13405 * tree.c (host_integerp): Check for sizetype only if the
13406 type is an integer type.
13407
13408 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
13409
13410 PR debug/26364
13411 * opts.c (decode_options): Disable inlining of functions called
13412 once if not in unit-at-a-time mode.
13413
13414 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
13415
13416 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
13417
13418 2008-01-08 Richard Guenther <rguenther@suse.de>
13419
13420 PR middle-end/31863
13421 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
13422 out early if the result will be unused.
13423
13424 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
13425
13426 PR target/34709
13427 Revert:
13428
13429 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
13430 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
13431 for TARGET_RECIP.
13432
13433 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
13434
13435 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
13436 for vectorization tuned.
13437
13438 2008-01-08 Richard Guenther <rguenther@suse.de>
13439
13440 PR tree-optimization/34683
13441 * tree-ssa-operands.c (operand_build_cmp): Export.
13442 * tree-ssa-operands.h (operand_build_cmp): Declare.
13443 * tree-vn.c (vuses_compare): Remove.
13444 (sort_vuses): Use operand_build_cmp.
13445 (sort_vuses_heap): Likewise.
13446 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
13447 to re-use old VEC if available. Do not sort already sorted VUSEs.
13448 (vdefs_to_vec): Do not sort already sorted VDEFs.
13449
13450 2008-01-08 Jakub Jelinek <jakub@redhat.com>
13451
13452 PR middle-end/34694
13453 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
13454
13455 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
13456
13457 PR target/34702
13458 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
13459 limitations of reciprocal sequences on x86 targets.
13460
13461 2008-01-08 Richard Guenther <rguenther@suse.de>
13462
13463 PR tree-optimization/34683
13464 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
13465
13466 2008-01-07 Jakub Jelinek <jakub@redhat.com>
13467
13468 PR target/34622
13469 * config/darwin.c (darwin_mergeable_string_section): Don't use
13470 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
13471
13472 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
13473
13474 PR target/34682
13475 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
13476 negxf2. Macroize expander using X87MODEF mode iterator. Change
13477 predicates of op0 and op1 to register_operand.
13478 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
13479 expander using X87MODEF mode iterator. Change predicates of
13480 op0 and op1 to register_operand.
13481 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
13482 corresponding patterns and macroize using MODEF macro. Change
13483 predicates of op0 and op1 to register_operand and remove
13484 "m" constraint. Disparage "r" alternative with "!".
13485 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
13486 macroize using X87MODEF macro. Change predicates of op0 and op1
13487 to register_operand and remove "m" constraint. Disparage "r"
13488 alternative with "!".
13489 (absneg splitter with memory operands): Remove.
13490 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
13491 patterns and macroize using X87MODEF mode iterator.
13492 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
13493 Change predicate of op1 to register_operand.
13494 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
13495 for memory operands.
13496
13497 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
13498
13499 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
13500
13501 2008-01-07 Richard Guenther <rguenther@suse.de>
13502
13503 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
13504 fields.
13505
13506 2008-01-07 Richard Guenther <rguenther@suse.de>
13507
13508 PR tree-optimization/34683
13509 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
13510 VOPs of the needed size to save memory. Use VEC_quick_push
13511 to save compile-time.
13512 (vdefs_to_vec): Likewise.
13513
13514 2008-01-07 Sa Liu <saliu@de.ibm.com>
13515
13516 * config/spu/spu.md (divdf3): Genetate inline code for double
13517 division. The implementation doesn't handle INF or NAN, therefore it
13518 only applies when -ffinite-math-only is given.
13519
13520 2008-01-06 Paolo Carlini <pcarlini@suse.de>
13521
13522 PR libstdc++/34680
13523 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
13524 * doc/cpp.texi ([Common Predefined Macros]): Document.
13525
13526 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
13527
13528 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
13529 order to use commutative addition instead of subtraction.
13530
13531 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
13532 Mircea Namolaru <namolaru@il.ibm.com>
13533 Vladimir Yanovsky <yanov@il.ibm.com>
13534 Revital Eres <eres@il.ibm.com>
13535
13536 PR tree-optimization/34263
13537 * tree-outof-ssa.c (process_single_block_loop_latch,
13538 contains_tree_r): New functions.
13539 (analyze_edges_for_bb): Call process_single_block_loop_latch
13540 function to empty single-basic-block latch block if possible.
13541
13542 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
13543
13544 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
13545 for TARGET_RECIP.
13546 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
13547
13548 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
13549
13550 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
13551
13552 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
13553
13554 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
13555
13556 2008-01-05 Jakub Jelinek <jakub@redhat.com>
13557
13558 PR tree-optimization/34618
13559 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
13560 flag from T.
13561
13562 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
13563
13564 PR target/34673
13565 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
13566 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
13567 Update copyright year.
13568
13569 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
13570 Update copyright year.
13571 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
13572 using NR fixup.
13573
13574 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
13575
13576 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
13577 edge does not point to current bb before changing need_assert.
13578
13579 2008-01-04 Richard Guenther <rguenther@suse.de>
13580
13581 PR middle-end/34029
13582 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
13583 for verifying purposes if they are is_gimple_min_invariant.
13584
13585 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
13586
13587 PR tree-optimization/34448
13588 PR tree-optimization/34465
13589 * gimplify.c (gimplify_init_constructor): Add new parameter
13590 notify_temp_creation. Use it.
13591 (gimplify_modify_expr_rhs): Take volatiles into account when
13592 optimizing constructors.
13593 Do not optimize constructors if gimplify_init_constructor will dump to
13594 memory.
13595 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
13596 * gcc.c-torture/compile/pr34448.c: New.
13597
13598 2008-01-04 Jakub Jelinek <jakub@redhat.com>
13599
13600 PR gcov-profile/34609
13601 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
13602 return_slot if result is TREE_ADDRESSABLE.
13603
13604 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
13605
13606 * config/mips/mips.md (sqrt_condition): Tweak comment.
13607 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
13608
13609 2008-01-03 Tom Tromey <tromey@redhat.com>
13610
13611 PR c/34457
13612 * c-common.c (c_type_hash): Handle VLAs.
13613
13614 2008-01-03 Jan Hubicka <jh@suse.cz>
13615
13616 PR tree-optimization/31081
13617 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
13618 0 when inlining and not inlining to first basic block.
13619 (remap_decl): When var is initialized to 0, don't set default_def.
13620 (expand_call_inline): Set entry_bb.
13621 * tree-inline.h (copy_body_data): Add entry_bb.
13622
13623 2008-01-03 Jakub Jelinek <jakub@redhat.com>
13624
13625 PR c++/34619
13626 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
13627 before returning.
13628
13629 PR tree-optimization/29484
13630 * tree-inline.c (inline_forbidden_p_2): New function.
13631 (inline_forbidden_p): Disallow inlining if some static var
13632 has an address of a local LABEL_DECL in its initializer.
13633 * doc/extend.texi (Labels as Values): Document &&foo behaviour
13634 vs. inlining.
13635
13636 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
13637
13638 PR tree-optimization/34635
13639 * tree-data-ref.c (add_other_self_distances): Make sure that the
13640 evolution step is constant.
13641
13642 2008-01-03 Jakub Jelinek <jakub@redhat.com>
13643
13644 PR middle-end/34608
13645 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
13646
13647 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
13648
13649 * tree-sra.c (scalarize_init): Insert the generate_element_init
13650 statements after the generate_element_zero statements.
13651
13652 2008-01-02 Richard Guenther <rguenther@suse.de>
13653
13654 PR middle-end/34093
13655 PR middle-end/31976
13656 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
13657 for very large number of operands instead of ICEing.
13658
13659 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
13660
13661 PR target/34013
13662 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
13663 while stack probing.
13664
13665 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
13666
13667 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
13668 in C++0x mode.
13669
13670 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
13671
13672 PR libmudflap/26442
13673 * tree-mudflap.c (mx_register_decls): Guard warning by
13674 !DECL_ARTIFICIAL check.
13675
13676 2008-01-01 Jakub Jelinek <jakub@redhat.com>
13677
13678 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
13679 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
13680 sse5_perm<mode>): Fix constraints.
This page took 0.626871 seconds and 5 git commands to generate.