1 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
5 * gcse.c: Include gcse.h.
6 (default_target_gcse): New variable.
7 (this_target_gcse): New conditional variable.
8 (can_copy): Redefine as a macro.
9 (can_copy_init_p): New macro.
10 (can_copy_p): Remove can_copy_init_p.
11 * target-globals.h (this_target_gcse): Declare.
12 (target_globals): Add a gcse field.
13 (restore_target_globals): Copy the gcse field to
15 * target-globals.c: Include gcse.h.
16 (default_target_globals): Initialize the gcse field.
17 (save_target_globals): Likewise.
19 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
21 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
22 and x_ira_prohibited_mode_move_regs_initialized_p.
23 (ira_prohibited_mode_move_regs): Redefine as a macro.
24 * ira.c (ira_prohibited_mode_move_regs): Delete.
25 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
27 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
29 * reload.h (target_reload): Add x_cached_reg_save_code and
30 x_cached_reg_restore_code.
31 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
34 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
36 * Makefile.in (target-globals.o): Depend on builtins.h.
37 * builtins.h: New file.
38 * builtins.c: Include builtins.h.
39 (default_target_builtins): New variable.
40 (this_target_builtins): New conditional variable.
41 (apply_args_mode, apply_result_mode): Redefine as macros.
42 * target-globals.h (this_target_builtins): Declare.
43 (target_globals): Add a builtins field.
44 (restore_target_globals): Copy the builtins field to
46 * target-globals.c: Include builtins.h.
47 (default_target_globals): Initialize the builtins field.
48 (save_target_globals): Likewise.
50 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
52 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
53 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
55 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
56 (alg_hash, alg_hash_used_p): New macros.
57 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
58 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
59 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
61 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
63 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
64 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
65 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
66 (this_op_costs, costs_classes): Redefine as macros.
67 (record_reg_classes): Don't take op_costs as a parameter.
68 (record_operand_costs): Likewise. Update calls to record_reg_classes.
69 (scan_one_insn): Update call to record_operand_costs.
71 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
73 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
74 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
75 (target_ira_int): New structure.
76 (default_target_ira_int): Declare.
77 (this_target_ira_int): Declare as a variable or define as a macro.
78 (ira_reg_mode_hard_regset, ira_register_move_cost)
79 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
80 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
81 (prohibited_class_mode_regs, ira_important_classes_num)
82 (ira_important_classes, ira_reg_class_intersect)
83 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
84 (ira_reg_class_union): Redefine as macros.
85 * ira.h (target_ira): New structure.
86 (default_target_ira): Declare.
87 (this_target_ira): Declare as a variable or define as a macro.
88 (ira_available_class_regs, ira_hard_regno_cover_class)
89 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
90 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
91 (ira_class_hard_regs_num): Redefine as macros.
92 * ira.c (default_target_ira, default_target_ira_int): New variables.
93 (this_target_ira, this_target_ira_int): New conditional variables.
94 (ira_reg_mode_hard_regset, ira_memory_move_cost)
95 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
96 (ira_class_subset_p): Delete.
97 (no_unit_alloc_regs): Redefine as a macro.
98 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
99 (ira_class_hard_regs_num, ira_class_hard_reg_index)
100 (ira_available_class_regs): Delete.
101 (alloc_reg_class_subclasses): Redefine as a macro.
102 (ira_reg_class_cover_size, ira_reg_class_cover)
103 (ira_important_classes_num, ira_important_classes)
104 (ira_important_class_nums, ira_class_translate): Delete.
105 (cover_class_order): Document the variable's lifetime.
106 (reorder_important_classes): Don't set ira_important_class_nums.
107 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
108 (ira_reg_class_super_classes, ira_reg_class_union)
109 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
111 (setup_reg_class_nregs): Don't set ira_max_regs.
112 (prohibited_class_mode_regs): Delete.
113 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
114 (target_globals): Add ira and ira_int fields.
115 (restore_target_globals): Copy the ira field to this_target_ira
116 and the ira_int field to this_target_ira_int.
117 * target-globals.c: Include ira-int.h.
118 (default_target_globals): Initialize the ira and ira_int fields.
119 (save_target_globals): Likewise.
121 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
123 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
124 * cfgloop.h (target_cfgloop): New structure.
125 (default_target_cfgloop): Declare.
126 (this_target_cfgloop): Declare as a variable or define as a macro.
127 (target_avail_regs, target_clobbered_regs, target_res_regs)
128 (target_reg_cost, target_spill_cost): Redefine as macros.
129 * cfgloopanal.c (default_target_cfgloop): New variable.
130 (this_target_cfgloop): New conditional variable.
131 (target_avail_regs, target_clobbered_regs, target_res_regs)
132 (target_reg_cost, target_spill_cost): Delete.
133 * target-globals.h (this_target_cfgloop): Declare.
134 (target_globals): Add a cfgloop field.
135 (restore_target_globals): Copy the cfgloop field to
137 * target-globals.c: Include cfgloop.h.
138 (default_target_globals): Initialize the cfgloop field.
139 (save_target_globals): Likewise.
141 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
143 * regs.h (target_regs): Add x_direct_load, x_direct_store and
144 x_float_extend_from_mem.
145 (direct_load, direct_store, float_extend_from_mem): New macros.
146 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
148 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
150 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
151 (target-globals.o): Depend on $(LIBFUNCS_H).
152 * libfuncs.h: Include hashtab.h.
153 (libfunc_entry): Moved from optabs.c.
154 (target_libfuncs): New structure.
155 (default_target_libfuncs): Declare.
156 (this_target_libfuncs): Declare as a variable or define as a macro.
157 (libfunc_table): Redefine as a macro.
158 * optabs.c (default_target_libfuncs): New variable.
159 (this_target_libfuncs): New conditional variable.
160 (libfunc_table): Delete.
161 (libfunc_entry): Moved to optabs.h.
162 (libfunc_hash): Redefine as a macro.
163 (hash_libfunc, eq_libfunc): Fix comments.
164 (init_optabs): Use libfunc_hash to detect cases where the function
165 has already been called. Clear the hash table instead of
167 * target-globals.h (this_target_libfuncs): Declare.
168 (target_globals): Add a libfuncs field.
169 (restore_target_globals): Copy the libfuncs field to
170 this_target_libfuncs.
171 * target-globals.c: Include libfuncs.h.
172 (default_target_globals): Initialize the libfuncs field.
173 (save_target_globals): Likewise.
175 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
177 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
178 in all dependency lists.
180 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
182 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
183 * optabs.h (target_optabs): New structure.
184 (default_target_optabs): Declare.
185 (this_target_optabs): Declare as a variable or define as a macro.
186 (optab_table, convert_optab_table, direct_optab_table): Redefine
188 * optabs.c (default_target_optabs): New variable.
189 (this_target_optabs): New conditional variable.
190 (optab_table, convert_optab_table, direct_optab_table): Delete.
191 * target-globals.h (this_target_optabs): Declare.
192 (target_globals): Add a optabs field.
193 (restore_target_globals): Copy the optabs field to
195 * target-globals.c: Include expr.h and optabs.h.
196 (default_target_globals): Initialize the optabs field.
197 (save_target_globals): Likewise.
199 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
201 * flags.h (target_flagstate): Add x_flag_excess_precision.
202 (flag_excess_precision): Redefine as a macro.
203 * toplev.c (flag_excess_precision): Delete.
205 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
207 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
208 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
209 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
210 (no_caller_save_reg_set): Redefine as a macro.
211 * reload.h (target_reload): Add x_caller_save_initialized_p and
213 (caller_save_initialized_p): Redefine as a macro.
214 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
215 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
216 (regno_save_mode): Redefine as a macro.
218 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
220 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
221 * expmed.h: New file.
222 * expmed.c (default_target_costs): New variable.
223 (this_target_costs): New conditional variable.
224 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
225 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
226 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
227 * target-globals.h (this_target_expmed): Declare.
228 (target_globals): Add a expmed field.
229 (restore_target_globals): Copy the expmed field to
231 * target-globals.c: Include expmed.h.
232 (default_target_globals): Initialize the expmed field.
233 (save_target_globals): Likewise.
235 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
237 * Makefile.in (target-globals.o): Depend on reload.h.
238 * reload.h (target_reload): New structure.
239 (default_target_reload): Declare.
240 (this_target_reload): Declare as a variable or define as a macro.
241 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
242 * reload1.c (default_target_reload): New variable
243 (this_target_reload): New conditional variable.
244 (indirect_symref_ok, double_reg_address_ok): Delete.
245 (spill_indirect_levels): Redefine as a macro.
246 * target-globals.h (this_target_reload): Declare.
247 (target_globals): Add a reload field.
248 (restore_target_globals): Copy the reload field to
250 * target-globals.c: Include hard-reg-set.h.
251 (default_target_globals): Initialize the reload field.
252 (save_target_globals): Likewise.
254 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
256 * rtl.h (target_rtl): Add x_static_reg_base_value.
257 * alias.c (static_reg_base_value): Redefine as a macro.
259 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
261 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
262 (GTFILES): Remove reginfo.c.
263 * rtl.h (target_rtl): Add x_top_of_stack.
264 (top_of_stack): New macro.
265 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
266 (top_of_stack): Delete.
268 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
270 * regs.h (target_regs): Add x_hard_regs_of_mode, x_contains_reg_of_mode,
271 x_move_cost, x_may_move_in_cost, x_may_move_out_cost and
272 x_last_mode_for_init_move_cost.
273 (have_regs_of_mode, contains_reg_of_mode, move_cost)
274 (may_move_in_cost, may_move_out_cost): Redefine as macros.
275 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
276 (may_move_in_cost, may_move_out_cost): Delete.
277 (last_mode_for_init_move_cost): Redefine as a macro.
279 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
281 * hard-reg-set.h (target_hard_regs): New structure.
282 (default_target_hard_regs): Declare.
283 (this_target_hard_regs): Declare as a variable or define as a macro.
284 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
285 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
286 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
287 (reg_class_size, reg_class_subclasses, reg_class_subunion)
288 (reg_class_superunion, reg_names): Redefine as macros.
289 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
290 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
291 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
292 (reg_class_contents, reg_class_size, reg_class_subclasses)
293 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
294 (default_target_hard_regs): New variable
295 (this_target_hard_regs, initial_call_really_used_regs)
296 (initial_reg_alloc_order): New conditional variables.
297 (initial_reg_names): New variable.
298 (init_reg_sets): Assert that initial_call_really_used_regs,
299 initial_reg_alloc_order and initial_reg_names
300 are all the same size as their variable counterparts. Use them to
301 initialize those counterparts.
302 * target-globals.h (this_target_hard_regs): Declare.
303 (target_globals): Add a hard_regs field.
304 (restore_target_globals): Copy the hard_regs field to
305 this_target_hard_regs.
306 * target-globals.c: Include hard-reg-set.h.
307 (default_target_globals): Initialize the hard_regs field.
308 (save_target_globals): Likewise.
310 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
312 * Makefile.in (target-globals.o): Depend on $(RTL_H).
313 * rtl.h: (target_rtl): New structure.
314 (default_target_rtl): Declare.
315 (this_target_rtl): Declare as a variable or define as a macro.
316 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
318 * emit-rtl.c (default_target_rtl): New variable.
319 (this_target_rtl): New conditional variable.
320 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
321 (return_address_pointer_rtx): Delete.
322 (initial_regno_reg_rtx): New macro.
323 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
324 (init_emit_regs): Likewise.
325 * target-globals.h (this_target_rtl): Declare.
326 (target_globals): Add a rtl field.
327 (restore_target_globals): Copy the rtl field to this_target_rtl.
328 * target-globals.c: Include rtl.h.
329 (default_target_globals): Initialize the rtl field.
330 (save_target_globals): Likewise.
332 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
334 * Makefile.in (target-globals.o): Depend on $(REGS_H).
335 * regs.h (target_reg_modes): New structure.
336 (default_target_reg_modes): Declare.
337 (this_target_reg_modes): Declare as a variable or define as a macro.
338 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
339 * reginfo.c (default_target_reg_modes): New variable.
340 (this_target_reg_modes): New conditional variable.
341 (hard_regno_nregs, reg_raw_mode): Delete.
342 * target-globals.h (this_target_regs): Declare.
343 (target_globals): Add a regs field.
344 (restore_target_globals): Copy the regs field to this_target_regs.
345 * target-globals.c: Include regs.h.
346 (default_target_globals): Initialize the regs field.
347 (save_target_globals): Likewise.
349 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
351 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
352 * doc/tm.texi: Regenerate.
353 * Makefile.in (OBJS-common): Add target-globals.o.
354 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
355 and target-globals.h.
356 (target-globals.o): New rule.
357 (GTFILES): Include $(srcdir)/target-globals.h.
358 * defaults.h (SWITCHABLE_TARGET): Define.
359 * gengtype.c (open_base_files): Add target-globals.h to the
361 * target-globals.h: New file.
362 * target-globals.c: Likewise.
364 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
365 * flags.h (target_flag_state): New structure.
366 (default_target_flag_state): Declare.
367 (this_target_flag_state): Declare as a variable or define as a macro.
368 (align_loops_log): Redefine as a macro.
369 (align_loops_max_skip, align_jumps_log): Likewise.
370 (align_jumps_max_skip, align_labels_log): Likewise.
371 (align_labels_max_skip, align_functions_log): Likewise.
372 * toplev.c (default_target_flag_state): New variable.
373 (this_target_flag_state): New conditional variable.
374 (align_loops_log): Delete.
375 (align_loops_max_skip, align_jumps_log): Likewise.
376 (align_jumps_max_skip, align_labels_log): Likewise.
377 (align_labels_max_skip, align_functions_log): Likewise.
378 * target-globals.h (this_target_flag_state): Declare.
379 (target_globals): Add a flag_state field.
380 (restore_target_globals): Copy the flag_state field to
381 this_target_flag_state.
382 * target-globals.c: Include flags.h.
383 (default_target_globals): Initialize the flag_state field.
384 (save_target_globals): Likewise.
386 2010-07-12 Jie Zhang <jie@codesourcery.com>
388 * postreload.c (reg_symbol_ref[]): New.
389 (move2add_use_add2_insn): New.
390 (move2add_use_add3_insn): New.
391 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
392 (move2add_note_store): Likewise.
394 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
396 PR rtl-optimization/44752
397 * genautomata.c (main): Don't emit an empty file even if there
400 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
402 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
403 ix86_solaris_return_in_memory.
404 * config/i386-protos.h: Reflect this.
405 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
406 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
408 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
410 2010-07-12 Jie Zhang <jie@codesourcery.com>
412 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
413 align the stack when it's going to be saved.
415 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
418 * config/host-solaris.c (mmap_fixed): New function.
419 (sol_gt_pch_get_address): Use it.
420 (sol_gt_pch_use_address): Likewise.
422 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
424 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
425 pentiumpro on Solaris 8 and 9/x86.
426 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
427 Document SSE/SSE2 support.
428 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
430 2010-07-12 Andi Kleen <ak@linux.intel.com>
432 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
433 instead of gcc_assert to print better error message for multiple
436 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
438 * config/i386/i386.c (ix86_asm_output_function_label): Change format
439 string placeholder from 0x%x to %#x.
440 (ix86_code_end): Use putc to output '\n'.
441 (ix86_print_operand) <case ';'>: Use putc to output ';'.
443 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
445 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
446 in directive -export.
448 2010-07-10 Anatoly Sokolov <aesok@post.ru>
450 * reginfo.h (reg_classes_intersect_p): Change arguments type to
452 * rtl.h (reg_classes_intersect_p): Adjust prototype.
454 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
456 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
457 rs6000_memory_move_cost): Remove
458 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
459 TARGET_MEMORY_MOVE_COST): Define.
460 (rs6000_register_move_cost): Make static. Change arguments type from
461 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
462 (rs6000_memory_move_cost): Make static. Change arguments type from
463 'enum reg_class' to reg_class_t.
465 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
468 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
470 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
472 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
473 * cfgloopanal.c (target_clobbered_regs): Define.
474 (init_set_costs): Initialize target_clobbered_regs.
475 (estimate_reg_pressure_cost): Add call_p argument. When true,
476 adjust the number of available registers to exclude the
477 call-clobbered registers.
478 * cfgloop.h (target_clobbered_regs): Declare.
479 (estimate_reg_pressure_cost): Adjust declaration.
480 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
481 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
482 (determine_set_costs): Dump target_clobbered_regs.
483 (loop_body_includes_call): New function.
484 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
485 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
487 (best_gain_for_invariant): Likewise.
488 (find_invariants_to_move): Likewise.
489 (move_single_loop_invariants): Likewise, using already-computed
492 2010-07-10 Richard Guenther <rguenther@suse.de>
493 Joern Rennecke <joern.rennecke@embecosm.com>
496 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
497 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
498 unless they have DECL_IGNORED_P set.
500 2010-07-10 Richard Guenther <rguenther@suse.de>
503 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
505 (gimple_types_compatible_p): Similar to pointed-to
506 types allow and merge a mix of complete and incomplete aggregate.
507 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
508 (iterative_hash_gimple_type): Adjust for that.
510 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
512 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
514 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
517 * config/darwin.c (output_objc_section_asm_op): Save and restore
518 section when outputting ObjC section list.
520 2010-07-09 Jan Hubicka <jh@suse.cz>
522 * lto-streamer-out.c (produce_symtab): Do not write alias
523 cgraph/varpool nodes.
525 2010-07-09 Jan Hubicka <jh@suse.cz>
527 * tree-inline.c (declare_return_variable): Fix ICE while
528 inlining DECL_BY_VALUE function not in SSA form
530 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
532 PR tree-optimization/44576
533 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
534 New. Pull out from is_loop_prefetching_profitable to implement
535 the trip count to ahead ratio heuristic.
536 (mem_ref_count_reasonable_p): New. Pull out from
537 is_loop_prefetching_profitable to implement the instruction to
538 memory reference ratio heuristic. Also consider not reasonable if
539 the memory reference count is above a threshold (to avoid
540 explosive compilation time.
541 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
542 is_loop_prefetching_profitable to implement the instruction to
543 prefetch ratio heuristic.
544 (is_loop_prefetching_profitable): Removed.
545 (loop_prefetch_arrays): Distribute the cost analysis across the
546 function to allow early exit of the prefetch analysis.
547 is_loop_prefetching_profitable is splitted into three functions,
548 with each one called as early as possible.
549 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
550 number of memory references in a loop is considered too many.
552 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
554 * reload.c (find_reloads): Don't clear badop if we have a winreg
555 alternative, but not win, and the class only has fixed regs.
556 * hard-reg-set.h (class_only_fixed_regs): Declare.
557 * reginfo.c (class_only_fixed_regs): New array.
558 (init_reg_sets_1): Initialize it.
559 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
560 discourage alternatives using the stack pointer.
562 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
564 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
566 * config/arm/arm.md (cbranchqi4): Fix array size.
567 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
570 2010-07-09 Richard Guenther <rguenther@suse.de>
572 * gimple.c (struct type_fixup_s): New struct and VEC type.
573 (gimple_register_type_fixups): New static global.
574 (gimple_queue_type_fixup): New function.
575 (gimple_types_compatible_p): Queue type fixups instead of
577 (gimple_register_type): Apply queued fixups for the
578 canonical type. Empty the type fixup queue.
580 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
582 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
583 * configure: Regenerate.
586 2010-07-09 Jakub Jelinek <jakub@redhat.com>
587 Denys Vlasenko <dvlasenk@redhat.com>
588 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
590 PR tree-optimization/28632
591 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
592 (extract_range_from_binary_expr): Further optimize
593 BIT_AND_EXPR and BIT_IOR_EXPR.
595 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
597 * tree-if-conv.c (fold_or_predicates): New.
598 (add_to_predicate_list): Call it.
600 2010-07-09 Richard Guenther <rguenther@suse.de>
603 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
604 if base is a pointer.
605 * tree-cfg.c (verify_expr): Update MEM_REF checking.
607 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
610 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
611 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
612 builtin mask for load/store builtins.
614 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
616 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
618 * configure: Regenerate.
619 * config/i386/i386.c (ix86_print_operand) <case ';'>:
622 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
624 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
626 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
628 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
630 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
632 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
634 * config/picochip/picochip.md (commsTestPort): Emit more
635 efficient sequence for tstport instruction.
637 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
639 * config/i386/i386.c (ix86_veclib_handler): Make static.
641 2010-07-09 Richard Guenther <rguenther@suse.de>
643 PR tree-optimization/44852
644 * tree-ssa-alias.c: Include toplev.h for exact_log2.
645 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
647 (indirect_refs_may_alias_p): Likewise.
648 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
650 2010-07-09 Richard Guenther <rguenther@suse.de>
652 PR tree-optimization/44882
653 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
655 (vectorizable_load): Likewise.
657 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
660 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
662 Handle the case when we're called for the epilogue.
663 (thumb_unexpanded_epilogue): Use it.
664 (thumb1_expand_epilogue): Likewise.
666 2010-07-09 Jakub Jelinek <jakub@redhat.com>
668 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
669 both ranges are range_int_cst_p with non-negative minimum,
670 try harder to derive smaller range.
672 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
674 * genrecog.c: Include diagnostic-core.h before toplev.h.
675 * genoutput.c: Likewise.
676 * genextract.c: Likewise.
677 * genautomata.c: Likewise.
678 * genemit.c: Likewise.
679 * genpeep.c: Likewise.
680 * genattrtab.c: Likewise.
681 * genconditions.c: Likewise.
682 * genpreds.c: Likewise.
684 2010-07-08 Andi Kleen <ak@linux.intel.com>
686 * lto-section-in.c (lto_section_name): Add missing comma.
688 2010-07-08 Anatoly Sokolov <aesok@post.ru>
690 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
691 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
692 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
693 (ia64_override_options): Rename to...
694 (ia64_option_override): ... this one. Make static.
696 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
699 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
700 pointed-to type of the offset in a MEM_REF to compute the alignment.
702 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
704 * final.c (final_scan_insn): Replace
705 TARGET_UNWIND_INFO macro check by unwind_emit
707 * targhooks.c (default_unwind_emit): Removed.
708 * targhooks.h (default_unwind_emit): Likewise.
709 * target.def (unwind_emit): Set default value to NULL.
711 * config/i386/i386-protos.h (ix86_asm_output_function_label):
713 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
714 for NULL fntype argument and allow 64-bit targets.
715 (ix86_asm_output_function_label): New function.
716 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
717 (ix86_handle_fndecl_attribute): Likewise.
718 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
719 * doc/doc/tm.texi: Regenerated.
720 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
721 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
722 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
723 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
724 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
725 * config/elfos.h: Likewise.
726 * config/i386/cygming.h: Likewise.
727 * config/netbsd-aout.h: Likewise.
728 * config/openbsd.h: Likewise.
729 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
730 by ix86_asm_output_function_label function call.
731 * varasm.c (assemble_start_function): Use
732 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
734 2010-07-08 Jan Hubicka <jh@suse.cz>
736 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
738 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
740 * ipa-cp.c (ipcp_estimate_growth): Use it.
741 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
744 2010-07-08 Jan Hubicka <jh@suse.cz>
746 * tree-inline.c (declare_return_variable): Allocate annotation for new
749 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
751 PR tree-optimization/44710
752 * tree-if-conv.c (parse_predicate): New.
753 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
754 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
756 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
758 * common.opt (ftree-loop-if-convert): New flag.
759 * doc/invoke.texi (ftree-loop-if-convert): Documented.
760 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
761 when flag_tree_loop_if_convert is set.
763 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
765 * config/i386/i386.c: Use short syntax for function calls
766 through function pointers.
767 * config/i386/i386.md: Ditto.
769 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
771 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
773 2010-07-08 Richard Guenther <rguenther@suse.de>
775 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
776 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
778 2010-07-08 Jakub Jelinek <jakub@redhat.com>
780 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
781 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
782 (loc_list_from_tree): Likewise.
783 (output_loc_operands): Handle outputting DW_OP_const[48]u
784 with loc->dtprel set.
785 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
787 2010-07-08 Jan Hubicka <jh@suse.cz>
789 * ipa.c: Include pointer-set.h
790 (cgraph_externally_visible_p): New attribute ALIASED;
791 when in LTO, hidden symbols are local unless they are aliased.
792 (function_and_variable_visibility): Compute aliased nodes;
793 handle LTO and hidden symbol on functions and vars.
794 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
795 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
797 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
799 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
800 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
801 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
802 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
803 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
804 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
805 (ix86_gen_probe_stack_range): Likewise.
806 (override_options): Set them.
807 (ix86_target_stack_probe): New function.
808 (ix86_compute_frame_layout): Force use of push instructions to
809 save registers if stack checking with probes is enabled.
810 (get_scratch_register_on_entry): New function.
811 (release_scratch_register_on_entry): Likewise.
812 (ix86_adjust_stack_and_probe): Likewise.
813 (output_adjust_stack_and_probe): Likewise.
814 (ix86_emit_probe_stack_range): Likewise.
815 (output_probe_stack_range): Likewise.
816 (ix86_expand_prologue): Emit stack checking code if static built-in
817 stack checking is enabled.
818 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
819 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
820 (output_adjust_stack_and_probe): Likewise.
821 (output_probe_stack_range): Likewise.
822 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
823 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
825 (allocate_stack_worker_64): Likewise.
826 (allocate_stack): Likewise.
827 (adjust_stack_and_probe): New insn.
828 (probe_stack_range): Likewise.
830 2010-07-08 Richard Guenther <rguenther@suse.de>
832 PR tree-optimization/44831
833 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
834 a MEM_REF preserving TBAA info of the original dereference.
835 Dereference the original pointer if the address is not invariant.
836 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
837 at least one invariant address that we are going to dereference.
839 2010-07-08 Richard Guenther <rguenther@suse.de>
841 PR tree-optimization/44861
842 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
843 information when building MEM_REFs.
844 (vectorizable_load): Likewise.
845 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
847 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
849 * config/sol2-c.c: Do not include diagnostic-core.h.
851 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
854 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
855 with respect to current_function_decl. Pass decl of the function.
856 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
857 * ipa-inline.c (compute_inline_parameters): Pass decl to
858 estimated_stack_frame_size.
860 2010-07-08 Richard Guenther <rguenther@suse.de>
862 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
864 (valueize_refs): Call it.
866 2010-07-08 Richard Guenther <rguenther@suse.de>
868 PR rtl-optimization/44838
869 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
870 SSA form do not use pointer equivalence.
872 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
874 * dwarf2out.c (AT_linkage_name): Delete.
875 (add_linkage_attr): New function.
876 (add_linkage_name): Call it to emit the linkage attribute.
877 (dwarf2out_finish): Likewise.
878 (move_linkage_attr): Explicitly accept both attribute variants.
880 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
882 * toplev.h: Do not include diagnostic-core.h.
883 Include diagnostic-core.h in every file that includes toplev.h.
884 * c-tree.h: Do not include toplev.h.
885 * pretty-print.h: Update comment.
886 * Makefile.in: Update dependencies.
887 * alias.c: Include diagnostic-core.h in every file that includes
889 * attribs.c: Likewise.
890 * auto-inc-dec.c: Likewise.
891 * bb-reorder.c: Likewise.
892 * bt-load.c: Likewise.
893 * caller-save.c: Likewise.
896 * cfganal.c: Likewise.
897 * cfgbuild.c: Likewise.
898 * cfgcleanup.c: Likewise.
899 * cfghooks.c: Likewise.
900 * cfgloop.c: Likewise.
901 * combine.c: Likewise.
902 * config/alpha/alpha.c: Likewise.
903 * config/arc/arc.c: Likewise.
904 * config/arm/arm.c: Likewise.
905 * config/arm/pe.c: Likewise.
906 * config/avr/avr.c: Likewise.
907 * config/bfin/bfin.c: Likewise.
908 * config/cris/cris.c: Likewise.
909 * config/crx/crx.c: Likewise.
910 * config/darwin-c.c: Likewise.
911 * config/darwin.c: Likewise.
912 * config/fr30/fr30.c: Likewise.
913 * config/frv/frv.c: Likewise.
914 * config/h8300/h8300.c: Likewise.
915 * config/host-darwin.c: Likewise.
916 * config/i386/i386.c: Likewise.
917 * config/i386/netware.c: Likewise.
918 * config/i386/nwld.c: Likewise.
919 * config/i386/winnt-cxx.c: Likewise.
920 * config/i386/winnt-stubs.c: Likewise.
921 * config/i386/winnt.c: Likewise.
922 * config/ia64/ia64-c.c: Likewise.
923 * config/ia64/ia64.c: Likewise.
924 * config/iq2000/iq2000.c: Likewise.
925 * config/lm32/lm32.c: Likewise.
926 * config/m32c/m32c-pragma.c: Likewise.
927 * config/m32c/m32c.c: Likewise.
928 * config/m32r/m32r.c: Likewise.
929 * config/m68hc11/m68hc11.c: Likewise.
930 * config/m68k/m68k.c: Likewise.
931 * config/mcore/mcore.c: Likewise.
932 * config/mep/mep-pragma.c: Likewise.
933 * config/mep/mep.c: Likewise.
934 * config/mmix/mmix.c: Likewise.
935 * config/mn10300/mn10300.c: Likewise.
936 * config/moxie/moxie.c: Likewise.
937 * config/pa/pa.c: Likewise.
938 * config/pdp11/pdp11.c: Likewise.
939 * config/picochip/picochip.c: Likewise.
940 * config/rs6000/rs6000-c.c: Likewise.
941 * config/rs6000/rs6000.c: Likewise.
942 * config/rx/rx.c: Likewise.
943 * config/s390/s390.c: Likewise.
944 * config/score/score.c: Likewise.
945 * config/score/score3.c: Likewise.
946 * config/score/score7.c: Likewise.
947 * config/sh/sh.c: Likewise.
948 * config/sh/symbian-base.c: Likewise.
949 * config/sh/symbian-c.c: Likewise.
950 * config/sh/symbian-cxx.c: Likewise.
951 * config/sol2-c.c: Likewise.
952 * config/sol2.c: Likewise.
953 * config/sparc/sparc.c: Likewise.
954 * config/spu/spu.c: Likewise.
955 * config/stormy16/stormy16.c: Likewise.
956 * config/v850/v850-c.c: Likewise.
957 * config/v850/v850.c: Likewise.
958 * config/vax/vax.c: Likewise.
959 * config/vxworks.c: Likewise.
960 * config/xtensa/xtensa.c: Likewise.
961 * convert.c: Likewise.
963 * cselib.c: Likewise.
964 * dbgcnt.c: Likewise.
965 * dbxout.c: Likewise.
967 * dominance.c: Likewise.
968 * emit-rtl.c: Likewise.
969 * explow.c: Likewise.
970 * expmed.c: Likewise.
971 * fixed-value.c: Likewise.
972 * fold-const.c: Likewise.
973 * fwprop.c: Likewise.
975 * ggc-common.c: Likewise.
976 * ggc-page.c: Likewise.
977 * ggc-zone.c: Likewise.
978 * gimple-low.c: Likewise.
979 * gimplify.c: Likewise.
981 * haifa-sched.c: Likewise.
983 * implicit-zee.c: Likewise.
984 * integrate.c: Likewise.
985 * ira-build.c: Likewise.
986 * ira-color.c: Likewise.
987 * ira-conflicts.c: Likewise.
988 * ira-costs.c: Likewise.
989 * ira-lives.c: Likewise.
992 * loop-doloop.c: Likewise.
993 * loop-iv.c: Likewise.
994 * lto-opts.c: Likewise.
995 * lto-symtab.c: Likewise.
997 * modulo-sched.c: Likewise.
998 * optabs.c: Likewise.
999 * params.c: Likewise.
1000 * plugin.c: Likewise.
1001 * postreload-gcse.c: Likewise.
1002 * postreload.c: Likewise.
1003 * predict.c: Likewise.
1004 * profile.c: Likewise.
1006 * regcprop.c: Likewise.
1007 * reginfo.c: Likewise.
1008 * regmove.c: Likewise.
1009 * reorg.c: Likewise.
1010 * resource.c: Likewise.
1012 * rtlanal.c: Likewise.
1013 * sched-deps.c: Likewise.
1014 * sched-ebb.c: Likewise.
1015 * sched-rgn.c: Likewise.
1016 * sdbout.c: Likewise.
1017 * sel-sched-dump.c: Likewise.
1018 * sel-sched-ir.c: Likewise.
1019 * simplify-rtx.c: Likewise.
1021 * stor-layout.c: Likewise.
1022 * store-motion.c: Likewise.
1023 * targhooks.c: Likewise.
1024 * tree-cfg.c: Likewise.
1025 * tree-cfgcleanup.c: Likewise.
1026 * tree-dump.c: Likewise.
1027 * tree-eh.c: Likewise.
1028 * tree-inline.c: Likewise.
1029 * tree-nomudflap.c: Likewise.
1030 * tree-object-size.c: Likewise.
1031 * tree-optimize.c: Likewise.
1032 * tree-outof-ssa.c: Likewise.
1033 * tree-phinodes.c: Likewise.
1034 * tree-profile.c: Likewise.
1035 * tree-ssa-ccp.c: Likewise.
1036 * tree-ssa-coalesce.c: Likewise.
1037 * tree-ssa-live.c: Likewise.
1038 * tree-ssa-loop-niter.c: Likewise.
1039 * tree-ssa-loop-prefetch.c: Likewise.
1040 * tree-ssa-loop.c: Likewise.
1041 * tree-ssa-structalias.c: Likewise.
1042 * tree-ssa-uninit.c: Likewise.
1043 * tree-ssa.c: Likewise.
1044 * tree-vect-data-refs.c: Likewise.
1045 * tree-vect-loop-manip.c: Likewise.
1046 * tree-vect-loop.c: Likewise.
1047 * tree-vect-patterns.c: Likewise.
1048 * tree-vect-stmts.c: Likewise.
1049 * tree-vrp.c: Likewise.
1050 * varasm.c: Likewise.
1053 * xcoffout.c: Likewise.
1055 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
1057 * gengtype.c (write_field_root): New function.
1058 (write_root): Use it.
1060 2010-07-07 Wei Guozhi <carrot@google.com>
1062 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1063 of lowest bits to lshift/compare): Add a missing line.
1065 2010-07-07 Wei Guozhi <carrot@google.com>
1067 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1068 of lowest bits to lshift/compare): New.
1070 2010-07-07 Tom Tromey <tromey@redhat.com>
1072 * doc/tm.texi: Update.
1073 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1075 * target.def (want_debug_pub_sections): New hook.
1076 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1077 * dwarf2out.c (add_pubname_string): Check
1078 targetm.want_debug_pub_sections.
1079 (add_pubname): Likewise.
1080 (add_pubtype): Likewise.
1082 2010-07-07 Jie Zhang <jie@codesourcery.com>
1084 * genautomata.c (output_automata_list_min_issue_delay_code):
1085 Correctly decompress min_issue_delay.
1087 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1089 PR rtl-optimization/44404
1090 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1091 possible, use reg_overlap_mentioned_p instead.
1093 2010-07-07 Duncan Sands <baldrick@free.fr>
1096 * tree.c (build_function_type_skip_args): Copy the original type using
1097 build_distinct_type_copy rather than copy_node.
1099 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1102 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1104 (ix86_expand_prologue): Likewise.
1105 (ix86_handle_fndecl_attribute): Likewise.
1106 (ix86_asm_declare_function_name): Likewise.
1107 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1108 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1109 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1110 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1111 * doc/extend.texi: Likewise.
1113 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1116 * config/i386/i386.md (rdrand<mode>): Changed to expand to
1117 retry if the carry flag isn't valid.
1118 (rdrand<mode>_1): New.
1120 2010-07-07 Richard Guenther <rguenther@suse.de>
1123 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1124 for expanding the constant offset for MEM_REFs.
1126 2010-07-07 Richard Guenther <rguenther@suse.de>
1128 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1129 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
1130 * gimple.h (is_gimple_operand): Remove.
1131 * gimple.c (is_gimple_operand): Likewise.
1132 (walk_gimple_op): Fix wi->val_only setting for calls.
1133 * tree-cfg.c (verify_gimple_call): Fix argument validation.
1134 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1135 invalid gimple calls.
1137 2010-07-06 Jan Hubicka <jh@suse.cz>
1139 * lto-cgraph.c (output_cgraph): Add missing declaration.
1141 2010-07-06 Jan Hubicka <jh@suse.cz>
1143 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1146 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
1148 * doc/gimple.texi (GIMPLE_DEBUG): Document.
1149 * doc/rtl.texi (Debug Information): New node.
1150 (NOTE_INSN_VAR_LOCATION): Document.
1151 (debug_insn): Likewise.
1152 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1154 2010-07-07 Jan Hubicka <jh@suse.cz>
1156 With parts by Richard Guenther.
1159 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1160 for functions passed by reference.
1161 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1162 in memory when passed by reference.
1163 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1165 * ipa-split.c (split_function): Cleanup way return value is passed;
1166 handle SSA DECL_BY_REFERENCE retvals.
1167 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1168 DECL_BY_REFERENCE is set.
1169 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1170 find_what_p_points_to): Handle RESULT_DECL.
1171 * tree-inline.c (declare_return_variable): Get new entry_block argument;
1172 when passing by reference ensure that RESULT_DECL is gimple_val.
1173 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1174 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1176 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1178 PR rtl-optimization/44787
1179 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1180 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1182 2010-07-06 Jan Hubicka <jh@suse.cz>
1184 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1185 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1186 with body can prevail.
1187 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1188 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1189 * cgraph.c (cgraph_get_node_or_alias): New function.
1190 * cgraph.h (cgraph_get_node_or_alias): Declare.
1192 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
1194 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1196 (ix86_expand_prologue): Likewise.
1197 (ix86_handle_fndecl_attribute): Likewise.
1198 (ix86_asm_declare_function_name): New function for
1199 ASM_DECLARE_FUNCTION_NAME.
1200 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
1201 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
1202 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
1203 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
1204 * doc/extend.texi: Adjust documentation about ms_hook_prologue
1207 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1209 * config/i386/i386.md (immediate_operand): New mode attribute.
1211 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
1212 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
1213 using P mode iterator.
1214 (pro_epilogue_adjust_stack_di_2): Rename from
1215 pro_epilogue_adjust_stack_rex64_2.
1217 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
1219 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1221 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
1222 through gen_mov_insv_1 function pointer.
1223 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
1224 gen_truncxf<mode>2 through gen_truncxf function pointer.
1225 (remainder<mode>3): Ditto.
1226 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
1227 (allocate_stack): Call gen_allocate_stack_worker_64 or
1228 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
1230 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
1233 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1235 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
1236 operand constraint instead of <r><i>m.
1238 2010-07-06 Richard Guenther <rguenther@suse.de>
1241 * convert.c (convert_to_integer): Watch out for overflowing
1244 2010-07-05 Jan Hubicka <jh@suse.cz>
1246 * lto-streamer.c (write_symbol_vec): Rename to ...
1247 (write_symbol) ... this one; write only symbol given and when
1248 present in cache. Sanity check that what is defined is present
1249 in cgraph/varpool with body/finalized decl.
1250 (write_symbols_of_kind): Remove.
1251 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
1252 pairs to produce symtab.
1253 (produce_asm_for_decls): Update call of produce_symtab; don't do so
1254 when doing WPA streaming.
1256 2010-07-05 Jan Hubicka <jh@suse.cz>
1258 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
1259 function is still available to fold into.
1261 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1263 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
1264 * function.h (struct_function): Change type of local_decls field
1266 (add_local_decl): New function.
1267 (FOR_EACH_LOCAL_DECL): New macro.
1268 * cfgexpand.c (init_vars_expansion): Adjust for new type of
1270 (estimated_stack_frame_size): Likewise.
1271 (expand_used_vars): Likewise.
1272 * cgraphbuild.c (build_cgraph_edges): Likewise.
1273 * function.c (instantiate_decls_1): Likewise.
1274 * ipa-struct-reorg.c (build_data_structure): Likewise.
1275 * ipa-type-escape.c (analyze_function): Likewise.
1276 * lto-streamer-in.c (input_function): Likewise.
1277 * lto-streamer-out.c (output_function): Likewise.
1278 * tree-ssa-live.c (remove_unused_locals): Likewise.
1279 * tree.c (free_lang_data_in_decl): Likewise.
1280 (find_decls_types_in_node): Likewise.
1281 * omp-low.c (remove_exit_barrier): Likewise.
1282 (expand_omp_taskreg): Likewise.
1283 (list2chain): Rename to...
1284 (vec2chain): ...this. Adjust.
1285 * cgraphunit.c (assemble_thunk): Call add_local_decl.
1286 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1287 * gimple-low.c (record_vars_into): Likewise.
1288 * tree-inline.c (remap_decls): Likewise.
1289 (declare_return_variable): Likewise.
1290 (declare_inline_vars): Likewise.
1291 (copy_forbidden): Adjust for new type of cfun->local_decls.
1292 (add_local_variables): New function.
1293 (expand_call_inline): Call it.
1294 (tree_function_versioning): Likewise.
1296 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
1298 AVX Programming Reference (June, 2010)
1299 * config/i386/cpuid.h (bit_F16C): New.
1300 (bit_RDRND): Likewise.
1301 (bit_FSGSBASE): Likewise.
1303 * config/i386/i386-builtin-types.def: Add
1304 "DEF_FUNCTION_TYPE (UINT16)", function types for
1305 float16 <-> float conversions and
1306 "DEF_FUNCTION_TYPE (VOID, UINT64)".
1308 * config/i386/i386-c.c (ix86_target_macros_internal): Support
1309 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1310 OPTION_MASK_ISA_F16C.
1312 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1313 (OPTION_MASK_ISA_RDRND_SET): Likewise.
1314 (OPTION_MASK_ISA_F16C_SET): Likewise.
1315 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1316 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1317 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1318 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1319 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1320 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1321 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1322 (override_options): Handle them.
1323 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1324 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1325 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1326 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1327 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1328 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1329 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1330 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1331 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1332 (bdesc_args): Likewise.
1333 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1334 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1335 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
1336 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
1337 Handle non-memory store.
1339 * config/i386/i386.h (TARGET_FSGSBASE): New.
1340 (TARGET_RDRND): Likewise.
1341 (TARGET_F12C): Likewise.
1343 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
1344 (UNSPEC_VCVTPS2PH): Likewise.
1345 (UNSPECV_RDFSBASE): Likewise.
1346 (UNSPECV_RDGSBASE): Likewise.
1347 (UNSPECV_WRFSBASE): Likewise.
1348 (UNSPECV_WRGSBASE): Likewise.
1349 (UNSPECV_RDRAND): Likewise.
1350 (rdfsbase<mode>): Likewise.
1351 (rdgsbase<mode>): Likewise.
1352 (wrfsbase<mode>): Likewise.
1353 (wrgsbase<mode>): Likewise.
1354 (rdrand<mode>): Likewise.
1356 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
1358 * config/i386/immintrin.h (_rdrand_u16): New.
1359 (_rdrand_u32): Likewise.
1360 (_readfsbase_u32): Likewise.
1361 (_readfsbase_u64): Likewise.
1362 (_readgsbase_u32): Likewise.
1363 (_readgsbase_u64): Likewise.
1364 (_writefsbase_u32): Likewise.
1365 (_writefsbase_u64): Likewise.
1366 (_writegsbase_u32): Likewise.
1367 (_writegsbase_u64): Likewise.
1368 (_rdrand_u64): Likewise.
1369 (_cvtsh_ss): Likewise.
1370 (_mm_cvtph_ps): Likewise.
1371 (_mm256_cvtph_ps): Likewise.
1372 (_cvtss_sh): Likewise.
1373 (_mm_cvtps_ph): Likewise.
1374 (_mm256_cvtps_ph): Likewise.
1376 * config/i386/sse.md (vcvtph2ps): New.
1377 (*vcvtph2ps_load): Likewise.
1378 (vcvtph2ps256): Likewise.
1379 (vcvtps2ph): Likewise.
1380 (*vcvtps2ph): Likewise.
1381 (*vcvtps2ph_store): Likewise.
1382 (vcvtps2ph256): Likewise.
1384 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
1386 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
1388 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
1391 * genenums.c (main): Output include of insn-constants.h
1392 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
1394 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
1396 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
1397 (override_options): Initialize it.
1398 (ix86_expand_prologue): Use it.
1400 2010-07-05 Jakub Jelinek <jakub@redhat.com>
1402 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
1404 2010-07-05 Anatoly Sokolov <aesok@post.ru>
1406 * double-int.h (fit_double_type): Remove declaration.
1407 * double-int.c (fit_double_type): Remove function.
1408 * tree.h (int_fits_type_p): Adjust prototype.
1409 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
1410 instead of fit_double_type.
1411 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
1412 instead of fit_double_type and build_int_cst_wide.
1413 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
1414 instead of fit_double_type and build_int_cst_wide.
1415 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
1418 2010-07-05 Jan Hubicka <jh@suse.cz>
1420 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
1422 * lto-cgraph.c (referenced_from_other_partition_p,
1423 reachable_from_other_partition_p): Use in_other_partition flags.
1424 (output_node, output_varpool_node): COMDAT nodes always have private
1425 copies and thus are never used from other partition.
1427 2010-07-05 Anatoly Sokolov <aesok@post.ru>
1429 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1430 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
1431 * config/ia64/ia64.c Include reload.h.
1432 (ia64_memory_move_cost): New function.
1433 (TARGET_MEMORY_MOVE_COST): Define.
1434 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
1437 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
1440 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
1441 comments about cost model.
1442 (try_add_cand_for): Add second strategy for choosing initial set
1443 based on original IVs, controlled by ORIGINALP argument.
1444 (get_initial_solution): Add ORIGINALP argument.
1445 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
1446 (find_optimal_iv_set): Try two different strategies for choosing
1447 the IV set, and return the one with lower cost.
1449 2010-07-05 Richard Guenther <rguenther@suse.de>
1451 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
1453 2010-07-05 Richard Guenther <rguenther@suse.de>
1455 * tree.c (reference_alias_ptr_type): New function.
1456 * tree.h (reference_alias_ptr_type): Declare.
1457 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
1458 allow non-TARGET_MEM_REF new refs.
1459 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
1460 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
1461 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
1462 (create_mem_ref): Get alias pointer type. Adjust calls to
1464 (maybe_fold_tmr): Likewise.
1465 * tree-flow.h (create_mem_ref): Adjust prototype.
1467 2010-07-05 Jakub Jelinek <jakub@redhat.com>
1470 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
1471 *from_p is VAR_DECL.
1473 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1475 * tree.h (build_call_list): Remove.
1476 * tree.c (build_call_list): Remove.
1478 2010-07-05 Richard Guenther <rguenther@suse.de>
1480 * double-int.h (double_int_sub): Declare.
1481 * double-int.c (double_int_sub): New function.
1482 * dwarf2out.c (field_byte_offset): Use it.
1483 * fixed-value.c (do_fixed_add): Likewise.
1484 (do_fixed_multiply): Likewise.
1485 (do_fixed_divide): Likewise.
1486 * tree-predcom.c (add_ref_to_chain): Likewise.
1487 (determine_roots_comp): Likewise.
1488 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
1490 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1492 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
1495 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
1497 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
1498 * arm-modes.def (CC_NOTB): Don't define.
1499 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
1500 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
1501 (LTUGEU): New code_iterator.
1502 (cnb, optab): New corresponding code_attrs.
1503 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
1504 to canonical form. Operands 1 and 2 are commutative. Parametrize
1506 (addsi3_carryin_shift_<optab>): Likewise.
1507 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
1508 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
1509 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
1510 (subsi3_compare): Renamed from subsi3_compare0_c.
1511 Change CC_NOTB to CC.
1512 (arm_subsi3_insn): Allow constants for operand 0.
1513 (compare_scc peephole for eq case): New.
1514 (compare_scc splitters): Change CC_NOTB to CC.
1516 2010-07-05 Richard Guenther <rguenther@suse.de>
1518 * tree-ssa-loop-im.c (for_each_index): Do not handle
1520 (gen_lsm_tmp_name): Likewise.
1521 * tree-dump.c (dequeue_and_dump): Likewise.
1522 * tree-pretty-print.c (dump_generic_node): Likewise.
1523 (op_code_prio): Likewise.
1524 (op_symbol_code): Likewise.
1525 * tree.c (staticp): Likewise.
1526 (build1_stat): Likewise.
1527 * tree.h (INDIRECT_REF_P): Likewise.
1528 * fold-const.c (maybe_lvalue_p): Likewise.
1529 (operand_equal_p): Likewise.
1530 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1531 (ao_ref_init_from_vn_reference): Likewise.
1532 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1533 (find_interesting_uses_address): Likewise.
1534 * dwarf2out.c (loc_list_from_tree): Likewise.
1535 * gimplify.c (gimplify_expr): Likewise.
1536 * tree-eh.c (tree_could_trap_p): Likewise.
1537 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1538 * cfgexpand.c (expand_debug_expr): Likewise.
1539 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1540 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1541 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1542 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
1543 * tree-ssa-operands.c (get_expr_operands): Likewise.
1544 * expr.c (safe_from_p): Likewise.
1545 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
1546 * tree-vect-data-refs.c (vect_setup_realignment): Build
1547 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
1548 * tree-vect-stmts.c (vectorizable_load): Likewise.
1549 * tree.def (ALIGN_INDIRECT_REF): Remove.
1551 2010-07-05 Richard Guenther <rguenther@suse.de>
1553 PR tree-optimization/44784
1554 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
1556 (find_or_generate_expression): Fix SCCVN insertion check.
1558 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
1560 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
1561 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1562 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
1565 2010-07-05 Ira Rosen <irar@il.ibm.com>
1567 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
1568 statements that are not vectorized.
1569 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1572 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
1575 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1577 2010-07-05 Richard Guenther <rguenther@suse.de>
1579 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1580 RESULT_DECLs properly.
1582 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
1584 PR rtl-optimization/44695
1585 * config/i386/i386.md (extract_code): Removed.
1586 (<u>divmodqi4): Likewise.
1588 (udivmodqi4): Likewise.
1589 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1590 (udivmodhiqi3): Likewise.
1592 2010-07-04 Jan Hubicka <jh@suse.cz>
1594 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1596 2010-07-04 Jan Hubicka <jh@suse.cz>
1598 * cgraphunit.c (init_cgraph): Only initialize dump file if it
1599 is not already initialized.
1601 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1603 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1604 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1605 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1606 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1607 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1608 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1609 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
1610 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
1611 (sync_new_nand_optab): Redefine as macros.
1612 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
1614 (direct_optab_index): New enum.
1615 (direct_optab_d): New structure.
1616 (direct_optab): New typedef.
1617 (direct_optab_table): Declare.
1618 (direct_optab_handler, set_direct_optab_handler): New functions.
1619 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
1620 (sync_lock_release_optab): New macros.
1621 * optabs.c (direct_optab_table): New variable.
1622 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
1623 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
1624 cmpstr_optab and cmpstrn_optab.
1625 (emit_conditional_move): Likewise for movcc_optab.
1626 (can_conditionally_move_p): Likewise for movcc_gen_code.
1627 (init_insn_codes): Clear direct_optab_table.
1628 (init_optabs): Don't initialize the new "direct optabs" here.
1629 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
1631 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
1632 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
1633 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
1634 (expand_sync_operation): Likewise other sync_*_optabs.
1635 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
1636 to sync_compare_and_swap_optab.
1637 (expand_sync_lock_test_and_set): Use direct_optab_handler for
1638 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
1639 to the names of both.
1640 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
1641 cmpstr_optab and cmpstrn_optab.
1642 (expand_builtin_lock_release): Likewise sync_lock_release.
1643 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
1644 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
1645 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
1646 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
1647 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
1648 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
1649 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
1650 (sync_lock_test_and_set, sync_lock_release): Delete.
1651 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
1652 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
1653 * genopinit.c (optabs): Use set_direct_optab_handler for the new
1655 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
1656 the "optab" local variable. Use direct_optab_handler for optab and
1657 sync_compare_and_swap_optab.
1658 * reload1.c (reload_in_optab, reload_out_optab): Delete.
1659 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
1660 reload_in_optab and reload_out_optab.
1661 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1662 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
1663 * config/pa/pa.c (pa_secondary_reload): Likewise.
1664 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
1665 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
1666 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
1667 (VMSupportsCS8_builtin): Likewise.
1669 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1671 * optabs.h (optab_handlers): Change type of insn_code to int.
1672 (optab_handler, set_optab_handler, convert_optab_handler)
1673 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1675 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1676 (init_insn_codes): Zero both the above arrays.
1677 (init_optabs): Never call init_insn_codes first time around.
1679 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1681 * optabs.h (optab_handler, convert_optab_handler): Turn into
1682 inline functions that return an insn code.
1683 (set_optab_handler, set_convert_optab_handler): New functions.
1684 * builtins.c: Replace optab_handler(X)->insn_code with
1685 optab_handler or set_optab_handler thoughout. Likewise
1686 convert_optab_handler(X)->insn_code with convert_optab_handler
1687 and set_convert_optab_handler.
1688 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1689 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1690 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1691 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1692 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1693 config/spu/spu.c: Likewise.
1695 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1698 * config.gcc (sh*-*-*): Use regular expressions instead of
1699 the 'i' modifier for sed substitutions.
1701 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
1703 * gimple.c (gimple_body): Comments added.
1705 2010-07-04 Richard Guenther <rguenther@suse.de>
1708 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1711 2010-07-04 Richard Guenther <rguenther@suse.de>
1713 PR tree-optimization/44479
1714 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1715 extra SSA name copy statements which preserves points-to
1717 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1718 Copy points-to information for all pointers. Properly handle
1720 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
1722 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1725 2010-07-04 Richard Guenther <rguenther@suse.de>
1728 * tree-inline.c (initialize_inlined_parameters): Do not
1729 re-use pointer-map slot over remap_type call.
1731 2010-07-04 Richard Guenther <rguenther@suse.de>
1733 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1735 2010-07-04 Richard Guenther <rguenther@suse.de>
1737 PR tree-optimization/44656
1738 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1739 again after value-replacing in the defintions lhs.
1741 2010-07-04 Ira Rosen <irar@il.ibm.com>
1742 Revital Eres <eres@il.ibm.com>
1744 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1745 Document new arguments.
1746 * doc/tm.texi: Regenerate.
1747 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1748 Handle unaligned store.
1749 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1750 * target.def (builtin_vectorization_cost): Add new arguments.
1751 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1752 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1753 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1754 (vect_vfa_segment_size): Fix indentation.
1755 * tree-vectorizer.h (struct _vect_peel_info): New.
1756 (struct _vect_peel_extended_info): New.
1757 (struct _loop_vec_info): Add new field for peeling hash table and a
1758 macro for its access.
1759 (VECT_MAX_COST): Define.
1760 (vect_get_load_cost): Declare.
1761 (vect_get_store_cost, vect_get_known_peeling_cost,
1762 vect_get_single_scalar_iteraion_cost): Likewise.
1763 (vect_supportable_dr_alignment): Add new argument.
1764 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1766 (destroy_loop_vec_info): Free peeling hash table.
1767 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1768 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1769 vect_analyze_slp. Fix indentation.
1770 (vect_get_single_scalar_iteraion_cost): New function.
1771 (vect_get_known_peeling_cost): Likewise.
1772 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1773 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1774 statement. Move outside cost calculation inside unknown peeling case.
1775 Call vect_get_known_peeling_cost for known amount of peeling.
1776 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1777 reference to the print message of forced alignment.
1778 (vect_verify_datarefs_alignment): Update call to
1779 vect_supportable_dr_alignment.
1780 (vect_get_data_access_cost): New function.
1781 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1782 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1783 vect_peeling_hash_choose_best_peeling): Likewise.
1784 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1785 to store all the accesses in the loop and find best possible access to
1786 align using peeling for known alignment case. For unknown alignment
1787 check if stores are preferred or if peeling is worthy.
1788 (vect_find_same_alignment_drs): Analyze pairs of loads too.
1789 (vect_supportable_dr_alignment): Add new argument and check aligned
1790 accesses according to it.
1791 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1792 (cost_for_stmt): Call vect_get_stmt_cost.
1793 (vect_model_simple_cost): Likewise.
1794 (vect_model_store_cost): Call vect_get_stmt_cost. Call
1795 vect_get_store_cost to calculate the cost of the statement.
1796 (vect_get_store_cost): New function.
1797 (vect_model_load_cost): Call vect_get_stmt_cost. Call
1798 vect_get_load_cost to calculate the cost of the statement.
1799 (vect_get_load_cost): New function.
1800 (vectorizable_store): Update call to vect_supportable_dr_alignment.
1801 (vectorizable_load): Likewise.
1802 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1803 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1804 arguments. Handle unaligned store.
1805 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1806 (rs6000_builtin_support_vector_misalignment): Return true for word and
1807 double word alignments for VSX.
1808 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1809 vect_supportable_dr_alignment and builtin_vectorization_cost.
1811 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1814 * config/pa/predicates.md (prefetch_cc_operand): Remove.
1815 (prefetch_nocc_operand): Likewise.
1816 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1817 (prefetch_20): New insn.
1818 (prefetch_cc): Remove.
1819 (prefetch_nocc): Likewise.
1821 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1823 * expr.c (vector_mode_valid_p): Move to c-common.c.
1824 * expr.h (vector_mode_valid_p): Do not declare here.
1825 * system.h: Poison GCC_EXPR_H in front-ends.
1826 * Makefile.in: Update dependencies.
1828 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1831 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1833 2010-07-03 Jan Hubicka <jh@suse.cz>
1835 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1836 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1837 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1838 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1841 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1843 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1844 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1845 TV_IPA_LTO_DECL_OUT): New.
1846 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1848 2010-07-03 Jan Hubicka <jh@suse.cz>
1850 * ipa-inline.c (update_edge_key): Break out from ...
1851 update_callers_keys): ... here;
1852 (update_callee_keys): Update only the edges from caller to callee.
1853 (update_all_calle_keys): Do what update_calle_keys did.
1854 (decide_inlining_of_small_functions): Avoid recomputing of all
1855 callees when badness increase.
1857 2010-07-03 Jie Zhang <jie@codesourcery.com>
1859 * config/arm/arm.c (arm_attr_length_move_neon): New.
1860 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1861 * config/arm/neon.md (define_mode_attr V_slen): Remove.
1862 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1863 to compute length attribute.
1865 2010-07-03 Jie Zhang <jie@codesourcery.com>
1867 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1868 as predicate for operand 1 and remove its constraint.
1869 * config/arm/predicates.md (vfp_register_operand): New.
1870 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1871 (*push_fp_multi): Likewise.
1873 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1875 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1877 2010-07-03 Jan Hubicka <jh@suse.cz>
1879 * config/i386/i386.c (override_options): Revert accidental commit.
1881 2010-07-02 Le-Chun Wu <lcwu@google.com>
1884 * doc/invoke.texi: Update documentation of -Wshadow.
1886 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1887 Julian Brown <julian@codesourcery.com>
1888 Sandra Loosemore <sandra@codesourcery.com>
1890 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1891 comparisons. Adjust to take both operands.
1892 (arm_select_cc_mode): Handle DImode comparisons.
1893 (arm_gen_compare_reg): Generate a scratch register for DImode
1894 comparisons which require one. Use xor for Thumb equality checks.
1895 (arm_const_double_by_immediates): New.
1896 (arm_print_operand): Allow 'Q' and 'R' for constants.
1897 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1898 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1899 arm_canonicalize_comparison.
1900 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1901 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1903 (arm_const_double_by_immediates): Declare.
1904 * config/arm/constraints.md (Di): New constraint.
1905 * config/arm/predicates.md (arm_immediate_di_operand)
1906 (arm_di_operand, cmpdi_operand): New.
1907 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1908 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1909 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1910 (cstoredi4): Handle non-Cirrus also.
1912 2010-07-02 Julian Brown <julian@codesourcery.com>
1913 Sandra Loosemore <sandra@codesourcery.com>
1916 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1917 (smax<mode>3): Disable for NEON float modes when
1918 flag_unsafe_math_optimizations is false.
1919 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1921 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1922 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1923 for NEON float modes when flag_unsafe_math_optimizations is false.
1924 (quad_halves_<code>v4sf): Only enable if
1925 flag_unsafe_math_optimizations is true.
1926 * doc/invoke.texi (ARM Options): Add note about floating point
1927 vectorization requiring -funsafe-math-optimizations.
1929 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1930 Julian Brown <julian@codesourcery.com>
1932 * config/arm/neon.md (UNSPEC_VABA): Delete.
1933 (UNSPEC_VABAL): Delete.
1934 (UNSPEC_VABS): Delete.
1935 (UNSPEC_VMUL_N): Delete.
1938 (mul<mode>3add<mode>_neon): Make the pattern named.
1939 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1940 (neon_vadd<mode>): Replace with define_expand, and move the remaining
1942 (neon_vadd<mode>_unspec): ...to this.
1943 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1944 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1945 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1946 (neon_vaba<mode>): Rewrite in terms of vabd.
1947 (neon_vabal<mode>): Rewrite in terms of vabdl.
1948 (neon_vabs<mode>): Rewrite without unspec.
1949 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1950 (*arm_subdi3): Likewise.
1951 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1952 No_op attribute to disable assembly output checks.
1953 * config/arm/arm_neon.h: Regenerated.
1954 * doc/arm-neon-intrinsics.texi: Regenerated.
1956 2010-07-02 Jan Hubicka <jh@suse.cz>
1958 * ipa-split.c (split_function): For aggregate values, set the return
1959 slot optimization bit. When passing DECL_BY_REFERENCE, produce
1960 *<retval> = fncall.part ().
1961 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1963 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1965 * config/arm/neon.md (UNSPEC_VAND): Delete.
1966 (UNSPEC_VBIC): Delete.
1967 (UNSPEC_VCLZ): Delete.
1968 (UNSPEC_VCNT): Delete.
1969 (UNSPEC_VEOR): Delete.
1970 (UNSPEC_VORN): Delete.
1971 (UNSPEC_VORR): Delete.
1972 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
1974 (anddi3_neon): Likewise.
1975 (orndi3_neon): Likewise.
1976 (bicdi3_neon): Likewise.
1977 (xordi3_neon): Likewise.
1978 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1979 rid of unspec and handle unused operand.
1980 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1981 * config/arm/predicates.md (imm_for_neon_logic_operand):
1982 Require TARGET_NEON.
1983 (imm_for_neon_inv_logic_operand): Likewise.
1984 * config/arm/arm.md (define_split for logical_binary_operator):
1985 Disable for NEON registers.
1986 (anddi3): Add new define_expand, and rename the insn. Disable
1987 this insn for NEON, where anddi3_neon now applies.
1988 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
1989 (iordi3): As for anddi3.
1991 * config/arm/neon.ml (Vand): Split DImode variants and mark them
1992 as No_op to disable testing for exact instruction match.
1997 * config/arm/arm_neon.h: Regenerated.
1998 * doc/arm-neon-intrinsics.texi: Regenerated.
2000 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2002 * expr.h (emit_stack_probe): Declare.
2003 * explow.c (emit_stack_probe): Make global.
2004 (anti_adjust_stack_and_probe): Fix comments.
2005 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2006 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2007 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2008 * config/sparc/sparc.c: Include except.h.
2009 (sparc_emit_probe_stack_range): New function.
2010 (output_probe_stack_range): Likewise.
2011 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2012 built-in stack checking is enabled.
2013 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2014 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2015 (probe_stack_range): New insn.
2017 2010-07-02 Richard Guenther <rguenther@suse.de>
2020 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2021 for argument alignment.
2023 2010-07-02 Jan Hubicka <jh@suse.cz>
2025 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2026 walk backwards from entry_bb to check only those basic block of header
2027 that might lead to execution of split part.
2028 (consider_split) ... here.
2029 (find_return_bb): Allow assignment in return BB.
2031 (split_function): Fix name of cloned function; take care of updating
2032 return value in return_bb containing move.
2034 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
2037 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2040 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2042 * implicit-zee.c (combine_reaching_defs): Fix long lines.
2043 (is_set_with_extension_DI): Delete.
2044 (struct zero_extend_info): New structure.
2045 (add_removable_zero_extend): New function.
2046 (find_removable_zero_extends): Use note_stores to find SETs.
2047 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2049 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2051 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2052 is_miss_rate_acceptable. Pull total_positions computation
2053 out of the loops. Early return if miss_positions exceeds
2054 the acceptable threshold.
2055 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2056 is_miss_rate_acceptable after renaming of compute_miss_rate.
2058 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2061 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2062 of 1000) for miss rate if the address diference is greater than or
2063 equal to the cache line size (the two reference will never hit the
2066 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
2069 * config/arm/arm-modes.def (CC_NOTB): New mode.
2070 * config/arm/arm.c (get_arm_condition_code): Handle it.
2071 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2072 * config/arm/arm.md (subsi3_compare0_c): New pattern.
2073 (compare_scc): Now a define_and_split. Add a number of extra
2074 splitters before it.
2077 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2079 (arm_rtx_costs_1): Likewise.
2080 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2081 * config/arm/arm.md (is_arch6): New attribute.
2082 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2083 extendqisi2): Tighten the code somewhat, avoiding invalid
2084 RTL to occur in the expander patterns.
2085 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2086 (thumb1_zero_extendhisi2_v6): Delete.
2087 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2088 (thumb1_extendhisi2_v6): Delete.
2089 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2090 (thumb1_extendqisi2_v6): Delete.
2091 (zero_extendhisi2 for register input splitter): New.
2092 (zero_extendqisi2 for register input splitter): New.
2093 (thumb1_extendhisi2 for register input splitter): New.
2094 (extendhisi2 for register input splitter): New.
2095 (extendqisi2 for register input splitter): New.
2096 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2097 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2098 and add support for a register alternative requiring a split.
2099 (thumb1_zero_extendqisi2): Likewise.
2100 (arm_zero_extendqisi2): Likewise.
2101 (arm_extendhisi2): Likewise.
2102 (arm_extendqisi2): Likewise.
2104 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2106 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2107 instead of an unspec.
2108 (neon_expand_vector_init): Likewise.
2109 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2110 (UNSPEC_VDUP_LANE): Delete.
2111 (UNSPEC VDUP_N): Delete.
2112 (UNSPEC_VGET_HIGH): Delete.
2113 (UNSPEC_VGET_LANE): Delete.
2114 (UNSPEC_VGET_LOW): Delete.
2115 (UNSPEC_VMVN): Delete.
2116 (UNSPEC_VSET_LANE): Delete.
2117 (V_double_vector_mode): New.
2118 (vec_set<mode>_internal): Make code emitted match that for the
2119 corresponding intrinsics.
2120 (vec_setv2di_internal): Likewise.
2121 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2122 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2123 (neon_vset_lane<mode>): Combine double and quad patterns and
2124 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2125 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2126 (neon_vdup_n<mode>): Rewrite RTL without unspec.
2127 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2128 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2129 with neon_vdup_lanev2di, adjusting the pattern from the latter
2130 to be predicable for consistency.
2131 (neon_vdup_lane<mode>_internal): New.
2132 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2133 to avoid using an unspec.
2134 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2135 (neon_vdup_lanev2di): Turn into a define_expand.
2136 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2137 (neon_vget_high<mode>): Replace with....
2138 (neon_vget_highv16qi): New pattern using canonical RTL.
2139 (neon_vget_highv8hi): Likewise.
2140 (neon_vget_highv4si): Likewise.
2141 (neon_vget_highv4sf): Likewise.
2142 (neon_vget_highv2di): Likewise.
2143 (neon_vget_low<mode>): Replace with....
2144 (neon_vget_lowv16qi): New pattern using canonical RTL.
2145 (neon_vget_lowv8hi): Likewise.
2146 (neon_vget_lowv4si): Likewise.
2147 (neon_vget_lowv4sf): Likewise.
2148 (neon_vget_lowv2di): Likewise.
2150 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2151 test for this emitting vmov.
2152 (Vset_lane): Likewise.
2156 * doc/arm-neon-intrinsics.texi: Regenerated.
2158 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2160 * config/arm/neon.md (vec_extractv2di): Correct error in register
2161 numbering to reconcile with neon_vget_lanev2di.
2163 2010-07-02 Richard Guenther <rguenther@suse.de>
2165 * tree-ssa-structalias.c (pt_solution_set_var): New function.
2166 * tree-ssa-alias.h (pt_solution_set_var): Declare.
2167 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2168 points-to information.
2170 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
2172 * config/s390/s390.c (override_options): Adopt prefetching
2173 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2175 2010-07-02 Jan Hubicka <jh@suse.cz>
2177 * df-problems.c (df_kill_notes): Do not collect dead notes.
2178 (df_set_note): Just call add_reg_note.
2179 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2180 df_create_unused_note): Do not deal with lists of old notes.
2181 (df_note_bb_compute): Likewise.
2183 2010-07-02 Richard Guenther <rguenther@suse.de>
2185 * tree-ssa-structalias.c (find_func_aliases): Handle
2186 pointer alignment via BIT_AND_EXPR.
2187 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2189 2010-07-02 Richard Guenther <rguenther@suse.de>
2191 * tree-data-ref.c (initialize_data_dependence_relation): Handle
2192 mismatching number of dimensions properly.
2194 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2197 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2198 (lo_sum (high ...) ...) patterns generated by earlier passes.
2200 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2202 * doc/install.texi (Prerequisites): Document Perl requirement on
2204 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
2206 2010-07-02 Richard Guenther <rguenther@suse.de>
2209 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2211 2010-07-02 Jan Hubicka <jh@suse.cz>
2214 * predict.c (predict_paths_for_bb): Handle case when control dependence
2215 BB has only abnormal edges.
2217 2010-07-02 Richard Guenther <rguenther@suse.de>
2219 PR tree-optimization/44748
2220 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
2221 the embedded conversion in MEM_REFs.
2223 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
2225 * reload.c: Include toplev.h.
2226 * recog.c: Likewise.
2227 * Makefile.in: Adjust dependencies.
2229 2010-07-01 Jakub Jelinek <jakub@redhat.com>
2232 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
2233 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
2235 2010-07-01 Richard Guenther <rguenther@suse.de>
2237 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
2240 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
2243 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
2246 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
2249 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2250 Make sure operand 0 dies.
2252 2010-07-01 Richard Guenther <rguenther@suse.de>
2256 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
2257 * doc/generic.texi (References to storage): Document MEM_REF.
2258 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
2259 (print_call_name): Likewise.
2260 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
2261 (build_simple_mem_ref_loc): New function.
2262 (mem_ref_offset): Likewise.
2263 * tree.h (build_simple_mem_ref_loc): Declare.
2264 (build_simple_mem_ref): Define.
2265 (mem_ref_offset): Declare.
2266 * fold-const.c: Include tree-flow.h.
2267 (operand_equal_p): Handle MEM_REF.
2268 (build_fold_addr_expr_with_type_loc): Likewise.
2269 (fold_comparison): Likewise.
2270 (fold_unary_loc): Fold
2271 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2272 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2273 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2274 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2275 (ptr_deref_may_alias_ref_p_1): Likewise.
2276 (ao_ref_base_alias_set): Properly differentiate base object for
2278 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2279 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2280 (indirect_refs_may_alias_p): Likewise.
2281 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
2283 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2284 (call_may_clobber_ref_p_1): Likewise.
2285 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2286 * expr.c (expand_assignment): Handle MEM_REF.
2287 (store_expr): Handle MEM_REFs from STRING_CSTs.
2288 (store_field): If expanding a MEM_REF of a non-addressable
2289 decl use bitfield operations.
2290 (get_inner_reference): Handle MEM_REF.
2291 (expand_expr_addr_expr_1): Likewise.
2292 (expand_expr_real_1): Likewise.
2293 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2294 * alias.c (ao_ref_from_mem): Handle MEM_REF.
2295 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
2296 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2297 (dr_analyze_indices): Likewise.
2298 (dr_analyze_alias): Likewise.
2299 (object_address_invariant_in_loop_p): Likewise.
2300 * gimplify.c (mark_addressable): Handle MEM_REF.
2301 (gimplify_cond_expr): Build MEM_REFs.
2302 (gimplify_modify_expr_to_memcpy): Likewise.
2303 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2304 (gimple_fold_indirect_ref): Adjust.
2305 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
2306 * tree.def (MEM_REF): New tree code.
2307 * tree-dfa.c: Include toplev.h.
2308 (get_ref_base_and_extent): Handle MEM_REF.
2309 (get_addr_base_and_unit_offset): New function.
2310 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2311 * gimple-fold.c (may_propagate_address_into_dereference): Handle
2313 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2314 accesses if the array has just one dimension. Remove always true
2315 parameter. Do not require type compatibility here.
2316 (maybe_fold_offset_to_component_ref): Remove.
2317 (maybe_fold_stmt_indirect): Remove.
2318 (maybe_fold_reference): Remove INDIRECT_REF handling.
2319 Fold back to non-MEM_REF.
2320 (maybe_fold_offset_to_address): Simplify. Deal with type
2322 (maybe_fold_reference): Likewise.
2323 (maybe_fold_stmt_addition): Likewise. Also handle
2324 &ARRAY + I in addition to &ARRAY[0] + I.
2325 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2326 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2327 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2328 * tree-ssa.c (useless_type_conversion_p): Make most pointer
2329 conversions useless.
2330 (warn_uninitialized_var): Handle MEM_REF.
2331 (maybe_rewrite_mem_ref_base): New function.
2332 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2334 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2335 INDIRECT_REF handling.
2336 (copy_tree_body_r): Handle MEM_REF.
2337 * gimple.c (is_gimple_addressable): Adjust.
2338 (is_gimple_address): Likewise.
2339 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
2340 invariant base are invariant.
2341 (is_gimple_min_lval): Adjust.
2342 (is_gimple_mem_ref_addr): New function.
2343 (get_base_address): Handle MEM_REF.
2344 (count_ptr_derefs): Likewise.
2345 (get_base_loadstore): Likewise.
2346 * gimple.h (is_gimple_mem_ref_addr): Declare.
2347 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
2348 * tree-cfg.c (verify_address): New function, split out from ...
2349 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
2350 the address operand of MEM_REFs. Verify MEM_REFs. Reject
2352 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
2353 INDIRECT_REF. Allow conversions.
2354 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
2355 a register does not change its size.
2356 (verify_types_in_gimple_reference): Verify MEM_REF.
2357 (verify_gimple_assign_single): Disallow INDIRECT_REF.
2359 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
2361 (mark_address_taken): Handle MEM_REF.
2362 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
2363 (get_asm_expr_operands): Pass opf_not_non_addressable.
2364 (get_expr_operands): Handle opf_[not_]non_addressable.
2365 Handle MEM_REF. Remove INDIRECT_REF handling.
2366 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
2367 (search_for_addr_array): Likewise.
2368 (check_array_bounds): Likewise.
2369 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
2370 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
2371 (ref_always_accessed_p): Likewise.
2372 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
2373 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
2375 * cgraphbuild.c (mark_load): Properly check for NULL result
2376 from get_base_address.
2377 (mark_store): Likewise.
2378 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
2379 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
2380 handling for MEM_REF.
2381 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
2382 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
2383 * builtins.c (stabilize_va_list_loc): Use the function ABI
2384 valist type if we couldn't canonicalize the argument type.
2385 Always dereference with the canonical va-list type.
2386 (maybe_emit_free_warning): Handle MEM_REF.
2387 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
2389 * builtins.c (fold_builtin_memory_op): Use ref-all types
2390 for all memcpy foldings.
2391 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
2392 (build_outer_var_ref): Likewise.
2393 (scan_omp_1_op): Likewise.
2394 (lower_rec_input_clauses): Likewise.
2395 (lower_lastprivate_clauses): Likewise.
2396 (lower_reduction_clauses): Likewise.
2397 (lower_copyprivate_clauses): Likewise.
2398 (expand_omp_atomic_pipeline): Likewise.
2399 (expand_omp_atomic_mutex): Likewise.
2400 (create_task_copyfn): Likewise.
2401 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
2402 Remove old union trick. Initialize constant offsets.
2403 (ao_ref_init_from_vn_reference): Likewise. Do not handle
2404 INDIRECT_REF. Init base_alias_set properly.
2405 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
2406 (vn_reference_fold_indirect): Adjust for MEM_REFs.
2407 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
2409 (may_insert): Remove.
2410 (visit_reference_op_load): Do not test may_insert.
2411 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
2412 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
2413 a field to store the constant offset this op applies.
2414 (run_scc_vn): Adjust prototype.
2415 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
2416 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
2417 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
2418 bother about volatile qualifiers on pointers.
2419 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
2420 * tree-ssa-loop-ivopts.c
2421 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
2422 (strip_offset_1): Likewise.
2423 (find_interesting_uses_address): Replace INDIRECT_REF handling with
2425 (get_computation_cost_at): Likewise.
2426 * ipa-pure-const.c (check_op): Handle MEM_REF.
2427 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
2428 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
2430 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
2431 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
2432 (eliminate_local_variables_1): Likewise.
2433 (create_call_for_reduction_1): Likewise.
2434 (create_loads_for_reductions): Likewise.
2435 (create_loads_and_stores_for_name): Likewise.
2436 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
2437 (ssa_accessed_in_tree): Handle MEM_REF.
2438 (ssa_accessed_in_assign_rhs): Likewise.
2439 (update_type_size): Likewise.
2440 (analyze_accesses_for_call_stmt): Likewise.
2441 (analyze_accesses_for_assign_stmt): Likewise.
2442 (transform_access_sites): Likewise.
2443 (transform_allocation_sites): Likewise.
2444 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
2445 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2446 not handle INDIRECT_REF.
2447 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
2448 (cond_store_replacement): Likewise.
2449 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
2450 MEM_REF, no not handle INDIRECT_REFs.
2451 (insert_into_preds_of_block): Properly initialize avail.
2452 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
2453 for ARRAY_REFs. Properly handle reference lookups that
2454 require a bit re-interpretation.
2455 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
2456 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
2457 (build_ref_for_offset_1): Remove.
2458 (build_ref_for_offset): Build MEM_REFs.
2459 (gate_intra_sra): Disable for now.
2460 (sra_ipa_modify_expr): Handle MEM_REF.
2461 (ipa_early_sra_gate): Disable for now.
2462 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
2464 (disqualify_base_of_expr): Likewise.
2465 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
2467 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
2468 Use mem_ref_offset. Remove bogus folding.
2469 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
2470 (make_fancy_name_1): Add support for MEM_REF.
2471 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
2472 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
2473 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
2474 (compute_complex_ancestor_jump_func): Likewise.
2475 (ipa_analyze_virtual_call_uses): Likewise.
2476 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
2477 INDIRECT_REF folding with more generalized MEM_REF folding.
2478 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
2479 (forward_propagate_addr_into_variable_array_index): Also handle
2480 &ARRAY + I in addition to &ARRAY[0] + I.
2481 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
2482 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
2483 creates assignments with overlap.
2484 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
2485 (get_frame_field): Likewise.
2486 (get_nonlocal_debug_decl): Likewise.
2487 (convert_nonlocal_reference_op): Likewise.
2488 (struct nesting_info): Add mem_refs pointer-set.
2489 (create_nesting_tree): Allocate it.
2490 (convert_local_reference_op): Insert to be folded mem-refs.
2491 (fold_mem_refs): New function.
2492 (finalize_nesting_tree_1): Perform defered folding of mem-refs
2493 (free_nesting_tree): Free the pointer-set.
2494 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
2495 (vectorizable_load): Likewise.
2496 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
2497 (propagate_with_phi): Likewise.
2498 * tree-object-size.c (addr_object_size): Handle MEM_REFs
2499 instead of INDIRECT_REFs.
2500 (compute_object_offset): Handle MEM_REF.
2501 (plus_stmt_object_size): Handle MEM_REF.
2502 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
2504 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
2505 (symbol_marked_for_renaming): Likewise.
2506 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
2507 (fold-const.o): Add $(TREE_FLOW_H).
2508 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
2509 (find_func_clobbers): Likewise.
2510 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
2511 (decompose_access): Likewise.
2512 (replace_field_acc): Likewise.
2513 (replace_field_access_stmt): Likewise.
2514 (insert_new_var_in_stmt): Likewise.
2515 (get_stmt_accesses): Likewise.
2516 (reorg_structs_drive): Disable.
2517 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
2518 (ix86_canonical_va_list_type): Likewise.
2520 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2523 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
2524 * target.def (struct gcc_target): Replace enum reg_class with
2525 reg_class_t in hook argument / return types.
2526 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
2527 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
2528 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2529 * targhooks.h (default_branch_target_register_class): Likewise.
2530 (default_ira_cover_classes, default_secondary_reload): Likewise.
2531 (default_memory_move_cost, default_register_move_cost): Likewise.
2532 * targhooks.c (default_branch_target_register_class): Likewise.
2533 (default_ira_cover_classes, default_secondary_reload): Likewise.
2534 (default_memory_move_cost, default_register_move_cost): Likewise.
2535 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
2536 * bt-load.c (branch_target_load_optimize): Likewise.
2537 * ira.c (setup_cover_and_important_classes): Likewise.
2538 * ira-costs.c (copy_cost): Likewise.
2539 * reload1.c (emit_input_reload_insns): Likewise.
2540 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2541 * config/frv/frv.c (frv_secondary_reload): Likewise.
2542 * config/s390/s390.c (s390_secondary_reload): Likewise.
2543 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
2544 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
2545 (ix86_register_move_cost): Likewise.
2546 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
2547 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
2548 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
2549 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
2550 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
2551 (rs6000_ira_cover_classes): Likewise.
2552 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
2553 * config/picochip/picochip-protos.h (picochip_secondary_reload):
2555 * config/pa/pa.c (pa_secondary_reload): Likewise.
2556 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
2557 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
2558 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
2559 * doc/tm.texi: Regenerate.
2561 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
2564 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
2566 (build_alias_set_optimal_p): Likewise.
2567 (build_base_obj_set_for_drs): Likewise.
2569 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2571 * target.def: Remove comment about licensing problems of function
2574 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
2575 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2576 * doc/tm.texi: Regenerate.
2578 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
2579 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2581 * target.def (enum_va_list_p): Use DEFHOOK.
2582 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2583 Rename ptype to ptree.
2584 * doc/tm.texi: Regenerate.
2586 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
2587 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2588 * doc/tm.texi: Regenerate.
2590 * target.def (memory_move_cost): Use DEFHOOK.
2591 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2592 Rename regclass AKA class to rclass.
2593 * doc/tm.texi: Regenerate.
2595 * target.def (pragma_parse): Use DEFHOOK.
2596 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2597 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2598 * doc/tm.texi: Regenerate.
2600 * target.def (pass_by_reference): Use DEFHOOK.
2601 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2602 * doc/tm.texi: Regenerate.
2604 * target.def (resolve_overloaded_builtin): Rename params to arglist.
2606 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2607 * doc/tm.texi: Regenerate.
2609 * target.def (return_pops_args): Use DEFHOOK.
2610 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
2611 Rename stack-size to size.
2612 * doc/tm.texi: Regenerate.
2614 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
2615 last-sched_cycle to last_clock, cur_cycle to clock.
2616 * doc/tm.texi.in: Use @hook.
2617 * doc/tm.texi: Regenerate.
2619 * target.def (print_operand, print_operand_address): Update comment.
2620 (print_operand_punct_valid_p): Likewise.
2622 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2624 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
2626 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
2627 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
2629 * regrename.c: Do not include toplev.h. Include rtl-error.h.
2630 * rtl-error.c: Likewise.
2631 * reload.c: Likewise.
2632 * recog.c: Likewise.
2633 * sel-sched.c: Likewise.
2634 * function.c: Likewise.
2635 * reg-stack.c: Likewise.
2636 * cfgrtl.c: Likewise.
2637 * reload1.c: Likewise.
2638 * final.c: Include rtl-error.
2639 * Makefile.in: Adjust dependencies.
2641 2010-06-30 Jan Hubicka <jh@suse.cz>
2643 PR middle-end/PR44706
2644 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
2645 to return the value.
2647 2010-06-30 Michael Matz <matz@suse.de>
2650 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
2651 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
2652 a gimple reg, attach the original VDEF to the last store in the
2655 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
2658 * config/darwin.c (darwin_override_options): Use renamed
2659 targetm.asm_out.emit_unwind_label.
2661 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2663 PR tree-optimization/39799
2664 * tree-inline.c (remap_ssa_name): Initialize variable only if
2665 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2667 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
2669 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2671 2010-06-30 Richard Guenther <rguenther@suse.de>
2674 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2675 against oscillation with reverse peephole2.
2677 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
2680 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2683 2010-06-30 Nick Clifton <nickc@redhat.com>
2685 * config/rx/rx-modes.def: New file.
2686 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2687 (CC_REGNUM): Define.
2688 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2690 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2691 (SELECT_CC_MODE): Define.
2692 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
2693 (reg:CC CC_REG) instead of (cc0).
2694 (attr "cc"): Delete.
2695 (cbranchsi4): Do not split compare and branch here. Instead move
2697 (cbranchsi4_<code>): ... here. New patterns.
2698 (cmpsi): Call rx-compare_redundant to find out if it is necessary
2699 to emit the compare instruction.
2700 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2702 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2703 FIRST_PSEUDO_REGNUM.
2704 (rx_expand_prologue, rx_expand_epilogue): Likewise.
2705 (rx_notice_update_cc): Delete.
2706 (rx_cc_modes_compatible): New function.
2707 (flags_needed_for_conditional): New function.
2708 (flags_from_mode): New function.
2709 (rx_compare_redundant): New function - scans backwards through
2710 insn list to find out if condition flags are already set correctly.
2711 (TARGET_CC_MODES_COMPATIBLE): Define.
2712 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2714 * config/rx/rx.h (BRANCH_COST): Define.
2715 (REGISTER_MOVE_COST): Define.
2716 * config/rx/predicates (rx_source_operand): Allow all constant types.
2717 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2718 (tstsi4): New pattern.
2719 * config/rx/rx.c (rx_memory_move_cost): Define.
2720 (TARGET_MEMORY_MOVE_COST): Define.
2722 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2724 * tree.h (block_may_fallthru): Declare here.
2725 * tree-flow.h (block_may_fallthru): Do not declare here.
2726 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2728 * Makefile.in (c-typeck.o): Update dependencies.
2730 2010-06-30 Jakub Jelinek <jakub@redhat.com>
2733 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2734 * cselib.c (cfa_base_preserved_regno): New static variable.
2735 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2736 of REGNO (cfa_base_preserved_val->locs->loc).
2737 (cselib_preserve_cfa_base_value): Add regno argument, set
2738 cfa_base_preserved_regno to it.
2739 (cselib_invalidate_regno): Allow removal of registers other than
2740 cfa_base_preserved_regno from cfa_base_preserved_val.
2741 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2742 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2743 of MEM addresses, if not on LHS.
2744 (reverse_op): Don't add reverse ops for cfa_base_rtx.
2745 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2747 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2749 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2751 (peep2_buf_position): New static function.
2752 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2753 peephole2_optimize): Use it.
2754 (peep2_attempt, peep2_update_life): New static functions, broken out
2755 of peephole2_optimize.
2756 (peep2_fill_buffer): New static function.
2757 (peephole2_optimize): Change the main loop to try to fill the buffer
2758 with the maximum number of insns before matching them against
2759 peepholes. Use a forward scan. Remove special case for targets with
2760 conditional execution.
2761 * genrecog.c (change_state): Delete dead code.
2762 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2763 Rewrite so as not to expect the second insn to have had a peephole
2766 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2768 * genhooks.c (emit_findices): Cast field precision to int.
2769 (emit_documentation): Likewise.
2771 2010-06-29 Jakub Jelinek <jakub@redhat.com>
2773 PR tree-optimization/43801
2774 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2775 if old_decl was DECL_ONE_ONLY.
2778 * dwarf2out.c (add_accessibility_attribute): New function.
2779 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2780 instead of adding DW_AT_accessibility manually.
2781 (gen_enumeration_type_die, gen_struct_or_union_type_die,
2782 gen_typedef_die): Use it.
2784 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2786 * vmsdbgout.c (full_name): Just output the file name if not native.
2788 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2790 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2791 (funcnam_table): New static table.
2792 (funcnum_table): New static table.
2793 (write_rtnbeg): Write value saved in funcnum_table.
2794 (write_rtnend): Write value saved in funcnum_table.
2795 (vmsdbgout_begin_function): Save current function info in
2796 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2797 (vmsdbgout_finish): Iterate over funcnum_table.
2799 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2801 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2802 (vmsdbgout_type_decl): Declare
2803 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2804 (FUNC_EPILOGUE_LABEL): New macro
2805 (vmsdbgout_begin_epilogue): New function.
2806 (vmsdbgout_type_decl): New function.
2808 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2810 * vmsdbg.h: Update copyright.
2812 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2814 * vmsdbg.h (DST_K_TBG): New DST constant.
2815 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2816 (write_modbeg): Cast module_language to avoid warning.
2817 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2819 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2822 * target.def, doc/tm.texi.in, genhooks.c: New files.
2823 * target.h: Instead of defining individual hook members,
2824 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2826 * target-def.h: Instead of defining individual hook initializers,
2827 include target-hooks-def.h.
2828 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2829 targetm.live_on_entry -> targetm.extra_live_on_entry
2830 targetm.sched.md_finish ->targetm.sched.finish
2831 targetm.sched.md_init -> targetm.sched.init
2832 targetm.sched.md_init_global -> targetm.sched.init_global
2833 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2834 targetm.asm_out.except_table_label ->
2835 targetm.asm_out.emit_except_table_label
2836 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2837 targetm.target_help -> targetm.help
2838 targetm.vectorize.builtin_support_vector_misalignment ->
2839 targetm.vectorize.support_vector_misalignment
2840 targetm.file_start_app_off -> targetm.asm_file_start_app_off
2841 targetm.file_start_file_directive ->
2842 targetm.asm_file_start_file_directive
2843 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2844 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2845 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2846 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2847 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2848 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2849 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2850 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2851 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2852 * Makefile.in (TARGET_H): Depend on target.def.
2853 (TARGET_DEF_H): Depend on target-hooks-def.h.
2854 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2855 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2856 * doc/tm.texi: Regenerate.
2858 * Makefile.in (s-tm-texi): Remove stray tab / rule.
2860 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2861 (targetm.sched.init): Likewise.
2863 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2866 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2867 (function_arg_advance_32): Const-ify TYPE parameter.
2868 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
2869 (ix86_function_arg_advance): Change type of NAMED to bool.
2870 (function_arg_32): Const-ify CUM and TYPE parameters.
2871 (function_arg_64): Likewise. Change type of NAMED to bool.
2872 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2874 (ix86_function_arg): Change type of NAMED to bool.
2875 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
2876 last argument as a bool.
2878 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2880 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2881 (OVERRIDE_OPTIONS): Add note of obsolescence.
2882 Replace references with references to TARGET_OPTION_OVERRIDE.
2883 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2885 * targhooks.c (default_target_option_override): New function.
2886 * targhooks.h (default_target_option_override): Declare.
2887 * target.h (struct gcc_target): Add override member to
2888 target_option member.
2889 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2890 targetm.target_option.override call.
2891 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2892 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2894 2010-06-29 Jan Hubicka <jh@suse.cz>
2896 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2898 2010-06-29 Jan Hubicka <jh@suse.cz>
2900 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2902 (rebuild_frequencies): New function.
2903 * predict.h (rebuild_frequencies): Declare.
2904 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2905 entry block and edge reaching new_entry.
2906 (tree_function_versioning): When doing partial cloning, rebuild
2907 frequencies when done.
2908 * passes.c (execute_function_todo): Use rebild_frequencies.
2910 2010-06-29 Richard Guenther <rguenther@suse.de>
2912 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2913 * tree-flow.h (enum noalias_state): Remove.
2914 (struct var_ann_d): Remove noalias_state member.
2916 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2919 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2920 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
2921 (maddhidi4): Likewise.
2923 Revert parts of the change for PR25130.
2924 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2927 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2929 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2930 targetm.calls.function_incoming_arg, and
2931 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2932 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2933 * target.h (struct gcc_target): Add function_arg_advance,
2934 function_arg, and function_incoming_arg fields.
2935 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2936 (TARGET_FUNCTION_INCOMING_ARG): Define.
2937 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2938 and TARGET_FUNCTION_INCOMING_ARG.
2939 * targhooks.h (default_function_arg_advance): Declare.
2940 (default_function_arg, default_function_incoming_arg): Declare.
2941 * targhooks.c (default_function_arg_advance): New function.
2942 (default_function_arg, default_function_incoming_arg): New function.
2943 * config/i386/i386.c (function_arg_advance): Rename to...
2944 (ix86_function_arg_advance): ...this. Make static.
2945 (function_arg): Rename to...
2946 (ix86_function_arg): ...this. Make static.
2947 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2948 (TARGET_FUNCTION_ARG): Define.
2949 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2950 (FUNCTION_ARG): Delete.
2951 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2952 (function_arg): Delete prototype.
2954 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2956 * reginfo.c (init_reg_sets_1): Adjust comments.
2957 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2958 * calls.c (prepare_call_address): Likewise.
2959 (emit_call_1): Use targetm.calls.return_pops_args.
2960 (expand_call): Likewise.
2961 * function.c (assign_parms): Likewise.
2962 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2963 * target.h (struct gcc_target) [struct calls]: Add
2964 return_pops_args field.
2965 * targhooks.h (default_return_pops_args): Declare.
2966 * targhooks.c (default_return_pops_args): Define.
2967 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2968 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2969 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2970 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
2972 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2973 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2974 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2975 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2976 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2977 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2978 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2979 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2980 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2981 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2982 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2983 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2984 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
2985 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
2986 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
2987 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
2988 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
2989 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
2990 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
2991 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
2992 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
2993 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
2994 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
2995 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
2996 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
2997 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
2998 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
2999 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3000 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3001 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3002 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3003 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3004 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3005 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3006 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3007 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3008 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3009 * config/i386/i386.c (ix86_return_pops_args): Make static.
3011 (TARGET_RETURN_POPS_ARGS): Define.
3012 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3013 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
3014 (TARGET_RETURN_POPS_ARGS): Define.
3015 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3016 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
3017 (TARGET_RETURN_POPS_ARGS): Define.
3019 2010-06-29 Richard Guenther <rguenther@suse.de>
3022 * tree-inline.c (initialize_inlined_parameters): Make sure
3023 to remap the inlined parameter variable substitutions types.
3025 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
3027 PR rtl-optimization/44659
3028 * combine.c (make_compound_operation) <SUBREG>: Do not return the
3029 result of force_to_mode if it partially re-expanded the compound.
3031 2010-06-28 Jan Hubicka <jh@suse.cz>
3034 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3037 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3039 * double-int.h (force_fit_type_double): Remove declaration.
3040 * double-int.c (force_fit_type_double): Move to tree.c.
3041 * tree.h (force_fit_type_double): Declare.
3042 * tree.h (force_fit_type_double): Moved from double-int.c. Use
3043 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3044 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3045 * convert.c (convert_to_pointer): Adjust call to
3046 force_fit_type_double.
3047 * tree-vrp.c (extract_range_from_assert,
3048 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3049 * fold-const.c: Update comment.
3050 (int_const_binop, fold_convert_const_int_from_int,
3051 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3052 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3053 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3054 round_up_loc): Adjust call to force_fit_type_double.
3056 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3058 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3060 2010-06-28 Martin Jambor <mjambor@suse.cz>
3062 * tree-sra.c (convert_callers): New parameter, change fndecls of
3064 (modify_function): Pass the old decl to convert_callers.
3066 2010-06-28 Martin Jambor <mjambor@suse.cz>
3068 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3069 ipa_check_create_node_params and ipa_initialize_node_params with
3070 checking asserts they are not necessary.
3072 2010-06-28 Jan Hubicka <jh@suse.cz>
3074 PR tree-optimization/44687
3075 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3077 2010-06-28 Martin Jambor <mjambor@suse.cz>
3080 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3081 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3082 instead of BINFO_BASE_BINFO.
3084 2010-06-28 Michael Matz <matz@suse.de>
3087 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3088 proper VDEF chain for intermediate stores in the sequence.
3090 2010-06-28 Jan Hubicka <jh@suse.cz>
3092 PR tree-optimization/44357
3093 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3094 uninlinable functions.
3096 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3098 * config.gcc (powerpc*-*-*): Handle titan.
3099 * config/rs6000/rs6000.c (titan_cost): New costs.
3100 (rs6000_override_options): Add "titan" to processor_target_table.
3101 Add Titan to branch alignment logic.
3102 Correctly set rs6000_cost for titan.
3103 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
3104 * config/rs6000/titan.md: New file.
3105 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3107 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3109 * tree-browser.c (TB_history_stack): Convert to a VEC.
3110 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3111 (TB_history_prev): Likewise.
3113 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3115 * vec.h (vec_heap_free): Add parentheses around free.
3117 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3119 * system.h: Poison GCC_EXCEPT_H for front-end files.
3121 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3123 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3124 Define to NULL by default.
3125 * except.h: Define GCC_EXCEPT_H.
3126 (doing_eh): Remove prototype.
3127 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3128 (lang_protect_cleanup_actions): Remove.
3129 * except.c (lang_protect_cleanup_actions): Remove.
3131 (gen_eh_region): Don't check doing_eh here.
3132 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3133 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3134 instead of lang_protect_cleanup_actions.
3135 * omp-low.c (maybe_catch_exception): Likewise.
3136 * Makefile.in: Update dependencies.
3138 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
3140 * cgraph.h (struct varpool_node): new used_from_object_file flag.
3141 (struct cgraph_local_info): new used_from_object_file flag.
3142 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3143 (cgraph_clone_node): initialize used_from_object_file.
3144 (cgraph_create_virtual_clone): initialize used_from_object_file.
3145 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3146 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3147 when compiling with -fwhole-program.
3148 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3150 * ipa.c (function_and_variable_visibility): Set externally_visible
3151 flag of varpool_node if used_from_object_file flag is set.
3152 (cgraph_externally_visible_p): check used_from_object_file flag.
3153 * doc/invoke.texi (-fwhole-program option): Change description of
3154 externally_visible attribute accordingly.
3155 * doc/extend.texi (externally_visible): Ditto.
3157 2010-06-27 Jan Hubicka <jh@suse.cz>
3159 * params.def (max-inline-insns-auto): Default to 40.
3160 * doc/invoke.texi (max-inline-insns-auto): Document the change.
3162 2010-06-27 Jan Hubicka <jh@suse.cz>
3166 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3168 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3169 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3171 2010-06-27 Anatoly Sokolov <aesok@post.ru>
3173 * target.h (struct gcc_target): Add register_move_cost field.
3174 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3175 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3176 * targhooks.c (default_register_move_cost): New function.
3177 * targhooks.h (default_register_move_cost): Declare function.
3178 * defaults.h (REGISTER_MOVE_COST): Delete.
3179 * ira-int.h (ira_register_move_cost): Update comment.
3180 * ira.c: (ira_register_move_cost): Update comment.
3181 * reload.h (register_move_cost): Declare.
3182 * reginfo.c (register_move_cost): New function.
3183 (move_cost): Update comment.
3184 (init_move_cost, memory_move_secondary_cost): Replace
3185 REGISTER_MOVE_COST with register_move_cost.
3186 * postreload.c (reload_cse_simplify_set): (Ditto.).
3187 * reload.c (find_valid_class, find_reloads): (Ditto.).
3188 * reload1.c (choose_reload_regs): (Ditto.).
3189 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3190 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3191 * doc/md.texi (can_create_pseudo_p): Update documentation.
3193 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3194 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3195 * config/i386/i386.h (ix86_memory_move_cost): Make static.
3196 (TARGET_MEMORY_MOVE_COST): Define.
3198 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3199 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3200 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
3201 (TARGET_MEMORY_MOVE_COST): Define.
3203 2010-06-27 Richard Guenther <rguenther@suse.de>
3205 PR tree-optimization/44683
3206 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
3207 false edge from the inverted condition.
3209 2010-06-27 Richard Guenther <rguenther@suse.de>
3212 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
3213 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
3214 for register LHS. Or non-store assignments.
3216 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
3218 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
3219 (sparc_emit_set_const64): Likewise. Remove disabled code.
3220 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
3221 (sparc_emit_set_const64): Likewise.
3223 2010-06-26 Catherine Moore <clm@codesourcery.com>
3225 * config/mips/mips.md (alu_type): New attribute.
3226 (type): Infer type from alu_type.
3227 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
3228 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
3229 *subsi3_extended, negsi2, negdi2, *low<mode>,
3230 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
3231 xor<mode>3, *nor<mode>3,
3232 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
3233 *zero_extendhi_truncqi): Set alu_type instead of type.
3235 2010-06-26 Douglas B Rupp <rupp@gnat.com>
3237 * config/alpha/alpha.c (alpha_need_linkage): Adjust
3238 splay_tree_new_ggc call.
3239 (alpha_use_linkage): Likewise.
3241 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3243 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
3244 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
3245 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
3246 (static_specs): Remove switches_need_spaces.
3247 (process_command, do_self_spec): Hardcode handling "-o" instead of
3248 checking switches_need_spaces.
3249 * system.h (SWITCHES_NEED_SPACES): Poison.
3251 2010-06-26 Richard Guenther <rguenther@suse.de>
3253 PR tree-optimization/44393
3254 * tree-loop-distribution.c (generate_loops_for_partition): Fix
3255 stmt removal and VOP renaming.
3256 (generate_memset_zero): Remove redundant stmt updating.
3257 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
3258 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
3260 2010-06-26 Jan Hubicka <jh@suse.cz>
3262 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
3263 edges comming from header are equivalent.
3264 (visit_bb): Handle PHIs correctly.
3265 * tree-inline.c (copy_phis_for_bb): Be able to copy
3266 PHI from entry edge.
3267 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3269 2010-06-26 Richard Guenther <rguenther@suse.de>
3272 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3273 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
3275 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3277 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3278 add_infile, alloc_switch): New.
3279 (process_command): Remove variable lang_n_infiles. Process
3280 options in a single pass. Use new functions for allocating
3281 infiles and switches arrays. Properly skip operands of
3282 -Xpreprocessor and -Xassembler.
3284 2010-06-26 Jan Hubicka <jh@suse.cz>
3287 * cgraphunit.c (cgraph_function_versioning): Remove wrong
3288 cgraph_make_decl_local call; fix typo copying RTL data.
3290 2010-06-25 DJ Delorie <dj@redhat.com>
3292 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3293 (m32c_output_aligned_common): Likewise.
3294 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3295 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3296 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3297 (m32c_register_pragmas): Register it.
3298 * config/m32c/m32c.c (m32c_get_pragma_address): New.
3299 (m32c_insert_attributes): Set #pragma address decls volatile.
3300 (pragma_entry_eq): New.
3301 (pragma_entry_hash): New.
3302 (m32c_note_pragma_address): New.
3303 (m32c_get_pragma_address): New.
3304 (m32c_output_aligned_common): New.
3305 * doc/extend.texi: Document the new pragma.
3307 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3309 * config/m32c/predicates.md (m32c_any_operand): Check the code
3310 instead of memory_operand so as to allow matching volatile MEMs.
3311 (m32c_nonimmediate_operand): Likewise.
3312 (mra_operand): Allow volatiles.
3314 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
3317 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3318 address if the offset is unknown.
3320 2010-06-25 Douglas B Rupp <rupp@gnat.com>
3322 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3323 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3324 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3325 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3326 to ia64_start_function. Invoke it.
3327 * config/ia64/ia64.c (ia64_start_function): Call new function
3328 dwarf2out_vms_debug_main_pointer.
3330 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3332 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3333 statements computing the true predicate.
3335 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3337 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
3338 to boolean_true_node.
3339 (reset_bb_predicate): New.
3340 (predicate_bbs): Call reset_bb_predicate.
3342 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3344 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
3345 (tree_if_conversion): Returns true when something has been changed.
3346 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
3349 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3351 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
3352 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
3353 * tree-if-conv.c: Include dbgcnt.h.
3354 (tree_if_conversion): Use if_conversion_tree to count the number of
3355 if-convertible loops.
3357 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
3359 * common.opt (fprefetch-loop-arrays): Re-define
3360 -fprefetch-loop-arrays as a tri-state option with the initial
3362 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
3363 pass only when flag_prefetch_loop_arrays > 0.
3364 * toplev.c (process_options): Note that, with tri-states,
3365 flag_prefetch_loop_arrays>0 means prefetching is enabled.
3366 * config/i386/i386.c (override_options): Enable prefetching at -O3
3367 for a set of CPUs that sw prefetching is helpful.
3368 (software_prefetching_beneficial_p): New. Return TRUE if software
3369 prefetching is beneficial for the given CPU.
3371 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
3373 PR rtl-optimization/44326
3374 * implicit-zee.c (find_removable_zero_extends): Replace
3375 INSN_P with NONDEBUG_INSN_P.
3377 2010-06-25 Martin Jambor <mjambor@suse.cz>
3379 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
3380 (struct ipa_node_params): Removed the modification_analysis_done flag.
3381 (ipa_is_param_modified): Removed.
3382 (ipa_analyze_node): Declare.
3383 (ipa_compute_jump_functions): Remove declaration.
3384 (ipa_count_arguments): Likewise.
3385 (ipa_detect_param_modifications): Likewise.
3386 (ipa_analyze_params_uses): Likewise.
3387 * ipa-prop.c (struct param_analysis_info): New type.
3388 (visit_store_addr_for_mod_analysis): Removed.
3389 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
3390 moved down in the file.
3391 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
3392 (ipa_count_arguments): Made static.
3393 (mark_modified): New function.
3394 (is_parm_modified_before_call): New function.
3395 (compute_pass_through_member_ptrs): New parameter parms_info, call
3396 is_parm_modified_before_call instead of ipa_is_param_modified.
3397 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
3398 it to compute_pass_through_member_ptrs.
3399 (ipa_compute_jump_functions): New parameter parms_info, pass it to
3400 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
3401 on the callee if it is analyzed. Made static.
3402 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
3403 is_parm_modified_before_call instead of ipa_is_param_modified.
3404 (ipa_analyze_call_uses): New parameter parms_info, pass it to
3405 ipa_analyze_indirect_call_uses.
3406 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
3407 ipa_analyze_call_uses.
3408 (ipa_analyze_params_uses): New parameter parms_info, pass it to
3409 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
3410 (ipa_analyze_node): New function.
3411 (ipa_print_node_params): Do not dump the modified flag.
3412 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
3413 it. Do not stream the modified parameter flag.
3414 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
3415 it. Do not stream the modified parameter flag.
3416 * ipa-cp.c (ipcp_analyze_node): Removed.
3417 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
3418 with only a call to ipa_analyze_node.
3419 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
3420 node with only a call to ipa_analyze_node.
3422 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3424 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
3426 2010-06-25 Jan Hubicka <jh@suse.cz>
3428 * tree-pass.h (pass_split_functions): Declare.
3429 * opts.c (decode_options): Enable function splitting at -O2
3430 * timevar.def (TV_IPA_FNSPLIT): New macro.
3431 * ipa-split.c: New file.
3432 * common.opt (-fpartial-inlining): New flag.
3433 * Makefile.in (ipa-split.o): New object file.
3434 * passes.c (init_optimization_passes): Add ipa-split.
3435 * params.def (partial-inlining-entry-probability): New parameters.
3436 * doc/invoke.texi (-fpartial-inlining): New.
3438 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3441 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
3442 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
3443 (gimplify_expr): Likewise.
3445 2010-06-25 Martin Jambor <mjambor@suse.cz>
3447 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
3448 statements instead of bailing out on them.
3449 (ipa_analyze_indirect_call_uses): Do not require that loads from the
3450 parameter are in the same BB as the condition. Update comments.
3452 2010-06-25 Jakub Jelinek <jakub@redhat.com>
3455 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
3456 true or always false, return NULL_TREE.
3457 (tree_unswitch_single_loop): Optimize conditions even when reaching
3458 max-unswitch-level parameter. If num > 0, optimize first all conditions
3459 using entry checks, then do still reachable block discovery and consider
3460 only conditions in still reachable basic blocks in the loop.
3462 PR tree-optimization/44539
3463 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
3464 the call doesn't have LHS, but has VDEF.
3466 2010-06-25 Joseph Myers <joseph@codesourcery.com>
3468 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
3469 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
3470 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
3471 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
3472 * system.h (MODIFY_TARGET_NAME): Poison.
3474 2010-06-25 Alan Modra <amodra@gmail.com>
3476 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
3477 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
3478 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3479 CMODEL_LARGE as default.
3480 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
3481 (offsettable_ok_by_alignment): Delete.
3482 (rs6000_emit_move): Remove mcmodel=medium optimization.
3484 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
3486 With large parts from Jim Wilson:
3488 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
3489 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3490 * optabs.c (optab_for_tree_code): Likewise.
3491 (expand_widen_pattern_expr): Likewise.
3492 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
3493 out of execute_optimize_widening_mul.
3494 (convert_plusminus_to_widen): New function.
3495 (execute_optimize_widening_mul): Use the two new functions.
3496 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
3497 Remove code to generate widening multiply-accumulate. Add support
3498 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3499 * gimple-pretty-print.c (dump_ternary_rhs): New function.
3500 (dump_gimple_assign): Call it when appropriate.
3501 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
3502 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
3503 (expand_gimple_stmt_1): Likewise.
3504 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
3505 WIDEN_MULT_MINUS_EXPR.
3506 * tree-ssa-operands.c (get_expr_operands): Likewise.
3507 * tree-inline.c (estimate_operator_cost): Likewise.
3508 * gimple.c (extract_ops_from_tree_1): Renamed from
3509 extract_ops_from_tree. Add new arg for a third operand; fill it.
3510 (gimple_build_assign_stat): Support operations with three operands.
3511 (gimple_build_assign_with_ops_stat): Likewise.
3512 (gimple_assign_set_rhs_from_tree): Likewise.
3513 (gimple_assign_set_rhs_with_ops_1): Renamed from
3514 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
3515 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
3516 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
3517 WIDEN_MULT_MINUS_EXPR.
3518 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
3519 (extract_ops_from_tree_1): Adjust declaration.
3520 (gimple_assign_set_rhs_with_ops_1): Likewise.
3521 (gimple_build_assign_with_ops): Pass NULL for last operand.
3522 (gimple_build_assign_with_ops3): New macro.
3523 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
3524 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
3526 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
3527 (verify_gimple_assign): Call it.
3528 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
3529 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
3530 functions for dealing with three-operand statements.
3531 * tree.c (commutative_ternary_tree_code): New function.
3532 * tree.h (commutative_ternary_tree_code): Declare it.
3533 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
3535 (gimple_assign_nonzero_warnv_p): Likewise.
3536 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
3537 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
3538 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
3539 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
3540 (struct hashtable_expr): New member ternary in the union.
3541 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
3542 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
3543 (iterative_hash_hashable_expr): Likewise.
3544 (print_expr_hash_elt): Handle EXPR_TERNARY.
3545 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
3546 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
3547 statements. Handle GIMPLE_TERNARY_RHS.
3549 2010-06-25 Jan Hubicka <jh@suse.cz>
3551 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
3553 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
3556 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
3557 parameters are not good.
3558 (c_parser_parameter_declaration): Error unknown type name if the type
3559 name can't start declaration specifiers.
3561 2010-06-25 Joseph Myers <joseph@codesourcery.com>
3563 * gcc.c (translate_options): Don't mention +e in comment.
3564 (process_command): Don't handle +e specially.
3566 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
3568 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3570 * ira-build.c (merge_hard_reg_conflicts): New function.
3571 (create_cap_allocno, copy_info_to_removed_store_destinations,
3572 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3573 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3574 (remove_unnecessary_allocnos, remove_low_level_allocnos)
3575 copy_nifo_to_removed_store_destination): Use them.
3576 * ira-lives.c (make_hard_regno_born): New function, split out of
3578 (make_allocno_born): Likewise.
3579 (make_hard_regno_dead): New function, split out of make_regno_dead.
3580 (make_allocno_dead): Likewise.
3581 (inc_register_pressure): New function, split out of set_allocno_live.
3582 (dec_register_pressure): New function, split out of clear_allocno_live.
3583 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3584 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
3585 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3586 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
3587 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3588 mark_pseudo_regno_live.
3589 (process_bb_node_lives): Use mark_pseudo_regno_live,
3590 make_hard_regno_born and make_allocno_dead.
3591 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3592 set_allocno_live, clear_allocno_live): Delete functions.
3594 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3595 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3597 (ira_flattening): Use ira_parent_allocno.
3598 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3599 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3601 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3604 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3605 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3606 minmax_set_iter_cond, minmax_set_iter_next,
3607 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3608 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3609 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
3610 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
3613 * ira-int.h (struct live_range, live_range_t): Renamed from struct
3614 ira_allocno_live_range and allocno_live_range_t; all uses changed.
3615 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
3618 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
3620 * thumb2.md (thumb2_tlobits_cbranch): Delete.
3621 (peephole2 to convert zero_extract/compare of single bit to
3622 lshift/compare): New.
3624 2010-06-24 Anatoly Sokolov <aesok@post.ru>
3626 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
3627 recursive call and call to 'int_const_binop'.
3628 (build_range_check, fold_cond_expr_with_comparison, unextend,
3629 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
3630 multiple_of_p): Adjust call to const_binop.
3632 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
3634 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
3635 determine size of XFmode operand.
3636 (XFmode extended DFmode push splitter): Ditto.
3637 (XFmode extended SFmode push splitter): Ditto.
3639 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
3642 * config/i386/i386.md (extract_code): New.
3643 (<u>divmodqi4): Likewise.
3644 (divmodhiqi3): Likewise.
3645 (udivmodhiqi3): Likewise.
3646 (<u>divqi3): Remvoved.
3648 2010-06-24 Jakub Jelinek <jakub@redhat.com>
3651 * recog.h (struct recog_data): Add is_asm field.
3652 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
3653 present in constraints of inline-asm operand and memory operand
3654 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
3655 (extract_insn): Initialize recog_data.is_asm.
3656 * doc/md.texi (Constraints): Document operand side-effect rules.
3658 2010-06-24 Andi Kleen <ak@linux.intel.com>
3660 * c-parser.c (c_parser_conditional_expression): Call
3661 warn_for_omitted_condop.
3662 * doc/invoke.texi: Document omitted condop warning.
3664 2010-06-24 Nick Clifton<nickc@redhat.com>
3666 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
3667 insn in the sequence is a jump insn before setting its label.
3669 2010-06-24 Alan Modra <amodra@gmail.com>
3671 * collect2.c (main): Match exactly --version and --help.
3673 2010-06-24 DJ Delorie <dj@redhat.com>
3675 * config/m32c/m32c-pragma.c: Don't include rtl.h.
3677 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
3679 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
3680 using X87MODEF mode iterator.
3681 (pushsf splitter): Macroize splitter using P mode iterator.
3682 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3685 (*movxf_internal): Rename from *movxf_integer.
3686 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3687 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3688 (*movdf_internal): Rename from *movdf_integer.
3689 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3690 (*movsf_internal): Rename from *movdf_1.
3692 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
3694 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3695 (const_gimple_seq_node): Removed typedefs.
3697 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3698 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3700 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
3702 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3703 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3704 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3705 and CODE_FOR_vec_extract_lo_v4df.
3707 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3708 Changed to define_insn_and_split.
3709 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3710 (vec_extract_lo_v16hi): Likewise.
3711 (vec_extract_lo_v32qi): Likewise.
3712 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3713 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3715 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
3718 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3719 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3720 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3721 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3722 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3725 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3728 * df-core.c (struct df): Rename to df_d.
3729 * df.h (struct df): Likewise.
3730 * dse.h (struct df): Remove forward declaration.
3731 * recog.h (struct insn_data): Rename to:
3732 (struct_insn_data_d). Adjusted all users.
3734 2010-06-23 Arnaud Charlet <charlet@adacore.com
3737 * doc/install.texi: Update requirements to build GNAT.
3739 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
3741 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3743 (m68k_sched_attr_opx_type): Remove unreachable return.
3744 (m68k_sched_attr_opy_type): Likewise.
3745 (m68k_sched_attr_size): Likewise.
3746 (sched_get_opxy_mem_type): Likewise.
3747 (m68k_sched_attr_op_mem): Likewise.
3749 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
3751 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3752 new statement and adjust VDEF only if necessary. Remove superfluous
3753 call to maybe_clean_or_replace_eh_stmt.
3754 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3756 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3757 * tree-inline.c (copy_bb): ...and not there.
3759 2010-06-22 Cary Coutant <ccoutant@google.com>
3761 * dwarf2out.c (is_nested_in_subprogram): New function.
3762 (should_move_die_to_comdat): Use it.
3763 (copy_ancestor_tree): Don't mark DIEs here.
3764 (copy_decls_walk): Start walk from root of newly-added tree;
3765 mark DIEs here instead.
3767 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
3769 * config/i386/i386.md (unit): Also check sseishft1.
3771 2010-06-22 Jan Hubicka <jh@suse.cz>
3773 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3776 2010-06-22 Jan Hubicka <jh@suse.cz>
3778 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3779 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3780 Return true if something changed.
3781 * df.h (df_confluence_function_n): Return bool.
3782 * df-core.c (df_worklist_propagate_forward,
3783 df_worklist_propagate_backward): Track changes and ages.
3784 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3786 * dse.c (dse_confluence_n): Return always true.
3788 2010-06-22 Jan Hubicka <jh@suse.cz>
3790 * bitmap.c (bitmap_clear_bit): Micro optimize.
3792 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
3794 * config/i386/i386.md (SWI1248x): New mode iterator.
3799 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3800 SWI1248x mode iterator.
3801 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3802 using SWI124 mode iterator.
3803 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3805 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
3806 *pushdi2_prologue_rex64 using P mode iterator.
3807 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3808 using SWI48 mode iterator.
3809 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3810 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3811 using SWI1248x mode iterator.
3812 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3813 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3814 SWI48 mode iterator.
3815 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3817 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3818 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3819 SWI12 mode iterator.
3820 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3821 SWI12 mode iterator.
3822 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3823 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3824 SWI24 mode iterator.
3825 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3826 SWI48 mode iterator.
3827 (mov<mode>_insn_1): New expander.
3828 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3829 using SWI48x mode iterator.
3831 (*movoi_internal_avx): Rename from *movoi_internal.
3832 (*movti_internal_rex64): Rename from *movti_rex64.
3833 (*movti_internal_sse): Rename from *movti_sse.
3834 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3835 (*movdi_internal): Rename from *movdi_2.
3836 (*movsi_internal): Rename from *movsi_1.
3837 (*movhi_internal): Rename from *movhi_1.
3838 (*movqi_internal): Rename from *movqi_1.
3840 (insv): Update the call to gen_movsi_insv_1 for rename.
3841 * config/i386/i386.c (promote_duplicated_reg): Ditto.
3843 2010-06-22 Jan Hubicka <jh@suse.cz>
3845 * passes.c (execute_function_todo): Move call of statistics_fini_pass
3847 (execute_todo) ... this one.
3849 2010-06-22 Alan Modra <amodra@gmail.com>
3852 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3853 * caller-save.c (insert_restore, insert_save): Use non-validate
3854 form of adjust_address.
3856 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3859 * config/pa/pa.c (override_options): Disable
3860 -freorder-blocks-and-partition.
3862 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
3865 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3867 * config/i386/i386.md (type): Add sseishft1
3869 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3870 (ppro_insn_load): Likewise.
3871 (ppro_insn_store): Likewise.
3872 (ppro_insn_both): Likewise.
3874 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3875 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3877 (*vec_extractv2di_1_avx): Likewise.
3878 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3879 type. Remove atom_unit.
3880 (*vec_extractv2di_1_sse2): Likewise.
3882 2010-06-21 DJ Delorie <dj@redhat.com>
3884 * diagnostic.h (diagnostic_classification_change_t): New.
3885 (diagnostic_context): Add history and push/pop list.
3886 (diagnostic_push_diagnostics): Declare.
3887 (diagnostic_pop_diagnostics): Declare.
3888 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3889 from pragmas in a history chain instead of the global table.
3890 (diagnostic_push_diagnostics): New.
3891 (diagnostic_pop_diagnostics): New.
3892 (diagnostic_report_diagnostic): Scan history chain to find state
3893 of diagnostics as of the diagnostic location.
3894 * opts.c (set_option): Pass UNKNOWN_LOCATION to
3895 diagnostic_classify_diagnostic.
3896 (enable_warning_as_error): Likewise.
3897 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3898 use in the history chain.
3899 * doc/extend.texi: Document pragma GCC diagnostic changes.
3901 2010-06-21 Jakub Jelinek <jakub@redhat.com>
3903 * dwarf2out.c (add_linkage_name): New function. Don't add
3904 anything to DW_TAG_member DIEs.
3905 (add_name_and_src_coords_attributes): Use it.
3906 (gen_variable_die): Call it for C++ static data members if
3907 specification is DW_TAG_member.
3909 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3910 C++ char16_t and char32_t.
3912 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3913 * genattrtab.c: Include vecprim.h.
3914 (cached_attrs, cached_attr_count, attrs_seen_once,
3915 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3916 attrs_cached_after): New variables.
3917 (find_attrs_to_cache): New function.
3918 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3919 (write_test_expr): Add attrs_cached argument, return it too,
3920 attempt to cache non-const attributes used more than once in
3921 a single case handling.
3922 (write_attr_get): Use find_attrs_to_cache, for caching candidates
3923 emit cached_* variables. Adjust write_attr_set callers.
3924 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3925 to find attributes that should be cached in this block. Adjust
3926 write_test_expr callers.
3927 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
3929 (make_automaton_attrs): Adjust write_test_expr caller.
3931 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3932 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3933 (make_automaton_attrs): If find_tune_attr returns non-NULL,
3934 write separate internal_dfa_insn_code_* and insn_default_latency_*
3935 functions for each attribute's value and emit init_sched_attrs
3936 function and function pointers.
3937 * genattr.c (const_attrs, reservations): New variables.
3938 (gen_attr): Add const attributes to const_attrs vector.
3939 (check_tune_attr, find_tune_attr): New functions.
3940 (main): Add reservations to reservations vector. If find_tune_attr
3941 returns true, add prototype for init_sched_attrs and make
3942 internal_dfa_insn_code and insn_default_latency function pointers,
3943 otherwise define init_sched_attrs as dummy macro.
3944 * cfgexpand.c: Include insn-attr.h.
3945 (gimple_expand_cfg): Call init_sched_attrs.
3947 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3950 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3951 va_arg from a set of register save slots into a temporary,
3952 if the container is bigger than type size, do the copying
3953 using smaller mode or using memcpy.
3956 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3958 (sel_print_to_dot): Remove macro.
3959 (sel_print): Likewise. New prototype.
3960 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3961 (sel_print): New function.
3963 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3965 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3966 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3968 2010-06-21 Nick Clifton <nickc@redhat.com>
3970 * config/rx/rx.h (PTRDIFF_TYPE): Define.
3971 (SMALL_REGISTER_CLASS): Define (to zero).
3972 (PRINT_OPERAND): Delete.
3973 (PRINT_OPERAND_ADDRESS): Delete.
3974 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3975 (rx_print_operand_address): Delete prototype.
3976 * config/rx/rx.c (rx_print_operand): Make static.
3977 Allow %H and %L to handle CONST_DOUBLEs.
3978 (rx_print_operand_address): Make static.
3979 (rx_gen_move_template): Rename local variable 'template' to
3981 (rx_function_arg): Do not pass unknown sized objects in registers.
3982 (TARGET_PRINT_OPERAND): Define.
3983 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3985 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3987 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
3989 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
3991 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
3992 stack-alignment for simple leaf-functions.
3994 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3996 * doc/install.texi: Document bootstrap-lto.
3998 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4001 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4002 (input_function): Drop them here, if VTA is disabled.
4004 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
4007 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4009 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4010 ix86_swapped_fp_comparsion_operator instead of
4011 ix86_fp_comparison_operator.
4013 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4014 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4015 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4016 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4017 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4018 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4020 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4023 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4024 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4025 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4026 (decode_cmdline_option): Update for this return value. Set
4027 orig_option_with_args_text field. Set arg field for unknown
4028 options. Make static.
4029 (decode_cmdline_options_to_array): New.
4030 (prune_options): Update handling of find_opt return value.
4031 * opts.c (read_cmdline_option): Take decoded option. Return void.
4032 (read_cmdline_options): Take decoded options.
4033 (decode_options): Add parameters for decoded options. Use
4034 decode_cmdline_options_to_array. Use decoded options for -O
4035 scan. Use integral_argument for -O parameters. Update call to
4036 read_cmdline_options.
4037 (enable_warning_as_error): Update handling of find_opt return value.
4038 * opts.h: Update comment on unknown options.
4039 (struct cl_decoded_option): Update comments on opt_index and arg.
4040 Add orig_option_with_args_text.
4041 (decode_cmdline_option): Remove.
4042 (decode_cmdline_options_to_array): Declare.
4043 (decode_options): Update prototype.
4044 * toplev.c (save_argv): Remove.
4045 (save_decoded_options, save_decoded_options_count): New.
4046 (read_integral_parameter): Remove.
4047 (print_switch_values): Use decoded options.
4048 (toplev_main): Don't set save_argv. Update call to decode_options.
4049 * toplev.h (read_integral_parameter): Remove.
4050 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4052 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
4055 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4057 * constraints.md (Pw, Px): New constraints.
4058 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4060 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
4062 * config/i386/sse.md (fma4modesuffixf4): Removed.
4063 (ssemodesuffixf2s): Likewise.
4064 (ssemodesuffixf4): Likewise.
4065 (ssemodesuffixf2c): Likewise.
4066 (ssescalarmodesuffix2s): Likewise.
4067 (avxmodesuffixf2c): Likewise.
4068 (ssemodesuffix): New.
4069 (ssescalarmodesuffix): Likewise.
4070 Update patterns with ssemodesuffix and ssescalarmodesuffix.
4072 2010-06-19 Philip Herron <herron.philip@googlemail.com>
4074 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4076 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
4078 * stor-layout.c (debug_rli): Remove unused local variables.
4080 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4082 PR rtl-optimization/40900
4083 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
4084 original expression for later reuse.
4085 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4086 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4088 2010-06-18 Anatoly Sokolov <aesok@post.ru>
4090 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4091 double_int_fits_in_uhwi_p): Implement as static inline.
4092 (double_int_xor): New inline function.
4093 (double_int_lrotate, double_int_rrotate, double_int_max,
4094 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4095 double_int_smin): Declare.
4096 (lrotate_double, rrotate_double): Remove declaration.
4097 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4098 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4099 (double_int_lrotate, double_int_rrotate, double_int_max,
4100 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4101 double_int_smin): New function.
4102 * fold-const.c (int_const_binop): Clean up, use double_int_*
4104 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4105 double_int_* and immed_double_int_const functions.
4107 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4109 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4110 * function.c (types_used_by_cur_var_decl): Likewise.
4111 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4113 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4115 * tree.h (record_layout_info): Change type of pending_statics field
4117 * stor-layout.c (start_record_layout): Store NULL into
4119 (debug_rli): Call debug_vec_tree instead of debug_tree.
4120 (place_field): Likewise.
4121 (finish_record_layout): Likewise.
4123 2010-06-18 Alan Modra <amodra@gmail.com>
4125 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4127 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4130 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4131 for SET source operand from SET destination operand.
4133 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
4135 PR rtl-optimization/39871
4136 * reload1.c (init_eliminable_invariants): For flag_pic, disable
4137 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4138 (function_invariant_p): Rule out a plus of frame or arg pointer with
4140 * ira.c (find_reg_equiv_invariant_const): Likewise.
4142 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
4144 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4145 print_operand_address and puts to output the operand for CONST.
4147 2010-06-17 Jakub Jelinek <jakub@redhat.com>
4150 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4153 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4155 * v850-protos.h (print_operand): Delete.
4156 (print_operand_address): Delete.
4157 * v850.h (PRINT_OPERAND): Delete.
4158 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4159 (PRINT_OPERAND_ADDRESS): Delete.
4160 * v850.c (print_operand_address): Rename to...
4161 (v850_print_operand_address): ...this. Make static. Call
4163 (print_operand): Rename to...
4164 (v850_print_operand): ...this. Make static. Call
4165 v850_print_operand_address.
4166 (v850_print_operand_punct_valid_p): New function.
4167 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4168 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4170 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4172 * config/sh/sh-protos.h (print_operand): Delete.
4173 (print_operand_address): Delete.
4174 * config/sh/sh.h (PRINT_OPERAND): Delete.
4175 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4176 (PRINT_OPERAND_ADDRESS): Delete.
4177 * config/sh/sh.c (sh_print_operand_address): Make static.
4178 (sh_print_operand): Make static. Call sh_print_operand_address
4179 and sh_print_operand.
4180 (sh_print_operand_punct_valid_p): New function.
4181 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4182 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4184 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4186 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4187 (mcore_print_operand_address): Delete.
4188 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4189 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4190 (PRINT_OPERAND_ADDRESS): Delete.
4191 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4192 (mcore_print_operand): Make static.
4193 (mcore_print_operand_punct_valid_p): New function.
4194 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4195 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4197 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4199 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4200 (print_operand_address): Delete.
4201 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
4202 (PRINT_OPERAND_ADDRESS): Delete.
4203 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
4205 (m68hc11_print_operand): Make static.
4206 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4208 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4210 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
4211 (m32r_print_operand_address): Delete.
4212 * config/m32r/m32r.h (m32r_punct_chars): Delete.
4213 (PRINT_OPERAND): Delete.
4214 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4215 (PRINT_OPERAND_ADDRESS): Delete.
4216 * config/m32r/m32r.c (m32r_punct_chars): Make static.
4217 (m32r_print_operand_address): Make static.
4218 (m32r_print_operand): Make static.
4219 (m32r_print_operand_punct_valid_p): New function.
4220 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4221 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4223 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4225 * config/iq2000/iq2000-protos.h (print_operand): Delete.
4226 (print_operand_address): Delete.
4227 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
4228 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4229 (PRINT_OPERAND_ADDRESS): Delete.
4230 (iq2000_print_operand_punct): Delete.
4231 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
4232 (iq2000_print_operand_address): Make static.
4233 (iq2000_print_operand): Make static.
4234 (iq2000_print_operand_punct_valid_p): New function.
4235 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4236 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4238 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4240 * config/frv/frv-protos.h (frv_print_operand): Delete.
4241 (frv_print_operand_address): Delete.
4242 * config/frv/frv.h (PRINT_OPERAND): Delete.
4243 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4244 (PRINT_OPERAND_ADDRESS): Delete.
4245 * config/frv/frv.c (frv_print_operand_address): Make static.
4246 (frv_print_operand): Make static.
4247 (frv_print_operand_punct_valid_p): New function.
4248 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4249 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4251 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4253 * tree.h (vec_member): Declare.
4254 * tree.c (vec_member): Define.
4256 2010-06-17 Richard Guenther <rguenther@suse.de>
4258 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
4259 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
4261 2010-06-17 Richard Guenther <rguenther@suse.de>
4263 * tree-inline.c (declare_return_variable): Remove bogus code.
4265 2010-06-17 Richard Guenther <rguenther@suse.de>
4267 * gimplify.c (gimplify_bind_expr): Always promote complex
4268 and vector variables to registers if possible.
4270 2010-06-17 Richard Guenther <rguenther@suse.de>
4272 * expr.c (get_inner_reference): Use double_int for bit_offset
4275 2010-06-16 DJ Delorie <dj@redhat.com>
4277 * common.opt (-fstrict-volatile-bitfields): new.
4278 * doc/invoke.texi: Document it.
4279 * fold-const.c (optimize_bit_field_compare): For volatile
4280 bitfields, use the field's type to determine the mode, not the
4282 * expr.c (expand_assignment): Likewise.
4283 (get_inner_reference): Likewise.
4284 (expand_expr_real_1): Likewise.
4285 * expmed.c (store_fixed_bit_field): Likewise.
4286 (extract_bit_field_1): Likewise.
4287 (extract_fixed_bit_field): Likewise.
4289 2010-06-16 Richard Guenther <rguenther@suse.de>
4291 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4293 2010-06-16 Douglas B Rupp <rupp@gnat.com>
4295 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4296 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4297 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4298 * debug.c: Likewise.
4299 * sdbout.c: Likewise.
4300 * vmsdbgout.c: Likewise.
4301 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4302 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4303 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4304 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4305 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4306 * dwarf2out.c (dw_fde_struct): New fields
4307 dw_fde_vms_{end,begin}_prologue.
4308 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4309 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4310 (dwarf2out_vms_end_prologue): New function.
4311 (dwarf2out_vms_begin_epilogue): New function.
4312 (dw_val_struct): New value dw_val_class_vms_delta.
4313 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4314 begin_epilogue for VMS.
4315 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4316 new static functions.
4317 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4318 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4320 (print_die): New case dw_val_class_vms_delta.
4321 (attr_checksum): Likewise.
4322 (same_dw_val_p: Likewise.
4323 (size_of_die): Likewise.
4324 (value_format): Likewise.
4325 (output_die): Likewise.
4326 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4327 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4328 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4329 dwarf2out_cfi_begin_epilogue
4330 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4332 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4334 * config/cris/cris-protos.h (cris_print_operand): Delete.
4335 (cris_print_operand_address): Delete.
4336 * config/cris/cris.h (PRINT_OPERAND): Delete.
4337 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4338 (PRINT_OPERAND_ADDRESS): Delete.
4339 * config/cris/cris.c (cris_print_operand_address): Make static.
4340 (cris_print_operand): Make static.
4341 (cris_print_operand_punct_valid_p): New function.
4342 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4343 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4345 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4347 * config/arm/arm-protos.h (arm_print_operand): Delete.
4348 (arm_print_operand_address): Delete.
4349 * config/arm/arm.h (PRINT_OPERAND): Delete.
4350 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4351 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
4352 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
4353 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
4354 (arm_print_operand): Make static.
4355 (arm_print_operand_punct_valid_p): New function.
4356 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4357 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4359 2010-06-16 Nick Clifton <nickc@redhat.com>
4361 * config/rx/constraints.md (NEGint4): New constraint.
4362 * config/rx/rx.md (attr cc): Add set_zsc.
4363 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
4366 (call_internal): Clobber the cc0 register.
4367 (call_value_internal): Likewise.
4368 (cstoresi4): Likewise.
4369 (movsieq): Likewise.
4370 (movsine): Likewise.
4371 (addsi3): Add alternative to handle small negative constants.
4373 (addsi3): Do not set the O bit in the cc0 register.
4377 (andsi3): Reorder alternatives to prefer shorter forms.
4380 (negsi2): Note that the cc0 flags are set.
4381 (rotlsi3): Note that only the Z and S bits are set in cc0.
4382 (lshrsi3): Likewise.
4383 (ashlsi3): Likewise.
4384 (subsf3): Use %Q for the MEM operand.
4385 (fix_truncsfsi2): Likewise.
4386 (floatsisf2): Likewise.
4387 (bitset): Remove early clobber from destination.
4388 (bitset_in_memory): Likewise.
4389 (lrintsf2): Clobber the cc0 register.
4390 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
4391 (rx_print_operand): Handle %N.
4393 2010-06-16 Jan Hubicka <jh@suse.cz>
4395 * df-core.c (df_compact_blocks): Free problem_temps vector.
4397 2010-06-16 Martin Jambor <mjambor@suse.cz>
4399 PR tree-optimization/43905
4400 * tree-sra.c: Include tree-inline.h.
4401 (create_abstract_origin): Removed.
4402 (modify_function): Version the call graph node instead of creating
4403 abstract origins and dealing with same_body aliases.
4404 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
4405 function is versionable.
4406 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
4408 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
4410 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
4411 (CHOOSE_DYNAMIC_LINKER): Update.
4413 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
4415 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
4416 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
4417 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
4418 *prefetch_3dnow_rex.
4420 2010-06-15 Anatoly Sokolov <aesok@post.ru>
4422 * target.h (struct asm_out):Add declare_constant_name field.
4423 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4424 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
4425 * output.h (default_asm_declare_constant_name): Declare.
4426 (assemble_label): Update prototype.
4427 * varasm.c (assemble_constant_contents): Use
4428 targetm.asm_out.declare_constant_name target hook.
4429 (assemble_label): Add 'file' argument.
4430 (default_asm_declare_constant_name): New function.
4431 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
4432 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
4433 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
4435 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
4436 * config/darwin.c (darwin_asm_declare_constant_name): New function.
4437 (machopic_output_indirection): Update assemble_label argument list.
4438 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
4439 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4441 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
4444 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4445 size_one_node for pointer types. Do not call gmp_cst_to_tree.
4447 2010-06-15 Richard Guenther <rguenther@suse.de>
4449 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
4451 2010-06-15 Paul Brook <paul@codesourcery.com>
4453 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
4456 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
4458 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
4459 don't get a vector type for output.
4461 2010-06-15 Jakub Jelinek <jakub@redhat.com>
4464 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
4465 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
4466 (LANG_HOOKS_DECLS): Add it.
4467 * gimplify.c (omp_notice_variable): Call
4468 lang_hooks.decls.omp_report_decl.
4470 2010-06-15 Martin Jambor <mjambor@suse.cz>
4473 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
4474 on the newly dead SSA name.
4476 2010-06-15 Alan Modra <amodra@gmail.com>
4478 * doc/invoke.texi: Add mcmodel to powerpc options.
4479 * configure.ac: Add HAVE_LD_LARGE_TOC test.
4480 * configure: Regenerate.
4481 * config.in: Regenerate.
4482 * config/rs6000/linux64.opt (mcmodel): New.
4483 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
4484 (TARGET_CMODEL, SET_CMODEL): Define.
4485 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
4486 select CMODEL_MEDIUM default.
4487 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
4488 (TARGET_CMODEL): Define default.
4489 * config/rs6000/rs6000.c (cmodel): New variable.
4490 (rs6000_explicit_options): Add cmodel field.
4491 (rs6000_handle_option): Handle -mcmodel.
4492 (create_TOC_reference): Add largetoc_reg param. Generate high,
4493 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
4494 (rs6000_delegitimize_address): Recognise new toc reference rtl
4495 and minimal-toc rtl.
4496 (rs6000_legitimize_reload_address): Handle new toc references.
4497 (print_operand_address): Handle legitimate_constant_pool_address_p
4498 match before lo_sum.
4499 (rs6000_eliminate_indexed_memrefs): Tidy.
4500 (rs6000_emit_move): Tweak threshold for inlining constants.
4501 Keep rs6000_emit_allocate_stack large stack frame offsets
4502 loaded into r0 inline.
4503 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
4504 (tocrel_base, tocrel_offset): New variables.
4505 (toc_relative_expr_p): Set them here.
4506 (print_operand_address): Skip over any offset on constant pool address.
4507 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
4508 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
4509 (offsettable_ok_by_alignment): New function.
4510 (rs6000_emit_move): Address suitably aligned local symbol_refs
4511 relative to the toc pointer for -mcmodel=medium.
4512 (legitimate_constant_pool_address_p): Make param const_rtx. Add
4513 strict param. Allow lo_sum version of addressing. Verify reg
4514 used for -mminimal-toc and -mcmodel != small. Update all callers.
4515 * config/rs6000/constraints.md: Update for above change.
4516 * config/rs6000/predicates.md: Likewise.
4517 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
4519 (tls_gd): Split for -mcmodel=medium/large.
4520 (tls_gd_high, tls_gd_low): New.
4521 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
4522 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
4523 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
4524 (largetoc_high, largetoc_low): New.
4525 (cmptf_internal2): Add clobber.
4526 * config/rs6000/rs6000-protos.h: Update.
4528 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
4530 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
4531 true if no prefetch is going to be generated for a given group.
4532 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
4533 estimate the prefetch_count.
4534 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
4535 prefetch count by considering the unroll_factor and prefetch_mod
4536 for is_loop_prefetching_profitable.
4538 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
4540 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
4541 anything if the argument is not a MEM.
4543 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
4548 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
4550 (canonicalize_loop_ivs): Likewise.
4552 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
4555 * haifa-sched.c (setup_insn_reg_pressure_info,
4556 update_register_pressure): Reject debug insns.
4557 (ready_sort): Don't setup reg pressure for debug insns.
4558 (schedule_insn): Don't update reg pressure for debug insns.
4560 2010-06-14 Richard Guenther <rguenther@suse.de>
4562 * lto-streamer.c (cached_bp): Remove.
4563 (bitpack_delete): Likewise.
4564 (bitpack_create): Likewise.
4565 (bp_get_next_word): Likewise.
4566 (bp_pack_value, bp_unpack_value): Move ...
4567 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
4569 (struct bitpack_d): Likewise.
4570 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4571 New inline functions.
4572 * lto-streamer-out.c (lto_output_bitpack): Remove.
4573 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4574 (pack_value_fields): Adjust.
4575 (lto_write_tree): Likewise.
4576 (output_gimple_stmt): Likewise.
4577 (output_function): Likewise.
4578 * lto-streamer-in.c (input_gimple_stmt): Adjust.
4579 (input_function): Likewise.
4580 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4581 (lto_input_bitpack): Remove.
4582 (lto_materialize_tree): Adjust.
4583 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4584 * lto-cgraph.c (lto_output_edge): Adjust.
4585 (lto_output_node): Likewise.
4586 (lto_output_varpool_node): Likewise.
4587 (lto_output_ref): Likewise.
4588 (input_node): Likewise.
4589 (input_varpool_node): Likewise.
4590 (input_ref): Likewise.
4591 (input_edge): Likewise.
4592 (output_node_opt_summary): Likewise.
4593 (input_node_opt_summary): Likewise.
4594 * ipa-pure-const.c (pure_const_write_summary): Likewise.
4595 (pure_const_read_summary): Likewise.
4596 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4597 (ipa_read_indirect_edge_info): Likewise.
4598 (ipa_write_node_info): Likewise.
4599 (ipa_read_node_info): Likewise.
4601 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
4604 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4605 (vec_extract_lo_v16hi): Likewise.
4606 (vec_extract_lo_v32qi): Likewise.
4608 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4611 * tree.h (build_call_expr): Don't define as vararg macro, instead
4613 * builtins.c (build_call_nofold): Remove.
4614 (expand_builtin_int_roundingfn, expand_builtin_pow,
4615 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
4616 expand_builtin_memset_args, expand_builtin_strcmp,
4617 expand_builtin_strncmp, expand_builtin_memory_chk): Use
4618 build_call_nofold_loc instead of build_call_nofold.
4619 (build_call_expr): New function.
4621 PR tree-optimization/44508
4622 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
4623 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
4624 don't eliminate trivially dead stmts.
4625 * tree-vrp.c (vrp_finalize): Pass false as last argument
4626 to substitute_and_fold.
4627 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
4628 to substitute_and_fold.
4629 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4632 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
4634 2010-06-14 Ira Rosen <irar@il.ibm.com>
4636 PR tree-optimization/44507
4637 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
4638 to build initial vector for BIT_AND_EXPR.
4639 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4641 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4643 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
4644 adjust z10prop set_attr.
4646 2010-06-13 Jan Hubicka <jh@suse.cz>
4648 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4649 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
4650 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
4651 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
4652 datastructure checks into checking asserts.
4653 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
4654 * tree-ssa-sccvn.c (VN_INFO): Likewise.
4655 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
4656 df_ref_create_structure): Likewise.
4657 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
4658 pool_free): Use gcc_checking_assert.
4659 * alias.c (get_alias_set): Likewise.
4660 * var-tracking.c (variable_htab_free, shared_hash_copy,
4661 canonicalize_values_mark, variable_merge_over_cur): Likewise.
4662 * lto-streamer.c (bp_unpack_value): Likewise.
4664 2010-06-13 Richard Guenther <rguenther@suse.de>
4666 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
4667 Do not stream but initialize TYPE_CANONICAL to NULL.
4668 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4669 * gimple.c (gimple_types_compatible_p): Disregard
4670 TYPE_STRUCTURAL_EQUALITY_P.
4671 (gimple_register_type): Use TYPE_CANONICAL as cache.
4672 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4673 before registering common types.
4674 * config/i386/i386.c (ix86_function_arg_boundary): Do not
4675 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4676 * tree.h (TYPE_CANONICAL): Clarify documentation.
4678 2010-06-13 Anatoly Sokolov <aesok@post.ru>
4680 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4681 LIBCALL_VALUE): Remove macros.
4682 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4683 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4684 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4685 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4686 (ia64_function_value): Make static. Handle receiving the function
4687 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4689 2010-06-12 Jan Hubicka <jh@suse.cz>
4691 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4694 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
4696 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4698 2010-06-12 Jan Hubicka <jh@suse.cz>
4700 * df-core.c (df_clear_bb_info): New function.
4701 (df_set_blocks): bb_info is always allocated.
4702 (df_get_bb_info): Use block_info_elt_size.
4703 (df_set_bb_info): Likewise.
4704 (df_compact_blocks): Update for new block_info.
4705 (grow_bb_info): New function.
4706 * df-problems.c (df_grow_bb_info): Move to df-core.c
4707 (df_rd_set_bb_info): Remove.
4708 (df_rd_free_bb_info): Do not free block pool.
4709 (df_rd_alloc): Do not create pool, use check for
4710 obstack presence instead of NULL pointer for new blocks.
4711 (df_rd_free): DO not free alloc pool; clear block_info.
4712 (problem_RD): Add size of block info structure.
4713 (df_lr_set_bb_info): Remove.
4714 (df_lr_free_bb_info): Do not free block pool.
4715 (df_lr_alloc): Do not create pool, use check for
4716 obstack presence instead of NULL pointer for new blocks.
4717 (df_lr_free): DO not free alloc pool; clear block_info.
4718 (problem_LR): Add size of block info structure.
4719 (df_live_set_bb_info): Remove.
4720 (df_live_free_bb_info): Do not free block pool.
4721 (df_live_alloc): Do not create pool, use check for
4722 obstack presence instead of NULL pointer for new blocks.
4723 (df_live_free): DO not free alloc pool; clear block_info.
4724 (problem_LIVE): Add size of block info structure.
4725 (problem_CHAIN): Add size of block info structure.
4726 (df_byte_lr_set_bb_info): Remove.
4727 (df_byte_lr_free_bb_info): Do not free block pool.
4728 (df_byte_lr_alloc): Do not create pool, use check for
4729 obstack presence instead of NULL pointer for new blocks.
4730 (df_byte_lr_free): DO not free alloc pool; clear block_info.
4731 (problem_BYTE_LR): Add size of block info structure.
4732 (problem_NOTE): Add size of block info structure.
4733 (df_byte_MD_set_bb_info): Remove.
4734 (df_byte_MD_free_bb_info): Do not free block pool.
4735 (df_byte_MD_alloc): Do not create pool, use check for
4736 obstack presence instead of NULL pointer for new blocks.
4737 (df_byte_MD_free): DO not free alloc pool; clear block_info.
4738 (problem_BD): Add size of block info structure.
4739 * df-scan.c (df_scan_free_internal): Free block pool.
4740 (df_scan_set_bb_info): Remove.
4741 (df_scan_free_bb_info): Check for artificial_defs instead
4742 of bb_info being non-NULL.
4743 (df_scan_alloc): DO not create df_scan_block pool.
4744 (problem_SCAN): Set size of block info.
4745 (df_bb_refs_record): Do not allocate bb_info.
4746 * df.h (df_problem): Add block_info_elt_size.
4747 (struct dataflow): Change block_info to void *.
4748 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4749 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4752 2010-06-12 Jan Hubicka <jh@suse.cz>
4754 PR tree-optimize/44485
4755 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4756 containing use of return value of noreturn function.
4758 2010-06-12 Anatoly Sokolov <aesok@post.ru>
4760 * targhooks.c (default_function_value): Don't use
4761 FUNCTION_OUTGOING_VALUE.
4762 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4763 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4765 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
4767 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4768 Add crtfastmath.o to extra_parts.
4769 * config/mips/crtfastmath.c: New.
4770 * config/mips/linux.h (ENDFILE_SPEC): New.
4772 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
4774 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4775 old_type in parameter.
4776 (gcc_type_for_value): Update call to gcc_type_for_interval.
4777 (compute_type_for_level_1): Renamed compute_type_for_level.
4778 Update call to gcc_type_for_interval.
4780 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4782 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4783 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4785 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4787 * opts-common.c: Include options.h.
4788 (integral_argument): Move from opts.c.
4789 (decode_cmdline_option): New. Based on read_cmdline_option.
4790 * opts.c (integral_argument): Move to opts-common.c.
4791 (read_cmdline_option): Move most contents to
4792 decode_cmdline_option. Use %qs in diagnostics.
4793 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4794 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4795 decode_cmdline_option): New.
4797 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4800 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4801 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4802 (partiysi2_cmp): Ditto.
4803 (*partiyhi2_cmp): Ditto.
4804 (*parityqi2_cmp): Remove.
4806 2010-06-11 Jan Hubicka <jh@suse.cz>
4808 * bitmap.h (bmp_iter_next_bit): New.
4809 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4811 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
4812 Eric Botcazou <ebotcazou@adacore.com>
4814 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4817 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4819 * config/i386/i386.md (unspec): New define_c_enum.
4822 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4824 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4826 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
4829 * tree-if-conv.c (bb_predicate_s): New struct.
4830 (bb_predicate_p): New.
4831 (bb_has_predicate): New.
4832 (bb_predicate): New.
4833 (set_bb_predicate): New.
4834 (bb_predicate_gimplified_stmts): New.
4835 (set_bb_predicate_gimplified_stmts): New.
4836 (add_bb_predicate_gimplified_stmts): New.
4837 (init_bb_predicate): New.
4838 (free_bb_predicate): New.
4839 (is_predicated): Use bb_predicate.
4840 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4841 (predicate_bbs): Same. Gimplify the condition of the basic blocks
4842 before processing their successors.
4843 (clean_predicate_lists): Removed.
4844 (find_phi_replacement_condition): Use bb_predicate.
4845 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
4847 (insert_gimplified_predicates): New.
4848 (combine_blocks): Call insert_gimplified_predicates.
4849 (tree_if_conversion): Call free_bb_predicate instead of
4850 clean_predicate_lists.
4852 2010-10-11 Paul Brook <paul@codesourcery.com>
4854 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4855 * config/arm/arm.c (all_architectures): Change v7e-m default to
4857 * config/arm/arm-cores.def: Add cortex-m4.
4858 * config/arm/arm-tune.md: Regenerate.
4860 2010-06-11 Jan Hubicka <jh@suse.cz>
4862 * ipa-pure-const.c (special_builtlin_state): New function.
4863 (check_call): Use it instead of special casign BUILT_IN_RETURN.
4864 (propagate_pure_const): Use it.
4866 2010-06-11 Jan Hubicka <jh@suse.cz>
4868 * df-problems.c (df_live_scratch): Convert to bitmap_head.
4869 (df_live_alloc): Initialize df_live_scratch when initializing
4871 (df_live_transfer_function): Update uses of df_live_scratch.
4872 (df_live_free): Free problem_data; clear df_live_scratch before
4873 releasing the obstack.
4874 (df_md_free): Free problem data.
4876 2010-06-11 Jan Hubicka <jh@suse.cz>
4878 * doc/invoke.texi (Wsuggest-attribute): Document.
4879 (Wmissing-noreturn): Remove.
4880 * ipa-pure-const.c (warn_function_noreturn): New function.
4881 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4882 warn_missing_noreturn.
4883 * common.opt (Wsuggest-attribute=noreturn): New.
4884 * tree-flow.h (warn_function_noreturn): Declare.
4885 * tree-cfg.c (execute_warn_function_noreturn): Use
4886 warn_function_noreturn.
4887 (gate_warn_function_noreturn): New.
4888 (pass_warn_function_noreturn): Update.
4890 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4892 * c-typeck.c (handle_warn_cast_qual): Add loc
4893 parameter. Improve warning message.
4894 (build_c_cast): Pass location to handle_warn_cast_qual.
4896 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4898 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4899 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
4901 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4903 2010-06-10 Dodji Seketeli <dodji@redhat.com>
4905 Fix bootstap on mips
4906 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4909 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
4911 * system.h (helper_const_non_const_cast): New inline for
4913 (CONST_CAST2): For gcc version <= 4.0 use
4914 new helper to do const/non-const casting.
4916 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4918 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4919 * Makefile.in (OBJS-common): Include insn-enums.o.
4920 (insn-enums.o): New rule.
4921 (simple_generated_c): Add insn-enums.c.
4922 (build/genenums.o): New rule.
4923 (genprogmd): Add "enums".
4924 * genconstants.c (print_enum_type): Declare a C string array
4926 * genenums.c: New file.
4927 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4928 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
4929 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4931 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4933 * doc/md.texi (define_enum_attr): Document.
4934 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4935 * read-md.h (lookup_enum_type): Declare.
4936 * read-md.c (lookup_enum_type): New function.
4937 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4938 * genattrtab.c (attr_desc): Add an enum_name field.
4939 (evaluate_eq_attr): Take the associated attribute as argument.
4940 Get the enum prefix from the enum_name field, if defined.
4941 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
4942 (simplify_test_exp): Pass attr to evaluate_eq_attr.
4943 (add_attr_value): New function, split out from...
4944 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
4945 (write_test_expr): Pass attr to evaluate_eq_attr.
4946 (write_attr_get): Use the enum_name as the enum tag, if defined.
4947 (write_attr_valueq): Use the enum_name as a prefix, if defined.
4948 (find_attr): Initialize enum_name.
4949 (main): Handle DEFINE_ENUM_ATTR.
4950 * gensupport.c (process_rtx): Likewise.
4951 * config/mips/mips.h (mips_tune_attr): Delete.
4952 * config/mips/mips.md (cpu): Use define_attr_enum.
4954 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4956 * doc/md.texi (define_c_enum, define_enum): Document.
4957 * read-md.h (md_constant): Add a parent_enum field.
4958 (enum_value, enum_type): New structures.
4959 (upcase_string, traverse_enum_types): Declare.
4960 * read-md.c (enum_types): New variable.
4961 (upcase_string, add_constant): New functions.
4962 (handle_constants): Don't create the hash table here.
4964 (traverse_md_constants): Don't check for a null md_constants.
4965 (decimal_string, handle_enum, traverse_enum_types): New functions.
4966 (read_md_files): Initialize md_constants and md_enums.
4967 * genconstants.c (print_md_constant): Ignore info argument.
4968 Only print constants that belong to no enum.
4969 (print_enum_type): New function.
4970 (main): Don't pass stdout to print_md_constant. Call print_enum_type
4971 for each defined enum type.
4972 * config/mips/mips.md (processor): New define_enum.
4973 (unspec): New define_c_enum.
4974 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4975 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4976 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4977 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4978 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4979 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4980 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4981 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4982 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4983 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4984 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4985 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4986 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4987 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4988 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4989 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4990 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4991 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4992 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4993 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4994 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4995 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4996 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4997 (UNSPEC_RDDSP): Move to mips-dsp.md.
4998 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
4999 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5000 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5001 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5002 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5003 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5004 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5005 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5006 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5007 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5008 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5009 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5010 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5011 Moved to mips-dspr2.md.
5012 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5013 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5014 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5015 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5016 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5017 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5018 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5019 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5020 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5021 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5022 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5023 UNSPEC_LOONGSON_PSADBH)
5024 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5025 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5026 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5027 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5028 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5029 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5030 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5031 (cpu): Update comment.
5032 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5033 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5034 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5035 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5036 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5037 UNSPEC_LOONGSON_PCMPEQ)
5038 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5039 UNSPEC_LOONGSON_PINSR_0)
5040 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5041 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5042 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5043 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5044 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5045 UNSPEC_LOONGSON_PSADBH)
5046 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5047 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5048 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5049 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5050 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5051 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5052 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5053 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5054 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5055 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5056 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5057 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5058 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5059 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5060 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5061 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5062 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5063 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5064 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5065 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5066 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5067 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5068 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5069 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5070 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5071 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5072 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5073 (UNSPEC_RDDSP): Moved from mips.md.
5074 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5075 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5076 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5077 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5078 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5079 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5080 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5081 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5082 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5083 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5084 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5085 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5086 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5087 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5088 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5089 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5090 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5091 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5092 (UNSPEC_SCC): Moved from mips.md.
5093 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5094 "processor_type" to "processor".
5095 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5096 * config/mips/mips.h (processor_type): Delete.
5097 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5098 "processor_type" to "processor".
5100 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5102 * configure.ac (tm_include_list): Add insn-constants.h.
5103 * configure: Regenerate.
5104 * Makefile.in (GTM_H): Move insn-constants.h here from...
5106 * mkconfig.sh: Remove special handling for insn-constants.h.
5108 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5110 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5111 (BUILD_MD): ...this new variable.
5112 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5113 that include the old contents of simple_generated_h and
5115 (simple_generated_h, simple_generated_c): Include them. Add
5117 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5118 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5119 Remove these dependencies from the main rule and include
5120 insn-conditions.md in the command line only if it appears
5121 in the dependency list.
5122 (insn-constants.h, s-constants): Delete.
5123 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5125 (build/genmddeps.o): Likewise.
5126 (genprogrtl): New variable that contains everything from genprogmd
5127 except mddeps and constants.
5128 (genprogmd): Redefine in terms of genprogrtl. Make these programs
5129 depend on $(BUILD_MD)
5130 (genprog): New variable. Make these programs depend on
5132 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5133 (main): Use read_md_files instead of init_rtx_reader_args.
5134 * genconstants.c: As for genmddeps.c.
5135 * read-md.h (read_skip_construct): Declare.
5136 * read-md.c (read_skip_construct): New function.
5137 (handle_file): Allow a null handle_directive, skipping the
5139 (parse_include): Update the comment accordingly.
5141 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5143 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5144 * genmddeps.c: Include read-md.h.
5145 (main): Call init_rtx_reader_args instead of init_md_reader_args.
5146 * genattr.c (main): Likewise.
5147 * genattrtab.c (main): Likewise.
5148 * genautomata.c (main): Likewise.
5149 * gencodes.c (main): Likewise.
5150 * genconditions.c (main): Likewise.
5151 * genconfig.c (main): Likewise.
5152 * genconstants.c (main): Likewise.
5153 * genemit.c (main): Likewise.
5154 * genextract.c (main): Likewise.
5155 * genflags.c (main): Likewise.
5156 * genopinit.c (main): Likewise.
5157 * genoutput.c (main): Likewise.
5158 * genpeep.c (main): Likewise.
5159 * genrecog.c (main): Likewise.
5160 * genpreds.c (main): Likewise.
5161 * gensupport.h (in_fname): Move to read-md.h.
5162 (init_md_reader_args_cb): Rename to...
5163 (init_rtx_reader_args_cb): ...this and return a bool.
5164 (init_md_reader_args): Rename to...
5165 (init_rtx_reader_args): ...this and return a bool.
5166 (include_callback): Move to read-md.h.
5167 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5168 (file_name_list, first_dir_md_include): Move to read-md.c
5169 (first_bracket_include): Delete unused variable.
5170 (last_dir_md_include): Move to read-md.c.
5171 (process_include): Delete, moving code to read-md.c:handle_include.
5172 (process_rtx): Don't handle INCLUDE.
5173 (save_string): Delete.
5174 (rtx_handle_directive): New function.
5175 (init_md_reader_args_cb): Rename to...
5176 (init_rtx_reader_args_cb): ...this and return a boolean success value.
5178 (init_md_reader_args): Rename to...
5179 (init_rtx_reader_args): ...this and return a boolean success value.
5180 * rtl.def (INCLUDE): Delete.
5181 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
5183 * read-rtl.c (read_conditions): Don't gobble ')' here.
5184 (read_mapping): Likewise.
5185 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
5186 Handle top-level non-rtx constructs here rather than in read_rtx_1.
5187 Store the whole queue in *X. Remove call to init_md_reader.
5188 (read_rtx_1): Rename to...
5189 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
5190 Don't handle top-level non-rtx constructs here. Don't handle (nil)
5192 (read_nested_rtx): New function. Handle (nil) here rather than
5194 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
5196 * read-md.h (directive_handler_t): New type.
5197 (in_fname, include_callback): Moved from read-md.h.
5198 (read_constants, init_md_reader): Delete.
5199 (read_md_files): Declare.
5200 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
5201 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
5203 (read_constants): Rename to...
5204 (handle_constants): ...this. Don't gobble ')' here.
5205 (handle_include, handle_file, handle_toplevel_file)
5206 (parse_include): New functions, mostly taken from gensupport.c.
5207 (init_md_reader): Subsume into...
5208 (read_md_files): ...this new function.
5210 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5212 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
5213 (unread_char): Decrement read_md_lineno after putting back '\n'.
5214 * read-md.c (fatal_with_file_and_line): Push back any characters
5215 that we decide not to add to the context.
5216 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
5217 fatal_expected_char in cases where '/' ends a line (for example).
5218 (read_name): Don't increment read_md_lineno here.
5219 (read_escape): Likewise.
5220 (read_quoted_string): Likewise.
5221 (read_braced_string): Likewise.
5223 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5225 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
5226 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
5227 * genconstants.c: Include read-md.h.
5228 * read-rtl.c (md_constants): Move to read-md.c.
5229 (md_name): Move to read-md.h.
5230 (initialize_iterators): Use leading_string_hash instead of def_hash
5231 and leading_string_eq_p instead of def_name_eq_p.
5232 (read_name): Move to read-md.c.
5233 (def_hash, def_name_eq_p): Delete.
5234 (read_constants, traverse_md_constants): Move to read-md.c.
5235 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
5236 * read-md.h: Include hashtab.h.
5237 (md_name): Moved from read-rtl.c.
5238 (md_constant): Moved from read-md.h.
5239 (leading_string_hash, leading_string_eq_p, read_name)
5240 (read_constants, traverse_md_constants): Declare.
5241 * read-md.c (md_constants): Moved from read-rtl.c.
5242 (leading_string_hash, leading_string_eq_p): New functions.
5243 (read_name, read_constants, traverse_md_constants): Moved from
5246 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5248 * read-rtl.c (md_name): New structure.
5249 (read_name): Take an md_name instead of a buffer pointer.
5250 Use the "string" field instead of strcpy when expanding constants.
5251 (read_constants): Remove the tmp_char argument. Update the calls
5252 to read_name, using two local name buffers instead of the tmp_char
5253 argument. Merge the constant-creation code.
5254 (read_conditions): Remove the tmp_char argument. Update the calls
5255 to read_name, using a local name buffer instead of the tmp_char
5257 (read_mapping): Replace tmp_char variable with a local name buffer.
5258 Update the calls to read_name.
5259 (read_rtx_1): Likewise. Update the calls to read_constants and
5262 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5264 * Makefile.in (build/read-md.o): Depend on errors.h.
5265 * read-md.h (error_with_line): Declare.
5266 * read-md.c: Include errors.h.
5267 (message_with_line_1): New function, extracted from...
5268 (message_with_line): ...here.
5269 (error_with_line): New function.
5270 * genattrtab.c: If a call to message_with_line is followed by
5271 "have_error = 1;", replace both statements with a call to
5273 * genoutput.c: Likewise.
5274 * genpreds.c: Likewise.
5275 * genrecog.c: If a call to message_with_line is followed by
5276 "error_count++;", replace both statements with a call to
5278 (errorcount): Delete.
5279 (main): Don't check it.
5280 * gensupport.c: If a call to message_with_line is followed by
5281 "errors = 1;", replace both statements with a call to error_with_line.
5283 (process_define_cond_exec): Check have_error instead of errors.
5284 (init_md_reader_args_cb): Likewise. Don't set errors.
5286 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5288 * read-md.h (read_md_file): Declare.
5289 (read_char, unread_char): New functions.
5290 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5291 (read_quoted_string, read_string): Remove FILE * argument.
5292 * read-md.c (read_md_file): New variable.
5293 (read_md_filename, read_md_lineno): Update comments and remove
5294 unnecessary initialization.
5295 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5296 (read_escape, read_quoted_string, read_braced_string, read_string):
5297 Remove FILE * argument. Update calls accordingly, using read_char
5298 and unread_char instead of getc and ungetc.
5299 * rtl.h (read_rtx): Remove FILE * argument.
5300 * read-rtl.c (iterator_group): Remove FILE * argument from
5302 (iterator_traverse_data): Remove "infile" field.
5303 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5304 (add_mapping, read_name, read_constants, read_conditions)
5305 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5306 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5307 Remove file arguments from all calls, using read_char and unread_char
5308 instead of getc and ungetc.
5309 * gensupport.c (process_include): Preserve read_md_file around
5310 the include. Set read_md_file to the handle of the included file.
5311 Update call to read_rtx.
5312 (init_md_reader_args_cb): Set read_md_file to the handle of the file
5313 and remove local FILE *. Update calls to read_rtx.
5315 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5317 * read-md.h (read_rtx_lineno): Rename to...
5318 (read_md_lineno): ...this.
5319 (read_rtx_filename): Rename to...
5320 (read_md_filename): ...this.
5321 (copy_rtx_ptr_loc): Rename to...
5322 (copy_md_ptr_loc): ...this.
5323 (print_rtx_ptr_loc): Rename to...
5324 (print_md_ptr_loc): ...this.
5325 * read-md.c: Likewise. Update references after renaming.
5326 (string_obstack): Replace RTL with MD in comment.
5327 (set_rtx_ptr_loc): Rename to...
5328 (set_md_ptr_loc): ...this.
5329 (get_rtx_ptr_loc): Rename to...
5330 (get_md_ptr_loc): ...this.
5331 * genconditions.c: Update references after renaming.
5332 * genemit.c: Likewise.
5333 * genoutput.c: Likewise.
5334 * genpreds.c: Likewise.
5335 * gensupport.c: Likewise.
5336 * read-rtl.c: Likewise.
5338 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5340 * Makefile.in (READ_MD_H): New variable.
5341 (BUILD_RTL): Add build/read-md.o.
5342 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
5343 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5344 (build/genattrtab.o, build/genconditions.o build/genemit.o)
5345 (build/genextract.o, build/genflags.o, build/genoutput.o)
5346 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
5347 (build/read-md.o): New rule.
5348 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
5349 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
5350 * coretypes.h: ...here.
5351 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
5352 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
5353 * genattr.c: Include read-md.h.
5354 * genattrtab.c: Likewise.
5355 * genconditions.c: Likewise.
5356 * genemit.c: Likewise.
5357 * genextract.c: Likewise.
5358 * genflags.c: Likewise.
5359 * genoutput.c: Likewise.
5360 * genpreds.c: Likewise.
5361 * genrecog.c: Likewise.
5362 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
5363 (join_c_conditions, print_c_condition, read_rtx_filename)
5364 (read_rtx_lineno): Move to read-md.h.
5365 * read-rtl.c: Include read-md.h.
5366 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
5367 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
5368 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
5369 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
5370 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
5371 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
5372 (read_braced_string, read_string): Move to read-md.c.
5373 (read_rtx): Move some initialization to init_md_reader and call
5374 init_md_reader here.
5375 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
5377 * gensupport.c: Include read-md.h.
5378 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
5379 * read-md.h, read-md.c: New files.
5381 2010-06-10 Anatoly Sokolov <aesok@post.ru>
5383 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5384 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5385 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
5386 * config/moxie/moxie.c (moxie_function_value): Make static.
5387 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
5388 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5390 2010-06-10 Martin Jambor <mjambor@suse.cz>
5392 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
5393 * dbgcnt.def (tree_sra): New counter.
5394 * tree-sra.c: Include dbgcnt.h.
5395 (gate_intra_sra): Check tree_sra debug counter.
5397 2010-06-10 Martin Jambor <mjambor@suse.cz>
5399 PR tree-optimization/44258
5400 * tree-sra.c (build_access_subtree): Return false iff there is a
5402 (build_access_trees): Likewise.
5403 (analyze_all_variable_accesses): Disqualify candidates if
5404 build_access_trees returns true for them.
5406 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
5409 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
5410 tail-recurse into canonical node. Fast-forward over
5411 non-canonical VALUEs.
5413 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
5416 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
5417 (*addsi_1_zext) <TYPE_LEA>: Likewise.
5418 (add lea splitter): Likewise.
5419 (add_zext lea splitter): Likewise.
5421 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5423 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
5425 2010-06-10 Jan Hubicka <jh@suse.cz>
5427 * df-problems.c (df_live_problem_data): Add live_bitmaps.
5428 (df_live_alloc): Initialize problem data and live_osbtacks.
5429 (df_live_finalize): Remove obstack, problem data; do not
5431 (df_live_top_dump, df_live_bottom_dump): Do not dump old
5432 data when not allocated.
5433 (df_live_verify_solution_start): Do not allocate problem data.
5434 (df_live_verify_solution_end): Check if out is allocated.
5435 (struct df_md_problem_data): New structure.
5436 (df_md_alloc): Allocate problem data.
5437 (df_md_free): Free problem data; do not clear bitmaps.
5439 2010-06-10 Jan Beulich <jbeulich@novell.com>
5442 * configure.ac: Replace $() with ${} when intending to expand
5443 variables rather than invoking commands.
5444 * configure: Re-generate.
5446 2010-06-10 Jan Hubicka <jh@suse.cz>
5448 PR rtl-optimization/44460
5449 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5450 TYPE_NEEDS_CONSTRUCTING sanity check.
5452 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
5454 * doc/include/fdl.texi: Move to GFDL version 1.3.
5456 * doc/cpp.texi: Move to GFDL version 1.3.
5457 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
5458 * doc/gccint.texi: Move to GFDL version 1.3.
5459 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
5460 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
5461 * doc/invoke.texi: Move to GFDL version 1.3.
5463 2010-06-09 Jan Hubicka <jh@suse.cz>
5465 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
5467 (propagate) ... here; swap the order.
5469 2010-06-09 Jan Hubicka <jh@suse.cz>
5471 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
5472 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
5473 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
5474 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
5476 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
5478 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
5479 Do not the gather memory reference in the outer loop if the step
5482 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
5484 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
5485 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
5486 8 to 4. Minor change of the related comments.
5488 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5490 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
5491 the scev analysis when the variable is not used outside the loop
5492 in a close phi node: call compute_overall_effect_of_inner_loop.
5494 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5496 * graphite-sese-to-poly.c (single_pred_cond): Renamed
5497 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
5498 (build_sese_conditions_before): Renamed call to single_pred_cond.
5499 (build_sese_conditions_after): Same.
5501 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5503 * graphite-poly.h: Fix comments and indentation.
5504 * graphite-sese-to-poly.c: Same.
5505 (build_sese_conditions_before): Compute stmt and gbb only when needed.
5506 * tree-chrec.c: Fix comments and indentation.
5507 (tree-ssa-loop-niter.c): Same.
5509 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
5511 PR rtl-optimization/42461
5512 * dce.c (deletable_insn_p): Return true for const or pure calls again.
5513 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
5515 2010-06-09 Jan Hubicka <jh@suse.cz>
5517 * bitmap.c (bitmap_and): Walk array forward.
5518 (bitmap_and_compl_into): Likewise.
5519 (bitmap_xor): Likewise.
5520 (bitmap_xor_into): Likewise.
5521 (bitmap_equal_p): Likewise.
5522 (bitmap_intersect_p): Likewise.
5523 (bitmap_intersect_compl_p): Likewise.
5524 (bitmap_ior_and_into): Likewise.
5525 (bitmap_elt_copy): Likewise.
5526 (bitmap_and_compl): Likewise.
5527 (bitmap_elt_ior): Likewise.
5529 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
5531 * opts-common.c (prune_options): Ensure replacement argv array
5532 is correctly terminated by a NULL entry.
5534 2010-06-09 Jan Hubicka <jh@suse.cz>
5536 * cgraph.h (varpool_first_static_initializer,
5537 varpool_next_static_initializer): Make checking only when
5539 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
5540 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
5541 gcc_assert to gcc_checking_assert.
5542 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
5543 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
5544 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
5545 op_iter_init_phiuse, op_iter_init_phidef,
5546 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
5547 gcc_checking_assert.
5548 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
5549 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
5550 partition_is_global, live_on_entry, live_on_exit,
5551 live_merge_and_clear): Likewise.
5552 * system.h (gcc_checking_assert): New macro.
5553 * gimple.h (set_bb_seq): Use gcc_checking_assert.
5555 2010-06-09 Jason Merrill <jason@redhat.com>
5557 * Makefile.in (TAGS): Collect tags info from c-family.
5559 2010-06-09 Jan Hubicka <jh@suse.cz>
5561 * gimple.h (gcc_gimple_checking_assert): New macro.
5562 (gimple_set_def_ops, gimple_set_use_ops,
5563 gimple_set_vuse, gimple_set_vdef,
5564 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
5565 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
5566 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
5567 gimple_asm_output_op, gimple_asm_output_op_ptr,
5568 gimple_asm_set_output_op, gimple_asm_clobber_op,
5569 gimple_asm_set_clobber_op, gimple_asm_label_op,
5570 gimple_asm_set_label_op, gimple_try_set_kind,
5571 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5572 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5573 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5574 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5575 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5576 gimple_omp_for_set_initial, gimple_omp_for_final,
5577 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5578 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5579 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5580 conditional with ENABLE_GIMPLE_CHECKING.
5581 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5583 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
5585 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5586 (get_computation_cost_at): Use it.
5587 (determine_use_iv_cost_condition): Likewise.
5588 (determine_iv_cost): Likewise.
5590 2010-06-09 Richard Guenther <rguenther@suse.de>
5592 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5595 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
5597 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5599 2010-06-09 Martin Jambor <mjambor@suse.cz>
5601 PR tree-optimization/44423
5602 * tree-sra.c (dump_access): Dump also grp_assignment_read.
5603 (analyze_access_subtree): Pass negative allow_replacements to children
5604 if the current type is scalar.
5606 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5609 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
5610 * doc/plugins.texi (Plugin license check): Update information
5611 on type of plugin_is_GPL_compatible.
5612 * Makefile.in (PLUGINCC): Define as $(COMPILER).
5613 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
5615 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
5617 * config/arm/arm.c (thumb2_reorg): New function.
5618 (arm_reorg): Call it.
5619 * config/arm/thumb2.md (define_peephole2 for flag clobbering
5620 arithmetic operations): Delete.
5622 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
5625 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
5628 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5631 * gcc-plugin.h: Encapsulate all declarations in extern "C".
5633 2010-06-08 Jan Hubicka <jh@suse.cz>
5635 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
5636 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
5638 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
5640 PR tree-optimization/39874
5642 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
5644 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
5645 same_bool_result_p): New.
5646 (and_var_with_comparison, and_var_with_comparison_1,
5647 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
5648 (or_var_with_comparison, or_var_with_comparison_1,
5649 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
5650 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
5651 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
5652 of combine_comparisons.
5653 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
5655 2010-06-08 Anatoly Sokolov <aesok@post.ru>
5657 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5658 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5659 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
5660 pdp11_function_value_regno_p): New functions.
5661 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5662 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5664 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
5666 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
5667 Thumb-2 in the MINUS case.
5669 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5671 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5673 * doc/gty.texi (GTY Options): Document typed GC allocation and
5674 variable_size GTY option.
5676 * ggc-internal.h: New.
5678 * ggc.h: Update copyright year.
5679 (digit_string): Move to stringpool.c.
5680 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5681 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5682 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5683 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5684 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5685 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5686 (ggc_force_collect, ggc_get_size, ggc_statistics)
5687 (ggc_print_common_statistics): Move to ggc-internal.h.
5688 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5689 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5690 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5691 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5692 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5693 (ggc_alloc_zone_pass_stat): Remove.
5694 (ggc_internal_alloc_stat, ggc_internal_alloc)
5695 (ggc_internal_cleared_alloc_stat): New.
5696 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5697 (ggc_internal_vec_alloc_stat)
5698 (ggc_internal_cleared_vec_alloc_stat)
5699 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5700 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5701 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5702 (ggc_cleared_alloc_ptr_array_two_args): New.
5703 (htab_create_ggc, splay_tree_new_ggc): Redefine.
5704 (ggc_splay_alloc): Change the type of the first argument to
5706 (ggc_alloc_string): Make macro.
5707 (ggc_alloc_string_stat): New.
5708 (ggc_strdup): Redefine.
5709 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5710 (ggc_alloc_rtvec_sized): New.
5711 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5712 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5713 (ggc_internal_cleared_alloc_zone_stat)
5714 (ggc_internal_zone_alloc_stat)
5715 (ggc_internal_zone_cleared_alloc_stat)
5716 (ggc_internal_zone_vec_alloc_stat)
5717 (ggc_alloc_zone_rtx_def_stat)
5718 (ggc_alloc_zone_tree_node_stat)
5719 (ggc_alloc_zone_cleared_tree_node_stat)
5720 (ggc_alloc_cleared_gimple_statement_d_stat): New.
5722 * ggc-common.c: Include ggc-internal.h.
5723 (ggc_internal_cleared_alloc_stat): Rename from
5724 ggc_alloc_cleared_stat.
5725 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5726 (ggc_calloc): Remove.
5727 (ggc_cleared_alloc_htab_ignore_args): New.
5728 (ggc_cleared_alloc_ptr_array_two_args): New.
5729 (ggc_splay_alloc): Add obj_type parameter.
5730 (init_ggc_heuristics): Formatting fixes.
5732 * ggc-none.c: Update copyright year.
5733 (ggc_alloc_stat): Rename to ggc_alloc_stat.
5734 (ggc_alloc_cleared_stat): Rename to
5735 ggc_internal_cleared_alloc_stat.
5736 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5738 * ggc-page.c: Update copyright year. Include ggc-internal.h.
5739 Remove references to ggc_alloc in comments.
5740 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5741 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5742 (new_ggc_zone, destroy_ggc_zone): Remove.
5743 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5745 * ggc-zone.c: Include ggc-internal.h. Remove references to
5746 ggc_alloc in comments.
5747 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5748 (ggc_internal_alloc_zone_pass_stat): New.
5749 (ggc_internal_cleared_alloc_zone_stat): New.
5750 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5751 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5752 (new_ggc_zone, destroy_ggc_zone): Remove.
5754 * stringpool.c: Update copyright year. Include ggc-internal.h
5755 (digit_vector): Make static.
5756 (digit_string): Moved from ggc.h.
5757 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5758 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5760 * Makefile.in (GGC_INTERNAL_H): New.
5761 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5762 $(GGC_INTERNAL_H) to dependencies.
5764 * gentype.c: Update copyright year.
5765 (walk_type): Accept variable_size GTY option.
5766 (USED_BY_TYPED_GC_P): New macro.
5767 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
5768 whitespace at the end of strings.
5769 (get_type_specifier, variable_size_p): New functions.
5770 (alloc_quantity, alloc_zone): New enums.
5771 (write_typed_alloc_def): New function.
5772 (write_typed_struct_alloc_def): Likewise.
5773 (write_typed_typed_typedef_alloc_def): Likewise.
5774 (write_typed_alloc_defns): Likewise.
5775 (output_typename, write_splay_tree_allocator_def): Likewise.
5776 (write_splay_tree_allocators): Likewise.
5777 (main): Call write_typed_alloc_defns and
5778 write_splay_tree_allocators.
5780 * lto-streamer.h (lto_file_decl_data_ptr): New.
5782 * passes.c (order): Define using cgraph_node_ptr.
5784 * strinpool.c (struct string_pool_data): Declare nested_ptr using
5787 * gimple.h (union gimple_statement_d): Likewise.
5789 * rtl.h (struct rtx_def): Likewise.
5790 (struct rtvec_def): Likewise.
5792 * tree.h (union tree_node): Likewise.
5794 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5796 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5798 * tree-scalar-evolution.c (scev_initialize): Likewise.
5800 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5802 * dwarf2asm.c (dw2_force_const_mem): Likewise.
5804 * omp-low.c (lower_omp_critical): Likewise.
5806 * bitmap.h (struct bitmap_head_def): Update comment to not
5807 reference ggc_alloc.
5809 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5811 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5813 * ipa-prop.c (duplicate_ggc_array): Rename to
5814 duplicate_ipa_jump_func_array. Use typed GC allocation.
5815 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5817 * gimple.c (gimple_alloc_stat): Use
5818 ggc_alloc_cleared_gimple_statement_d_stat.
5820 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5822 * tree.c (make_node_stat): Use
5823 ggc_alloc_zone_cleared_tree_node_stat.
5824 (make_tree_vec_stat): Likewise.
5825 (build_vl_exp_stat): Likewise.
5826 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5827 (make_tree_binfo_stat): Likewise.
5828 (tree_cons_stat): Likewise.
5830 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5831 (shallow_copy_rtx_stat): Likewise.
5832 (make_node_stat): Likewise.
5834 * lto-symtab.c: Fix comment.
5836 * tree-cfg.c (create_bb): Update comment to not reference
5838 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5840 * varpool.c (varpool_node): Use typed GC allocation.
5841 (varpool_extra_name_alias): Likewise.
5843 * varasm.c (emutls_decl): Likewise.
5844 (get_unnamed_section): Likewise.
5845 (get_noswitch_section): Likewise.
5846 (get_section): Likewise.
5847 (get_block_for_section): Likewise.
5848 (build_constant_desc): Likewise.
5849 (create_constant_pool): Likewise.
5850 (force_const_mem): Likewise.
5852 * tree.c (build_vl_exp_stat): Likewise.
5853 (build_real): Likewise.
5854 (build_string): Likewise.
5855 (decl_debug_expr_insert): Likewise.
5856 (decl_value_expr_insert): Likewise.
5857 (type_hash_add): Likewise.
5858 (build_omp_clause): Likewise.
5860 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5862 * tree-ssa.c (init_tree_ssa): Likewise.
5864 * tree-ssa-structalias.c (heapvar_insert): Likewise.
5866 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5868 * tree-ssa-loop-niter.c (record_estimate): Likewise.
5870 * tree-ssa-alias.c (get_ptr_info): Likewise.
5872 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5874 * tree-phinodes.c (allocate_phi_node): Likewise.
5876 * tree-iterator.c (tsi_link_before): Likewise.
5877 (tsi_link_after): Likewise.
5879 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5881 * tree-dfa.c (create_var_ann): Likewise.
5883 * tree-cfg.c (create_bb): Likewise.
5885 * toplev.c (alloc_for_identifier_to_locale): Likewise.
5886 (general_init): Likewise.
5888 * stringpool.c (stringpool_ggc_alloc): Likewise.
5889 (gt_pch_save_stringpool): Likewise.
5891 * sese.c (if_region_set_false_region): Likewise.
5893 * passes.c (do_per_function_toporder): Likewise.
5895 * optabs.c (set_optab_libfunc): Likewise.
5896 (set_conv_libfunc): Likewise.
5898 * lto-symtab.c (lto_symtab_register_decl): Likewise.
5900 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5901 (input_eh_region): Likewise.
5902 (input_eh_lp): Likewise.
5903 (make_new_block): Likewise.
5904 (unpack_ts_real_cst_value_fields): Likewise.
5906 * lto-section-in.c (lto_new_in_decl_state): Likewise.
5908 * lto-cgraph.c (input_node_opt_summary): Likewise.
5910 * loop-init.c (loop_optimizer_init): Likewise.
5912 * lambda.h (lambda_vector_new): Likewise.
5914 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5916 * ira.c (update_equiv_regs): Likewise.
5918 * ipa.c (cgraph_node_set_new): Likewise.
5919 (cgraph_node_set_add): Likewise.
5920 (varpool_node_set_new): Likewise.
5921 (varpool_node_set_add): Likewise.
5923 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5924 (duplicate_ipa_jump_func_array): Likewise.
5925 (ipa_read_node_info): Likewise.
5927 * ipa-cp.c (ipcp_create_replace_map): Likewise.
5929 * integrate.c (get_hard_reg_initial_val): Likewise.
5931 * gimple.c (gimple_alloc_stat): Likewise.
5932 (gimple_build_omp_for): Likewise.
5933 (gimple_seq_alloc): Likewise.
5934 (gimple_copy): Likewise.
5936 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5937 (gsi_insert_after_without_update): Likewise.
5939 * function.c (add_frame_space): Likewise.
5940 (insert_temp_slot_address): Likewise.
5941 (assign_stack_temp_for_type): Likewise.
5942 (allocate_struct_function): Likewise.
5943 (types_used_by_var_decl_insert): Likewise.
5945 * except.c (init_eh_for_function): Likewise.
5946 (gen_eh_region): Likewise.
5947 (gen_eh_region_catch): Likewise.
5948 (gen_eh_landing_pad): Likewise.
5949 (add_call_site): Likewise.
5951 * emit-rtl.c (get_mem_attrs): Likewise.
5952 (get_reg_attrs): Likewise.
5953 (start_sequence): Likewise.
5954 (init_emit): Likewise.
5956 * dwarf2out.c (new_cfi): Likewise.
5957 (queue_reg_save): Likewise.
5958 (dwarf2out_frame_init): Likewise.
5959 (new_loc_descr): Likewise.
5960 (find_AT_string): Likewise.
5961 (new_die): Likewise.
5962 (add_var_loc_to_decl): Likewise.
5963 (clone_die): Likewise.
5964 (clone_as_declaration): Likewise.
5965 (break_out_comdat_types): Likewise.
5966 (new_loc_list): Likewise.
5967 (loc_descriptor): Likewise.
5968 (add_loc_descr_to_each): Likewise.
5969 (add_const_value_attribute): Likewise.
5970 (tree_add_const_value_attribute): Likewise.
5971 (add_comp_dir_attribute): Likewise.
5972 (add_name_and_src_coords_attributes): Likewise.
5973 (lookup_filename): Likewise.
5974 (store_vcall_insn): Likewise.
5975 (dwarf2out_init): Likewise.
5977 * dbxout.c (dbxout_init): Likewise.
5979 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5981 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5983 * config/score/score7.c (score7_output_external): Likewise.
5985 * config/score/score3.c (score3_output_external): Likewise.
5987 * config/s390/s390.c (s390_init_machine_status): Likewise.
5989 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5990 (rs6000_init_machine_status): Likewise.
5991 (output_toc): Likewise.
5993 * config/pa/pa.c (pa_init_machine_status): Likewise.
5994 (get_deferred_plabel): Likewise.
5996 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5998 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6000 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6002 * config/mep/mep.c (mep_init_machine_status): Likewise.
6003 (mep_note_pragma_flag): Likewise.
6005 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6007 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6009 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6011 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6012 (i386_pe_maybe_record_exported_symbol): Likewise.
6014 * config/i386/i386.c (get_dllimport_decl): Likewise.
6015 (ix86_init_machine_status): Likewise.
6016 (assign_386_stack_local): Likewise.
6018 * config/frv/frv.c (frv_init_machine_status): Likewise.
6020 * config/darwin.c (machopic_indirection_name): Likewise.
6022 * config/cris/cris.c (cris_init_machine_status): Likewise.
6024 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6026 * config/avr/avr.c (avr_init_machine_status): Likewise.
6028 * config/arm/arm.c (arm_init_machine_status): Likewise.
6030 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6031 (alpha_need_linkage): Likewise.
6032 (alpha_use_linkage): Likewise.
6034 * cgraph.c (cgraph_allocate_node): Likewise.
6035 (cgraph_create_edge_1): Likewise.
6036 (cgraph_create_indirect_edge): Likewise.
6037 (cgraph_add_asm_node): Likewise.
6039 * cfgrtl.c (init_rtl_bb_info): Likewise.
6041 * cfgloop.c (alloc_loop): Likewise.
6042 (rescan_loop_exit): Likewise.
6044 * cfg.c (init_flow): Likewise.
6045 (alloc_block): Likewise.
6046 (unchecked_make_edge): Likewise.
6048 * c-parser.c (c_parse_init): Likewise.
6049 (c_parse_file): Likewise.
6051 * c-decl.c (bind): Likewise.
6052 (record_inline_static): Likewise.
6053 (push_scope): Likewise.
6054 (make_label): Likewise.
6055 (lookup_label_for_goto): Likewise.
6056 (finish_struct): Likewise.
6057 (finish_enum): Likewise.
6058 (c_push_function_context): Likewise.
6060 * bitmap.c (bitmap_element_allocate): Likewise.
6061 (bitmap_gc_alloc_stat): Likewise.
6063 * alias.c (record_alias_subset): Likewise.
6064 (init_alias_analysis): Likewise.
6066 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
6068 * fold-const.c (fold_comparison): Remove redundant parenthesis.
6069 * tree-inline.c (expand_call_inline): Pass translated return value of
6070 cgraph_inline_failed_string to diagnostic function.
6072 2010-06-08 Andrew Pinski <pinskia@gmail.com>
6073 Shujing Zhao <pearly.zhao@oracle.com>
6076 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6077 implicit bad conversions is initialization.
6078 (error_init): Use gmsgid instead of msgid for argument name and change
6080 (pedwarn_init): Use gmsgid instead of msgid for argument name and
6081 change the call for pedwarn.
6082 (warning_init): Use gmsgid instead of msgid for argument name and
6083 change the call for warning.
6085 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
6087 * config/mips/mips-protos.h (mips_print_operand): Delete.
6088 (mips_print_operand_address): Delete.
6089 * config/mips/mips.h (mips_print_operand_punct): Delete.
6090 (PRINT_OPERAND): Delete.
6091 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6092 (PRINT_OPERAND_ADDRESS): Delete.
6093 * config/mips/mips.c (mips_print_operand_punct): Make static.
6094 (mips_print_operand_address): Make static.
6095 (mips_print_operand): Make static. Call
6096 mips_print_operand_punct_valid_p.
6097 (mips_print_operand_punct_valid_p): New function.
6098 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6099 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6101 2010-06-07 Jan Hubicka <jh@suse.cz>
6104 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6107 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
6109 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6112 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6114 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6115 attributes): Document gas.
6117 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
6119 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6120 <TYPE_LEA>: Split instruction.
6121 <default>: Remove alternative 2 handling.
6122 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6123 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6124 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6126 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6127 (ashift_zext lea splitter): Use DImode for multiplication.
6129 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6130 to generate addition.
6132 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6134 * common.opt (fira-verbose): Use Var.
6135 (fpcc-struct-return): Use Init instead of VarExists.
6136 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6138 * flags.h (flag_signed_char, flag_short_enums,
6139 flag_pcc_struct_return, flag_ira_verbose,
6140 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6141 * toplev.c (flag_detailed_statistics, flag_signed_char,
6142 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6143 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6144 * toplev.h (flag_crossjumping, flag_if_conversion,
6145 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6146 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6147 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6148 flag_cprop_registers, time_report, flag_ira_loop_pressure,
6149 flag_ira_coalesce, flag_ira_move_spills,
6150 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6152 2010-06-07 Jan Hubicka <jh@suse.cz>
6154 * df-core.c (df_analyze_problem): Do verification after allocation.
6156 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6157 (df_lr_alloc): Initialize problem data; move bitmaps to
6159 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6160 (df_lr_verify_solution_start): Do not initialize problem data;
6161 allocate bitmaps in lr_bitmaps.
6162 (df_lr_verify_solution_end): Do not free problem data.
6164 2010-06-07 Jan Hubicka <jh@suse.cz>
6166 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6167 if caller is noreturn.
6168 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6169 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6170 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6171 * ipa-pure-const.c (check_decl): Add IPA parameter.
6172 (state_from_flags): New function.
6173 (better_state, worse_state): New functions.
6174 (check_call): When in IPA mode, do not care about callees.
6175 (check_load, check_store): Update.
6176 (check_ipa_load, check_ipa_store): New.
6177 (check_stmt): When in IPA mode, use IPA checkers.
6178 (analyze_function): Use state_from_flags.
6179 (propagate): Check indirect edges and references.
6181 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
6183 PR rtl-optimization/44404
6184 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6185 of count_occurrences to see if it's safe to modify mem_insn.
6187 2010-06-07 Richard Guenther <rguenther@suse.de>
6189 * gimplify.c (gimplify_cleanup_point_expr): For empty body
6190 and EH-only cleanup drop the cleanup instead of inserting it
6193 2010-06-07 Ira Rosen <irar@il.ibm.com>
6195 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6197 * targhooks.c (default_builtin_vectorization_cost): New function.
6198 * targhooks.h (default_builtin_vectorization_cost): Declare.
6199 * target.h (enum vect_cost_for_stmt): Define.
6200 (builtin_vectorization_cost): Change argument and comment.
6201 * tree-vectorizer.h: Remove cost model macros.
6202 * tree-vect-loop.c: Include target.h.
6203 (vect_get_cost): New function.
6204 (vect_estimate_min_profitable_iters): Replace cost model macros with
6205 calls to vect_get_cost.
6206 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
6207 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
6208 default implementation.
6209 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
6210 calls to target hook builtin_vectorization_cost.
6211 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6213 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
6214 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
6215 implementation to return costs.
6216 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6217 * config/spu/spu.h: Remove vectorizer cost model macros.
6218 * config/i386/i386.h: Likewise.
6219 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
6220 a call to target hook builtin_vectorization_cost.
6222 2010-06-06 Sriraman Tallam <tmsriram@google.com>
6225 * config/i386/i386.c (override_options): Turn zee pass on for level 2
6226 and above and defer till target is known.
6227 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
6230 2010-05-25 Jan Hubicka <jh@suse.cz>
6232 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
6233 (df_compact_blocks): Likewise.
6234 * df.h (struct df): Turn hardware_regs_used,
6235 regular_block_artificial_uses, eh_block_artificial_uses,
6236 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
6238 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
6239 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
6240 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
6241 df_scan_blocks, df_insn_delete, df_insn_rescan,
6242 df_insn_rescan_debug_internal, df_insn_rescan_all,
6243 df_process_deferred_rescans, df_process_deferred_rescans,
6244 df_notes_rescan, df_get_call_refs, df_get_call_refs,
6245 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
6246 df_record_entry_block_defs, df_record_exit_block_uses,
6247 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
6248 df_scan_verify): Update.
6250 2010-05-25 Dodji Seketeli <dodji@redhat.com>
6253 * c-common.c (is_typedef_decl): Move this definition ...
6254 * tree.c (is_typedef_decl): ... here.
6255 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6256 * c-common.h (is_typedef_decl): Move this declaration ...
6257 * tree.h (is_typedef_decl): ... here.
6258 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6259 * dwarf2out.c (is_naming_typedef_decl): New function.
6260 (gen_tagged_type_die): Split out of ...
6261 (gen_type_die_with_usage): ... this function. When an anonymous
6262 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6263 is emitted for the typedef.
6264 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6265 anonymous tagged types.
6267 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
6270 * c-decl.c (grokdeclarator): Delete warning.
6272 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
6274 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6275 newly built CALL_EXPR.
6276 * tree-profile.c (tree_profiling): Don't profile functions produced
6279 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
6283 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6284 endianness-independent.
6286 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6288 * c-common.c: Move to c-family/.
6289 * c-common.def: Likewise.
6290 * c-common.h: Likewise.
6291 * c-cppbuiltin.c: Likewise.
6292 * c-dump.c: Likewise.
6293 * c-format.c: Likewise.
6294 * c-format.h : Likewise.
6295 * c-gimplify.c: Likewise.
6296 * c-lex.c: Likewise.
6297 * c-omp.c: Likewise.
6299 * c-opts.c: Likewise.
6300 * c-pch.c: Likewise.
6301 * c-ppoutput.c: Likewise.
6302 * c-pragma.c: Likewise.
6303 * c-pragma.h: Likewise.
6304 * c-pretty-print.c: Likewise.
6305 * c-pretty-print.h: Likewise.
6306 * c-semantics.c: Likewise.
6307 * stub-objc.c: Likewise.
6309 * gengtype.c (get_file_langdir): Special-case files in c-family/.
6310 (get_output_file_with_visibility): Fix name for c-common.h.
6311 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6313 * c-tree.h: Update include path for moved files.
6314 * c-lang.c: Likewise.
6315 * c-lang.h: Likewise.
6316 * c-parser.c: Likewise.
6317 * c-convert.c: Likewise.
6318 * c-decl.c: Likewise.
6319 * c-objc-common.c: Likewise.
6320 * configure.ac: Make sure c-family/ exists in the build directory.
6321 * configure: Regenerate.
6322 * Makefile.in: Update paths for moved files. Regroup files per
6323 location and update dependencies. Move generated_files down after
6326 * config/spu/spu-c.c: Update paths for moved files.
6327 * config/mep/mep-pragma.c: Likewise.
6328 * config/darwin-c.c: Likewise.
6329 * config/i386/msformat-c.c: Likewise.
6330 * config/i386/i386-c.c: Likewise.
6331 * config/avr/avr-c.c: Likewise.
6332 * config/sol2-c.c: Likewise.
6333 * config/ia64/ia64-c.c: Likewise.
6334 * config/rs6000/rs6000-c.c: Likewise.
6335 * config/arm/arm.c: Likewise.
6336 * config/arm/arm-c.c: Likewise.
6337 * config/h8300/h8300.c: Likewise.
6338 * config/v850/v850-c.c: Likewise.
6340 * config/t-darwin: Fix dependencies for moved files.
6341 * config/t-sol2: Fix dependencies for moved files.
6342 * config/mep/t-mep: Fix dependencies for moved files.
6343 * config/ia64/t-ia64: Fix dependencies for moved files.
6344 * config/rs6000/t-rs6000: Fix dependencies for moved files.
6345 * config/v850/t-v850: Fix dependencies for moved files.
6346 * config/v850/t-v850e: Fix dependencies for moved files.
6348 * config/m32c/m32c-pragma.c
6350 * po/exgettext: Look in c-family/ also.
6352 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
6354 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
6355 (mark_control_dependent_edges_necessary): Call it instead of marking
6356 the last statement manually.
6357 (propagate_necessity): Likewise.
6359 2010-06-05 Jan Hubicka <jh@suse.cz>
6361 * basic-block.h (compute_dominance_frontiers): Updated.
6362 (compute_idf): Likewise.
6364 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
6365 for dominance frontiers.
6366 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
6367 (insert_updated_phi_nodes_for): Likewise.
6368 (update_ssa): Likewise.
6369 * cfganal.c (compute_dominance_frontiers_1): Likewise.
6370 (compute_dominance_frontiers): Likewise.
6371 (compute_idf): Likewise.
6372 * df-problems.c (df_md_local_compute): Likewise.
6374 2010-06-05 Anatoly Sokolov <aesok@post.ru>
6376 * target.h (struct gcc_target): Add memory_move_cost field.
6377 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
6378 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
6379 * targhooks.c (default_memory_move_cost): New function.
6380 * targhooks.h (default_memory_move_cost): Declare function.
6381 * reload.h (memory_move_cost): Declare.
6382 (memory_move_secondary_cost): Change type of 'in' argument to bool.
6383 * reginfo.c (memory_move_cost): New function.
6384 (memory_move_secondary_cost): Change type of 'in' argument to bool.
6385 * ira.h (ira_memory_move_cost): Update comment.
6386 * ira.c: (ira_memory_move_cost): Update comment.
6387 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
6388 with memory_move_cost.
6389 * postreload.c (reload_cse_simplify_set): (Ditto.).
6390 * reload1.c (choose_reload_regs): (Ditto.).
6391 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
6392 (MEMORY_MOVE_COST): Revise documentation.
6394 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6395 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6396 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
6397 type of 'in' argument to bool.
6398 (TARGET_MEMORY_MOVE_COST): Define.
6400 2010-06-05 Jan Hubicka <jh@suse.cz>
6402 * ipa-pure-const.c (propagate): Fix typo in handling of functions
6403 that cannot return. Be more careful when merging the results with
6404 previously known ones.
6406 2010-06-05 Matthias Klose <doko@ubuntu.com>
6408 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
6409 function to add the -iplugindir option.
6410 (find_plugindir_spec_function): Add new declaration and function.
6411 (static_spec_func): Use it for "find-plugindir".
6413 2010-06-05 Jakub Jelinek <jakub@redhat.com>
6416 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
6417 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
6418 statement expression.
6420 2010-06-05 Jan Hubicka <jh@suse.cz>
6422 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
6423 (df_rd_problem_data): Convert sparse_invalidated_by_call,
6424 dense_invalidated_by_call to bitmap head.
6425 (df_rd_alloc, df_rd_bb_local_compute_process_def,
6426 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
6427 df_rd_start_dump, df_lr_verify_transfer_functions,
6428 df_live_verify_transfer_functions, df_chain_create_bb,
6429 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
6430 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
6431 df_simulate_one_insn_forwards, df_md_alloc,
6432 df_md_bb_local_compute_process_def,
6433 df_md_bb_local_compute_process_def, df_md_local_compute,
6434 df_md_transfer_function df_md_free): Update.
6436 2010-06-05 Joseph Myers <joseph@codesourcery.com>
6439 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
6440 target type for ADDR_EXPR; require no changes to qualifiers except
6442 * c-tree.h (c_build_type_variant): Remove.
6444 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
6446 * genautomata.c (get_excl_set): Do work per element, not per char.
6447 (check_presence_pattern_sets): Similar.
6448 (check_absence_pattern_sets): Similar.
6450 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
6452 * genautomata.c (curr_state_pass_num): Delete.
6453 (min_issue_delay_pass_states): Delete.
6454 (min_issue_delay): Delete.
6455 (initiate_min_issue_delay_pass_states): Delete.
6456 (output_min_issue_delay_table): Compute min_issue_delay_vect
6457 using a breadth-first search variant.
6458 (output_tables): Don't call initiate_min_issue_delay_pass_states.
6460 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
6463 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
6464 (df_byte_lr_bb_local_compute): Likewise.
6466 2010-06-03 Jason Merrill <jason@redhat.com>
6468 Implement noexcept operator (5.3.7)
6469 * c-common.c (c_common_reswords): Add noexcept.
6470 * c-common.h (enum rid): Add RID_NOEXCEPT.
6472 2010-06-04 Joseph Myers <joseph@codesourcery.com>
6474 * config/darwin-driver.c (darwin_default_min_version): Use
6475 GCC-specific formats in diagnostics.
6476 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
6478 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
6479 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
6480 eval_spec_function, handle_braces, process_brace_body, main,
6481 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
6482 getenv_spec_function, compare_version_strings,
6483 version_compare_spec_function): Use GCC-specific formats in
6486 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6488 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
6489 that operand 0 and operand 1 are equal.
6490 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
6491 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
6492 and operand 1 are equal.
6493 <default>: Ditto. Remove ??? comment.
6494 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
6495 and operand 1 are equal.
6496 <default>: Ditto. Remove ??? comment.
6497 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
6499 (*add<mode>_4) <default>: Ditto.
6500 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
6502 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
6504 * config/i386/i386-protos.h (ix86_print_operand): Declare.
6505 * config/i386/i386.c (ix86_print_operand): Make non-static.
6506 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
6507 * output.h (output_operand): Declare.
6508 * final.c (output_operand): Make non-static.
6510 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
6512 PR rtl-optimization/44013
6513 * sched-deps.c (add_dependence_list_and_free): Don't free lists
6514 when processing debug insns.
6517 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
6518 recursing. Check that recursion is bounded. Rename inner var
6519 to avoid hiding incoming argument.
6521 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6523 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
6528 (*addqi_ext_1_rex64): Ditto.
6529 (*addqi_ext_1): Ditto.
6531 (*addqi_4): Check for incdec_operand in QImode.
6533 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
6534 using SWI mode iterator.
6535 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
6536 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
6538 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
6539 using SWI mode iterator.
6541 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6544 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
6545 * c-format.c (gcc_diag_flag_specs): Add hash.
6546 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
6547 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
6548 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
6549 pp_c_cv_qualifiers. Handle qualifiers spelling here.
6550 (pp_c_type_qualifier_list): Call the function above.
6551 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
6552 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
6553 (WARN_FOR_QUALIFIERS): New macro.
6554 (convert_for_assignment): Use it.
6556 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
6558 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
6560 2010-06-04 Jan Hubicka <jh@suse.cz>
6562 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
6563 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
6564 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
6565 DF_BYTE_LR_OUT): Update for embedded bitmaps.
6566 * fwprop.c (single_def_use_enter_block): Likewise.
6567 * ddg.c (create_ddg_dep_from_intra_loop_link,
6568 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6569 * loop-iv.c (latch_dominating_def): Likewise.
6570 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6571 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6572 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6573 df_rd_transfer_function, df_rd_top_dump,
6574 df_rd_bottom_dump): Update.
6575 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6576 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6577 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6578 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6579 df_lr_verify_solution_start, df_lr_verify_solution_end,
6580 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6581 df_live_free_bb_info, df_live_alloc, df_live_reset,
6582 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6583 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6584 df_live_verify_solution_start, df_live_verify_solution_end,
6585 df_live_verify_transfer_functions, df_chain_create_bb,
6586 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6587 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6588 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6589 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6590 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6591 df_byte_lr_transfer_function, df_byte_lr_top_dump,
6592 df_byte_lr_bottom_dump, df_create_unused_note,
6593 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6594 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6595 df_md_transfer_function, df_md_init, df_md_confluence_0,
6597 df_md_top_dump, df_md_bottom_dump): Update.
6598 (struct df_lr_problem_data): Embedd bitmap headers.
6600 2010-06-04 Jan Hubicka <jh@suse.cz>
6602 * dce.c (dce_process_block): Do not re-scan already marked
6605 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
6607 PR rtl-optimization/39871
6608 PR rtl-optimization/40615
6609 PR rtl-optimization/42500
6610 PR rtl-optimization/42502
6611 * ira.c (init_reg_equiv_memory_loc: New function.
6612 (ira): Call it twice.
6613 * reload.h (calculate_elim_costs_all_insns): Declare.
6614 * ira-costs.c: Include "reload.h".
6615 (regno_equiv_gains): New static variable.
6616 (init_costs): Allocate it.
6617 (finish_costs): Free it.
6618 (ira_costs): Call calculate_elim_costs_all_insns.
6619 (find_costs_and_classes): Take estimated elimination costs
6621 (ira_adjust_equiv_reg_cost): New function.
6622 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
6623 * reload1.c (init_eliminable_invariants, free_reg_equiv,
6624 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
6625 (elim_bb): New static variable.
6626 (reload): Move code out of here into init_eliminable_invariants and
6627 free_reg_equiv. Call them.
6628 (calculate_elim_costs_all_insns): New function.
6629 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
6630 all callers changed. If FOR_COSTS is true, don't call alter_reg,
6631 but call note_reg_elim_costly if we turned a valid memory address
6632 into an invalid one.
6633 * Makefile.in (ira-costs.o): Depend on reload.h.
6635 2010-06-04 Julian Brown <julian@codesourcery.com>
6637 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
6640 2010-06-04 Richard Guenther <rguenther@suse.de>
6643 * cgraph.h (struct varpool_node): Add lto_file_data field.
6644 * lto-cgraph.c (input_varpool_node): Initialize it.
6646 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6648 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
6649 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
6650 predicate in "type" attribute calculation.
6651 (*addsi_1_zext): Ditto.
6652 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
6653 (*addsi_2_zext): Ditto.
6654 (*add<mode>_3): Ditto.
6655 (*addsi_3_zext): Ditto.
6656 (*add<mode>_5): Ditto.
6658 2010-06-03 Jan Hubicka <jh@suse.cz>
6660 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
6662 * cfganal.c (compute_dominance_frontiers_1): Likewise.
6664 2010-06-03 Jan Hubicka <jh@suse.cz>
6666 * df-problems.c (df_create_unused_note, df_note_bb_compute):
6667 micro-optimize the checks when to add new note.
6669 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
6671 * final.c (output_asm_insn): Call
6672 targetm.asm_out.print_operand_punct_valid_p. Update comments.
6673 (output_operand): Call targetm.asm_out.print_operand. Update comments.
6674 (output_address): Call targetm.asm_out.print_operand_address.
6676 * target.h (struct gcc_target): Add print_operand,
6677 print_operand_address, and print_operand_punct_valid_p fields.
6678 * targhooks.h (default_print_operand): Declare.
6679 (default_print_operand_address): Declare.
6680 (default_print_operand_punct_valid_p): Declare.
6681 * targhooks.c (default_print_operand): Define.
6682 (default_print_operand_address): Define.
6683 (default_print_operand_punct_valid_p): Define.
6684 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6685 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6686 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6687 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6688 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6689 * vmsdbgout.c (addr_const_to_string): Update comment.
6690 * config/i386/i386.c (print_operand): Rename to...
6691 (ix86_print_operand): ...this. Make static.
6692 (print_operand_address): Rename to...
6693 (ix86_print_operand_address): ...this. Make static. Call
6694 ix86_print_operand instead of PRINT_OPERAND.
6695 (ix86_print_operand_punct_valid_p): New function.
6696 (TARGET_PRINT_OPERAND): Define.
6697 (TARGET_PRINT_OPERAND_ADDRESS): Define.
6698 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6699 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6700 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6701 (PRINT_OPERAND): Delete.
6702 (PRINT_OPERAND_ADDRESS): Delete.
6703 * config/i386/i386-protos.h (print_operand): Delete prototype.
6704 (print_operand_address): Delete prototype.
6706 2010-06-03 Richard Guenther <rguenther@suse.de>
6708 PR tree-optimization/44403
6709 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6710 Preserve pointer qualifiers.
6711 (vect_create_data_ref_ptr): Likewise.
6713 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
6716 * defaults.h (MAX_FIXED_MODE_SIZE): New.
6718 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6720 2010-06-03 Jakub Jelinek <jakub@redhat.com>
6723 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6724 return false if merging the bbs would lead to goto_locus
6725 location being lost from the IL.
6727 2010-06-03 Jan Hubicka <jh@suse.cz>
6728 Jakub Jelinek <jakub@redhat.com>
6730 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6731 set->regs[i] is NULL or has just one entry.
6733 2010-06-03 Jan Hubicka <jh@suse.cz>
6735 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6736 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6738 2010-06-03 Paul Brook <paul@codesourcery.com>
6740 * config/arm/arm.c (FL_TUNE): Define.
6741 (arm_default_cpu, arm_cpu_select): Remove.
6742 (all_cores): Populate core field.
6743 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6744 (arm_find_cpu): New function.
6745 (arm_handle_option): Lookup cpu/architecture names.
6746 (arm_override_options): Cleanup mcpu/march/mtune handling.
6747 (arm_file_start): Ditto.
6749 2010-06-03 Alan Modra <amodra@gmail.com>
6752 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6753 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6754 rtx to gen_load_toc_v4_PIC_1b. Tidy.
6755 (rs6000_emit_load_toc_table): Likewise.
6757 2010-06-02 Jan Hubicka <jh@suse.cz>
6759 * passes.c (init_optimization_passes): Put ipa reference
6760 after ipa pure-const.
6762 2010-06-02 Jan Hubicka <jh@suse.cz>
6764 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6765 calls_read_all and calls_write_all.
6766 (get_reference_optimization_summary): Fix formatting.
6767 (is_proper_for_analysis): Check that decl is not readonly.
6768 (propagate_bits): Check CONST/PURE/noreturn flags.
6769 (ipa_init): Move all_module_statics to optimization_summary_obstack.
6770 (analyze_function): Ignore indirect edges.
6771 (copy_global_bitmap): For all module statics, do nothing.
6772 (generate_summary): Do not print calls_read_all/calls_write_all.
6773 (read_write_all_from_decl): Take node as argument; check
6774 cgraph_node_cannot_return.
6775 (propagate): Reorganize read_all/write_all computation;
6776 check indirect edges; check ecf flags; use all_module_statics
6777 in the results; do not free all_module_statics.
6778 (stream_out_bitmap): Handle all_module_statics.
6779 (ipa_reference_write_optimization_summary): Likewise; use
6780 varpool/cgraph encoders to get boundaries.
6781 (ipa_reference_read_optimization_summary): Read in all_module_statics;
6782 use it when possible.
6784 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6787 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6788 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6790 * doc/extend.texi (powerpc builtins): Document vec_recip,
6791 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6793 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6794 (rs6000_emit_swrsqrt): Ditto.
6795 (rs6000_emit_swdivsf): Delete.
6796 (rs6000_emit_swdivdf): Ditto.
6797 (rs6000_emit_swrsqrtsf): Ditto.
6799 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6800 describe the reciprocal estimate support for each type.
6801 (recip_options): Map -mrecip=<opt> into option bits.
6802 (gen_2arg_fn_t): New typedef for binary rtx gen function.
6803 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6804 reciprocal estimate instructions.
6805 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6806 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6807 Set up rs6000_recip_bits based on the -mrecip* options. Print the
6808 cost information if -mdebug=cost or -mdebug=reg.
6809 (rs6000_override_options): Set -mrecip-precision for power6, and
6810 power7 machines. If -mvsx or -mdfp, enable various options that
6811 came in previous instruction set ISAs, unless the option was
6812 explicitly disabled by the command line option. Parse
6813 -mrecip=<opt> options.
6814 (rs6000_builtin_vectorized_function): Add support for vectorizing
6815 the reciprocal estimate builtins and expansions.
6816 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6817 (bdesc_2arg): Add reciprocal estimate builtins.
6818 (bdesc_1arg): Add reciprocal square root estimate builtins.
6819 (rs6000_expand_builtin): Rewrite to use a switch statement,
6820 instead of multiple if/then/elses. Add reciprocal estimate builtins.
6821 (rs6000_init_builtins): Create declarations for reciprocal
6823 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6824 sized, prefer traditional floating point registers, if integer
6825 vector types, prefer altivec registers. Don't actually look at
6826 the memory address any more.
6827 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6829 (rs6000_load_constant_and_splat): New helper function to load up
6830 the constant for reciprocal estimate instructions.
6831 (rs6000_emit_madd): New helper function for generating
6832 multiply/add type instructions, based on the current switches.
6833 (rs6000_emit_msub): Ditto.
6834 (rs6000_emit_mnsub): Ditto.
6835 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6836 replace a divide with a reciprocal estimate and fixup, adding
6837 support for machines with high precision and vectors.
6838 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6839 low precision machines.
6840 (rs6000_emit_swdiv): New common function to be called to replace a
6841 division with reciprocal estimate and fixup.
6842 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
6843 for double and vector types. Add support for high precision machines.
6845 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6846 the reciprocal estimate instructions can be generated.
6847 (TARGET_FRE): Ditto.
6848 (TARGET_FRSQRTES): Ditto.
6849 (TARGET_FRSQRTE): Ditto.
6850 (RS6000_RECIP_*): New macros for reciprocal estimate support.
6852 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6853 square root estimate on vectors.
6854 (re<mode>2): New insn for reciprocal division estimate on vectors.
6856 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6858 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6859 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6860 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6861 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6862 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6863 (RS6000_BUILTIN_RSQRT): Ditto.
6864 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6865 floating point builtin.
6867 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6868 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6869 __RECIP_PRECISION__ based on the command line switches.
6870 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6872 * config/rs6000/rs6000.opt (-mrecip): Document add support for
6873 replacing division instructions with reciprocal estimate and fixup.
6874 (-mrecip=<opt>): New option.
6875 (-mrecip-precision): Ditto.
6877 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6878 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6879 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6882 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6883 (UNSPEC_VREFP): Ditto.
6884 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6885 conterparts with regard to support of -mno-fused-madd and -ffast-math.
6886 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6887 reciprocal estimate instructions to be generated.
6888 (altivec_vrefp): Ditto.
6890 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6892 (rreg): New mode attribute for reciprocal estimate support.
6893 (recip<mode>3): New insn for division using reciprocal estimate
6895 (divide define_split): New define_split to convert floating point
6896 division to use reciprocal estimate if the user used the
6897 appropriate options and the split is run when we can add new
6898 pseudo registers for the fixup.
6899 (rsqrt<mode>2): New insn for reciprocal square root support.
6900 (recipsf3): Move into recip<mode>3.
6902 (fres): Use TARGET_FRES.
6903 (rsqrtsf2): Move into rsqrt<mode>2.
6904 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6905 (copysignsf3): Add support for VSX.
6906 (fred): Use TARGET_FRE.
6908 (rsqrtdf_internal1): New function for frsqrte instruciton.
6910 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6913 2010-06-03 Richard Guenther <rguenther@suse.de>
6916 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6917 (set_user_assembler_libfunc): Likewise.
6919 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6921 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6923 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6925 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6926 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6927 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6928 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6929 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6930 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6931 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6932 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6933 * defaults.h: Updated for above mentioned changes.
6935 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
6937 * c-common.c: Remove header include of tm_p.h.
6938 * Makefile.in (c-common.o): Remove TM_P_H dependency.
6940 2010-06-02 Jakub Jelinek <jakub@redhat.com>
6942 * tree.h (struct tree_decl_map): New type.
6943 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6944 (tree_decl_map_hash): New prototype.
6945 (debug_expr_for_decl, value_expr_for_decl): Change into
6946 tree_decl_map hashtab from tree_map.
6947 (init_ttree): Adjust initialization.
6948 (tree_decl_map_hash): New function.
6949 (decl_debug_expr_lookup, decl_debug_expr_insert,
6950 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6952 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6954 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6956 * configure: Regenerate.
6957 * config.in: Regenerate.
6959 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6960 (X86_64_EMULATION): Define.
6961 (TARGET_LD_EMULATION): Use them.
6963 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6964 (SPARC64_EMULATION): Define.
6965 (LINK_ARCH_SPEC): Use them.
6967 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6969 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6970 smallest_mode_for_size for computing the precision types of new
6971 graphite IVs. Do not call lang_hooks.types.type_for_size.
6973 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6975 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6977 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6979 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6982 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6983 return false instead.
6985 2010-06-02 Jan Hubicka <jh@suse.cz>
6988 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
6989 create new cgraph node to check callee.
6991 2010-06-02 Richard Guenther <rguenther@suse.de>
6993 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
6995 2010-06-02 Richard Guenther <rguenther@suse.de>
6997 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
6998 (lto_wrapper_cleanup): ... this. Do not exit.
6999 (fatal): Adjust. Exit here.
7000 (fatal_perror): Likewise.
7001 (fatal_signal): New function.
7002 (main): Set up signal handlers to cleanup temporary files.
7003 * Makefile.in (lto-wrapper.o): Adjust dependencies.
7005 2010-06-02 Richard Guenther <rguenther@suse.de>
7007 PR tree-optimization/44377
7008 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7010 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7012 * config/s390/2097.md (z10_fhex): Remove insn reservation.
7013 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7014 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7015 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7017 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7019 2010-06-02 Jan Hubicka <jh@suse.cz>
7021 * bitmap.c (bitmap_descriptor): Add search_iter.
7022 (bitmap_find_bit): Increment it.
7023 (print_statistics): Print it.
7025 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
7027 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7028 instead of gimple_build_call_vec. Delete unnecessary local variable.
7030 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7032 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7033 change from yesterday.
7035 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7037 * c-ada-spec.c: Clean up redundant includes.
7039 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
7041 * gimplify.c: Do not include except.h and optabs.h.
7042 (gimplify_body): Do not initialize RTL profiling.
7043 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7044 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7045 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7046 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7049 * tree-pretty-print.h: Include pretty-print.h.
7050 * gimple-pretty-print.h: Include pretty-print.h.
7052 * tree-pretty-print.c: Do not include diagnostic.h.
7053 * tree-vrp.c: Likewise.
7054 * tree-tailcall.c: Likewise
7055 * tree-scalar-evolution.c: Likewise
7056 * tree-ssa-dse.c: Likewise
7057 * tree-chrec.c: Likewise
7058 * tree-ssa-sccvn.c: Likewise
7059 * tree-ssa-copyrename.c: Likewise
7060 * tree-nomudflap.c: Likewise
7061 * tree-call-cdce.c: Likewise
7062 * tree-stdarg.c: Likewise
7063 * tree-ssa-math-opts.c: Likewise
7064 * tree-nrv.c: Likewise
7065 * tree-ssa-sink.c: Likewise
7066 * tree-browser.c: Likewise
7067 * tree-ssa-loop-ivcanon.c: Likewise
7068 * tree-ssa-loop.c: Likewise
7069 * tree-parloops.c: Likewise
7070 * tree-ssa-address.c: Likewise
7071 * tree-ssa-ifcombine.c: Likewise
7072 * tree-if-conv.c: Likewise
7073 * tree-data-ref.c: Likewise
7074 * tree-affine.c: Likewise
7075 * tree-ssa-phiopt.c: Likewise
7076 * tree-ssa-coalesce.c: Likewise
7077 * tree-ssa-pre.c: Likewise
7078 * tree-ssa-live.c: Likewise
7079 * tree-predcom.c: Likewise
7080 * tree-ssa-forwprop.c: Likewise
7081 * tree-ssa-dce.c: Likewise
7082 * tree-ssa-ter.c: Likewise
7083 * tree-ssa-loop-prefetch.c: Likewise
7084 * tree-optimize.c: Likewise
7085 * tree-ssa-phiprop.c: Likewise
7086 * tree-object-size.c: Likewise
7087 * tree-outof-ssa.c: Likewise
7088 * tree-ssa-structalias.c: Likewise
7089 * tree-switch-conversion.c: Likewise
7090 * tree-ssa-reassoc.c: Likewise
7091 * tree-ssa-operands.c: Likewise
7092 * tree-vectorizer.c: Likewise
7093 * tree-vect-data-refs.c: Likewise
7094 * tree-vect-generic.c: Likewise
7095 * tree-vect-stmts.c: Likewise
7096 * tree-vect-patterns.c: Likewise
7097 * tree-vect-slp.c: Likewise
7098 * tree-vect-loop.c: Likewise
7099 * tree-ssa-loop-ivopts.c: Likewise
7100 * tree-ssa-loop-im.c: Likewise
7101 * tree-ssa-loop-niter.c: Likewise
7102 * tree-ssa-loop-unswitch.c: Likewise
7103 * tree-ssa-loop-manip.c: Likewise
7104 * tree-ssa-loop-ch.c: Likewise
7105 * tree-dump.c: Likewise
7106 * tree-complex.c: Likewise
7108 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7109 * tree-ssa-uninit.c: Likewise
7110 * tree-ssa-threadupdate.c: Likewise
7111 * tree-ssa-uncprop.c: Likewise
7112 * tree-ssa-ccp.c: Likewise
7113 * tree-ssa-dom.c: Likewise
7114 * tree-ssa-propagate.c: Likewise
7115 * tree-ssa-alias.c: Likewise
7116 * tree-dfa.c: Likewise
7117 * tree-cfgcleanup.c: Likewise
7118 * tree-sra.c: Likewise
7119 * tree-ssa-copy.c: Likewise
7120 * tree-ssa.c: Likewise
7121 * tree-profile.c: Likewise
7122 * tree-cfg.c: Likewise
7123 * tree-ssa-threadedge.c: Likewise
7124 * tree-vect-loop-manip.c: Likewise
7126 * tree-inline.c: Do not include diagnostic.h and expr.h.
7128 (copy_decl_for_dup_finish): Do not use NULL_RTX.
7130 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7131 * tree-loop-distribution.c: Likewise.
7133 2010-06-01 Jan Hubicka <jh@suse.cz>
7135 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7137 2010-06-01 Jan Hubicka <jh@suse.cz>
7139 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7140 remove return value.
7141 (split_bbs_on_noreturn_calls) .... here.
7142 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7143 * tree-flow.h (fixup_noreturn_call): New.
7145 2010-06-01 Jan Hubicka <jh@suse.cz>
7147 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7149 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
7151 * tree.h (build_nt_call_list): Delete.
7152 * tree.c (build_nt_call_list): Delete.
7154 2010-06-01 Jan Hubicka <jh@suse.cz>
7156 * fwprop.c: Make emit-rtl.h include last.
7157 * rtlanal.c: Include emit-rtl.h.
7158 * genautomata.c: Output emit-rtl include into insn-automata.c
7159 * df-scan.c: Include emit-rtl.h.
7160 * haifa-sched.c: Indlude emit-rtl.h.
7161 * mode-switching.c: Indlude emit-rtl.h.
7162 * graph.c: Indlude emit-rtl.h.
7163 * sel-sched.c: Include emit-rtl.h.
7164 * sel-sched-ir.c: Include emit-rtl.h.
7165 * ira-build.c: Include emit-rtl.h.
7166 * emit-rtl.c: (first_insn, last_insn): Remove defines.
7167 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7169 (set_new_first_and_last_insn, get_last_insn_anywhere,
7170 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7171 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7172 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7173 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7174 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7175 Use accessor functions.
7176 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7177 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7178 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7179 mem_expr_equal_p): Move here from rtl.h.
7180 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7181 Move here from emit-rtl.c; make inline.
7182 * cfglayout.h: Include emit-rtl.h.
7183 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7184 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7185 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7186 mem_expr_equal_p, get_insns, set_first-insn,
7187 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7188 * reg-stack.c: Include emit-rtl.h.
7191 2010-06-01 Jan Hubicka <jh@suse.cz>
7193 * cgraph.h (tree_function_versioning): Update prototype.
7194 (cgraph_function_versioning): Update prototype.
7195 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7197 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7198 (cgraph_materialize_clone, save_inline_function_body): Update use of
7199 tree_function_versioning.
7200 * tree-inline.c (copy_bb): Look for previous copied block to link
7201 after; fix debug output.
7202 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
7203 (copy_body): Likewise.
7204 (expand_call_inline): Update use of copy_body.
7205 (tree_function_versioning): Update use of copy body; accept
7206 blocks_to_copy and new_entry.
7208 2010-06-01 Jan Hubicka <jh@suse.cz>
7210 * gegenrtl.c: Remove unnecesary prototypes.
7212 (gendef): Produce static inline.
7214 (main): Do not decode parameters; generate header only.
7215 * Makefile.in (genrtl.c): Remove.
7217 2010-06-01 Jan Hubicka <jh@suse.cz>
7219 * tree-switch-conversion.c (build_one_array): Make it readonly.
7221 2010-06-01 Richard Guenther <rguenther@suse.de>
7223 * optabs.c (init_optabs): Guard all accesses to reinit.
7224 * ipa-pure-const.c (propagate): Fix another typo.
7225 * opts.c (common_handle_option): Split assignment to bool.
7226 * c-opts.c (c_common_handle_option): Likewise.
7228 2010-06-01 Arnaud Charlet <charlet@adacore.com>
7229 Matthew Gingell <gingell@adacore.com>
7231 * doc/invoke.texi: Mention -fdump-ada-spec.
7232 * tree-dump.c (dump_files): Add ada-spec.
7233 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
7234 * tree-pass.h (tree_dump_index): Add TDI_ada.
7235 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
7236 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
7237 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
7238 * c-decl.c: Include c-ada-spec.h.
7239 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
7241 (c_write_global_declarations): Add handling of -fdump-ada-spec.
7242 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
7243 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
7244 * c-ada-spec.h, c-ada-spec.c: New files.
7246 2010-06-01 Richard Guenther <rguenther@suse.de>
7249 * ipa-pure-const.c (get_function_state): Hand back varying state
7250 if we do not have one.
7251 (has_function_state): New function.
7252 (duplicate_node_data): Adjust.
7253 (remove_node_data): Likewise.
7254 (pure_const_write_summary): Likewise.
7255 (propagate): Likewise. Fix typo.
7257 2010-06-01 Jan Hubicka <jh@suse.cz>
7259 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
7260 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
7261 (execute_all_ipa_transforms): Do not play with the states.
7263 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7265 * config/arm/t-linux-androideabi: New.
7266 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7268 2010-06-01 Jan Hubicka <jh@suse.cz>
7270 * tree-inline.c (estimate_num_insns): For stdarg functions look
7271 into call statement to count cost of argument passing.
7273 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
7275 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7276 argument for fprintf.
7277 (ix86_output_addr_diff_elt): Likewise.
7278 (x86_function_profiler): Likewise.
7279 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7280 (LPREFIX): Likewise.
7281 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7283 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7286 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7287 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7288 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7289 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7290 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7291 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7292 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7293 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7296 2010-05-31 Jan Hubicka <jh@suse.cz>
7298 * tree.h (tree_range_check_failed): Declare noreturn.
7300 2010-05-31 Jan Hubicka <jh@suse.cz>
7302 * gimple.c (gimple_call_builtin_p): New function.
7303 * gimple.h (gimple_call_builtin_p): Declare.
7304 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7306 (execute_warn_function_return): BUILT_IN_RETURN is return.
7307 (split_critical_edges): Return edges are not critical.
7308 (is_ctrl_altering_stmt): Builtin_in_return is altering.
7309 (gimple_verify_flow_info): Handle built_in_return.
7310 (execute_warn_function_return): Handle built_in_return.
7311 * ipa-pure-const.c (check_call): Ignore builtin_return.
7313 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7316 * expr.c (expand_assignment): Don't store anything for out-of-bounds
7317 array accesses with non-MEM.
7319 PR tree-optimization/44182
7320 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7321 newly needs to end a bb is followed by debug stmts, instead return
7322 true from the function at the end.
7323 (maybe_move_debug_stmts_to_successors): New function.
7324 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7326 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
7329 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7331 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
7333 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7334 for nested functions in non-optimized compilation.
7336 2010-05-31 Richard Guenther <rguenther@suse.de>
7338 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
7340 2010-05-30 Jan Hubicka <jh@suse.cz>
7342 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
7344 2010-05-30 Richard Guenther <rguenther@suse.de>
7347 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
7348 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
7351 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
7353 * config/darwin.c (output_objc_section_asm_op): Add comment.
7354 (name_needs_quotes): Add '_' to list of valid comment chars.
7355 (machopic_output_function_base_name): Remove unneeded quotes.
7356 (darwin_encode_section_info): Adjust asm whitespace.
7357 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
7358 (ASM_OUTPUT_LOCAL): Ditto.
7359 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
7360 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
7361 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
7363 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7365 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
7366 RS6000_OUTPUT_BASENAME unconditionally.
7367 (rs6000_output_function_epilogue): Likewise.
7369 2010-05-30 Jan Hubicka <jh@suse.cz>
7371 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
7374 2010-05-30 Richard Guenther <rguenther@suse.de>
7376 * tree-cfg.c (verify_gimple_assign_single): Implement
7377 verification for COND_EXPR rhs.
7379 2010-05-30 Jan Hubicka <jh@suse.cz>
7381 * cgraph.h (cgraph_dump_file): Declare.
7382 * cgraphunit.c (cgraph_dump_file): Export.
7383 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
7385 2010-05-30 Jan Hubicka <jh@suse.cz>
7387 * dwarf2out.c (reference_to_unused,
7388 premark_types_used_by_global_vars_helper): Avoid creation of new
7391 2010-05-30 Jan Hubicka <jh@suse.cz>
7393 * cgraph.h (cgraph_node_cannot_return,
7394 cgraph_edge_cannot_lead_to_return): New functions.
7395 * cgraph.c (cgraph_node_cannot_return,
7396 cgraph_edge_cannot_lead_to_return): Use them.
7397 * ipa-pure-const.c (pure_const_names): New static var.
7398 (check_call): Handle calls not leading to return.
7399 (pure_const_read_summary): Dump info read.
7400 (propagate): Dump info about propagation process; ignore side effects
7401 of functions not leading to exit; fix handling of pure functions.
7403 2010-05-30 Jan Hubicka <jh@suse.cz>
7405 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
7406 for tail call epilogues.
7408 2010-05-30 Jan Hubicka <jh@suse.cz>
7410 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
7411 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
7414 2010-05-29 Jan Hubicka <jh@suse.cz>
7416 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
7417 node; remove references in node we no longer keep in cgrpah but need
7420 2010-05-29 Jan Hubicka <jh@suse.cz>
7422 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
7424 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7427 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
7429 2010-05-29 Jan Hubicka <jh@suse.cz>
7431 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
7432 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
7433 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
7434 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
7435 debug_names_replaced_by, debug_update_ssa): Likewise.
7436 * sbitmap.c (debug_sbitmap): Likewise.
7437 * genrecog.c (debug_decision, debug_decision_list): Likewise.
7438 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
7439 debug_tree_chain): Likewise.
7440 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
7441 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
7442 * optabs.c (debug_optab_libfuncs): Likewise.
7443 (verify_loop_closed_ssa): Likewise.
7444 * value-prof.c (verify_histograms): Likewise.
7445 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
7446 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
7447 * cfghooks.c (verify_flow_info): Likewise.
7448 * fold-const.c (debug_fold_checksum): Likewise.
7449 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
7450 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
7452 * omega.c (debug_omega_problem): Likewise.
7453 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
7454 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
7455 * dominance.c (verify_dominators, debug_dominance_info,
7456 debug_dominance_tree): Likewise.
7457 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
7458 * df_regno_debug, df_ref_debug,
7459 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
7460 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
7461 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
7462 * sel-sched.c (debug_state): Likewise.
7463 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
7465 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
7466 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
7467 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
7468 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
7470 * c-pretty-print.c (debug_c_tree): Likewise.
7471 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
7472 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
7473 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
7474 * ebitmap.c (debug_ebitmap): Likewise.
7475 * function.c (debug_find_var_in_block_tree): Likewise.
7476 * print-rtl.c (debug_rtx): Likewise.
7477 (debug_rtx_count): Likewise.
7478 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
7479 * stor-layout.c (debug_rli): Likewise.
7480 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
7481 * tree-data-ref.c (debug_data_references,
7482 debug_data_dependence_relations, debug_data_reference,
7483 debug_data_dependence_relation, debug_rdg_vertex,
7484 debug_rdg_component, debug_rdg): Likewise.
7485 * tree-affine.c (debug_aff): Likewise.
7486 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
7488 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
7489 * emit-rtl.c (verify_rtl_sharing): Likewise.
7490 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
7491 debug_value_expressions): Likewise.
7492 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
7493 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
7494 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
7495 * cfglayout.c (verify_insn_chain): Likewise.
7496 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
7497 debug_clast_stmt, debug_generated_program): Likewise.
7498 * ggc-page.c (debug_print_page_list): Likewise.
7499 * tree-ssa-ter.c (debug_ter): Likewise.
7500 * graphite-dependences.c (debug_pddr): Likewise.
7501 * sched-deps.c (debug_ds): Likewise.
7502 * tree-ssa.c (verify_ssa): Likewise.
7503 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
7504 debug_scattering_functions, debug_iteration_domains, debug_pdr,
7505 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
7506 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
7507 * tree-inline.c (debug_find_tree): Likewise.
7508 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
7509 debug_ppl_powerset_matrix): Likewise.
7510 * var-tracking.c (debug_dv): Likewise.
7511 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
7512 * cfgloop.c (verify_loop_structure): Likewise.
7513 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
7514 * c-common.c (verify_sequence_points): Likewise.
7515 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
7516 debug_candidates, debug_rgn_dependencies): Likewise.
7517 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
7518 * debug_constraint_graph, debug_solution_for_var,
7519 debug_sa_points_to_info): Likewise.
7520 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
7522 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
7523 debug_loops, debug_loop, debug_loop_num): Likewise.
7524 * passes.c (debug_pass): Likewise.
7525 (dump_properties): Likewise; add cfglayout property.
7526 (debug_properties): Likewise.
7527 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
7528 * varpool.c (debug_varpool): Likewise.
7529 * regcprop.c (debug_value_data): Likewise.
7530 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
7531 debug_immediate_uses_for): Likewise.
7533 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7536 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
7537 Filter out insn-flags.h.
7539 2010-05-29 Jan Hubicka <jh@suse.cz>
7541 * cgraph.h (struct varpool_node_set_def,
7542 struct cgraph_node_set_def): Remove unused AUX pointer.
7543 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
7546 2010-05-29 Jan Hubicka <jh@suse.cz>
7549 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
7551 2010-05-29 Richard Guenther <rguenther@suse.de>
7553 * lto-streamer.c (cached_bp): New global variable.
7554 (bitpack_create): Return the cached bitpack, if available.
7555 (bitpack_delete): Clear and cache the bitpack, if appropriate.
7556 (bp_pack_value): Remove redundant asserts.
7558 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7561 * tree-if-conv.c (is_true_predicate): New.
7562 (is_predicated): Use is_true_predicate.
7563 (add_to_predicate_list): Same. Do not use unshare_expr.
7564 (add_to_dst_predicate_list): Same.
7566 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7568 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7570 (predicate_bbs): Same.
7571 (clean_predicate_lists): Same.
7572 (find_phi_replacement_condition): Do not AND the predicate from
7575 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7578 * Makefile.in (build/gencondmd.o): Add a missing `\'.
7580 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7583 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7584 (negdf2): Adjust expander pattern and use negdf2_slow.
7587 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
7589 * basic-block.h (struct control_flow_graph): Move last_label_uid field
7591 * df.h (struct df_base_ref): Move regno field up.
7592 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7593 * expr.h (struct separate_ops): Move location field up.
7594 * optabs.h (struct optab_d): Move libcall_basename field down.
7595 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7596 * config/i386/i386.h (struct machine_function): Convert call_abi field
7597 into a bitfield. Move cfa field to the end of the structure.
7599 2010-05-29 Jan Hubicka <jh@suse.cz>
7601 * varpool.c (varpool_get_node): Fix lookup.
7603 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7605 * config/spu/spu-protos.h: Do not include rtl.h. Protect
7606 RTL specific prototypes with #ifdef RTX_CODE.
7607 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7608 * config/spu/t-spu-elf: Fix dependencies.
7610 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
7612 2010-05-29 Mike Stump <mikestump@comcast.net>
7615 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
7616 TM_H when building to avoid dependency loops.
7618 2010-05-29 Jan Hubicka <jh@suse.cz>
7620 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
7621 refs and body; not the whole node for masters of materialized clones.
7623 2010-05-29 Mike Stump <mikestump@comcast.net>
7625 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
7627 2010-05-29 Jan Hubicka <jh@suse.cz>
7629 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
7630 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
7631 use of clone_function_name.
7632 * cgraph.h (cgraph_create_virtual_clone,
7633 cgraph_function_versioning): update prototypes.
7634 (clone_function_name): Declare.
7635 * ipa-cp.c (ipcp_insert_stage): Update call of
7636 cgraph_create_virtual_clone.
7637 * omp-low.c (create_omp_child_function_name): Use
7638 cgraph_create_virtual_clone.
7639 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
7640 (cgraph_function_versioning): Take SUFFIX argument; produce new name
7641 and make decl local.
7643 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7645 * vec.h: Include statistics.h
7646 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
7649 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7651 * c-lex.c: Do not include c-tree.h.
7652 * c-pretty-print.c: Likewise.
7653 * c-opts.c: Likewise.
7654 * c-gimplify.c: Likewise.
7655 * c-common.c: Likewise.
7656 * c-dump.c: Likewise. Include c-common.h.
7658 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7660 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
7661 before including diagnostic-core.h.
7662 (c_cpp_error): New prototype moved from c-tree.h.
7663 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
7664 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
7665 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
7666 (c_cpp_error): Prototype moved to c-common.h.
7667 * Makefile.in: Update dependency for C_COMMON_H.
7669 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7671 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7672 * c-common.c (c_register_addr_space): Remove here.
7673 * c-decl.c (c_register_addr_space): Re-add here.
7675 2010-05-28 Mike Stump <mikestump@comcast.net>
7677 * config/darwin-c.c: Remove c-tree.h include.
7679 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7681 * gcc.c: Include diagnostic.h.
7682 (error_count): Remove. All users changed to use errorcount.
7683 (programname): Remove. All users changed to use progname.
7684 (fancy_abort, internal_error, fatal_error, error, warning, inform,
7686 (execute): Don't include "Internal error" and bug reporting
7687 information in argument of internal_error call.
7688 (process_command): Don't increment error_count after calling
7690 (input_filename): Rename to gcc_input_filename. All users
7692 (main): Call diagnostic_initialize. Register delete_temp_files
7693 with atexit. Use seen_error to test for errors.
7694 * gcc.h: Include diagnostic-core.h.
7695 (fatal_error, error, warning): Remove.
7696 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7697 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7698 (gcc.o): Update dependencies.
7700 2010-05-28 Jeff Law <law@redhat.com>
7702 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7704 * ira.h (ira_bad_reload_regno): Declare
7705 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7707 * ira-color.c (update_curr_costs): Free updated hard reg costs.
7708 (ira_reassign_conflict_allocnos): Remove bogus asserts.
7709 (allocno_reload_assign): Likewise.
7711 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
7713 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7716 2010-05-28 Richard Guenther <rguenther@suse.de>
7719 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7720 Stream fixed-point constants mode.
7721 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7723 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7724 Stream fixed-point constants mode.
7725 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7728 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7730 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7731 only place it was called from.
7732 (number_of_latch_executions): Do not return chrec_dont_know when the
7733 may_be_zero is a runtime condition: instead, return a COND_EXPR
7734 including the may_be_zero condition.
7735 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7737 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7740 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7742 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7743 generate COND_EXPRs for degenerate_phi_result.
7745 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7748 * tree-if-conv.c (if_convertible_loop_p): Check the
7749 if-convertibility of phi nodes in non predicated BBs.
7751 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7753 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7755 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7758 * gcc.c (inform, warning, inform): New functions.
7759 (fatal_ice): Rename to internal_error; change cmsgid parameter to
7760 gmsgid. All callers changed.
7761 (notice): Rename to fnotice; add parameter fp. All callers changed.
7762 (fatal_error): Rename to fatal_signal. All users changed.
7763 (fatal): Rename to fatal_error; change cmsgid parameter to
7764 gmsgid. All callers changed.
7765 (process_command): Use warning instead of error for warnings.
7766 (end_going_arg): Don't use _() around argument of error.
7767 (do_spec_1): Use inform for message from %n specs. Use warning
7768 instead of error for warnings.
7769 (main): Use inform for comparison messages. Use warning for
7770 message about unused linker input.
7771 (error): Increment error_count. Print "error: ".
7772 * gcc.h (fatal): Change to fatal_error.
7774 * config/darwin-driver.c (darwin_default_min_version): Use warning
7775 instead of fprintf for warnings.
7776 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7778 2010-05-28 Julian Brown <julian@codesourcery.com>
7780 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7781 (*thumb2_addsi3_compare0_scratch): New.
7782 * config/arm/constraints.md (Pv): New.
7783 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7785 (*addsi3_compare0_scratch): Likewise.
7787 2010-05-28 Jan Hubicka <jh@suse.cz>
7789 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7791 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7792 only on local statics.
7794 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
7796 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7798 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7801 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7802 (OPTION_GLIBC): Define.
7804 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7807 * dwarf2out.c (double_int_type_size_in_bits): New function.
7808 (round_up_to_align): Change first argument and return value to
7810 (field_byte_offset): Work internally on double_ints.
7813 * builtins.c (expand_movstr): Use a temporary pseudo instead
7814 of target even when target is not NULL and not const0_rtx, but
7815 fails movstr predicate.
7816 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7818 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7820 * final.c (rest_of_clean_state): Use %m in errors instead of
7822 * gengtype.c (read_input_list, close_output_files): Use xstrerror
7823 instead of strerror.
7824 * toplev.c (process_options): Use %m in errors instead of strerror
7826 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7829 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
7831 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7832 (ix86_canonical_va_list_type): Make static. Add declaration.
7833 (ix86_enum_va_list): Make static. Reindent.
7834 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7835 (ix86_canonical_va_list_type): Ditto.
7836 (ix86_enum_va_list): Ditto.
7838 2010-05-28 Richard Guenther <rguenther@suse.de>
7840 * lto-wrapper.c (run_gcc): With -save-temps generate a
7841 user-visible ltrans filename. Fixup ltrans unit numbering.
7843 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
7845 * c-common.c (c_common_nodes_and_builtins): Replace use
7846 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7847 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7848 to ix86_enum_va_list.
7849 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7850 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7851 (TARGET_ENUM_VA_LIST_P): Add hook description.
7852 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7853 * target.h (gcc_target): Add enum_va_list hook.
7856 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7857 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7858 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7860 2010-05-28 Alan Modra <amodra@gmail.com>
7863 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7864 emit_library_call machinery to set up __tls_get_addr calls.
7866 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7868 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7870 2010-05-28 Dodji Seketeli <dodji@redhat.com>
7872 Revert fix for PR c++/44188
7873 * c-common.c (is_typedef_decl): Revert the moving of this
7875 * tree.c (is_typedef_decl): ... here.
7876 (typdef_variant_p): Revert the moving of this definition
7877 here from gcc/cp/tree.c.
7878 * c-common.h (is_typedef_decl): Revert the moving of this
7880 * tree.h (is_typedef_decl): ... here.
7881 (typedef_variant_p): Revert the moving of this declaration here
7882 from gcc/cp/cp-tree.h
7883 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7884 (gen_tagged_type_die): Revert the splitting out of ...
7885 (gen_type_die_with_usage): ... this function. Revert the anonymous
7886 tagged type handling.
7887 (gen_typedef_die): Revert emitting DW_TAG_typedef for
7888 typedefs naming anonymous tagged types.
7890 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7892 * config/rs6000/rs6000-modes.def (PSImode): Delete.
7894 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7896 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7897 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7899 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7901 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7902 XER_REGS to CA_REGS throughout.
7903 * config/rs6000/rs6000.h: Same.
7904 (ADDITIONAL_REGISTER_NAMES): Add "xer".
7905 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
7906 that mode_iterator "P" is the size for arithmetic carries as well.
7907 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7909 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7912 * combine.c (struct rtx_subst_pair): Define unconditionally.
7913 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
7914 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7915 Call make_compound_operation on pair->to.
7916 (propagate_for_debug): Don't call make_compound_operation here.
7917 Always use simplify_replace_fn_rtx.
7919 2010-05-27 Sterling Augustine <sterling@tensilica.com>
7921 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7922 * config/xtensa/xtensa.c (override_options): Check
7923 TARGET_FORCE_NO_PIC and set flag_pic.
7924 * config/xtensa/xtensa.opt: Document -mforce-no-pic
7926 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7929 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7930 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7932 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7934 * diagnostic-core.h: New. Contents moved from diagnostic.h and
7936 * diagnostic.c: Don't include toplev.h.
7937 (progname): Define. Moved from toplev.c.
7938 (seen_error): New function.
7939 * diagnostic.h: Include diagnostic-core.h.
7940 (diagnostic_t, emit_diagnostic): Don't declare here.
7941 * toplev.c (progname): Move to toplev.c.
7942 (emit_debug_global_declarations, compile_file, finalize,
7943 do_compile, toplev_main): Use seen_error.
7944 * toplev.h: Include diagnostic-core.h.
7945 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7946 internal_error, warning, warning_at, error, error_n, error_at,
7947 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7948 verbatim, fnotice, progname): Move to diagnostic-core.h.
7949 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7950 (expand_builtin_expect): Use seen_error.
7951 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7952 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7953 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7954 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7955 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7956 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7957 errorcount for errors.
7958 * c-opts.c (c_common_finish): Use seen_error.
7959 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7960 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7961 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7962 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7963 (get_coverage_counts): Use seen_error.
7964 * dwarf2out.c (dwarf2out_finish): Use seen_error.
7965 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7966 gimplify_body): Use seen_error.
7967 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7968 * ipa-pure-const.c (gate_pure_const): Use seen_error.
7969 * ipa-reference.c (gate_reference): Use seen_error.
7970 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7971 * lambda-code.c: Include diagnostic-core.h instead of
7973 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7974 * lto-compress.c: Include diagnostic-core.h instead of
7976 * lto-section-in.c: Include diagnostic-core.h instead of
7978 * lto-streamer-out.c: Include diagnostic-core.h instead of
7980 * lto-streamer.c: Include diagnostic-core.h instead of
7982 (gate_lto_out): Use seen_error.
7983 * matrix-reorg.c: Include diagnostic-core.h instead of
7985 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
7986 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
7987 (gate_expand_omp, lower_omp_1): Use seen_error.
7988 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
7989 (rest_of_decl_compilation, rest_of_type_compilation,
7990 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
7991 * tree-cfg.c (label_to_block_fn): Use seen_error.
7992 * tree-inline.c (optimize_inline_calls): Use seen_error.
7993 * tree-mudflap.c (mudflap_finish_file): Use
7995 * tree-optimize.c (gate_all_optimizations,
7996 gate_all_early_local_passes, gate_all_early_optimizations): Use
7998 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
7999 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8000 (varpool_remove_unreferenced_decls,
8001 varpool_assemble_pending_decls): Use seen_error.
8002 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8003 (TOPLEV_H, DIAGNOSTIC_H): Update.
8004 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8005 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8006 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8007 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8008 coverage.o, lambda-code.o): Update dependencies.
8010 2010-05-25 Dodji Seketeli <dodji@redhat.com>
8013 * c-common.c (is_typedef_decl): Move this definition ...
8014 * tree.c (is_typedef_decl): ... here.
8015 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8016 * c-common.h (is_typedef_decl): Move this declaration ...
8017 * tree.h (is_typedef_decl): ... here.
8018 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8019 * dwarf2out.c (is_naming_typedef_decl): New function.
8020 (gen_tagged_type_die): Split out of ...
8021 (gen_type_die_with_usage): ... this function. When an anonymous
8022 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8023 is emitted for the typedef.
8024 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8025 anonymous tagged types.
8027 2010-05-27 Jason Merrill <jason@redhat.com>
8029 * print-tree.c (debug_vec_tree): New fn.
8030 (print_vec_tree): New fn.
8031 * tree.h: Declare them.
8032 * gdbinit.in (pvt): New command.
8034 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8036 * gdbinit.in (pdd): New command.
8038 2010-05-27 Jan Hubicka <jh@suse.cz>
8040 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8041 (update_caller_keys): Return early if there are no callers;
8042 only update fibheap when decresing the key.
8043 (update_callee_keys): Avoid recursion.
8044 (decide_inlining_of_small_functions): When badness does not match;
8045 re-insert into fibheap.
8047 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8049 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8050 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8051 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8052 (ALL_HOST_OBJS): Now a union of the above two.
8053 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8054 all files in ALL_HOST_FRONTEND_OBJS.
8055 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8057 * c-common.c: Pretend to be a backend file by undefining
8058 IN_GCC_FRONTEND (still need rtl.h here).
8060 2010-05-27 Jan Hubicka <jh@suse.cz>
8062 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8063 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8065 2010-05-27 Jan Hubicka <jh@suse.cz>
8067 * sched-ebb.c: Rename struct deps to struct deps_desc.
8069 * sel-sched-ir.c: Likewise.
8070 * sched-deps.c: Likewise.
8071 * sched-int.h: Likewise.
8072 * sched-rgn.c: Likewise.
8074 2010-05-27 Jon Beniston <jon@beniston.com>
8077 * config/lm32/lm32.h: Remove definition of
8078 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8080 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
8083 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8085 2010-05-27 Richard Guenther <rguenther@suse.de>
8087 PR tree-optimization/44284
8088 * tree-vect-stmts.c (vectorizable_assignment): Handle
8089 sign-changing conversions as simple copy.
8091 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8093 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8095 (__gthread_active_p): Check for pthread_create if compiling against
8098 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8100 Support compilation for Android platform. Reimplement -mandroid.
8102 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8103 (*android*): Set ANDROID_DEFAULT.
8104 (arm*-*-linux*): Include linux-android.h.
8105 (arm*-*-eabi*): Don't include previous -mandroid implementation.
8106 * config/arm/eabi.h: Remove, move Android-specific parts ...
8107 * config/linux-android.h: ... here. New file.
8108 * config/arm/eabi.opt: Rename to ...
8109 * config/linux-android.opt: ... this.
8110 (mandroid): Allow -mno-android option. Initialize based on
8112 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8113 Move logic to corresponding LINUX_TARGET_* macros.
8114 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8115 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8116 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8117 Android definitions.
8118 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8119 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8122 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8124 Add support for Bionic C library
8126 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8128 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8129 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8131 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8132 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8133 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8134 to support multiple C libraries. Handle Bionic.
8135 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8136 (BIONIC_DYNAMIC_LINKER64): Define.
8137 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8139 (TARGET_HAS_SINCOS): Enable for Bionic.
8141 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
8142 the last option specified on command line take effect.
8143 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8145 (mglibc, muclibc): Update.
8147 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8148 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8151 * doc/invoke.texi (-mglibc, -muclibc): Update.
8152 (-mbionic): Document.
8154 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8156 * c-common.h (c_register_addr_space): Add prototype.
8157 (ADDR_SPACE_KEYWORD): Remove.
8158 * c-common.c (c_register_addr_space): New function.
8159 (c_addr_space_name): Reimplement.
8160 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8162 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8163 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8165 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8166 Remove TARGET_ADDR_SPACE_KEYWORDS.
8168 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8170 * input.c: New file.
8171 * input.h (main_input_filename): Move declaration to toplev.h.
8172 * toplev.c (input_location, line_table): Move to input.c
8173 * toplev.h (main_input_filename): Move declaration from input.h.
8174 * tree.c (expand_location): Move to input.c.
8175 * Makefile.in (OBJS-common): Add input.o.
8176 (input.o): Add dependencies.
8178 2010-05-27 Richard Guenther <rguenther@suse.de>
8180 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8181 for non-existant files.
8182 (fork_execute): Mark args_name file as deleted.
8184 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8187 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8188 (narrow_signed_type): Likewise.
8190 2010-05-26 Jan Hubicka <jh@suse.cz>
8192 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8193 edge only when checking is enabled; check using former_clone_of;
8194 check inline clones too.
8195 (cgraph_materialize_clone): Record former_clone_of pointer.
8196 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8197 combining redirections; dump args_to_skip bitmap
8198 (cgraph_materialize_all_clones): Do no redirection here.
8199 * ipa-inline.c (inline_transform): Do redirection here.
8200 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
8203 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8205 * config/avr/avr-c.c: Do not include regs.h.
8206 Include cpplib.h for cpp_define and tree.h for c-common.h.
8207 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
8208 * config/avr/t-avr: Fix dependencies for avr-c.o.
8210 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8212 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
8213 string instead of SYMBOL_REF rtx.
8214 * rtl.h (set_stack_check_libfunc): Move prototype from here...
8215 * libfuncs.h: ...to here. Adjust for explow.c change.
8217 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8219 * pretty-print.c: Don't include ggc.h.
8220 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
8221 (identifier_to_locale): Use them for allocation.
8222 * pretty-print.h (identifier_to_locale_alloc,
8223 identifier_to_locale_free): Declare.
8224 * toplev.c (alloc_for_identifier_to_locale): New.
8225 (general_init): Set identifier_to_locale_alloc and
8226 identifier_to_locale_free.
8227 * Makefile.in (pretty-print.o): Update dependencies.
8229 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8231 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
8232 pointer types if they have different alignment or mode.
8234 2010-05-26 Anatoly Sokolov <aesok@post.ru>
8236 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8237 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8238 * config/sparc/sparc-protos.h (function_value): Remove declaration.
8239 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
8240 sparc_function_value_regno_p): New functions.
8241 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8242 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8243 (function_value): Rename to...
8244 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
8245 argument to 'outgoing'.
8246 (function_arg_record_value, function_arg_union_value,
8247 function_arg_vector_value): Update comment.
8249 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8251 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
8252 (fde_needed_for_eh_p): New predicate.
8253 (output_call_frame_info): Use it throughout to decide whether FDEs
8254 are needed for EH purpose.
8255 (dwarf2out_begin_prologue): Reorder assignments.
8257 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8259 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
8260 special case loop->header.
8261 (is_predicated): New.
8262 (if_convertible_loop_p): Call it.
8264 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8266 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8267 iterator in parameter. Do not generate code during the analysis.
8268 (tree_if_convert_cond_stmt): Removed.
8269 (tree_if_convert_stmt): Removed.
8270 (predicate_bbs): New.
8271 (if_convertible_loop_p): Call predicate_bbs.
8272 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8273 now contains all the analysis part.
8275 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8277 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8278 statements in the analysis part.
8279 (tree_if_convert_stmt): Update comment.
8280 (remove_conditions_and_labels): New.
8281 (combine_blocks): Call remove_conditions_and_labels.
8282 (tree_if_conversion): Update comment.
8284 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8286 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8287 than 2 predecessors or more than 2 successors.
8289 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8291 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8292 of loops in which the data dependence analysis fails.
8294 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8296 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8297 CDI_POST_DOMINATORS.
8298 (tree_if_conversion): Same.
8300 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8302 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8304 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8306 * tree-if-conv.c: Update copyright years. Fix comments.
8309 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
8311 * builtin-types.def (BT_INT128): New primitive type.
8312 (BT_UINT128): Likewise.
8313 * c-common.c (c_common_r): Add __int128 keyword.
8314 (c_common_type_for_size): Handle __int128.
8315 (c_common_type_for_mode): Likewise.
8316 (c_common_signed_or_unsigned_type): Likewise.
8317 (c_common_nodes_and_builtins): Add builtin type
8318 if target supports 128-bit integer scalar.
8319 * c-common.h (enum rid): Add RID_INT128.
8320 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8321 if target supports 128-bit integer scalar.
8322 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8323 (finish_declspecs): Likewise.
8324 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8325 (c_token_starts_declspecs): Likewise.
8326 (c_parser_declspecs): Likewise.
8327 (c_parser_attributes): Likewise.
8328 (c_parser_objc_selector): Likewise.
8329 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8330 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8331 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8332 * tree.c (make_or_reuse_type): Likewise.
8333 (make_unsigned_type): Likewise.
8334 (build_common_tree_nodes_2): Likewise.
8335 * tree.h (enum integer_type_kind): Add itk_int128 and
8336 itk_unsigned_int128.
8337 (int128_integer_type_node): New define.
8338 (int128_unsigned_type_node): New define.
8339 * doc/extend.texi: Add documentation about __int128 type.
8341 2010-05-26 Richard Guenther <rguenther@suse.de>
8343 * tree-ssa-sccvn.c (copy_nary): Adjust.
8344 (copy_phis): Rename to ...
8345 (copy_phi): ... this. Adjust.
8346 (copy_references): Rename to ...
8347 (copy_reference): ... this. Adjust.
8348 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
8349 result into the valid table.
8351 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8353 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
8354 insn-config.h, insn-codes.h, recog.h, and optabs.h.
8356 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8358 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
8360 2010-05-26 Richard Guenther <rguenther@suse.de>
8362 * opts.c (common_handle_option): Handle OPT_Ofast.
8364 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8366 * diagnostic.c: Don't include opts.h.
8367 (permissive_error_option): Define.
8368 (diagnostic_initialize): Take n_opts parameter. Allocate memory
8369 for classify_diagnostic. Don't use memset for
8370 classify_diagnostic. Initialize new and recently added fields.
8371 (diagnostic_classify_diagnostic): Use context->n_opts instead of
8373 (diagnostic_report_diagnostic): Pass context parameter to
8374 diagnostic_report_warnings_p. Use option_enabled and option_name
8376 (emit_diagnostic): Use permissive_error_option.
8377 (permerror): Likewise.
8378 * diagnostic.h: Don't include options.h.
8379 (struct diagnostic_context): Add n_opts, opt_permissive,
8380 inhibit_warnings, warn_system_headers, option_enabled and
8381 option_name fields. Change classify_diagnostic to a pointer.
8382 * opts-diagnostic.h: New file.
8383 * opts.c: Include opts-diagnostic.h.
8384 (common_handle_option): Set global_dc fields for -Wfatal-errors,
8385 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
8386 (option_name): New function.
8387 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
8388 (c_common_handle_option): Set global_dc->permissive for
8390 * c-common.c (c_cpp_error): Save and restore
8391 global_dc->warn_system_headers, not variable warn_system_headers.
8392 * toplev.c: Include opts-diagnostic.h.
8393 (general_init): Update call to diagnostic_initialize. Set
8394 global_dc->show_column, global_dc->option_enabled and
8395 global_dc->option_name.
8396 (process_options): Don't set global_dc fields here.
8397 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
8398 (diagnostic.o, opts.o, toplev.o): Update dependencies.
8400 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8402 * config/picochip/picochip.md (movsi): Split a movsi from a
8405 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8407 * ggc-zone.c: Update copyright year.
8408 (poison_region): Mark memory for Valgrind as undefined before
8409 memset () call and inaccessible afterwards.
8410 (ggc_pch_total_size): Change type of i to int.
8412 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8414 * ggc-common.c (ggc_free_overhead): Allow empty slot.
8416 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8418 * ggc-common.c: Update copyright year.
8419 (ggc_rlimit_bound): Remove prototype. Compile only if
8420 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
8421 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
8422 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
8423 (ggc_min_heapsize_heuristic): Likewise.
8425 2010-05-26 Richard Guenther <rguenther@suse.de>
8427 PR rtl-optimization/44164
8428 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
8429 no-common access-path disambiguation.
8430 (indirect_ref_may_alias_decl_p): Adjust.
8431 (indirect_refs_may_alias_p): Likewise.
8432 (refs_may_alias_p_1): Likewise.
8434 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8436 * c-typeck.c: Do not include expr.h.
8438 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8440 * rtl.h (decl_default_tls_model): Move prototype from here...
8441 * output.h: ...to here.
8442 * c-decl.c: Do not include rtl.h.
8443 * c-pragma.c: Likewise.
8444 * c-parser.c: Likewise.
8445 * c-gimplify.c: Likewise. And also not hard-reg-set.
8446 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
8447 FIXME note for it. Add a FIXME note for expr.h.
8448 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
8449 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
8452 2010-05-26 Jakub Jelinek <jakub@redhat.com>
8455 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
8456 or total_size is larger than red zone size for non-V4 ABI, emit a
8457 stack_tie resp. frame_tie insn before stack pointer restore.
8458 * config/rs6000/rs6000.md (frame_tie): New insn.
8460 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
8462 * function.h (struct function): Add can_throw_non_call_exceptions bit.
8463 * lto-streamer-in.c (input_function): Stream it in.
8464 * lto-streamer-out.c (output_function): Stream it out.
8465 * function.c (allocate_struct_function): Set it.
8466 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
8467 for flag_non_call_exceptions.
8468 * cfgbuild.c (control_flow_insn_p): Likewise.
8469 (make_edges): Likewise.
8470 * cfgexpand.c (expand_stack_alignment): Likewise.
8471 * combine.c (distribute_notes): Likewise.
8472 * cse.c (cse_extended_basic_block): Likewise.
8473 * except.c (insn_could_throw_p): Likewise.
8474 * gcse.c (simple_mem): Likewise.
8475 * ipa-pure-const.c (check_call): Likewise.
8476 (check_stmt ): Likewise.
8477 * lower-subreg.c (lower-subreg.c): Likewise.
8478 * optabs.c (emit_libcall_block): Likewise.
8479 (prepare_cmp_insn): Likewise.
8480 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
8481 * postreload.c (rest_of_handle_postreload): Likewise.
8482 * reload1.c (reload_as_needed): Likewise.
8483 (emit_input_reload_insns): Likewise.
8484 (emit_output_reload_insns): Likewise.
8485 (fixup_abnormal_edges): Likewise.
8486 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
8487 * store-motion.c (find_moveable_store): Likewise.
8488 * tree-eh.c (stmt_could_throw_p): Likewise.
8489 (tree_could_throw_p): Likewise.
8490 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8491 * config/arm/arm.c (arm_expand_prologue): Likewise.
8492 (thumb1_expand_prologue): Likewise.
8493 * config/rx/rx.md (cbranchsf4): Likewise.
8495 * config/s390/s390.c (s390_emit_prologue): Likewise.
8496 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
8497 (inline_forbidden_into_p): New predicate.
8498 (expand_call_inline): Use it to forbid inlining.
8499 (tree_can_inline_p): Likewise.
8501 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8503 * config/i386/i386-c.c: Do not include rtl.h.
8504 * config/i386/t-i386: Update dependencies.
8506 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8508 * attribs.c: Do not include rtl.h.
8509 * Makefile.in: Update dependencies.
8511 2010-05-25 Anatoly Sokolov <aesok@post.ru>
8513 * double-int.h (double_int_and): New.
8514 * combine.c (try_combine): Clean up, use double_int_* and
8515 immed_double_int_const functions.
8517 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8519 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
8520 stderr to /dev/null instead of grep -q.
8521 * configure: Regenerate.
8523 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8525 * Makefile.in (EXCEPT_H): Fix typo.
8527 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
8529 * ira-build.c (update_conflict_hard_reg_costs): New.
8530 (ira_build): Call update_conflict_hard_reg_costs.
8532 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8535 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
8537 (intersect_loc_chains): Walk the s2var's loc_chain together
8538 with s1node chain as long as the locations are equal, don't
8539 call find_loc_in_1pdv in that case.
8542 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
8543 (copy_bind_expr): ... instead of here.
8544 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
8545 if the block hasn't been remapped.
8546 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
8547 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
8549 2010-05-25 Richard Guenther <rguenther@suse.de>
8552 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
8553 out-of-bounds array accesses.
8555 2010-05-25 Richard Guenther <rguenther@suse.de>
8557 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
8558 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
8559 (run_gcc): Re-organize to make cleanup easier.
8561 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8563 * config/s390/s390.c (optimization_options): Fix and move the
8564 flag_prefetch_loop_arrays override ...
8565 (override_options): ... here.
8567 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8569 * diagnostic.c: Don't include plugin.h.
8570 (diagnostic_report_diagnostic): Don't handle plugins specially
8571 here. Pass context to internal_error callback.
8572 * diagnostic.h (struct diagnostic_context): Add context parameter
8573 to internal_error callback.
8574 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8575 * plugin.h (struct diagnostic_context): Declare.
8576 (warn_if_plugins, plugins_internal_error_function): Declare.
8577 * toplev.c (general_init): Set global_dc->internal_error.
8578 * Makefile.in (diagnostic.o): Update dependencies.
8580 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
8582 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8583 * config/rs6000/t-darwin64: New.
8584 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8587 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
8590 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8591 match the original (and intended) behaviour before r159557. This
8592 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8595 2010-05-25 Richard Guenther <rguenther@suse.de>
8597 * doc/invoke.texi: Document -Ofast.
8598 * target.h (struct gcc_target): Add handle_ofast.
8599 * target-def.h (TARGET_HANDLE_OFAST): Add.
8600 (TARGET_INITIALIZER): Adjust.
8601 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
8602 * common.opt (Ofast): Add.
8604 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8606 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8607 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8609 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8612 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
8613 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
8614 false_rtx. Use false_rtx to compute the correct *ptest for reversed
8615 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
8617 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8619 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
8620 DW_OP_minus with negated offset instead of DW_OP_plus.
8621 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
8623 2010-05-25 Wei Guozhi <carrot@google.com>
8625 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
8626 tst instruction and a new alternative.
8627 * config/arm/constraints.md (Pu): New constraint.
8629 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
8631 * function.c (assign_stack_local_1): Initialize variable
8632 to avoid warning when bootstrapping at -O3.
8634 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
8636 * configure.ac (all_lang_makefiles): Remove everything related to it.
8637 * configure: Regenerate.
8638 * Makefile.in: Fix reference to ada Make-lang.in.
8639 Remove support for LANG_MAKEFILES.
8641 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
8642 Sandra Loosemore <sandra@codesourcery.com>
8644 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
8645 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
8646 description. Add arm_neon_fp16_ok.
8647 (Add Options): Add arm_neon and arm_neon_fp16.
8649 2010-05-24 Joseph Myers <joseph@codesourcery.com>
8651 * diagnostic.c: Don't include flags.h.
8652 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
8653 context parameters. Check flags in the context passed as a parameter.
8654 (diagnostic_build_prefix): Add context parameter. Check
8655 show_column flag in context.
8656 (diagnostic_action_after_output): Check fatal_errors flag in context.
8657 (diagnostic_report_current_module): Check show_column flag in context.
8658 (default_diagnostic_starter): Update call to
8659 diagnostic_build_prefix.
8660 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
8661 (emit_diagnostic): Pass context to permissive_error_kind.
8662 (permerror): Pass context to permissive_error_kind.
8663 * diagnostic.h (struct diagnostic_context): Add show_column,
8664 pedantic_errors, permissive and fatal_errors fields.
8665 (diagnostic_build_prefix): Update prototype.
8667 * toplev.c (process_options): Set flags in global_dc from
8668 flag_show_column, flag_pedantic_errors, flag_permissive,
8670 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8671 to diagnostic_build_prefix.
8672 * Makefile.in (diagnostic.o): Update dependencies.
8674 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
8676 * config/i386/ia32intrin.h (__crc32q): Define only if
8677 __SSE4_2__ is defined.
8679 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
8683 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8684 DECL_VISIBILITY_SPECIFIED.
8685 (emutls_decl): Set DECL_PRESERVE_P and copy
8686 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8687 (emutls_finalize_control_var): New callback.
8688 (emutls_finish): Finalize emutls control variables.
8689 * toplev.c (compile_file): Move the call to emutls_finish ()
8690 before varpool_assemble_pending_decls ().
8692 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
8694 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8695 added to the preprocessor condition.
8697 2010-05-24 Paul Brook <paul@codesourcery.com>
8699 * gengtype-lex.l: Add HARD_REG_SET.
8700 * expr.c (expand_expr_real_1): Record writes to hard registers.
8701 * function.c (rtl_data): Add asm_clobbers.
8702 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8703 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8704 Use crtl->asm_clobbers.
8706 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8708 * doc/makefile.texi (Makefile): Mention stages 'profile'
8709 and 'feedback' for profiledbootstrap.
8711 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
8714 * config/i386/i386.c (def_builtin): Properly check
8715 OPTION_MASK_ISA_64BIT.
8717 2010-05-23 Joseph Myers <joseph@codesourcery.com>
8719 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8720 typedefs with different but compatible types. Allow duplicate
8721 typedefs with the same type except for pedantic non-C1X, but give
8722 warning for variably modified types.
8723 * c-typeck.c (tagged_types_tu_compatible_p,
8724 function_types_compatible_p, type_lists_compatible_p,
8725 comptypes_internal): Add parameter different_types_p; set
8726 *different_types_p for different but compatible types. All
8728 (comptypes_check_different_types): New.
8729 * c-tree.h (comptypes_check_different_types): Declare.
8731 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8733 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
8734 * jump.c: Include basic-block.h.
8735 * profile.c: Likewise.
8736 * tree-profile.c: Likewise.
8737 * coverage.c: Likewise.
8738 * basic-block.h (optimize_function_for_size_p): Move to function.h.
8739 (optimize_function_for_speed_p): Likewise.
8740 * function.h (optimize_function_for_size_p,
8741 optimize_function_for_speed_p): Moved here from basic-block.h.
8742 * Makefile.in: Update dependencies.
8744 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8746 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8747 before calling make; allow override through $MAKE.
8748 * doc/invoke.texi (Optimize Options): Document override.
8750 2010-05-23 Anatoly Sokolov <aesok@post.ru>
8752 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8753 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8754 (rs6000_mode_dependent_address_ptr): Make static.
8755 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8756 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8759 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
8762 * config/i386/i386.c: Make sure that the correct regparm is passed.
8764 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8766 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8767 * sbitmap.c: ...to here to internalize sbitmap element access.
8768 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8769 Explain why basic-block.h is included.
8770 * function.h: Include tm.h for CUMULATIVE_ARGS.
8771 * Makefile.in: Update dependencies.
8773 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8775 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8777 * sbitmap.h (struct sbitmap_def): Do not typedef here.
8778 * sbitmap.c: Include sbitmap.h.
8779 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8780 hard-reg-set.h. Split everything related to regsets out from here...
8781 * regset.h: ...to here. New file.
8782 * df.h: Include regset.h and sbitmap.h.
8783 * tree-flow.h: Likewise.
8784 * cfgloop.h: Likewise.
8785 * except.h: Do not include sbitmap.h. Include hashtab.h.
8786 * cgraph.h: Include vec.h and function.h.
8787 * reload.h (struct insn_chain): Change types of live_throughout
8788 and dead_or_set from regset_head to bitmap_head.
8789 (compute_use_by_pseudos): Be defined also if regset.h is not included.
8790 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8791 spilled_regs from regset_head to bitmap_head to avoid dependency
8793 * sel-sched-ir.h: Include regset.h.
8794 * reload.c: Include df.h before reload.h.
8795 * caller-save.c: Likewise.
8796 * reload1.c: Likewise.
8798 (mark_elimination): Update type of r to bitmap, consistent with
8800 * dominance.c: Include bitmap.h.
8801 * modulo-sched.c: Include df.h.
8802 * cfganal.c: Include bitmap.h and sbitmap.h.
8803 * cfgbuild.c: Include sbitmap.h.
8804 * lcm.c: Include sbitmap.h.
8805 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8806 * domwalk.c: Include sbitmap.h, exclude ggc.h.
8807 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8808 * cselib.c: Include bitmap.h.
8809 * tree-optimize.c: Include regset.h.
8810 * stmt.c: Include bitmap.h.
8811 * Makefile.in: Update dependencies.
8813 2010-05-22 Jan Hubicka <jh@suse.cz>
8815 * cgraph.h (struct varpool_node): Add same_comdat_group.
8816 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8818 (output_varpool): Update call of lto_output_varpool_node.
8819 (input_varpool): Read same_comdat_group pointer.
8820 (input_varpool_1): Fixup same_comdat_group pointer.
8821 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8822 group is needed, all are.
8823 * varpool.c (varpool_remove_node): Remove node from same comdat group
8825 (varpool_analyze_pending_decls): Walk same comdat groups.
8827 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8829 * rtl.h (union rtunion_def): Remove rt_bit member.
8830 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8831 * print-rtl (print_rtx): Do not print the member.
8832 * gengtype.c (adjust_field_rtx_def): Do not handle it.
8833 * gengenrtl.c (type_from_format): Likewise.
8834 (accessor_from_format): Likewise.
8836 2010-05-22 Joseph Myers <joseph@codesourcery.com>
8838 * dbgcnt.c: Include toplev.h instead of errors.h.
8839 * ira-emit.c: Don't include errors.h.
8840 * ira.c: Include toplev.h instead of errors.h.
8841 * lto-compress.c: Include toplev.h instead of errors.h.
8842 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8843 ira.o, dbgcnt.o): Update dependencies.
8845 2010-05-22 Richard Guenther <rguenther@suse.de>
8847 * gimple.c (gimple_types_compatible_p): Check type qualifications
8848 before merging pointer to complete and pointer to incomplete type.
8849 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8850 we use our own resolution algorithm. The gold linker plugin
8851 doesn't do the job we want it to do here.
8853 2010-05-22 Anatoly Sokolov <aesok@post.ru>
8855 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8856 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8857 (sparc_mode_dependent_address_p): New function.
8859 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8861 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8863 * timevar.c: Do not include any core headers.
8864 (timevar_print): De-i18n-ize.
8865 (print_time): Likewise.
8866 * timevar.h (timevar_push, timevar_pop): Make inline functions.
8868 2010-05-21 Joseph Myers <joseph@codesourcery.com>
8870 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8872 (diagnostic_initialize): Initialize x_data not last_function.
8873 (diagnostic_report_current_function): Move to tree-diagnostic.c.
8874 (default_diagnostic_starter): Call
8875 diagnostic_report_current_module not
8876 diagnostic_report_current_function.
8877 (diagnostic_report_diagnostic): Initialize x_data not
8879 (verbatim): Likewise.
8880 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8882 (struct diagnostic_context): Change last_function to x_data.
8883 (diagnostic_auxiliary_data): Replace with
8884 diagnostic_context_auxiliary_data and
8885 diagnostic_info_auxiliary_data.
8886 (diagnostic_last_function_changed, diagnostic_set_last_function,
8887 diagnostic_report_current_function): Move to tree-diagnostic.h.
8888 (print_declaration, dump_generic_node, print_generic_stmt,
8889 print_generic_stmt_indented, print_generic_expr,
8890 print_generic_decl, debug_c_tree, dump_omp_clauses,
8891 print_call_name, debug_generic_expr, debug_generic_stmt,
8892 debug_tree_chain, default_tree_printer): Move to
8893 tree-pretty-print.h.
8894 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8895 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8896 gimple-pretty-print.h.
8897 * pretty-print.c: Don't include tree.h
8898 (pp_base_format): Don't handle %K here.
8899 (pp_base_tree_identifier): Move to tree-pretty-print.c.
8900 * pretty-print.h (text_info): Change abstract_origin to x_data.
8901 (pp_tree_identifier, pp_unsupported_tree,
8902 pp_base_tree_identifier): Move to tree-pretty-print.h.
8903 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8904 tree-pretty-print.h: New files.
8905 * tree-pretty-print.c: Include tree-pretty-print.h.
8906 (percent_K_format): New. Moved from pretty-print.c.
8907 (pp_base_tree_identifier): Move from pretty-print.c.
8908 * c-objc-common.c: Include tree-pretty-print.h.
8909 (c_tree_printer): Handle %K here.
8910 * langhooks.c: Include tree-diagnostic.h.
8911 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8912 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8913 (default_tree_printer): Handle %K using percent_K_format.
8914 (general_init): Use default_tree_diagnostic_starter.
8915 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8916 (free_lang_data): Use default_tree_diagnostic_starter.
8917 * c-pretty-print.c: Include tree-pretty-print.h.
8918 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8919 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8920 * dwarf2out.c: Include tree-pretty-print.h.
8921 * except.c: Include tree-pretty-print.h.
8922 * gimple-pretty-print.c: Include tree-pretty-print.h and
8923 gimple-pretty-print.h.
8924 * gimplify.c: Include tree-pretty-print.h.
8925 * graphite-poly.c: Include tree-pretty-print.h and
8926 gimple-pretty-print.h.
8927 * ipa-cp.c: Include tree-pretty-print.h.
8928 * ipa-inline.c: Include gimple-pretty-print.h.
8929 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8930 * ipa-pure-const.c: Include gimple-pretty-print.h.
8931 * ipa-struct-reorg.c: Include tree-pretty-print.h and
8932 gimple-pretty-print.h.
8933 * ipa-type-escape.c: Include tree-pretty-print.h.
8934 * print-rtl.c: Include tree-pretty-print.h.
8935 * print-tree.c: Include gimple-pretty-print.h.
8936 * sese.c: Include tree-pretty-print.h.
8937 * tree-affine.c: Include tree-pretty-print.h.
8938 * tree-browser.c: Include tree-pretty-print.h.
8939 * tree-call-cdce.c: Include gimple-pretty-print.h.
8940 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8941 * tree-chrec.c: Include tree-pretty-print.h.
8942 * tree-data-ref.c: Include tree-pretty-print.h and
8943 gimple-pretty-print.h.
8944 * tree-dfa.c: Include tree-pretty-print.h.
8945 * tree-if-conv.c: Include tree-pretty-print.h and
8946 gimple-pretty-print.h.
8947 * tree-inline.c: Include tree-pretty-print.h.
8948 * tree-into-ssa.c: Include tree-pretty-print.h and
8949 gimple-pretty-print.h.
8950 * tree-nrv.c: Include tree-pretty-print.h.
8951 * tree-object-size.c: Include tree-pretty-print.h and
8952 gimple-pretty-print.h.
8953 * tree-outof-ssa.c: Include tree-pretty-print.h and
8954 gimple-pretty-print.h.
8955 * tree-parloops.c: Include tree-pretty-print.h and
8956 gimple-pretty-print.h.
8957 * tree-predcom.c: Include tree-pretty-print.h and
8958 gimple-pretty-print.h.
8959 * tree-scalar-evolution.c: Include tree-pretty-print.h and
8960 gimple-pretty-print.h.
8961 * tree-sra.c: Include tree-pretty-print.h.
8962 * tree-ssa-address.c: Include tree-pretty-print.h.
8963 * tree-ssa-alias.c: Include tree-pretty-print.h.
8964 * tree-ssa-ccp.c: Include tree-pretty-print.h and
8965 gimple-pretty-print.h.
8966 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8967 * tree-ssa-copy.c: Include tree-pretty-print.h and
8968 gimple-pretty-print.h.
8969 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8970 * tree-ssa-dce.c: Include tree-pretty-print.h and
8971 gimple-pretty-print.h.
8972 * tree-ssa-dom.c: Include tree-pretty-print.h and
8973 gimple-pretty-print.h.
8974 * tree-ssa-dse.c: Include gimple-pretty-print.h.
8975 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8976 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8977 * tree-ssa-live.c: Include tree-pretty-print.h and
8978 gimple-pretty-print.h.
8979 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8980 gimple-pretty-print.h.
8981 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8982 gimple-pretty-print.h.
8983 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8984 gimple-pretty-print.h.
8985 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
8986 gimple-pretty-print.h.
8987 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
8988 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
8989 * tree-ssa-operands.c: Include tree-pretty-print.h and
8990 gimple-pretty-print.h.
8991 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
8992 gimple-pretty-print.h.
8993 * tree-ssa-pre.c: Include tree-pretty-print.h and
8994 gimple-pretty-print.h.
8995 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
8996 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
8997 gimple-pretty-print.h.
8998 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
8999 gimple-pretty-print.h.
9000 * tree-ssa-sink.c: Include gimple-pretty-print.h.
9001 * tree-ssa-ter.c: Include tree-pretty-print.h and
9002 gimple-pretty-print.h.
9003 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9004 * tree-ssa.c: Include tree-pretty-print.h and
9005 gimple-pretty-print.h.
9006 * tree-stdarg.c: Include gimple-pretty-print.h.
9007 * tree-switch-conversion.c: Include gimple-pretty-print.h.
9008 * tree-tailcall.c: Include tree-pretty-print.h and
9009 gimple-pretty-print.h.
9010 * tree-vect-data-refs.c: Include tree-pretty-print.h and
9011 gimple-pretty-print.h.
9012 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9013 gimple-pretty-print.h.
9014 * tree-vect-loop.c: Include tree-pretty-print.h and
9015 gimple-pretty-print.h.
9016 * tree-vect-patterns.c: Include gimple-pretty-print.h.
9017 * tree-vect-slp.c: Include tree-pretty-print.h and
9018 gimple-pretty-print.h.
9019 * tree-vect-stmts.c: Include tree-pretty-print.h and
9020 gimple-pretty-print.h.
9021 * tree-vectorizer.c: Include tree-pretty-print.h.
9022 * tree-vrp.c: Include tree-pretty-print.h and
9023 gimple-pretty-print.h.
9024 * value-prof.c: Include tree-pretty-print.h and
9025 gimple-pretty-print.h.
9026 * var-tracking.c: Include tree-pretty-print.h.
9027 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9028 (tree-diagnostic.o): New dependencies.
9029 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9030 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9031 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9032 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9033 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9034 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9035 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9036 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9037 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9038 tree-ssa-address.o, tree-ssa-loop-niter.o,
9039 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9040 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9041 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9042 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9043 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9044 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9045 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9046 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9047 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9048 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9049 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9050 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9051 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9052 tree-switch-conversion.o, var-tracking.o, value-prof.o,
9053 cfgexpand.o, pretty-print.o): Update dependencies.
9055 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
9057 * tree-ssa-structalias.c: Remove tm_p.h from include.
9059 2010-05-21 Jeff Law <law@redhat.com>
9061 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9063 2010-05-21 Jason Merrill <jason@redhat.com>
9065 * tree-eh.c (cleanup_is_dead_in): New.
9066 (lower_try_finally): Don't generate a dead cleanup region.
9067 (lower_cleanup): Likewise.
9069 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9072 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9073 unchain each use from the cyclic next_regno_use chain first.
9075 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9077 * real: Do not include gmp.h, mpfr.h, and mpc.h.
9078 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9079 (real_value_negate, real_value_abs): New prototypes.
9080 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9081 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9082 new include file for interface between MPFR and REAL_VALUE_TYPE.
9083 * real.c: Include realmpfr.h.
9084 (real_arithmetic2): Remove legacy function.
9085 (real_value_negate): New.
9086 (real_value_abs): New.
9087 (mfpr_from_real, real_from_mpfr): Move from here...
9088 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9089 * builtins.c: Include realmpfr.h.
9090 * fold-const.c: Include realmpfr.h.
9091 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9092 (fold_negate_const): Likewise.
9093 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9094 * toplev.c: Include realmpfr.h.
9095 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9096 and real_value_negate.
9097 * fixed-value.c (check_real_for_fixed_mode): Likewise.
9098 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9099 (vfp3_const_double_index): Likewise.
9100 (arm_print_operand): Likewise.
9101 * Makefile.in: Update dependencies.
9103 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9105 * config/s390/s390.c (override_options): Increase the default
9106 of max-completely-peel-times.
9108 2010-05-21 Julian Brown <julian@codesourcery.com>
9109 Mark Mitchell <mark@codesourcery.com>
9111 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9112 sibling calls for Thumb-1.
9113 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9114 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9116 (*call_insn, *call_value_insn): Don't use for Thumb-2.
9117 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9119 (return): New expander.
9120 (*arm_return): New name for ARM return insn.
9121 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9123 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
9125 * config.gcc (sparc64-*-rtems*): New target.
9127 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9129 * tree.c (build_function_decl_skip_args): Fix grammar.
9130 (build_function_type_list_1): Fix typos, adjust formatting.
9132 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9134 * tree.h: Include real.h and fixed-value.h as basic datatypes.
9135 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9136 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9137 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9138 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9139 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9140 tree-pretty-print.c, tree-loop-distribution.c,
9141 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9142 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9143 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9144 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9145 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9146 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9147 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9148 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9149 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9150 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9151 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9152 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9153 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9154 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9155 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9156 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9157 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9158 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9159 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9160 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9161 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9162 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9163 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9164 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9165 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9166 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9167 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9168 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9169 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9170 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9171 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9172 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9173 config/score/score7.c, config/score/score.c, config/arm/arm.c,
9174 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9175 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9176 config/bfin/bfin.c: Clean up redundant includes.
9177 * Makefile.in: Update accordingly.
9179 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9182 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9183 statement has no arguments.
9185 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
9188 * varasm.c (emutls_decl): Merge attributes to new decl.
9190 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
9193 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9194 around the uniquized constructor if its type requires a conversion.
9196 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9199 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9200 at -O0 goto_locus of any of the incoming edges differs from
9201 goto_locus of outgoing edge, or gimple_location of any of the
9204 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
9206 * ira.c (ira_non_ordered_class_hard_regs): Define.
9207 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
9208 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
9209 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
9210 cost of unaligned hard regs when allocating multi-reg pseudos.
9212 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
9214 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
9215 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
9216 for TARGET_NO_FLOAT.
9217 * config/mips/mips.c (mips_file_start): Expand conditional expression
9218 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
9219 (mips_override_options): Move -mno-float override -msoft-float and
9221 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
9222 Condition(TARGET_SUPPORTS_NO_FLOAT).
9223 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
9224 __mips_no_float here.
9225 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
9226 (TARGET_SUPPORTS_NO_FLOAT): Define.
9227 * config/mips/sdemtk.opt: Delete.
9229 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
9231 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
9233 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
9236 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
9237 * configure: Regenerate.
9238 * config.in: Regenerate.
9239 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
9240 instead of sahf only for 64bit targets.
9242 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9245 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
9246 setup_ref_regs for DEBUG_INSNs.
9248 2010-05-20 Jan Hubicka <jh@suse.cz>
9251 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
9253 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9256 * df-scan.c (df_ref_compare): Stabilize sort.
9258 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9260 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
9261 argument. Don't use DW_OP_piece if offset is non-zero,
9262 put offset into second DW_OP_bit_piece argument.
9263 (dw_sra_loc_expr): Adjust callers. For memory expressions
9266 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
9269 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9270 settings for 16-bit-constant "addo" alternative.
9272 2010-05-19 James E. Wilson <wilson@codesourcery.com>
9274 * config/mips/mips-dsp.md (add<DSPV:mode>3,
9275 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9278 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
9279 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9282 2010-05-19 Joseph Myers <joseph@codesourcery.com>
9284 * diagnostic.c (FLOAT, FFS): Don't undefine.
9285 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9286 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9289 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
9291 * combine.c (propagate_for_debug): Call make_compound_operation
9292 on the source value.
9293 (try_combine): When implementing a split chosen by find_split_point,
9294 either copy i2src or set it to null. Assert that i2src is not null
9295 before substituting into CALL_INSN_FUNCTION_USAGE.
9297 2010-05-19 Anatoly Sokolov <aesok@post.ru>
9299 * double-int.h (double_int_ior): New function.
9300 * tree.h (build_int_cst_wide_type): Remove.
9301 * tree.c (build_int_cst_wide_type): Remove.
9302 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9303 of build_int_cst_wide_type.
9304 * stor-layout.c (set_sizetype): (Ditto.).
9305 * dojump.c (do_jump): Use build_int_cstu instead of
9306 build_int_cst_wide_type.
9308 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
9310 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9311 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9312 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9313 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9314 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
9315 propagate the 'data' argument to copy_tree_r.
9316 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9317 Propagate 'data' argument to walk_tree.
9318 (copy_if_shared): New function.
9319 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9320 (unmark_visited): New function.
9321 (unshare_body): Call copy_if_shared instead of doing it manually.
9322 (unvisit_body): Call unmark_visited instead of doing it manually.
9324 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
9326 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9327 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
9328 * hooks.c: Likewise.
9329 * target-def.h (TARGET_FOLD_BUILTIN): Define to
9330 hook_tree_tree_int_treep_bool_null.
9331 * target.h (struct gcc_target): Update signature of fold_builtin
9333 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9334 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9335 instead of the call expression.
9336 (fold_builtin_call_array): Pass n and argarray directly.
9337 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
9339 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
9340 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
9341 `i' and use it in place of `arity'.
9342 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
9343 Dereference `args' directly.
9344 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
9346 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9348 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9350 (Directives): Document optional dg-require-effective-target
9353 2010-05-19 Richard Guenther <rguenther@suse.de>
9356 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
9358 2010-05-19 Richard Guenther <rguenther@suse.de>
9360 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
9361 * common.opt (fwhopr=): New.
9362 * opts.c (common_handle_option): Handle OPT_fwhopr.
9363 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
9364 * collect2.c (main): Match -fwhopr*.
9365 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
9366 Execute ltrans stage in parallel when jobs is bigger than 1.
9368 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9370 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9371 pentiumpro on Solaris 8/x86 with Sun as.
9372 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
9374 (gcc_cv_as_ix86_quad): Check for .quad directive.
9375 * configure: Regenerate.
9376 * config.in: Regenerate.
9377 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
9379 2010-05-19 Martin Jambor <mjambor@suse.cz>
9381 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
9382 also for indirect edges. Actual printing moved...
9383 (ipa_print_node_jump_functions_for_edge): ...here.
9384 (ipa_compute_jump_functions): Renamed to
9385 ipa_compute_jump_functions_for_edge and made static.
9386 (ipa_compute_jump_functions): New function.
9387 (make_edge_direct_to_target): Check if the number of arguments on
9388 the newly direct edge is the same as the number of parametrs of
9390 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
9391 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
9392 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9393 analysis functions unconditionally, call the new
9394 ipa_analyze_params_uses on the node instead of every edge.
9396 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
9398 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
9400 (dump_mem_ref): Adopt debug code to handle a tree as step. This
9401 also checks for a constant int vs. non-constant but
9402 loop-invariant steps.
9403 (find_or_create_group): Change the sort algorithm to only consider
9404 steps that are constant ints.
9405 (idx_analyze_ref): Adopt code to handle a tree instead of a
9406 HOST_WIDE_INT for step.
9407 (gather_memory_references_ref): Handle tree instead of int and be
9408 prepared to see a NULL_TREE.
9409 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
9410 prefetches if the step cannot be calculated at compile time.
9411 (issue_prefetch_ref): Issue prefetches for non-constant but
9412 loop-invariant steps.
9414 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9417 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9419 * tree.h (build_call_list): Remove.
9420 * tree.c (build_call_list): Remove.
9422 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9424 * tree.h (build_call_list): Remove.
9425 * tree.c (build_call_list): Remove.
9427 2010-05-18 Jan Hubicka <jh@suse.cz>
9429 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
9431 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
9433 PR rtl-optimization/43332
9434 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
9436 2010-05-18 Anatoly Sokolov <aesok@post.ru>
9438 * tree.h (build_int_cstu): Implement as static inline.
9439 * tree.c (build_int_cstu): Remove function.
9440 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
9443 2010-05-18 Richard Guenther <rguenther@suse.de>
9446 * lto-wrapper.c (verbose): New variable. Initialize from -v.
9447 (debug): Initialize from -save-temps.
9448 (collect_execute): Print command-line when verbose.
9449 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
9450 for ltrans invocation. Produce -dumpbase flag again.
9451 (process_args): Remove.
9453 * collect2.c (maybe_run_lto_and_relink): Only pass object
9454 files to lto-wrapper.
9455 * gcc.c (LINK_COMMAND_SPEC): Likewise.
9457 2010-05-18 Jan Hubicka <jh@suse.cz>
9459 * opts.c (decode_options): Do not disable whopr at ipa_cp.
9460 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
9462 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
9465 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
9467 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
9470 2010-05-18 Jakub Jelinek <jakub@redhat.com>
9473 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
9476 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
9478 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
9479 lto-macho as lto_binary_reader.
9481 * darwin.c (darwin_asm_named_section): Do not add assembler comment
9482 after .section directive; just print it before the directive instead.
9484 2010-05-17 Jan Hubicka <jh@suse.cz>
9486 * cgraph.c (cgraph_create_virtual_clone): Only check
9487 versionable_function_p when not in wpa and checking is enabled.
9488 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
9489 there are no more functions to materialize.
9491 2010-05-17 Jan Hubicka <jh@suse.cz>
9493 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
9494 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
9496 (output_cgraph): Call output_cgraph_opt_summary.
9497 (input_cgrpah): Call input_cgraph_opt_summary.
9498 (output_cgraph_opt_summary_p, output_node_opt_summary,
9499 input_node_opt_summary, input_cgraph_opt_section): New functions.
9500 * lto-section-in.c (lto_section_name): Add cgraphopt.
9501 * tree-inline.c (tree_function_versioning): Handle parm_num.
9502 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
9503 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
9505 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
9507 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
9508 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
9509 the insn to prefetch ratio heuristic to loops with known trip count.
9511 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
9513 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
9514 (schedule_prefetches): Do not generate a prefetch if the unroll factor
9515 is far from what is required by the prefetch.
9517 2010-05-17 Jan Hubicka <jh@suse.cz>
9519 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
9520 (ipcp_estimate_growth): Likewise.
9521 (ipcp_const_param_count): Likewise.
9522 (ipcp_insert_stage): Likewise.
9523 * ipa-prop.c (visit_load_for_mod_analysis): New function.
9524 (visit_store_addr_for_mod_analysis): Set used flag.
9525 (ipa_detect_param_modifications): Set used flag for SSE params;
9526 update use of walk_stmt_load_store_addr_ops.
9527 (ipa_print_node_params): Print used flag.
9528 (ipa_write_node_info): Stream used flag.
9529 (ipa_read_node_info): Likewise.
9530 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
9531 (ipa_is_param_used): New function.
9532 (lto_ipa_fixup_call_notes): Remove unused declaration.
9534 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9537 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
9538 * configure: Regenerate.
9539 * config.in: Regenerate.
9540 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
9541 !HAVE_AS_IX86_REP_LOCK_PREFIX.
9542 Don't emit whitespace.
9543 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
9544 (*rep_movsi): Likewise.
9545 (*rep_movsi_rex64): Likewise.
9546 (*rep_movqi): Likewise.
9547 (*rep_movqi_rex64): Likewise.
9548 (*rep_stosdi_rex64): Likewise.
9549 (*rep_stossi): Likewise.
9550 (*rep_stossi_rex64): Likewise.
9551 (*rep_stosqi): Likewise.
9552 (*rep_stosqi_rex64): Likewise.
9553 (*cmpstrnqi_nz_1): Use {%;} after repz.
9554 (*cmpstrnqi_nz_rex_1): Likewise.
9555 (*cmpstrnqi_1): Likewise.
9556 (*cmpstrnqi_rex_1): Likewise.
9557 (*strlenqi_1): Use {%;} after repnz.
9558 (*strlenqi_rex_1): Likewise.
9559 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
9560 (*sync_compare_and_swap<mode>): Likewise.
9561 (sync_double_compare_and_swap<mode>): Likewise.
9562 (*sync_double_compare_and_swapdi_pic): Likewise.
9563 (sync_old_add<mode>): Likewise.
9564 (sync_add<mode>): Likewise.
9565 (sync_sub<mode>): Likewise.
9566 (sync_<code><mode>): Likewise.
9568 2010-05-17 Martin Jambor <mjambor@suse.cz>
9570 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9571 otr_token and polymorphic.
9572 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9573 (cgraph_clone_edge): Copy the above fields.
9574 * tree.c (get_binfo_at_offset): New function.
9575 * tree.h (get_binfo_at_offset): Declare.
9576 * ipa-prop.h (enum jump_func_type): Added known_type jump function
9577 type, reordered items, updated comments.
9578 (union jump_func_value): Added base_type field, reordered fields.
9579 (enum ipa_lattice_type): Moved down in the file.
9580 (struct ipa_param_descriptor): New field polymorphic.
9581 (ipa_is_param_polymorphic): New function.
9582 * ipa-prop.c: Include gimple.h and gimple-fold.h.
9583 (ipa_print_node_jump_functions): Print known type jump functions.
9584 (compute_complex_pass_through): Renamed to...
9585 (compute_complex_assign_jump_func): this.
9586 (compute_complex_ancestor_jump_func): New function.
9587 (compute_known_type_jump_func): Likewise.
9588 (compute_scalar_jump_functions): Create known type and complex ancestor
9590 (ipa_note_param_call): New parameter polymorphic, set the corresponding
9591 flag in the call note accordingly.
9592 (ipa_analyze_call_uses): Renamed to...
9593 (ipa_analyze_indirect_call_uses): this. New parameter target, define
9594 variable var only in the block where it is used.
9595 (ipa_analyze_virtual_call_uses): New function.
9596 (ipa_analyze_call_uses): Likewise.
9597 (combine_known_type_and_ancestor_jfs): Likewise.
9598 (update_jump_functions_after_inlining): Implemented handling of a
9599 number of new jump function types combination.
9600 (print_edge_addition_message): Removed.
9601 (make_edge_direct_to_target): New function.
9602 (try_make_edge_direct_simple_call): Likewise.
9603 (try_make_edge_direct_virtual_call): Likewise.
9604 (update_call_notes_after_inlining): Renamed to...
9605 (update_indirect_edges_after_inlining): this. Moved edge creation for
9606 indirect calls to try_make_edge_direct_simple_call, also calls
9607 try_make_edge_direct_virtual_call for virtual calls.
9608 (ipa_print_node_params): Changed the header message.
9609 (ipa_write_jump_function): Stream also known type jump functions.
9610 (ipa_read_jump_function): Likewise.
9611 (ipa_write_indirect_edge_info): Stream new fields in
9612 cgraph_indirect_call_info.
9613 (ipa_read_indirect_edge_info): Likewise.
9614 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
9617 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9619 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
9621 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9623 * tree.h (CALL_EXPR_ARGS): Delete.
9624 (call_expr_arglist): Delete.
9625 * tree.c (call_expr_arglist): Delete.
9626 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
9627 targetm.fold_builtin.
9628 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
9629 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
9630 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
9631 arglist parameter. Use CALL_EXPR_ARG.
9632 (picochip_expand_builtin_3op): Likewise.
9633 (picochip_expand_builtin_2opvoid): Likewise.
9634 (picochip_expand_array_get): Likewise.
9635 (picochip_expand_array_put): Likewise.
9636 (picochip_expand_array_testport): Likewise.
9637 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
9638 rather than arglist.
9639 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
9641 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
9642 than TREE_VALUE and TREE_CHAIN.
9643 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9644 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
9647 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9650 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
9651 to have no fallthru edge.
9654 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
9655 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
9656 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
9657 add BARRIER after previous bb if needed.
9659 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9661 * tree.c (build_function_type_list_1): Remove bogus assert condition.
9663 2010-05-17 Alan Modra <amodra@gmail.com>
9665 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
9666 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
9667 with copy_reg rtx param.
9668 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9669 Correct cases where code for ABI_V4 did not initialise the reg
9670 used to access frame. Also leave frame_reg_rtx as sp for large
9671 frames that save no regs.
9673 2010-05-17 Martin Jambor <mjambor@suse.cz>
9676 * tree-sra.c (create_access_replacement): New parameter rename, mark
9677 the replaement for renaming only when it is true.
9678 (get_access_replacement): Pass true in the rename parameter of
9679 create_access_replacement.
9680 (get_unrenamed_access_replacement): New function.
9681 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9682 replacement declaration from it.
9684 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
9686 * function.c (try_fit_stack_local, add_frame_space): New static
9688 (assign_stack_local_1): Use them. Look for opportunities to use
9689 space previously wasted on alignment.
9690 * function.h (struct frame_space): New.
9691 (struct rtl_data): Add FRAME_SPACE_LIST member.
9692 * reload1.c (something_was_spilled): New static variable.
9693 (alter_reg): Set it.
9694 (reload): Test it in addition to testing if the frame size changed.
9696 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
9698 * config/s390/s390.c: Define sane prefetch settings and activate
9699 flag_prefetch_loop_arrays on -O3.
9700 * config/s390/s390.h: Declare that read can use write prefetch.
9702 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9704 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9707 2010-05-16 Jan Hubicka <jh@suse.cz>
9709 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9710 function body; do not check stdarg field of struct function.
9712 2010-05-16 Jan Hubicka <jh@suse.cz>
9714 * cgraph.c (dump_cgraph_node): Dump versionable flag.
9715 * cgraph.h (cgraph_local_info): Add versionable flag.
9716 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9717 (ipcp_versionable_function_p): Use it.
9718 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9721 2010-05-16 Jan Hubicka <jh@suse.cz>
9723 * cgraph.c (cgraph_clone_node): Take decl argument and insert
9724 clone into hash when it is different from orig.
9725 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9726 * cgraph.h (cgraph_clone_node): Update prototype.
9727 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9728 (lto_cgraph_encoder_delete): Delete body map.
9729 (lto_cgraph_encoder_size): Move to header.
9730 (lto_cgraph_encoder_encode_body_p,
9731 lto_set_cgraph_encoder_encode_body): New.
9732 (lto_output_node): Do not take written_decls argument; output clone_of
9734 (add_node_to): Add include_body_argument; call
9735 lto_set_cgraph_encoder_encode_body on master of the clone.
9736 (add_references): Update use of add_node_to.
9737 (compute_ltrans_boundary): Likewise.
9738 (output_cgraph): Do not create written_decls bitmap.
9739 (input_node): Take nodes argument; stream in clone_of correctly.
9740 (input_cgraph_1): Update use of input_node.
9741 * lto-streamer-out.c (lto_output): Use encoder info to decide
9742 what bodies to output.
9743 * ipa-inline.c (cgraph_clone_inlined_nodes,
9744 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9745 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9746 (lto_cgraph_encoder_size): Define here.
9747 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9750 2010-05-16 Richard Guenther <rguenther@suse.de>
9752 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9754 * ipa-type-escape.c (gate_type_escape_vars): Run when
9755 -fipa-struct-reorg runs.
9756 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9757 * common.opt (fipa-type-escape): Remove.
9759 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9761 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9762 (decode_options): Likewise.
9763 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9765 2010-05-16 Jan Hubicka <jh@suse.cz>
9767 * ipa.c (function_and_variable_visibility): Also bring local all
9770 2010-05-16 Richard Guenther <rguenther@suse.de>
9772 * alias.c (nonoverlapping_memrefs_p): Remove use of
9773 IPA type-escape information.
9775 2010-05-16 Joseph Myers <joseph@codesourcery.com>
9777 * c-common.c (c_common_reswords): Add _Static_assert for C.
9778 * c-parser.c (c_token_starts_declaration,
9779 c_parser_next_token_starts_declaration,
9780 c_parser_static_assert_declaration_no_semi,
9781 c_parser_static_assert_declaration): New.
9782 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9783 Handle static assertions if static_assert_ok.
9784 (c_parser_external_declaration, c_parser_declaration_or_fndef,
9785 c_parser_compound_statement_nostart, c_parser_label,
9786 c_parser_for_statement, c_parser_objc_methodprotolist,
9787 c_parser_omp_for_loop): All callers of
9788 c_parser_declaration_or_fndef changed.
9789 (c_parser_struct_declaration): Handle static assertions.
9790 (c_parser_compound_statement_nostart): Use
9791 c_parser_next_token_starts_declaration and
9792 c_token_starts_declaration to detect start of declarations.
9793 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9796 2010-05-16 Anatoly Sokolov <aesok@post.ru>
9798 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9799 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9800 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9801 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9802 (mmix_function_outgoing_value): Rename to...
9803 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9804 (mmix_function_value_regno_p): Make static.
9805 (mmix_libcall_value): New function.
9806 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9807 mmix_function_value_regno_p): Remove declaration.
9809 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9811 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9812 BUILT_IN_ALLOCA if stack checking is enabled.
9814 2010-05-16 Richard Guenther <rguenther@suse.de>
9816 * var-tracking.c (vars_copy_1): Inline ...
9817 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
9818 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
9819 (variable_merge_over_cur): Adjust. Merge asserts.
9820 (variable_merge_over_src): Likewise.
9821 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9822 (variable_post_merge_new_vals): Merge asserts.
9823 (variable_post_merge_perm_vals): Likewise.
9824 (find_mem_expr_in_1pdv): Likewise.
9825 (dataflow_set_different_value): Remove.
9826 (onepart_variable_different_p): Merge asserts.
9827 (variable_different_p): Likewise.
9828 (dataflow_set_different_1): Inline ...
9829 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
9830 (emit_notes_for_differences_1): Merge asserts.
9832 2010-05-16 Richard Guenther <rguenther@suse.de>
9834 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9835 * optabs.c (libfunc_decl_hash): Likewise.
9836 * varasm.c (emutls_decl): Likewise.
9838 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
9840 * c-decl.c: Don't include gimple.h.
9841 (merge_decls): Do not copy gimple_body.
9843 2010-05-15 Jason Merrill <jason@redhat.com>
9845 * c.opt: Add -fnothrow-opt.
9847 2010-05-15 Jan Hubicka <jh@suse.cz>
9849 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9851 * passes.c (ipa_write_summaries): Write all analyzed nodes.
9853 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
9855 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9856 * Makefile.in: Add it.
9857 Fix all other Makefile dependencies for changes below.
9858 * tree.h: Include it instead of defining VEC primitives here.
9859 * gimple.h: Likewise.
9861 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9862 * except.h: Include vecir.h, break dependence on tree.h.
9864 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9866 * tree-iterator.c: ...to here.
9867 * tree-iterator.h: Fix file introduction comment. Add extern markers.
9869 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
9871 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9872 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9873 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9874 tree-mudflap.h, and target.h.
9875 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9876 predict.h, tree-inline.h, gimple.h, and langhooks.h.
9877 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9878 Add FIXME for why gimple.h is still included (should be unnecessary
9879 since GCC 4.5 gimplification unit-at-a-time).
9880 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9881 * c-pragma.c: Add FIXME for why function.h needs to be included just
9882 for cfun, at front-end level.
9883 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9884 Do not include ggc.h, but include vecprim.h for VEC(char).
9885 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9886 Explain why target.h is included.
9887 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9888 Explain why gimple.h is included.
9889 * c-ppoutput.c: Do not include tm.h.
9890 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
9891 * c-parses.c: Explain why rtl.h is included, and that this (and only
9892 this) is also why tm.h must be included.
9893 Do not include except.h.
9894 * c-lang.c: Do not include ggc.h.
9896 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
9898 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9900 2010-05-15 Joseph Myers <joseph@codesourcery.com>
9902 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9903 unions by default if those structs and unions have no tags. Do
9904 not condition anonymous struct and unions handling on flag_iso.
9905 Allow anonymous structs and unions for C1X.
9906 (finish_struct): Do not diagnose lack of named fields when
9907 anonymous structs and unions present for C1X. Accept flexible
9908 array members in structure with anonymous structs or unions but no
9909 directly named fields.
9910 * doc/extend.texi (Unnamed Fields): Update.
9912 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
9914 * gimple.h (compare_field_offset): Rename into...
9915 (gimple_compare_field_offset): ...this.
9916 * gimple.c (compare_field_offset): Rename into...
9917 (gimple_compare_field_offset): ...this. Compare the full access if
9918 the offset is self-referential.
9919 (gimple_types_compatible_p): Adjust for above renaming.
9920 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
9921 DECL_NONADDRESSABLE_P flag of fields before merging them.
9923 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
9925 * tree.h (ctor_to_list): Delete.
9926 * tree.c (ctor_to_list): Delete.
9928 2010-05-15 Jan Hubicka <jh@suse.cz>
9930 * ipa-reference.c: Include toplev.h
9931 (is_proper_for_analysis): Only add to all_module_statics
9933 (write_node_summary_p, stream_out_bitmap,
9934 ipa_reference_write_optimization_summary,
9935 ipa_reference_read_optimization_summary): New.
9936 (struct ipa_opt_pass_d pass_ipa_reference): Add
9937 optimization summary streaming.
9938 * lto-cgraph.c (referenced_from_this_partition_p,
9939 reachable_from_this_partition_p): New functions.
9940 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9941 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9942 * opts.c (decode_options): Enable ipa_reference.
9943 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9944 * lto-streamer.h (referenced_from_this_partition_p,
9945 reachable_from_this_partition_p): Declare.
9947 2010-05-15 Richard Guenther <rguenther@suse.de>
9949 PR tree-optimization/44038
9950 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9951 taking the address of a V_C_E of a constant.
9953 2010-05-14 Jan Hubicka <jh@suse.cz>
9955 * tree.h (memory_identifier_string): Remove.
9956 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9957 (ipa_reference_global_vars_info_d): Remove statics_not_read and
9958 statics_not_written.
9959 (ipa_reference_optimization_summary_d): New structure.
9960 (ipa_reference_optimization_summary_t): New type and vector.
9961 (ipa_reference_vars_info_d): Embedd structures instead of using
9963 (reference_vars_to_consider): Remove out of GGC space.
9964 (module_statics_escape): Remove.
9965 (global_info_obstack): Rename to ...
9966 (optimization_summary_obstack): ... this one.
9967 (initialization_status_t): Remove.
9968 (memory_identifier_string): Remove.
9969 (get_reference_vars_info): Fix indenting.
9970 (set_reference_vars_info): Likewise.
9971 (get_reference_optimization_summary): New.
9972 (set_reference_optimization_summary): New.
9973 (get_global_reference_vars_info): Remove.
9974 (ipa_reference_get_read_global): Remove.
9975 (ipa_reference_get_written_global): Remove.
9976 (ipa_reference_get_not_read_global): Update.
9977 (ipa_reference_get_not_written_global): Update.
9978 (is_proper_for_analysis): Outlaw addressable.
9979 (propagate_bits): Update for new datastructures.
9980 (analyze_variable): Remove.
9981 (init_function_info): Update for new datastructures.
9982 (clean_function_local_data): Remove.
9983 (clean_function): Remove.
9984 (copy_global_bitmap): Use optimizations_summary_obstack.
9985 (duplicate_node_data): Duplicate optimization summary only.
9986 (remove_node_data): Remove optimization summary only.
9987 (generate_summary): Do not analyze variables; do not compute
9988 module_statics_escape; do not prune solutions by it.
9989 (read_write_all_from_decl): Fix typos in comments.
9990 (propagate): Doscover readonly and nonaddressable first;
9991 update for new datastructures; share global bitmaps.
9992 * ipa-reference.h (ipa_reference_get_read_global,
9993 ipa_reference_get_written_global): Remove.
9994 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
9995 * Makefile.in: Remove ipa-refereference from GT files.
9997 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10000 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10001 for all SYMBOL_REF_DECLs.
10003 2010-05-14 Jan Hubicka <jh@suse.cz>
10005 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10006 (varpool_all_refs_explicit_p): New inline function.
10007 * ipa-reference.c: Update comment.
10008 (module_statics_written): Remove.
10009 (get_static_decl): Remove.
10010 (ipa_init): Do not initialize module_statics_written.
10011 (analyze_function): Likewise.
10012 (generate_summary): Likewise; do not compute module_statics_readonly
10013 and do not update variable flags.
10014 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10015 * ipa.c: Inlucde flags.h
10016 (cgraph_local_node_p): New.
10017 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10018 promote functions to local.
10019 (ipa_discover_readonly_nonaddressable_vars): New function.
10020 (function_and_variable_visibility): Use cgraph_local_node_p.
10021 * varpool.c (varpool_finalize_decl): Set force_output for
10022 DECL_PRESERVE_P vars.
10024 2010-05-14 Jan Hubicka <jh@suse.cz>
10026 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10028 2010-05-14 Richard Guenther <rguenther@suse.de>
10030 PR tree-optimization/44119
10031 * tree-ssa-pre.c (eliminate): Properly mark replacement of
10032 a PHI node necessary.
10034 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
10036 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10038 2010-05-14 Jason Merrill <jason@redhat.com>
10041 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10042 (gimple_call_set_nothrow): New.
10043 * gimple.c (gimple_build_call_from_tree): Call it.
10044 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10047 * gimplify.c (gimplify_seq_add_stmt): No longer static.
10048 * gimple.h: Declare it.
10049 * gimple.c (gimple_build_eh_filter): No ops.
10051 2010-05-14 Jan Hubicka <jh@suse.cz>
10053 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10054 nodes already in queue.
10055 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10056 re-enqueueing node.
10058 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10061 * cfgexpand.c (expand_debug_expr): If non-memory op0
10062 has BLKmode, return NULL.
10064 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
10066 * config.gcc: Add support for --with-cpu option for bdver1.
10067 * config/i386/i386.h (TARGET_BDVER1): New macro.
10068 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10069 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10070 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10071 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10072 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10073 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10074 (processor_type): Add PROCESSOR_BDVER1.
10075 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10076 processor_type in config/i386/i386.h.
10077 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10078 movaps <reg, reg> instead of movapd <reg, reg> when replacing
10079 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10080 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10081 to emit packed xor instead of packed double/packed integer
10082 xor for SSE and AVX when moving a zero value.
10083 * config/i386/sse.md: Add check for
10084 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10085 movapd/movdqa for SSE and AVX.
10086 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10087 single logical operations i.e and, or and xor instead of packed double
10088 logical operations for SSE and AVX.
10089 * config/i386/i386-c.c (ix86_target_macros_internal):
10090 Add PROCESSOR_BDVER1.
10091 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10092 (has_fma4, has_xop): New.
10093 * config/i386/i386.c (bdver1_cost): New variable.
10094 (m_BDVER1): New macro.
10095 (m_AMD_MULTIPLE): Add m_BDVER1.
10096 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10097 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10098 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10099 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10100 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10101 x86_tune_sse_partial_reg_dependency,
10102 x86_tune_sse_unaligned_load_optimal,
10103 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10104 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10105 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10106 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10107 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10108 Enable/disable for bdver1.
10109 (processor_target_table): Add bdver1_cost.
10110 (cpu_names): Add bdver1.
10111 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10112 processor_alias_table.
10113 (ix86_expand_vector_move_misalign): Change.
10114 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10115 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10116 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10117 of movupd/movdqu for SSE and AVX.
10118 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10119 (ix86_tune_adjust_cost): Add code for bdver1.
10120 (standard_sse_constant_opcode): Add check for
10121 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10122 of packed double xor for SSE and AVX.
10124 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
10126 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10127 result to unsigned.
10129 2010-05-14 Tristan Gingold <gingold@adacore.com>
10131 * toplev.c (default_debug_hooks): Remove this variable.
10132 (process_options): Remove assignments to default_debug_hooks.
10134 2010-05-14 Martin Jambor <mjambor@suse.cz>
10136 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10137 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10138 * langhooks.h (struct lang_hooks_for_decls): Removed field
10140 * tree.c (free_lang_data): Remove assignment to
10141 lang_hooks.fold_obj_type_ref.
10142 * tree.def (OBJ_TYPE_REF): Update comment.
10144 2010-05-14 Richard Guenther <rguenther@suse.de>
10146 PR tree-optimization/44124
10147 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10149 2010-05-14 Alan Modra <amodra@gmail.com>
10152 * config/rs6000/rs6000.c (struct machine_function): Reorder
10153 fields for better packing. Add lr_save_state.
10154 (rs6000_ra_ever_killed): Return lr_save_state if set.
10155 (rs6000_emit_eh_reg_restore): Set lr_save_state.
10157 2010-05-13 Jan Hubicka <jh@suse.cz>
10159 * varpool.c (decide_is_variable_needed): Drop code checking
10160 TREE_SYMBOL_REFERENCED.
10162 2010-05-13 Jan Hubicka <jh@suse.cz>
10164 * final.c (output_addr_const): Do not call mark_decl_referenced.
10165 * cgraphunit.c (process_function_and_variable_attributes): Use
10166 mark_needed_node dirrectly.
10167 (assemble_thunk): Do not call mark_decl_referenced.
10169 2010-05-13 Anatoly Sokolov <aesok@post.ru>
10171 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10173 2010-05-13 Jeff Law <law@redhat.com>
10175 * ira-conflicts.c (print_allocno_conflicts): New function broken out
10177 (print_conflicts): Call print_allocno_conflicts.
10179 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10182 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10185 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
10187 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10188 t-mingw-w64 or t-mingw-w32 for multilib configuration.
10189 * config/i386/t-mingw-w32: New.
10190 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10192 2010-05-13 Martin Jambor <mjambor@suse.cz>
10194 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10196 * gimple-fold.c (get_base_binfo_for_type): New function.
10197 (gimple_get_relevant_ref_binfo): Likewise.
10198 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10199 (gimple_fold_obj_type_ref): Likewise.
10200 (fold_gimple_call): Simplify condition for folding virtual calls
10201 and call gimple_fold_obj_type_ref.
10202 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
10203 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10205 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
10207 * config/rs6000/rs6000-protos.h
10208 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
10209 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
10210 (rs6000_debug_mode_dependent_address)
10211 (rs6000_mode_dependent_address_ptr): Likewise.
10213 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10216 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
10218 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
10219 * tree-sra.c (create_access_replacement): Call unshare_expr before
10220 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
10221 * dwarf2out.c: Include tree-flow.h.
10222 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
10223 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10224 Handle DW_OP_bit_piece.
10225 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
10226 construct_piece_list, adjust_piece_list): New functions.
10227 (add_var_loc_to_decl): Handle SRA optimized variables.
10228 Adjust for var_loc_note to loc field renaming.
10229 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
10230 in VAR_LOCATION note.
10231 (new_loc_descr_op_bit_piece): New function.
10232 (dw_sra_loc_expr): New function.
10233 (dw_loc_list): Use it. Don't handle the last range after the
10234 loop, handle it inside of the loop. Adjust for var_loc_note
10235 to loc field renaming.
10236 (add_location_or_const_value_attribute): Only special case
10237 single entry loc lists if loc is NOTE_P. Adjust for
10238 var_loc_note to loc field renaming.
10239 (dwarf2out_var_location): Don't set newloc->var_loc_note
10240 and newloc->next here.
10242 2010-05-12 Jan Hubicka <jh@suse.cz>
10244 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
10246 * cgraph.h (cgraph_only_called_directly_p,
10247 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
10248 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
10249 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
10251 * ipa.c (cgraph_remove_unreachable_nodes): Use
10252 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
10254 * tree-inline.c (copy_bb): Check address_taken flag.
10255 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
10256 externally_visible flag.
10258 2010-05-12 Jason Merrill <jason@redhat.com>
10262 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
10263 * sdbout.c (plain_type_1): Likewise.
10264 * dwarf2out.c (is_base_type): Likewise.
10265 (gen_type_die_with_usage): Likewise. Generate
10266 DW_TAG_unspecified_type for any LANG_TYPE.
10268 2010-05-12 Jan Hubicka <jh@suse.cz>
10270 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10272 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10273 (cgraph_clone_edge): Update.
10274 (cgraph_node_remove_callees): Remove indirect calls too.
10275 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10276 (cgraph_create_indirect_edge): Update prototype.
10277 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10278 is_proper_for_analysis.
10279 (add_new_function, visited_nodes, function_insertion_hook_holder,
10280 get_local_reference_vars_info, mark_address_taken, mark_address,
10281 mark_load, mark_store, check_asm_memory_clobber, check_call,
10282 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10283 (ipa_init): Do not initialize visited_nodes;
10284 function_insertion_hook_holder.
10285 (analyze_variable): Rewrite.
10286 (analyze_function): Rewrite.
10287 (copy_local_bitmap): Remove.
10288 (duplicate_node_dat): Do not duplicate local info.
10289 (generate_summary): Simplify to only walk cgraph.
10290 (write_node_summary_p, ipa_reference_write_summary,
10291 ipa_reference_read_summary): Remove.
10292 (propagate): Do not remove function insertion;
10294 (pass_ipa_reference): NULLify summary handling fields.
10295 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10296 (input_edge): Input ecf_flags.
10297 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10298 (update_indirect_edges_after_inlining): Ignore edges with unknown
10301 2010-05-12 Sriraman Tallam <tmsriram@google.com>
10303 * implicit-zee.c: New file.
10304 * tree-pass.h (pass_implicit_zee): Declare.
10305 * passes.c (init_optimization_passes): Add zee pass.
10306 * common.opt (fzee): New flag.
10307 * timevar.def (TV_ZEE): Define.
10308 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10310 * Makefile.in (implicit-zee.o): Add new build file.
10312 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10313 Nathan Froyd <froydnj@codesourcery.com>
10315 * c-common.c (sync_resolve_params): Remove write-only variable.
10317 2010-05-12 Anatoly Sokolov <aesok@post.ru>
10319 * target.h (struct gcc_target): Add mode_dependent_address_p field.
10320 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10321 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10322 * targhooks.c (default_mode_dependent_address_p): New function.
10323 * targhooks.h (default_mode_dependent_address_p): Declare function.
10324 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10325 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10326 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10327 target hook. Change return type to bool.
10328 * recog.h (mode_dependent_address_p): Change return type to bool.
10330 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10331 Nathan Froyd <froydnj@codesourcery.com>
10333 * tree-mudflap.c (build_function_type_0, build_function_type_1,
10334 build_function_type_2, build_function_type_3): Remove.
10335 (mudflap_init): Use build_function_type_list.
10337 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10338 Nathan Froyd <froydnj@codesourcery.com>
10340 * coverage.c (build_fn_info_value): Call build_constructor instead of
10341 build_constructor_from_list.
10342 (build_ctr_info_value): Likewise.
10343 (build_gcov_info): Likewise.
10345 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
10347 * tree.c (build_constructor): Compute TREE_CONSTANT for the
10348 resultant constructor.
10349 (build_constructor_single): Don't set TREE_CONSTANT.
10350 (build_constructor_from_list): Don't compute TREE_CONSTANT.
10352 2010-05-12 Jan Hubicka <jh@suse.cz>
10354 * cgraph.h (struct varpool_node): Add aux.
10355 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
10356 * varpool.c (varpool_remove_node): Do not remove initializer.
10357 (varpool_reset_queue): Export.
10358 (varpool_finalize_decl): Volatile vars are forced to be output.
10359 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
10361 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
10362 process_references, varpool_can_remove_if_no_refs): New functions.
10363 (cgraph_remove_unreachable_nodes): Handle variables too.
10365 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
10368 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
10370 2010-05-12 Jakub Jelinek <jakub@redhat.com>
10372 PR middle-end/44085
10373 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
10374 change value of ORT_TASK.
10375 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
10376 (omp_notice_threadprivate_variable): New function.
10377 (omp_notice_variable): Call it for threadprivate variables.
10378 If enclosing ctx is a task, print enclosing task rather than
10379 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
10380 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
10381 if task has untied clause.
10384 * dwarf2out.c (base_type_die): Don't add name attribute here.
10385 (modified_type_die): Instead of sizetype use
10386 its underlying original type. If a DW_TAG_base_type doesn't
10387 have name added, add __unknown__.
10388 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
10389 always call force_type_die instead.
10391 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
10393 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
10394 for __stack_chk_guard.
10396 2010-05-11 Jakub Jelinek <jakub@redhat.com>
10398 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
10399 don't call start_source_file debug hook here...
10400 (finish_options): ... but here, after outputting predefined and
10401 command line defines and undefs.
10403 PR middle-end/44071
10404 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
10406 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
10407 optimizing away empty bb with no successors, move over its
10408 footer chain to fallthru predecessor.
10409 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
10410 (rtl_split_edge): For asm goto call patch_jump_insn even if
10411 splitting fallthru edge.
10414 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
10415 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
10416 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10417 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
10421 * c-parser.c (c_parser_expression): Mark LHS of a comma
10422 expression as read if it is a decl, handled component or
10423 COMPOUND_EXPR with that on the RHS.
10424 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
10425 if it is a decl or handled component.
10427 2010-05-11 Jan Hubicka <jh@suse.cz>
10429 * lto-symtab.c (lto_symtab_free): New function.
10430 * lto-streamer.h (lto_symtab_free): Declare.
10432 2010-05-11 Jan Hubicka <jh@suse.cz>
10434 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
10435 that if function is needed it is reachable.
10436 (lto_output_node): See if it the function is reachable or referenced.
10437 (output_cgraph): Update call of lto_output_node.
10438 * lto-streamer.h (reachable_from_other_partition_p): Declare.
10440 2010-05-11 Jan Hubicka <jh@suse.cz>
10442 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
10445 2010-05-11 Jan Hubicka <jh@suse.cz>
10447 PR tree-optimize/44063
10448 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
10450 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
10452 (estimate_function_body_sizes): Compute sizes even when disregarding.
10454 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
10456 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
10458 2010-05-11 Jan Hubicka <jh@suse.cz>
10460 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
10461 into every boundary.
10463 2010-05-11 Jan Hubicka <jh@suse.cz>
10465 * matrix-reorg.c (matrix_reorg): Rebuild edges.
10467 2010-05-11 Jan Hubicka <jh@suse.cz>
10469 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
10470 lto_streamer_cache_delete): Put nodes into heap.
10471 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
10474 2010-05-11 Jan Hubicka <jh@suse.cz>
10476 * cgraphbuild.c (cgraph_rebuild_references): New.
10477 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
10478 out extern inlines.
10479 * cgraph.h (cgraph_rebuild_references): Declare.
10480 * tree-inline.c (tree_function_versioning): Use it.
10481 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
10483 2010-05-11 Jan Hubicka <jh@suse.cz>
10485 * cgraph.c: Include ipa-utils.h
10486 (cgraph_create_virtual_clone): Update references.
10487 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
10489 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
10491 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
10492 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
10495 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
10497 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
10499 2010-05-11 Jakub Jelinek <jakub@redhat.com>
10501 * gcc.c (execute): For -### don't quote arguments that
10502 contain just alphanumerics and _/-. characters.
10503 * doc/invoke.texi: Document that change for -###.
10506 * df-problems.c (struct dead_debug): Add to_rescan field.
10507 (dead_debug_init): Clear to_rescan field.
10508 (dead_debug_finish): Rescan all debug insns in to_rescan
10509 bitmap and free the bitmap.
10510 (dead_debug_insert_before): Instead of rescanning debug insns
10511 immediately queue their rescanning until dead_debug_finish.
10512 (df_note_bb_compute): After dead_debug_add do continue instead
10515 2010-05-10 Jakub Jelinek <jakub@redhat.com>
10518 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
10519 clear also INSN_REG_USE_LIST.
10521 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10523 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
10525 2010-05-10 Jan Hubicka <jh@suse.cz>
10527 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
10530 2010-05-10 Jan Hubicka <jh@suse.cz>
10532 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
10534 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
10535 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
10536 (lto_streamer_cache_create): Init alloc pool.
10537 (lto_streamer_cache_delete): Free alloc pool.
10538 * lto-streamer.h: Include alloc pool.
10539 (lto_streamer_cache_d): Use alloc pool.
10540 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
10542 2010-05-10 Jan Hubicka <jh@suse.cz>
10544 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
10545 * cgraphbuild.c: Include except.h
10546 (record_type_list, record_eh_tables): New function.
10547 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
10549 2010-05-10 Jan Hubicka <jh@suse.cz>
10551 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
10552 __frame_dummy_init_array_entry, force_to_data): Attribute as used
10553 rather than unused.
10555 2010-05-10 Michael Matz <matz@suse.de>
10557 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
10558 (can_reassociate_p): Use FLOAT_TYPE_P.
10559 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
10560 (vect_force_simple_reduction): ... this.
10561 * tree-parloops.c (gather_scalar_reductions): Use
10562 vect_force_simple_reduction.
10563 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
10564 vect_is_simple_reduction, add modify argument, if true rewrite
10565 "a-b" into "a+(-b)".
10566 (vect_is_simple_reduction, vect_force_simple_reduction): New
10568 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10570 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
10571 Vladimir Makarov <vmakarov@redhat.com>
10573 PR rtl-optimization/44012
10574 * ira-build.c (remove_unnecessary_allocnos): Nullify
10575 regno_allocno_map of the removed allocno.
10577 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10579 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10581 * configure: Regenerate.
10583 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10585 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10587 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10588 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10590 * configure: Regenerate.
10592 2010-05-10 Richard Guenther <rguenther@suse.de>
10594 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10595 marked if the entry identifier is marked.
10597 2010-05-10 Richard Guenther <rguenther@suse.de>
10599 * c-common.c (struct c_common_attributes): Add fnspec attribute.
10600 (handle_fnspec_attribute): New function.
10601 * gimple.h (gimple_call_return_flags): Declare.
10602 (gimple_call_arg_flags): Likewise.
10603 * gimple.c (gimple_call_arg_flags): New function.
10604 (gimple_call_return_flags): Likewise.
10605 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10606 New argument flags.
10607 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10608 return value flags.
10609 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
10610 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
10612 (make_heapvar_for): ... this new function.
10613 (handle_rhs_call): Handle fnspec attribute argument specifiers.
10614 (handle_lhs_call): Likewise.
10615 (find_func_aliases): Adjust.
10617 2010-05-10 Richard Guenther <rguenther@suse.de>
10619 PR tree-optimization/44050
10620 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
10622 2010-05-10 Wei Guozhi <carrot@google.com>
10625 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
10627 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10630 * c-typeck.c (lookup_field): Take a type directly. Update
10632 (build_component_ref): Update call to lookup_field.
10633 (set_init_label): Use lookup_field to find initialized field.
10634 Handle returned list of fields like a sequence of designators.
10636 2010-05-09 Richard Guenther <rguenther@suse.de>
10638 PR middle-end/44024
10639 * fold-const.c (tree_single_nonzero_warnv_p): Properly
10640 handle &FUNCTION_DECL.
10642 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10645 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
10646 structures and unions recursively.
10647 (detect_field_duplicates): Move duplicate detection with a hash to
10648 detect_field_duplicates_hash. Always use a hash if anonymous
10649 structures or unions are present.
10650 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
10653 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
10656 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
10657 detect Atom, Core 2 and Core i7.
10659 2010-05-09 Richard Guenther <rguenther@suse.de>
10661 * gcc.c (store_arg): Handle temporary file deletion for
10664 2010-05-09 Richard Guenther <rguenther@suse.de>
10666 PR middle-end/44043
10667 * ipa-inline.c (estimate_function_body_sizes): Return after
10668 disregarding inline limits.
10670 2010-05-09 Richard Guenther <rguenther@suse.de>
10672 * gcc.c (store_arg): Revert last change.
10674 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
10676 PR middle-end/28685
10677 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10678 (optimize_ops_list): Call it.
10680 2010-05-08 Richard Guenther <rguenther@suse.de>
10682 PR tree-optimization/44030
10683 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
10684 NECESSARY flag if we propagate from a inserted expression.
10686 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
10688 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10689 domain types as equal if they are both PLACEHOLDER_EXPRs.
10691 2010-05-08 Richard Guenther <rguenther@suse.de>
10693 * lto-wrapper.c (run_gcc): Remove linker output from
10694 command line for LTRANS invocation.
10696 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10698 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10699 lto-macho as lto_binary_reader.
10700 * target.h (struct gcc_target): New hooks lto_start and lto_end.
10701 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10702 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10703 in lto_start and lto_end calls.
10704 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
10706 (scan_prog_file): Update is_elf_or_coff call.
10707 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10709 * collect2.c (main): Fix enum comparison.
10711 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10713 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10714 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
10715 and TARGET_ASM_LTO_END.
10716 * darwin.c: Include obstack.h and lto-streamer.h.
10717 (lto_section_names_offset, lto_section_names_obstack,
10718 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10720 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10721 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
10722 to a temporary file.
10723 (darwin_asm_lto_end): New function. Restore asm_out_file.
10724 (darwin_asm_named_section): For LTO sections, replace the name with
10725 the offset of the section name in a string table, and build this
10727 (darwin_file_start): Initialize global vars for LTO support.
10728 (darwin_file_end): If output to asm_out_file was redirected, append it
10729 to the proper asm_out_file here. Add the section names section.
10731 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10733 * c-pragma.c (pending_weak_d, pending_weak): New.
10734 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10735 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10736 handle_pragma_weak): Update the uses of pending_weaks.
10738 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10740 PR documentation/44016
10741 * doc/standards.texi (Standards): Link to unversioned
10742 cxx0x_status.html page.
10744 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
10747 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10748 in addition to TREE_USED, to avoid "set but unused" warnings.
10750 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10752 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10753 (is_loop_prefetching_profitable): Do not insert prefetches
10754 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10755 times the prefetch ahead distance.
10757 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10759 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10760 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10761 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10764 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10766 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10767 a diagnostic info when the insn-to-mem ratio is too small.
10769 2010-05-07 Richard Guenther <rguenther@suse.de>
10771 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10773 (store_arg): Queue temp_filename for deletion instead of
10774 the whole argument.
10776 2010-05-07 Richard Guenther <rguenther@suse.de>
10778 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10779 (run_gcc): Handle LTRANS phase invocation.
10780 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10782 2010-05-07 Jakub Jelinek <jakub@redhat.com>
10784 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10785 this is also meaningful on PARM_DECLs and RESULT_DECLs.
10787 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10789 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10791 2010-05-07 Richard Guenther <rguenther@suse.de>
10793 PR tree-optimization/44020
10794 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10795 code when PRE is not yet initialized.
10797 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10799 * config/mips/dbxmdebug.h: Remove.
10800 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10802 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
10804 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10805 with null pointer and also warn about ordered comparison of zero with
10806 pointer if -Wextra.
10808 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10810 * graphite-blocking.c
10811 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10812 * graphite-clast-to-gimple.c
10813 (clast_to_gcc_expression): Same.
10814 (precision_for_value): Same.
10815 (precision_for_interval): Same.
10816 (gcc_type_for_interval): Same.
10817 (graphite_create_new_guard): Same.
10818 (compute_bounds_for_level): Same.
10819 (graphite_create_new_loop_guard): Same.
10820 * graphite-interchange.c
10821 (build_linearized_memory_access): Same.
10822 (pdr_stride_in_loop): Same.
10823 (memory_strides_in_loop_1): Same.
10824 (memory_strides_in_loop): Same.
10825 (extend_scattering): Same.
10826 (psct_scattering_dim_for_loop_depth): Same.
10827 (pbb_number_of_iterations): Same.
10829 (debug_iteration_domains): Same.
10831 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10832 (ppl_set_inhomogeneous_gmp): Same.
10833 (ppl_strip_loop): Same.
10834 (ppl_lexico_compare_linear_expressions): Same.
10835 (ppl_read_polyhedron_matrix): Same.
10836 (ppl_max_for_le_pointset): Same.
10838 (ppl_read_polyhedron_matrix): Same.
10839 (tree_int_to_gmp): Same.
10840 (gmp_cst_to_tree): Same.
10841 (ppl_set_inhomogeneous): Same.
10842 (ppl_set_inhomogeneous_tree): Same.
10843 (ppl_set_coef): Same.
10844 (ppl_set_coef_tree): Same.
10845 * graphite-sese-to-poly.c
10846 (build_pbb_scattering_polyhedrons): Same.
10847 (build_scop_scattering): Same.
10848 (scan_tree_for_params_right_scev): Same.
10849 (scan_tree_for_params): Same.
10850 (find_params_in_bb): Same.
10851 (find_scop_parameters): Same.
10852 (add_upper_bounds_from_estimated_nit): Same.
10853 (build_loop_iteration_domains): Same.
10854 (add_condition_to_domain): Same.
10855 (pdr_add_memory_accesses): Same.
10857 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10859 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10860 CLooG's value_* macros to their respective mpz_* counterparts.
10861 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10862 (graphite_create_new_loop_guard): Same.
10863 * graphite-interchange.c (build_linearized_memory_access): Same.
10864 (pdr_stride_in_loop): Same.
10865 (memory_strides_in_loop_1): Same.
10866 (1st_interchange_profitable_p): Same.
10867 * graphite-poly.c (extend_scattering): Same.
10868 (psct_scattering_dim_for_loop_depth): Same.
10869 (pbb_number_of_iterations): Same.
10870 (pbb_number_of_iterations_at_time): Same.
10871 * graphite-poly.h (new_1st_loop): Same.
10872 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10873 (oppose_constraint): Same.
10874 (insert_constraint_into_matrix): Same.
10875 (ppl_set_inhomogeneous_gmp): Same.
10876 (ppl_set_coef_gmp): Same.
10877 (ppl_strip_loop): Same.
10878 (ppl_lexico_compare_linear_expressions): Same.
10879 (ppl_max_for_le_pointset): Same.
10880 (ppl_min_for_le_pointset): Same.
10881 (ppl_build_realtion): Same.
10882 * graphite-ppl.h (gmp_cst_to_tree): Same.
10883 (ppl_set_inhomogeneous): Same.
10884 (ppl_set_inhomogeneous_tree): Same.
10885 (ppl_set_coef): Same.
10886 (ppl_set_coef_tree): Same.
10887 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10888 (build_scop_scattering): Same.
10889 (add_value_to_dim): Same.
10890 (scan_tree_for_params_right_scev): Same.
10891 (scan_tree_for_params_int): Same.
10892 (scan_tree_for_params): Same.
10893 (find_params_in_bb): Same.
10894 (find_scop_parameters): Same.
10895 (add_upper_bounds_from_estimated_nit): Same.
10896 (build_loop_iteration_domains): Same.
10897 (create_linear_expr_from_tree): Same.
10898 (add_condition_to_domain): Same.
10899 (pdr_add_memory_accesses): Same.
10901 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
10902 Jason Merrill <jason@redhat.com>
10904 * c-common.c (c_common_reswords): Add nullptr.
10905 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
10906 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10907 (gen_type_die_with_usage): Likewise.
10908 * dbxout.c (dbxout_type): Likewise.
10909 * sdbout.c (plain_type_1): Likewise.
10911 2010-05-06 Jason Merrill <jason@redhat.com>
10913 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10914 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
10916 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10918 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10919 stripping WITH_SIZE_EXPR.
10920 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10923 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10925 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10926 list of obsolete configurations.
10927 Disabled check for obsolete configurations.
10928 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10929 Removed support for previous versions.
10930 * config/mips/iris.h: Removed.
10931 * config/mips/iris5.h: Removed.
10932 * config/mips/iris6.h: Merged old iris.h contents.
10933 (TARGET_IRIX): Removed.
10934 (DRIVER_SELF_SPECS): Removed mabi=32.
10935 (IDENT_ASM_OP): Removed undef.
10936 (STARTFILE_SPEC): Removed mabi=32.
10937 (ENDFILE_SPEC): Likewise.
10938 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10939 (MACHINE_TYPE): Update for IRIX 6.5.
10940 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10941 TARGET_IRIX by TARGET_IRIX6.
10942 (mips_file_start): Likewise.
10943 (mips_output_external): Remove IRIX 5/6 O32 support.
10944 (mips_output_function_prologue): Likewise.
10945 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10947 (TARGET_CPU_CPP_BUILTINS): Likewise.
10948 (TARGET_IRIX): Removed.
10949 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10950 (MULTILIB_DIRNAMES): Removed 32.
10951 (MULTILIB_OSDIRNAMES): Removed ../lib.
10952 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10953 (Specific, mips-sgi-irix5): Document removal.
10954 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10955 Remove references to older IRIX 6 releases and the O32 ABI.
10957 2010-05-06 Jakub Jelinek <jakub@redhat.com>
10960 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10961 instead of DF_REF_REAL_REG.
10963 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
10966 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10967 handling to still return true for x64 targets.
10969 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10971 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10973 2010-05-06 Jan Hubicka <jh@suse.cz>
10975 PR tree-optimization/43791
10976 * ipa-inline.c (update_caller_keys): Remove bogus
10977 disregard_inline_limits check.
10979 2010-05-06 Michael Matz <matz@suse.de>
10981 PR tree-optimization/43984
10982 * tree-ssa-pre.c (inserted_phi_names): Remove.
10983 (inserted_exprs): Change to bitmap.
10984 (create_expression_by_pieces): Set bits, don't append to vector.
10985 (insert_into_preds_of_block): Don't handle inserted_phi_names.
10986 (eliminate): Don't look at inserted_phi_names, remove deleted
10987 insns from inserted_exprs.
10988 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
10989 (init_pre, fini_pre): Allocate and free bitmaps.
10990 (execute_pre): Insert insns on edges before elimination.
10992 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10994 * tree.c (initializer_zerop): Handle STRING_CST.
10996 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
10999 * doc/invoke.texi (Wimplicit): Document as C only.
11000 * opts.c (common_handle_option): Add argument kind.
11001 (handle_option): Rename as read_cmdline_option. Factor out code to...
11002 (handle_option): ... here. New.
11003 (handle_options): Rename as read_cmdline_options.
11004 (decode_options): Update call.
11005 (set_option): Use option index instead of option pointer. Classify
11006 diagnostics correctly.
11007 (enable_warning_as_error): Call handle_option.
11008 * opts.h (set_option): Update declaration.
11009 (handle_option): Declare.
11010 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11011 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11012 * c-opts.c (set_Wimplicit): Delete.
11013 (c_family_lang_mask): New static constant.
11014 (c_common_handle_option): Add argument kind. Use handle_option
11015 instead of set_Wimplicit.
11016 (c_common_post_options): warn_implicit and warn_implicit_int
11017 are disabled by default.
11018 * c-common.c (warn_implicit): Do not define here.
11019 * c-common.h (warn_implicit): Do not declare here.
11020 (c_common_handle_option): Update declaration.
11021 * lto-opts.c (lto_reissue_options): Update call to set_option.
11023 2010-05-06 Richard Guenther <rguenther@suse.de>
11025 PR tree-optimization/43571
11026 * domwalk.c (walk_dominator_tree): Walk the dominator
11027 sons in more optimal order.
11029 2010-05-06 Richard Guenther <rguenther@suse.de>
11031 PR tree-optimization/43934
11032 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11033 (stmt_cost): Likewise.
11034 (extract_true_false_args_from_phi): New helper.
11035 (determine_max_movement): For PHI nodes verify we can hoist them
11036 and compute their cost.
11037 (determine_invariantness_stmt): Handle PHI nodes.
11038 (move_computations_stmt): Likewise. Hoist PHI nodes in
11039 if-converted form using COND_EXPRs.
11040 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11041 (tree_ssa_lim): Likewise.
11042 * tree-flow.h (tree_ssa_lim): Adjust prototype.
11043 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11045 2010-05-06 Richard Guenther <rguenther@suse.de>
11047 PR tree-optimization/43987
11048 * tree-ssa-structalias.c (could_have_pointers): For possibly
11049 address-taken variables force pointers to be recorded.
11050 (create_variable_info_for_1): Likewise.
11051 (push_fields_onto_fieldstack): Pass in wheter all fields
11052 must have pointers.
11053 (find_func_aliases): Query types instead of vars whether
11054 they contain pointers where appropriate.
11056 2010-05-06 Jan Hubicka <jh@suse.cz>
11058 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11059 (record_reference, mark_address, mark_load, mark_store): Record
11061 (record_references_in_initializer): Update call of record_references.
11062 (rebuild_cgraph_edges): Remove all references before rebuiding.
11063 * cgraph.c (cgraph_create_node): Clear ref list.
11064 (cgraph_remove_node): Remove references.
11065 (dump_cgraph_node): Dump references.
11066 (cgraph_clone_node): Clone references.
11067 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11068 (struct cgraph_node, varpool_node): Add ref_lst.
11069 * ipa-ref.c: New file.
11070 * ipa-ref.h: New file.
11071 * ipa-ref-inline.h: New file.
11072 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11073 (referenced_from_other_partition_p): New function.
11074 (lto_output_varpool_node): Take set arugment; call
11075 referenced_from_other_partition.
11076 (lto_output_ref): New.
11077 (add_references): New.
11078 (output_refs): New.
11079 (output_cgraph): Compute boundary based on references; output refs.
11080 (output_varpool): Accept cgraph_node_set argument.
11083 (input_cgraph): Call input_refs.
11084 * lto-section-in.c (lto_section_name): Add refs.
11085 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11086 (ipa-ref.o): New file.
11087 * varpool.c (varpool_node): Clear ipa ref list.
11088 (varpool_remove_node): Remove references.
11089 (dump_varpool_node): Dump references.
11090 (varpool_assemble_decl): Only compile finalized ones.
11091 (varpool_extra_name_alias): Initialize ref list.
11092 * lto-streamer.c (lto-get_section_name): Add .refs section.
11093 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11094 (referenced_from_other_partition_p): Declared.
11096 2010-05-06 Ira Rosen <irar@il.ibm.com>
11098 PR tree-optimization/43901
11099 * tree-vect-stmts.c (vectorizable_call): Assert that vector
11100 type is not NULL if it's transformation phase, and return
11101 FALSE if it's analysis.
11102 (vectorizable_conversion, vectorizable_operation,
11103 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11105 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11107 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11109 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11111 * config/mips/mips-protos.h
11112 (mips_small_register_classes_for_mode_p): Delete prototype.
11114 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
11116 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11117 * config/arm/arm.c (multiple_operation_profitable_p,
11118 compute_offset_order): New static functions.
11119 (load_multiple_sequence, store_multiple_sequence): Use them.
11120 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
11121 memory offsets, not register numbers.
11122 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11124 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
11126 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11127 (get_pending_sizes, put_pending_size, put_pending_sizes):
11128 Update the uses of pending_sizes.
11129 * c-decl.c (store_parm_decls): Likewise.
11130 * c-tree.h (struct c_arg_info): Likewise.
11131 * tree.h: Update the prototype for get_pending_sizes and
11134 2010-05-05 Jason Merrill <jason@redhat.com>
11137 * c-common.c (handle_aligned_attribute): Respect
11138 ATTR_FLAG_TYPE_IN_PLACE.
11141 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11142 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11143 (TARGET_INITIALIZER): Use it.
11144 * c-common.c (attribute_takes_identifier_p): Call it.
11145 * c-common.h: Update prototype.
11146 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11147 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11149 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11152 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11153 DW_ID_down_case for Fortran compilation units.
11155 2010-05-05 Jan Hubicka <jh@suse.cz>
11157 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11160 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
11162 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11163 a variable-sized RESULT_DECL.
11165 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
11167 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11169 2010-05-05 Jason Merrill <jason@redhat.com>
11172 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11174 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11176 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
11177 Jakub Jelinek <jakub@redhat.com>
11180 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11181 (dead_debug_init, dead_debug_finish): New functions.
11182 (dead_debug_add, dead_debug_insert_before): Likewise.
11183 (df_note_bb_compute): Initialize a dead_debug object, add dead
11184 debug uses to it, insert debug bind insns before death insns,
11185 reset debug insns that refer to pending uses at the end.
11186 * rtl.h (make_debug_expr_from_rtl): New prototype.
11187 * varasm.c (make_debug_expr_from_rtl): New function.
11189 2010-05-05 Jan Hubicka <jh@suse.cz>
11191 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11192 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11193 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11194 lto_varpool_encoder_deref, lto_varpool_encoder_size,
11195 lto_varpool_encoder_encode_initializer_p,
11196 lto_set_varpool_encoder_encode_initializer): New functions.
11197 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11198 call output_varpool.
11199 (input_varpool_node): Do not always set analyzed.
11200 (input_cgraph_1): Return vector of cgraph nodes.
11201 (input_varpool_1): Return vector of varpools.
11202 (input_cgraph): Free the vectors.
11203 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11204 output only initializers needed.
11205 (lto_output): Only call output_cgraph.
11206 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
11207 * lto-section-out.c (lto_new_out_decl_state): Initialize
11208 state->varpool_node_encoder.
11209 * lto-streamer.h (lto_varpool_encoder_d): New.
11210 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
11211 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
11212 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
11213 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
11214 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
11216 (output_varpool, input_varpool): Remove declarations.
11218 2010-05-05 Jan Hubicka <jh@suse.cz>
11220 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
11221 with body can prevail.
11223 2010-05-05 Jan Hubicka <jh@suse.cz>
11225 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
11228 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11230 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
11232 * gengtype.h (erro_at_line): Constify pos argument.
11234 * gengtype.c: Include hashtab.h.
11235 (enum gc_used): Document GC_MAYBE_POINTED_TO.
11236 (error_at_line): Constify pos argument.
11237 (do_typedef): Initialize p->opt field.
11238 (get_file_gtfilename): Fix comment typo.
11239 (struct walk_type_data): Constify line field.
11240 (get_output_file_for_structure): New function.
11241 (write_local_func_for_structure): Constify orig_s argument.
11242 Use get_output_file_for_structure.
11243 (write_func_for_structure): Use get_output_file_for_structure.
11244 (INDENT): New define.
11245 (dump_pair, dump_type, dump_type_list, dump_typekind)
11246 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
11247 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
11249 (seen_types): New variable.
11250 (main): New variable do_dump. Process "-d" command line option.
11251 Call dump_everything if dump requested.
11253 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11255 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
11256 in a temporary instead of invoking the macro multiple times.
11257 (track_expr_p): Likewise.
11259 2010-05-04 Neil Vachharajani <nvachhar@google.com>
11261 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
11263 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
11264 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
11265 conditions for printing notes.
11266 * common.opt (-Wcoverage-mismatch): Allow negative, default to
11267 true, update documentation.
11268 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11270 2010-05-04 Jakub Jelinek <jakub@redhat.com>
11273 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11276 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11279 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11280 (*sse_prologue_save_insn1): Likewise.
11281 (SSE prologue save splitter): Likewise.
11283 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
11285 * tree.c (free_lang_data_in_one_sizepos): New inline function.
11286 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11287 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11288 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11289 all decls. Call it on DECL_FIELD_OFFSET of fields.
11290 (find_decls_types_r): Follow DECL_VALUE_EXPR.
11291 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11293 2010-05-04 Martin Jambor <mjambor@suse.cz>
11295 * tree-sra.c (build_access_from_expr_1): The first parameter type
11296 changed to simple tree.
11297 (build_access_from_expr): Likewise, gsi parameter was eliminated.
11298 (scan_assign_result): Renamed to assignment_mod_result, enum elements
11300 (build_accesses_from_assign): Removed all parameters except for a
11301 simple gimple statement. Now returns a simple bool.
11302 (scan_function): All non-analysis parts moved to separate functions
11303 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
11304 parameters and updated both callers.
11305 (sra_modify_expr): Removed parameter data.
11306 (sra_modify_function_body): New function.
11307 (perform_intra_sra): Call sra_modify_function_body to modify the
11309 (replace_removed_params_ssa_names): Parameter data changed into
11310 adjustments vector.
11311 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
11312 changed the parameter dont_convert to convert with the opposite
11314 (sra_ipa_modify_assign): Parameter data changed into adjustments
11315 vector, return value changed to bool.
11316 (ipa_sra_modify_function_body): New function.
11317 (sra_ipa_reset_debug_stmts): Updated a comment.
11318 (modify_function): Use ipa_sra_modify_function_body to modify function
11321 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11323 PR middle-end/43671
11324 * alias.c (true_dependence): Handle the same VALUE in x and mem.
11325 (canon_true_dependence): Likewise.
11326 (write_dependence_p): Likewise.
11328 2010-05-04 Jan Hubicka <jh@suse.cz>
11330 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11331 * cgraphbuild.c: Include ipa-utils.h
11332 (record_reference_ctx): New struct.
11333 (record_reference): Simplify to work on initializers; not statements.
11334 (mark_address, mark_load, mark_store): New.
11335 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11336 walk PHI nodes too.
11337 (record_references_in_initializer): Update use of record_reference.
11338 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11339 walk PHI nodes too.
11341 2010-05-04 Jan Hubicka <jh@suse.cz>
11343 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
11344 node will be removed anyway.
11345 (lto_varpool_replace_node): Allow also unanalyzed nodes;
11346 relink aliases of node into prevailing node.
11347 * varpool.c (varpool_remove_node): Remove aliases properly;
11348 when removing node, remove all its aliases too; remove DECL_INITIAL
11349 of removed node; ggc_free the varpool node.
11351 2010-05-04 Richard Guenther <rguenther@suse.de>
11353 PR tree-optimization/43879
11354 * tree-ssa-structalias.c (alias_get_name): Use
11355 DECL_ASSEMBLER_NAME if available.
11356 (create_function_info_for): Return the varinfo node.
11357 (ipa_pta_execute): Associate same-body aliases and extra names
11358 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
11360 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
11362 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
11364 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
11367 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
11368 only if HONOR_REG_ALLOC_ORDER is not defined.
11370 2010-05-04 Richard Guenther <rguenther@suse.de>
11372 PR tree-optimization/43949
11373 * tree-vrp.c (extract_range_from_binary_expr): Only handle
11376 2010-04-26 Jason Merrill <jason@redhat.com>
11378 * c.opt (-fstrict-enums): New.
11379 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
11381 2010-05-03 David Ung <davidu@mips.com>
11382 James E. Wilson <wilson@codesourcery.com>
11384 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
11385 emit the trap instruction before the divide for TUNE_74K.
11387 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
11389 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
11390 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
11391 based on the above, for new target hook.
11393 * hooks.c (hook_bool_mode_true): New generic hook.
11394 * hooks.h (hook_bool_mode_true): Add prototype.
11396 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
11398 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
11399 target hook, set to hook_bool_mode_false.
11400 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
11401 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
11402 with targetm.small_register_classes_for_mode_p.
11403 (find_reusable_reload): Likewise.
11404 (combine_reloads): Likewise.
11405 * reload1.c (reload_as_needed): Likewise.
11406 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
11407 * ifcvt.c (noce_process_if_block, check_cond_move_block,
11408 dead_or_predicable): Likewise.
11409 * regmove.c (optimize_reg_copy_1): Likewise.
11410 * calls.c (prepare_call_address): Likewise.
11411 (precompute_register_parameters): Likewise.
11413 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
11415 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
11416 implementation of the hook that considers all register classes
11417 small except for SH64.
11418 (sh_override_options): Use the new hook.
11419 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
11422 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
11424 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
11425 implementation of the hook that considers all register classes
11427 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
11430 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
11432 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
11433 implementation of the hook that considers all register classes
11435 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
11438 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
11440 * config/m32c/m32c.h: Likewise.
11441 * config/pdp11/pdp11.h: Likewise.
11442 * config/avr/avr.h: Likewise.
11443 * config/xtensa/xtensa.h: Likewise.
11444 * config/m68hc11/m68hc11.h: Likewise.
11445 * config/mn10300/mn10300.h: Likewise.
11446 * config/mcore/mcore.h: Likewise.
11447 * config/h8300/h8300.h: Likewise.
11448 * config/bfin/bfin.h: Likewise.
11450 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
11451 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
11453 2010-05-03 Anatoly Sokolov <aesok@post.ru>
11455 * double-int.h (tree_to_double_int): Remove macro.
11456 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
11457 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11458 (tree_to_double_int): New function.
11459 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
11461 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11463 2010-05-03 Richard Guenther <rguenther@suse.de>
11465 PR tree-optimization/43971
11466 * tree-ssa-structalias.c (get_constraint_for_1): Fix
11467 constraints in the !flag_delete_null_pointer_checks case.
11469 2010-05-03 Jakub Jelinek <jakub@redhat.com>
11472 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
11473 result mode matches original rtl mode.
11475 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
11478 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
11480 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11482 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
11483 when processing flag options.
11485 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11487 * gcov-iov.c (main): Change format string placeholder
11488 from %#08x to 0x%08x.
11489 * genchecksum.c (dosum): Change format string placeholder
11490 from %#02x to 0x%02x.
11492 2010-05-02 Richard Guenther <rguenther@suse.de>
11494 PR tree-optimization/43879
11495 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
11497 2010-05-02 Bruno Haible <bruno@clisp.org>
11499 * doc/extend.texi (Function Attributes): Fix a typo.
11501 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11504 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
11505 placeholder from 0x%x to %#x.
11506 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11507 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11508 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11509 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11510 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11511 * config/i386/i386.c (ix86_target_string): Ditto.
11512 * config/i386/i386.c (output_pic_addr_const): Ditto.
11513 (print_operand): Ditto.
11515 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11517 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
11518 placeholder from 0x%x to %#x.
11519 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
11520 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
11521 (ASM_OUTPUT_DEBUG_DATA): Ditto.
11522 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
11523 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
11524 * optc-gen.awk: Ditto.
11525 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
11526 (HOST_WIDE_INT_PRINT_HEX): Ditto.
11527 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
11528 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11530 2010-05-01 Anatoly Sokolov <aesok@post.ru>
11532 * target.h (struct calls): Add function_value_regno_p field.
11533 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11534 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
11535 * targhooks.c (default_function_value_regno_p): New function.
11536 * targhooks.h (default_function_value_regno_p): Declare function.
11537 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
11538 * builtins.c. (apply_result_size): (Ditto.).
11539 * combine.c. (likely_spilled_retval_p): (Ditto.).
11540 * mode-switching.c. Include 'target.h'.
11541 (create_pre_exit): Use function_value_regno_p hook.
11542 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
11543 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
11544 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
11546 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
11547 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
11548 (ix86_function_value_regno_p): Declare as static, change argument
11549 type to const unsigned int.
11550 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
11552 2010-05-01 Richard Guenther <rguenther@suse.de>
11554 PR tree-optimization/43949
11555 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
11557 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
11559 2010-05-01 Anatoly Sokolov <aesok@post.ru>
11561 * rtl.h (CONST_DOUBLE_P): Define.
11562 (rtx_to_double_int): Declare.
11563 * emit-rtl.c (rtx_to_double_int): New function.
11564 * dwarf2out.c (insert_double): New function.
11565 (loc_descriptor, add_const_value_attribute): Clean up, use
11566 rtx_to_double_int and insert_double functions.
11568 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
11570 * doc/extend.texi (Inline): Add missing return keyword to examples.
11571 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11574 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
11576 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11577 the variable part of the offset as well. Use highest_pow2_factor for
11578 all alignment checks.
11580 2010-04-30 Richard Guenther <rguenther@suse.de>
11582 PR tree-optimization/43879
11583 * tree-ssa-structalias.c (type_could_have_pointers): Functions
11586 2010-04-30 Jan Hubicka <jh@suse.cz>
11588 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11590 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11592 2010-04-30 Jan Hubicka <jh@suse.cz>
11594 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11596 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11597 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11598 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11599 cgraph_node_set_needs_ltrans_p): Remove.
11601 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11603 * sdbout.c: Include vec.h, do not include varray.h.
11604 (deferred_global_decls, sdbout_global_decl,
11605 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11606 * toplev.c: Do not include varray.h.
11607 (dump_memory_report): Do not dump VARRAY statistics.
11608 * gengtype.c (open_base_file): Ignore varray.h.
11609 * Makefile.in: Update for abovementioned changes.
11610 Remove all traces of varray.c and varray.h.
11611 * varray.c: Remove file.
11612 * varray.h: Remove file.
11614 2010-04-30 Jan Hubicka <jh@suse.cz>
11616 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
11619 2010-04-30 Jan Hubicka <jh@suse.cz>
11621 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
11624 2010-04-30 Richard Guenther <rguenther@suse.de>
11626 * tree-ssa-structalias.c (get_constraint_for_1): Generate
11627 constraints for CONSTRUCTOR.
11629 2010-04-30 Richard Guenther <rguenther@suse.de>
11632 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
11633 first after all lowering passes.
11635 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11637 * toplev.c: Include varray.h for statistics dumping.
11638 * tree.h: Do not declare varray_head_tag.
11639 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
11640 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
11641 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
11642 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
11643 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
11644 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
11645 c-common.c, c-common.h, reg-stack.c, basic-block.h,
11646 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
11648 * Makefile.in: Update for abovementioned changes.
11650 2010-04-30 Jakub Jelinek <jakub@redhat.com>
11653 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
11655 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
11657 * config/picochip/picochip.c (picochip_legitimize_address): Define.
11658 Use this function to do machine-specific conversion.
11659 (picochip_legitimize_reload_address): Likewise.
11660 (picochip_legitimate_address_p): Check valid base register only if
11662 (picochip_check_conditional_copy): Check for modw only if opnd is
11664 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
11665 to call the function in c.
11666 * config/picochip/picochip-protos.h
11667 (picochip_legitimize_reload_address): Define.
11668 * config/picochip/picochip.md (supported_compare1): Define.
11670 2010-04-30 Jan Hubicka <jh@suse.cz>
11672 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11673 (cgraph_global_info): Remove inlined.
11674 (LTO_cgraph_tag_names): Remove.
11675 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11676 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11677 simplify cgraph tags and document.
11678 (lto_output_node): Use only LTO_cgraph_unavail_node and
11679 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
11680 for_functions_valid, global info, process and output flags.
11681 (input_overwrite_node): Initialize estimated stack size and
11682 estimated growth. Do not read flags we no longer store.
11683 (input_node): Likewise do not read info no longer stored.
11684 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11687 2010-04-30 Richard Guenther <rguenther@suse.de>
11689 PR tree-optimization/43879
11690 * tree-ssa-structalias.c (get_constraint_for_1): Properly
11691 handle non-zero initializers.
11693 2010-04-30 Richard Guenther <rguenther@suse.de>
11695 * builtins.c (fold_builtin_1): Delete free (0).
11697 2010-04-29 Jan Hubicka <jh@suse.cz>
11699 * gengtype.c (open_base_files): Add lto-streamer.h
11700 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11701 (pass_ipa_cp): GGC collect.
11702 * toplev. (compile_file): Do not output symbols.
11703 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11704 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11705 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11706 * lto-section-in.c: Include ggc.h
11707 (lto_new_in_decl_state): Alloc in GGC.
11708 (lto_delete_in_decl_state): Likewise.
11709 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11712 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11715 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11716 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
11717 (HONOR_REG_ALLOC_ORDER): Describe new macro.
11718 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11719 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11720 account only if HONOR_REG_ALLOC_ORDER is not defined.
11721 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11722 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11724 2010-04-29 Jon Grant <04@jguk.org>
11726 * collect2.c (vflag): Change type from int to bool.
11728 (helpflag): New global bool.
11729 (main): Set vflag and debug with boolean, not integer truth values.
11730 Accept new "--help" option and output usage text if found.
11731 * collect2.h (vflag): Update prototype.
11734 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11737 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11739 2010-04-29 Richard Guenther <rguenther@suse.de>
11742 * plugin.h (invoke_plugin_callbacks): Annotate arguments
11743 with ATTRIBUTE_UNUSED.
11745 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11748 * config/i386/i386.c (get_some_local_dynamic_name): Replace
11749 INSN_P with NONDEBUG_INSN_P.
11750 (distance_non_agu_define): Likewise.
11751 (distance_agu_use): Likewise.
11753 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11755 From Dominique d'Humieres <dominiq@lps.ens.fr>
11757 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11760 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
11762 * plugin.h (invoke_plugin_callbacks): New inline function.
11763 * plugin.c (flag_plugin_added): New global flag.
11764 (add_new_plugin): Initialize above flag.
11765 (invoke_plugin_callbacks): Rename to ...
11766 (invoke_plugin_callbacks_full): ... this.
11768 2010-04-28 Jan Hubicka <jh@suse.cz>
11770 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11771 (lto_varpool_replace_node): New.
11772 (lto_symtab_resolve_symbols): Resolve varpool nodes.
11773 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11774 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11775 * cgraph.h (varpool_node_ptr): New type.
11776 (varpool_node_ptr): New vector.
11777 (varpool_node_set_def): New structure.
11778 (varpool_node_set): New type.
11779 (varpool_node_set): New vector.
11780 (varpool_node_set_element_def): New structure.
11781 (varpool_node_set_element, const_varpool_node_set_element): New types.
11782 (varpool_node_set_iterator): New type.
11783 (varpool_node): Add prev pointers, add used_from_other_partition,
11784 in_other_partition.
11785 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11786 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11787 varpool_get_node, varpool_remove_node): Declare.
11788 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11789 varpool_node_set_size): New inlines.
11790 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11791 * tree-pass.h (varpool_node_set_def): Forward declare.
11792 (ipa_opt_pass_d): Summary writting takes vnode sets too.
11793 (ipa_write_optimization_summaries): Update prototype.
11794 * ipa-cp.c (ipcp_write_summary): Update.
11795 * ipa-reference.c (ipa_reference_write_summary): Update.
11796 * lto-cgraph.c (lto_output_varpool_node): New static function.
11797 (output_varpool): New function.
11798 (input_varpool_node): New static function.
11799 (input_varpool_1): New function.
11800 (input_cgraph): Input varpool.
11801 * ipa-pure-const.c (pure_const_write_summary): Update.
11802 * lto-streamer-out.c (lto_output): Update, output varpool too.
11803 (write_global_stream): Kill WPA hack.
11804 (produce_asm_for_decls): Update.
11805 (output_alias_pair_p): Handle variables.
11806 (output_unreferenced_globals): Output only needed partition of varpool.
11807 * ipa-inline.c (inline_write_summary): Update.
11808 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11810 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11811 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11812 varpool_node_set_new, varpool_node_set_add,
11813 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11814 debug_varpool_node_set): New functions.
11815 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11816 (execute_one_pass): Process new decls too.
11817 (ipa_write_summaries_2): Pass around vsets.
11818 (ipa_write_summaries_1): Likewise.
11819 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11821 (ipa_write_optimization_summaries_1): Pass around vsets.
11822 (ipa_write_optimization_summaries): Likewise.
11823 * varpool.c (varpool_get_node): New.
11824 (varpool_node): Update doubly linked lists.
11825 (varpool_remove_node): New.
11826 (dump_varpool_node): More dumping.
11827 (varpool_enqueue_needed_node): Update doubly linked lists.
11828 (decide_is_variable_needed): Kill ltrans hack.
11829 (varpool_finalize_decl): Kill lto hack.
11830 (varpool_assemble_decl): Skip decls in other partitions.
11831 (varpool_assemble_pending_decls): Update doubly linkes lists.
11832 (varpool_empty_needed_queue): Likewise.
11833 (varpool_extra_name_alias): Likewise.
11834 * lto-streamer.c (lto_get_section_name): Add vars section.
11835 * lto-streamer.h (lto_section_type): Update.
11836 (output_varpool, input_varpool): Declare.
11838 2010-04-28 Mike Stump <mikestump@comcast.net>
11840 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11842 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11844 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11845 record or union type with RECORD_OR_UNION_TYPE_P predicate.
11846 (lto_input_ts_type_tree_pointers): Likewise.
11847 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11848 (lto_output_ts_type_tree_pointers): Likewise.
11850 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11852 Uniquization of constants at the Tree level
11853 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11854 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11856 (tree_output_constant_def): Declare.
11857 * gimplify.c (gimplify_init_constructor): When using block copy, first
11858 uniquize the constant constructor on the RHS.
11859 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11860 DECL_IN_CONSTANT_POOL flag.
11861 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11862 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11864 (assemble_variable): Deal with symbols belonging to the tree constant
11866 (get_constant_section): Add ALIGN parameter and simplify.
11867 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11868 (assemble_constant_contents): Use the expression of the VAR_DECL.
11869 (output_constant_def_contents): Use the alignment of the VAR_DECL.
11870 (tree_output_constant_def): New global function.
11871 (mark_constant): Use the expression of the VAR_DECL.
11872 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11874 (output_object_block): Likewise and assemble the expression.
11876 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11878 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11879 hash_tree, eq_tree): New tree hash table.
11880 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11881 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11882 lto_orig_address_remove): Reimplement.
11884 2010-04-28 Xinliang David Li <davidxl@google.com>
11887 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11888 (compute_uninit_opnds_pos): New function.
11889 (is_non_loop_exit_postdominating): New function.
11890 (compute_control_dep_chain): New function.
11891 (find_pdom): New function.
11892 (convert_control_dep_chain_into_preds): New function.
11893 (find_predicates): New function.
11894 (find_control_equiv_block): New function.
11895 (collect_phi_def_edges): New function.
11896 (find_def_preds): New function.
11897 (find_dom): New function.
11898 (dump_predicates): New function.
11899 (get_cmp_code): New function.
11900 (is_value_included_in): New function.
11901 (find_matching_predicate_in_rest_chains): New function.
11902 (use_pred_not_overlap_with_undef_path_pred): New function.
11903 (is_use_properly_guarded): New function.
11904 (normalize_cond_1): New function.
11905 (is_and_or_or): New function.
11906 (normalize_cond): New function.
11907 (is_gcond_subset_of): New function.
11908 (is_subset_of_any): New function.
11909 (is_or_set_subset_of): New function.
11910 (is_and_set_subset_of): New function.
11911 (is_norm_cond_subset_of): New function.
11912 (is_pred_expr_subset_of): New function.
11913 (is_pred_chain_subset_of): New function.
11914 (is_included_in): New function.
11915 (is_superset_of): New function.
11916 (find_uninit_use): New function.
11917 (warn_uninitialized_phi): New function.
11918 (compute_possibly_undefined_names): New function.
11919 (ssa_undefined_value_p): New function.
11920 (execute_late_warn_uninitialized): New function.
11921 * tree-ssa.c (ssa_undefined_value_p): Removed.
11922 (warn_uninit): Changed to extern.
11923 (warn_uninitialized_phi): Removed.
11924 (warn_uninitialized_vars): Changed to extern.
11925 (execute_late_warn_uninitialized): Removed
11926 * tree-flow.h: Add new prototypes.
11927 * timevar.def: Add new time variable.
11928 * Makefile.in: Add new build file.
11930 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
11932 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11935 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11938 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11940 2010-04-28 Martin Jambor <mjambor@suse.cz>
11942 * cgraph.h (struct cgraph_node): New field indirect_calls.
11943 (struct cgraph_indirect_call_info): New type.
11944 (struct cgraph_edge): Removed field indirect_call. New fields
11945 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11946 (cgraph_create_indirect_edge): Declare.
11947 (cgraph_make_edge_direct): Likewise.
11948 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11949 * ipa-prop.h (struct ipa_param_call_note): Removed.
11950 (struct ipa_node_params): Removed field param_calls.
11951 (ipa_create_all_structures_for_iinln): Declare.
11952 * cgraph.c: Described indirect edges and uids in initial comment.
11953 (cgraph_add_edge_to_call_site_hash): New function.
11954 (cgraph_edge): Search also among the indirect edges, use
11955 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11956 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11957 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11959 (initialize_inline_failed): Assign a reason to indirect edges.
11960 (cgraph_create_edge_1): New function.
11961 (cgraph_create_edge): Moved some functionality to
11962 cgraph_create_edge_1.
11963 (cgraph_create_indirect_edge): New function.
11964 (cgraph_edge_remove_callee): Add an assert checking for
11966 (cgraph_edge_remove_caller): Special-case indirect edges.
11967 (cgraph_remove_edge): Likewise.
11968 (cgraph_set_edge_callee): New function.
11969 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11970 (cgraph_make_edge_direct): New function.
11971 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11972 the declaration of the call statement matches.
11973 (cgraph_node_remove_callees): Special-case indirect edges.
11974 (cgraph_clone_edge): Likewise.
11975 (cgraph_clone_node): Clone also the indirect edges.
11976 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11977 indirect_call, dump count of indirect_calls edges.
11978 * ipa-prop.c (iinlining_processed_edges): New variable.
11979 (ipa_note_param_call): Create indirect edges instead of
11980 creating notes. New parameter node.
11981 (ipa_analyze_call_uses): New parameter node, pass it on to
11982 ipa_note_param_call.
11983 (ipa_analyze_stmt_uses): Likewise.
11984 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
11985 (print_edge_addition_message): Work on edges rather than on notes.
11986 (update_call_notes_after_inlining): Likewise, renamed to
11987 update_indirect_edges_after_inlining.
11988 (ipa_create_all_structures_for_iinln): New function.
11989 (ipa_free_node_params_substructures): Do not free notes.
11990 (ipa_edge_duplication_hook): Propagate bits within
11991 iinlining_processed_edges bitmap.
11992 (ipa_node_duplication_hook): Do not duplicate notes.
11993 (free_all_ipa_structures_after_ipa_cp): Renamed to
11994 ipa_free_all_structures_after_ipa_cp.
11995 (free_all_ipa_structures_after_iinln): Renamed to
11996 ipa_free_all_structures_after_iinln.
11997 (ipa_write_param_call_note): Removed.
11998 (ipa_read_param_call_note): Removed.
11999 (ipa_write_indirect_edge_info): New function.
12000 (ipa_read_indirect_edge_info): Likewise.
12001 (ipa_write_node_info): Do not stream notes, do stream information
12003 (ipa_read_node_info): Likewise.
12004 (lto_ipa_fixup_call_notes): Removed.
12005 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12006 * ipa-inline.c (pass_ipa_inline): Likewise.
12007 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12008 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12009 * tree-inline.c (copy_bb): Removed an unnecessary double check for
12011 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12013 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12014 (output_cgraph): Stream also indirect edges.
12015 (lto_output_edge): Added capability to stream indirect edges.
12016 (input_edge): Likewise.
12017 (input_cgraph_1): Likewise.
12018 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12021 2010-04-28 Richard Guenther <rguenther@suse.de>
12023 PR tree-optimization/43879
12024 PR tree-optimization/43909
12025 * tree-ssa-structalias.c (struct variable_info): Add
12026 only_restrict_pointers flag.
12027 (new_var_info): Initialize it. Increment stats.total_vars here.
12028 (create_function_info_for): Do not increment stats.total_vars here.
12029 (get_function_part_constraint): Fix build with C++.
12030 (insert_into_field_list): Remove.
12031 (push_fields_onto_fieldstack): Properly merge fields.
12032 (create_variable_info_for): Split and simplify.
12033 (create_variable_info_for_1): New piece.
12034 (intra_create_variable_infos): Properly make restrict constraints
12037 2010-04-28 Richard Guenther <rguenther@suse.de>
12040 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12042 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
12043 Jan Hubicka <hubicka@ucw.cz>
12045 * doc/invoke.texi (-Wsuggest-attribute=const,
12046 -Wsuggest-attribute=pure): Document.
12047 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12048 (function_always_visible_to_compiler_p,
12049 suggest_attribute, warn_function_pure, warn_function_const):
12051 (check_call): Improve debug info.
12052 (analyze_function): Do not check availability.
12053 (add_new_function): Check availability.
12054 (propagate): Output warnings.
12055 (skip_function_for_local_pure_const): New function.
12056 (local_pure_const): Use it; output warnings.
12057 * common.opt (Wsuggest-attribute=const,
12058 Wsuggest-attribute=pure): New.
12060 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12062 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12063 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12064 or DW_CFA_def_cfa_offset{,_sf}.
12066 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12068 * tree.h: Fix truncated long macros.
12070 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
12072 * collect2.c (TARGET_64BIT): Redefine to target's default.
12073 * tlink.c: Likewise.
12074 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12075 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12076 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12077 for underscoring __USER_LABEL_PREFIX__.
12078 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12079 (SUB_LINK_ENTRY32): New.
12080 (SUB_LINK_ENTRY64): New.
12081 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12082 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12083 (SUB_LINK_ENTRY64): New.
12084 (SUB_LINK_ENTRY): New.
12085 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12086 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12087 x64 target is choosen.
12088 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12089 * configure: Regenerated.
12090 * configure.ac (leading-mingw64-underscores): Option added.
12092 2010-04-27 Jan Hubicka <jh@suse.cz>
12094 * doc/invoke.texi (-fipa-profile): Document.
12095 * opts.c (decode_options): Enable ipa-profile at -O1.
12096 * timevar.def (TV_IPA_PROFILE): Define.
12097 * common.opt (fipa-profile): Add.
12098 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12100 (cgraph_propagate_frequency): Handle only local ones.
12101 * tree-pass.h (pass_ipa_profile): Declare.
12102 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12103 (pass_ipa_profile): Use TV_IPA_PROFILE.
12104 * ipa.c (ipa_profile): New function.
12105 (gate_ipa_profile): Likewise.
12106 (pass_ipa_profile): New global variable.
12107 * passes.c (pass_ipa_profile): New.
12109 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
12111 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12113 2010-04-27 Martin Jambor <mjambor@suse.cz>
12115 PR middle-end/43812
12116 * ipa.c (dissolve_same_comdat_group_list): New function.
12117 (function_and_variable_visibility): Call
12118 dissolve_same_comdat_group_list when comdat group contains external or
12120 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12121 lists are circular and that they contain only DECL_ONE_ONLY nodes.
12123 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12125 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12126 (const_hash_1) <VECTOR_CST>: New case.
12127 (compare_constant) <VECTOR_CST>: Likewise.
12128 <ADDR_EXPR>: Deal with LABEL_REFs.
12129 (copy_constant) <VECTOR_CST>: New case.
12131 2010-04-27 Jan Hubicka <jh@suse.cz>
12133 * cgraph.c (cgraph_propagate_frequency): New function.
12134 * cgraph.h (cgraph_propagate_frequency): Declare.
12135 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12136 cgraph_propagate_frequency.
12138 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12140 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12142 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
12145 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12146 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12147 here to determine which regs to push and how much stack to reserve.
12149 2010-04-27 Jie Zhang <jie@codesourcery.com>
12151 * doc/gimple.texi (gimple_statement_with_ops): Remove
12152 addresses_taken field.
12153 (gimple_statement_with_memory_ops): Likewise.
12155 2010-04-27 Jan Hubicka <jh@suse.cz>
12157 * tree-inline.c (eni_inlining_weights): Remove.
12158 (estimate_num_insns): Special case more builtins.
12160 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
12163 * c-typeck.c (build_binary_op): Move forward check for comparison
12164 pointer with null pointer constant and adjust the diagnostic message.
12166 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
12169 * configure.ac (gcc_cv_as_section_has_align): Set if installed
12170 binutils supports extended .section directive needed by LTO, or
12171 warn if older binutils found.
12172 (LTO_BINARY_READER): New AC_SUBST'd variable.
12173 (LTO_USE_LIBELF): Likewise.
12174 * gcc/config.gcc (lto_binary_reader): New target-specific configure
12176 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12177 (LTO_USE_LIBELF): Likewise.
12178 * configure: Regenerate.
12180 * collect2.c (is_elf): Rename from this ...
12181 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12182 object files in addition to ELF-formatted ones.
12183 (scan_prog_file): Caller updated. Also allow for LTO info marker
12184 symbol to be prefixed or not by an extra underscore.
12186 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12187 * config/i386/winnt.c: Also #include lto-streamer.h
12188 (i386_pe_asm_named_section): Specify 1-byte section alignment for
12189 LTO named sections.
12190 (i386_pe_asm_output_aligned_decl_common): Add comment.
12191 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12193 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
12196 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12197 Add missing earlyclobber for second alternative.
12199 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
12201 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
12202 bits for artificial defs at the top of the block.
12203 * fwprop.c (single_def_use_enter_block): Don't call it.
12205 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
12208 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
12209 instead of "$gcc_cv_objdump -T".
12210 Use "-undefined dynamic_lookup" on darwin.
12211 * gcc/configure: Regenerate.
12213 2010-04-26 Jakub Jelinek <jakub@redhat.com>
12216 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
12218 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12220 * c-parser.c (struct c_token): Move location field up.
12221 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
12222 (struct c_declspecs): Convert typespec_word, storage_class, and
12223 default_int_p into bitfields.
12224 (struct c_declarator): Move loc field up.
12226 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12228 * cfgloop.h (struct loop): Move can_be_parallel field up.
12229 * ipa-prop.h (struct ip_node_params): Move bitfields up.
12230 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
12232 (struct iv_cand): Convert pos field into a bitfield.
12233 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
12235 (struct _stmt_vec_info): Shuffle fields for better packing.
12237 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12239 * varasm.c (IN_NAMED_SECTION): Remove guard.
12240 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
12241 (IN_NAMED_SECTION_P): ...this.
12242 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
12243 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12245 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12247 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
12248 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
12249 of shadowing it. Fix comments.
12251 2010-04-26 Jan Hubicka <jh@suse.cz>
12253 * cgraph.c (cgraph_create_node): Set node frequency to normal.
12254 (cgraph_clone_node): Copy function frequency.
12255 * cgraph.h (node_frequency): New enum
12256 (struct cgraph_node): Add.
12257 * final.c (rest_of_clean_state): Update.
12258 * lto-cgraph.c (lto_output_node): Output node frequency.
12259 (input_overwrite_node): Input node frequency.
12260 * tre-ssa-loop-ivopts (computation_cost): Update.
12261 * lto-streamer-out.c (output_function): Do not output function
12263 * predict.c (maybe_hot_frequency_p): Update and handle functions
12265 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
12267 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12268 (compute_function_frequency): Set noreturn functions to be executed
12270 (choose_function_section): Update.
12271 * lto-streamer-in.c (input_function): Do not input function frequency.
12272 * function.c (allocate_struct_function): Do not initialize function
12274 * function.h (function_frequency): Remove.
12275 (struct function): Remove function frequency.
12276 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12277 (try_update): Update.
12278 * tree-inline.c (initialize_cfun): Do not update function frequency.
12279 * passes.c (pass_init_dump_file): Update.
12280 * i386.c (ix86_compute_frame_layout): Update.
12281 (ix86_pad_returns): Update.
12283 2010-04-26 Jie Zhang <jie@codesourcery.com>
12285 PR tree-optimization/43833
12286 * tree-vrp.c (range_int_cst_p): New.
12287 (range_int_cst_singleton_p): New.
12288 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12289 when both operands are constants. Use range_int_cst_p in
12292 2010-04-26 Jan Hubicka <jh@suse.cz>
12294 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12296 2010-04-26 Richard Guenther <rguenther@suse.de>
12299 * gimple.c (gimple_decl_printable_name): Deal gracefully
12300 with a NULL DECL_NAME.
12302 2010-04-26 Richard Guenther <rguenther@suse.de>
12305 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12306 if emitting debug information and it is either a function
12307 or a namespace decl.
12309 2010-04-26 Ira Rosen <irar@il.ibm.com>
12311 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12312 determine if the statement is vectorizable, and a macro to access it.
12313 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12314 Skip statements that can't be vectorized. If the analysis fails,
12315 mark the statement as unvectorizable if vectorizing basic block.
12316 (vect_compute_data_refs_alignment): Likewise.
12317 (vect_verify_datarefs_alignment): Skip statements marked as
12318 unvectorizable. Add print.
12319 (vect_analyze_group_access): Skip statements that can't be
12320 vectorized. If the analysis fails, mark the statement as
12321 unvectorizable if vectorizing basic block.
12322 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12323 * tree-vect-stmts.c (vectorizable_store): Fix the number of
12324 generated stmts for SLP.
12325 (new_stmt_vec_info): Initialize the new field.
12326 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12327 statements marked as unvectorizable.
12329 2010-04-25 Joseph Myers <joseph@codesourcery.com>
12331 * c-common.c (flag_isoc1x): New.
12332 (flag_isoc99): Update comment.
12333 * c-common.h (flag_isoc1x): New.
12334 (flag_isoc99): Update comment.
12335 * c-cppbuiltin.c (builtin_define_float_constants): Also define
12336 __<type>_DECIMAL_DIG__.
12337 * c-opts.c (set_std_c1x): New.
12338 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
12339 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
12340 * c.opt (-std=c1x, -std=gnu1x): New options.
12341 * doc/cpp.texi: Mention -std=c1x.
12342 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
12343 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
12344 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
12345 * doc/standards.texi: Mention C1X.
12346 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
12347 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
12348 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
12351 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
12353 * config/i386/gmon-sol2.c (_mcleanup): Change format string
12354 placeholder from 0x%x to %#x.
12355 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12356 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12357 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12358 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12359 * config/i386/i386.c (ix86_target_string): Ditto.
12360 (output_pic_addr_const): Ditto.
12361 (print_operand): Ditto.
12363 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
12365 * combine.c (find_split_point): Add third argument. Use it
12366 to find nested multiply-accumulate instructions. Adjust calls.
12367 (try_combine): Adjust call to find_split_point.
12369 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
12371 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
12373 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
12375 PR tree-optimization/41442
12376 * fold-const.c (merge_truthop_with_opposite_arm): New function.
12377 (fold_binary_loc): Call it.
12379 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12381 * toplev.c (general_init): Set default for fdiagnostics-show-option.
12382 * opts.c (common_handle_option): Allow disabling it.
12383 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
12385 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
12387 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
12388 between modes if both types are integral.
12390 2010-04-23 Richard Guenther <rguenther@suse.de>
12392 PR tree-optimization/43572
12393 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
12395 2010-04-23 Richard Guenther <rguenther@suse.de>
12398 * tree-inline.c (tree_can_inline_p): Also check compatibility
12401 2010-04-23 Martin Jambor <mjambor@suse.cz>
12403 PR tree-optimization/43846
12404 * tree-sra.c (struct access): New flag grp_assignment_read.
12405 (build_accesses_from_assign): Set grp_assignment_read.
12406 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
12407 (enum mark_read_status): New type.
12408 (analyze_access_subtree): Propagate grp_assignment_read, create
12409 accesses also if both direct_read and root->grp_assignment_read.
12411 2010-04-23 Martin Jambor <mjambor@suse.cz>
12413 PR middle-end/43835
12414 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
12415 function does not have type attributes.
12417 2010-04-23 Richard Guenther <rguenther@suse.de>
12420 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
12423 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12425 * sese.h (create_if_region_on_edge): Remove.
12427 * sese.c (create_if_region_on_edge): Make static.
12429 * tree-inline.c: Do not include ggc.h.
12431 * expr.c: Do not include ggc.h.
12433 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
12436 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
12439 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12440 in the middle of insns for casesi_worker_2.
12442 2010-04-22 David Edelsohn <edelsohn@gnu.org>
12444 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
12446 2010-04-22 Ira Rosen <irar@il.ibm.com>
12448 PR tree-optimization/43842
12449 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12450 loop unrolling in update of exit phis. Fix comment.
12451 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
12452 least two reduction statements in the loop before starting SLP
12455 2010-04-22 Nick Clifton <nickc@redhat.com>
12457 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
12459 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
12461 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
12462 to simplify a + ~a.
12464 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12466 * tree-parloops.c (loop_parallel_p): New argument
12467 parloop_obstack. Pass it down.
12468 (parallelize_loops): New variable parloop_obstack. Initialize it,
12469 pass it down, free it.
12471 * tree-loop-linear.c (linear_transform_loops): Pass down
12474 * tree-data-ref.h (lambda_compute_access_matrices): New argument
12475 of type struct obstack *.
12477 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
12478 scratch_obstack. Initialize it, pass down, free it.
12480 * lambda.h (lambda_loop_new): Remove.
12481 (lambda_matrix_new, lambda_matrix_inverse)
12482 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
12483 argument of type struct obstack *.
12485 * lambda-trans.c (lambda_trans_matrix_new): New argument
12486 lambda_obstack. Pass it down, use obstack allocation for ret.
12487 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
12490 * lambda-mat.c (lambda_matrix_get_column)
12491 (lambda_matrix_project_to_null): Remove.
12492 (lambda_matrix_new): New argument lambda_obstack. Use obstack
12493 allocation for mat.
12494 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
12497 * lambda-code.c (lambda_loop_new): New function.
12498 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
12499 (lambda_compute_auxillary_space, lambda_compute_target_space)
12500 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
12501 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
12502 (build_access_matrix): New argument lambda_obstack. Use obstack
12504 (lambda_compute_step_signs, lambda_compute_access_matrices): New
12505 argument lambda_obstack. Pass it down.
12507 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12509 * optabs.h (expand_widening_mult): Declare.
12511 2010-04-22 Richard Guenther <rguenther@suse.de>
12513 PR tree-optimization/43845
12514 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
12515 lookup the CALL_EXPR function and arguments.
12517 2010-04-22 Nick Clifton <nickc@redhat.com>
12519 * config/stormy16/stormy16.c
12520 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
12521 * config/stormy16/stormy16.h: Tidy up formatting.
12522 (DONT_USE_BUILTIN_SETJMP): Remove definition.
12523 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
12524 (ineqbranchsi): Delete pattern.
12525 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
12526 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
12527 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12528 stormy16-lib2-ucmpsi2.c.
12530 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12532 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
12533 df_simulate_find_noclobber_defs as appropriate. Keep track of an
12534 extra set merge_set_noclobber, and use it to relax the final test
12536 * df.h (df_simulate_find_noclobber_defs): Declare.
12537 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
12539 (df_simulate_find_noclobber_defs): New function.
12541 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
12543 * config/i386/i386.md: Use {} around multi-line preparation statements.
12545 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12547 * c-tree.h (push_init_level, pop_init_level, set_init_index)
12548 (process_init_element): New argument of type struct obstack *.
12550 * c-typeck.c (push_init_level, pop_init_level, set_designator)
12551 (set_init_index, set_init_label, set_nonincremental_init)
12552 (set_nonincremental_init_from_string, find_init_member)
12553 (output_init_element, output_pending_init_elements)
12554 (process_init_element): New argument braced_init_obstack. Pass it
12556 (push_range_stack, add_pending_init): New argument
12557 braced_init_obstack. Use obstack allocation.
12559 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
12560 braced_init_obstack. Pass it down.
12561 (c_parser_braced_init): New variables ret, braced_init_obstack.
12562 Initialize obstack, pass it down and finally free it.
12564 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12566 PR middle-end/29274
12567 * tree-pass.h (pass_optimize_widening_mul): Declare.
12568 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12569 gate_optimize_widening_mul): New static functions.
12570 (pass_optimize_widening_mul): New.
12571 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12572 <case MULT_EXPR>: Remove support for widening multiplies.
12573 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12574 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12575 simplify_gen_unary rather than directly building extensions.
12576 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12578 * expmed.c (expand_widening_mult): New function.
12579 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12581 2010-04-21 Jan Hubicka <jh@suse.cz>
12583 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12584 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12585 * lto-wpa-fixup.c: Remove.
12586 * Makefile.in (lto-wpa-fixup.o): Remove.
12587 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12588 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12589 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12591 2010-04-21 Jan Hubicka <jh@suse.cz>
12593 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12594 add write_optimization_summary, read_optimization_summary.
12595 (ipa_write_summaries_of_cgraph_node_set): Remove.
12596 (ipa_write_optimization_summaries): Declare.
12597 (ipa_read_optimization_summaries): Declare.
12598 * ipa-cp.c (pass_ipa_cp): Update.
12599 * ipa-reference.c (pass_ipa_reference): Update.
12600 * ipa-pure-const.c (pass_ipa_pure_const): Update.
12601 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12603 * ipa-inline.c (pass_ipa_inline): Update.
12604 * ipa.c (pass_ipa_whole_program): Update.
12605 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12606 * passes.c (ipa_write_summaries_1): Do not test wpa.
12607 (ipa_write_optimization_summaries_1): New.
12608 (ipa_write_optimization_summaries): New.
12609 (ipa_read_summaries): Do not test ltrans.
12610 (ipa_read_optimization_summaries_1): New.
12611 (ipa_read_optimization_summaries): New.
12613 2010-04-21 Jan Hubicka <jh@suse.cz>
12615 * lto-cgraph.c (lto_output_node): Do not output comdat groups
12616 for boundary nodes.
12617 (output_cgraph): Do not arrange comdat groups for boundary nodes.
12619 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12622 * dwarf2out.c (add_name_and_src_coords_attributes): Add
12623 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
12625 2010-04-21 Jan Hubicka <jh@suse.cz>
12627 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
12629 2010-04-21 Jan Hubicka <jh@suse.cz>
12631 * varpool.c (decide_is_variable_needed): Variable is always needed
12634 2010-04-21 Jan Hubicka <jh@suse.cz>
12636 * opts.c (decode_options): Enable pure-const pass for whopr.
12638 2010-04-21 Jan Hubicka <jh@suse.cz>
12640 * cgraph.c (dump_cgraph_node): Dump also assembler name.
12641 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
12643 (cgraph_decide_inlining): Do not expect callee to be removed in all
12646 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
12648 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
12650 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12652 * config/i386/i386.md (x86_shrd): Add athlon_decode and
12653 amdfam10_decode attributes.
12655 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12657 PR middle-end/43570
12658 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
12659 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
12660 (lower_copyprivate_clauses): Use private var in outer
12661 context instead of original var. Make sure the types
12662 are correct for VLAs.
12664 2010-04-21 Richard Guenther <rguenther@suse.de>
12666 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
12667 to non-pointer objects.
12669 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12671 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
12672 last chain entry if it starts with the still current label.
12673 (add_location_or_const_value_attribute): Check that
12674 loc_list->first->next is NULL instead of comparing ->first with ->last.
12675 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12676 to add_var_loc_to_decl.
12678 * dwarf2out.c (output_call_frame_info): For dw_cie_version
12679 >= 4 add also address size and segment size fields into CIE header.
12681 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12682 long as address size is the same as sizeof (void *) and
12684 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
12685 address size or segment size is unexpected, return DW_EH_PE_omit.
12686 (classify_object_over_fdes): If get_cie_encoding returned
12687 DW_EH_PE_omit, return -1.
12688 (init_object): If classify_object_over_fdes returned -1,
12689 pretend there were no FDEs at all.
12691 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12693 * config/i386/i386.md (bswap<mode>2): Macroize expander from
12694 bswap{si,di}2 using SWI48 mode iterator.
12695 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12696 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
12697 set modrm attribute of bswap insn to 0 and remove length attribute.
12698 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12699 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
12700 set mode attribute to <MODE> and remove length attribute.
12702 2010-04-20 James E. Wilson <wilson@codesourcery.com>
12704 PR rtl-optimization/43520
12705 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12706 zero available registers.
12708 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12710 * builtins.c (fold_builtin_cproj): Fold more cases.
12712 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12714 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12715 (fold_builtin_1): Fold builtin cproj.
12716 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12717 Use ATTR_CONST_NOTHROW_LIST.
12719 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
12721 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12722 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
12723 ffsi2_no_cmove for !TARGET_CMOVE.
12724 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
12725 (ffssi2): Remove expander.
12726 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12728 (ctz<mode>2): Ditto from ctz{si,di}2.
12729 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12731 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12734 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12736 * dwarf2out.c (AT_linkage_name): Define.
12737 (clone_as_declaration): Handle DW_AT_linkage_name.
12738 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12739 of DW_AT_MIPS_linkage_name.
12740 (move_linkage_attr): Likewise.
12741 (dwarf2out_finish): Likewise.
12743 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
12745 PR middle-end/41952
12746 * fold-const.c (fold_comparison): New folding rule.
12748 2010-04-20 Anatoly Sokolov <aesok@post.ru>
12750 * double-int.h (double_int_setbit): Declare.
12751 * double-int.c (double_int_setbit): New function.
12752 * rtl.h (immed_double_int_const): Declare.
12753 * emit-rtl.c (immed_double_int_const): New function.
12754 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12755 and immed_double_int_const functions.
12756 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12757 expand_copysign_bit): (Ditto.).
12758 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12759 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12760 * dojump.c (prefer_and_bit_test): (Ditto.).
12761 * expr.c (convert_modes, reduce_to_bit_field_precision,
12762 const_vector_from_tree): (Ditto.).
12763 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12765 2010-04-20 Jan Hubicka <jh@suse.cz>
12767 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12768 (dump_cgraph_node): Dump new flags.
12769 * cgraph.h (struct cgraph_node): Add flags
12770 reachable_from_other_partition and in_other_partition.
12771 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12772 other partition can not be removed.
12773 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12774 the other partition must be output; silence sanity checking on
12775 leaking functions bodies from other paritition.
12776 * lto-cgraph.c (reachable_from_other_partition_p): New function.
12777 (lto_output_node): Output new flags; do not sanity check that inline
12778 clones are output; drop lto_forced_extern_inline_p code; do not mock
12779 visibility flags at partition boundaries.
12780 (add_node_to): New function.
12781 (output_cgraph): Use it to sort functions so masters appear before
12783 (input_overwrite_node): Input new flags.
12784 * passes.c (ipa_write_summaries): Do not call
12785 lto_new_extern_inline_states.
12786 * lto-section-out.c (forced_extern_inline,
12787 lto_new_extern_inline_states lto_delete_extern_inline_states,
12788 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12789 * lto-streamer.h (lto_new_extern_inline_states,
12790 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12791 lto_forced_extern_inline_p): Kill.
12793 2010-04-20 Richard Guenther <rguenther@suse.de>
12795 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12796 from vars that can have pointers.
12797 (process_constraint): Dump useless constraints.
12799 2010-04-20 Richard Guenther <rguenther@suse.de>
12801 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12802 (dump_sa_points_to_info): Remove asserts.
12803 (init_base_vars): nothing_id isn't an escape point nor does it
12806 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12808 * tree.h (TYPE_REF_IS_RVALUE): Define.
12809 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12810 should_move_die_to_comdat, prune_unused_types_walk): Handle
12811 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12812 (modified_type_die, gen_reference_type_die): Emit
12813 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12814 if TYPE_REF_IS_RVALUE and -gdwarf-4.
12816 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12819 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12820 calls for -fpic -m31 if they have been sibcall optimized.
12822 2010-04-19 James E. Wilson <wilson@codesourcery.com>
12824 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12825 ar.lc fixed and call-used.
12827 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12829 2010-04-19 Jan Hubicka <jh@suse.cz>
12831 * opts.c (decode_options): Disable whpr incompatible passes.
12832 * lto/lto.c (lto_1_to_1_map): Skip clones.
12833 (read_cgraph_and_symbols): Do not mark everything as needed.
12834 (do_whole_program_analysis): Do map only after optimizing;
12835 set proper cgraph_state; use passmanager.
12837 2010-04-19 DJ Delorie <dj@redhat.com>
12839 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12840 POINTER_PLUS_EXPR and fix them.
12842 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
12844 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12845 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12846 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12847 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12848 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12849 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12850 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12851 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12852 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12853 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12854 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12856 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
12858 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12859 (check_cond_move_block): Likewise.
12860 (cond_move_process_if_block): Likewise.
12861 (noce_find_if_block): Improve formatting.
12862 (find_if_header): Pass 0 to memset and tweak conditions.
12863 (cond_exec_find_if_block): Fix long lines and tweak conditions.
12865 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12867 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12870 PR middle-end/43337
12871 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12872 with non-local decl doesn't need chain.
12874 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
12876 * ira-color.c (allocno_reload_assign): Avoid accumulating
12877 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12879 2010-04-19 Martin Jambor <mjambor@suse.cz>
12881 * gimple.h (create_tmp_reg): Declare.
12882 * gimplify.c (create_tmp_reg): New function.
12883 (gimplify_return_expr): Use create_tmp_reg.
12884 (gimplify_omp_atomic): Likewise.
12885 (gimple_regimplify_operands): Likewise.
12886 * tree-dfa.c (make_rename_temp): Likewise.
12887 * tree-predcom.c (predcom_tmp_var): Likewise.
12888 (reassociate_to_the_same_stmt): Likewise.
12889 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12890 (get_replaced_param_substitute): Likewise.
12891 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12892 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12893 * tree-ssa-pre.c (get_representative_for): Likewise.
12894 (create_expression_by_pieces): Likewise.
12895 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12896 (create_tailcall_accumulator): Likewise.
12898 2010-04-19 Martin Jambor <mjambor@suse.cz>
12900 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12902 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12904 2010-04-19 Richard Guenther <rguenther@suse.de>
12906 PR tree-optimization/43796
12907 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12908 from SCEV in the lattice.
12909 (vrp_visit_phi_node): Dump change.
12911 2010-04-19 Richard Guenther <rguenther@suse.de>
12913 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12914 * configure: Re-generated.
12916 2010-04-19 Richard Guenther <rguenther@suse.de>
12918 PR tree-optimization/43783
12919 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12920 constant ARRAY_REF operands two and three if possible.
12922 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
12925 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12927 2010-04-19 Jie Zhang <jie@codesourcery.com>
12930 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12932 2010-04-19 Ira Rosen <irar@il.ibm.com>
12934 PR tree-optimization/37027
12935 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12936 and macro to access it.
12937 (vectorizable_reduction): Add argument.
12938 (vect_get_slp_defs): Likewise.
12939 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12940 statements for possible use in SLP.
12941 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12942 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12943 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12945 (vectorizable_reduction): Likewise.
12946 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12948 (vectorizable_type_demotion, vectorizable_type_promotion,
12949 vectorizable_store): Likewise.
12950 (vect_analyze_stmt): Update call to vectorizable_reduction.
12951 (vect_transform_stmt): Likewise.
12952 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12953 (vect_build_slp_tree): Fix indentation. Check that there are no loads
12954 from different interleaving chains in same node.
12955 (vect_slp_rearrange_stmts): New function.
12956 (vect_supported_load_permutation_p): Allow load permutations for
12957 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12958 inside SLP nodes if necessary.
12959 (vect_analyze_slp_instance): Handle reductions.
12960 (vect_analyze_slp): Try to build SLP instances originating from groups
12962 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12963 (vect_get_constant_vectors): Create initial vectors for reductions
12964 according to reduction code. Add new argument.
12965 (vect_get_slp_defs): Add new argument, pass it to
12966 vect_get_constant_vectors.
12967 (vect_schedule_slp_instance): Remove SLP tree root statements.
12969 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12971 * tree.h (ENUM_IS_SCOPED): Define.
12972 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12973 for ENUM_IS_SCOPED enums.
12975 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
12977 * fold-const.c (fold_comparison): Use ssizetype.
12978 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12979 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12980 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12981 * tree-object-size.c (compute_object_sizes): Use size_type_node.
12983 * tree.h (initialize_sizetypes): Remove parameter.
12984 (build_common_tree_nodes): Remove second parameter.
12985 * stor-layout.c (initialize_sizetypes): Remove parameter.
12986 Always create an unsigned type.
12987 (set_sizetype): Assert that the passed type is unsigned and simplify.
12988 * tree.c (build_common_tree_nodes): Remove second parameter.
12989 Adjust call to initialize_sizetypes.
12990 * c-decl.c (c_init_decl_processing): Remove second argument in call to
12991 build_common_tree_nodes.
12993 2010-04-18 Matthias Klose <doko@ubuntu.com>
12995 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
12997 2010-04-18 Ira Rosen <irar@il.ibm.com>
12999 PR tree-optimization/43771
13000 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13001 load permutation doesn't have gaps.
13003 2010-04-18 Jan Hubicka <jh@suse.cz>
13005 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13006 (sse_prologue_save_insn expander): Use new pattern.
13007 (sse_prologue_save_insn1): New pattern and splitter.
13008 (sse_prologue_save_insn): Update to deal also with 64bit aligned
13010 * i386.c (setup_incoming_varargs_64): Do not compute jump
13012 (ix86_gimplify_va_arg): Update alignment needed.
13013 (ix86_local_alignment): Do not align all local arrays to 128bit.
13015 2010-04-17 Jan Hubicka <jh@suse.cz>
13017 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13019 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13021 * arm.md (negdi2): Remove redundant code to force values into a
13024 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13026 * arm/bpabi.S: Add EABI alignment attributes to objects.
13027 * arm/bpabi-v6m.S: Likewise.
13028 * arm/crti.asm: Likewise.
13029 * arm/crtn.asm: Likewise.
13030 * arm/lib1funcs.asm: Likewise.
13031 * arm/libunwind.S: Likewise.
13033 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13035 * arm-protos.h (tune_params): New structure.
13036 * arm.c (current_tune): New variable.
13037 (arm_constant_limit): Delete.
13038 (struct processors): Add pointer to the tune parameters.
13039 (arm_slowmul_tune): New tuning option.
13040 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13041 (all_cores): Adjust to pick up the tuning model.
13042 (arm_constant_limit): New function.
13043 (arm_override_options): Select the appropriate tuning model. Delete
13044 initialization of arm_const_limit.
13045 (arm_split_constant): Use the new constant-limit model.
13046 (arm_rtx_costs): Pick up the current tuning model.
13047 * arm.md (is_strongarm, is_xscale): Delete.
13048 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13049 for Xscale variant architectures.
13050 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13052 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13054 * config/arm/arm.c (arm_gen_constant): Remove unused variable
13056 (arm_rtx_costs_1): Remove unused variable extra_cost.
13057 (arm_unwind_emit_set): Use variable offset.
13058 (thumb1_output_casesi): Remove unused variable flags.
13060 2010-04-16 Jeff Law <law@redhat.com>
13062 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13063 needing assignment rather than doing a two-phase assignment. Remove
13064 unused variable 'm'.
13066 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13069 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13071 2010-04-16 Doug Kwan <dougkwan@google.com>
13073 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13074 (next_operand_entry_id): New static variable.
13075 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13076 (add_to_ops_vec): Assigned unique ID to operand entry.
13077 (struct oecount_s): New field ID.
13078 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13079 (undistribute_ops_list): Assign unique IDs to oecounts.
13080 (init_reassoc): reset next_operand_entry_id.
13082 2010-04-16 Doug Kwan <dougkwan@google.com>
13084 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13085 missing left parenthesis.
13087 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
13089 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13090 *btdi_rex64 using SWI48 mode iterator.
13091 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13092 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13093 *jcc_btdi_mask_rex64.
13095 2010-04-16 Anatoly Sokolov <aesok@post.ru>
13097 * double-int.h (tree_to_double_int): Convert to macro.
13098 * double-int.c (tree_to_double_int): Remove.
13100 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13103 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13104 with want_address 2 and in case a single element list might be
13105 possible, call it again with want_address 0.
13107 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13109 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13110 case 'W' print operands for HI mode.
13111 * config/h8300/h8300.h (Y0, Y2) : New constraints.
13112 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13113 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13114 * config/h8300/predicate.md (bit_register_indirect_operand): New.
13116 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13118 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13119 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13120 #xx:3 and #xx:4 mode.
13122 * config/h8300/h8300.md (inverted load with HImode dest): Add
13123 support for H8300SX.
13125 * config/h8300/predicate.md (bit_operand): Allow immediate values that
13126 satisfy 'U' constraint.
13128 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13130 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13131 * configure: Regenerate.
13132 * config.in: Regenerate.
13133 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13136 2010-04-16 Richard Guenther <rguenther@suse.de>
13138 * tree.h (struct tree_decl_minimal): Move pt_uid ...
13139 (struct tree_decl_common): ... here.
13140 (DECL_PT_UID): Adjust.
13141 (SET_DECL_PT_UID): Likewise.
13142 (DECL_PT_UID_SET_P): Likewise.
13144 2010-04-16 Richard Guenther <rguenther@suse.de>
13146 PR tree-optimization/43572
13147 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13148 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13149 * tree-flow.h (is_call_clobbered): Remove.
13150 * tree-flow-inline.h (is_call_clobbered): Likewise.
13151 * tree-dfa.c (dump_variable): Do not dump call clobber state.
13152 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13153 (execute_return_slot_opt): Adjust.
13154 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13155 check for call clobbered vars here.
13156 (find_tail_calls): Move tailcall verification to the
13159 2010-04-16 Diego Novillo <dnovillo@google.com>
13161 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13163 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13166 * config/arm/arm.md (cbranchqi4): New pattern.
13167 * config/arm/predicates.md (const0_operand,
13168 cbranchqi4_comparison_operator): New predicates.
13170 2010-04-16 Richard Guenther <rguenther@suse.de>
13172 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13173 (dump_gimple_stmt): Likewise.
13175 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13177 * recog.h (struct recog_data): New field is_operator.
13178 (struct insn_operand_data): New field is_operator.
13179 * recog.c (extract_insn): Set recog_data.is_operator.
13180 * genoutput.c (output_operand_data): Emit code to set the
13182 * reload.c (find_reloads): Use it rather than testing for an
13183 empty constraint string.
13186 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13187 If the previous insn is a cbranchsi4_insn with the same arguments,
13188 omit the compare instruction.
13190 * config/arm/arm.md (addsi3_cbranch): If destination is a high
13191 register, inputs must be low registers and we need a low register
13192 scratch. Handle alternative 2 like alternative 3.
13194 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13196 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13197 don't call get_addr on both. If one expression is a VALUE and
13198 the other a REG, check VALUE's locs if the REG isn't among them.
13200 2010-04-16 Christian Bruel <christian.bruel@st.com>
13202 * config/sh/sh.h (sh_frame_pointer_required): New function.
13203 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
13204 (flag_omit_frame_pointer) Set.
13205 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
13206 (rounded_frame_size): Adjust size with outgoing_args_size.
13207 (sh_set_return_address): Must return from stack pointer.
13208 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
13209 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
13210 (ACCUMULATE_OUTGOING_ARGS): Define.
13211 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
13212 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
13214 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13217 * config/sh/sh.c (sh_legitimize_reload_address): Use
13218 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
13219 Remove a unneeded check for offset_base.
13221 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
13223 * configure: Regenerated.
13225 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13227 * config/s390/s390.c (s390_call_save_register_used): Switch back
13228 to HARD_REGNO_NREGS.
13230 2010-04-15 Richard Guenther <rguenther@suse.de>
13232 * alias.c (alias_set_subset_of): Handle alias-set zero
13235 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
13236 Julian Brown <julian@codesourcery.com>
13238 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
13239 alternatives according to use of high and low regs.
13240 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13241 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
13242 optimizing for size on Thumb-2.
13244 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
13246 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
13248 2010-04-15 Richard Guenther <rguenther@suse.de>
13250 * tree-ssa-structalias.c (struct variable_info): Add
13252 (new_var_info): Initialize it.
13253 (dump_constraints): Support printing last added constraints.
13254 (debug_constraints): Adjust.
13255 (dump_constraint_graph): Likewise.
13256 (make_heapvar_for): Check for NULL cfun.
13257 (get_function_part_constraint): New function.
13258 (get_fi_for_callee): Likewise.
13259 (find_func_aliases): Properly implement IPA PTA constraints.
13260 (process_ipa_clobber): New function.
13261 (find_func_clobbers): Likewise.
13262 (insert_into_field_list_sorted): Remove.
13263 (create_function_info_for): Properly allocate vars for IPA mode.
13264 Do not use insert_into_field_list_sorted.
13265 (create_variable_info_for): Properly generate constraints for
13266 global vars in IPA mode.
13267 (dump_solution_for_var): Always dump the solution.
13268 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13269 (find_what_var_points_to): Adjust.
13270 (pt_solution_set): Change.
13271 (pt_solution_ior_into): New function.
13272 (pt_solution_empty_p): Export.
13273 (pt_solution_includes_global): Adjust.
13274 (pt_solution_includes_1): Likewise.
13275 (pt_solutions_intersect_1): Likewise.
13276 (dump_sa_points_to_info): Check some invariants.
13277 (solve_constraints): Move constraint dumping ...
13278 (compute_points_to_sets): ... here.
13279 (ipa_pta_execute): ... and here.
13280 (compute_may_aliases): Do not re-compute points-to info
13281 locally if IPA info is available.
13282 (ipa_escaped_pt): New global var.
13283 (ipa_pta_execute): Properly implement IPA PTA.
13284 * tree-into-ssa.c (dump_decl_set): Support dumping
13285 decls not in referenced-vars.
13286 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13287 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13288 (dump_points_to_solution): Likewise.
13289 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13290 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13291 (remap_gimple_stmt): Reset call clobber/use information if necessary.
13292 (copy_decl_to_var): Copy DECL_PT_UID.
13293 (copy_result_decl_to_var): Likewise.
13294 * tree.c (make_node_stat): Initialize DECL_PT_UID.
13295 (copy_node_stat): Copy it.
13296 * tree.h (DECL_PT_UID): New macro.
13297 (SET_DECL_PT_UID): Likewise.
13298 (DECL_PT_UID_SET_P): Likewise.
13299 (struct tree_decl_minimal): Add pt_uid member.
13300 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13301 (pt_solution_empty_p): Declare.
13302 (pt_solution_set): Adjust.
13303 (ipa_escaped_pt): Declare.
13304 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13305 * gimple-pretty-print.c (pp_points_to_solution): New function.
13306 (dump_gimple_call): Dump call clobber/use information.
13307 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13308 * tree-pass.h (TDF_ALIAS): New dump option.
13309 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13310 * doc/invoke.texi (-fipa-pta): Update documentation.
13312 2010-04-15 Richard Guenther <rguenther@suse.de>
13314 * Makefile.in (OBJS-common): Add gimple-fold.o.
13315 (gimple-fold.o): New rule.
13316 * tree.h (maybe_fold_offset_to_reference,
13317 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13319 * gimple.h: ... here.
13320 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13321 may_propagate_address_into_dereference): Move prototypes ...
13322 * gimple.h: ... here.
13323 * tree-ssa-ccp.c (get_symbol_constant_value,
13324 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13325 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13326 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13327 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13328 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13329 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13330 gimplify_and_update_call_from_tree): Move ...
13331 * gimple-fold.c: ... here. New file.
13332 (ccp_fold_builtin): Rename to ...
13333 (gimple_fold_builtin): ... this.
13334 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13336 2010-04-15 Richard Guenther <rguenther@suse.de>
13338 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
13339 fit_double_type, force_fit_type_double, add_double_with_sign,
13340 neg_double, mul_double_with_sign, lshift_double, rshift_double,
13341 lrotate_double, rrotate_double, div_and_round_double): Move ...
13342 * double-int.c: ... here.
13343 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
13344 add_double, neg_double, mul_double_with_sign, mul_double,
13345 lshift_double, rshift_double, lrotate_double, rrotate_double,
13346 div_and_round_double): Move prototypes ...
13347 * double-int.h: ... here.
13349 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
13352 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
13353 matching constraints to ensure inputs match the output.
13355 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13358 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
13359 in an input-only operand.
13361 2010-04-15 Anatoly Sokolov <aesok@post.ru>
13363 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
13364 (double_int_not, double_int_lshift, double_int_rshift): Declare.
13365 (double_int_negative_p): Convert to static inline function.
13366 * double-int.c (double_int_lshift, double_int_lshift): New functions.
13367 (double_int_negative_p): Remove.
13368 * tree.h (lshift_double, rshift_double):
13369 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
13370 * fold-const.c (fold_convert_const_int_from_real,
13371 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
13372 (lshift_double): Change type of arith argument to bool.
13373 (rshift_double): Change type of arith argument to bool. Correct
13375 * expmed.c (mask_rtx, lshift_value): (Ditto.).
13377 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
13380 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
13381 at the start and end of the then/else blocks, and omit them from the
13383 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
13384 argument; all callers changed. Pass zero to old_insns_match_p instead.
13385 (flow_find_head_matching_sequence): New function.
13386 (old_insns_match_p): Check REG_EH_REGION notes for calls.
13387 * basic-block.h (flow_find_cross_jump,
13388 flow_find_head_matching_sequence): Declare functions.
13390 2010-04-14 Jason Merrill <jason@redhat.com>
13393 * c-common.c (attribute_takes_identifier_p): New fn.
13394 * c-common.h: Declare it.
13396 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13398 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
13399 splitter condition.
13400 (*udivmod<mode>4): Ditto.
13402 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13404 * config/i386/i386.md (maxmin_int): Rename code attribute from
13405 maxminiprefix and update all users.
13406 (maxmin_float): Ditto from maxminfprefix.
13407 (logic): Ditto from logicprefix.
13408 (absneg_mnemonic): Ditto from absnegprefix.
13409 * config/i386/mmx.md: Update all users of maxminiprefix,
13410 maxminfprefix and logicprefix for rename.
13411 * config/i386/sse.md: Ditto.
13412 * config/i386/sync.md (sync_<code><mode>): Update for
13413 logicprefix rename.
13415 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13418 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
13419 warnings converted to errors.
13421 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13423 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
13424 used insn_type variable.
13425 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
13426 to avoid set-but-not-used warning.
13428 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13430 * df-core.c (df_ref_debug): Change format string placeholder
13432 * dwarf2asm.c (dw2_asm_output_data_raw,
13433 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
13434 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
13435 * dwarf2out.c (output_cfi, output_cfi_directive,
13436 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
13437 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
13439 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
13440 * print-rtl.c (print_rtx): Ditto.
13442 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13444 PR middle-end/42694
13445 * builtins.c (expand_builtin_pow_root): New function to expand pow
13446 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
13447 series of sqrt and cbrt calls under -ffast-math.
13448 (expand_builtin_pow): Call it.
13450 2010-04-14 Michael Matz <matz@suse.de>
13452 PR tree-optimization/42963
13453 * tree-cfg.c (touched_switch_bbs): New static variable.
13454 (group_case_labels_stmt): New function broken out from ...
13455 (group_case_labels): ... here, use the above.
13456 (start_recording_case_labels): Allocate touched_switch_bbs.
13457 (end_recording_case_labels): Deallocate it, call
13458 group_case_labels_stmt.
13459 (gimple_redirect_edge_and_branch): Remember index of affected BB.
13461 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13463 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
13464 from insn template.
13466 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13468 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
13470 2010-04-13 Jan Hubicka <jh@suse.cz>
13472 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
13473 of optimized out static functions.
13474 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
13475 cost computation. Also sanity check for overflows.
13476 (update_caller_keys): Update cgraph_edge_badness call; properly
13477 update fibheap and sanity check that it is up to date.
13478 (add_new_edges_to_heap): Update cgraph_edge_badness.
13479 (cgraph_decide_inlining_of_small_function): Likewise;
13480 add sanity checking that badness in heap is up to date;
13481 improve dumping of reason; Update badness of calls to the
13482 offline copy of function currently inlined; dump badness
13483 of functions not inlined because of unit growth limits.
13485 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
13487 PR middle-end/32628
13488 * c-common.c (pointer_int_sum): Disregard overflow that occured only
13489 because of sign-extension change when converting to sizetype here...
13490 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
13492 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
13493 the folding to constants. Remove redundant final conversion.
13494 (fold_binary) <associate>: Do not associate if the re-association of
13495 constants alone overflows.
13496 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
13497 to the end of the list.
13498 (multiple_of_p) <COND_EXPR>: New case.
13500 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13502 * opt-functions.awk (opt_sanitized_name): New.
13504 * optc-gen.awk: Use it
13505 * opth-gen.awk: Use it.
13507 2010-04-13 Martin Jambor <mjambor@suse.cz>
13509 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
13510 (sra_modify_assign): Delete stmts loading dead data even if racc has no
13511 children. Call replace_uses_with_default_def_ssa_name to handle
13514 2010-04-13 Michael Matz <matz@suse.de>
13516 PR middle-end/43730
13517 * builtins.c (expand_builtin_interclass_mathfn): Also create
13518 a register if the predicate doesn't match.
13520 2010-04-13 Diego Novillo <dnovillo@google.com>
13522 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
13523 * c-pch.c: Include timevar.h.
13524 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
13525 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
13526 * ggc-common.c: Include timevar.h.
13527 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
13528 * timevar.def (TV_PCH_SAVE): Define.
13529 (TV_PCH_CPP_SAVE): Define.
13530 (TV_PCH_PTR_REALLOC): Define.
13531 (TV_PCH_PTR_SORT): Define.
13532 (TV_PCH_RESTORE): Define.
13533 (TV_PCH_CPP_RESTORE): Define.
13535 2010-04-13 Michael Matz <matz@suse.de>
13537 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
13539 (can_reassociate_p): New function.
13540 (break_up_subtract_bb, reassociate_bb): Use it.
13542 2010-04-13 Richard Guenther <rguenther@suse.de>
13545 * builtins.c (c_readstr): Fix assert.
13547 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
13549 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
13550 when generating cltd insn.
13552 (*ashl<mode>3_1): Remove special handling for register operand 2.
13553 (*ashlsi3_1_zext): Ditto.
13554 (*ashlhi3_1): Ditto.
13555 (*ashlhi3_1_lea): Ditto.
13556 (*ashlqi3_1): Ditto.
13557 (*ashlqi3_1_lea): Ditto.
13558 (*<shiftrt_insn><mode>3_1): Ditto.
13559 (*<shiftrt_insn>si3_1_zext): Ditto.
13560 (*<shiftrt_insn>qi3_1_slp): Ditto.
13561 (*<rotate_insn><mode>3_1): Ditto.
13562 (*<rotate_insn>si3_1_zext): Ditto.
13563 (*<rotate_insn>qi3_1_slp): Ditto.
13565 2010-04-13 Richard Guenther <rguenther@suse.de>
13567 * tree-ssa-structalias.c (callused_id): Remove.
13568 (call_stmt_vars): New.
13569 (get_call_vi): Likewise.
13570 (lookup_call_use_vi): Likewise.
13571 (lookup_call_clobber_vi): Likewise.
13572 (get_call_use_vi): Likewise.
13573 (get_call_clobber_vi): Likewise.
13574 (make_transitive_closure_constraints): Likewise.
13575 (handle_const_call): Adjust to do per-call call-used handling.
13576 (handle_pure_call): Likewise.
13577 (find_what_var_points_to): Remove general callused handling.
13578 (init_base_vars): Likewise.
13579 (init_alias_vars): Initialize call_stmt_vars.
13580 (compute_points_to_sets): Process call-used and call-clobbered
13581 vars for call statements.
13582 (delete_points_to_sets): Free call_stmt_vars.
13584 2010-04-13 Richard Guenther <rguenther@suse.de>
13586 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13587 Only add RW dependence for dependence distance zero.
13588 Adjust maximal vectorization factor according to dependences.
13589 Move alignment handling ...
13590 (vect_find_same_alignment_drs): ... here. New function.
13591 (vect_analyze_data_ref_dependences): Adjust.
13592 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13593 (vect_analyze_data_refs): Adjust minimal vectorization factor
13594 according to data references.
13595 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13596 dependences before determining the vectorization factor.
13597 Analyze alignment after determining the vectorization factor.
13598 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13599 dependences before alignment.
13600 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13602 (vect_analyze_data_refs): Likewise.
13603 (MAX_VECTORIZATION_FACTOR): New define.
13605 2010-04-13 Duncan Sands <baldrick@free.fr>
13607 * except.h (lang_eh_type_covers): Remove.
13608 * except.c (lang_eh_type_covers): Likewise.
13610 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13611 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13613 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
13614 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
13615 UNITS_PER_LONG where it is ABI relevant.
13616 (s390_return_addr_rtx): Likewise.
13617 (s390_back_chain_rtx): Likewise.
13618 (s390_frame_area): Likewise.
13619 (s390_frame_info): Likewise.
13620 (s390_initial_elimination_offset): Likewise.
13621 (save_gprs): Likewise.
13622 (s390_emit_prologue): Likewise.
13623 (s390_emit_epilogue): Likewise.
13624 (s390_function_arg_advance): Likewise.
13625 (s390_function_arg): Likewise.
13626 (s390_va_start): Likewise.
13627 (s390_gimplify_va_arg): Likewise.
13628 (s390_function_profiler): Likewise.
13629 (s390_optimize_prologue): Likewise.
13630 (s390_rtx_costs): Likewise.
13631 (s390_secondary_reload): Likewise.
13632 (s390_promote_function_mode): Likewise.
13633 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
13634 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
13635 registers available.
13636 (s390_unwind_word_mode): New function.
13637 (s390_function_value): Split 64 bit values into register pair if
13638 used as return value.
13639 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
13640 function call parameters. Handle parallels.
13641 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
13642 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
13643 (DWARF_CIE_DATA_ALIGNMENT): New macro.
13644 (s390_expand_setmem): Remove unused variable src_addr.
13645 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
13646 deal with 64 bit registers.
13647 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
13648 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
13649 (UNITS_PER_LONG): New macro.
13650 * libjava/include/s390-signal.h: Define extended ucontext
13651 structure containing the upper halfs of the 64 bit registers.
13653 2010-04-13 Simon Baldwin <simonb@google.com>
13655 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
13657 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
13659 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
13660 rvalue on the RHS if the LHS is of a non-renamable type.
13661 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
13663 2010-04-13 Matthias Klose <doko@ubuntu.com>
13665 * gcc.c (cc1_options): Handle -iplugindir before processing
13666 the cc1 spec. Only add -iplugindir once.
13667 (cpp_unique_options): Add -iplugindir option if -fplugin* options
13669 * common.opt (iplugindir): Remove `Separate' property, initialize.
13670 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13672 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13673 (distclean): Remove plugin dir.
13674 * doc/invoke.texi: Document -iplugindir.
13676 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
13678 * doc/plugins.texi (Loading Plugins): Document short
13679 -fplugin=foo option.
13680 (Plugin API): Mention default_plugin_dir_name function.
13682 * gcc.c (find_file_spec_function): Add new declaration.
13683 (static_spec_func): Use it for "find-file".
13684 (find_file_spec_function): Add new function.
13685 (cc1_options): Add -iplugindir option if -fplugin* options found.
13687 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13689 * plugin.c (add_new_plugin): Updated comment, and handle short
13691 (default_plugin_dir_name): Added new function.
13693 * common.opt (iplugindir): New option to set the plugin directory.
13695 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
13697 * config/i386/i386.md (any_rotate): New code iterator.
13698 (rotate_insn): New code attribute.
13700 (SWIM124): New mode iterator.
13701 (<rotate_insn>ti3): New expander.
13702 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13703 any_rotate code iterator.
13704 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13705 using any_rotate code iterator and SWIM124 mode iterator.
13706 (ix86_rotlti3): New insn_and_split pattern.
13707 (ix86_rotrti3): Ditto.
13708 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13709 ix86_rotl{di,ti}3 patterns.
13710 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13711 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13712 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13713 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13714 code iterator and SWI mode iterator.
13715 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13716 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13718 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13719 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13720 (bswap rotatert splitter): Add splitter.
13721 (bswap splitter): Macroize splitter using any_rotate code iterator.
13722 Add insn predicate to split only for TARGET_USE_XCHGB or when
13723 optimizing function for size.
13725 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13727 * config/pa/pa.c (emit_move_sequence): Remove use of
13728 deleted variable flag_argument_noalias.
13730 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13732 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13734 Add to unsupported targets list.
13735 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13736 sparc*-sun-solaris2.[567]* from target lists.
13737 * configure: Regenerate.
13738 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13740 Remove Solaris 7 patch references.
13741 (Specific, sparc-sun-solaris2.7): Removed.
13742 (sparc-sun-solaris2*): Update Solaris 7 example.
13743 (sparc64-*-solaris2*): Likewise.
13745 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13747 * config.build (alpha*-dec-osf4*): Remove.
13748 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13749 of obsolete configurations.
13750 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13752 * config/alpha/t-osf4: Renamed to ...
13753 * config/alpha/t-osf5: ... this.
13754 * config/alpha/osf.h: Renamed to ...
13755 * config/alpha/osf5.h: ... this.
13756 Merged old osf5.h contents.
13758 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13759 (EXTRA_SPECS): Removed.
13760 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13761 reflect removal of Tru64 UNIX V4.0/V5.0 support.
13764 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13766 * doc/contrib.texi (Contributors, Rainer Orth): Update.
13768 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
13771 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13772 __thiscall convention.
13774 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13776 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13778 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13780 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13782 * function.c (assign_parms_initialize_all): Add unused attribute
13785 2010-04-12 Richard Guenther <rguenther@suse.de>
13787 * gsstruct.def (GSS_CALL): New.
13788 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13789 * gimple.h: Include tree-ssa-alias.h.
13790 (struct gimple_statement_call): New.
13791 (union gimple_statement_struct_d): Add gimple_call member.
13792 (gimple_call_reset_alias_info): Declare.
13793 (gimple_call_use_set): New function.
13794 (gimple_call_clobber_set): Likewise.
13795 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13796 * gimple.c (gimple_call_reset_alias_info): New function.
13797 (gimple_build_call_1): Call it.
13798 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13799 * tree-inline.c (remap_gimple_stmt): Likewise.
13800 (expand_call_inline): Remove callused handling.
13801 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13802 * tree-dfa.c (dump_variable): Likewise.
13803 * tree-parloops.c (parallelize_loops): Likewise.
13804 * tree-ssa.c (init_tree_ssa): Likewise.
13805 (delete_tree_ssa): Likewise.
13806 * tree-flow-inline.h (is_call_used): Remove.
13807 * tree-flow.h (struct gimple_df): Remove callused member.
13808 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13809 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13810 (ref_maybe_used_by_call_p_1): Simplify.
13811 (call_may_clobber_ref_p_1): Likewise.
13812 * tree-ssa-structalias.c (compute_points_to_sets): Set
13813 the call stmt used and clobbered sets.
13814 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13815 (find_tail_calls): Verify the tail call.
13817 2010-04-12 Richard Guenther <rguenther@suse.de>
13819 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13820 single-iteration always-inline inlining.
13821 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13822 (cgraph_decide_inlining): Do not handle always-inline specially.
13823 (try_inline): Remove always-inline cycle detection special case.
13824 Do not recurse on always-inlines.
13825 (cgraph_early_inlining): Do not iterate if not optimizing.
13826 (cgraph_gate_early_inlining): remove.
13827 (pass_early_inline): Run unconditionally.
13828 (gate_cgraph_decide_inlining): New function.
13829 (pass_ipa_inline): Use it. Do not run the IPA inliner if
13830 not inlining or optimizing.
13831 (cgraph_decide_inlining_of_small_functions): Also consider
13832 always-inline functions.
13833 (cgraph_default_inline_p): Return true for nodes which should
13834 disregard inline limits.
13835 (estimate_function_body_sizes): Assume zero size and time for
13836 nodes which are marked as disregarding inline limits.
13837 (cgraph_decide_recursive_inlining): Do not perform recursive
13838 inlining on always-inline nodes.
13840 2010-04-12 Jakub Jelinek <jakub@redhat.com>
13843 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13844 for exprs satisfying handled_component_p.
13846 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
13848 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13849 non-constant aggregate elements.
13851 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13852 is a real initialization.
13854 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
13857 * c-decl.c (start_function): Move forward check for nested function.
13859 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
13861 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13862 * config/sh/sh.c: Include reload.h.
13863 (sh_legitimize_reload_address): New.
13864 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13865 sh_legitimize_reload_address.
13867 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13869 * config/sh/sh.md (*movqi_pop): New insn pattern.
13870 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13872 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13874 * config/i386/i386.md (any_shiftrt): New code iterator.
13875 (shiftrt_insn): New code attribute.
13877 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13878 using any_shiftrt code iterator.
13879 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13880 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13881 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13882 pattern from corresponding peephole2 patterns.
13883 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13884 using any_shiftrt code iterator.
13885 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13886 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13887 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13888 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13889 *{ashr,lshr}<mode>3_cmp_zext.
13890 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13892 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13894 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13896 (*lshr<mode>3_cconly): Ditto.
13898 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13900 * config/i386/i386.md (lshr<mode>3): Macroize expander from
13901 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13902 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13903 pattern from *lshr{di,ti}3_1 and corresponding splitters using
13905 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13906 from corresponding peephole2 patterns.
13907 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13908 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13909 and *lshrdi3_1_rex64 using SWI mode iterator.
13910 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13911 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13912 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13913 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13914 and *lshrdi3_cmp_rex64 using SWI mode iterator.
13915 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13916 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13917 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13918 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13921 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
13923 * config/i386/i386.md (ashr<mode>3): Macroize expander from
13924 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13925 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13926 pattern from *ashr{di,ti}3_1 and corresponding splitters using
13928 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13929 from corresponding peephole2 patterns.
13930 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13931 (ashrsi3_cvt): Rename from ashrsi3_31.
13932 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13933 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13934 and x86_64_shift_adj_3 using SWI48 mode iterator.
13935 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13936 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13937 and *ashrdi3_1_rex64 using SWI mode iterator.
13938 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13939 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13940 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13941 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13942 and *ashrdi3_cmp_rex64 using SWI mode iterator.
13943 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13944 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13945 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13946 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13948 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13949 * config/i386/i386.c (ix86_split_ashr): Update for renamed
13950 x86_shift<mode>_adj_3 expanders.
13952 2010-04-10 Wei Guozhi <carrot@google.com>
13955 * config/arm/arm.c (arm_pic_static_addr): New function.
13956 (legitimize_pic_address): Call arm_pic_static_addr when it detects
13958 (arm_output_addr_const_extra): Output expression for new pattern.
13959 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13961 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
13963 * ira-costs.c (record_reg_classes): Ignore alternatives that are
13966 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13967 * web.c: Include "insn-config.h" and "recog.h".
13968 (union_match_dups): New function.
13969 (web_main): Call it.
13970 (union_defs): Don't try to recognize match_dups.
13972 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13973 if doing so would replace the entire pattern.
13975 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13979 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13980 and splitter pattern. Change splitter operand 1 predicate to
13983 2010-04-09 Martin Jambor <mjambor@suse.cz>
13985 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
13986 lattices are addresses of CONST_DECLs with the same initial value.
13987 (ipcp_print_all_lattices): Print values of CONST_DECLs.
13988 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13990 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
13991 Bernd Schmidt <bernds@codesourcery.com>
13993 * loop-invariant.c (replace_uses): New static function.
13994 (move_invariant_reg): Use it to ensure we can replace the uses.
13996 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
13998 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14000 (picochip_override_options): Enable section anchors only above -O1.
14001 (picochip_reorg): Fixed a couple of build warnings.
14003 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14005 * configure.ac (plugin -rdynamic test): Log result.
14006 * configure: Regenerate.
14007 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14008 (RDYNAMIC_SPEC): Define.
14009 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14011 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14013 * configure.ac: Determine Sun ld version numbers.
14014 (comdat_group): Restrict GNU ld version checks to gld.
14015 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14016 (enable_comdat): Support --enable-comdat.
14017 * configure: Regenerate.
14018 * doc/install.texi (Configuration): Document --enable-comdat.
14020 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14022 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
14023 * config/sol2-gld.h: ... here.
14024 * config.gcc (sparc*-*-solaris2*): Reflect this.
14025 (i[34567]86-*-solaris2*): Use it.
14027 2010-04-09 Steve Ellcey <sje@cup.hp.com>
14029 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14031 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14033 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14036 * diagnostic.c (diagnostic_initialize): Initialize
14037 some_warnings_are_errors.
14038 (diagnostic_finish): New.
14039 (diagnostic_action_after_output): Call it before exiting.
14040 (diagnostic_report_diagnostic): Do not print message here. Set
14041 some_warnings_are_errors.
14042 * diagnostic.h (diagnostic_context): Delete
14043 issue_warnings_are_errors_message. Add some_warnings_are_errors.
14044 (diagnostic_finish): Declare.
14045 * toplev.c (toplev_main): Call it before exit.
14047 2010-04-09 Jason Merrill <jason@redhat.com>
14050 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14051 for incomplete type.
14054 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14055 based on a warning flag.
14057 2010-04-09 Richard Guenther <rguenther@suse.de>
14059 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14061 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
14064 * varasm.c (default_assemble_visibility): Wrap vars that are
14065 set, but unused, by targets without GAS.
14066 * config/rs6000/rs6000.c (paired_emit_vector_compare):
14067 Remove set, but unused, vars.
14068 (rs6000_legitimize_tls_address): Likewise.
14069 (altivec_expand_dst_builtin): Likewise.
14070 * config/darwin.c (machopic_classify_symbol): Likewise.
14071 (machopic_indirection_name): Likewise.
14073 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14075 * config/i386/i386.md (DWI): New mode iterator.
14076 (S): New mode attribute.
14077 (shift_operand): Ditto.
14078 (shift_immediate_operand): Ditto.
14079 (ashl_input_operand): Ditto.
14080 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14081 using SDWIM mode iterator.
14082 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
14083 pattern from *ashl{di,ti}3_1 and corresponding splitters using
14085 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14086 from corresponding peephole2 patterns.
14087 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14088 and x86_64_shift_adj_1 using SWI48 mode iterator.
14089 (x86_shift<mode>_adj_2): Ditto.
14090 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14091 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14092 using SWI48 mode iterator.
14093 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14094 *ashldi3_cmp_rex64 using SWI mode iterator.
14095 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14096 *ashldi3_cconly_rex64 using SWI mode iterator.
14097 * config/i386/i386.c (ix86_split_ashl): Update for renamed
14098 x86_shift<mode>_adj_{1,2}.
14099 (ix86_split_ashr): Ditto.
14100 (ix86_split_lshr): Ditto.
14102 2010-04-09 Richard Guenther <rguenther@suse.de>
14104 * target.h (builtin_conversion): Pass in input and output types.
14105 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14106 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14107 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14108 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14110 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14112 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14114 2010-04-09 Richard Guenther <rguenther@suse.de>
14117 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14119 2010-04-09 Richard Guenther <rguenther@suse.de>
14121 * tree-vectorizer.h (struct _stmt_vec_info): Document
14122 that vectype is the type of the LHS.
14123 (supportable_widening_operation, supportable_narrowing_operation):
14124 Get both input and output vector types as arguments.
14125 (vect_is_simple_use_1): Declare.
14126 (get_same_sized_vectype): Likewise.
14127 * tree-vect-loop.c (vect_determine_vectorization_factor):
14128 Set STMT_VINFO_VECTYPE to the vector type of the def.
14129 (vectorizable_reduction): Adjust.
14130 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14131 Adjust. Specify the output vector type.
14132 (vect_pattern_recog_1): Adjust.
14133 * tree-vect-stmts.c (get_same_sized_vectype): New function.
14134 (vectorizable_call): Adjust.
14135 (vectorizable_conversion): Likewise.
14136 (vectorizable_operation): Likewise.
14137 (vectorizable_type_demotion): Likewise.
14138 (vectorizable_type_promotion): Likewise.
14139 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14141 (vect_is_simple_use_1): New function.
14142 (supportable_widening_operation): Get both input and output
14144 (supportable_narrowing_operation): Likewise.
14145 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14147 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
14149 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14150 __thiscall and _thiscall as predefined macros.
14151 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14152 thiscall attribute handling.
14153 (ix86_comp_type_attributes): Likewise.
14154 (ix86_function_regparm): Likewise.
14155 (ix86_return_pops_args): Likewise.
14156 (init_cumulative_args): Likewise.
14157 (find_drap_reg): Likewise.
14158 (ix86_static_chain): Likewise.
14159 (x86_this_parameter): Likewise.
14160 (x86_output_mi_thunk): Likewise.
14161 (ix86_attribute_table): Add description for thiscall attribute.
14162 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14163 * doc/extend.texi: Add documentation for thiscall.
14165 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14168 * c.opt (Wint-to-pointer-cast): Available in C++.
14169 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14171 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
14173 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14174 * calls.c (expand_call): Pass the function type to aggregate_value_p.
14175 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14176 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
14177 function type instead. Reorder and simplify checks.
14179 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14181 2010-04-08 Jing Yu <jingyu@google.com>
14182 Zdenek Dvorak <ook@ucw.cz>
14184 PR tree-optimization/42720
14185 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14186 loop unswitch conditions here from ...
14187 (tree_unswitch_single_loop): ... here.
14189 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14191 * tree-if-conv.c: Fix comments and simplify logic.
14193 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14195 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14196 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
14197 (main_tree_if_conversion): Update call to tree_if_conversion.
14199 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14202 * doc/invoke.texi (-b,-V): Delete.
14203 * doc/tm.texi: Do not mention -b.
14204 * gcc.c (display_help): Delete -b and -V.
14205 (process_command): Delete -b and -V.
14206 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
14208 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
14209 Wolfgang Gellerich <gellerich@de.ibm.com>
14211 Implement target hook for loop unrolling
14212 * target.h (loop_unroll_adjust): Add a new target hook function.
14213 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
14214 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
14215 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
14216 (s390_loop_unroll_adjust): Implement the new target hook for s390.
14217 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
14219 (decide_unroll_stupid): Likewise.
14221 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14224 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
14226 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14228 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
14229 (Specific, *-*-solaris2*): Likewise.
14230 Don't prefer Sun as over GNU as.
14232 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
14234 * config/s390/s390.c (override_options): Adjust the z10 defaults
14235 for max-unroll-times, max-completely-peeled-insns
14236 and max-completely-peel-times.
14238 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14240 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
14241 instructions for z10.
14242 (s390_expand_setmem): Likewise.
14243 (s390_expand_cmpmem): Likewise.
14245 2010-04-08 Richard Guenther <rguenther@suse.de>
14247 PR tree-optimization/43679
14248 * tree-ssa-pre.c (eliminate): Only propagate copies.
14250 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14253 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
14254 set but not used variable warning.
14256 2010-04-08 Wei Guozhi <carrot@google.com>
14259 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
14260 (arm_size_rtx_costs): Call the new function when optimized for size.
14262 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14265 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
14266 op0 is not a MEM, just return NULL instead of assertion
14268 (discover_nonconstant_array_refs): Don't walk debug stmts.
14270 2010-04-08 Doug Kwan <dougkwan@google.com>
14272 * configure.ac: Recognize gold and do not use its version number
14273 to test ld features.
14274 * configure: Regenerate.
14276 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
14278 PR middle-end/40815
14279 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14280 (negate_value): Move code to push elements to broken_up_substracts ...
14281 (eliminate_plus_minus_pair): ... here. Push operands that have no
14282 negative pair to plus_negates.
14283 (repropagate_negates, init_reassoc, fini_reassoc): Update.
14285 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14287 * doc/install.texi (Configuration): Move description of
14288 --enable-lto, --with-libelf*, --enable-gold from Java section to
14291 * doc/generic.texi (Working with declarations)
14292 (Function Properties, C and C++ Trees): Fix typos.
14293 * doc/sourcebuild.texi (Top Level): Likewise.
14295 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14298 * tree.h (DECL_READ_P): Define.
14299 (struct tree_decl_common): Add decl_read_flag.
14300 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14301 a set but not used warning.
14302 (merge_decls): Merge DECL_READ_P flag.
14303 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14304 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14305 * c-common.c (handle_used_attribute, handle_unused_attribute):
14307 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14309 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14311 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14312 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14313 c_parser_binary_expression, c_parser_cast_expression,
14314 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14315 Call default_function_array_read_conversion instead of
14316 default_function_array_conversion where needed.
14317 (c_parser_unary_expression, c_parser_conditional_expression,
14318 c_parser_postfix_expression_after_primary, c_parser_initelt):
14319 Likewise. Call mark_exp_read where needed.
14320 (c_parser_statement_after_labels, c_parser_asm_operands,
14321 c_parser_typeof_specifier, c_parser_sizeof_expression,
14322 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14324 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14326 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14327 (warn_unused_but_set_parameter): Default to warn_unused
14329 * doc/invoke.texi: Document -Wunused-but-set-variable and
14330 -Wunused-but-set-parameter.
14332 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14333 used count variable.
14334 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14335 when operandN variables aren't used in the body of the expander
14337 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
14338 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
14339 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
14340 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
14341 FOR_EACH_IMM_USE_ON_STMT): Likewise.
14342 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
14343 * tree.c (PROCESS_ARG): Likewise.
14345 2010-04-07 Simon Baldwin <simonb@google.com>
14347 * diagnostic.h (diagnostic_override_option_index): New macro to
14348 set a diagnostic's option_index.
14349 * c-tree.h (c_cpp_error): Add warning reason argument.
14350 * opts.c (_warning_as_error_callback): New.
14351 (register_warning_as_error_callback): Store callback for
14352 warnings enabled via enable_warning_as_error.
14353 (enable_warning_as_error): Call callback, minor code tidy.
14354 * opts.h (register_warning_as_error_callback): Declare.
14355 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
14356 response to -Werror=.
14357 (c_common_init_options): Register warning_as_error_callback in opts.c.
14358 * common.opt: Add -Wno-cpp option.
14359 * c-common.c (struct reason_option_codes_t): Map cpp warning
14360 reason codes to gcc option indexes.
14361 * (c_option_controlling_cpp_error): New function, lookup the gcc
14362 option index for a cpp warning reason code.
14363 * (c_cpp_error): Add warning reason argument, call
14364 c_option_controlling_cpp_error for diagnostic_override_option_index.
14365 * doc/invoke.texi: Document -Wno-cpp.
14367 2010-04-07 Richard Guenther <rguenther@suse.de>
14369 * ipa-reference.c (mark_load): Use get_base_address.
14370 (mark_store): Likewise.
14372 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
14373 inserting GIMPLE_NOPs into the IL.
14374 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14375 Explicitly strip handled components and indirect references.
14377 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
14378 folding address expressions.
14379 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
14380 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
14381 operand_equal_p to compare decls.
14382 (ptr_deref_may_alias_decl_p): Likewise.
14383 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
14384 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
14385 Handle reversed comparison ops.
14386 * tree-sra.c (asm_visit_addr): Use get_base_address.
14387 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
14388 * ipa-reference.c (mark_address): Use get_base_address.
14390 2010-04-07 Richard Guenther <rguenther@suse.de>
14392 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
14393 Propagate constants everywhere.
14395 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14398 * tree.c (MAX_INT_CACHED_PREC): Define.
14399 (nonstandard_integer_type_cache): New array.
14400 (build_nonstandard_integer_type): Cache results for precision
14401 <= MAX_INT_CACHED_PREC.
14403 2010-04-07 Richard Guenther <rguenther@suse.de>
14405 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
14406 -fargument-noalias-global, -fargument-noalias-anything): Remove.
14407 * common.opt: Likewise.
14408 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
14409 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
14410 (nonoverlapping_memrefs_p): Likewise.
14411 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14412 * opts.c (common_handle_option): Handle OPT_fargument_alias,
14413 OPT_fargument_noalias, OPT_fargument_noalias_anything and
14414 OPT_fargument_noalias_global for backward compatibility.
14416 2010-04-07 Richard Guenther <rguenther@suse.de>
14418 PR tree-optimization/43270
14419 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
14420 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
14421 * tree-ssa-pre.c (phi_translate_1): Adjust.
14422 (fully_constant_expression): Split out vn_reference handling to ...
14423 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
14424 Fold reads from constant strings.
14425 (vn_reference_lookup): Handle fully constant references.
14426 (vn_reference_lookup_pieces): Likewise.
14427 * Makefile.in (expmed.o-warn): Add -Wno-error.
14429 2010-04-07 Martin Jambor <mjambor@suse.cz>
14431 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
14433 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
14436 * gcc.c: Add -static-libstdc++ to list of recognized options.
14438 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14440 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
14442 2010-04-07 Richard Guenther <rguenther@suse.de>
14444 PR middle-end/42617
14445 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
14446 bases build simple mem attributes to retain points-to information.
14448 2010-04-07 Richard Guenther <rguenther@suse.de>
14450 PR middle-end/42617
14451 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
14452 preserve points-to related information.
14454 2010-04-07 Richard Guenther <rguenther@suse.de>
14456 PR middle-end/42617
14457 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
14458 discard plain indirect references.
14459 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
14460 * tree.c (tree_nop_conversion): Likewise.
14462 2010-04-07 Dodji Seketeli <dodji@redhat.com>
14465 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
14467 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
14469 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
14470 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
14472 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14474 * tree-if-conv.c: Fix indentation and comments.
14476 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14478 * tree-if-conv.c: Sort static functions in topological order.
14480 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14482 * tree-if-conv.c: Fix indentation and comments.
14484 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14486 PR middle-end/43519
14487 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
14488 lang_hooks.types.type_for_size instead of
14489 build_nonstandard_integer_type.
14490 When converting an unsigned type to signed, double its precision.
14491 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
14492 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
14493 (graphite_create_new_loop_guard): When ub + 1 wraps around,
14496 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14498 PR middle-end/43519
14499 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14500 POINTER_PLUS_EXPR for pointer types.
14502 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14504 PR middle-end/43519
14505 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
14506 * graphite-clast-to-gimple.c: Include langhooks.h.
14507 (max_signed_precision_type): New.
14508 (max_precision_type): Takes two types as arguments.
14509 (precision_for_value): New.
14510 (precision_for_interval): New.
14511 (gcc_type_for_interval): New.
14512 (gcc_type_for_value): New.
14513 (gcc_type_for_clast_term): New.
14514 (gcc_type_for_clast_red): New.
14515 (gcc_type_for_clast_bin): New.
14516 (gcc_type_for_clast_expr): Split up into several functions.
14517 (gcc_type_for_clast_eq): Rewritten.
14518 (compute_bounds_for_level): New.
14519 (compute_type_for_level_1): New.
14520 (compute_type_for_level): New.
14521 (gcc_type_for_cloog_iv): Removed.
14522 (gcc_type_for_iv_of_clast_loop): Rewritten.
14523 (graphite_create_new_loop): Compute the lower and upper bound types
14524 with gcc_type_for_clast_expr.
14525 (graphite_create_new_loop_guard): Same.
14526 (find_cloog_iv_in_expr): Removed.
14527 (compute_cloog_iv_types_1): Removed.
14528 (compute_cloog_iv_types): Removed.
14529 (gloog): Do not call compute_cloog_iv_types.
14530 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
14531 GBB_CLOOG_IV_TYPES.
14532 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
14533 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
14534 (GBB_CLOOG_IV_TYPES): Removed.
14536 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14538 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
14539 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
14540 (detect_commutative_reduction): Same.
14542 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14544 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
14545 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
14547 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
14548 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
14549 (rewrite_commutative_reductions_out_of_ssa): Same.
14550 * passes.c (execute_function_todo): Call verify_ssa for every pass
14551 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
14552 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
14553 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
14554 with an extra argument.
14555 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
14556 verify_ssa only when the extra argument is true.
14557 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
14558 with an extra argument.
14559 (tree_transform_and_unroll_loop): Same.
14561 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14563 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
14564 for all the passes of the LNO having LOOP_CLOSED_SSA.
14565 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
14566 * tree-loop-distribution.c (pass_loop_distribution): Same.
14567 * tree-pass.h (TODO_verify_loops): Removed.
14568 * tree-ssa-loop.c (pass_tree_loop_init): Same.
14570 (pass_tree_unswitch): Same.
14571 (pass_predcom): Same.
14572 (pass_vectorize): Same.
14573 (pass_linear_transform): Same.
14574 (pass_graphite_transforms): Same.
14575 (pass_iv_canon): Same.
14576 (pass_complete_unroll): Same.
14577 (pass_complete_unrolli): Same.
14578 (pass_parallelize_loops): Same.
14579 (pass_loop_prefetch): Same.
14580 (pass_iv_optimize): Same.
14582 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
14584 PR middle-end/32824
14585 * passes.c (init_optimization_passes): Move pass_lim before
14586 pass_copy_prop and pass_dce_loop.
14588 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14591 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14592 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14593 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14594 MULTI_* defines for 4 argument vpermil2p* builtins.
14596 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14598 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14599 * config/i386/i386.c (x86_maybe_negate_const_int): New.
14600 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14601 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14602 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14603 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14604 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14605 Use x86_maybe_negate_const_int to output insn mnemonic.
14606 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
14607 check from instruction predicate. Update comments.
14608 * config/i386/sync.md (sync_add<mode>): Use
14609 x86_maybe_negate_const_int to output insn mnemonic.
14611 2010-04-06 Jan Hubicka <jh@suse.cz>
14613 PR tree-optimization/42906
14614 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
14615 IGNORE_SELF argument. Set visited_control_parents for fully
14617 (find_obviously_necessary_stmts): Update call of
14618 mark_control_dependent_edges_necessary.
14619 (propagate_necessity): Likewise. Handle PHI edges more curefully.
14621 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14623 * config/i386/i386.md: Remove comment about 'e' and 'E'
14626 2010-04-06 Richard Guenther <rguenther@suse.de>
14628 PR tree-optimization/43627
14629 * tree-vrp.c (extract_range_from_unary_expr): Widenings
14630 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
14633 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14635 * BASE-VER: Change to 4.6.0.
14638 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
14641 2010-04-06 Richard Guenther <rguenther@suse.de>
14643 PR middle-end/43661
14644 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
14646 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14648 * doc/invoke.texi (Optimize Options): Document that LTO
14649 won't remove object access purely due to incompatible
14652 2010-04-04 Matthias Klose <doko@ubuntu.com>
14654 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
14655 Initialize variable.
14657 2010-04-03 Richard Guenther <rguenther@suse.de>
14659 PR middle-end/42509
14660 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
14661 require a non-NULL MEM_OFFSET.
14663 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
14665 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
14666 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
14667 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
14668 config/alpha/predicates.md, config/arm/arm.md,
14669 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14670 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14671 config/darwin9.h, config/darwin.c, config/darwin.h,
14672 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14673 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14674 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14675 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14676 config/mips/mips.md, config/mn10300/mn10300.c,
14677 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14678 config/rs6000/aix.h, config/rs6000/dfp.md,
14679 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
14680 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14681 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14682 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14683 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14684 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14685 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14686 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14687 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14688 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14689 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14690 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14691 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14692 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14693 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14694 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14695 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14696 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14697 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14698 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14699 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14700 opt-functions.awk, opth-gen.awk, params.def, passes.c,
14701 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14702 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14703 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14704 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14705 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14706 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14707 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14708 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14709 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14710 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14711 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14712 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14713 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14714 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14716 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14719 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14720 * aclocal.m4: Regenerate.
14722 2010-04-02 Richard Guenther <rguenther@suse.de>
14724 PR tree-optimization/43629
14725 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14726 if we have seen a constant value.
14728 2010-04-02 Joseph Myers <joseph@codesourcery.com>
14730 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14732 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
14735 * arm.c (legitimize_tls_address): Adjust call to
14736 gen_tls_load_dot_plus_four.
14737 (arm_note_pic_base): New function.
14738 (arm_cannot_copy_insn_p): Use it.
14739 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14742 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14747 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14749 * Makefile.in ($(out_object_file)): Depend on
14750 gt-$(basename $(notdir $(out_file))).h.
14752 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
14754 * config.gcc (lm32-*-rtems*): Add t-lm32.
14756 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
14758 * config.gcc: Add lm32-*-rtems*.
14759 * config/lm32/rtems.h: New file.
14761 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
14764 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14766 2010-04-01 Jakub Jelinek <jakub@redhat.com>
14768 * dwarf2out.c (output_compilation_unit_header): For
14769 -gdwarf-4 use version 4 instead of version 3.
14770 (output_line_info): For version 4 and above emit additional
14771 maximum ops per insn header field.
14772 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14774 * dwarf2out.c (is_c_family, is_java): Remove.
14775 (lower_bound_default): New function.
14776 (add_bound_info, gen_descr_array_type_die): Use it.
14778 2010-04-01 Dodji Seketeli <dodji@redhat.com>
14781 * dwarf2out.c (gen_variable_die): Allow debug info for variable
14782 re-declaration when it happens in a function.
14784 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
14786 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14787 (cgraph_remove_function_insertion_hook): Same.
14788 (cgraph_call_function_insertion_hooks): Same.
14790 2010-04-01 Richard Guenther <rguenther@suse.de>
14792 PR middle-end/43614
14793 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14794 and TREE_THIS_VOLATILE.
14795 (copy_ref_info): Likewise.
14796 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14797 * tree.c (build6_stat): Ignore side-effects of all but arg5
14798 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
14801 2010-04-01 Richard Guenther <rguenther@suse.de>
14803 PR tree-optimization/43607
14804 * ipa-type-escape.c (check_call): Do not access non-existing
14807 2010-04-01 Richard Guenther <rguenther@suse.de>
14809 PR middle-end/43602
14811 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14812 Jack Howarth <howarth@bromo.med.uc.edu>
14814 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14817 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14819 * doc/install.texi (Prerequisites): Document libelf usability on
14820 IRIX 5/6 and Solaris 2.
14821 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14822 Update GNU as, GNU ld requirements.
14823 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14824 Document Sun Studio compiler download.
14825 Update and simplify as, ld recommendations.
14826 (Specific, *-*-solaris2.7): Note obsoletion, removal.
14828 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14830 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14831 with_tune_32 to pentium4.
14833 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
14835 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14837 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14839 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14840 obsoletion, removal.
14842 Document GNU as requirement.
14843 Update configure requirements.
14844 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14845 Recomment IRIX 6.5.18+.
14846 Document IDF/IDL requirement.
14847 Document GNU as requirement.
14848 Document GNU ld bootstrap failure.
14849 Remove freeware.sgi.com reference.
14851 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14853 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14854 UNIX V4.0, V5.0 obsoletion, removal.
14855 Remove --with-gc=simple reference.
14856 Update VM requirements during bootstrap.
14857 Remove -oldas bootstrap description.
14858 Update binutils reference.
14859 Remove comparison failure note.
14861 2010-03-31 Richard Guenther <rguenther@suse.de>
14862 Zdenek Dvorak <ook@ucw.cz>
14863 Sebastian Pop <sebastian.pop@amd.com>
14865 PR middle-end/43464
14866 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14867 with multiple arguments.
14868 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14870 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14872 * graphite-dependences.c (print_pddr): Call print_pdr with an
14874 * graphite-poly.c (debug_pdr): Add an extra argument for the
14877 (print_pbb_domain): Same.
14879 (print_scop_context): Same.
14880 (print_scop): Same.
14881 (print_cloog): Same.
14882 (debug_pbb_domain): Same.
14884 (print_pdrs): Same.
14885 (debug_pdrs): Same.
14886 (debug_scop_context): Same.
14887 (debug_scop): Same.
14888 (debug_cloog): Same.
14889 (print_scop_params): Same.
14890 (debug_scop_params): Same.
14891 (print_iteration_domain): Same.
14892 (print_iteration_domains): Same.
14893 (debug_iteration_domain): Same.
14894 (debug_iteration_domains): Same.
14895 (print_scattering_function): Same.
14896 (print_scattering_functions): Same.
14897 (debug_scattering_function): Same.
14898 (debug_scattering_functions): Same.
14899 * graphite-poly.h (debug_pdr): Update declaration.
14901 (print_pbb_domain): Same.
14903 (print_scop_context): Same.
14904 (print_scop): Same.
14905 (print_cloog): Same.
14906 (debug_pbb_domain): Same.
14908 (print_pdrs): Same.
14909 (debug_pdrs): Same.
14910 (debug_scop_context): Same.
14911 (debug_scop): Same.
14912 (debug_cloog): Same.
14913 (print_scop_params): Same.
14914 (debug_scop_params): Same.
14915 (print_iteration_domain): Same.
14916 (print_iteration_domains): Same.
14917 (debug_iteration_domain): Same.
14918 (debug_iteration_domains): Same.
14919 (print_scattering_function): Same.
14920 (print_scattering_functions): Same.
14921 (debug_scattering_function): Same.
14922 (debug_scattering_functions): Same.
14924 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14926 * graphite-poly.c (print_scattering_function_1): New.
14927 (print_scattering_function): Call it.
14928 (print_scop_params): Remove spaces at the end of lines.
14929 (print_cloog): New.
14930 (debug_cloog): New.
14931 * graphite-poly.h (print_cloog): Declared.
14932 (debug_cloog): Declared.
14934 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14936 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14938 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14939 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14940 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14941 to switch between adding the IV bump in loop->latch or in loop->header.
14943 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14945 * graphite-poly.c (print_scattering_function): Pretty print following
14946 the scoplib format.
14948 (print_pbb_domain): Same.
14949 (dump_gbb_cases): Same.
14950 (dump_gbb_conditions): Same.
14951 (print_pdrs): Same.
14953 (print_scop_params): Same.
14954 (print_scop_context): Same.
14955 (print_scop): Same.
14956 (print_pbb_body): New.
14957 (lst_indent_to): New.
14958 (print_lst): Start new lines with a #.
14959 * graphite-poly.h (pbb_bb): New.
14960 (pbb_index): Use pbb_bb.
14961 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14963 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14965 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14967 * dwarf2out.c (size_of_die): For -gdwarf-4 use
14968 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14969 and 0 instead of 1 for dw_val_class_flag.
14970 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14971 dw_val_class_range_list, dw_val_class_loc_list,
14972 dw_val_class_lineptr and dw_val_class_macptr, use
14973 DW_FORM_flag_present for dw_val_class_flag and
14974 DW_FORM_exprloc for dw_val_class_loc.
14975 (output_die): For -gdwarf-4 print dw_val_class_loc
14976 size as uleb128 instead of 1 or 2 bytes and don't print
14977 anything for dw_val_class_flag.
14979 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14980 instead of cselib_lookup following by tweaking locs->setting_insn.
14983 * cselib.c (cselib_process_insn): Clear cselib_current_insn
14984 even before returning from label, setjmp call or volatile asm
14987 2010-03-31 Richard Guenther <rguenther@suse.de>
14989 PR middle-end/43600
14990 * cgraphunit.c (cgraph_output_in_order): Do not allocate
14991 temporary data on stack.
14993 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14995 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
14996 (PUSHSECTION_ASM_OP): Remove.
14997 (POPSECTION_ASM_OP): Remove.
14998 (PUSHSECTION_FORMAT): Remove.
14999 * config/sol2.h (PUSHSECTION_FORMAT): Define.
15000 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15001 * config/sol2.c (solaris_output_init_fini): Use it.
15003 2010-03-31 Jie Zhang <jie@codesourcery.com>
15006 * opt-functions.awk (var_type_struct): Use signed char type
15007 for simple variables.
15009 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15011 * config/sol2.c: Include output.h.
15012 (solaris_assemble_visibility): New function.
15013 * config/t-sol2 (sol2.o): Add output.h dependency.
15014 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15015 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15018 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15021 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15022 V2SImode or XFmode on PRE_DEC.
15025 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15028 2010-03-31 Jie Zhang <jie@codesourcery.com>
15031 * reload.h (caller_save_initialized_p): Declare.
15032 * toplev.c (backend_init_target): Don't call
15033 init_caller_save but set caller_save_initialized_p to false.
15034 * caller-save.c (caller_save_initialized_p): Define.
15035 (init_caller_save): Check caller_save_initialized_p.
15036 * ira.c (ira): Call init_caller_save if flag_caller_saves.
15038 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15041 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15042 and soft-fp/t-softfp to tmake_file.
15043 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15044 (LIBGCC2_TF_CEXT): Define.
15047 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
15050 * cselib.c (n_useless_values): Document handling of debug locs.
15051 (n_useless_debug_values, n_debug_values): New variables.
15052 (new_elt_loc_list): Don't add to debug values, keep count.
15053 (promote_debug_loc): New.
15054 (cselib_reset_table): Zero new variables.
15055 (entry_and_rtx_equal_p): Promote debug locs.
15056 (discard_useless_locs): Increment n_useless_debug_values for
15058 (remove_useless_values): Adjust n_useless_values and n_debug_values
15059 with n_useless_debug_values.
15060 (add_mem_for_addr): Promote debug locs.
15061 (cselib_lookup_mem): Likewise.
15062 (cselib_lookup_addr): Renamed to...
15063 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
15064 (cselib_log_lookup): ... this. Turn into...
15065 (cselib_lookup_addr): ... new wrapper.
15066 (cselib_lookup_from_insn): New.
15067 (cselib_invalidate_regno): Increment n_useless_debug_values for
15069 (cselib_invalidate_mem): Likewise.
15070 (cselib_process_insn): Take n_deleted and n_debug_values into
15071 account to guard remove_useless_value call.
15072 (cselib_finish): Zero n_useless_debug_values.
15073 * cselib.h (cselib_lookup_from_insn): Declare.
15074 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15075 (sched_analyze_2): Likewise.
15077 2010-03-30 Jakub Jelinek <jakub@redhat.com>
15079 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15081 (adjust_mems): Replace narrowing SUBREG of expression containing
15082 just PLUS, MINUS, MULT and ASHIFT of registers and constants
15083 with operations in the narrower mode.
15086 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15087 regs_invalidated_by_call instead all call_used_reg_set registers.
15089 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
15091 PR middle-end/43430
15092 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15093 pointer comparisons with types_compatible_p.
15094 * tree-vect-stmts.c (vectorizable_call): Same.
15095 (vectorizable_condition): Same.
15097 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15099 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15100 stack check if the mask would be zero.
15102 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15103 Jack Howarth <howarth@bromo.med.uc.edu>
15105 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15108 2010-03-30 Joseph Myers <joseph@codesourcery.com>
15111 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
15113 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15114 Include ___unordxf2 and ___unordtf2.
15115 * config/i386/libgcc-glibc.ver: Do not define inheritance from
15118 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
15120 * config/lm32/t-lm32: New file.
15121 * config.gcc: Use the above file when targetting lm32.
15123 2010-03-28 Duncan Sands <baldrick@free.fr>
15125 * Makefile.in (PLUGIN_HEADERS): Add except.h.
15127 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15129 PR middle-end/43431
15130 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15131 Improve vectorization cost model diagnostic.
15133 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15135 PR middle-end/43436
15136 * tree-vect-data-refs.c (vect_analyze_data_refs): When
15137 compute_data_dependences_for_loop returns false, early exit
15138 and output an extra diagnostic for the failed data reference
15141 2010-03-29 Richard Guenther <rguenther@suse.de>
15143 PR tree-optimization/43560
15144 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15145 (can_sm_ref_p): Treat stores to readonly locations as trapping.
15147 2010-03-29 Jie Zhang <jie@codesourcery.com>
15150 * toplev.c (process_options): Set optimization_default_node
15151 and optimization_current_node.
15152 * opts.c (decode_options): Don't set optimization_default_node
15153 and optimization_current_node.
15155 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
15157 * config/rtems.h: Abandon -qrtems_debug.
15159 2010-03-28 Jan Hubicka <jh@suse.cz>
15161 PR tree-optimization/43505
15162 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15163 map should not be copied.
15165 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15167 PR middle-end/41674
15168 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15169 cdtors, set DECL_PRESERVE_P.
15170 * ipa.c (cgraph_externally_visible_p): Return true if declaration
15171 should be preseved.
15173 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
15175 PR tree-optimization/43528
15176 * stor-layout.c (place_field): Check that constant fits into
15177 unsigned HWI when skipping calculation of MS bitfield layout.
15179 2010-03-27 Jan Hubicka <jh@suse.cz>
15181 PR middle-end/43391
15182 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15183 notice_global_symbol work.
15185 2010-03-27 Jakub Jelinek <jakub@redhat.com>
15187 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15188 instead of dwarf2out_decl.
15189 (struct var_loc_node): Remove section_label field.
15190 (dwarf2out_function_decl): New function.
15191 (dwarf2out_var_location): Don't set section_label field.
15192 (dwarf2out_begin_function): Don't empty decl_loc_table here.
15194 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15196 PR tree-optimization/43544
15197 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15198 First argument for builtin vectorized function hook is now a
15199 tree to be able to distinguish between machine specific and
15201 * targhooks.c (default_builtin_vectorized_function): Ditto.
15202 * targhooks.h (default_builtin_vectorized_function): Ditto.
15203 * target.h (struct gcc_target): Ditto.
15204 * tree-vect-stmts.c (vectorizable_function): Ditto.
15205 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
15206 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15209 2010-03-26 Joseph Myers <joseph@codesourcery.com>
15212 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
15213 nested binding iff it is a FUNCTION_DECL.
15214 (store_parm_decls_newstyle): Pass nested=true to bind for
15215 FUNCTION_DECLs amongst parameters.
15217 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15219 * var-tracking.c (vt_expand_loc_callback): Don't run
15220 cselib_expand_value_rtx_cb in dummy mode if
15221 cselib_dummy_expand_value_rtx_cb returned false.
15223 * var-tracking.c (emit_note_insn_var_location): For one part
15224 notes with offset 0, don't add EXPR_LIST around the location.
15225 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
15226 add_location_or_const_value_attribute): Adjust for that change.
15229 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
15230 into first operand and location into second.
15231 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
15232 dw_cfi_oprnd_loc for DW_CFA_expression.
15233 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
15234 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
15235 assume first argument is regnum and second argument is location.
15237 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15240 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
15241 of scratch register to DImode. Split to DImode comparison operator.
15242 Use SImode subreg of scratch register in the multiplication.
15243 (*cmp_sadd_sidi): Ditto.
15244 (*cmp_ssub_si): Ditto.
15245 (*cmp_ssub_sidi): Ditto.
15247 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15250 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
15251 Remove invalid assert and wrong comment.
15253 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15256 * flags.h (final_insns_dump_p): New extern.
15257 * final.c (final_insns_dump_p): New variable.
15258 (rest_of_clean_state): Set it before -fdump-final-insns=
15259 dumping, clear afterwards.
15260 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
15261 MEM_ALIAS_SET on MEMs.
15263 2010-03-26 David S. Miller <davem@davemloft.net>
15265 * configure.ac: Fix sparc GOTDATA_OP bug check.
15266 * configure: Rebuild.
15268 2010-03-26 Alan Modra <amodra@gmail.com>
15270 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15272 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15274 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15275 TLS_SECTION_ASM_FLAG.
15277 2010-03-25 Jakub Jelinek <jakub@redhat.com>
15280 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15281 Clear first_function_block_is_cold.
15284 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15285 argument if the argument is truth_value_p.
15287 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15289 * config/rs6000/constraints.md: Update copyright year for my changes.
15292 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15293 used in reg+reg addressing, swap registers.
15295 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15298 * target.h (struct gcc_target): Add code_end hook.
15299 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15300 if not yet defined.
15301 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15302 * toplev.c (compile_file): Call targetm.asm_out.code_end
15303 hook before unwind info/debug info output.
15304 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15305 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15306 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15307 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15308 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15309 * config/i386/i386.c (ix86_file_end): Renamed to...
15310 (ix86_code_end): ... this. Make static. Don't call
15311 file_end_indicate_exec_stack. Emit unwind info using
15312 final_start_function/final_end_function.
15313 (darwin_x86_file_end): Remove.
15314 (TARGET_ASM_CODE_END): Define.
15315 * config/i386/i386.h (TARGET_ASM_FILE_END,
15316 NEED_INDICATE_EXEC_STACK): Don't define.
15317 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15318 (TARGET_ASM_FILE_END): Define to darwin_file_end.
15319 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15320 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15323 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15324 at the beginning and final_end_function at the end.
15325 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15327 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15329 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15330 and Sun as TLS syntax.
15331 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15332 * configure: Regenerate.
15333 * config.in: Regenerate.
15334 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15335 (default_elf_asm_named_section): Use it.
15336 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
15337 (i386_output_dwarf_dtprel): Likewise.
15338 (output_addr_const_extra): Likewise.
15339 (output_pic_addr_const): Lowercase @GOTTPOFF.
15340 (output_addr_const_extra): Likewise.
15341 (output_pic_addr_const): Lowercase @GOTNTPOFF.
15342 (output_addr_const_extra): Likewise.
15343 (output_pic_addr_const): Lowercase @INDNTPOFF.
15344 (output_addr_const_extra): Likewise.
15345 (output_pic_addr_const): Lowercase @NTPOFF.
15346 (output_addr_const_extra): Likewise.
15347 (output_pic_addr_const): Lowercase @TPOFF.
15348 (output_addr_const_extra): Likewise.
15349 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
15350 (*tls_global_dynamic_64): Likewise.
15351 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
15352 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
15354 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
15355 (ASM_OUTPUT_TLS_COMMON): Use it.
15356 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
15359 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
15360 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15361 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
15362 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
15363 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15364 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
15366 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15368 * config/i386/i386.c (override_options): Don't accept
15369 -mtls-dialect=sun any longer.
15370 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
15371 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
15372 (*tls_local_dynamic_base_32_sun): Likewise.
15373 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15375 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15378 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15379 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
15382 * ira.c (adjust_cleared_regs): New function.
15383 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
15387 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
15389 * expr.c (expand_expr_real): Restore previous
15390 curr_insn_source_location and curr_insn_block after
15391 expand_expr_real_1 call.
15392 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
15393 instead of expand_expr_real_1.
15395 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
15397 PR rtl-optimization/43413
15398 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
15401 2010-03-22 James E. Wilson <wilson@codesourcery.com>
15404 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
15405 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
15407 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
15409 * config/i386/i386.c (ix86_target_string): Add -mfma.
15410 Fix a typo in comment.
15412 2010-03-22 Mike Stump <mikestump@comcast.net>
15415 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
15416 Don't overly align based upon packed packed fields.
15418 2010-03-22 Jason Merrill <jason@redhat.com>
15420 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
15421 Use () rather than [], and move before the element type.
15423 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15425 * doc/configfiles.texi (Configuration Files): Removed
15426 fixinc/Makefile*, intl/Makefile.*.
15427 * doc/makefile.texi: Fixed markup. Abstract from version
15428 control system used.
15429 (Makefile): Removed obsolete gcc/java/parse.y example.
15430 * doc/sourcebuild.texi: Likewise.
15431 (Top Level): Added config, gnattools, libdecnumber, libgcc,
15432 libgomp, libssp. Removed fastjar.
15433 (Miscellaneous Docs): Clarify location.
15434 Added COPYING3, COPYING3.LIB.
15435 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
15437 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15440 * config/i386/i386.c (x86_function_profiler)
15441 [!NO_PROFILE_COUNTERS]: Fix typo.
15442 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
15445 2010-03-22 Janis Johnson <janis187@us.ibm.com>
15446 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15448 * doc/sourcebuild.texi (Test Directives): Split into six
15449 subsections, with most of the current text in new subsections
15450 Directives, Selectors, and Final Actions.
15451 (Directives): Split list of test directives into multiple
15453 (Selectors): Describe use and syntax of selectors.
15454 (Effective-Target Keywords): Describe all existing keywords.
15455 (Add Options): Describe features for dg-add-options.
15456 (Require Support): Describe variants of dg-require-support.
15457 (Final Actions): Describe commands to use in dg-final.
15459 2010-03-22 Michael Matz <matz@suse.de>
15461 PR middle-end/43475
15462 * recog.c (validate_replace_rtx_group): Replace also in
15463 REG_EQUAL and REG_EQUIV notes.
15465 2010-03-22 Richard Guenther <rguenther@suse.de>
15467 PR tree-optimization/43390
15468 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
15469 sure vector extracts are type correct.
15471 2010-03-22 Richard Guenther <rguenther@suse.de>
15473 PR middle-end/40106
15474 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
15475 x * sqrt (x) even when optimizing for size if the target
15476 has native support for sqrt.
15478 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15480 * varasm.c (make_decl_rtl_for_debug): Also clear
15481 flag_mudflap for the duration of make_decl_rtl call.
15484 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
15485 locs from preserved VALUEs.
15487 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15489 PR middle-end/42718
15490 * pa.md (movmemsi): Set align to one if zero.
15491 (movmemdi): Likewise.
15493 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
15496 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
15497 with their corresponding prologue pushes.
15499 2010-03-20 Andrew Pinski <pinskia@gmail.com>
15502 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
15503 at the begining or end.
15504 (spu_expand_epilogue): Likewise.
15506 2010-03-20 Richard Guenther <rguenther@suse.de>
15508 PR rtl-optimization/43438
15509 * combine.c (make_extraction): Properly zero-/sign-extend an
15510 extraction of the low part of a CONST_INT. Also handle
15513 2010-03-19 Mike Stump <mikestump@comcast.net>
15515 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
15516 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
15517 (override_options): Use SUBTARGET32_DEFAULT_CPU.
15519 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15522 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
15525 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
15527 PR rtl-optimization/42258
15528 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
15529 use that may match DEF.
15532 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
15533 the cost of loading the constant rather than assuming
15535 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
15536 outer code is AND, do the same tests as the andsi3 expander and
15537 return COSTS_N_INSNS (1) if and is cheap.
15539 * optabs.c (avoid_expensive_constant): Fix formatting.
15541 2010-03-19 Michael Matz <matz@suse.de>
15544 * attribs.c (decl_attributes): When rebuilding a function pointer
15545 type use the same qualifiers as the original pointer type.
15547 2010-03-19 Martin Jambor <mjambor@suse.cz>
15549 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
15550 and is_gimple_ip_invariant_address.
15552 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15555 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15557 * config/arm/arm.c (arm_override_options): Turn off
15558 flag_dwarf2_cfi_asm for AAPCS variants.
15560 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15563 * config/arm/arm.c (emit_multi_reg_push): Update comments.
15564 Use PRE_MODIFY instead of PRE_DEC.
15565 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
15566 (vfp_emit_fstmd): Likewise.
15568 2010-03-19 Michael Matz <matz@suse.de>
15571 * builtins.c (expand_builtin_interclass_mathfn,
15572 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15575 2010-03-19 Richard Guenther <rguenther@suse.de>
15577 PR tree-optimization/43415
15578 * tree-ssa-pre.c (phi_translate): Split out worker to ...
15579 (phi_translate_1): ... this.
15580 (phi_translate): Move all caching here. Cache all NARY
15581 and REFERENCE translations.
15583 2010-03-19 David S. Miller <davem@davemloft.net>
15585 With help from Eric Botcazou.
15586 * config/sparc/sparc.c: Include dwarf2out.h.
15587 (emit_pic_helper): Delete.
15588 (pic_helper_symbol_name): Delete.
15589 (pic_helper_emitted_p): Delete.
15590 (pic_helper_needed): New.
15591 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15592 (get_pc_thunk_name): New.
15593 (load_pic_register): Remove 'delay_pic_helper' arg. Use
15594 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15595 Set pic_helper_needed to true. Don't call emit_pic_helper.
15596 (sparc_expand_prologue): Update load_pic_register call.
15597 (sparc_output_mi_thunk): Likewise.
15598 (sparc_file_end): Emit a hidden comdat symbol for the PIC
15599 thunk if possible. Output CFI information as needed.
15601 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15602 Jack Howarth <howarth@bromo.med.uc.edu>
15605 * config/i386/i386.h: Fix ABI on darwin x86-32.
15607 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
15609 * tree.h: Declare make_decl_rtl_for_debug.
15610 * varasm.c (make_decl_rtl_for_debug): New.
15611 * dwarf2out.c (rtl_for_decl_location): Call it.
15612 * cfgexpand.c (expand_debug_expr): Call it.
15614 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15617 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
15621 * var-tracking.c (vt_init_cfa_base): Do nothing if
15622 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
15624 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
15627 * var-tracking.c (canonicalize_vars_star): New.
15628 (dataflow_post_merge_adjust): Use it.
15630 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15633 * var-tracking.c (non_suitable_const): New function.
15634 (add_uses): For DEBUG_INSNs with constants, don't record any
15635 value, instead just the constant value itself.
15636 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
15637 is not VAR_LOC_UNKNOWN_P, set var to the constant.
15638 (emit_notes_in_bb): Likewise.
15639 (emit_note_insn_var_location): For onepart variables if
15640 cur_loc is a VOIDmode constant, use DECL_MODE.
15642 2010-03-18 Martin Jambor <mjambor@suse.cz>
15644 PR middle-end/42450
15645 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
15646 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
15647 all non-clones. Moved call redirection...
15648 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
15649 (cgraph_materialize_all_clones): Dispose of all
15650 combined_args_to_skip bitmaps.
15651 (verify_cgraph_node): Do not check for edges pointing to wrong
15652 nodes in inline clones.
15653 * tree-inline.c (copy_bb): Call
15654 cgraph_redirect_edge_call_stmt_to_callee.
15655 * ipa.c (cgraph_remove_unreachable_nodes): Call
15656 cgraph_node_remove_callees even when there are used clones.
15658 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15660 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
15662 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15665 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
15668 2010-03-18 Michael Matz <matz@suse.de>
15670 PR middle-end/43419
15671 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15672 into sqrt(x) if we need to preserve signed zeros.
15674 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
15675 Eric Botcazou <ebotcazou@adacore.com>
15677 PR rtl-optimization/43360
15678 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15679 note if we don't know its invariant status.
15681 2010-03-18 Michael Matz <matz@suse.de>
15683 PR tree-optimization/43402
15684 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15685 PHI chains of ssa names registered for update.
15687 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
15690 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15691 non-offsettable and pre_modify update addressing.
15692 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15693 and "2" alternatives "#".
15694 (*movdd_softfloat32): Make all alternatives "#";
15695 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15696 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15697 (*movdf_softfloat32): Make all alternatives "#";
15698 (movdi): Use the new DIFD mode iterator to create a common splitter
15699 for movdi, movdf and movdd patterns.
15701 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
15703 * common.opt (dumpdir): Remove redundant tab.
15705 2010-03-17 Martin Jambor <mjambor@suse.cz>
15707 PR tree-optimization/43347
15708 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15709 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15711 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
15713 PR rtl-optimization/42216
15714 * regrename.c (create_new_chain): New function, broken out from...
15715 (scan_rtx_reg): ... here. Call it. Handle the case where we are
15716 appending a use to an empty chain.
15717 (build_def_use): Remove previous changes that convert OP_INOUT to
15718 OP_OUT operands; instead detect the case where an OP_INOUT operand
15719 uses a previously untracked register and create an empty chain for it.
15721 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15723 * doc/extend.texi (Function Attributes): Rewrite unfinished
15724 sentence in ms_abi documentation.
15726 2010-03-17 Alan Modra <amodra@gmail.com>
15728 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15729 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15730 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15731 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15733 2010-03-16 Richard Henderson <rth@redhat.com>
15735 PR middle-end/43365
15736 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15737 (lower_try_finally): Save and restore eh_seq around the expansion
15738 of the try-finally.
15740 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15742 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15743 statements before splitting block.
15745 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15747 * doc/sourcebuild.texi (Testsuites): Fix markup.
15748 Use pathnames relative to gcc/testsuite.
15749 (Test Directives): Move description of how timeout is determined.
15750 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15751 (C Tests): Correct gcc.misc-tests directory.
15752 Framework tests now live in gcc.test-framework.
15754 2010-03-16 Richard Guenther <rguenther@suse.de>
15756 PR middle-end/43379
15757 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15758 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15760 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15761 Alexandre Oliva <aoliva@redhat.com>
15763 PR tree-optimization/42917
15764 * lambda-code.c (remove_iv): Skip debug statements.
15765 (lambda_loopnest_to_gcc_loopnest): Likewise.
15766 (not_interesting_stmt): Debug statements are not interesting.
15768 2010-03-16 Jakub Jelinek <jakub@redhat.com>
15772 * cselib.c (cselib_preserve_constants,
15773 cfa_base_preserved_val): New static variables.
15774 (preserve_only_constants): New function.
15775 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15776 clear its REG_VALUES. If cselib_preserve_constants, don't
15777 empty the whole hash table, but preserve there VALUEs with constants,
15778 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15779 (cselib_preserve_cfa_base_value): New function.
15780 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15781 (cselib_init): Change argument to int bitfield. Set
15782 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15784 (cselib_finish): Clear cselib_preserve_constants and
15785 cfa_base_preserved_val.
15786 * cselib.h (enum cselib_record_what): New enum.
15787 (cselib_init): Change argument to int.
15788 (cselib_preserve_cfa_base_value): New prototype.
15789 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15790 * dse.c (dse_step1): Likewise.
15791 * cfgcleanup.c (thread_jump): Likewise.
15792 * sched-deps.c (sched_analyze): Likewise.
15793 * gcse.c (local_cprop_pass): Likewise.
15794 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15795 If FN is non-NULL, call the callback always and whenever it returns
15796 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
15797 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15798 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15799 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15800 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15801 * var-tracking.c: Include recog.h.
15802 (bb_stack_adjust_offset): Remove.
15803 (vt_stack_adjustments): Don't call it, instead just gather the
15804 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15805 (adjust_stack_reference): Remove.
15806 (compute_cfa_pointer): New function.
15807 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15808 (struct adjust_mem_data): New type.
15809 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15811 (get_address_mode): New function.
15812 (replace_expr_with_values): Use it.
15813 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15814 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
15815 (adjust_sets): Remove.
15816 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15817 Use get_address_mode.
15818 (get_adjusted_src): Remove.
15819 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
15820 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
15821 (add_with_sets): Don't call adjust_sets.
15822 (fp_setter, vt_init_cfa_base): New functions.
15823 (vt_initialize): Change return type to bool. Move most of pool etc.
15824 initialization to the beginning of the function from end. Pass
15825 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15826 If !frame_pointer_needed, call vt_stack_adjustment before mos
15827 vector is filled, call vt_init_cfa_base if argp/framep has been
15828 eliminated to sp. If frame_pointer_needed and argp/framep has
15829 been eliminated to hard frame pointer, set
15830 hard_frame_pointer_adjustment and call vt_init_cfa_base after
15831 encountering fp setter in the prologue. For MO_ADJUST, call
15832 log_op_type before pusing the op into mos vector, not afterwards.
15833 Call adjust_insn before cselib_process_insn/add_with_sets,
15834 call cancel_changes (0) afterwards.
15835 (variable_tracking_main_1): Adjust for vt_initialize calling
15836 vt_stack_adjustments and returning whether it succeeded or not.
15838 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
15840 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15843 2010-03-15 Jakub Jelinek <jakub@redhat.com>
15845 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15847 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15848 drap_reg has not been set.
15850 2010-03-15 Michael Matz <matz@suse.de>
15852 PR middle-end/43300
15853 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15854 use it to expand block copies.
15855 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15856 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15857 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15859 2010-03-15 Richard Guenther <rguenther@suse.de>
15861 PR tree-optimization/43367
15862 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15865 2010-03-15 Richard Guenther <rguenther@suse.de>
15867 PR tree-optimization/43317
15868 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15870 2010-03-15 Martin Jambor <mjambor@suse.cz>
15872 PR tree-optimization/43141
15873 * tree-sra.c (create_abstract_origin): New function.
15874 (modify_function): Call create_abstract_origin.
15876 2010-03-15 Chris Demetriou <cgd@google.com>
15878 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15881 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15883 PR middle-end/43354
15884 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15885 call insert_out_of_ssa_copy for default definitions.
15887 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15889 * graphite-clast-to-gimple.c (my_long_long): Defined.
15890 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15891 * graphite-sese-to-poly.c (my_long_long): Defined.
15892 (scop_ivs_can_be_represented): Use it.
15894 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15896 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15897 graphite-max-bbs-per-function, and loop-block-tile-size.
15898 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15900 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15902 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15904 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15905 forward declaration.
15906 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15907 (add_upper_bounds_from_estimated_nit): New.
15908 (build_loop_iteration_domains): Use it.
15910 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15912 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15914 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15916 PR middle-end/43306
15917 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15918 should be an INTEGER_CST. Also handle CASE_CONVERT.
15920 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15922 * graphite.c (graphite_initialize): To bound the number of bbs per
15923 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15924 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15925 * doc/invoke.texi: Document it.
15927 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15929 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15930 * graphite-sese-to-poly.h (build_poly_scop): Same.
15932 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15934 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15935 the number of parameters in the scop. Use as an upper bound
15936 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15937 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15938 * doc/invoke.texi: Document it.
15940 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
15942 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15943 * doc/c-tree.texi: Remove.
15944 * doc/generic.texi: Merge c-tree.texi here.
15945 * doc/gccint.texi (Trees): Remove menu entry.
15946 (c-tree.texi): Remove @include.
15947 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15948 * doc/languages.texi (Reading RTL): Ditto.
15950 2010-03-12 Steve Ellcey <sje@cup.hp.com>
15953 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15955 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15957 PR middle-end/42431
15958 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15959 code added to work around reload clobbering CONST insns.
15961 2010-03-12 Jakub Jelinek <jakub@redhat.com>
15963 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15964 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15965 (cselib_preserve_only_values): Remove retain argument, don't
15966 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15967 * cselib.h (cselib_preserve_only_values): Remove retain argument.
15968 * var-tracking.c (micro_operation): Move insn field before union.
15969 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15970 (struct variable_tracking_info_def): Remove n_mos field, change
15971 mos into a vector of micro_operations.
15972 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15973 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15974 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15975 changing into a vector.
15976 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
15977 come before all other uops generated by add_stores.
15978 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15980 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
15981 a vector. Run just one pass over the bbs instead of separate counting
15982 and computation phase.
15983 (vt_finalize): Free VTI (bb)->mos vector instead of array.
15986 * tree-inline.c (remap_decls): Put old_var rather than origin_var
15987 into *nonlocalized_list vector.
15988 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
15989 even if origin is non-NULL.
15990 (gen_variable_die): Likewise.
15991 (process_scope_var): Don't change origin.
15992 (gen_decl_die): Likewise.
15993 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
15994 before adding new edges instead of after it, fix moving over
15997 2010-03-11 David S. Miller <davem@davemloft.net>
15999 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16001 * configure: Rebuild.
16003 2010-03-11 Martin Jambor <mjambor@suse.cz>
16005 PR tree-optimization/43257
16006 * tree.c (assign_assembler_name_if_neeeded): New function.
16007 (free_lang_data_in_cgraph): Assembler name assignment moved to the
16008 above new function.
16009 * tree.h (assign_assembler_name_if_neeeded): Declare.
16010 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16011 the function if needed.
16013 2010-03-11 Chris Demetriou <cgd@google.com>
16015 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16016 include/stdint-gcc.h, and include/stdint.h world-readable.
16018 2010-03-11 Richard Guenther <rguenther@suse.de>
16020 PR tree-optimization/43255
16021 * tree-vrp.c (process_assert_insertions_for): Do not insert
16022 asserts for trivial conditions.
16024 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16026 PR tree-optimization/43280
16027 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16028 generation. Move calculation of size out of the if branch.
16029 (find_bswap): Modify compare number generation.
16031 2010-03-11 Richard Guenther <rguenther@suse.de>
16034 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16035 (input_gimple_stmt): Fixup handled component types during
16036 operand read. Also fix up decls in ADDR_EXPRs.
16038 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
16040 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16041 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16043 2010-03-10 Jan Hubicka <jh@suse.cz>
16046 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16047 * varasm.c (get_variable_section): Don't do that here...
16048 (make_decl_rtl): ... and here.
16049 (do_assemble_alias): Produce decl RTL.
16050 (assemble_alias): Likewise.
16052 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16055 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16056 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16058 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16059 (based_loc_descr): Only express drap or vdrap regno based expressions
16060 using DW_OP_fbreg when not optimizing.
16061 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16062 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16063 REG_CFA_SET_VDRAP note.
16065 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
16067 PR tree-optimization/43236
16068 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16069 error in calculation of base address in reverse iteration case.
16070 (generate_builtin): Take number of latch executions if the statement
16073 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
16075 PR middle-end/42859
16076 * tree-eh.c: Include pointer-set.h.
16077 (lower_eh_dispatch): Filter out duplicate case labels and
16078 remove the unneeded edge when the label is unused. Return
16079 true when some edges are removed.
16080 (execute_lower_eh_dispatch): When any lowering resulted in
16081 removing an edge, also delete unreachable blocks.
16083 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16086 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16087 UNSPEC_MACHOPIC_OFFSET.
16089 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
16092 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16093 (m68k_delegitimize_address): New function.
16095 2010-03-09 Jakub Jelinek <jakub@redhat.com>
16098 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16101 * var-tracking.c (adjust_sets): New function.
16102 (count_with_sets, add_with_sets): Use it.
16103 (get_adjusted_src): New inline function.
16104 (add_stores): Use it.
16107 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16108 call cselib_dummy_expand_value_rtx_cb instead of
16109 cselib_expand_value_rtx_cb.
16112 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16113 * config/i386/i386.c: Include debug.h and dwarf2out.h.
16114 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16115 and .cfi_endproc around the pic thunks.
16116 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16117 all queued unwind info register saves are saved before the call.
16118 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16119 considered as sp-=4 for unwind info and the pop as sp+=4 which
16120 also clobbers dest, but doesn't actually restore it.
16123 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16124 RTX_FRAME_RELATED_P.
16126 2010-03-09 Jie Zhang <jie@codesourcery.com>
16128 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16129 whitespaces in output template.
16131 2010-03-09 Jie Zhang <jie@codesourcery.com>
16133 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16134 out array boundary.
16136 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16138 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16139 builtins.exp in a separate job.
16141 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16143 * graphite-sese-to-poly.c (add_param_constraints): Use
16144 lower_bound_in_type and upper_bound_in_type.
16146 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16148 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16149 instead of unsigned_type_node.
16151 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16152 Reza Yazdani <reza.yazdani@amd.com>
16154 PR middle-end/43065
16155 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16156 on pointer type parameters.
16158 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16160 PR middle-end/42644
16161 PR middle-end/42130
16162 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16163 handle conversions from pointer to integers.
16164 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16165 induction variable, to be able to work with code generated by CLooG.
16166 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16167 (build_poly_scop): Bail out if we cannot codegen a loop.
16169 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16171 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16172 code generation with gloog_error.
16174 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16176 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16177 Call fold_convert on all the returned values.
16178 (expand_scalar_variables_expr): Pass to
16179 expand_scalar_variables_ssa_name the type of the resulting expression.
16181 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16183 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16184 ppl_min_for_le_pointset.
16185 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16186 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16188 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16190 * graphite-dependences.c (map_into_dep_poly): Removed.
16191 (dependence_polyhedron_1): Use combine_context_id_scat.
16193 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16195 * graphite-poly.h (struct poly_scattering): Add layout documentation.
16196 (struct poly_bb): Same.
16197 (combine_context_id_scat): New.
16199 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16201 PR middle-end/42326
16202 * sese.c (name_defined_in_loop_p): Return false for default
16205 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16207 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
16208 and clean up the logic.
16210 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16212 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
16215 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16217 * var-tracking.c (remove_cselib_value_chains): Define only for
16219 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
16220 delete_slot_part, emit_notes_for_differences_1): Don't call
16221 remove_cselib_value_chains here.
16222 (set_slot_part, emit_notes_for_differences_2): Don't call
16223 add_cselib_value_chains here.
16224 (preserved_values): New vector.
16225 (preserve_value): New function.
16226 (add_uses, add_stores, vt_add_function_parameters): Use it
16227 instead of cselib_preserve_value.
16228 (changed_values_stack): New vector.
16229 (check_changed_vars_0): New function.
16230 (check_changed_vars_1, check_changed_vars_2): Use it.
16231 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
16232 changed_values_stack VALUEs.
16233 (vt_emit_notes): For all preserved_values call
16234 add_cselib_value_chains. If ENABLE_CHECKING call
16235 remove_cselib_value_chains before verifying value_chains is empty.
16236 Initialize and free changed_values_stack.
16237 (vt_initialize): Initialize preserved_values.
16238 (vt_finalize): Free preserved_values.
16240 2010-03-08 Richard Guenther <rguenther@suse.de>
16242 PR tree-optimization/43269
16243 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
16246 2010-03-08 Martin Jambor <mjambor@suse.cz>
16248 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
16249 (ipa_is_param_called): Removed.
16250 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
16251 (ipa_print_node_params): Do not print the called flag.
16252 (ipa_write_node_info): Do not stream the called flag.
16253 (ipa_read_node_info): Likewise.
16255 2010-03-07 Jakub Jelinek <jakub@redhat.com>
16258 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
16259 * cselib.c (struct expand_value_data): Add dummy field.
16260 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
16262 (cselib_dummy_expand_value_rtx_cb): New function.
16263 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
16265 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
16266 * var-tracking.c: Include pointer-set.h.
16267 (variable): Change n_var_parts to char from int. Add
16268 cur_loc_changed and in_changed_variables fields.
16269 (variable_canonicalize): Remove.
16270 (shared_var_p): New inline function.
16271 (unshare_variable): Maintain cur_loc_changed and
16272 in_changed_variables fields. If var was in changed_variables,
16273 replace it there with new_var. Just copy cur_loc instead of
16274 resetting it to something else.
16275 (variable_union): Don't recompute cur_loc. Use shared_var_p.
16276 (dataflow_set_union): Don't call variable_canonicalize.
16277 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16278 of their DEBUG_EXPR_TREE_DECLs.
16279 (canonicalize_loc_order_check): Verify that cur_loc is NULL
16280 and in_changed_variables and cur_loc_changed is false.
16281 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16282 and cur_loc_changed. Don't update cur_loc here.
16283 (variable_merge_over_src): Don't call variable_canonicalize.
16284 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
16285 removing loc that is equal to cur_loc, clear cur_loc,
16286 set cur_loc_changed and ensure variable_was_changed is called.
16287 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
16288 compare pointers in cur_loc check, if it is equal to loc,
16289 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
16290 (variable_different_p): Remove compare_current_location argument,
16291 don't compare cur_loc.
16292 (dataflow_set_different_1): Adjust variable_different_p caller.
16293 (variable_was_changed): If dv had some var in changed_variables
16294 already, reset in_changed_variables flag for it and propagate
16295 cur_loc_changed over to the new variable. On empty var
16296 always set cur_loc_changed. Set in_changed_variables on whatever
16297 var is added to changed_variables.
16298 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16299 Use shared_var_p. When removing loc that is equal to cur_loc,
16300 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
16301 end, don't set it to something else, just call variable_was_changed.
16302 (delete_slot_part): Use shared_var_p. When cur_loc equals to
16303 loc being removed, clear cur_loc and set cur_loc_changed.
16304 Set cur_loc_changed if all locations have been removed.
16305 (struct expand_loc_callback_data): New type.
16306 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16307 allocated. Always create SUBREGs if simplify_subreg failed.
16308 Prefer to use cur_loc, when that fails and still in
16309 changed_variables (and seen first time) recompute it. Set
16310 cur_loc_changed of variables which had to change cur_loc and
16311 compute elcd->cur_loc_changed if any of the subexpressions used
16312 had to change cur_loc.
16313 (vt_expand_loc): Adjust to pass arguments in
16314 expand_loc_callback_data structure.
16315 (vt_expand_loc_dummy): New function.
16316 (emitted_notes): New variable.
16317 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16318 that weren't used for any other decl in current
16319 emit_notes_for_changes call call vt_expand_loc_dummy to update
16320 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
16321 first loc_chain location if NULL before. Always use just
16322 cur_loc instead of first loc_chain location. When cur_loc_changed
16323 is false, when not --enable-checking=rtl just don't emit any note.
16324 When rtl checking, compute the note and assert it is the same
16325 as previous note. Clear cur_loc_changed and in_changed_variables
16326 at the end before removing from changed_variables.
16327 (check_changed_vars_3): New function.
16328 (emit_notes_for_changes): Traverse changed_vars to call
16329 check_changed_vars_3 on each changed var.
16330 (emit_notes_for_differences_1): Clear cur_loc_changed and
16331 in_changed_variables. Recompute cur_loc of new_var.
16332 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16333 (vt_emit_notes): Initialize and destroy emitted_notes.
16335 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
16337 PR rtl-optimization/42220
16338 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
16339 Use verify_reg_tracked to determine if we should use OP_OUT rather
16341 (build_def_use): If we see an in-out operand for a register that we
16342 know nothing about, treat is an output if possible, fail the block if
16345 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16348 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
16351 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16354 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
16355 uses of relevant DEFs that are dead outside the loop too.
16357 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16359 * var-tracking.c (dataflow_set_merge): Swap src and src2.
16361 2010-01-13 Jakub Jelinek <jakub@redhat.com>
16363 * var-tracking.c (values_to_unmark): New variable.
16364 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16365 values_to_unmark vector. Moved body to...
16366 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
16367 instead queue it into values_to_unmark vector.
16368 (vt_find_locations): Free values_to_unmark vector.
16370 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
16372 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
16373 (site.exp): Export them when plugins are enabled.
16375 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
16377 PR middle-end/42326
16378 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
16379 that contain scevs.
16380 (chrec_fold_multiply): Same.
16382 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
16385 * c-decl.c (build_compound_literal): Return early if init is
16386 an error_mark_node.
16388 2010-03-04 Martin Jambor <mjambor@suse.cz>
16390 PR tree-optimization/43164
16391 PR tree-optimization/43191
16392 * tree-sra.c (type_consists_of_records_p): Reject records with
16393 zero-size bit-fields at the end.
16395 2010-03-04 Mike Stump <mikestump@comcast.net>
16397 * Makefile.in (TAGS): Remove *.y.
16399 2010-03-04 Richard Guenther <rguenther@suse.de>
16401 PR tree-optimization/40761
16402 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
16404 (my_rev_post_order_compute): New function.
16405 (init_pre): Call it.
16407 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
16409 PR middle-end/43209
16410 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
16411 decrease the cost of an IV candidate when the cost is infinite.
16413 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16415 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
16416 Use '3DNow!' for the extension of that name, ensure normal space
16418 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
16420 2010-03-03 Jeff Law <law@redhat.com>
16422 * PR middle-end/32693
16423 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
16424 than gen_rtx_SUBREG.
16425 (extract_bit_field_1): Likewise.
16427 2010-03-03 Janis Johnson <janis187@us.ibm.com>
16429 * doc/sourcebuild.texi (Test directives): Document that arguments
16430 include-opts and exclude-opts are now optional for dg-skip-if,
16431 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
16433 2010-03-03 Jason Merrill <jason@redhat.com>
16436 * cgraph.h (varpool_node): Add extra_name field.
16437 * varpool.c (varpool_extra_name_alias): New.
16438 (varpool_assemble_decl): Emit extra name aliases.
16439 (varpool_mark_needed_node): Look past an extra name alias.
16440 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
16441 * lto-streamer-in.c (lto_input_tree): Read it.
16442 * lto-streamer-out.c (output_unreferenced_globals): Write it.
16444 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
16446 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
16447 (sparc*-*-solaris2*): ...this.
16449 2010-03-03 Jakub Jelinek <jakub@redhat.com>
16452 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
16453 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
16454 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
16455 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
16458 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
16459 fallthrough to default handling, just with want_address 0 instead of 2.
16460 For single element lists, add_AT_loc directly, otherwise create an
16461 artificial variable DIE and stick location list to it.
16464 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
16465 (VAL_EXPR_HAS_REVERSE): Define.
16466 (reverse_op): New function.
16467 (add_stores): For reversible operations add an extra MO_VAL_USE.
16469 2010-03-02 Jason Merrill <jason@redhat.com>
16471 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
16473 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
16475 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
16476 (sparc64-*-linux*): Likewise.
16477 (sparc64-*-solaris2*): Include assembler files before linker ones.
16478 (sparc-*-solaris2*): Simplify and reorder to match previous case.
16479 * config/sparc/gas.h: Delete.
16480 * config/sparc/sol2-64.h: Add copyright notice.
16481 * config/sparc/sol2-gas-bi.h: Likewise.
16482 * config/sparc/sol2-gld.h: Likewise.
16483 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
16484 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
16485 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
16486 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
16487 (sparc_elf_asm_named_section): Rename into...
16488 (sparc_solaris_elf_asm_named_section): ...this. Always define.
16490 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
16492 * config/alpha/alpha.c (override_options): Fix -mtune error message.
16494 2010-03-02 Jeff Law <law@redhat.com>
16496 PR middle-end/42431
16497 * reload1.c (rtx_p, substitute_stack): Declare.
16498 (substitute): Record addresses of changed rtxs.
16499 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
16500 Restore the original rtx when complete.
16501 (reload): Free subsitute_stack when complete.
16503 2010-03-02 Janis Johnson <janis187@us.ibm.com>
16505 * doc/gccint.texi (menu): Add Testsuites as a chapter.
16506 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
16508 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
16509 LTO Testing, gcov Testing, profopt Testing, compat Testing,
16510 Torture Tests): Change from subsection to section.
16512 2010-03-02 Jakub Jelinek <jakub@redhat.com>
16513 Steven Bosscher <steven@gcc.gnu.org>
16515 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
16518 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
16520 PR middle-end/42640
16521 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
16522 the assignment from the new induction variable to the assignment
16523 of the value from the original loop PHI function.
16525 2010-03-01 Janis Johnson <janis187@us.ibm.com>
16526 Daniel Jacobowitz <dan@codesourcery.com>
16528 * doc/sourcebuild.texi (Test directives): Clarify options to
16531 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16533 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
16534 Disable cfi directives unless GCC and gas agree on using read-only
16535 .eh_frame sections for 64-bit.
16536 * configure: Regenerate.
16538 2010-03-01 Richard Guenther <rguenther@suse.de>
16540 PR tree-optimization/43220
16541 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
16542 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
16544 2010-03-01 Richard Guenther <rguenther@suse.de>
16545 Martin Jambor <mjambor@suse.cz>
16547 PR middle-end/41250
16548 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
16549 gimplified parameters.
16551 2010-03-01 Christian Bruel <christian.bruel@st.com>
16553 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
16555 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16557 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
16559 2010-03-01 Richard Guenther <rguenther@suse.de>
16561 PR middle-end/43213
16562 * expr.c (expand_assignment): Use the alias-oracle to tell
16563 if the rhs aliases the result decl.
16565 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16568 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16569 to sol_gt_pch_get_address.
16570 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16571 64-bit, SPARC and x86.
16572 (sol_gt_pch_get_address): New function.
16574 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
16576 * toplev.h (inform_n, error_n): Declare.
16577 * diagnostic.c (inform_n, error_n): New function.
16579 2010-03-01 Jakub Jelinek <jakub@redhat.com>
16581 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16582 has no rtl yet when processing local_decls, queue it and recheck
16583 if deferred stack allocation hasn't assigned it rtl.
16585 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
16587 * config/sh/sh.c (unspec_bbr_uid): New.
16588 (gen_block_redirect): Use it instead of INSN_UID.
16589 (gen_far_branch): Likewise.
16591 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
16593 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16594 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16596 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16598 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16599 (Warning Options): -Wno-conversion-null is valid for
16600 Objective-C++ as well.
16601 * doc/tm.texi (Named Address Spaces): Likewise.
16602 * doc/plugins.texi (Plugins): Replace TABs with spaces.
16603 * doc/tree-ssa.texi (Tree SSA): Likewise.
16605 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16608 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16609 by default. Don't set the default arch for
16610 i[34567]86-*-darwin*|x86_64-*-darwin*.
16612 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16615 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
16616 default. Set the default 32bit/64bit archs with $with_arch
16617 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
16619 2010-02-27 Richard Guenther <rguenther@suse.de>
16621 PR tree-optimization/43186
16622 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
16623 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
16624 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
16625 unroller iterations.
16627 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16629 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
16630 required and i[34567]86-*-* targets don't support 64bit ISA.
16632 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
16635 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16636 the same alias set.
16638 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16640 * config.gcc: Set the default arch at least to Prescott for
16641 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
16642 if SSE math is enabled.
16644 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16646 * diagnostic.c (diagnostic_initialize): Update.
16647 (diagnostic_report_diagnostic): Test inhibit_notes_p for
16649 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
16650 (diagnostic_inhibit_notes): New.
16651 * toplev.c (process_options): inhibit notes with -fcompare-debug.
16653 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16656 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
16657 * doc/standards.texi: Likewise.
16658 * doc/extend.texi: Likewise.
16659 * doc/trouble.texi: Likewise.
16660 * doc/cppopts.texi: Likewise.
16661 * doc/install.texi: Likewise.
16662 * c.opt (std=c90,std=gnu90): New options.
16663 * c-opts.c (c_common_handle_option): Handle them.
16665 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16668 * c-decl.c (undeclared_variable): Use an informative note.
16670 2010-02-26 Richard Guenther <rguenther@suse.de>
16672 PR tree-optimization/43186
16673 * gimple.h (gimple_fold): Remove.
16674 * gimple.c (gimple_fold): Remove. Inline into single user ...
16675 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16676 Try harder for conditions.
16678 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16681 * function.c (used_types_insert): Don't skip through named pointer
16682 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
16683 and it is different from the main variant's type.
16685 2010-02-26 Nick Clifton <nickc@redhat.com>
16687 * config/rx/rx.md (sminsi3): Remove bogus alternative.
16689 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16691 * config.gcc: Support --with-fpmath=sse for x86.
16693 * config/i386/ssemath.h: New.
16695 * doc/install.texi (--with-fpmath=sse): Documented.
16697 2010-02-26 Richard Guenther <rguenther@suse.de>
16699 PR tree-optimization/43188
16700 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16701 vector types of over-aligned element type.
16703 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
16706 * config/i386/i386.c (expand_vec_perm_blend): Use correct
16707 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
16709 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16711 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16713 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16715 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16716 * var-tracking.c: Include diagnostic.h.
16717 (debug_dv): New function.
16718 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16721 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16722 (add_value_chain, add_value_chains, remove_value_chain,
16723 remove_value_chains): Handle DEBUG_EXPRs.
16724 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16727 * regcprop.c (struct queued_debug_insn_change): New type.
16728 (struct value_data_entry): Add debug_insn_changes field.
16729 (struct value_data): Add n_debug_insn_changes field.
16730 (debug_insn_changes_pool): New variable.
16731 (free_debug_insn_changes, apply_debug_insn_changes,
16732 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16733 (kill_value_one_regno): Call free_debug_insn_changes if needed.
16734 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16736 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16738 (copyprop_hardreg_forward_1): Don't call apply_change_group for
16739 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
16740 changes, call cprop_find_used_regs via note_stores.
16741 (copyprop_hardreg_forward): When copying vd from predecessor
16742 which has any queued DEBUG_INSN changes, make sure the pointers are
16743 cleared. At the end call df_analyze and then if there are any
16744 DEBUG_INSN changes queued at the end of some basic block for still
16745 live registers, apply them.
16746 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16748 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
16750 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16753 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
16755 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16756 targets. Set the default with_cpu/with_arch from arch/cpu.
16757 Allow x86-64 and native for with_cpu/with_arch.
16759 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
16761 * ebitmap.c: Change calls to verify_popcount with calls to
16762 sbitmap_verify_popcount.
16763 (ebitmap_clear_bit): Fixed map->cacheindex test and
16764 map>cache update when bit clearing results in an empty
16767 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
16770 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16771 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16772 and support both V2DF and V2DI modes.
16773 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16774 support both V2DF and V2DI modes.
16775 (general): Delete trailing whitespace from a few patterns.
16777 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16778 V2DF/V2DI interleave high/low builtins.
16780 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16783 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16784 interleave high/low functions.
16786 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16788 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16789 #pragma extern_prefix.
16791 2010-02-25 Jakub Jelinek <jakub@redhat.com>
16794 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16795 BLKmode, assert op0 is a MEM and just adjust its mode.
16798 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16799 if bitpos isn't multiple of mode's bitsize.
16801 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16803 * c.opt (-ftemplate-depth=): New.
16804 (-ftemplate-depth-): Deprecate.
16805 * optc-gen.awk: Handle -ftemplate-depth=.
16806 * opth-gen.awk: Likewise.
16807 * c-opts.c (c_common_handle_option): Likewise.
16808 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16810 2010-02-24 Jason Merrill <jason@redhat.com>
16812 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16814 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16816 * cfg.c (alloc_aux_for_block): Remove inline.
16817 (alloc_aux_for_edge): Likewise.
16819 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16821 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16823 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16825 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16826 * config/i386/sol2-gas.h: New file.
16827 * config.gcc (i[34567]86-*-solaris2*): Use it.
16829 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16832 * c-typeck.c (ep_convert_and_check): New.
16833 (build_conditional_expr): Use it.
16834 (build_binary_op): Likewise.
16836 2010-02-24 Jakub Jelinek <jakub@redhat.com>
16838 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16841 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16842 bounds even for -O+.
16843 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16844 expr needs to have DECL_NAME set.
16846 2010-02-24 Nick Clifton <nickc@redhat.com>
16848 * config/mep/mep.c: Include gimple.h.
16849 (mep_function_uses_sp): Delete unused function.
16850 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16851 parameters. Use unsigned integers to count args. Return a
16852 NULL_RTX instead of an error_mark_node. Toidy up formatting.
16854 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16857 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16858 greater or equal to nelt instead of 2 * nelt.
16859 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16862 2010-02-23 Jason Merrill <jason@redhat.com>
16865 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16866 in cfun->local_decls even if they have register types.
16869 * stor-layout.c (place_field): Don't warn about unnecessary
16870 DECL_PACKED if the type is packed.
16872 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16875 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16876 GOTOFF relocs, even when the base reg isn't pic pointer.
16878 2010-02-23 Michael Matz <matz@suse.de>
16881 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16882 (expand_gimple_basic_block): Generate and use debug temps if there
16883 are debug uses left after the last real use of TERed ssa names.
16884 Unlink debug immediate uses when they are expanded.
16886 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
16889 * config/i386/i386.c (override_options): Reorganise to provide
16890 better error messages.
16892 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16894 PR middle-end/43083
16895 * graphite-scop-detection.c (create_single_exit_edge): Move
16896 the call to find_single_exit_edge to....
16897 (create_sese_edges): ...here. Don't handle multiple edges
16898 exiting the function.
16899 (build_graphite_scops): Don't handle multiple edges
16900 exiting the function.
16902 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16904 PR middle-end/43097
16905 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16906 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16908 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16910 PR middle-end/43026
16911 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16913 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
16916 * c-typeck.c (convert_arguments): Print declaration location.
16917 * c-common.c (validate_nargs): Rename as
16918 builtin_function_validate_nargs.
16919 (check_builtin_function_arguments): Update.
16921 2010-02-22 Richard Guenther <rguenther@suse.de>
16924 * tree-inline.c (declare_return_variable): Use the type of
16925 the call stmt lhs if available.
16927 2010-02-22 Duncan Sands <baldrick@free.fr>
16929 * passes.c (register_pass): Always consider all pass lists when
16930 ref_pass_instance_number is zero.
16932 2010-02-22 Richard Guenther <rguenther@suse.de>
16934 PR tree-optimization/42749
16935 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16936 parameter. Do arithmetic in the original type.
16937 (update_accumulator_with_ops): Likewise.
16938 (adjust_accumulator_values): Adjust.
16940 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16942 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16943 (QI to BLKmode splitter): New splitter.
16945 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
16947 * config/i386/i386.c (initial_ix86_tune_features): Turn on
16948 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16950 2010-02-22 Richard Guenther <rguenther@suse.de>
16952 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16954 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
16956 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16957 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16958 ($(T)crti.o, $(T)crtn.o): Remove rules.
16960 2010-02-21 Tobias Burnus <burnus@net-b.de>
16963 * doc/invoke.texi (-fassociative-math): Document that this
16964 option is automatically enabled for Fortran.
16966 2010-02-20 David S. Miller <davem@davemloft.net>
16968 * configure.ac: Test if linker and assembler properly support
16969 GOTDATA_OP relocations.
16970 * configure: Rebuild.
16971 * config.in: Likewise.
16972 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16973 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16974 (movsi_high_pic): Likewise.
16975 (movdi_lo_sum_pic): Likewise.
16976 (movdi_high_pic): Likewise.
16977 (movsi_pic_gotdata_op): New pattern.
16978 (movdi_pic_gotdata_op): Likewise.
16979 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16980 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16982 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
16985 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
16986 attribute to ssemul.
16987 (xop_mulv2div2di3_high): Ditto.
16989 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16992 * c.opt (Wconversion-null): New option.
16993 * doc/invoke.texi (Wconversion-null): Document.
16995 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16997 * common.opt (Wlarger-than-): Add Undocumented.
16999 2010-02-19 Mike Stump <mikestump@comcast.net>
17001 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17003 2010-02-19 Jason Merrill <jason@redhat.com>
17006 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17007 * configure: Likewise.
17009 2010-02-20 Alan Modra <amodra@gmail.com>
17011 PR middle-end/42344
17012 * cgraph.h (cgraph_make_decl_local): Declare.
17013 * cgraph.c (cgraph_make_decl_local): New function.
17014 (cgraph_make_node_local): Use it.
17015 * cgraphunit.c (cgraph_function_versioning): Likewise.
17016 * ipa.c (function_and_variable_visibility): Likewise.
17018 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17021 * except.c (sjlj_emit_function_enter): Don't call
17022 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17024 * rtl.h (add_reg_br_prob_note): Remove prototype.
17026 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
17029 * c-common.c (conversion_warning): Remove widening conversions
17030 before checking the conversion of integers to reals.
17032 2010-02-19 Mike Stump <mikestump@comcast.net>
17034 PR middle-end/43125
17035 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17038 * cgraphunit.c (process_function_and_variable_attributes): Check
17039 DECL_PRESERVE_P instead of looking up attribute "used".
17040 * ipa-pure-const.c (check_decl): Likewise.
17041 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17042 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17043 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17044 instead of attribute "used".
17045 * config/sol2-c.c (solaris_pragma_init): Likewise.
17046 (solaris_pragma_fini): Likewise.
17048 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17050 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17051 Use XCNEW instead of xcalloc.
17052 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17053 XNEW instead of xmalloc.
17054 (get_fields): Use XNEWVEC instead of xmalloc.
17057 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17058 populate vars array.
17059 (create_new_general_access): For debug stmts just reset value.
17060 (get_stmt_accesses): For accesses within debug stmts just record them
17061 using add_access_to_acc_sites instead of preventing the peeling or
17062 counting them as accesses.
17064 PR middle-end/42233
17065 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17067 2010-02-19 Richard Guenther <rguenther@suse.de>
17069 PR tree-optimization/42916
17070 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17073 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
17075 * configure.ac: Replace all uses of changequote in macro arguments
17076 with proper quoting.
17078 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17080 PR middle-end/42233
17081 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17083 2010-02-19 Richard Guenther <rguenther@suse.de>
17085 PR tree-optimization/42944
17086 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17087 test for aliasing with errno.
17089 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17091 PR middle-end/42233
17092 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17093 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17094 * dojump.c: Include output.h.
17095 (inv): New inline function.
17096 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17097 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17098 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17099 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17100 argument, pass it down to other calls.
17101 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
17102 add REG_BR_PROB note to the conditional jump.
17103 * cfgexpand.c (add_reg_br_prob_note): Removed.
17104 (expand_gimple_cond): Don't call it, add the probability
17105 as last argument to jumpif_1/jumpifnot_1.
17106 * Makefile.in (dojump.o): Depend on output.h.
17107 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17109 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17110 * stmt.c (do_jump_if_equal): Likewise.
17111 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17112 * loop-unswitch.c (compare_and_jump_seq): Likewise.
17113 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17115 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17116 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17117 jumpifnot_1 callers.
17118 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17120 (store_expr): Adjust jumpifnot caller.
17121 (store_constructor): Adjust jumpif caller.
17123 PR middle-end/42233
17124 * gimplify.c (gimple_boolify): For __builtin_expect call
17125 gimple_boolify also on its first argument.
17127 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
17129 * configure.ac (gnu-unique-object): Wrap regexps using [] in
17131 (__stack_chk_fail): Ditto. Remove quadrigraphs.
17132 * configure: Regenerated.
17134 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17136 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17137 lang_hooks.types_compatible_p instead of comptypes.
17139 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17141 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17142 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17143 if __prefer_thumb__ is defined.
17145 2010-02-18 Martin Jambor <mjambor@suse.cz>
17147 PR tree-optimization/43066
17148 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17149 array with zero-sized element type.
17151 2010-02-18 Jakub Jelinek <jakub@redhat.com>
17153 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17154 rtx, allocate struct var_loc_node here and return it to the
17155 caller, and only if it is actually needed.
17156 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17157 move it earlier and return immediately if it returns NULL.
17159 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
17161 * config/sparc/gas.h: New file. Restore
17162 TARGET_ASM_NAMED_SECTION to its ELF default.
17163 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17164 check !HAVE_GNU_AS.
17165 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17166 Likewise. Add ATTRIBUTE_UNUSED to prototype.
17167 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17168 after sparc/sysv4.h.
17170 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
17172 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17174 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
17176 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17177 patterns from predicated pattern.
17179 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
17182 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17183 for insn mnemonic suffix.
17185 2010-02-17 Richard Guenther <rguenther@suse.de>
17187 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17190 2010-02-17 Jakub Jelinek <jakub@redhat.com>
17193 * caller-save.c (save_call_clobbered_regs): If BB ends with
17194 a DEBUG_INSN, move any notes in between last real insn and the last
17195 DEBUG_INSN after the last DEBUG_INSN.
17197 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
17199 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17200 Fix return type. Fix argument type. Explain meaning of return value.
17202 2010-02-16 Richard Guenther <rguenther@suse.de>
17204 PR tree-optimization/41043
17205 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
17206 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
17208 (vrp_visit_phi_node): ... but only for loop PHI nodes.
17210 2010-02-16 Ira Rosen <irar@il.ibm.com>
17212 PR tree-optimization/43074
17213 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
17214 * tree-vect-loop.c (vect_analyze_loop_operations): Add
17215 vectorizable cycles in hybrid SLP check.
17216 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
17218 2010-02-16 Richard Guenther <rguenther@suse.de>
17220 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
17221 (true_dependence): If memrefs_conflict_p computes must-alias
17222 trust it. Move TBAA check after offset-based disambiguation.
17223 (canon_true_dependence): Likewise.
17225 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
17227 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
17228 * doc/invoke.texi: Document it.
17229 * var-tracking.c: Include toplev.h and params.h.
17230 (vt_find_locations): Return bool indicating success. Compute
17231 hash sizes unconditionally. Check new parameter, report.
17232 (variable_tracking_main_1): Check vt_find_locations results and
17233 retry. Renamed from...
17234 (variable_tracking_main): ... this. New wrapper to preserve
17235 flag_var_tracking_assignments.
17236 * Makefile.in (var-tracking.o): Adjust dependencies.
17238 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
17239 Jakub Jelinek <jakub@redhat.com>
17242 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
17243 if weak_import attribute is present.
17244 * config/darwin.c (machopic_select_section): Likewise.
17246 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
17248 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
17249 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
17250 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
17251 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
17253 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
17256 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17257 Fix argument types.
17259 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
17260 Rewrite text to refer to the names.
17262 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
17264 * config/i386/i386-builtin-types.def
17265 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
17266 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17267 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17268 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17269 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17270 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17271 IX86_BUILTIN_VPERMIL2PS256.
17272 (MULTI_ARG_4_DF2_DI_I): Defined.
17273 (MULTI_ARG_4_DF2_DI_I1): Defined.
17274 (MULTI_ARG_4_SF2_SI_I): Defined.
17275 (MULTI_ARG_4_SF2_SI_I1): Defined.
17276 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17277 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17278 __builtin_ia32_vpermil2ps256.
17279 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17280 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17281 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
17282 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17283 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17284 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
17285 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17286 CODE_FOR_xop_vpermil2v8sf3.
17287 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17288 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17289 * config/i386/xopintrin.h (_mm_permute2_pd): New.
17290 (_mm256_permute2_pd): New.
17291 (_mm_permute2_ps): New.
17292 (_mm256_permute2_ps): New.
17294 2010-02-15 Nick Clifton <nickc@redhat.com>
17296 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17297 boolean parameters. Use emit_jump_insn when emitting a pop
17298 instruction containing a return insn.
17299 (push): Use 'true' rather than '1' as second parameter to F.
17300 (h8300_expand_prologue): Likewise.
17301 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17302 (h8300_expand_epilogue): Likewise.
17304 2010-02-15 Richard Guenther <rguenther@suse.de>
17306 PR middle-end/43068
17307 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17310 2010-02-15 Nick Clifton <nickc@redhat.com>
17312 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17315 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
17317 * intl.c (fake_ngettext): New function.
17318 * intl.h (fake_ngettext): Declare.
17319 (ngettext): Define macro.
17320 * collect2.c (notice_translated): New function.
17321 (main): Use notice_translated and ngettext.
17322 * collect2.h (notice_translated): Declare.
17324 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
17326 * reorg.c (delete_computation): Comment fixes.
17327 * caller-save.c (setup_save_areas): Idem.
17328 * sel-sched-dump.c (dump_lv_set): Idem.
17331 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17333 * config/s390/s390.c (s390_sched_init): New function.
17334 (TARGET_SCHED_INIT): Target hook defined.
17336 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
17337 Jack Howarth <howarth@bromo.med.uc.edu>
17338 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17341 Partial revert of unintended change in fix for PR41605.
17342 * config/darwin.h: Fix typo.
17343 * config/darwin9.h: Same.
17345 2010-02-11 Jakub Jelinek <jakub@redhat.com>
17347 * c-pch.c (pch_init): Clear v.
17349 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17351 PR middle-end/42930
17352 * graphite-scop-detection.c (graphite_can_represent_scev): Call
17353 graphite_can_represent_init for MULT_EXPR.
17355 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17357 PR middle-end/42914
17358 PR middle-end/42530
17359 * graphite-sese-to-poly.c (remove_phi): New.
17360 (translate_scalar_reduction_to_array): Call remove_phi.
17362 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17364 PR middle-end/42771
17365 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
17366 * graphite-clast-to-gimple.h (gloog): Update declaration.
17367 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
17368 * graphite-poly.h (struct poly_bb): Add missing comments.
17369 (struct scop): Add poly_scop_p field.
17370 (POLY_SCOP_P): New.
17371 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
17372 * graphite.c (graphite_transform_loops): Build the polyhedral
17373 representation for each scop before code generation.
17374 * sese.c (rename_variables_in_operand): Removed.
17375 (rename_variables_in_expr): Return the renamed expression.
17376 (rename_sese_parameters): New.
17377 * sese.h (rename_sese_parameters): Declared.
17379 2010-02-11 Richard Guenther <rguenther@suse.de>
17381 PR tree-optimization/42998
17382 * tree-ssa-pre.c (create_expression_by_pieces): Treat
17383 POINTER_PLUS_EXPR properly.
17385 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17386 Changpeng Fang <changpeng.fang@amd.com>
17388 PR middle-end/40886
17389 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
17390 the cost of an IV candidate when the IV is used in a test against zero.
17392 * gcc.dg/tree-ssa/ivopts-3.c: New.
17394 2010-02-11 Richard Guenther <rguenther@suse.de>
17397 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
17398 pointer-vs-decl case by swapping refs. Handle some cases
17399 of pointer-vs-decl disambiguations more conservatively.
17400 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
17401 to false after expanding.
17403 2010-02-11 Richard Guenther <rguenther@suse.de>
17406 * gcc.c (process_command): Handle LTO file@offset case more
17409 2010-02-11 Jakub Jelinek <jakub@redhat.com>
17411 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
17412 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
17414 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
17416 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
17417 if MEM's mode size isn't DWARF2_ADDR_SIZE.
17418 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
17419 Optimize eq/ne comparisons when both arguments are known to be
17421 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
17422 Don't mask operands unnecessarily if they are known to be already
17425 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
17427 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
17430 2010-02-10 Richard Guenther <rguenther@suse.de>
17432 PR tree-optimization/43017
17433 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
17434 for wrapping signed arithmetic.
17436 2010-02-10 Jakub Jelinek <jakub@redhat.com>
17439 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
17440 if no debug info should be emitted for it.
17442 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
17444 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
17445 note when flag_exceptions is set.
17447 2010-02-10 Duncan Sands <baldrick@free.fr>
17449 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
17451 2010-02-10 Richard Guenther <rguenther@suse.de>
17454 * tree.c (get_unwidened): Handle constants.
17455 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
17457 2010-02-10 Martin Jambor <mjambor@suse.cz>
17460 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
17461 check for variable argument counts independently.
17463 2010-02-10 Christian Bruel <christian.bruel@st.com>
17466 * config/sh/sh.c (find_barrier): Increase length for non delayed
17467 conditional branches.
17469 2010-02-10 Christian Bruel <christian.bruel@st.com>
17471 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
17473 2010-02-10 Jakub Jelinek <jakub@redhat.com>
17475 * builtins.c (set_builtin_user_assembler_name): Also handle
17476 ffs if int is smaller than word.
17478 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
17480 PR middle-end/42973
17481 * ira-conflicts.c (get_dup): Remove.
17482 (process_reg_shuffles): Add new parameter. Use it as an
17483 additional guard for copy generation.
17484 (add_insn_allocno_copies): Rewrite.
17486 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
17488 * common.opt (fsched2-use-traces): Preserved for backward
17490 * doc/invoke.texi: Remove the documentation about option
17491 -fsched2-use-traces.
17492 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
17493 flag_sched2_use_traces.
17494 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
17495 the backward compatibility flag section.
17497 2010-02-09 Richard Guenther <rguenther@suse.de>
17499 PR tree-optimization/43008
17500 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
17501 make HEAP variables initialized from global memory if they
17502 are not known builtin functions.
17503 (find_func_aliases): Adjust.
17505 2010-02-09 Richard Guenther <rguenther@suse.de>
17507 PR tree-optimization/43000
17508 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
17509 arithmetic manually.
17511 2010-02-08 Jakub Jelinek <jakub@redhat.com>
17513 PR tree-optimization/42931
17514 * tree-loop-linear.c (try_interchange_loops): Don't call
17515 double_int_mul if estimated_loop_iterations failed.
17517 2010-02-08 Martin Jambor <mjambor@suse.cz>
17519 PR middle-end/42898
17520 * tree-sra.c (build_accesses_from_assign): Do not mark in
17521 should_scalarize_away_bitmap if stmt has volatile ops.
17522 (sra_modify_assign): Do not process assigns piecemeal if if stmt
17525 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
17527 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
17529 2010-02-07 Adam Nemet <adambnmet@gmail.com>
17531 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
17532 before the pattern.
17534 2010-02-07 Andrew Pinski <pinskia@gmail.com>
17536 PR middle-end/42946
17537 * df-core.c (df_finish_pass): Change type of saved_flags to int.
17539 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
17541 PR middle-end/42988
17542 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
17543 to unknown_dependence.
17544 (graphite_legal_transform_dr): Handle the unknown_dependence.
17545 (graphite_carried_dependence_level_k): Same.
17547 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
17549 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
17551 2010-02-07 Richard Guenther <rguenther@suse.de>
17553 PR middle-end/42991
17554 * expr.c (get_inner_reference): Always initialize *pbitsize.
17556 2010-02-07 Richard Guenther <rguenther@suse.de>
17558 PR middle-end/42956
17559 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
17560 new ARRAY_REFs on variable size element or minimal index arrays.
17562 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
17563 gimple_fold_indirect_ref.
17565 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
17568 * arm.c (arm_override_options): Just return if the user has specified
17569 an invalid fpu name.
17571 2010-02-03 Jason Merrill <jason@redhat.com>
17574 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17575 i386_pe_maybe_record_exported_symbol.
17577 2010-02-05 Steve Ellcey <sje@cup.hp.com>
17580 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17581 (pa_delegitimize_address): New function.
17583 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
17585 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17586 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17588 2010-02-05 Richard Guenther <rguenther@suse.de>
17591 * lto-streamer-in.c (get_resolution): Deal with references
17592 to undefined functions.
17594 2010-02-05 Richard Guenther <rguenther@suse.de>
17596 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17597 (fold_const_aggregate_ref): Likewise.
17598 (ccp_fold_stmt): Substitute loads.
17599 (maybe_fold_reference): Verify types before substituting.
17601 (fold_gimple_assign): Unshare properly.
17602 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17604 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
17606 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17607 for rs6000_gen_cell_microcode.
17609 2010-02-04 Richard Guenther <rguenther@suse.de>
17611 PR rtl-optimization/42952
17612 * dse.c (const_or_frame_p): Remove MEM handling.
17614 2010-02-04 Nick Clifton <nickc@redhat.com>
17616 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17617 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17618 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
17619 (mn10300_asm_output_mi_thunk): New function.
17620 (mn10300_can_output_mu_thunk): New function.
17621 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
17622 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
17623 (FUNCTION_ARG): Delete incorrect comment.
17625 2010-02-03 Jason Merrill <jason@redhat.com>
17628 * fold-const.c (operand_equal_p): Handle erroneous types.
17630 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17632 * config/h8300/h8300.md (can_delay): Fix attibute condition.
17634 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
17636 PR rtl-optimization/42941
17637 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
17640 2010-02-03 Jason Merrill <jason@redhat.com>
17643 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
17645 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
17648 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
17649 (cselib_reset_table): Renamed from...
17650 (cselib_reset_table_with_next_value): ... this.
17651 (cselib_get_next_uid): Renamed from...
17652 (cselib_get_next_unknown_value): ... this.
17653 * cselib.c (next_uid): Renamed from...
17654 (next_unknown_value): ... this.
17655 (cselib_clear_table): Adjust.
17656 (cselib_reset_table): Adjust. Renamed from...
17657 (cselib_reset_table_with_next_value): ... this.
17658 (cselib_get_next_uid): Adjust. Renamed from...
17659 (cselib_get_next_unknown_value): ... this.
17660 (get_value_hash): Use hash.
17661 (cselib_hash_rtx): Likewise.
17662 (new_cselib_val): Adjust. Set and dump uid.
17663 (cselib_lookup_mem): Pass next_uid as hash.
17664 (cselib_subst_to_values): Likewise.
17665 (cselib_log_lookup): Dump uid.
17666 (cselib_lookup): Pass next_uid as hash. Adjust.
17667 (cselib_process_insn): Adjust.
17668 (cselib_init): Initialize next_uid.
17669 (cselib_finish): Adjust.
17670 (dump_cselib_table): Likewise.
17671 * dse.c (canon_address): Dump value uid.
17672 * print-rtl.c (print_rtx): Print value uid.
17673 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17675 (dv_uid): New function, sort of renamed from...
17676 (dv_htab_hash): ... this, reimplemented in terms of it and...
17677 (dv_uid2hash): ... this. New.
17678 (variable_htab_eq): Drop excess assertions.
17679 (tie_break_pointers): Removed.
17680 (canon_value_cmp): Compare uids.
17681 (variable_post_merge_New_vals): Print uids.
17682 (vt_add_function_parameters): Adjust.
17683 (vt_initialize): Reset table. Adjust.
17685 2010-02-03 Richard Guenther <rguenther@suse.de>
17687 PR tree-optimization/42944
17688 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17689 (call_may_clobber_ref_p_1): Likewise. Properly handle
17690 malloc and calloc clobbering errno.
17692 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
17694 * doc/invoke.texi: Fix name of sched1 dump.
17696 * opts.c (decode_options): Set flag_tree_switch_conversion
17697 only conditionally on optimize >= 2.
17699 * gcse.c: Assorted comment fixes in pass description.
17701 2010-02-03 Anthony Green <green@moxielogic.com>
17703 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17704 nop padding in order to maintain alignment of storage location of
17705 target function address.
17706 (moxie_trampoline_init): Store target function address at newly
17708 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17710 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17712 2010-02-03 Richard Guenther <rguenther@suse.de>
17714 PR middle-end/42927
17715 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17717 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17719 * config.gcc: Reenable check for obsolete targets.
17720 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17721 mips-sgi-irix6.[0-4]*.
17723 2010-02-02 Nick Clifton <nickc@redhat.com>
17725 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17726 constant size of 4 as being the same as 0.
17727 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17728 can take values in the range 0..4.
17730 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
17733 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17734 as _darwin10_Unwind_FindEnclosingFunction().
17735 * libgcc-libsystem.ver: New.
17737 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
17740 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17741 implicitly set registers.
17743 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
17745 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17746 (arm_override_options): Allow automatic selection of the thread
17747 pointer register if thumb2.
17748 (legitimize_pic_address): Improve code sequences for Thumb2.
17749 (arm_call_tls_get_addr): Likewise.
17750 (legitimize_tls_address): Likewise.
17751 * arm.md (pic_load_addr_arm): Delete. Replace with ...
17752 (pic_load_addr_32bit): ... this. New named pattern.
17753 * thumb2.md (pic_load_addr_thumb2): Delete.
17754 (pic_load_dot_plus_four): Delete.
17755 (tls_load_dot_plus_four): New named pattern.
17757 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17760 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17761 Document fix for TLS bug.
17763 2010-01-31 Richard Guenther <rguenther@suse.de>
17765 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17766 conservatively correct.
17768 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17772 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17774 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17776 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17778 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17780 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
17782 * config.gcc: Adjust order of makefile fragments for mingw targets.
17784 2010-01-31 Richard Guenther <rguenther@suse.de>
17786 PR middle-end/42898
17787 * gimplify.c (gimplify_init_constructor): For volatile LHS
17788 initialize a temporary.
17790 2010-01-31 Matthias Klose <doko@ubuntu.com>
17792 * configure.ac: Fix __stack_chk_fail check for cross builds configured
17794 * configure: Regenerate.
17796 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
17798 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17799 the same alias set and their sizes different constantness.
17800 (aliasing_component_refs_p): Revert 2009-10-24 change.
17802 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17804 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17807 2010-01-29 Richard Guenther <rguenther@suse.de>
17809 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17810 Assert we successfully updated the call.
17812 2010-01-29 Jakub Jelinek <jakub@redhat.com>
17814 PR rtl-optimization/42889
17815 * df.h (df_set_bb_dirty_nonlr): New prototype.
17816 * df-core.c (df_set_bb_dirty_nonlr): New function.
17817 * df-scan.c (df_insn_rescan): Call it instead of
17818 df_set_bb_dirty for DEBUG_INSNs.
17820 2010-01-29 Richard Guenther <rguenther@suse.de>
17822 PR middle-end/37448
17823 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17824 quadratic behavior in most cases.
17826 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
17829 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17830 in the call to gen_x86_movsicc_0_m1.
17832 2010-01-28 Richard Guenther <rguenther@suse.de>
17834 PR tree-optimization/42871
17835 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17837 2010-01-28 Richard Guenther <rguenther@suse.de>
17839 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17840 into call arguments.
17842 2010-01-28 Richard Guenther <rguenther@suse.de>
17844 PR middle-end/42883
17845 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17846 the forwarder if the destination is an EH landing pad.
17848 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
17850 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17851 block list passed to gimple_duplicate_sese_tail.
17852 (parallelize_loops): Avoid parallelization when the function
17853 has_nonlocal_label.
17854 Avoid parallelization when the preheader is IRREDUCIBLE.
17855 Try to optimize when estimated_loop_iterations_int is unresolved.
17856 Add the loop's location to the dump file.
17857 * tree-cfg.c (add_phi_args_after_redirect): Remove.
17858 (gimple_duplicate_sese_tail): Remove the check for the latch.
17859 Redirect nexits to the exit block.
17860 Remove handling of the incoming edges to the latch.
17861 Redirect the backedge from the copied latch to the exit bb.
17863 2010-01-28 Michael Matz <matz@suse.de>
17866 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17867 Wrap force_reg into a sequence, emit it before user.
17869 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
17871 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17873 (arm_legacy_rev): Likewise.
17874 (thumb_legacy_rev): Likewise.
17876 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17878 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17879 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
17880 on MEM's address failed, try avoid_constant_pool_reference and
17881 recurse if it returned something different.
17882 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17883 address, try avoid_constant_pool_reference and recurse if it
17884 returned something different.
17885 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17886 address and avoid_constant_pool_reference returned something
17887 different, don't set have_address.
17889 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
17892 * var-tracking.c (val_store): Add modified argument, obey it.
17894 (count_uses): Move down logging of main.
17895 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17896 don't need resolution.
17897 (emit_notes_in_bb): Likewise.
17899 2010-01-27 Richard Guenther <rguenther@suse.de>
17901 PR middle-end/42878
17902 * tree-inline.c (remap_decl): Delay remapping of SSA name
17903 default definitions until we need them.
17905 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17907 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17908 (rs6000_delegitimize_address): New function.
17910 * config/s390/s390.c (s390_delegitimize_address): Call
17911 delegitimize_mem_from_attrs.
17913 PR middle-end/42874
17914 * tree-inline.c (cannot_copy_type_1): Removed.
17915 (copy_forbidden): Don't forbid copying of functions containing
17916 records/unions with variable length fields.
17918 2010-01-27 Christian Bruel <christian.bruel@st.com>
17922 * config/sh/sh.c (find_barrier): Increase length for non delayed
17923 conditional branches.
17925 2010-01-27 Matthias Klose <doko@ubuntu.com>
17927 * configure.ac (gnu-unique-object): Fix ldd version check.
17928 * configure: Regenerate.
17930 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17932 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17934 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17935 Test for HAVE_GNU_AS value.
17937 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17939 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17940 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17941 INT64_TYPE): Define.
17942 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17943 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17944 INT_LEAST64_TYPE): Define.
17945 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17946 UINT_LEAST64_TYPE): Define.
17947 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17948 INT_FAST64_TYPE): Define.
17949 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17950 UINT_FAST64_TYPE): Define.
17951 (INTMAX_TYPE, UINTMAX_TYPE): Define.
17952 (INTPTR_TYPE, UINTPTR_TYPE): Define.
17953 (SIG_ATOMIC_TYPE): Define.
17955 2010-01-26 Richard Guenther <rguenther@suse.de>
17957 * df-scan.c (df_scan_set_bb_info): Remove assert.
17958 (df_insn_rescan_debug_internal): Merge asserts.
17959 (df_install_ref): Likewise.
17960 (df_mark_reg): Use bitmap_set_range.
17961 (df_hard_reg_used_p): Remove assert.
17962 (df_hard_reg_used_count): Likewise.
17964 2010-01-26 Richard Guenther <rguenther@suse.de>
17966 PR rtl-optimization/42685
17967 * web.c (web_main): Ignore DEBUG_INSNs.
17969 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
17971 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17973 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17974 Fix types of fndecl and arglist parameters.
17976 2010-01-26 Richard Guenther <rguenther@suse.de>
17978 PR middle-end/42806
17979 * tree-eh.c (unsplit_eh): Skip debug insns.
17981 2010-01-26 Richard Guenther <rguenther@suse.de>
17983 PR tree-optimization/42250
17984 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
17986 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17989 * omp-low.c (expand_omp_sections): Only use single_pred if
17990 l2_bb is single_pred_p.
17992 2010-01-25 Christian Bruel <christian.bruel@st.com>
17995 * config/sh/sh.c (find_barrier): Increase length for non delayed
17996 conditional branches.
17997 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
17999 2010-01-24 David S. Miller <davem@davemloft.net>
18001 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18002 define if not using GAS.
18003 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18004 Likewise. Delete SECTION_MERGE code, which is only applicable
18007 2010-01-24 Mark Mitchell <mark@codesourcery.com>
18010 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18011 mangling of va_list in system headers.
18013 2010-01-23 Toon Moene <toon@moene.org>
18015 * tree-predcom.c (combine_chains): Return NULL, not false.
18017 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
18019 * tree-loop-distribution.c (distribute_loop): Fix declaration and
18020 initialization of variable res to agree with return type.
18022 2010-01-22 Steve Ellcey <sje@cup.hp.com>
18024 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18025 * tree-sra.c: Add include of expr.h.
18027 2010-01-22 Jakub Jelinek <jakub@redhat.com>
18029 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18030 insert the debug stmt on the single non-EH edge from the stmt.
18032 2010-01-22 Richard Henderson <rth@redhat.com>
18035 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18036 the RHS until after generate_subtree_copies has insertted its
18037 code before the current statement.
18039 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
18041 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18043 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18045 2010-01-21 Martin Jambor <mjambor@suse.cz>
18047 PR tree-optimization/42585
18048 * tree-sra.c (struct access): New field grp_total_scalarization.
18049 (dump_access): Dump the new field.
18050 (should_scalarize_away_bitmap): New variable.
18051 (cannot_scalarize_away_bitmap): Likewise.
18052 (sra_initialize): Allocate new bitmaps.
18053 (sra_deinitialize): Free new bitmaps.
18054 (create_access_1): New function.
18055 (create_access): Parts moved to create_access_1.
18056 (type_consists_of_records_p): New function.
18057 (completely_scalarize_record): Likewise.
18058 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18059 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18060 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18062 (analyze_all_variable_accesses): Completely scalarize small eligible
18065 2010-01-21 Martin Jambor <mjambor@suse.cz>
18067 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18069 2010-01-21 Andrew Haley <aph@redhat.com>
18071 * gcc.c (process_command): Move lang_specific_driver before
18072 setting cc_libexec_prefix.
18074 2010-01-21 Richard Guenther <rguenther@suse.de>
18076 PR middle-end/19988
18077 * fold-const.c (negate_expr_p): Pretend only negative
18078 real constants are easily negatable.
18080 2010-01-20 Janis Johnson <janis187@us.ibm.com>
18081 Jason Merrill <jason@redhat.com>
18083 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18084 (TYPE_TRANSPARENT_AGGR): this, for union and record.
18085 * calls.c (initialize argument_information): Handle it.
18086 * c-common.c (handle_transparent_union_attribute): Use new name.
18087 * c-decl.c (finish_struct): Ditto.
18088 * c-typeck.c (type_lists_compatible_p): Ditto.
18089 (convert_for_assignment): Use new name and also handle record.
18090 * function.c (aggregate_value_p): Handle it.
18091 (pass_by_reference): Ditto.
18092 (assign_parm_data_types): Ditto.
18093 * print-tree.c (print_node): Ditto.
18094 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18095 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18096 * tree.c (first_field): New fn.
18098 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
18101 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18102 even when linking statically, for now.
18104 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18107 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18108 without a cselib val.
18109 (count_uses): Accept MO_VAL_SET with no val on stores.
18110 (add_stores): Likewise.
18112 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18114 * var-tracking.c (check_value_val): Add a compile time assertion.
18115 (dv_is_decl_p): Simplify.
18116 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18117 gcc_assert if ENABLE_CHECKING.
18119 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18122 * var-tracking.c: Include tree-flow.h.
18123 (mem_dies_at_call): New.
18124 (dataflow_set_preserve_mem_locs): Use it.
18125 (dataflow_set_remove_mem_locs): Likewise.
18126 (dump_var): Renamed from dump_variable. Adjust all callers.
18127 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
18128 * Makefile.in (var-tracking.o): Adjust deps.
18130 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
18132 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18134 2010-01-20 Richard Guenther <rguenther@suse.de>
18136 PR tree-optimization/42717
18137 * tree-ssa-dce.c (get_live_post_dom): Remove.
18138 (forward_edge_to_pdom): Take an arbitrary edge to copy
18139 degenerate PHI args from.
18140 (remove_dead_stmt): Use the first post-dominator even if it
18141 does not contain live statements as redirection destination.
18143 2010-01-20 Richard Guenther <rguenther@suse.de>
18145 * tree-inline.c (estimate_num_insns): Handle EH builtins.
18147 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18149 * sel-sched.c (create_speculation_check): Remove set but not used
18151 (try_transformation_cache): Remove set but not used variable ds.
18152 (calculate_privileged_insns): Remove set but not used variables
18153 cur_insn and min_spec_insn.
18154 (find_best_expr): Remove set but not used variable avail_n.
18155 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18157 * cgraphunit.c (assemble_thunk): Remove set but not used variable
18159 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18160 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18161 new_scop_exit_edge.
18163 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
18166 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18167 cpu types. Add support for *-sse3 cpu types.
18168 (x86_64-*-*): Ditto.
18170 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18172 PR middle-end/42803
18173 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18174 argument, call initializer_constant_valid_p_1 instead of
18175 initializer_constant_valid_p, pass CACHE to it, return NULL
18176 immediately if first call returns NULL.
18177 (initializer_constant_valid_p_1): New function.
18178 (initializer_constant_valid_p): Use it.
18180 2010-01-20 Thomas Quinot <quinot@adacore.com>
18182 * tree.def (PLACEHOLDER_EXPR): Fix comment.
18184 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18186 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18187 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18188 (loc_list_from_tree): Don't handle unsigned division. Handle
18189 signed modulo using DW_OP_{over,over,div,mul,minus}.
18190 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18191 modulo instead of signed.
18193 2010-01-20 DJ Delorie <dj@redhat.com>
18195 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18197 (h8300_emit_stack_adjustment): Propogate it.
18199 (h8300_expand_prologue): Likewise.
18200 (h8300_expand_epilogue): Likewise.
18202 2010-01-19 Michael Matz <matz@suse.de>
18204 PR tree-optimization/41783
18205 * tree-data-ref.c (toplevel): Include flags.h.
18206 (dump_data_dependence_relation): Also dump the inputs if the
18207 result will be unknown.
18208 (split_constant_offset_1): Look through some conversions.
18209 * tree-predcom.c (determine_roots_comp): Restart a new chain if
18210 the offset from last element is too large.
18211 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
18212 (reassociate_to_the_same_stmt): Handle vector registers.
18213 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
18214 (e.g. conversions).
18215 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
18216 wide_prolog_niters argument, emit widening instructions.
18217 (vect_do_peeling_for_alignment): Adjust caller, use widened
18218 variant of the iteration cound.
18219 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
18221 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18224 * config/arm/neon-testgen.m (emit_automatics): New parameter
18225 features. Adjust for Fixed_return_reg feature.
18226 (test_intrinsic): Call emit_automatics with new feature.
18227 * config/arm/neon.ml: Update copyright years.
18228 (features): New Fixed_return_reg feature.
18229 (ops): Update feature for Vget_low.
18231 2010-01-19 Jakub Jelinek <jakub@redhat.com>
18233 PR tree-optimization/42719
18234 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
18238 * fwprop.c (all_uses_available_at): Return false if def_set dest
18239 is a REG that is used in def_insn.
18241 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
18243 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
18245 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
18246 Add argument names.
18248 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
18250 * target.h (struct gcc_target) <secondary_reload>: Change type
18251 of last argument to secondary_reload_info *.
18253 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
18256 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
18257 memory references with unaligned offsets. Remove CQImode handling.
18258 (unaligned_memory_operand): Return 1 for memory references with
18259 unaligned offsets. Remove CQImode handling.
18261 2010-01-18 Richard Guenther <rguenther@suse.de>
18263 PR middle-end/39954
18264 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
18267 2010-01-18 Richard Guenther <rguenther@suse.de>
18269 PR tree-optimization/42781
18270 * tree-ssa-structalias.c (find_what_var_points_to): Skip
18271 restrict processing only if the original variable was artificial.
18273 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
18275 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18276 find number of popped argument bytes.
18278 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18279 Fix the text that describes the return value for invalid insns.
18281 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
18283 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18284 Clarify what 'cost of the -dependence' is. Fix quoting.
18286 * toplev.c (default_get_pch_validity): Rename argument to "sz".
18287 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18289 2010-01-17 Jakub Jelinek <jakub@redhat.com>
18291 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18292 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18294 2010-01-17 Richard Guenther <rguenther@suse.de>
18296 PR middle-end/42248
18297 * function.c (split_complex_args): Take a VEC to modify.
18298 (assign_parms_augmented_arg_list): Build a VEC instead of
18299 a chain of PARM_DECLs.
18300 (assign_parms_unsplit_complex): Take a VEC of arguments.
18301 Do not fixup unmodified parms.
18302 (assign_parms): Deal with the VEC.
18303 (gimplify_parameters): Likewise.
18305 2010-01-17 Richard Guenther <rguenther@suse.de>
18307 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18308 node existence check.
18309 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18310 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18311 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18312 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18313 (gimple_execute_on_growing_pred): Likewise.
18315 2010-01-17 Richard Guenther <rguenther@suse.de>
18317 PR tree-optimization/42773
18318 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18319 (compute_antic_aux): Likewise.
18320 (compute_partial_antic_aux): Likewise.
18322 2010-01-17 Jie Zhang <jie.zhang@analog.com>
18325 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18328 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
18330 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18333 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18334 Fix markup for strict argument.
18336 (TARGET_SCHED_REORDER2): Fix argument types.
18338 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
18339 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
18341 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
18342 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
18344 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18347 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
18348 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
18349 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
18350 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
18351 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
18353 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
18355 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
18357 (TARGET_ASM_RELOC_RW_MASK): Add return type.
18358 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
18360 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
18362 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
18365 (TARGET_ASM_NAMED_SECTION): Fix argument list.
18367 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
18368 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
18370 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
18372 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
18374 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
18375 referring to it. Fix language.
18377 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
18379 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
18381 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
18383 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
18385 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
18386 '@var{stream}. Remove stray 'and'.
18388 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
18390 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
18392 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
18394 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
18395 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
18397 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
18398 Fix description of return value.
18399 Rename argument "sz" to "len."
18401 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
18402 Clarify meaning of 'true' return value.
18404 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
18406 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
18407 rep_mode versus mode_rep.
18409 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
18411 (TARGET_BUILTIN_DECL): Fix name.
18413 (TARGET_COMMUTATIVE_P): Fix type of first argument.
18415 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
18417 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
18419 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
18421 (TARGET_RELAXED_ORDERING): Use @deftypevr.
18423 (TARGET_GET_DRAP_RTX): Note that this is a hook.
18426 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
18427 Rename argument tm_fn to md_fn.
18429 (TARGET_OPTION_PRINT): Fix argument list.
18431 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
18434 * config/i386/i386.c (ix86_fixup_binary_operands):
18435 Revert FMA4 fixup of operands.
18437 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18440 * Makefile.in (write_entries_to_file, install-plugin):
18441 Use \012 instead of \n with tr.
18443 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
18445 * configure.ac (HAVE_AS_REF): New C macro.
18446 * configure: Regenerate.
18447 * config.in: Likewise.
18448 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
18450 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
18453 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
18455 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
18457 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
18459 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
18461 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
18463 (TARGET_IN_SMALL_DATA_P): Fix argument type.
18465 (TARGET_BINDS_LOCAL_P): Fix argument type.
18467 (TARGET_ASM_FILE_END): Use prototype.
18469 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
18471 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
18473 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
18475 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
18477 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
18478 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
18480 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
18481 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
18483 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
18484 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
18485 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
18486 (TARGET_ADDR_SPACE_CONVERT): Likewise.
18488 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
18490 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
18492 (TARGET_INIT_BUILTINS): Use prototype.
18494 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
18495 Put 'const char *' in braces. Fix parameter types.
18496 (TARGET_INVALID_CONVERSION): Fix parameter types.
18497 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
18498 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
18500 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
18503 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
18505 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
18507 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
18509 * doc/tm.texi (TARGET_HELP): Fix return type.
18511 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
18512 in braces. Fix argument types.
18514 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
18516 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
18518 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
18520 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
18521 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
18523 (TARGET_MANGLE_TYPE): Fix argument types.
18525 (TARGET_IRA_COVER_CLASSES): Use prototype.
18527 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
18529 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
18531 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
18533 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
18535 (TARGET_CALLEE_COPIES): Fix argument types.
18537 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
18539 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
18541 (TARGET_FUNCTION_VALUE): Fix argument types.
18543 (TARGET_RETURN_IN_MSB): Fix argument type.
18545 (TARGET_RETURN_IN_MEMORY): Fix argument types.
18547 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
18549 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
18551 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
18552 agree with return type.
18554 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
18556 2010-01-15 Jing Yu <jingyu@google.com>
18558 PR rtl-optimization/42691
18559 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
18560 a pseudo to a constant and are merged, and adjust comments.
18562 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
18564 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
18566 2010-01-15 Richard Guenther <rguenther@suse.de>
18568 PR middle-end/42739
18569 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18570 labels of computed or non-local gotos to the destination.
18571 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18572 landing pad label is the first label.
18574 2010-01-15 Richard Guenther <rguenther@suse.de>
18576 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18578 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18581 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18582 to allow generation of the xssqrtdp instruction on power7.
18583 (sqrtdf2_fpr): Ditto.
18585 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18587 PR middle-end/42674
18588 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18589 functions with noreturn attribute.
18592 * varasm.c (declare_weak): Add weak attribute to decl if it
18593 doesn't have one already.
18594 (assemble_external): Only add decls to weak_decls if they also
18595 have weak attribute.
18597 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
18599 * var-tracking.c (var_reg_delete): Don't delete the association
18600 between REGs and values or one-part variables if the register
18603 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18606 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18607 because its first operand is a non-localized variable.
18609 2010-01-14 Martin Jambor <mjambor@suse.cz>
18611 PR tree-optimization/42706
18612 * tree-sra.c (encountered_recursive_call): New variable.
18613 (encountered_unchangable_recursive_call): Likewise.
18614 (sra_initialize): Initialize both new variables.
18615 (callsite_has_enough_arguments_p): New function.
18616 (scan_function): Call decl and flags check only for IPA-SRA, check
18617 whether there is a recursive call and whether it has enough arguments.
18618 (all_callers_have_enough_arguments_p): New function.
18619 (convert_callers): Look for recursive calls only when
18620 encountered_recursive_call is set.
18621 (ipa_early_sra): Bail out either if
18622 !all_callers_have_enough_arguments_p or
18623 encountered_unchangable_recursive_call.
18625 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18627 * sel-sched.c: Add 2010 to copyright years.
18628 * sel-sched-ir.c: Likewise.
18629 * sel-sched-ir.h: Likewise.
18631 2010-01-14 Martin Jambor <mjambor@suse.cz>
18633 PR tree-optimization/42714
18634 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
18635 constructors specially.
18637 2010-01-14 Andi Kleen <ak@linux.intel.com>
18639 * config/i386/drivers-i386.c (detect_caches_intel):
18640 Add l2sizekb parameter and fill in.
18641 (host_detect_local_cpu): Add l2sizekb, fill in.
18642 Add Atom small cache heuristic.
18644 2010-01-14 Andi Kleen <ak@linux.intel.com>
18646 * config/i386/drivers-i386.c (detect_caches_cpuid4):
18647 Add level3 parameter and fill in.
18648 (detect_caches_intel): Handle level3 cache.
18650 2010-01-14 Andi Kleen <ak@linux.intel.com>
18652 * config/i386/drivers-i386.c (host_detect_local_cpu):
18653 Fix core duo detection.
18655 2010-01-14 Andi Kleen <ak@linux.intel.com>
18657 * config/i386/drivers-i386.c (host_detect_local_cpu):
18658 Fix Atom detection.
18660 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18662 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
18663 (rs6000_variable_issue_1): this. Use...
18664 (rs6000_variable_issue): here. Reimplement. Print debug info.
18666 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18668 * sel-sched-ir.c (sel_restore_other_notes): Rename to
18669 sel_restore_notes. Update all callers. Call reemit_notes
18672 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18674 PR rtl-optimization/42246
18675 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18678 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18680 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18681 all successors is the same as number of successors in current region.
18683 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18685 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18686 to rename is not separable. Otherwise check that its LHS is not NULL.
18688 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18690 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
18692 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18694 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18695 available registers when failed to discover LHS register class.
18696 Fix indentation. Update comment.
18698 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18699 Alexander Monakov <amonakov@ispras.ru>
18701 PR rtl-optimization/42389
18702 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18704 (advance_state_on_fence): Likewise.
18705 (sel_target_adjust_priority): Print debug output only when
18706 sched_verbose >= 4, not 2.
18707 (get_expr_cost): Do not issue all unique insns on the next cycle.
18708 (fill_insns): Initialize can_issue_more from the value saved
18710 * sel-sched-ir.c (flist_add): New parameter issue_more.
18711 Init FENCE_ISSUE_MORE with it.
18712 (merge_fences): Likewise.
18713 (init_fences): Update call to flist_add.
18714 (add_to_fences, add_clean_fence_to_fences)
18715 (add_dirty_fence_to_fences): Likewise.
18716 (move_fence_to_fences): Update call to merge_fences.
18717 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18719 * sel-sched-ir.h (struct _fence): New field issue_more.
18720 (FENCE_ISSUE_MORE): New accessor macro.
18722 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18724 PR rtl-optimization/42388
18725 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18726 that have no predecessors nor successors. Do not call move_bb_info
18727 for empty blocks outside of current region.
18729 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18731 PR rtl-optimization/42294
18732 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18733 * sel-sched.c (move_exprs_to_boundary): Transitively add all
18734 originators' originators.
18736 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18738 PR rtl-optimization/39453
18739 PR rtl-optimization/42246
18740 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18742 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18744 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18745 Alexander Monakov <amonakov@ispras.ru>
18747 PR middle-end/42245
18748 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
18749 (maybe_tidy_empty_bb): ... here. Make static. Add new
18750 argument. Update all callers.
18751 (tidy_control_flow): ... and here. Recompute topological order
18752 of basic blocks in region if necessary.
18753 (sel_redirect_edge_and_branch): Change return type. Return true
18754 if topological order might have been invalidated.
18755 (purge_empty_blocks): Export and move from...
18756 * sel-sched.c (purge_empty_blocks): ... here.
18757 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18758 (maybe_tidy_empty_bb): Delete prototype.
18759 (purge_empty_blocks): Declare.
18761 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18763 PR rtl-optimization/42249
18764 * sel-sched.c (try_replace_dest_reg): When chosen register
18765 and original register is the same, do not bail out early, but
18766 still check all original insns for validity of replacing destination
18767 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18770 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18773 Port from no-undefined-overflow branch:
18774 2009-03-09 Richard Guenther <rguenther@suse.de>
18776 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18778 2010-01-14 Richard Guenther <rguenther@suse.de>
18781 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18783 2010-01-14 Ira Rosen <irar@il.ibm.com>
18785 PR tree-optimization/42709
18786 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18787 as scalar type in creation of constant vector operand.
18789 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18792 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18793 (check-parallel-%): Match `testsuite' directory component only
18796 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
18798 PR translation/39521
18799 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18802 2010-01-13 Richard Guenther <rguenther@suse.de>
18804 PR tree-optimization/42730
18805 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18808 2010-01-13 Steve Ellcey <sje@cup.hp.com>
18811 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18812 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18815 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
18817 * config/bfin/libgcc-bfin.ver: Regenerate based on current
18818 libgcc-std.ver. Add entries for ___smulsi3_highpart and
18819 ___umulsi3_highpart.
18821 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18822 rather than schedule_insns if the pass is enabled.
18824 2010-01-13 Martin Jambor <mjambor@suse.cz>
18826 PR tree-optimization/42704
18827 * tree-sra.c (sra_modify_assign): Do not delete assignments to
18830 2010-01-13 Martin Jambor <mjambor@suse.cz>
18832 PR tree-optimization/42703
18833 * tree-sra.c (analyze_access_subtree): Check that we can build a
18834 reference to the original data within the aggregate.
18836 2010-01-13 Richard Guenther <rguenther@suse.de>
18838 PR tree-optimization/42705
18839 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18841 2010-01-13 Richard Guenther <rguenther@suse.de>
18843 PR middle-end/42716
18844 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18846 2010-01-13 Jakub Jelinek <jakub@redhat.com>
18849 * var-tracking.c (values_to_unmark): New variable.
18850 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18851 values_to_unmark vector. Moved body to...
18852 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
18853 instead queue it into values_to_unmark vector.
18854 (vt_find_locations): Free values_to_unmark vector.
18856 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
18858 * config/s390/s390.c (override_options): Set
18859 default of max-pending-list-length to 256
18861 2010-01-13 Richard Guenther <rguenther@suse.de>
18864 * tree-pass.h (PROP_gimple_lcx): New.
18865 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18866 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18867 before the final cleanup_eh.
18868 (dump_properties): Dump PROP_gimple_lcx.
18869 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18870 (tree_lower_complex_O0): Remove.
18871 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18872 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
18873 tree_lower_complex, schedule TODO_update_ssa.
18874 * lto-streamer-out.c (output_function): Stream the functions
18876 * lto-streamer-in.c (input_function): Likewise.
18877 (lto_read_body): Do not override them here.
18879 2010-01-12 Joseph Myers <joseph@codesourcery.com>
18882 * c-typeck.c (build_c_cast): Fold value cast to union type before
18883 wrapping it in a CONSTRUCTOR.
18885 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18887 PR rtl-optimization/42699
18888 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18891 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18893 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18894 SUBTARGET_WARN_UNUSED_SPEC): Move ...
18895 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18896 SUBTARGET_WARN_UNUSED_SPEC): ... here
18897 * config/mips/iris5.h (LIBGCC_SPEC): Define.
18899 2010-01-12 Julian Brown <julian@codesourcery.com>
18901 * config/arm/neon-schedgen.ml (Utils): Don't try to
18902 open missing module.
18903 (find_with_result): New.
18905 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18908 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18909 sharing when canonicalizing ({lt,ge}u (plus a b) b).
18911 PR tree-optimization/42645
18912 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
18913 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18914 decl_map, set processing_debug_stmt to -1 and return name without
18917 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
18919 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18920 binutils version, and reword target configuration description.
18922 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18924 * config/avr/avr.h (LINKER_NAME): Remove.
18926 2010-01-11 Janis Johnson <janis187@us.ibm.com>
18929 * config/rs6000/rs6000.c (rs6000_override_options): On targets
18930 that support VSX, warn for -mno-altivec if vsx is not disabled,
18933 2010-01-11 Joseph Myers <joseph@codesourcery.com>
18934 Shujing Zhao <pearly.zhao@oracle.com>
18936 PR translation/42469
18937 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18938 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18939 character between option name and help text.
18940 * c.opt (imultilib): Likewise.
18942 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
18944 * lto-streamer-out.c (output_unreferenced_globals): Output static
18947 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
18949 PR rtl-optimization/42621
18950 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18951 optimizing for size.
18952 (duplicate_computed_gotos): Remove now-redundant check.
18954 2010-01-10 Steve Ellcey <sje@cup.hp.com>
18957 * configure.ac: Save and restore LDFLAGS and LIBS
18958 * configure: Regenerate.
18960 2010-01-10 Richard Guenther <rguenther@suse.de>
18962 PR middle-end/42667
18963 * builtins.c (fold_builtin_strlen): Add type argument and
18964 convert the resulting length to it.
18965 (fold_builtin_1): Adjust.
18967 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18969 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18970 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18972 (num_insns_constant_wide): Adjust for that change.
18974 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18977 * web.c (union_defs): Add used argument, to combine uses of
18978 uninitialized regs.
18979 (entry_register): Adjust type and tests of used argument.
18980 (web_main): Widen used for new use. Pass it to union_defs.
18981 * df.h (union_defs): Adjust prototype.
18983 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18986 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
18987 uses in new incoming argument. Free body.
18988 (reset_debug_uses_in_loop): New.
18989 (analyze_insn_to_expand_var): Call the latter if the former found
18990 anything. Fix whitespace. Reject invalid dest overlaps before
18991 going through all insns in the loop.
18993 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18996 * haifa-sched.c (dying_use_p): Debug insns don't count.
18998 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19000 PR middle-end/42363
19001 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19002 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19003 (verify_gimple_call): Reject LHS in noreturn calls.
19005 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19009 * tree-vect-loop-manip.c (adjust_info): New type.
19010 (adjust_vec): New pointer to vector.
19011 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19012 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19013 (slpeel_update_phis_for_duplicate_loop): Use them.
19014 (slpeel_update_phi_nodes_for_guard1): Likewise.
19015 (slpeel_update_phi_nodes_for_guard2): Likewise.
19016 (slpeel_tree_peel_loop_to_edge): Likewise.
19017 (vect_update_ivs_after_vectorizer): Likewise.
19019 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19021 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19022 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19024 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19026 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19027 bogus uninitialized warning.
19029 2010-01-09 Richard Guenther <rguenther@suse.de>
19031 PR middle-end/42512
19032 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19033 the evolution is compatible with the initial condition.
19035 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19037 * gcc.c (process_command): Update copyright notice dates.
19038 * gcov.c (print_version): Likewise.
19039 * gcov-dump.c (print_version): Likewise.
19040 * mips-tfile.c (main): Likewise.
19041 * mips-tdump.c (main): Likewise.
19043 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19046 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19048 (rotlhi3_8): Delete.
19050 (rotlsi3_8): Delete.
19051 (rotlsi3_16): Delete.
19052 (rotlsi3_24): Delete.
19053 (rotl<mode>3): New.
19054 (*rotw<mode>3): New.
19055 (*rotb<mode>3): New.
19056 * config/avr/avr.c (avr_rotate_bytes): New function.
19057 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19059 2010-01-08 Steve Ellcey <sje@cup.hp.com>
19062 * configure.ac: Modify -rdynamic check.
19063 * configure: Regenerate.
19065 2010-01-08 DJ Delorie <dj@redhat.com>
19067 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19068 register popping order.
19070 2010-01-08 Richard Guenther <rguenther@suse.de>
19073 * c.opt (fsigned-char): Also let LTO handle this option.
19074 (funsigned-char): Likewise.
19076 2010-01-07 Richard Guenther <rguenther@suse.de>
19078 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19079 (gimple_op): Likewise.
19080 (gimple_op_ptr): Likewise.
19081 (gimple_assign_set_lhs): Remove gcc_assert.
19082 (gimple_assign_set_rhs1): Likewise.
19083 (gimple_assign_set_rhs2): Likewise.
19084 (gimple_call_set_lhs): Likewise.
19085 (gimple_call_set_fn): Likewise.
19086 (gimple_call_set_fndecl): Likewise.
19087 (gimple_call_fndecl): Likewise.
19088 (gimple_call_return_type): Likewise.
19089 (gimple_call_set_chain): Likewise.
19090 (gimple_call_num_args): Likewise.
19091 (gimple_call_set_arg): Likewise.
19092 (gimple_cond_set_code): Likewise.
19093 (gimple_cond_set_lhs): Likewise.
19094 (gimple_cond_set_rhs): Likewise.
19095 (gimple_cond_set_true_label): Likewise.
19096 (gimple_cond_set_false_label): Likewise.
19097 (gimple_label_set_label): Likewise.
19098 (gimple_goto_set_dest): Likewise.
19099 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19100 (gimple_debug_bind_get_value): Likewise.
19101 (gimple_debug_bind_get_value_ptr): Likewise.
19102 (gimple_debug_bind_set_var): Likewise.
19103 (gimple_debug_bind_set_value): Likewise.
19104 (gimple_debug_bind_reset_value): Likewise.
19105 (gimple_debug_bind_has_value_p): Likewise.
19106 (gimple_return_retval_ptr): Remove gcc_assert.
19107 (gimple_return_retval): Likewise.
19108 (gimple_return_set_retval): Likewise.
19109 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19110 (safe_referenced_var_iterator): Remove.
19111 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19112 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19113 (fill_referenced_var_vec): Remove.
19114 (first_readonly_imm_use): Remove redundant gcc_assert.
19115 (phi_arg_index_from_use): Combine gcc_asserts.
19116 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19117 (first_imm_use_stmt): Remove redundant gcc_assert.
19118 * tree-cfg.c (verify_gimple_call): Verify function and chain
19119 operands. Verify arguments.
19120 (verify_types_in_gimple_stmt): Verify condition code and labels.
19122 2010-01-07 Richard Guenther <rguenther@suse.de>
19124 PR tree-optimization/42641
19125 * sese.c (rename_map_elt_info): Use the SSA name version, do
19128 2010-01-07 Jakub Jelinek <jakub@redhat.com>
19130 PR tree-optimization/42625
19131 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19132 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19134 2010-01-07 Duncan Sands <baldrick@free.fr>
19136 * Makefile.in (PLUGIN_HEADERS): Add version.h.
19138 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
19141 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19142 note itself is not function_invariant_p.
19144 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
19146 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19147 Do not add the DF_NOTE problem.
19148 * store-motion.c (execute_rtl_store_motion): Likewise.
19150 2010-01-07 Martin Jambor <mjambor@suse.cz>
19152 PR tree-optimization/42157
19153 * tree-sra.c (compare_access_positions): Stabilize sort if both
19154 accesses have integer types, return zero immediately if they are the
19157 2010-01-06 Richard Henderson <rth@redhat.com>
19159 PR middle-end/41883
19160 * haifa-sched.c (add_to_note_list): Merge into ...
19161 (concat_note_lists): ... here, and ...
19162 (unlink_other_notes, rm_other_notes): Merge into...
19163 (remove_notes): ... here. Create REG_SAVE_NOTEs for
19164 NOTE_INSN_EPILOGUE_BEG.
19166 2010-01-06 Richard Guenther <rguenther@suse.de>
19168 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19169 not inline regular functions into always-inline functions.
19171 2010-01-06 Nick Clifton <nickc@redhat.com>
19173 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19174 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19176 (OVERRIDE_OPTIONS): Delete.
19177 (OPTIMIZATION_OPTIONS): Define.
19178 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19179 * config/rx/rx.c (rx_handle_option): Issue an error message if
19180 -mcpu=rx200 and -fpu are used together.
19181 (rx_set_optimization_options): New function. Issue an error
19182 message if an optimization attribute attempts to reset the FPU/
19183 math optimization pairing.
19184 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19185 * config/rx/rx.opt: Set the default to 32-bit doubles.
19186 * config/rx/t-rx: Add multilibs for -nofpu option.
19187 * doc/invoke.texi: Update documentation of RX options.
19189 2010-01-06 Richard Guenther <rguenther@suse.de>
19191 * tree-ssa-pre.c (name_to_id): New global.
19192 (alloc_expression_id): Simplify SSA name handling.
19193 (lookup_expression_id): Likewise.
19194 (init_pre): Zero name_to_id.
19195 (fini_pre): Free it.
19197 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
19199 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19201 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
19204 * config/i386/sse.md (smaxv2di3): New.
19205 (umaxv2di3): Likewise.
19206 (sminv2di3): Likewise.
19207 (uminv2di3): Likewise.
19209 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
19212 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
19213 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
19214 (legitimize_tls_address): Likewise.
19215 (sparc_tls_referenced_p): Likewise.
19216 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
19217 and adjust calls to legitimize_pic_address.
19218 (legitimate_constant_p) Use sparc_tls_referenced_p.
19219 (legitimate_pic_operand_p): Likewise.
19220 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
19221 (sparc_tls_symbol_ref_1): Delete.
19222 (sparc_tls_referenced_p): Make static, recognize specific patterns.
19223 (legitimize_tls_address): Make static, handle CONST patterns.
19224 (legitimize_pic_address): Make static, remove unused parameter and
19225 adjust recursive calls.
19226 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
19227 and adjust call to legitimize_pic_address.
19228 (sparc_output_mi_thunk): Likewise.
19230 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
19231 H.J. Lu <hongjiu.lu@intel.com>
19234 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
19235 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
19236 operands to make them signed.
19239 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19242 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19243 GTU to GT for V4SI and V2DI.
19245 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19246 (umin<mode>3): Removed.
19248 (uminv4si3): Likewise.
19250 2010-01-05 Martin Jambor <mjambor@suse.cz>
19252 PR tree-optimization/42462
19253 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
19254 current_function_decl to helper functions and macros.
19256 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19259 * flags.h: Don't include real.h.
19260 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
19261 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
19262 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
19263 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
19264 * dominance.c: Update copyright.
19265 * gimple.c (walk_gimple_op): Remove inline.
19266 * tree-ssa-reassoc.c: Include real.h.
19267 * Makefile.in (FLAGS_H): Remove $(REAL_H).
19268 (tree-ssa-reassoc.o): Depend on $(REAL_H).
19270 2010-01-05 Nick Clifton <nickc@redhat.com>
19272 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19273 register to push into the stack frame when the accumulator has to
19274 be saved during interrupts.
19276 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
19278 * doc/invoke.texi: Remove the documentation about option
19279 -Wunreachable-code.
19280 * common.opt (Wunreachable-code): Preserved for backward
19282 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19283 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19284 the backward compatibility flag section.
19286 2010-01-05 Richard Guenther <rguenther@suse.de>
19288 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19290 2010-01-05 Jakub Jelinek <jakub@redhat.com>
19293 * cfgexpand.c (expand_one_var): Diagnose too large variables.
19295 PR tree-optimization/42508
19296 * tree-sra.c (convert_callers): Check for recursive call
19297 by comparing cgraph nodes instead of decls.
19298 (modify_function): Call ipa_modify_formal_parameters also
19299 on all same_body aliases.
19301 * cgraphunit.c (cgraph_materialize_all_clones): Compare
19302 cgraph nodes when checking for same_body aliases.
19304 2010-01-05 Richard Guenther <rguenther@suse.de>
19306 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19307 allocation and lookup.
19308 (get_or_alloc_expr_for_constant): Likewise.
19309 (phi_translate): Sink allocation.
19311 2010-01-04 Richard Guenther <rguenther@suse.de>
19313 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19314 a new entry only if needed.
19315 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19316 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19318 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19320 (phi_translate): Handle CONSTANTs early.
19322 2010-01-04 Martin Jambor <mjambor@suse.cz>
19324 PR tree-optimization/42398
19325 * tree-sra.c (struct access): Removed flag grp_different_types.
19326 (dump_access): Do not dump the removed flag.
19327 (sort_and_splice_var_accesses): Do not set the removed flag.
19328 (sra_modify_expr): Check for type compatibility directly.
19330 2010-01-04 Martin Jambor <mjambor@suse.cz>
19332 PR tree-optimization/42366
19333 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19334 edges with variable number of parameters.
19335 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
19336 flag instead of asserting it.
19337 (ipa_read_node_info): Read uses_analysis_done flag.
19339 2010-01-04 Richard Guenther <rguenther@suse.de>
19341 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
19342 iterative_hash_* as intended.
19343 (vn_reference_compute_hash): Likewise. Simplify hashing
19345 (vn_reference_lookup_2): Likewise.
19346 (vn_nary_op_compute_hash): Likewise.
19347 (vn_phi_compute_hash): Likewise.
19348 (expressions_equal_p): Remove strange code.
19349 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
19350 (pre_expr_hash): Likewise. Simplify hashing SSA names.
19351 (bitmap_insert_into_set_1): Take value-id as parameter.
19352 (add_to_value): Pass it.
19353 (bitmap_insert_into_set): Likewise.
19354 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
19356 2010-01-04 Jakub Jelinek <jakub@redhat.com>
19359 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
19360 (do_self_spec): For switches with SWITCH_IGNORE set set also
19361 SWITCH_IGNORE_PERMANENTLY.
19362 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
19365 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
19367 * lto-streamer-out.c (output_unreferenced_globals): Output the full
19368 tree of an unreferenced global var.
19370 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19373 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19374 GTU to GT for V4SI and V2DI.
19376 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19377 (umin<mode>3): Removed.
19379 (uminv4si3): Likewise.
19381 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19384 * collect2.c (main): Turn on trace in collect2 if -v is passed
19387 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
19389 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
19390 description of expression operand.
19392 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
19394 * configure.ac: Add install-html to target_list for Make-hooks.
19395 * configure: Regenerate.
19396 * fortran/Make-lang.in (F95_HTMLFILES): New.
19397 (fortran.html): Use it.
19398 (fortran.install-html): New.
19399 * Makefile.in (install-html): Add lang.install-html.
19400 * java/Make-lang.in (JAVA_HTMLFILES): New.
19401 (java.html): Use it.
19402 (java.install-html): New.
19403 * objc/Make-lang.in (objc.install-html): New.
19404 * objcp/Make-lang.in (obj-c++.install-html): New.
19405 * cp/Make-lang.in (c++.install-html): New.
19406 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
19407 * lto/Make-lang.in (lto.install-html): New.
19409 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
19412 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
19414 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
19416 PR rtl-optimization/41862
19417 * store-motion.c (store_killed_in_insn, compute_store_table,
19418 remove_reachable_equiv_notes, replace_store_insn,
19419 build_store_vectors): Ignore all DEBUG_INSNs.
19421 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
19424 * common.opt: Add dumpdir.
19426 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
19428 (option_map): Add --dumpdir.
19430 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
19432 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
19434 * opts.c (decode_options): Try dump_dir_name first if
19435 dump_base_name isn't an absolute path.
19436 (common_handle_option): Handle OPT_dumpdir.
19438 * toplev.c (dump_dir_name): New.
19439 (print_switch_values): Also ignore -dumpdir.
19441 * toplev.h (dump_dir_name): New.
19443 2010-01-03 Richard Guenther <rguenther@suse.de>
19445 PR tree-optimization/42589
19446 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
19447 double-word expansion of bswap32.
19449 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
19451 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
19452 with BLOCK_FOR_INSN.
19453 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
19454 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
19455 noce_process_if_block): Likewise.
19456 * gcse.c (compute_local_properties, insert_expr_in_table,
19457 insert_set_in_table, canon_list_insert, find_avail_set,
19458 pre_insert_copy_insn): Likewise.
19460 * basic-block.h (BLOCK_NUM): Move from here...
19461 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
19463 2010-01-03 Richard Guenther <rguenther@suse.de>
19465 PR tree-optimization/42438
19466 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
19467 contains_may_not_return_call flag.
19468 (BB_MAY_NOTRETURN): New.
19469 (valid_in_sets): Trapping nary operations are not valid
19470 in blocks that may not return.
19471 (insert_into_preds_of_block): Remove check for trapping expressions.
19472 (compute_avail): Compute also BB_MAY_NOTRETURN.
19474 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
19476 * doc/invoke.texi: Add 2010 to copyright years.
19478 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
19480 * config/sparc/sparc.c: Fix formatting nits.
19482 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
19483 Alexander Monakov <amonakov@ispras.ru>
19485 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
19487 2010-01-02 Richard Guenther <rguenther@suse.de>
19489 PR middle-end/42577
19490 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
19491 (simplify_switch_using_ranges): Mark to be removed edges
19494 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19496 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19498 * collect2.c (scan_libraries): Add missing argument in call to
19501 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
19504 * config/alpha/predicates.md (aligned_memory_operand): Return false
19506 (unaligned_memory_operand): Return true for CQImode.
19507 * config/alpha/alpha.c (get_aligned_mem): Assert that location
19508 doesn not cross aligned SImode word boundary.
19510 2010-01-02 Anatoly Sokolov <aesok@post.ru>
19512 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
19514 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
19515 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
19517 2010-01-02 Richard Guenther <rguenther@suse.de>
19520 * toplev.c (compile_file): Emit LTO marker properly. Change
19521 it to __gnu_lto_v1.
19522 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
19524 2010-01-01 Richard Guenther <rguenther@suse.de>
19527 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
19529 2010-01-01 Richard Guenther <rguenther@suse.de>
19532 * c-decl.c (grokdeclarator): For zero-size arrays force
19533 structural equality checks as layout_type does.
19535 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
19537 * builtins.c: Update copyright to 2010.
19539 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
19542 * lto-streamer-out.c (produce_asm): Revert the last change.
19543 (copy_function): Likewise.
19545 * lto-streamer.c (lto_get_section_name): Skip any leading
19548 2010-01-01 Richard Guenther <rguenther@suse.de>
19550 PR middle-end/42559
19551 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
19555 Copyright (C) 2010 Free Software Foundation, Inc.
19557 Copying and distribution of this file, with or without modification,
19558 are permitted in any medium without royalty provided the copyright
19559 notice and this notice are preserved.