1 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4 * bb-reorder.h: New file.
5 * bb-reorder.c (default_target_bb_reorder): New variable.
6 (this_target_bb_reorder): New conditional variable.
7 (uncond_jump_length): Redefine as a macro.
8 * target-globals.h (this_target_bb_reorder): Declare.
9 (target_globals): Add a bb_reorder field.
10 (restore_target_globals): Copy the bb_reorder field to
11 this_target_bb-reorder.
12 * target-globals.c: Include bb-reorder.h.
13 (default_target_globals): Initialize the bb_reorder field.
14 (save_target_globals): Likewise.
16 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
20 * gcse.c: Include gcse.h.
21 (default_target_gcse): New variable.
22 (this_target_gcse): New conditional variable.
23 (can_copy): Redefine as a macro.
24 (can_copy_init_p): New macro.
25 (can_copy_p): Remove can_copy_init_p.
26 * target-globals.h (this_target_gcse): Declare.
27 (target_globals): Add a gcse field.
28 (restore_target_globals): Copy the gcse field to
30 * target-globals.c: Include gcse.h.
31 (default_target_globals): Initialize the gcse field.
32 (save_target_globals): Likewise.
34 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
36 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
37 and x_ira_prohibited_mode_move_regs_initialized_p.
38 (ira_prohibited_mode_move_regs): Redefine as a macro.
39 * ira.c (ira_prohibited_mode_move_regs): Delete.
40 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
42 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
44 * reload.h (target_reload): Add x_cached_reg_save_code and
45 x_cached_reg_restore_code.
46 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
49 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
51 * Makefile.in (target-globals.o): Depend on builtins.h.
52 * builtins.h: New file.
53 * builtins.c: Include builtins.h.
54 (default_target_builtins): New variable.
55 (this_target_builtins): New conditional variable.
56 (apply_args_mode, apply_result_mode): Redefine as macros.
57 * target-globals.h (this_target_builtins): Declare.
58 (target_globals): Add a builtins field.
59 (restore_target_globals): Copy the builtins field to
61 * target-globals.c: Include builtins.h.
62 (default_target_globals): Initialize the builtins field.
63 (save_target_globals): Likewise.
65 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
67 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
68 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
70 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
71 (alg_hash, alg_hash_used_p): New macros.
72 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
73 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
74 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
76 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
78 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
79 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
80 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
81 (this_op_costs, costs_classes): Redefine as macros.
82 (record_reg_classes): Don't take op_costs as a parameter.
83 (record_operand_costs): Likewise. Update calls to record_reg_classes.
84 (scan_one_insn): Update call to record_operand_costs.
86 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
88 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
89 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
90 (target_ira_int): New structure.
91 (default_target_ira_int): Declare.
92 (this_target_ira_int): Declare as a variable or define as a macro.
93 (ira_reg_mode_hard_regset, ira_register_move_cost)
94 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
95 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
96 (prohibited_class_mode_regs, ira_important_classes_num)
97 (ira_important_classes, ira_reg_class_intersect)
98 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
99 (ira_reg_class_union): Redefine as macros.
100 * ira.h (target_ira): New structure.
101 (default_target_ira): Declare.
102 (this_target_ira): Declare as a variable or define as a macro.
103 (ira_available_class_regs, ira_hard_regno_cover_class)
104 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
105 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
106 (ira_class_hard_regs_num): Redefine as macros.
107 * ira.c (default_target_ira, default_target_ira_int): New variables.
108 (this_target_ira, this_target_ira_int): New conditional variables.
109 (ira_reg_mode_hard_regset, ira_memory_move_cost)
110 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
111 (ira_class_subset_p): Delete.
112 (no_unit_alloc_regs): Redefine as a macro.
113 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
114 (ira_class_hard_regs_num, ira_class_hard_reg_index)
115 (ira_available_class_regs): Delete.
116 (alloc_reg_class_subclasses): Redefine as a macro.
117 (ira_reg_class_cover_size, ira_reg_class_cover)
118 (ira_important_classes_num, ira_important_classes)
119 (ira_important_class_nums, ira_class_translate): Delete.
120 (cover_class_order): Document the variable's lifetime.
121 (reorder_important_classes): Don't set ira_important_class_nums.
122 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
123 (ira_reg_class_super_classes, ira_reg_class_union)
124 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
126 (setup_reg_class_nregs): Don't set ira_max_regs.
127 (prohibited_class_mode_regs): Delete.
128 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
129 (target_globals): Add ira and ira_int fields.
130 (restore_target_globals): Copy the ira field to this_target_ira
131 and the ira_int field to this_target_ira_int.
132 * target-globals.c: Include ira-int.h.
133 (default_target_globals): Initialize the ira and ira_int fields.
134 (save_target_globals): Likewise.
136 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
138 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
139 * cfgloop.h (target_cfgloop): New structure.
140 (default_target_cfgloop): Declare.
141 (this_target_cfgloop): Declare as a variable or define as a macro.
142 (target_avail_regs, target_clobbered_regs, target_res_regs)
143 (target_reg_cost, target_spill_cost): Redefine as macros.
144 * cfgloopanal.c (default_target_cfgloop): New variable.
145 (this_target_cfgloop): New conditional variable.
146 (target_avail_regs, target_clobbered_regs, target_res_regs)
147 (target_reg_cost, target_spill_cost): Delete.
148 * target-globals.h (this_target_cfgloop): Declare.
149 (target_globals): Add a cfgloop field.
150 (restore_target_globals): Copy the cfgloop field to
152 * target-globals.c: Include cfgloop.h.
153 (default_target_globals): Initialize the cfgloop field.
154 (save_target_globals): Likewise.
156 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
158 * regs.h (target_regs): Add x_direct_load, x_direct_store and
159 x_float_extend_from_mem.
160 (direct_load, direct_store, float_extend_from_mem): New macros.
161 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
163 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
165 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
166 (target-globals.o): Depend on $(LIBFUNCS_H).
167 * libfuncs.h: Include hashtab.h.
168 (libfunc_entry): Moved from optabs.c.
169 (target_libfuncs): New structure.
170 (default_target_libfuncs): Declare.
171 (this_target_libfuncs): Declare as a variable or define as a macro.
172 (libfunc_table): Redefine as a macro.
173 * optabs.c (default_target_libfuncs): New variable.
174 (this_target_libfuncs): New conditional variable.
175 (libfunc_table): Delete.
176 (libfunc_entry): Moved to optabs.h.
177 (libfunc_hash): Redefine as a macro.
178 (hash_libfunc, eq_libfunc): Fix comments.
179 (init_optabs): Use libfunc_hash to detect cases where the function
180 has already been called. Clear the hash table instead of
182 * target-globals.h (this_target_libfuncs): Declare.
183 (target_globals): Add a libfuncs field.
184 (restore_target_globals): Copy the libfuncs field to
185 this_target_libfuncs.
186 * target-globals.c: Include libfuncs.h.
187 (default_target_globals): Initialize the libfuncs field.
188 (save_target_globals): Likewise.
190 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
192 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
193 in all dependency lists.
195 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
197 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
198 * optabs.h (target_optabs): New structure.
199 (default_target_optabs): Declare.
200 (this_target_optabs): Declare as a variable or define as a macro.
201 (optab_table, convert_optab_table, direct_optab_table): Redefine
203 * optabs.c (default_target_optabs): New variable.
204 (this_target_optabs): New conditional variable.
205 (optab_table, convert_optab_table, direct_optab_table): Delete.
206 * target-globals.h (this_target_optabs): Declare.
207 (target_globals): Add a optabs field.
208 (restore_target_globals): Copy the optabs field to
210 * target-globals.c: Include expr.h and optabs.h.
211 (default_target_globals): Initialize the optabs field.
212 (save_target_globals): Likewise.
214 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
216 * flags.h (target_flagstate): Add x_flag_excess_precision.
217 (flag_excess_precision): Redefine as a macro.
218 * toplev.c (flag_excess_precision): Delete.
220 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
222 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
223 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
224 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
225 (no_caller_save_reg_set): Redefine as a macro.
226 * reload.h (target_reload): Add x_caller_save_initialized_p and
228 (caller_save_initialized_p): Redefine as a macro.
229 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
230 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
231 (regno_save_mode): Redefine as a macro.
233 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
235 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
236 * expmed.h: New file.
237 * expmed.c (default_target_costs): New variable.
238 (this_target_costs): New conditional variable.
239 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
240 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
241 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
242 * target-globals.h (this_target_expmed): Declare.
243 (target_globals): Add a expmed field.
244 (restore_target_globals): Copy the expmed field to
246 * target-globals.c: Include expmed.h.
247 (default_target_globals): Initialize the expmed field.
248 (save_target_globals): Likewise.
250 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
252 * Makefile.in (target-globals.o): Depend on reload.h.
253 * reload.h (target_reload): New structure.
254 (default_target_reload): Declare.
255 (this_target_reload): Declare as a variable or define as a macro.
256 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
257 * reload1.c (default_target_reload): New variable
258 (this_target_reload): New conditional variable.
259 (indirect_symref_ok, double_reg_address_ok): Delete.
260 (spill_indirect_levels): Redefine as a macro.
261 * target-globals.h (this_target_reload): Declare.
262 (target_globals): Add a reload field.
263 (restore_target_globals): Copy the reload field to
265 * target-globals.c: Include hard-reg-set.h.
266 (default_target_globals): Initialize the reload field.
267 (save_target_globals): Likewise.
269 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
271 * rtl.h (target_rtl): Add x_static_reg_base_value.
272 * alias.c (static_reg_base_value): Redefine as a macro.
274 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
276 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
277 (GTFILES): Remove reginfo.c.
278 * rtl.h (target_rtl): Add x_top_of_stack.
279 (top_of_stack): New macro.
280 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
281 (top_of_stack): Delete.
283 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
285 * regs.h (target_regs): Add x_hard_regs_of_mode, x_contains_reg_of_mode,
286 x_move_cost, x_may_move_in_cost, x_may_move_out_cost and
287 x_last_mode_for_init_move_cost.
288 (have_regs_of_mode, contains_reg_of_mode, move_cost)
289 (may_move_in_cost, may_move_out_cost): Redefine as macros.
290 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
291 (may_move_in_cost, may_move_out_cost): Delete.
292 (last_mode_for_init_move_cost): Redefine as a macro.
294 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
296 * hard-reg-set.h (target_hard_regs): New structure.
297 (default_target_hard_regs): Declare.
298 (this_target_hard_regs): Declare as a variable or define as a macro.
299 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
300 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
301 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
302 (reg_class_size, reg_class_subclasses, reg_class_subunion)
303 (reg_class_superunion, reg_names): Redefine as macros.
304 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
305 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
306 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
307 (reg_class_contents, reg_class_size, reg_class_subclasses)
308 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
309 (default_target_hard_regs): New variable
310 (this_target_hard_regs, initial_call_really_used_regs)
311 (initial_reg_alloc_order): New conditional variables.
312 (initial_reg_names): New variable.
313 (init_reg_sets): Assert that initial_call_really_used_regs,
314 initial_reg_alloc_order and initial_reg_names
315 are all the same size as their variable counterparts. Use them to
316 initialize those counterparts.
317 * target-globals.h (this_target_hard_regs): Declare.
318 (target_globals): Add a hard_regs field.
319 (restore_target_globals): Copy the hard_regs field to
320 this_target_hard_regs.
321 * target-globals.c: Include hard-reg-set.h.
322 (default_target_globals): Initialize the hard_regs field.
323 (save_target_globals): Likewise.
325 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
327 * Makefile.in (target-globals.o): Depend on $(RTL_H).
328 * rtl.h: (target_rtl): New structure.
329 (default_target_rtl): Declare.
330 (this_target_rtl): Declare as a variable or define as a macro.
331 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
333 * emit-rtl.c (default_target_rtl): New variable.
334 (this_target_rtl): New conditional variable.
335 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
336 (return_address_pointer_rtx): Delete.
337 (initial_regno_reg_rtx): New macro.
338 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
339 (init_emit_regs): Likewise.
340 * target-globals.h (this_target_rtl): Declare.
341 (target_globals): Add a rtl field.
342 (restore_target_globals): Copy the rtl field to this_target_rtl.
343 * target-globals.c: Include rtl.h.
344 (default_target_globals): Initialize the rtl field.
345 (save_target_globals): Likewise.
347 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
349 * Makefile.in (target-globals.o): Depend on $(REGS_H).
350 * regs.h (target_reg_modes): New structure.
351 (default_target_reg_modes): Declare.
352 (this_target_reg_modes): Declare as a variable or define as a macro.
353 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
354 * reginfo.c (default_target_reg_modes): New variable.
355 (this_target_reg_modes): New conditional variable.
356 (hard_regno_nregs, reg_raw_mode): Delete.
357 * target-globals.h (this_target_regs): Declare.
358 (target_globals): Add a regs field.
359 (restore_target_globals): Copy the regs field to this_target_regs.
360 * target-globals.c: Include regs.h.
361 (default_target_globals): Initialize the regs field.
362 (save_target_globals): Likewise.
364 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
366 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
367 * doc/tm.texi: Regenerate.
368 * Makefile.in (OBJS-common): Add target-globals.o.
369 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
370 and target-globals.h.
371 (target-globals.o): New rule.
372 (GTFILES): Include $(srcdir)/target-globals.h.
373 * defaults.h (SWITCHABLE_TARGET): Define.
374 * gengtype.c (open_base_files): Add target-globals.h to the
376 * target-globals.h: New file.
377 * target-globals.c: Likewise.
379 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
380 * flags.h (target_flag_state): New structure.
381 (default_target_flag_state): Declare.
382 (this_target_flag_state): Declare as a variable or define as a macro.
383 (align_loops_log): Redefine as a macro.
384 (align_loops_max_skip, align_jumps_log): Likewise.
385 (align_jumps_max_skip, align_labels_log): Likewise.
386 (align_labels_max_skip, align_functions_log): Likewise.
387 * toplev.c (default_target_flag_state): New variable.
388 (this_target_flag_state): New conditional variable.
389 (align_loops_log): Delete.
390 (align_loops_max_skip, align_jumps_log): Likewise.
391 (align_jumps_max_skip, align_labels_log): Likewise.
392 (align_labels_max_skip, align_functions_log): Likewise.
393 * target-globals.h (this_target_flag_state): Declare.
394 (target_globals): Add a flag_state field.
395 (restore_target_globals): Copy the flag_state field to
396 this_target_flag_state.
397 * target-globals.c: Include flags.h.
398 (default_target_globals): Initialize the flag_state field.
399 (save_target_globals): Likewise.
401 2010-07-12 Jie Zhang <jie@codesourcery.com>
403 * postreload.c (reg_symbol_ref[]): New.
404 (move2add_use_add2_insn): New.
405 (move2add_use_add3_insn): New.
406 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
407 (move2add_note_store): Likewise.
409 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
411 PR rtl-optimization/44752
412 * genautomata.c (main): Don't emit an empty file even if there
415 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
417 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
418 ix86_solaris_return_in_memory.
419 * config/i386-protos.h: Reflect this.
420 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
421 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
423 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
425 2010-07-12 Jie Zhang <jie@codesourcery.com>
427 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
428 align the stack when it's going to be saved.
430 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
433 * config/host-solaris.c (mmap_fixed): New function.
434 (sol_gt_pch_get_address): Use it.
435 (sol_gt_pch_use_address): Likewise.
437 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
439 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
440 pentiumpro on Solaris 8 and 9/x86.
441 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
442 Document SSE/SSE2 support.
443 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
445 2010-07-12 Andi Kleen <ak@linux.intel.com>
447 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
448 instead of gcc_assert to print better error message for multiple
451 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
453 * config/i386/i386.c (ix86_asm_output_function_label): Change format
454 string placeholder from 0x%x to %#x.
455 (ix86_code_end): Use putc to output '\n'.
456 (ix86_print_operand) <case ';'>: Use putc to output ';'.
458 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
460 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
461 in directive -export.
463 2010-07-10 Anatoly Sokolov <aesok@post.ru>
465 * reginfo.h (reg_classes_intersect_p): Change arguments type to
467 * rtl.h (reg_classes_intersect_p): Adjust prototype.
469 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
471 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
472 rs6000_memory_move_cost): Remove
473 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
474 TARGET_MEMORY_MOVE_COST): Define.
475 (rs6000_register_move_cost): Make static. Change arguments type from
476 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
477 (rs6000_memory_move_cost): Make static. Change arguments type from
478 'enum reg_class' to reg_class_t.
480 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
483 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
485 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
487 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
488 * cfgloopanal.c (target_clobbered_regs): Define.
489 (init_set_costs): Initialize target_clobbered_regs.
490 (estimate_reg_pressure_cost): Add call_p argument. When true,
491 adjust the number of available registers to exclude the
492 call-clobbered registers.
493 * cfgloop.h (target_clobbered_regs): Declare.
494 (estimate_reg_pressure_cost): Adjust declaration.
495 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
496 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
497 (determine_set_costs): Dump target_clobbered_regs.
498 (loop_body_includes_call): New function.
499 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
500 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
502 (best_gain_for_invariant): Likewise.
503 (find_invariants_to_move): Likewise.
504 (move_single_loop_invariants): Likewise, using already-computed
507 2010-07-10 Richard Guenther <rguenther@suse.de>
508 Joern Rennecke <joern.rennecke@embecosm.com>
511 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
512 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
513 unless they have DECL_IGNORED_P set.
515 2010-07-10 Richard Guenther <rguenther@suse.de>
518 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
520 (gimple_types_compatible_p): Similar to pointed-to
521 types allow and merge a mix of complete and incomplete aggregate.
522 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
523 (iterative_hash_gimple_type): Adjust for that.
525 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
527 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
529 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
532 * config/darwin.c (output_objc_section_asm_op): Save and restore
533 section when outputting ObjC section list.
535 2010-07-09 Jan Hubicka <jh@suse.cz>
537 * lto-streamer-out.c (produce_symtab): Do not write alias
538 cgraph/varpool nodes.
540 2010-07-09 Jan Hubicka <jh@suse.cz>
542 * tree-inline.c (declare_return_variable): Fix ICE while
543 inlining DECL_BY_VALUE function not in SSA form
545 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
547 PR tree-optimization/44576
548 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
549 New. Pull out from is_loop_prefetching_profitable to implement
550 the trip count to ahead ratio heuristic.
551 (mem_ref_count_reasonable_p): New. Pull out from
552 is_loop_prefetching_profitable to implement the instruction to
553 memory reference ratio heuristic. Also consider not reasonable if
554 the memory reference count is above a threshold (to avoid
555 explosive compilation time.
556 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
557 is_loop_prefetching_profitable to implement the instruction to
558 prefetch ratio heuristic.
559 (is_loop_prefetching_profitable): Removed.
560 (loop_prefetch_arrays): Distribute the cost analysis across the
561 function to allow early exit of the prefetch analysis.
562 is_loop_prefetching_profitable is splitted into three functions,
563 with each one called as early as possible.
564 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
565 number of memory references in a loop is considered too many.
567 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
569 * reload.c (find_reloads): Don't clear badop if we have a winreg
570 alternative, but not win, and the class only has fixed regs.
571 * hard-reg-set.h (class_only_fixed_regs): Declare.
572 * reginfo.c (class_only_fixed_regs): New array.
573 (init_reg_sets_1): Initialize it.
574 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
575 discourage alternatives using the stack pointer.
577 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
579 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
581 * config/arm/arm.md (cbranchqi4): Fix array size.
582 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
585 2010-07-09 Richard Guenther <rguenther@suse.de>
587 * gimple.c (struct type_fixup_s): New struct and VEC type.
588 (gimple_register_type_fixups): New static global.
589 (gimple_queue_type_fixup): New function.
590 (gimple_types_compatible_p): Queue type fixups instead of
592 (gimple_register_type): Apply queued fixups for the
593 canonical type. Empty the type fixup queue.
595 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
597 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
598 * configure: Regenerate.
601 2010-07-09 Jakub Jelinek <jakub@redhat.com>
602 Denys Vlasenko <dvlasenk@redhat.com>
603 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
605 PR tree-optimization/28632
606 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
607 (extract_range_from_binary_expr): Further optimize
608 BIT_AND_EXPR and BIT_IOR_EXPR.
610 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
612 * tree-if-conv.c (fold_or_predicates): New.
613 (add_to_predicate_list): Call it.
615 2010-07-09 Richard Guenther <rguenther@suse.de>
618 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
619 if base is a pointer.
620 * tree-cfg.c (verify_expr): Update MEM_REF checking.
622 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
625 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
626 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
627 builtin mask for load/store builtins.
629 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
631 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
633 * configure: Regenerate.
634 * config/i386/i386.c (ix86_print_operand) <case ';'>:
637 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
639 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
641 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
643 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
645 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
647 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
649 * config/picochip/picochip.md (commsTestPort): Emit more
650 efficient sequence for tstport instruction.
652 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
654 * config/i386/i386.c (ix86_veclib_handler): Make static.
656 2010-07-09 Richard Guenther <rguenther@suse.de>
658 PR tree-optimization/44852
659 * tree-ssa-alias.c: Include toplev.h for exact_log2.
660 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
662 (indirect_refs_may_alias_p): Likewise.
663 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
665 2010-07-09 Richard Guenther <rguenther@suse.de>
667 PR tree-optimization/44882
668 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
670 (vectorizable_load): Likewise.
672 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
675 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
677 Handle the case when we're called for the epilogue.
678 (thumb_unexpanded_epilogue): Use it.
679 (thumb1_expand_epilogue): Likewise.
681 2010-07-09 Jakub Jelinek <jakub@redhat.com>
683 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
684 both ranges are range_int_cst_p with non-negative minimum,
685 try harder to derive smaller range.
687 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
689 * genrecog.c: Include diagnostic-core.h before toplev.h.
690 * genoutput.c: Likewise.
691 * genextract.c: Likewise.
692 * genautomata.c: Likewise.
693 * genemit.c: Likewise.
694 * genpeep.c: Likewise.
695 * genattrtab.c: Likewise.
696 * genconditions.c: Likewise.
697 * genpreds.c: Likewise.
699 2010-07-08 Andi Kleen <ak@linux.intel.com>
701 * lto-section-in.c (lto_section_name): Add missing comma.
703 2010-07-08 Anatoly Sokolov <aesok@post.ru>
705 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
706 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
707 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
708 (ia64_override_options): Rename to...
709 (ia64_option_override): ... this one. Make static.
711 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
714 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
715 pointed-to type of the offset in a MEM_REF to compute the alignment.
717 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
719 * final.c (final_scan_insn): Replace
720 TARGET_UNWIND_INFO macro check by unwind_emit
722 * targhooks.c (default_unwind_emit): Removed.
723 * targhooks.h (default_unwind_emit): Likewise.
724 * target.def (unwind_emit): Set default value to NULL.
726 * config/i386/i386-protos.h (ix86_asm_output_function_label):
728 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
729 for NULL fntype argument and allow 64-bit targets.
730 (ix86_asm_output_function_label): New function.
731 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
732 (ix86_handle_fndecl_attribute): Likewise.
733 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
734 * doc/doc/tm.texi: Regenerated.
735 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
736 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
737 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
738 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
739 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
740 * config/elfos.h: Likewise.
741 * config/i386/cygming.h: Likewise.
742 * config/netbsd-aout.h: Likewise.
743 * config/openbsd.h: Likewise.
744 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
745 by ix86_asm_output_function_label function call.
746 * varasm.c (assemble_start_function): Use
747 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
749 2010-07-08 Jan Hubicka <jh@suse.cz>
751 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
753 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
755 * ipa-cp.c (ipcp_estimate_growth): Use it.
756 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
759 2010-07-08 Jan Hubicka <jh@suse.cz>
761 * tree-inline.c (declare_return_variable): Allocate annotation for new
764 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
766 PR tree-optimization/44710
767 * tree-if-conv.c (parse_predicate): New.
768 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
769 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
771 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
773 * common.opt (ftree-loop-if-convert): New flag.
774 * doc/invoke.texi (ftree-loop-if-convert): Documented.
775 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
776 when flag_tree_loop_if_convert is set.
778 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
780 * config/i386/i386.c: Use short syntax for function calls
781 through function pointers.
782 * config/i386/i386.md: Ditto.
784 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
786 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
788 2010-07-08 Richard Guenther <rguenther@suse.de>
790 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
791 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
793 2010-07-08 Jakub Jelinek <jakub@redhat.com>
795 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
796 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
797 (loc_list_from_tree): Likewise.
798 (output_loc_operands): Handle outputting DW_OP_const[48]u
799 with loc->dtprel set.
800 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
802 2010-07-08 Jan Hubicka <jh@suse.cz>
804 * ipa.c: Include pointer-set.h
805 (cgraph_externally_visible_p): New attribute ALIASED;
806 when in LTO, hidden symbols are local unless they are aliased.
807 (function_and_variable_visibility): Compute aliased nodes;
808 handle LTO and hidden symbol on functions and vars.
809 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
810 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
812 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
814 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
815 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
816 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
817 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
818 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
819 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
820 (ix86_gen_probe_stack_range): Likewise.
821 (override_options): Set them.
822 (ix86_target_stack_probe): New function.
823 (ix86_compute_frame_layout): Force use of push instructions to
824 save registers if stack checking with probes is enabled.
825 (get_scratch_register_on_entry): New function.
826 (release_scratch_register_on_entry): Likewise.
827 (ix86_adjust_stack_and_probe): Likewise.
828 (output_adjust_stack_and_probe): Likewise.
829 (ix86_emit_probe_stack_range): Likewise.
830 (output_probe_stack_range): Likewise.
831 (ix86_expand_prologue): Emit stack checking code if static built-in
832 stack checking is enabled.
833 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
834 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
835 (output_adjust_stack_and_probe): Likewise.
836 (output_probe_stack_range): Likewise.
837 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
838 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
840 (allocate_stack_worker_64): Likewise.
841 (allocate_stack): Likewise.
842 (adjust_stack_and_probe): New insn.
843 (probe_stack_range): Likewise.
845 2010-07-08 Richard Guenther <rguenther@suse.de>
847 PR tree-optimization/44831
848 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
849 a MEM_REF preserving TBAA info of the original dereference.
850 Dereference the original pointer if the address is not invariant.
851 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
852 at least one invariant address that we are going to dereference.
854 2010-07-08 Richard Guenther <rguenther@suse.de>
856 PR tree-optimization/44861
857 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
858 information when building MEM_REFs.
859 (vectorizable_load): Likewise.
860 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
862 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
864 * config/sol2-c.c: Do not include diagnostic-core.h.
866 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
869 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
870 with respect to current_function_decl. Pass decl of the function.
871 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
872 * ipa-inline.c (compute_inline_parameters): Pass decl to
873 estimated_stack_frame_size.
875 2010-07-08 Richard Guenther <rguenther@suse.de>
877 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
879 (valueize_refs): Call it.
881 2010-07-08 Richard Guenther <rguenther@suse.de>
883 PR rtl-optimization/44838
884 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
885 SSA form do not use pointer equivalence.
887 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
889 * dwarf2out.c (AT_linkage_name): Delete.
890 (add_linkage_attr): New function.
891 (add_linkage_name): Call it to emit the linkage attribute.
892 (dwarf2out_finish): Likewise.
893 (move_linkage_attr): Explicitly accept both attribute variants.
895 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
897 * toplev.h: Do not include diagnostic-core.h.
898 Include diagnostic-core.h in every file that includes toplev.h.
899 * c-tree.h: Do not include toplev.h.
900 * pretty-print.h: Update comment.
901 * Makefile.in: Update dependencies.
902 * alias.c: Include diagnostic-core.h in every file that includes
904 * attribs.c: Likewise.
905 * auto-inc-dec.c: Likewise.
906 * bb-reorder.c: Likewise.
907 * bt-load.c: Likewise.
908 * caller-save.c: Likewise.
911 * cfganal.c: Likewise.
912 * cfgbuild.c: Likewise.
913 * cfgcleanup.c: Likewise.
914 * cfghooks.c: Likewise.
915 * cfgloop.c: Likewise.
916 * combine.c: Likewise.
917 * config/alpha/alpha.c: Likewise.
918 * config/arc/arc.c: Likewise.
919 * config/arm/arm.c: Likewise.
920 * config/arm/pe.c: Likewise.
921 * config/avr/avr.c: Likewise.
922 * config/bfin/bfin.c: Likewise.
923 * config/cris/cris.c: Likewise.
924 * config/crx/crx.c: Likewise.
925 * config/darwin-c.c: Likewise.
926 * config/darwin.c: Likewise.
927 * config/fr30/fr30.c: Likewise.
928 * config/frv/frv.c: Likewise.
929 * config/h8300/h8300.c: Likewise.
930 * config/host-darwin.c: Likewise.
931 * config/i386/i386.c: Likewise.
932 * config/i386/netware.c: Likewise.
933 * config/i386/nwld.c: Likewise.
934 * config/i386/winnt-cxx.c: Likewise.
935 * config/i386/winnt-stubs.c: Likewise.
936 * config/i386/winnt.c: Likewise.
937 * config/ia64/ia64-c.c: Likewise.
938 * config/ia64/ia64.c: Likewise.
939 * config/iq2000/iq2000.c: Likewise.
940 * config/lm32/lm32.c: Likewise.
941 * config/m32c/m32c-pragma.c: Likewise.
942 * config/m32c/m32c.c: Likewise.
943 * config/m32r/m32r.c: Likewise.
944 * config/m68hc11/m68hc11.c: Likewise.
945 * config/m68k/m68k.c: Likewise.
946 * config/mcore/mcore.c: Likewise.
947 * config/mep/mep-pragma.c: Likewise.
948 * config/mep/mep.c: Likewise.
949 * config/mmix/mmix.c: Likewise.
950 * config/mn10300/mn10300.c: Likewise.
951 * config/moxie/moxie.c: Likewise.
952 * config/pa/pa.c: Likewise.
953 * config/pdp11/pdp11.c: Likewise.
954 * config/picochip/picochip.c: Likewise.
955 * config/rs6000/rs6000-c.c: Likewise.
956 * config/rs6000/rs6000.c: Likewise.
957 * config/rx/rx.c: Likewise.
958 * config/s390/s390.c: Likewise.
959 * config/score/score.c: Likewise.
960 * config/score/score3.c: Likewise.
961 * config/score/score7.c: Likewise.
962 * config/sh/sh.c: Likewise.
963 * config/sh/symbian-base.c: Likewise.
964 * config/sh/symbian-c.c: Likewise.
965 * config/sh/symbian-cxx.c: Likewise.
966 * config/sol2-c.c: Likewise.
967 * config/sol2.c: Likewise.
968 * config/sparc/sparc.c: Likewise.
969 * config/spu/spu.c: Likewise.
970 * config/stormy16/stormy16.c: Likewise.
971 * config/v850/v850-c.c: Likewise.
972 * config/v850/v850.c: Likewise.
973 * config/vax/vax.c: Likewise.
974 * config/vxworks.c: Likewise.
975 * config/xtensa/xtensa.c: Likewise.
976 * convert.c: Likewise.
978 * cselib.c: Likewise.
979 * dbgcnt.c: Likewise.
980 * dbxout.c: Likewise.
982 * dominance.c: Likewise.
983 * emit-rtl.c: Likewise.
984 * explow.c: Likewise.
985 * expmed.c: Likewise.
986 * fixed-value.c: Likewise.
987 * fold-const.c: Likewise.
988 * fwprop.c: Likewise.
990 * ggc-common.c: Likewise.
991 * ggc-page.c: Likewise.
992 * ggc-zone.c: Likewise.
993 * gimple-low.c: Likewise.
994 * gimplify.c: Likewise.
996 * haifa-sched.c: Likewise.
998 * implicit-zee.c: Likewise.
999 * integrate.c: Likewise.
1000 * ira-build.c: Likewise.
1001 * ira-color.c: Likewise.
1002 * ira-conflicts.c: Likewise.
1003 * ira-costs.c: Likewise.
1004 * ira-lives.c: Likewise.
1006 * lists.c: Likewise.
1007 * loop-doloop.c: Likewise.
1008 * loop-iv.c: Likewise.
1009 * lto-opts.c: Likewise.
1010 * lto-symtab.c: Likewise.
1012 * modulo-sched.c: Likewise.
1013 * optabs.c: Likewise.
1014 * params.c: Likewise.
1015 * plugin.c: Likewise.
1016 * postreload-gcse.c: Likewise.
1017 * postreload.c: Likewise.
1018 * predict.c: Likewise.
1019 * profile.c: Likewise.
1021 * regcprop.c: Likewise.
1022 * reginfo.c: Likewise.
1023 * regmove.c: Likewise.
1024 * reorg.c: Likewise.
1025 * resource.c: Likewise.
1027 * rtlanal.c: Likewise.
1028 * sched-deps.c: Likewise.
1029 * sched-ebb.c: Likewise.
1030 * sched-rgn.c: Likewise.
1031 * sdbout.c: Likewise.
1032 * sel-sched-dump.c: Likewise.
1033 * sel-sched-ir.c: Likewise.
1034 * simplify-rtx.c: Likewise.
1036 * stor-layout.c: Likewise.
1037 * store-motion.c: Likewise.
1038 * targhooks.c: Likewise.
1039 * tree-cfg.c: Likewise.
1040 * tree-cfgcleanup.c: Likewise.
1041 * tree-dump.c: Likewise.
1042 * tree-eh.c: Likewise.
1043 * tree-inline.c: Likewise.
1044 * tree-nomudflap.c: Likewise.
1045 * tree-object-size.c: Likewise.
1046 * tree-optimize.c: Likewise.
1047 * tree-outof-ssa.c: Likewise.
1048 * tree-phinodes.c: Likewise.
1049 * tree-profile.c: Likewise.
1050 * tree-ssa-ccp.c: Likewise.
1051 * tree-ssa-coalesce.c: Likewise.
1052 * tree-ssa-live.c: Likewise.
1053 * tree-ssa-loop-niter.c: Likewise.
1054 * tree-ssa-loop-prefetch.c: Likewise.
1055 * tree-ssa-loop.c: Likewise.
1056 * tree-ssa-structalias.c: Likewise.
1057 * tree-ssa-uninit.c: Likewise.
1058 * tree-ssa.c: Likewise.
1059 * tree-vect-data-refs.c: Likewise.
1060 * tree-vect-loop-manip.c: Likewise.
1061 * tree-vect-loop.c: Likewise.
1062 * tree-vect-patterns.c: Likewise.
1063 * tree-vect-stmts.c: Likewise.
1064 * tree-vrp.c: Likewise.
1065 * varasm.c: Likewise.
1068 * xcoffout.c: Likewise.
1070 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
1072 * gengtype.c (write_field_root): New function.
1073 (write_root): Use it.
1075 2010-07-07 Wei Guozhi <carrot@google.com>
1077 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1078 of lowest bits to lshift/compare): Add a missing line.
1080 2010-07-07 Wei Guozhi <carrot@google.com>
1082 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1083 of lowest bits to lshift/compare): New.
1085 2010-07-07 Tom Tromey <tromey@redhat.com>
1087 * doc/tm.texi: Update.
1088 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1090 * target.def (want_debug_pub_sections): New hook.
1091 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1092 * dwarf2out.c (add_pubname_string): Check
1093 targetm.want_debug_pub_sections.
1094 (add_pubname): Likewise.
1095 (add_pubtype): Likewise.
1097 2010-07-07 Jie Zhang <jie@codesourcery.com>
1099 * genautomata.c (output_automata_list_min_issue_delay_code):
1100 Correctly decompress min_issue_delay.
1102 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1104 PR rtl-optimization/44404
1105 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1106 possible, use reg_overlap_mentioned_p instead.
1108 2010-07-07 Duncan Sands <baldrick@free.fr>
1111 * tree.c (build_function_type_skip_args): Copy the original type using
1112 build_distinct_type_copy rather than copy_node.
1114 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1117 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1119 (ix86_expand_prologue): Likewise.
1120 (ix86_handle_fndecl_attribute): Likewise.
1121 (ix86_asm_declare_function_name): Likewise.
1122 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1123 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1124 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1125 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1126 * doc/extend.texi: Likewise.
1128 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1131 * config/i386/i386.md (rdrand<mode>): Changed to expand to
1132 retry if the carry flag isn't valid.
1133 (rdrand<mode>_1): New.
1135 2010-07-07 Richard Guenther <rguenther@suse.de>
1138 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1139 for expanding the constant offset for MEM_REFs.
1141 2010-07-07 Richard Guenther <rguenther@suse.de>
1143 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1144 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
1145 * gimple.h (is_gimple_operand): Remove.
1146 * gimple.c (is_gimple_operand): Likewise.
1147 (walk_gimple_op): Fix wi->val_only setting for calls.
1148 * tree-cfg.c (verify_gimple_call): Fix argument validation.
1149 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1150 invalid gimple calls.
1152 2010-07-06 Jan Hubicka <jh@suse.cz>
1154 * lto-cgraph.c (output_cgraph): Add missing declaration.
1156 2010-07-06 Jan Hubicka <jh@suse.cz>
1158 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1161 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
1163 * doc/gimple.texi (GIMPLE_DEBUG): Document.
1164 * doc/rtl.texi (Debug Information): New node.
1165 (NOTE_INSN_VAR_LOCATION): Document.
1166 (debug_insn): Likewise.
1167 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1169 2010-07-07 Jan Hubicka <jh@suse.cz>
1171 With parts by Richard Guenther.
1174 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1175 for functions passed by reference.
1176 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1177 in memory when passed by reference.
1178 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1180 * ipa-split.c (split_function): Cleanup way return value is passed;
1181 handle SSA DECL_BY_REFERENCE retvals.
1182 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1183 DECL_BY_REFERENCE is set.
1184 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1185 find_what_p_points_to): Handle RESULT_DECL.
1186 * tree-inline.c (declare_return_variable): Get new entry_block argument;
1187 when passing by reference ensure that RESULT_DECL is gimple_val.
1188 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1189 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1191 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1193 PR rtl-optimization/44787
1194 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1195 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1197 2010-07-06 Jan Hubicka <jh@suse.cz>
1199 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1200 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1201 with body can prevail.
1202 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1203 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1204 * cgraph.c (cgraph_get_node_or_alias): New function.
1205 * cgraph.h (cgraph_get_node_or_alias): Declare.
1207 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
1209 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1211 (ix86_expand_prologue): Likewise.
1212 (ix86_handle_fndecl_attribute): Likewise.
1213 (ix86_asm_declare_function_name): New function for
1214 ASM_DECLARE_FUNCTION_NAME.
1215 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
1216 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
1217 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
1218 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
1219 * doc/extend.texi: Adjust documentation about ms_hook_prologue
1222 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1224 * config/i386/i386.md (immediate_operand): New mode attribute.
1226 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
1227 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
1228 using P mode iterator.
1229 (pro_epilogue_adjust_stack_di_2): Rename from
1230 pro_epilogue_adjust_stack_rex64_2.
1232 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
1234 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1236 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
1237 through gen_mov_insv_1 function pointer.
1238 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
1239 gen_truncxf<mode>2 through gen_truncxf function pointer.
1240 (remainder<mode>3): Ditto.
1241 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
1242 (allocate_stack): Call gen_allocate_stack_worker_64 or
1243 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
1245 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
1248 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1250 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
1251 operand constraint instead of <r><i>m.
1253 2010-07-06 Richard Guenther <rguenther@suse.de>
1256 * convert.c (convert_to_integer): Watch out for overflowing
1259 2010-07-05 Jan Hubicka <jh@suse.cz>
1261 * lto-streamer.c (write_symbol_vec): Rename to ...
1262 (write_symbol) ... this one; write only symbol given and when
1263 present in cache. Sanity check that what is defined is present
1264 in cgraph/varpool with body/finalized decl.
1265 (write_symbols_of_kind): Remove.
1266 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
1267 pairs to produce symtab.
1268 (produce_asm_for_decls): Update call of produce_symtab; don't do so
1269 when doing WPA streaming.
1271 2010-07-05 Jan Hubicka <jh@suse.cz>
1273 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
1274 function is still available to fold into.
1276 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1278 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
1279 * function.h (struct_function): Change type of local_decls field
1281 (add_local_decl): New function.
1282 (FOR_EACH_LOCAL_DECL): New macro.
1283 * cfgexpand.c (init_vars_expansion): Adjust for new type of
1285 (estimated_stack_frame_size): Likewise.
1286 (expand_used_vars): Likewise.
1287 * cgraphbuild.c (build_cgraph_edges): Likewise.
1288 * function.c (instantiate_decls_1): Likewise.
1289 * ipa-struct-reorg.c (build_data_structure): Likewise.
1290 * ipa-type-escape.c (analyze_function): Likewise.
1291 * lto-streamer-in.c (input_function): Likewise.
1292 * lto-streamer-out.c (output_function): Likewise.
1293 * tree-ssa-live.c (remove_unused_locals): Likewise.
1294 * tree.c (free_lang_data_in_decl): Likewise.
1295 (find_decls_types_in_node): Likewise.
1296 * omp-low.c (remove_exit_barrier): Likewise.
1297 (expand_omp_taskreg): Likewise.
1298 (list2chain): Rename to...
1299 (vec2chain): ...this. Adjust.
1300 * cgraphunit.c (assemble_thunk): Call add_local_decl.
1301 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1302 * gimple-low.c (record_vars_into): Likewise.
1303 * tree-inline.c (remap_decls): Likewise.
1304 (declare_return_variable): Likewise.
1305 (declare_inline_vars): Likewise.
1306 (copy_forbidden): Adjust for new type of cfun->local_decls.
1307 (add_local_variables): New function.
1308 (expand_call_inline): Call it.
1309 (tree_function_versioning): Likewise.
1311 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
1313 AVX Programming Reference (June, 2010)
1314 * config/i386/cpuid.h (bit_F16C): New.
1315 (bit_RDRND): Likewise.
1316 (bit_FSGSBASE): Likewise.
1318 * config/i386/i386-builtin-types.def: Add
1319 "DEF_FUNCTION_TYPE (UINT16)", function types for
1320 float16 <-> float conversions and
1321 "DEF_FUNCTION_TYPE (VOID, UINT64)".
1323 * config/i386/i386-c.c (ix86_target_macros_internal): Support
1324 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1325 OPTION_MASK_ISA_F16C.
1327 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1328 (OPTION_MASK_ISA_RDRND_SET): Likewise.
1329 (OPTION_MASK_ISA_F16C_SET): Likewise.
1330 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1331 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1332 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1333 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1334 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1335 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1336 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1337 (override_options): Handle them.
1338 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1339 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1340 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1341 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1342 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1343 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1344 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1345 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1346 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1347 (bdesc_args): Likewise.
1348 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1349 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1350 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
1351 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
1352 Handle non-memory store.
1354 * config/i386/i386.h (TARGET_FSGSBASE): New.
1355 (TARGET_RDRND): Likewise.
1356 (TARGET_F12C): Likewise.
1358 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
1359 (UNSPEC_VCVTPS2PH): Likewise.
1360 (UNSPECV_RDFSBASE): Likewise.
1361 (UNSPECV_RDGSBASE): Likewise.
1362 (UNSPECV_WRFSBASE): Likewise.
1363 (UNSPECV_WRGSBASE): Likewise.
1364 (UNSPECV_RDRAND): Likewise.
1365 (rdfsbase<mode>): Likewise.
1366 (rdgsbase<mode>): Likewise.
1367 (wrfsbase<mode>): Likewise.
1368 (wrgsbase<mode>): Likewise.
1369 (rdrand<mode>): Likewise.
1371 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
1373 * config/i386/immintrin.h (_rdrand_u16): New.
1374 (_rdrand_u32): Likewise.
1375 (_readfsbase_u32): Likewise.
1376 (_readfsbase_u64): Likewise.
1377 (_readgsbase_u32): Likewise.
1378 (_readgsbase_u64): Likewise.
1379 (_writefsbase_u32): Likewise.
1380 (_writefsbase_u64): Likewise.
1381 (_writegsbase_u32): Likewise.
1382 (_writegsbase_u64): Likewise.
1383 (_rdrand_u64): Likewise.
1384 (_cvtsh_ss): Likewise.
1385 (_mm_cvtph_ps): Likewise.
1386 (_mm256_cvtph_ps): Likewise.
1387 (_cvtss_sh): Likewise.
1388 (_mm_cvtps_ph): Likewise.
1389 (_mm256_cvtps_ph): Likewise.
1391 * config/i386/sse.md (vcvtph2ps): New.
1392 (*vcvtph2ps_load): Likewise.
1393 (vcvtph2ps256): Likewise.
1394 (vcvtps2ph): Likewise.
1395 (*vcvtps2ph): Likewise.
1396 (*vcvtps2ph_store): Likewise.
1397 (vcvtps2ph256): Likewise.
1399 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
1401 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
1403 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
1406 * genenums.c (main): Output include of insn-constants.h
1407 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
1409 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
1411 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
1412 (override_options): Initialize it.
1413 (ix86_expand_prologue): Use it.
1415 2010-07-05 Jakub Jelinek <jakub@redhat.com>
1417 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
1419 2010-07-05 Anatoly Sokolov <aesok@post.ru>
1421 * double-int.h (fit_double_type): Remove declaration.
1422 * double-int.c (fit_double_type): Remove function.
1423 * tree.h (int_fits_type_p): Adjust prototype.
1424 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
1425 instead of fit_double_type.
1426 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
1427 instead of fit_double_type and build_int_cst_wide.
1428 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
1429 instead of fit_double_type and build_int_cst_wide.
1430 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
1433 2010-07-05 Jan Hubicka <jh@suse.cz>
1435 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
1437 * lto-cgraph.c (referenced_from_other_partition_p,
1438 reachable_from_other_partition_p): Use in_other_partition flags.
1439 (output_node, output_varpool_node): COMDAT nodes always have private
1440 copies and thus are never used from other partition.
1442 2010-07-05 Anatoly Sokolov <aesok@post.ru>
1444 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1445 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
1446 * config/ia64/ia64.c Include reload.h.
1447 (ia64_memory_move_cost): New function.
1448 (TARGET_MEMORY_MOVE_COST): Define.
1449 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
1452 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
1455 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
1456 comments about cost model.
1457 (try_add_cand_for): Add second strategy for choosing initial set
1458 based on original IVs, controlled by ORIGINALP argument.
1459 (get_initial_solution): Add ORIGINALP argument.
1460 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
1461 (find_optimal_iv_set): Try two different strategies for choosing
1462 the IV set, and return the one with lower cost.
1464 2010-07-05 Richard Guenther <rguenther@suse.de>
1466 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
1468 2010-07-05 Richard Guenther <rguenther@suse.de>
1470 * tree.c (reference_alias_ptr_type): New function.
1471 * tree.h (reference_alias_ptr_type): Declare.
1472 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
1473 allow non-TARGET_MEM_REF new refs.
1474 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
1475 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
1476 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
1477 (create_mem_ref): Get alias pointer type. Adjust calls to
1479 (maybe_fold_tmr): Likewise.
1480 * tree-flow.h (create_mem_ref): Adjust prototype.
1482 2010-07-05 Jakub Jelinek <jakub@redhat.com>
1485 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
1486 *from_p is VAR_DECL.
1488 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1490 * tree.h (build_call_list): Remove.
1491 * tree.c (build_call_list): Remove.
1493 2010-07-05 Richard Guenther <rguenther@suse.de>
1495 * double-int.h (double_int_sub): Declare.
1496 * double-int.c (double_int_sub): New function.
1497 * dwarf2out.c (field_byte_offset): Use it.
1498 * fixed-value.c (do_fixed_add): Likewise.
1499 (do_fixed_multiply): Likewise.
1500 (do_fixed_divide): Likewise.
1501 * tree-predcom.c (add_ref_to_chain): Likewise.
1502 (determine_roots_comp): Likewise.
1503 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
1505 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1507 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
1510 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
1512 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
1513 * arm-modes.def (CC_NOTB): Don't define.
1514 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
1515 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
1516 (LTUGEU): New code_iterator.
1517 (cnb, optab): New corresponding code_attrs.
1518 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
1519 to canonical form. Operands 1 and 2 are commutative. Parametrize
1521 (addsi3_carryin_shift_<optab>): Likewise.
1522 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
1523 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
1524 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
1525 (subsi3_compare): Renamed from subsi3_compare0_c.
1526 Change CC_NOTB to CC.
1527 (arm_subsi3_insn): Allow constants for operand 0.
1528 (compare_scc peephole for eq case): New.
1529 (compare_scc splitters): Change CC_NOTB to CC.
1531 2010-07-05 Richard Guenther <rguenther@suse.de>
1533 * tree-ssa-loop-im.c (for_each_index): Do not handle
1535 (gen_lsm_tmp_name): Likewise.
1536 * tree-dump.c (dequeue_and_dump): Likewise.
1537 * tree-pretty-print.c (dump_generic_node): Likewise.
1538 (op_code_prio): Likewise.
1539 (op_symbol_code): Likewise.
1540 * tree.c (staticp): Likewise.
1541 (build1_stat): Likewise.
1542 * tree.h (INDIRECT_REF_P): Likewise.
1543 * fold-const.c (maybe_lvalue_p): Likewise.
1544 (operand_equal_p): Likewise.
1545 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1546 (ao_ref_init_from_vn_reference): Likewise.
1547 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1548 (find_interesting_uses_address): Likewise.
1549 * dwarf2out.c (loc_list_from_tree): Likewise.
1550 * gimplify.c (gimplify_expr): Likewise.
1551 * tree-eh.c (tree_could_trap_p): Likewise.
1552 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1553 * cfgexpand.c (expand_debug_expr): Likewise.
1554 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1555 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1556 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1557 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
1558 * tree-ssa-operands.c (get_expr_operands): Likewise.
1559 * expr.c (safe_from_p): Likewise.
1560 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
1561 * tree-vect-data-refs.c (vect_setup_realignment): Build
1562 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
1563 * tree-vect-stmts.c (vectorizable_load): Likewise.
1564 * tree.def (ALIGN_INDIRECT_REF): Remove.
1566 2010-07-05 Richard Guenther <rguenther@suse.de>
1568 PR tree-optimization/44784
1569 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
1571 (find_or_generate_expression): Fix SCCVN insertion check.
1573 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
1575 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
1576 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1577 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
1580 2010-07-05 Ira Rosen <irar@il.ibm.com>
1582 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
1583 statements that are not vectorized.
1584 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1587 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
1590 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1592 2010-07-05 Richard Guenther <rguenther@suse.de>
1594 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1595 RESULT_DECLs properly.
1597 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
1599 PR rtl-optimization/44695
1600 * config/i386/i386.md (extract_code): Removed.
1601 (<u>divmodqi4): Likewise.
1603 (udivmodqi4): Likewise.
1604 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1605 (udivmodhiqi3): Likewise.
1607 2010-07-04 Jan Hubicka <jh@suse.cz>
1609 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1611 2010-07-04 Jan Hubicka <jh@suse.cz>
1613 * cgraphunit.c (init_cgraph): Only initialize dump file if it
1614 is not already initialized.
1616 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1618 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1619 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1620 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1621 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1622 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1623 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1624 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
1625 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
1626 (sync_new_nand_optab): Redefine as macros.
1627 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
1629 (direct_optab_index): New enum.
1630 (direct_optab_d): New structure.
1631 (direct_optab): New typedef.
1632 (direct_optab_table): Declare.
1633 (direct_optab_handler, set_direct_optab_handler): New functions.
1634 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
1635 (sync_lock_release_optab): New macros.
1636 * optabs.c (direct_optab_table): New variable.
1637 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
1638 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
1639 cmpstr_optab and cmpstrn_optab.
1640 (emit_conditional_move): Likewise for movcc_optab.
1641 (can_conditionally_move_p): Likewise for movcc_gen_code.
1642 (init_insn_codes): Clear direct_optab_table.
1643 (init_optabs): Don't initialize the new "direct optabs" here.
1644 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
1646 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
1647 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
1648 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
1649 (expand_sync_operation): Likewise other sync_*_optabs.
1650 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
1651 to sync_compare_and_swap_optab.
1652 (expand_sync_lock_test_and_set): Use direct_optab_handler for
1653 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
1654 to the names of both.
1655 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
1656 cmpstr_optab and cmpstrn_optab.
1657 (expand_builtin_lock_release): Likewise sync_lock_release.
1658 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
1659 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
1660 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
1661 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
1662 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
1663 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
1664 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
1665 (sync_lock_test_and_set, sync_lock_release): Delete.
1666 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
1667 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
1668 * genopinit.c (optabs): Use set_direct_optab_handler for the new
1670 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
1671 the "optab" local variable. Use direct_optab_handler for optab and
1672 sync_compare_and_swap_optab.
1673 * reload1.c (reload_in_optab, reload_out_optab): Delete.
1674 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
1675 reload_in_optab and reload_out_optab.
1676 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1677 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
1678 * config/pa/pa.c (pa_secondary_reload): Likewise.
1679 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
1680 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
1681 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
1682 (VMSupportsCS8_builtin): Likewise.
1684 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1686 * optabs.h (optab_handlers): Change type of insn_code to int.
1687 (optab_handler, set_optab_handler, convert_optab_handler)
1688 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1690 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1691 (init_insn_codes): Zero both the above arrays.
1692 (init_optabs): Never call init_insn_codes first time around.
1694 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1696 * optabs.h (optab_handler, convert_optab_handler): Turn into
1697 inline functions that return an insn code.
1698 (set_optab_handler, set_convert_optab_handler): New functions.
1699 * builtins.c: Replace optab_handler(X)->insn_code with
1700 optab_handler or set_optab_handler thoughout. Likewise
1701 convert_optab_handler(X)->insn_code with convert_optab_handler
1702 and set_convert_optab_handler.
1703 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1704 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1705 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1706 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1707 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1708 config/spu/spu.c: Likewise.
1710 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1713 * config.gcc (sh*-*-*): Use regular expressions instead of
1714 the 'i' modifier for sed substitutions.
1716 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
1718 * gimple.c (gimple_body): Comments added.
1720 2010-07-04 Richard Guenther <rguenther@suse.de>
1723 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1726 2010-07-04 Richard Guenther <rguenther@suse.de>
1728 PR tree-optimization/44479
1729 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1730 extra SSA name copy statements which preserves points-to
1732 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1733 Copy points-to information for all pointers. Properly handle
1735 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
1737 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1740 2010-07-04 Richard Guenther <rguenther@suse.de>
1743 * tree-inline.c (initialize_inlined_parameters): Do not
1744 re-use pointer-map slot over remap_type call.
1746 2010-07-04 Richard Guenther <rguenther@suse.de>
1748 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1750 2010-07-04 Richard Guenther <rguenther@suse.de>
1752 PR tree-optimization/44656
1753 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1754 again after value-replacing in the defintions lhs.
1756 2010-07-04 Ira Rosen <irar@il.ibm.com>
1757 Revital Eres <eres@il.ibm.com>
1759 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1760 Document new arguments.
1761 * doc/tm.texi: Regenerate.
1762 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1763 Handle unaligned store.
1764 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1765 * target.def (builtin_vectorization_cost): Add new arguments.
1766 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1767 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1768 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1769 (vect_vfa_segment_size): Fix indentation.
1770 * tree-vectorizer.h (struct _vect_peel_info): New.
1771 (struct _vect_peel_extended_info): New.
1772 (struct _loop_vec_info): Add new field for peeling hash table and a
1773 macro for its access.
1774 (VECT_MAX_COST): Define.
1775 (vect_get_load_cost): Declare.
1776 (vect_get_store_cost, vect_get_known_peeling_cost,
1777 vect_get_single_scalar_iteraion_cost): Likewise.
1778 (vect_supportable_dr_alignment): Add new argument.
1779 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1781 (destroy_loop_vec_info): Free peeling hash table.
1782 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1783 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1784 vect_analyze_slp. Fix indentation.
1785 (vect_get_single_scalar_iteraion_cost): New function.
1786 (vect_get_known_peeling_cost): Likewise.
1787 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1788 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1789 statement. Move outside cost calculation inside unknown peeling case.
1790 Call vect_get_known_peeling_cost for known amount of peeling.
1791 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1792 reference to the print message of forced alignment.
1793 (vect_verify_datarefs_alignment): Update call to
1794 vect_supportable_dr_alignment.
1795 (vect_get_data_access_cost): New function.
1796 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1797 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1798 vect_peeling_hash_choose_best_peeling): Likewise.
1799 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1800 to store all the accesses in the loop and find best possible access to
1801 align using peeling for known alignment case. For unknown alignment
1802 check if stores are preferred or if peeling is worthy.
1803 (vect_find_same_alignment_drs): Analyze pairs of loads too.
1804 (vect_supportable_dr_alignment): Add new argument and check aligned
1805 accesses according to it.
1806 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1807 (cost_for_stmt): Call vect_get_stmt_cost.
1808 (vect_model_simple_cost): Likewise.
1809 (vect_model_store_cost): Call vect_get_stmt_cost. Call
1810 vect_get_store_cost to calculate the cost of the statement.
1811 (vect_get_store_cost): New function.
1812 (vect_model_load_cost): Call vect_get_stmt_cost. Call
1813 vect_get_load_cost to calculate the cost of the statement.
1814 (vect_get_load_cost): New function.
1815 (vectorizable_store): Update call to vect_supportable_dr_alignment.
1816 (vectorizable_load): Likewise.
1817 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1818 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1819 arguments. Handle unaligned store.
1820 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1821 (rs6000_builtin_support_vector_misalignment): Return true for word and
1822 double word alignments for VSX.
1823 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1824 vect_supportable_dr_alignment and builtin_vectorization_cost.
1826 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1829 * config/pa/predicates.md (prefetch_cc_operand): Remove.
1830 (prefetch_nocc_operand): Likewise.
1831 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1832 (prefetch_20): New insn.
1833 (prefetch_cc): Remove.
1834 (prefetch_nocc): Likewise.
1836 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1838 * expr.c (vector_mode_valid_p): Move to c-common.c.
1839 * expr.h (vector_mode_valid_p): Do not declare here.
1840 * system.h: Poison GCC_EXPR_H in front-ends.
1841 * Makefile.in: Update dependencies.
1843 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1846 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1848 2010-07-03 Jan Hubicka <jh@suse.cz>
1850 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1851 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1852 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1853 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1856 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1858 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1859 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1860 TV_IPA_LTO_DECL_OUT): New.
1861 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1863 2010-07-03 Jan Hubicka <jh@suse.cz>
1865 * ipa-inline.c (update_edge_key): Break out from ...
1866 update_callers_keys): ... here;
1867 (update_callee_keys): Update only the edges from caller to callee.
1868 (update_all_calle_keys): Do what update_calle_keys did.
1869 (decide_inlining_of_small_functions): Avoid recomputing of all
1870 callees when badness increase.
1872 2010-07-03 Jie Zhang <jie@codesourcery.com>
1874 * config/arm/arm.c (arm_attr_length_move_neon): New.
1875 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1876 * config/arm/neon.md (define_mode_attr V_slen): Remove.
1877 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1878 to compute length attribute.
1880 2010-07-03 Jie Zhang <jie@codesourcery.com>
1882 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1883 as predicate for operand 1 and remove its constraint.
1884 * config/arm/predicates.md (vfp_register_operand): New.
1885 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1886 (*push_fp_multi): Likewise.
1888 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1890 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1892 2010-07-03 Jan Hubicka <jh@suse.cz>
1894 * config/i386/i386.c (override_options): Revert accidental commit.
1896 2010-07-02 Le-Chun Wu <lcwu@google.com>
1899 * doc/invoke.texi: Update documentation of -Wshadow.
1901 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1902 Julian Brown <julian@codesourcery.com>
1903 Sandra Loosemore <sandra@codesourcery.com>
1905 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1906 comparisons. Adjust to take both operands.
1907 (arm_select_cc_mode): Handle DImode comparisons.
1908 (arm_gen_compare_reg): Generate a scratch register for DImode
1909 comparisons which require one. Use xor for Thumb equality checks.
1910 (arm_const_double_by_immediates): New.
1911 (arm_print_operand): Allow 'Q' and 'R' for constants.
1912 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1913 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1914 arm_canonicalize_comparison.
1915 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1916 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1918 (arm_const_double_by_immediates): Declare.
1919 * config/arm/constraints.md (Di): New constraint.
1920 * config/arm/predicates.md (arm_immediate_di_operand)
1921 (arm_di_operand, cmpdi_operand): New.
1922 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1923 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1924 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1925 (cstoredi4): Handle non-Cirrus also.
1927 2010-07-02 Julian Brown <julian@codesourcery.com>
1928 Sandra Loosemore <sandra@codesourcery.com>
1931 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1932 (smax<mode>3): Disable for NEON float modes when
1933 flag_unsafe_math_optimizations is false.
1934 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1936 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1937 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1938 for NEON float modes when flag_unsafe_math_optimizations is false.
1939 (quad_halves_<code>v4sf): Only enable if
1940 flag_unsafe_math_optimizations is true.
1941 * doc/invoke.texi (ARM Options): Add note about floating point
1942 vectorization requiring -funsafe-math-optimizations.
1944 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1945 Julian Brown <julian@codesourcery.com>
1947 * config/arm/neon.md (UNSPEC_VABA): Delete.
1948 (UNSPEC_VABAL): Delete.
1949 (UNSPEC_VABS): Delete.
1950 (UNSPEC_VMUL_N): Delete.
1953 (mul<mode>3add<mode>_neon): Make the pattern named.
1954 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1955 (neon_vadd<mode>): Replace with define_expand, and move the remaining
1957 (neon_vadd<mode>_unspec): ...to this.
1958 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1959 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1960 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1961 (neon_vaba<mode>): Rewrite in terms of vabd.
1962 (neon_vabal<mode>): Rewrite in terms of vabdl.
1963 (neon_vabs<mode>): Rewrite without unspec.
1964 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1965 (*arm_subdi3): Likewise.
1966 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1967 No_op attribute to disable assembly output checks.
1968 * config/arm/arm_neon.h: Regenerated.
1969 * doc/arm-neon-intrinsics.texi: Regenerated.
1971 2010-07-02 Jan Hubicka <jh@suse.cz>
1973 * ipa-split.c (split_function): For aggregate values, set the return
1974 slot optimization bit. When passing DECL_BY_REFERENCE, produce
1975 *<retval> = fncall.part ().
1976 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1978 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1980 * config/arm/neon.md (UNSPEC_VAND): Delete.
1981 (UNSPEC_VBIC): Delete.
1982 (UNSPEC_VCLZ): Delete.
1983 (UNSPEC_VCNT): Delete.
1984 (UNSPEC_VEOR): Delete.
1985 (UNSPEC_VORN): Delete.
1986 (UNSPEC_VORR): Delete.
1987 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
1989 (anddi3_neon): Likewise.
1990 (orndi3_neon): Likewise.
1991 (bicdi3_neon): Likewise.
1992 (xordi3_neon): Likewise.
1993 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1994 rid of unspec and handle unused operand.
1995 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1996 * config/arm/predicates.md (imm_for_neon_logic_operand):
1997 Require TARGET_NEON.
1998 (imm_for_neon_inv_logic_operand): Likewise.
1999 * config/arm/arm.md (define_split for logical_binary_operator):
2000 Disable for NEON registers.
2001 (anddi3): Add new define_expand, and rename the insn. Disable
2002 this insn for NEON, where anddi3_neon now applies.
2003 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2004 (iordi3): As for anddi3.
2006 * config/arm/neon.ml (Vand): Split DImode variants and mark them
2007 as No_op to disable testing for exact instruction match.
2012 * config/arm/arm_neon.h: Regenerated.
2013 * doc/arm-neon-intrinsics.texi: Regenerated.
2015 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2017 * expr.h (emit_stack_probe): Declare.
2018 * explow.c (emit_stack_probe): Make global.
2019 (anti_adjust_stack_and_probe): Fix comments.
2020 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2021 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2022 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2023 * config/sparc/sparc.c: Include except.h.
2024 (sparc_emit_probe_stack_range): New function.
2025 (output_probe_stack_range): Likewise.
2026 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2027 built-in stack checking is enabled.
2028 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2029 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2030 (probe_stack_range): New insn.
2032 2010-07-02 Richard Guenther <rguenther@suse.de>
2035 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2036 for argument alignment.
2038 2010-07-02 Jan Hubicka <jh@suse.cz>
2040 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2041 walk backwards from entry_bb to check only those basic block of header
2042 that might lead to execution of split part.
2043 (consider_split) ... here.
2044 (find_return_bb): Allow assignment in return BB.
2046 (split_function): Fix name of cloned function; take care of updating
2047 return value in return_bb containing move.
2049 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
2052 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2055 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2057 * implicit-zee.c (combine_reaching_defs): Fix long lines.
2058 (is_set_with_extension_DI): Delete.
2059 (struct zero_extend_info): New structure.
2060 (add_removable_zero_extend): New function.
2061 (find_removable_zero_extends): Use note_stores to find SETs.
2062 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2064 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2066 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2067 is_miss_rate_acceptable. Pull total_positions computation
2068 out of the loops. Early return if miss_positions exceeds
2069 the acceptable threshold.
2070 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2071 is_miss_rate_acceptable after renaming of compute_miss_rate.
2073 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2076 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2077 of 1000) for miss rate if the address diference is greater than or
2078 equal to the cache line size (the two reference will never hit the
2081 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
2084 * config/arm/arm-modes.def (CC_NOTB): New mode.
2085 * config/arm/arm.c (get_arm_condition_code): Handle it.
2086 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2087 * config/arm/arm.md (subsi3_compare0_c): New pattern.
2088 (compare_scc): Now a define_and_split. Add a number of extra
2089 splitters before it.
2092 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2094 (arm_rtx_costs_1): Likewise.
2095 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2096 * config/arm/arm.md (is_arch6): New attribute.
2097 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2098 extendqisi2): Tighten the code somewhat, avoiding invalid
2099 RTL to occur in the expander patterns.
2100 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2101 (thumb1_zero_extendhisi2_v6): Delete.
2102 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2103 (thumb1_extendhisi2_v6): Delete.
2104 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2105 (thumb1_extendqisi2_v6): Delete.
2106 (zero_extendhisi2 for register input splitter): New.
2107 (zero_extendqisi2 for register input splitter): New.
2108 (thumb1_extendhisi2 for register input splitter): New.
2109 (extendhisi2 for register input splitter): New.
2110 (extendqisi2 for register input splitter): New.
2111 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2112 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2113 and add support for a register alternative requiring a split.
2114 (thumb1_zero_extendqisi2): Likewise.
2115 (arm_zero_extendqisi2): Likewise.
2116 (arm_extendhisi2): Likewise.
2117 (arm_extendqisi2): Likewise.
2119 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2121 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2122 instead of an unspec.
2123 (neon_expand_vector_init): Likewise.
2124 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2125 (UNSPEC_VDUP_LANE): Delete.
2126 (UNSPEC VDUP_N): Delete.
2127 (UNSPEC_VGET_HIGH): Delete.
2128 (UNSPEC_VGET_LANE): Delete.
2129 (UNSPEC_VGET_LOW): Delete.
2130 (UNSPEC_VMVN): Delete.
2131 (UNSPEC_VSET_LANE): Delete.
2132 (V_double_vector_mode): New.
2133 (vec_set<mode>_internal): Make code emitted match that for the
2134 corresponding intrinsics.
2135 (vec_setv2di_internal): Likewise.
2136 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2137 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2138 (neon_vset_lane<mode>): Combine double and quad patterns and
2139 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2140 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2141 (neon_vdup_n<mode>): Rewrite RTL without unspec.
2142 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2143 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2144 with neon_vdup_lanev2di, adjusting the pattern from the latter
2145 to be predicable for consistency.
2146 (neon_vdup_lane<mode>_internal): New.
2147 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2148 to avoid using an unspec.
2149 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2150 (neon_vdup_lanev2di): Turn into a define_expand.
2151 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2152 (neon_vget_high<mode>): Replace with....
2153 (neon_vget_highv16qi): New pattern using canonical RTL.
2154 (neon_vget_highv8hi): Likewise.
2155 (neon_vget_highv4si): Likewise.
2156 (neon_vget_highv4sf): Likewise.
2157 (neon_vget_highv2di): Likewise.
2158 (neon_vget_low<mode>): Replace with....
2159 (neon_vget_lowv16qi): New pattern using canonical RTL.
2160 (neon_vget_lowv8hi): Likewise.
2161 (neon_vget_lowv4si): Likewise.
2162 (neon_vget_lowv4sf): Likewise.
2163 (neon_vget_lowv2di): Likewise.
2165 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2166 test for this emitting vmov.
2167 (Vset_lane): Likewise.
2171 * doc/arm-neon-intrinsics.texi: Regenerated.
2173 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2175 * config/arm/neon.md (vec_extractv2di): Correct error in register
2176 numbering to reconcile with neon_vget_lanev2di.
2178 2010-07-02 Richard Guenther <rguenther@suse.de>
2180 * tree-ssa-structalias.c (pt_solution_set_var): New function.
2181 * tree-ssa-alias.h (pt_solution_set_var): Declare.
2182 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2183 points-to information.
2185 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
2187 * config/s390/s390.c (override_options): Adopt prefetching
2188 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2190 2010-07-02 Jan Hubicka <jh@suse.cz>
2192 * df-problems.c (df_kill_notes): Do not collect dead notes.
2193 (df_set_note): Just call add_reg_note.
2194 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2195 df_create_unused_note): Do not deal with lists of old notes.
2196 (df_note_bb_compute): Likewise.
2198 2010-07-02 Richard Guenther <rguenther@suse.de>
2200 * tree-ssa-structalias.c (find_func_aliases): Handle
2201 pointer alignment via BIT_AND_EXPR.
2202 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2204 2010-07-02 Richard Guenther <rguenther@suse.de>
2206 * tree-data-ref.c (initialize_data_dependence_relation): Handle
2207 mismatching number of dimensions properly.
2209 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2212 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2213 (lo_sum (high ...) ...) patterns generated by earlier passes.
2215 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2217 * doc/install.texi (Prerequisites): Document Perl requirement on
2219 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
2221 2010-07-02 Richard Guenther <rguenther@suse.de>
2224 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2226 2010-07-02 Jan Hubicka <jh@suse.cz>
2229 * predict.c (predict_paths_for_bb): Handle case when control dependence
2230 BB has only abnormal edges.
2232 2010-07-02 Richard Guenther <rguenther@suse.de>
2234 PR tree-optimization/44748
2235 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
2236 the embedded conversion in MEM_REFs.
2238 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
2240 * reload.c: Include toplev.h.
2241 * recog.c: Likewise.
2242 * Makefile.in: Adjust dependencies.
2244 2010-07-01 Jakub Jelinek <jakub@redhat.com>
2247 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
2248 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
2250 2010-07-01 Richard Guenther <rguenther@suse.de>
2252 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
2255 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
2258 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
2261 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
2264 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2265 Make sure operand 0 dies.
2267 2010-07-01 Richard Guenther <rguenther@suse.de>
2271 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
2272 * doc/generic.texi (References to storage): Document MEM_REF.
2273 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
2274 (print_call_name): Likewise.
2275 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
2276 (build_simple_mem_ref_loc): New function.
2277 (mem_ref_offset): Likewise.
2278 * tree.h (build_simple_mem_ref_loc): Declare.
2279 (build_simple_mem_ref): Define.
2280 (mem_ref_offset): Declare.
2281 * fold-const.c: Include tree-flow.h.
2282 (operand_equal_p): Handle MEM_REF.
2283 (build_fold_addr_expr_with_type_loc): Likewise.
2284 (fold_comparison): Likewise.
2285 (fold_unary_loc): Fold
2286 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2287 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2288 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2289 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2290 (ptr_deref_may_alias_ref_p_1): Likewise.
2291 (ao_ref_base_alias_set): Properly differentiate base object for
2293 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2294 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2295 (indirect_refs_may_alias_p): Likewise.
2296 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
2298 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2299 (call_may_clobber_ref_p_1): Likewise.
2300 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2301 * expr.c (expand_assignment): Handle MEM_REF.
2302 (store_expr): Handle MEM_REFs from STRING_CSTs.
2303 (store_field): If expanding a MEM_REF of a non-addressable
2304 decl use bitfield operations.
2305 (get_inner_reference): Handle MEM_REF.
2306 (expand_expr_addr_expr_1): Likewise.
2307 (expand_expr_real_1): Likewise.
2308 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2309 * alias.c (ao_ref_from_mem): Handle MEM_REF.
2310 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
2311 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2312 (dr_analyze_indices): Likewise.
2313 (dr_analyze_alias): Likewise.
2314 (object_address_invariant_in_loop_p): Likewise.
2315 * gimplify.c (mark_addressable): Handle MEM_REF.
2316 (gimplify_cond_expr): Build MEM_REFs.
2317 (gimplify_modify_expr_to_memcpy): Likewise.
2318 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2319 (gimple_fold_indirect_ref): Adjust.
2320 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
2321 * tree.def (MEM_REF): New tree code.
2322 * tree-dfa.c: Include toplev.h.
2323 (get_ref_base_and_extent): Handle MEM_REF.
2324 (get_addr_base_and_unit_offset): New function.
2325 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2326 * gimple-fold.c (may_propagate_address_into_dereference): Handle
2328 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2329 accesses if the array has just one dimension. Remove always true
2330 parameter. Do not require type compatibility here.
2331 (maybe_fold_offset_to_component_ref): Remove.
2332 (maybe_fold_stmt_indirect): Remove.
2333 (maybe_fold_reference): Remove INDIRECT_REF handling.
2334 Fold back to non-MEM_REF.
2335 (maybe_fold_offset_to_address): Simplify. Deal with type
2337 (maybe_fold_reference): Likewise.
2338 (maybe_fold_stmt_addition): Likewise. Also handle
2339 &ARRAY + I in addition to &ARRAY[0] + I.
2340 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2341 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2342 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2343 * tree-ssa.c (useless_type_conversion_p): Make most pointer
2344 conversions useless.
2345 (warn_uninitialized_var): Handle MEM_REF.
2346 (maybe_rewrite_mem_ref_base): New function.
2347 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2349 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2350 INDIRECT_REF handling.
2351 (copy_tree_body_r): Handle MEM_REF.
2352 * gimple.c (is_gimple_addressable): Adjust.
2353 (is_gimple_address): Likewise.
2354 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
2355 invariant base are invariant.
2356 (is_gimple_min_lval): Adjust.
2357 (is_gimple_mem_ref_addr): New function.
2358 (get_base_address): Handle MEM_REF.
2359 (count_ptr_derefs): Likewise.
2360 (get_base_loadstore): Likewise.
2361 * gimple.h (is_gimple_mem_ref_addr): Declare.
2362 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
2363 * tree-cfg.c (verify_address): New function, split out from ...
2364 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
2365 the address operand of MEM_REFs. Verify MEM_REFs. Reject
2367 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
2368 INDIRECT_REF. Allow conversions.
2369 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
2370 a register does not change its size.
2371 (verify_types_in_gimple_reference): Verify MEM_REF.
2372 (verify_gimple_assign_single): Disallow INDIRECT_REF.
2374 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
2376 (mark_address_taken): Handle MEM_REF.
2377 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
2378 (get_asm_expr_operands): Pass opf_not_non_addressable.
2379 (get_expr_operands): Handle opf_[not_]non_addressable.
2380 Handle MEM_REF. Remove INDIRECT_REF handling.
2381 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
2382 (search_for_addr_array): Likewise.
2383 (check_array_bounds): Likewise.
2384 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
2385 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
2386 (ref_always_accessed_p): Likewise.
2387 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
2388 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
2390 * cgraphbuild.c (mark_load): Properly check for NULL result
2391 from get_base_address.
2392 (mark_store): Likewise.
2393 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
2394 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
2395 handling for MEM_REF.
2396 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
2397 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
2398 * builtins.c (stabilize_va_list_loc): Use the function ABI
2399 valist type if we couldn't canonicalize the argument type.
2400 Always dereference with the canonical va-list type.
2401 (maybe_emit_free_warning): Handle MEM_REF.
2402 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
2404 * builtins.c (fold_builtin_memory_op): Use ref-all types
2405 for all memcpy foldings.
2406 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
2407 (build_outer_var_ref): Likewise.
2408 (scan_omp_1_op): Likewise.
2409 (lower_rec_input_clauses): Likewise.
2410 (lower_lastprivate_clauses): Likewise.
2411 (lower_reduction_clauses): Likewise.
2412 (lower_copyprivate_clauses): Likewise.
2413 (expand_omp_atomic_pipeline): Likewise.
2414 (expand_omp_atomic_mutex): Likewise.
2415 (create_task_copyfn): Likewise.
2416 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
2417 Remove old union trick. Initialize constant offsets.
2418 (ao_ref_init_from_vn_reference): Likewise. Do not handle
2419 INDIRECT_REF. Init base_alias_set properly.
2420 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
2421 (vn_reference_fold_indirect): Adjust for MEM_REFs.
2422 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
2424 (may_insert): Remove.
2425 (visit_reference_op_load): Do not test may_insert.
2426 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
2427 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
2428 a field to store the constant offset this op applies.
2429 (run_scc_vn): Adjust prototype.
2430 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
2431 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
2432 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
2433 bother about volatile qualifiers on pointers.
2434 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
2435 * tree-ssa-loop-ivopts.c
2436 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
2437 (strip_offset_1): Likewise.
2438 (find_interesting_uses_address): Replace INDIRECT_REF handling with
2440 (get_computation_cost_at): Likewise.
2441 * ipa-pure-const.c (check_op): Handle MEM_REF.
2442 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
2443 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
2445 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
2446 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
2447 (eliminate_local_variables_1): Likewise.
2448 (create_call_for_reduction_1): Likewise.
2449 (create_loads_for_reductions): Likewise.
2450 (create_loads_and_stores_for_name): Likewise.
2451 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
2452 (ssa_accessed_in_tree): Handle MEM_REF.
2453 (ssa_accessed_in_assign_rhs): Likewise.
2454 (update_type_size): Likewise.
2455 (analyze_accesses_for_call_stmt): Likewise.
2456 (analyze_accesses_for_assign_stmt): Likewise.
2457 (transform_access_sites): Likewise.
2458 (transform_allocation_sites): Likewise.
2459 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
2460 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2461 not handle INDIRECT_REF.
2462 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
2463 (cond_store_replacement): Likewise.
2464 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
2465 MEM_REF, no not handle INDIRECT_REFs.
2466 (insert_into_preds_of_block): Properly initialize avail.
2467 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
2468 for ARRAY_REFs. Properly handle reference lookups that
2469 require a bit re-interpretation.
2470 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
2471 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
2472 (build_ref_for_offset_1): Remove.
2473 (build_ref_for_offset): Build MEM_REFs.
2474 (gate_intra_sra): Disable for now.
2475 (sra_ipa_modify_expr): Handle MEM_REF.
2476 (ipa_early_sra_gate): Disable for now.
2477 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
2479 (disqualify_base_of_expr): Likewise.
2480 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
2482 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
2483 Use mem_ref_offset. Remove bogus folding.
2484 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
2485 (make_fancy_name_1): Add support for MEM_REF.
2486 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
2487 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
2488 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
2489 (compute_complex_ancestor_jump_func): Likewise.
2490 (ipa_analyze_virtual_call_uses): Likewise.
2491 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
2492 INDIRECT_REF folding with more generalized MEM_REF folding.
2493 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
2494 (forward_propagate_addr_into_variable_array_index): Also handle
2495 &ARRAY + I in addition to &ARRAY[0] + I.
2496 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
2497 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
2498 creates assignments with overlap.
2499 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
2500 (get_frame_field): Likewise.
2501 (get_nonlocal_debug_decl): Likewise.
2502 (convert_nonlocal_reference_op): Likewise.
2503 (struct nesting_info): Add mem_refs pointer-set.
2504 (create_nesting_tree): Allocate it.
2505 (convert_local_reference_op): Insert to be folded mem-refs.
2506 (fold_mem_refs): New function.
2507 (finalize_nesting_tree_1): Perform defered folding of mem-refs
2508 (free_nesting_tree): Free the pointer-set.
2509 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
2510 (vectorizable_load): Likewise.
2511 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
2512 (propagate_with_phi): Likewise.
2513 * tree-object-size.c (addr_object_size): Handle MEM_REFs
2514 instead of INDIRECT_REFs.
2515 (compute_object_offset): Handle MEM_REF.
2516 (plus_stmt_object_size): Handle MEM_REF.
2517 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
2519 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
2520 (symbol_marked_for_renaming): Likewise.
2521 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
2522 (fold-const.o): Add $(TREE_FLOW_H).
2523 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
2524 (find_func_clobbers): Likewise.
2525 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
2526 (decompose_access): Likewise.
2527 (replace_field_acc): Likewise.
2528 (replace_field_access_stmt): Likewise.
2529 (insert_new_var_in_stmt): Likewise.
2530 (get_stmt_accesses): Likewise.
2531 (reorg_structs_drive): Disable.
2532 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
2533 (ix86_canonical_va_list_type): Likewise.
2535 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2538 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
2539 * target.def (struct gcc_target): Replace enum reg_class with
2540 reg_class_t in hook argument / return types.
2541 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
2542 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
2543 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2544 * targhooks.h (default_branch_target_register_class): Likewise.
2545 (default_ira_cover_classes, default_secondary_reload): Likewise.
2546 (default_memory_move_cost, default_register_move_cost): Likewise.
2547 * targhooks.c (default_branch_target_register_class): Likewise.
2548 (default_ira_cover_classes, default_secondary_reload): Likewise.
2549 (default_memory_move_cost, default_register_move_cost): Likewise.
2550 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
2551 * bt-load.c (branch_target_load_optimize): Likewise.
2552 * ira.c (setup_cover_and_important_classes): Likewise.
2553 * ira-costs.c (copy_cost): Likewise.
2554 * reload1.c (emit_input_reload_insns): Likewise.
2555 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2556 * config/frv/frv.c (frv_secondary_reload): Likewise.
2557 * config/s390/s390.c (s390_secondary_reload): Likewise.
2558 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
2559 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
2560 (ix86_register_move_cost): Likewise.
2561 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
2562 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
2563 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
2564 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
2565 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
2566 (rs6000_ira_cover_classes): Likewise.
2567 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
2568 * config/picochip/picochip-protos.h (picochip_secondary_reload):
2570 * config/pa/pa.c (pa_secondary_reload): Likewise.
2571 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
2572 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
2573 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
2574 * doc/tm.texi: Regenerate.
2576 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
2579 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
2581 (build_alias_set_optimal_p): Likewise.
2582 (build_base_obj_set_for_drs): Likewise.
2584 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2586 * target.def: Remove comment about licensing problems of function
2589 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
2590 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2591 * doc/tm.texi: Regenerate.
2593 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
2594 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2596 * target.def (enum_va_list_p): Use DEFHOOK.
2597 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2598 Rename ptype to ptree.
2599 * doc/tm.texi: Regenerate.
2601 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
2602 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2603 * doc/tm.texi: Regenerate.
2605 * target.def (memory_move_cost): Use DEFHOOK.
2606 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2607 Rename regclass AKA class to rclass.
2608 * doc/tm.texi: Regenerate.
2610 * target.def (pragma_parse): Use DEFHOOK.
2611 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2612 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2613 * doc/tm.texi: Regenerate.
2615 * target.def (pass_by_reference): Use DEFHOOK.
2616 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2617 * doc/tm.texi: Regenerate.
2619 * target.def (resolve_overloaded_builtin): Rename params to arglist.
2621 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2622 * doc/tm.texi: Regenerate.
2624 * target.def (return_pops_args): Use DEFHOOK.
2625 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
2626 Rename stack-size to size.
2627 * doc/tm.texi: Regenerate.
2629 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
2630 last-sched_cycle to last_clock, cur_cycle to clock.
2631 * doc/tm.texi.in: Use @hook.
2632 * doc/tm.texi: Regenerate.
2634 * target.def (print_operand, print_operand_address): Update comment.
2635 (print_operand_punct_valid_p): Likewise.
2637 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2639 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
2641 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
2642 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
2644 * regrename.c: Do not include toplev.h. Include rtl-error.h.
2645 * rtl-error.c: Likewise.
2646 * reload.c: Likewise.
2647 * recog.c: Likewise.
2648 * sel-sched.c: Likewise.
2649 * function.c: Likewise.
2650 * reg-stack.c: Likewise.
2651 * cfgrtl.c: Likewise.
2652 * reload1.c: Likewise.
2653 * final.c: Include rtl-error.
2654 * Makefile.in: Adjust dependencies.
2656 2010-06-30 Jan Hubicka <jh@suse.cz>
2658 PR middle-end/PR44706
2659 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
2660 to return the value.
2662 2010-06-30 Michael Matz <matz@suse.de>
2665 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
2666 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
2667 a gimple reg, attach the original VDEF to the last store in the
2670 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
2673 * config/darwin.c (darwin_override_options): Use renamed
2674 targetm.asm_out.emit_unwind_label.
2676 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2678 PR tree-optimization/39799
2679 * tree-inline.c (remap_ssa_name): Initialize variable only if
2680 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2682 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
2684 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2686 2010-06-30 Richard Guenther <rguenther@suse.de>
2689 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2690 against oscillation with reverse peephole2.
2692 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
2695 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2698 2010-06-30 Nick Clifton <nickc@redhat.com>
2700 * config/rx/rx-modes.def: New file.
2701 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2702 (CC_REGNUM): Define.
2703 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2705 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2706 (SELECT_CC_MODE): Define.
2707 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
2708 (reg:CC CC_REG) instead of (cc0).
2709 (attr "cc"): Delete.
2710 (cbranchsi4): Do not split compare and branch here. Instead move
2712 (cbranchsi4_<code>): ... here. New patterns.
2713 (cmpsi): Call rx-compare_redundant to find out if it is necessary
2714 to emit the compare instruction.
2715 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2717 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2718 FIRST_PSEUDO_REGNUM.
2719 (rx_expand_prologue, rx_expand_epilogue): Likewise.
2720 (rx_notice_update_cc): Delete.
2721 (rx_cc_modes_compatible): New function.
2722 (flags_needed_for_conditional): New function.
2723 (flags_from_mode): New function.
2724 (rx_compare_redundant): New function - scans backwards through
2725 insn list to find out if condition flags are already set correctly.
2726 (TARGET_CC_MODES_COMPATIBLE): Define.
2727 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2729 * config/rx/rx.h (BRANCH_COST): Define.
2730 (REGISTER_MOVE_COST): Define.
2731 * config/rx/predicates (rx_source_operand): Allow all constant types.
2732 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2733 (tstsi4): New pattern.
2734 * config/rx/rx.c (rx_memory_move_cost): Define.
2735 (TARGET_MEMORY_MOVE_COST): Define.
2737 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2739 * tree.h (block_may_fallthru): Declare here.
2740 * tree-flow.h (block_may_fallthru): Do not declare here.
2741 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2743 * Makefile.in (c-typeck.o): Update dependencies.
2745 2010-06-30 Jakub Jelinek <jakub@redhat.com>
2748 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2749 * cselib.c (cfa_base_preserved_regno): New static variable.
2750 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2751 of REGNO (cfa_base_preserved_val->locs->loc).
2752 (cselib_preserve_cfa_base_value): Add regno argument, set
2753 cfa_base_preserved_regno to it.
2754 (cselib_invalidate_regno): Allow removal of registers other than
2755 cfa_base_preserved_regno from cfa_base_preserved_val.
2756 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2757 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2758 of MEM addresses, if not on LHS.
2759 (reverse_op): Don't add reverse ops for cfa_base_rtx.
2760 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2762 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2764 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2766 (peep2_buf_position): New static function.
2767 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2768 peephole2_optimize): Use it.
2769 (peep2_attempt, peep2_update_life): New static functions, broken out
2770 of peephole2_optimize.
2771 (peep2_fill_buffer): New static function.
2772 (peephole2_optimize): Change the main loop to try to fill the buffer
2773 with the maximum number of insns before matching them against
2774 peepholes. Use a forward scan. Remove special case for targets with
2775 conditional execution.
2776 * genrecog.c (change_state): Delete dead code.
2777 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2778 Rewrite so as not to expect the second insn to have had a peephole
2781 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2783 * genhooks.c (emit_findices): Cast field precision to int.
2784 (emit_documentation): Likewise.
2786 2010-06-29 Jakub Jelinek <jakub@redhat.com>
2788 PR tree-optimization/43801
2789 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2790 if old_decl was DECL_ONE_ONLY.
2793 * dwarf2out.c (add_accessibility_attribute): New function.
2794 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2795 instead of adding DW_AT_accessibility manually.
2796 (gen_enumeration_type_die, gen_struct_or_union_type_die,
2797 gen_typedef_die): Use it.
2799 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2801 * vmsdbgout.c (full_name): Just output the file name if not native.
2803 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2805 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2806 (funcnam_table): New static table.
2807 (funcnum_table): New static table.
2808 (write_rtnbeg): Write value saved in funcnum_table.
2809 (write_rtnend): Write value saved in funcnum_table.
2810 (vmsdbgout_begin_function): Save current function info in
2811 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2812 (vmsdbgout_finish): Iterate over funcnum_table.
2814 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2816 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2817 (vmsdbgout_type_decl): Declare
2818 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2819 (FUNC_EPILOGUE_LABEL): New macro
2820 (vmsdbgout_begin_epilogue): New function.
2821 (vmsdbgout_type_decl): New function.
2823 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2825 * vmsdbg.h: Update copyright.
2827 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2829 * vmsdbg.h (DST_K_TBG): New DST constant.
2830 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2831 (write_modbeg): Cast module_language to avoid warning.
2832 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2834 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2837 * target.def, doc/tm.texi.in, genhooks.c: New files.
2838 * target.h: Instead of defining individual hook members,
2839 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2841 * target-def.h: Instead of defining individual hook initializers,
2842 include target-hooks-def.h.
2843 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2844 targetm.live_on_entry -> targetm.extra_live_on_entry
2845 targetm.sched.md_finish ->targetm.sched.finish
2846 targetm.sched.md_init -> targetm.sched.init
2847 targetm.sched.md_init_global -> targetm.sched.init_global
2848 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2849 targetm.asm_out.except_table_label ->
2850 targetm.asm_out.emit_except_table_label
2851 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2852 targetm.target_help -> targetm.help
2853 targetm.vectorize.builtin_support_vector_misalignment ->
2854 targetm.vectorize.support_vector_misalignment
2855 targetm.file_start_app_off -> targetm.asm_file_start_app_off
2856 targetm.file_start_file_directive ->
2857 targetm.asm_file_start_file_directive
2858 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2859 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2860 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2861 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2862 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2863 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2864 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2865 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2866 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2867 * Makefile.in (TARGET_H): Depend on target.def.
2868 (TARGET_DEF_H): Depend on target-hooks-def.h.
2869 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2870 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2871 * doc/tm.texi: Regenerate.
2873 * Makefile.in (s-tm-texi): Remove stray tab / rule.
2875 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2876 (targetm.sched.init): Likewise.
2878 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2881 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2882 (function_arg_advance_32): Const-ify TYPE parameter.
2883 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
2884 (ix86_function_arg_advance): Change type of NAMED to bool.
2885 (function_arg_32): Const-ify CUM and TYPE parameters.
2886 (function_arg_64): Likewise. Change type of NAMED to bool.
2887 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2889 (ix86_function_arg): Change type of NAMED to bool.
2890 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
2891 last argument as a bool.
2893 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2895 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2896 (OVERRIDE_OPTIONS): Add note of obsolescence.
2897 Replace references with references to TARGET_OPTION_OVERRIDE.
2898 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2900 * targhooks.c (default_target_option_override): New function.
2901 * targhooks.h (default_target_option_override): Declare.
2902 * target.h (struct gcc_target): Add override member to
2903 target_option member.
2904 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2905 targetm.target_option.override call.
2906 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2907 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2909 2010-06-29 Jan Hubicka <jh@suse.cz>
2911 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2913 2010-06-29 Jan Hubicka <jh@suse.cz>
2915 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2917 (rebuild_frequencies): New function.
2918 * predict.h (rebuild_frequencies): Declare.
2919 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2920 entry block and edge reaching new_entry.
2921 (tree_function_versioning): When doing partial cloning, rebuild
2922 frequencies when done.
2923 * passes.c (execute_function_todo): Use rebild_frequencies.
2925 2010-06-29 Richard Guenther <rguenther@suse.de>
2927 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2928 * tree-flow.h (enum noalias_state): Remove.
2929 (struct var_ann_d): Remove noalias_state member.
2931 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2934 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2935 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
2936 (maddhidi4): Likewise.
2938 Revert parts of the change for PR25130.
2939 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2942 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2944 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2945 targetm.calls.function_incoming_arg, and
2946 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2947 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2948 * target.h (struct gcc_target): Add function_arg_advance,
2949 function_arg, and function_incoming_arg fields.
2950 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2951 (TARGET_FUNCTION_INCOMING_ARG): Define.
2952 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2953 and TARGET_FUNCTION_INCOMING_ARG.
2954 * targhooks.h (default_function_arg_advance): Declare.
2955 (default_function_arg, default_function_incoming_arg): Declare.
2956 * targhooks.c (default_function_arg_advance): New function.
2957 (default_function_arg, default_function_incoming_arg): New function.
2958 * config/i386/i386.c (function_arg_advance): Rename to...
2959 (ix86_function_arg_advance): ...this. Make static.
2960 (function_arg): Rename to...
2961 (ix86_function_arg): ...this. Make static.
2962 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2963 (TARGET_FUNCTION_ARG): Define.
2964 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2965 (FUNCTION_ARG): Delete.
2966 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2967 (function_arg): Delete prototype.
2969 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2971 * reginfo.c (init_reg_sets_1): Adjust comments.
2972 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2973 * calls.c (prepare_call_address): Likewise.
2974 (emit_call_1): Use targetm.calls.return_pops_args.
2975 (expand_call): Likewise.
2976 * function.c (assign_parms): Likewise.
2977 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2978 * target.h (struct gcc_target) [struct calls]: Add
2979 return_pops_args field.
2980 * targhooks.h (default_return_pops_args): Declare.
2981 * targhooks.c (default_return_pops_args): Define.
2982 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2983 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2984 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2985 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
2987 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2988 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2989 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2990 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2991 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2992 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2993 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2994 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2995 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2996 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2997 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2998 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2999 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3000 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3001 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3002 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3003 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3004 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3005 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3006 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3007 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3008 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3009 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3010 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3011 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3012 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3013 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3014 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3015 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3016 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3017 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3018 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3019 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3020 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3021 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3022 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3023 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3024 * config/i386/i386.c (ix86_return_pops_args): Make static.
3026 (TARGET_RETURN_POPS_ARGS): Define.
3027 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3028 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
3029 (TARGET_RETURN_POPS_ARGS): Define.
3030 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3031 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
3032 (TARGET_RETURN_POPS_ARGS): Define.
3034 2010-06-29 Richard Guenther <rguenther@suse.de>
3037 * tree-inline.c (initialize_inlined_parameters): Make sure
3038 to remap the inlined parameter variable substitutions types.
3040 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
3042 PR rtl-optimization/44659
3043 * combine.c (make_compound_operation) <SUBREG>: Do not return the
3044 result of force_to_mode if it partially re-expanded the compound.
3046 2010-06-28 Jan Hubicka <jh@suse.cz>
3049 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3052 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3054 * double-int.h (force_fit_type_double): Remove declaration.
3055 * double-int.c (force_fit_type_double): Move to tree.c.
3056 * tree.h (force_fit_type_double): Declare.
3057 * tree.h (force_fit_type_double): Moved from double-int.c. Use
3058 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3059 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3060 * convert.c (convert_to_pointer): Adjust call to
3061 force_fit_type_double.
3062 * tree-vrp.c (extract_range_from_assert,
3063 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3064 * fold-const.c: Update comment.
3065 (int_const_binop, fold_convert_const_int_from_int,
3066 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3067 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3068 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3069 round_up_loc): Adjust call to force_fit_type_double.
3071 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3073 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3075 2010-06-28 Martin Jambor <mjambor@suse.cz>
3077 * tree-sra.c (convert_callers): New parameter, change fndecls of
3079 (modify_function): Pass the old decl to convert_callers.
3081 2010-06-28 Martin Jambor <mjambor@suse.cz>
3083 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3084 ipa_check_create_node_params and ipa_initialize_node_params with
3085 checking asserts they are not necessary.
3087 2010-06-28 Jan Hubicka <jh@suse.cz>
3089 PR tree-optimization/44687
3090 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3092 2010-06-28 Martin Jambor <mjambor@suse.cz>
3095 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3096 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3097 instead of BINFO_BASE_BINFO.
3099 2010-06-28 Michael Matz <matz@suse.de>
3102 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3103 proper VDEF chain for intermediate stores in the sequence.
3105 2010-06-28 Jan Hubicka <jh@suse.cz>
3107 PR tree-optimization/44357
3108 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3109 uninlinable functions.
3111 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3113 * config.gcc (powerpc*-*-*): Handle titan.
3114 * config/rs6000/rs6000.c (titan_cost): New costs.
3115 (rs6000_override_options): Add "titan" to processor_target_table.
3116 Add Titan to branch alignment logic.
3117 Correctly set rs6000_cost for titan.
3118 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
3119 * config/rs6000/titan.md: New file.
3120 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3122 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3124 * tree-browser.c (TB_history_stack): Convert to a VEC.
3125 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3126 (TB_history_prev): Likewise.
3128 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3130 * vec.h (vec_heap_free): Add parentheses around free.
3132 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3134 * system.h: Poison GCC_EXCEPT_H for front-end files.
3136 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3138 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3139 Define to NULL by default.
3140 * except.h: Define GCC_EXCEPT_H.
3141 (doing_eh): Remove prototype.
3142 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3143 (lang_protect_cleanup_actions): Remove.
3144 * except.c (lang_protect_cleanup_actions): Remove.
3146 (gen_eh_region): Don't check doing_eh here.
3147 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3148 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3149 instead of lang_protect_cleanup_actions.
3150 * omp-low.c (maybe_catch_exception): Likewise.
3151 * Makefile.in: Update dependencies.
3153 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
3155 * cgraph.h (struct varpool_node): new used_from_object_file flag.
3156 (struct cgraph_local_info): new used_from_object_file flag.
3157 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3158 (cgraph_clone_node): initialize used_from_object_file.
3159 (cgraph_create_virtual_clone): initialize used_from_object_file.
3160 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3161 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3162 when compiling with -fwhole-program.
3163 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3165 * ipa.c (function_and_variable_visibility): Set externally_visible
3166 flag of varpool_node if used_from_object_file flag is set.
3167 (cgraph_externally_visible_p): check used_from_object_file flag.
3168 * doc/invoke.texi (-fwhole-program option): Change description of
3169 externally_visible attribute accordingly.
3170 * doc/extend.texi (externally_visible): Ditto.
3172 2010-06-27 Jan Hubicka <jh@suse.cz>
3174 * params.def (max-inline-insns-auto): Default to 40.
3175 * doc/invoke.texi (max-inline-insns-auto): Document the change.
3177 2010-06-27 Jan Hubicka <jh@suse.cz>
3181 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3183 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3184 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3186 2010-06-27 Anatoly Sokolov <aesok@post.ru>
3188 * target.h (struct gcc_target): Add register_move_cost field.
3189 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3190 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3191 * targhooks.c (default_register_move_cost): New function.
3192 * targhooks.h (default_register_move_cost): Declare function.
3193 * defaults.h (REGISTER_MOVE_COST): Delete.
3194 * ira-int.h (ira_register_move_cost): Update comment.
3195 * ira.c: (ira_register_move_cost): Update comment.
3196 * reload.h (register_move_cost): Declare.
3197 * reginfo.c (register_move_cost): New function.
3198 (move_cost): Update comment.
3199 (init_move_cost, memory_move_secondary_cost): Replace
3200 REGISTER_MOVE_COST with register_move_cost.
3201 * postreload.c (reload_cse_simplify_set): (Ditto.).
3202 * reload.c (find_valid_class, find_reloads): (Ditto.).
3203 * reload1.c (choose_reload_regs): (Ditto.).
3204 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3205 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3206 * doc/md.texi (can_create_pseudo_p): Update documentation.
3208 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3209 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3210 * config/i386/i386.h (ix86_memory_move_cost): Make static.
3211 (TARGET_MEMORY_MOVE_COST): Define.
3213 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3214 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3215 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
3216 (TARGET_MEMORY_MOVE_COST): Define.
3218 2010-06-27 Richard Guenther <rguenther@suse.de>
3220 PR tree-optimization/44683
3221 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
3222 false edge from the inverted condition.
3224 2010-06-27 Richard Guenther <rguenther@suse.de>
3227 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
3228 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
3229 for register LHS. Or non-store assignments.
3231 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
3233 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
3234 (sparc_emit_set_const64): Likewise. Remove disabled code.
3235 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
3236 (sparc_emit_set_const64): Likewise.
3238 2010-06-26 Catherine Moore <clm@codesourcery.com>
3240 * config/mips/mips.md (alu_type): New attribute.
3241 (type): Infer type from alu_type.
3242 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
3243 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
3244 *subsi3_extended, negsi2, negdi2, *low<mode>,
3245 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
3246 xor<mode>3, *nor<mode>3,
3247 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
3248 *zero_extendhi_truncqi): Set alu_type instead of type.
3250 2010-06-26 Douglas B Rupp <rupp@gnat.com>
3252 * config/alpha/alpha.c (alpha_need_linkage): Adjust
3253 splay_tree_new_ggc call.
3254 (alpha_use_linkage): Likewise.
3256 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3258 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
3259 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
3260 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
3261 (static_specs): Remove switches_need_spaces.
3262 (process_command, do_self_spec): Hardcode handling "-o" instead of
3263 checking switches_need_spaces.
3264 * system.h (SWITCHES_NEED_SPACES): Poison.
3266 2010-06-26 Richard Guenther <rguenther@suse.de>
3268 PR tree-optimization/44393
3269 * tree-loop-distribution.c (generate_loops_for_partition): Fix
3270 stmt removal and VOP renaming.
3271 (generate_memset_zero): Remove redundant stmt updating.
3272 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
3273 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
3275 2010-06-26 Jan Hubicka <jh@suse.cz>
3277 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
3278 edges comming from header are equivalent.
3279 (visit_bb): Handle PHIs correctly.
3280 * tree-inline.c (copy_phis_for_bb): Be able to copy
3281 PHI from entry edge.
3282 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3284 2010-06-26 Richard Guenther <rguenther@suse.de>
3287 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3288 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
3290 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3292 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3293 add_infile, alloc_switch): New.
3294 (process_command): Remove variable lang_n_infiles. Process
3295 options in a single pass. Use new functions for allocating
3296 infiles and switches arrays. Properly skip operands of
3297 -Xpreprocessor and -Xassembler.
3299 2010-06-26 Jan Hubicka <jh@suse.cz>
3302 * cgraphunit.c (cgraph_function_versioning): Remove wrong
3303 cgraph_make_decl_local call; fix typo copying RTL data.
3305 2010-06-25 DJ Delorie <dj@redhat.com>
3307 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3308 (m32c_output_aligned_common): Likewise.
3309 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3310 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3311 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3312 (m32c_register_pragmas): Register it.
3313 * config/m32c/m32c.c (m32c_get_pragma_address): New.
3314 (m32c_insert_attributes): Set #pragma address decls volatile.
3315 (pragma_entry_eq): New.
3316 (pragma_entry_hash): New.
3317 (m32c_note_pragma_address): New.
3318 (m32c_get_pragma_address): New.
3319 (m32c_output_aligned_common): New.
3320 * doc/extend.texi: Document the new pragma.
3322 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3324 * config/m32c/predicates.md (m32c_any_operand): Check the code
3325 instead of memory_operand so as to allow matching volatile MEMs.
3326 (m32c_nonimmediate_operand): Likewise.
3327 (mra_operand): Allow volatiles.
3329 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
3332 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3333 address if the offset is unknown.
3335 2010-06-25 Douglas B Rupp <rupp@gnat.com>
3337 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3338 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3339 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3340 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3341 to ia64_start_function. Invoke it.
3342 * config/ia64/ia64.c (ia64_start_function): Call new function
3343 dwarf2out_vms_debug_main_pointer.
3345 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3347 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3348 statements computing the true predicate.
3350 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3352 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
3353 to boolean_true_node.
3354 (reset_bb_predicate): New.
3355 (predicate_bbs): Call reset_bb_predicate.
3357 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3359 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
3360 (tree_if_conversion): Returns true when something has been changed.
3361 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
3364 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3366 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
3367 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
3368 * tree-if-conv.c: Include dbgcnt.h.
3369 (tree_if_conversion): Use if_conversion_tree to count the number of
3370 if-convertible loops.
3372 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
3374 * common.opt (fprefetch-loop-arrays): Re-define
3375 -fprefetch-loop-arrays as a tri-state option with the initial
3377 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
3378 pass only when flag_prefetch_loop_arrays > 0.
3379 * toplev.c (process_options): Note that, with tri-states,
3380 flag_prefetch_loop_arrays>0 means prefetching is enabled.
3381 * config/i386/i386.c (override_options): Enable prefetching at -O3
3382 for a set of CPUs that sw prefetching is helpful.
3383 (software_prefetching_beneficial_p): New. Return TRUE if software
3384 prefetching is beneficial for the given CPU.
3386 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
3388 PR rtl-optimization/44326
3389 * implicit-zee.c (find_removable_zero_extends): Replace
3390 INSN_P with NONDEBUG_INSN_P.
3392 2010-06-25 Martin Jambor <mjambor@suse.cz>
3394 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
3395 (struct ipa_node_params): Removed the modification_analysis_done flag.
3396 (ipa_is_param_modified): Removed.
3397 (ipa_analyze_node): Declare.
3398 (ipa_compute_jump_functions): Remove declaration.
3399 (ipa_count_arguments): Likewise.
3400 (ipa_detect_param_modifications): Likewise.
3401 (ipa_analyze_params_uses): Likewise.
3402 * ipa-prop.c (struct param_analysis_info): New type.
3403 (visit_store_addr_for_mod_analysis): Removed.
3404 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
3405 moved down in the file.
3406 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
3407 (ipa_count_arguments): Made static.
3408 (mark_modified): New function.
3409 (is_parm_modified_before_call): New function.
3410 (compute_pass_through_member_ptrs): New parameter parms_info, call
3411 is_parm_modified_before_call instead of ipa_is_param_modified.
3412 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
3413 it to compute_pass_through_member_ptrs.
3414 (ipa_compute_jump_functions): New parameter parms_info, pass it to
3415 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
3416 on the callee if it is analyzed. Made static.
3417 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
3418 is_parm_modified_before_call instead of ipa_is_param_modified.
3419 (ipa_analyze_call_uses): New parameter parms_info, pass it to
3420 ipa_analyze_indirect_call_uses.
3421 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
3422 ipa_analyze_call_uses.
3423 (ipa_analyze_params_uses): New parameter parms_info, pass it to
3424 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
3425 (ipa_analyze_node): New function.
3426 (ipa_print_node_params): Do not dump the modified flag.
3427 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
3428 it. Do not stream the modified parameter flag.
3429 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
3430 it. Do not stream the modified parameter flag.
3431 * ipa-cp.c (ipcp_analyze_node): Removed.
3432 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
3433 with only a call to ipa_analyze_node.
3434 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
3435 node with only a call to ipa_analyze_node.
3437 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3439 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
3441 2010-06-25 Jan Hubicka <jh@suse.cz>
3443 * tree-pass.h (pass_split_functions): Declare.
3444 * opts.c (decode_options): Enable function splitting at -O2
3445 * timevar.def (TV_IPA_FNSPLIT): New macro.
3446 * ipa-split.c: New file.
3447 * common.opt (-fpartial-inlining): New flag.
3448 * Makefile.in (ipa-split.o): New object file.
3449 * passes.c (init_optimization_passes): Add ipa-split.
3450 * params.def (partial-inlining-entry-probability): New parameters.
3451 * doc/invoke.texi (-fpartial-inlining): New.
3453 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3456 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
3457 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
3458 (gimplify_expr): Likewise.
3460 2010-06-25 Martin Jambor <mjambor@suse.cz>
3462 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
3463 statements instead of bailing out on them.
3464 (ipa_analyze_indirect_call_uses): Do not require that loads from the
3465 parameter are in the same BB as the condition. Update comments.
3467 2010-06-25 Jakub Jelinek <jakub@redhat.com>
3470 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
3471 true or always false, return NULL_TREE.
3472 (tree_unswitch_single_loop): Optimize conditions even when reaching
3473 max-unswitch-level parameter. If num > 0, optimize first all conditions
3474 using entry checks, then do still reachable block discovery and consider
3475 only conditions in still reachable basic blocks in the loop.
3477 PR tree-optimization/44539
3478 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
3479 the call doesn't have LHS, but has VDEF.
3481 2010-06-25 Joseph Myers <joseph@codesourcery.com>
3483 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
3484 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
3485 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
3486 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
3487 * system.h (MODIFY_TARGET_NAME): Poison.
3489 2010-06-25 Alan Modra <amodra@gmail.com>
3491 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
3492 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
3493 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3494 CMODEL_LARGE as default.
3495 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
3496 (offsettable_ok_by_alignment): Delete.
3497 (rs6000_emit_move): Remove mcmodel=medium optimization.
3499 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
3501 With large parts from Jim Wilson:
3503 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
3504 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3505 * optabs.c (optab_for_tree_code): Likewise.
3506 (expand_widen_pattern_expr): Likewise.
3507 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
3508 out of execute_optimize_widening_mul.
3509 (convert_plusminus_to_widen): New function.
3510 (execute_optimize_widening_mul): Use the two new functions.
3511 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
3512 Remove code to generate widening multiply-accumulate. Add support
3513 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3514 * gimple-pretty-print.c (dump_ternary_rhs): New function.
3515 (dump_gimple_assign): Call it when appropriate.
3516 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
3517 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
3518 (expand_gimple_stmt_1): Likewise.
3519 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
3520 WIDEN_MULT_MINUS_EXPR.
3521 * tree-ssa-operands.c (get_expr_operands): Likewise.
3522 * tree-inline.c (estimate_operator_cost): Likewise.
3523 * gimple.c (extract_ops_from_tree_1): Renamed from
3524 extract_ops_from_tree. Add new arg for a third operand; fill it.
3525 (gimple_build_assign_stat): Support operations with three operands.
3526 (gimple_build_assign_with_ops_stat): Likewise.
3527 (gimple_assign_set_rhs_from_tree): Likewise.
3528 (gimple_assign_set_rhs_with_ops_1): Renamed from
3529 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
3530 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
3531 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
3532 WIDEN_MULT_MINUS_EXPR.
3533 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
3534 (extract_ops_from_tree_1): Adjust declaration.
3535 (gimple_assign_set_rhs_with_ops_1): Likewise.
3536 (gimple_build_assign_with_ops): Pass NULL for last operand.
3537 (gimple_build_assign_with_ops3): New macro.
3538 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
3539 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
3541 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
3542 (verify_gimple_assign): Call it.
3543 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
3544 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
3545 functions for dealing with three-operand statements.
3546 * tree.c (commutative_ternary_tree_code): New function.
3547 * tree.h (commutative_ternary_tree_code): Declare it.
3548 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
3550 (gimple_assign_nonzero_warnv_p): Likewise.
3551 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
3552 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
3553 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
3554 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
3555 (struct hashtable_expr): New member ternary in the union.
3556 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
3557 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
3558 (iterative_hash_hashable_expr): Likewise.
3559 (print_expr_hash_elt): Handle EXPR_TERNARY.
3560 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
3561 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
3562 statements. Handle GIMPLE_TERNARY_RHS.
3564 2010-06-25 Jan Hubicka <jh@suse.cz>
3566 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
3568 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
3571 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
3572 parameters are not good.
3573 (c_parser_parameter_declaration): Error unknown type name if the type
3574 name can't start declaration specifiers.
3576 2010-06-25 Joseph Myers <joseph@codesourcery.com>
3578 * gcc.c (translate_options): Don't mention +e in comment.
3579 (process_command): Don't handle +e specially.
3581 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
3583 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3585 * ira-build.c (merge_hard_reg_conflicts): New function.
3586 (create_cap_allocno, copy_info_to_removed_store_destinations,
3587 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3588 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3589 (remove_unnecessary_allocnos, remove_low_level_allocnos)
3590 copy_nifo_to_removed_store_destination): Use them.
3591 * ira-lives.c (make_hard_regno_born): New function, split out of
3593 (make_allocno_born): Likewise.
3594 (make_hard_regno_dead): New function, split out of make_regno_dead.
3595 (make_allocno_dead): Likewise.
3596 (inc_register_pressure): New function, split out of set_allocno_live.
3597 (dec_register_pressure): New function, split out of clear_allocno_live.
3598 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3599 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
3600 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3601 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
3602 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3603 mark_pseudo_regno_live.
3604 (process_bb_node_lives): Use mark_pseudo_regno_live,
3605 make_hard_regno_born and make_allocno_dead.
3606 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3607 set_allocno_live, clear_allocno_live): Delete functions.
3609 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3610 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3612 (ira_flattening): Use ira_parent_allocno.
3613 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3614 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3616 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3619 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3620 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3621 minmax_set_iter_cond, minmax_set_iter_next,
3622 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3623 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3624 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
3625 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
3628 * ira-int.h (struct live_range, live_range_t): Renamed from struct
3629 ira_allocno_live_range and allocno_live_range_t; all uses changed.
3630 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
3633 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
3635 * thumb2.md (thumb2_tlobits_cbranch): Delete.
3636 (peephole2 to convert zero_extract/compare of single bit to
3637 lshift/compare): New.
3639 2010-06-24 Anatoly Sokolov <aesok@post.ru>
3641 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
3642 recursive call and call to 'int_const_binop'.
3643 (build_range_check, fold_cond_expr_with_comparison, unextend,
3644 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
3645 multiple_of_p): Adjust call to const_binop.
3647 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
3649 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
3650 determine size of XFmode operand.
3651 (XFmode extended DFmode push splitter): Ditto.
3652 (XFmode extended SFmode push splitter): Ditto.
3654 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
3657 * config/i386/i386.md (extract_code): New.
3658 (<u>divmodqi4): Likewise.
3659 (divmodhiqi3): Likewise.
3660 (udivmodhiqi3): Likewise.
3661 (<u>divqi3): Remvoved.
3663 2010-06-24 Jakub Jelinek <jakub@redhat.com>
3666 * recog.h (struct recog_data): Add is_asm field.
3667 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
3668 present in constraints of inline-asm operand and memory operand
3669 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
3670 (extract_insn): Initialize recog_data.is_asm.
3671 * doc/md.texi (Constraints): Document operand side-effect rules.
3673 2010-06-24 Andi Kleen <ak@linux.intel.com>
3675 * c-parser.c (c_parser_conditional_expression): Call
3676 warn_for_omitted_condop.
3677 * doc/invoke.texi: Document omitted condop warning.
3679 2010-06-24 Nick Clifton<nickc@redhat.com>
3681 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
3682 insn in the sequence is a jump insn before setting its label.
3684 2010-06-24 Alan Modra <amodra@gmail.com>
3686 * collect2.c (main): Match exactly --version and --help.
3688 2010-06-24 DJ Delorie <dj@redhat.com>
3690 * config/m32c/m32c-pragma.c: Don't include rtl.h.
3692 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
3694 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
3695 using X87MODEF mode iterator.
3696 (pushsf splitter): Macroize splitter using P mode iterator.
3697 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3700 (*movxf_internal): Rename from *movxf_integer.
3701 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3702 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3703 (*movdf_internal): Rename from *movdf_integer.
3704 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3705 (*movsf_internal): Rename from *movdf_1.
3707 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
3709 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3710 (const_gimple_seq_node): Removed typedefs.
3712 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3713 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3715 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
3717 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3718 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3719 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3720 and CODE_FOR_vec_extract_lo_v4df.
3722 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3723 Changed to define_insn_and_split.
3724 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3725 (vec_extract_lo_v16hi): Likewise.
3726 (vec_extract_lo_v32qi): Likewise.
3727 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3728 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3730 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
3733 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3734 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3735 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3736 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3737 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3740 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3743 * df-core.c (struct df): Rename to df_d.
3744 * df.h (struct df): Likewise.
3745 * dse.h (struct df): Remove forward declaration.
3746 * recog.h (struct insn_data): Rename to:
3747 (struct_insn_data_d). Adjusted all users.
3749 2010-06-23 Arnaud Charlet <charlet@adacore.com
3752 * doc/install.texi: Update requirements to build GNAT.
3754 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
3756 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3758 (m68k_sched_attr_opx_type): Remove unreachable return.
3759 (m68k_sched_attr_opy_type): Likewise.
3760 (m68k_sched_attr_size): Likewise.
3761 (sched_get_opxy_mem_type): Likewise.
3762 (m68k_sched_attr_op_mem): Likewise.
3764 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
3766 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3767 new statement and adjust VDEF only if necessary. Remove superfluous
3768 call to maybe_clean_or_replace_eh_stmt.
3769 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3771 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3772 * tree-inline.c (copy_bb): ...and not there.
3774 2010-06-22 Cary Coutant <ccoutant@google.com>
3776 * dwarf2out.c (is_nested_in_subprogram): New function.
3777 (should_move_die_to_comdat): Use it.
3778 (copy_ancestor_tree): Don't mark DIEs here.
3779 (copy_decls_walk): Start walk from root of newly-added tree;
3780 mark DIEs here instead.
3782 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
3784 * config/i386/i386.md (unit): Also check sseishft1.
3786 2010-06-22 Jan Hubicka <jh@suse.cz>
3788 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3791 2010-06-22 Jan Hubicka <jh@suse.cz>
3793 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3794 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3795 Return true if something changed.
3796 * df.h (df_confluence_function_n): Return bool.
3797 * df-core.c (df_worklist_propagate_forward,
3798 df_worklist_propagate_backward): Track changes and ages.
3799 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3801 * dse.c (dse_confluence_n): Return always true.
3803 2010-06-22 Jan Hubicka <jh@suse.cz>
3805 * bitmap.c (bitmap_clear_bit): Micro optimize.
3807 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
3809 * config/i386/i386.md (SWI1248x): New mode iterator.
3814 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3815 SWI1248x mode iterator.
3816 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3817 using SWI124 mode iterator.
3818 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3820 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
3821 *pushdi2_prologue_rex64 using P mode iterator.
3822 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3823 using SWI48 mode iterator.
3824 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3825 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3826 using SWI1248x mode iterator.
3827 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3828 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3829 SWI48 mode iterator.
3830 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3832 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3833 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3834 SWI12 mode iterator.
3835 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3836 SWI12 mode iterator.
3837 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3838 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3839 SWI24 mode iterator.
3840 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3841 SWI48 mode iterator.
3842 (mov<mode>_insn_1): New expander.
3843 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3844 using SWI48x mode iterator.
3846 (*movoi_internal_avx): Rename from *movoi_internal.
3847 (*movti_internal_rex64): Rename from *movti_rex64.
3848 (*movti_internal_sse): Rename from *movti_sse.
3849 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3850 (*movdi_internal): Rename from *movdi_2.
3851 (*movsi_internal): Rename from *movsi_1.
3852 (*movhi_internal): Rename from *movhi_1.
3853 (*movqi_internal): Rename from *movqi_1.
3855 (insv): Update the call to gen_movsi_insv_1 for rename.
3856 * config/i386/i386.c (promote_duplicated_reg): Ditto.
3858 2010-06-22 Jan Hubicka <jh@suse.cz>
3860 * passes.c (execute_function_todo): Move call of statistics_fini_pass
3862 (execute_todo) ... this one.
3864 2010-06-22 Alan Modra <amodra@gmail.com>
3867 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3868 * caller-save.c (insert_restore, insert_save): Use non-validate
3869 form of adjust_address.
3871 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3874 * config/pa/pa.c (override_options): Disable
3875 -freorder-blocks-and-partition.
3877 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
3880 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3882 * config/i386/i386.md (type): Add sseishft1
3884 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3885 (ppro_insn_load): Likewise.
3886 (ppro_insn_store): Likewise.
3887 (ppro_insn_both): Likewise.
3889 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3890 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3892 (*vec_extractv2di_1_avx): Likewise.
3893 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3894 type. Remove atom_unit.
3895 (*vec_extractv2di_1_sse2): Likewise.
3897 2010-06-21 DJ Delorie <dj@redhat.com>
3899 * diagnostic.h (diagnostic_classification_change_t): New.
3900 (diagnostic_context): Add history and push/pop list.
3901 (diagnostic_push_diagnostics): Declare.
3902 (diagnostic_pop_diagnostics): Declare.
3903 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3904 from pragmas in a history chain instead of the global table.
3905 (diagnostic_push_diagnostics): New.
3906 (diagnostic_pop_diagnostics): New.
3907 (diagnostic_report_diagnostic): Scan history chain to find state
3908 of diagnostics as of the diagnostic location.
3909 * opts.c (set_option): Pass UNKNOWN_LOCATION to
3910 diagnostic_classify_diagnostic.
3911 (enable_warning_as_error): Likewise.
3912 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3913 use in the history chain.
3914 * doc/extend.texi: Document pragma GCC diagnostic changes.
3916 2010-06-21 Jakub Jelinek <jakub@redhat.com>
3918 * dwarf2out.c (add_linkage_name): New function. Don't add
3919 anything to DW_TAG_member DIEs.
3920 (add_name_and_src_coords_attributes): Use it.
3921 (gen_variable_die): Call it for C++ static data members if
3922 specification is DW_TAG_member.
3924 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3925 C++ char16_t and char32_t.
3927 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3928 * genattrtab.c: Include vecprim.h.
3929 (cached_attrs, cached_attr_count, attrs_seen_once,
3930 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3931 attrs_cached_after): New variables.
3932 (find_attrs_to_cache): New function.
3933 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3934 (write_test_expr): Add attrs_cached argument, return it too,
3935 attempt to cache non-const attributes used more than once in
3936 a single case handling.
3937 (write_attr_get): Use find_attrs_to_cache, for caching candidates
3938 emit cached_* variables. Adjust write_attr_set callers.
3939 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3940 to find attributes that should be cached in this block. Adjust
3941 write_test_expr callers.
3942 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
3944 (make_automaton_attrs): Adjust write_test_expr caller.
3946 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3947 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3948 (make_automaton_attrs): If find_tune_attr returns non-NULL,
3949 write separate internal_dfa_insn_code_* and insn_default_latency_*
3950 functions for each attribute's value and emit init_sched_attrs
3951 function and function pointers.
3952 * genattr.c (const_attrs, reservations): New variables.
3953 (gen_attr): Add const attributes to const_attrs vector.
3954 (check_tune_attr, find_tune_attr): New functions.
3955 (main): Add reservations to reservations vector. If find_tune_attr
3956 returns true, add prototype for init_sched_attrs and make
3957 internal_dfa_insn_code and insn_default_latency function pointers,
3958 otherwise define init_sched_attrs as dummy macro.
3959 * cfgexpand.c: Include insn-attr.h.
3960 (gimple_expand_cfg): Call init_sched_attrs.
3962 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3965 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3966 va_arg from a set of register save slots into a temporary,
3967 if the container is bigger than type size, do the copying
3968 using smaller mode or using memcpy.
3971 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3973 (sel_print_to_dot): Remove macro.
3974 (sel_print): Likewise. New prototype.
3975 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3976 (sel_print): New function.
3978 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3980 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3981 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3983 2010-06-21 Nick Clifton <nickc@redhat.com>
3985 * config/rx/rx.h (PTRDIFF_TYPE): Define.
3986 (SMALL_REGISTER_CLASS): Define (to zero).
3987 (PRINT_OPERAND): Delete.
3988 (PRINT_OPERAND_ADDRESS): Delete.
3989 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3990 (rx_print_operand_address): Delete prototype.
3991 * config/rx/rx.c (rx_print_operand): Make static.
3992 Allow %H and %L to handle CONST_DOUBLEs.
3993 (rx_print_operand_address): Make static.
3994 (rx_gen_move_template): Rename local variable 'template' to
3996 (rx_function_arg): Do not pass unknown sized objects in registers.
3997 (TARGET_PRINT_OPERAND): Define.
3998 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4000 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4002 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4004 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
4006 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4007 stack-alignment for simple leaf-functions.
4009 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4011 * doc/install.texi: Document bootstrap-lto.
4013 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4016 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4017 (input_function): Drop them here, if VTA is disabled.
4019 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
4022 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4024 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4025 ix86_swapped_fp_comparsion_operator instead of
4026 ix86_fp_comparison_operator.
4028 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4029 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4030 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4031 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4032 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4033 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4035 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4038 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4039 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4040 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4041 (decode_cmdline_option): Update for this return value. Set
4042 orig_option_with_args_text field. Set arg field for unknown
4043 options. Make static.
4044 (decode_cmdline_options_to_array): New.
4045 (prune_options): Update handling of find_opt return value.
4046 * opts.c (read_cmdline_option): Take decoded option. Return void.
4047 (read_cmdline_options): Take decoded options.
4048 (decode_options): Add parameters for decoded options. Use
4049 decode_cmdline_options_to_array. Use decoded options for -O
4050 scan. Use integral_argument for -O parameters. Update call to
4051 read_cmdline_options.
4052 (enable_warning_as_error): Update handling of find_opt return value.
4053 * opts.h: Update comment on unknown options.
4054 (struct cl_decoded_option): Update comments on opt_index and arg.
4055 Add orig_option_with_args_text.
4056 (decode_cmdline_option): Remove.
4057 (decode_cmdline_options_to_array): Declare.
4058 (decode_options): Update prototype.
4059 * toplev.c (save_argv): Remove.
4060 (save_decoded_options, save_decoded_options_count): New.
4061 (read_integral_parameter): Remove.
4062 (print_switch_values): Use decoded options.
4063 (toplev_main): Don't set save_argv. Update call to decode_options.
4064 * toplev.h (read_integral_parameter): Remove.
4065 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4067 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
4070 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4072 * constraints.md (Pw, Px): New constraints.
4073 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4075 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
4077 * config/i386/sse.md (fma4modesuffixf4): Removed.
4078 (ssemodesuffixf2s): Likewise.
4079 (ssemodesuffixf4): Likewise.
4080 (ssemodesuffixf2c): Likewise.
4081 (ssescalarmodesuffix2s): Likewise.
4082 (avxmodesuffixf2c): Likewise.
4083 (ssemodesuffix): New.
4084 (ssescalarmodesuffix): Likewise.
4085 Update patterns with ssemodesuffix and ssescalarmodesuffix.
4087 2010-06-19 Philip Herron <herron.philip@googlemail.com>
4089 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4091 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
4093 * stor-layout.c (debug_rli): Remove unused local variables.
4095 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4097 PR rtl-optimization/40900
4098 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
4099 original expression for later reuse.
4100 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4101 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4103 2010-06-18 Anatoly Sokolov <aesok@post.ru>
4105 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4106 double_int_fits_in_uhwi_p): Implement as static inline.
4107 (double_int_xor): New inline function.
4108 (double_int_lrotate, double_int_rrotate, double_int_max,
4109 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4110 double_int_smin): Declare.
4111 (lrotate_double, rrotate_double): Remove declaration.
4112 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4113 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4114 (double_int_lrotate, double_int_rrotate, double_int_max,
4115 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4116 double_int_smin): New function.
4117 * fold-const.c (int_const_binop): Clean up, use double_int_*
4119 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4120 double_int_* and immed_double_int_const functions.
4122 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4124 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4125 * function.c (types_used_by_cur_var_decl): Likewise.
4126 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4128 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4130 * tree.h (record_layout_info): Change type of pending_statics field
4132 * stor-layout.c (start_record_layout): Store NULL into
4134 (debug_rli): Call debug_vec_tree instead of debug_tree.
4135 (place_field): Likewise.
4136 (finish_record_layout): Likewise.
4138 2010-06-18 Alan Modra <amodra@gmail.com>
4140 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4142 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4145 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4146 for SET source operand from SET destination operand.
4148 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
4150 PR rtl-optimization/39871
4151 * reload1.c (init_eliminable_invariants): For flag_pic, disable
4152 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4153 (function_invariant_p): Rule out a plus of frame or arg pointer with
4155 * ira.c (find_reg_equiv_invariant_const): Likewise.
4157 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
4159 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4160 print_operand_address and puts to output the operand for CONST.
4162 2010-06-17 Jakub Jelinek <jakub@redhat.com>
4165 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4168 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4170 * v850-protos.h (print_operand): Delete.
4171 (print_operand_address): Delete.
4172 * v850.h (PRINT_OPERAND): Delete.
4173 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4174 (PRINT_OPERAND_ADDRESS): Delete.
4175 * v850.c (print_operand_address): Rename to...
4176 (v850_print_operand_address): ...this. Make static. Call
4178 (print_operand): Rename to...
4179 (v850_print_operand): ...this. Make static. Call
4180 v850_print_operand_address.
4181 (v850_print_operand_punct_valid_p): New function.
4182 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4183 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4185 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4187 * config/sh/sh-protos.h (print_operand): Delete.
4188 (print_operand_address): Delete.
4189 * config/sh/sh.h (PRINT_OPERAND): Delete.
4190 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4191 (PRINT_OPERAND_ADDRESS): Delete.
4192 * config/sh/sh.c (sh_print_operand_address): Make static.
4193 (sh_print_operand): Make static. Call sh_print_operand_address
4194 and sh_print_operand.
4195 (sh_print_operand_punct_valid_p): New function.
4196 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4197 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4199 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4201 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4202 (mcore_print_operand_address): Delete.
4203 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4204 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4205 (PRINT_OPERAND_ADDRESS): Delete.
4206 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4207 (mcore_print_operand): Make static.
4208 (mcore_print_operand_punct_valid_p): New function.
4209 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4210 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4212 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4214 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4215 (print_operand_address): Delete.
4216 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
4217 (PRINT_OPERAND_ADDRESS): Delete.
4218 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
4220 (m68hc11_print_operand): Make static.
4221 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4223 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4225 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
4226 (m32r_print_operand_address): Delete.
4227 * config/m32r/m32r.h (m32r_punct_chars): Delete.
4228 (PRINT_OPERAND): Delete.
4229 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4230 (PRINT_OPERAND_ADDRESS): Delete.
4231 * config/m32r/m32r.c (m32r_punct_chars): Make static.
4232 (m32r_print_operand_address): Make static.
4233 (m32r_print_operand): Make static.
4234 (m32r_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/iq2000/iq2000-protos.h (print_operand): Delete.
4241 (print_operand_address): Delete.
4242 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
4243 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4244 (PRINT_OPERAND_ADDRESS): Delete.
4245 (iq2000_print_operand_punct): Delete.
4246 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
4247 (iq2000_print_operand_address): Make static.
4248 (iq2000_print_operand): Make static.
4249 (iq2000_print_operand_punct_valid_p): New function.
4250 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4251 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4253 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4255 * config/frv/frv-protos.h (frv_print_operand): Delete.
4256 (frv_print_operand_address): Delete.
4257 * config/frv/frv.h (PRINT_OPERAND): Delete.
4258 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4259 (PRINT_OPERAND_ADDRESS): Delete.
4260 * config/frv/frv.c (frv_print_operand_address): Make static.
4261 (frv_print_operand): Make static.
4262 (frv_print_operand_punct_valid_p): New function.
4263 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4264 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4266 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4268 * tree.h (vec_member): Declare.
4269 * tree.c (vec_member): Define.
4271 2010-06-17 Richard Guenther <rguenther@suse.de>
4273 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
4274 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
4276 2010-06-17 Richard Guenther <rguenther@suse.de>
4278 * tree-inline.c (declare_return_variable): Remove bogus code.
4280 2010-06-17 Richard Guenther <rguenther@suse.de>
4282 * gimplify.c (gimplify_bind_expr): Always promote complex
4283 and vector variables to registers if possible.
4285 2010-06-17 Richard Guenther <rguenther@suse.de>
4287 * expr.c (get_inner_reference): Use double_int for bit_offset
4290 2010-06-16 DJ Delorie <dj@redhat.com>
4292 * common.opt (-fstrict-volatile-bitfields): new.
4293 * doc/invoke.texi: Document it.
4294 * fold-const.c (optimize_bit_field_compare): For volatile
4295 bitfields, use the field's type to determine the mode, not the
4297 * expr.c (expand_assignment): Likewise.
4298 (get_inner_reference): Likewise.
4299 (expand_expr_real_1): Likewise.
4300 * expmed.c (store_fixed_bit_field): Likewise.
4301 (extract_bit_field_1): Likewise.
4302 (extract_fixed_bit_field): Likewise.
4304 2010-06-16 Richard Guenther <rguenther@suse.de>
4306 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4308 2010-06-16 Douglas B Rupp <rupp@gnat.com>
4310 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4311 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4312 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4313 * debug.c: Likewise.
4314 * sdbout.c: Likewise.
4315 * vmsdbgout.c: Likewise.
4316 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4317 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4318 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4319 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4320 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4321 * dwarf2out.c (dw_fde_struct): New fields
4322 dw_fde_vms_{end,begin}_prologue.
4323 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4324 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4325 (dwarf2out_vms_end_prologue): New function.
4326 (dwarf2out_vms_begin_epilogue): New function.
4327 (dw_val_struct): New value dw_val_class_vms_delta.
4328 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4329 begin_epilogue for VMS.
4330 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4331 new static functions.
4332 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4333 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4335 (print_die): New case dw_val_class_vms_delta.
4336 (attr_checksum): Likewise.
4337 (same_dw_val_p: Likewise.
4338 (size_of_die): Likewise.
4339 (value_format): Likewise.
4340 (output_die): Likewise.
4341 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4342 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4343 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4344 dwarf2out_cfi_begin_epilogue
4345 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4347 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4349 * config/cris/cris-protos.h (cris_print_operand): Delete.
4350 (cris_print_operand_address): Delete.
4351 * config/cris/cris.h (PRINT_OPERAND): Delete.
4352 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4353 (PRINT_OPERAND_ADDRESS): Delete.
4354 * config/cris/cris.c (cris_print_operand_address): Make static.
4355 (cris_print_operand): Make static.
4356 (cris_print_operand_punct_valid_p): New function.
4357 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4358 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4360 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4362 * config/arm/arm-protos.h (arm_print_operand): Delete.
4363 (arm_print_operand_address): Delete.
4364 * config/arm/arm.h (PRINT_OPERAND): Delete.
4365 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4366 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
4367 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
4368 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
4369 (arm_print_operand): Make static.
4370 (arm_print_operand_punct_valid_p): New function.
4371 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4372 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4374 2010-06-16 Nick Clifton <nickc@redhat.com>
4376 * config/rx/constraints.md (NEGint4): New constraint.
4377 * config/rx/rx.md (attr cc): Add set_zsc.
4378 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
4381 (call_internal): Clobber the cc0 register.
4382 (call_value_internal): Likewise.
4383 (cstoresi4): Likewise.
4384 (movsieq): Likewise.
4385 (movsine): Likewise.
4386 (addsi3): Add alternative to handle small negative constants.
4388 (addsi3): Do not set the O bit in the cc0 register.
4392 (andsi3): Reorder alternatives to prefer shorter forms.
4395 (negsi2): Note that the cc0 flags are set.
4396 (rotlsi3): Note that only the Z and S bits are set in cc0.
4397 (lshrsi3): Likewise.
4398 (ashlsi3): Likewise.
4399 (subsf3): Use %Q for the MEM operand.
4400 (fix_truncsfsi2): Likewise.
4401 (floatsisf2): Likewise.
4402 (bitset): Remove early clobber from destination.
4403 (bitset_in_memory): Likewise.
4404 (lrintsf2): Clobber the cc0 register.
4405 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
4406 (rx_print_operand): Handle %N.
4408 2010-06-16 Jan Hubicka <jh@suse.cz>
4410 * df-core.c (df_compact_blocks): Free problem_temps vector.
4412 2010-06-16 Martin Jambor <mjambor@suse.cz>
4414 PR tree-optimization/43905
4415 * tree-sra.c: Include tree-inline.h.
4416 (create_abstract_origin): Removed.
4417 (modify_function): Version the call graph node instead of creating
4418 abstract origins and dealing with same_body aliases.
4419 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
4420 function is versionable.
4421 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
4423 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
4425 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
4426 (CHOOSE_DYNAMIC_LINKER): Update.
4428 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
4430 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
4431 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
4432 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
4433 *prefetch_3dnow_rex.
4435 2010-06-15 Anatoly Sokolov <aesok@post.ru>
4437 * target.h (struct asm_out):Add declare_constant_name field.
4438 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4439 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
4440 * output.h (default_asm_declare_constant_name): Declare.
4441 (assemble_label): Update prototype.
4442 * varasm.c (assemble_constant_contents): Use
4443 targetm.asm_out.declare_constant_name target hook.
4444 (assemble_label): Add 'file' argument.
4445 (default_asm_declare_constant_name): New function.
4446 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
4447 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
4448 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
4450 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
4451 * config/darwin.c (darwin_asm_declare_constant_name): New function.
4452 (machopic_output_indirection): Update assemble_label argument list.
4453 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
4454 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4456 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
4459 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4460 size_one_node for pointer types. Do not call gmp_cst_to_tree.
4462 2010-06-15 Richard Guenther <rguenther@suse.de>
4464 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
4466 2010-06-15 Paul Brook <paul@codesourcery.com>
4468 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
4471 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
4473 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
4474 don't get a vector type for output.
4476 2010-06-15 Jakub Jelinek <jakub@redhat.com>
4479 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
4480 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
4481 (LANG_HOOKS_DECLS): Add it.
4482 * gimplify.c (omp_notice_variable): Call
4483 lang_hooks.decls.omp_report_decl.
4485 2010-06-15 Martin Jambor <mjambor@suse.cz>
4488 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
4489 on the newly dead SSA name.
4491 2010-06-15 Alan Modra <amodra@gmail.com>
4493 * doc/invoke.texi: Add mcmodel to powerpc options.
4494 * configure.ac: Add HAVE_LD_LARGE_TOC test.
4495 * configure: Regenerate.
4496 * config.in: Regenerate.
4497 * config/rs6000/linux64.opt (mcmodel): New.
4498 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
4499 (TARGET_CMODEL, SET_CMODEL): Define.
4500 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
4501 select CMODEL_MEDIUM default.
4502 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
4503 (TARGET_CMODEL): Define default.
4504 * config/rs6000/rs6000.c (cmodel): New variable.
4505 (rs6000_explicit_options): Add cmodel field.
4506 (rs6000_handle_option): Handle -mcmodel.
4507 (create_TOC_reference): Add largetoc_reg param. Generate high,
4508 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
4509 (rs6000_delegitimize_address): Recognise new toc reference rtl
4510 and minimal-toc rtl.
4511 (rs6000_legitimize_reload_address): Handle new toc references.
4512 (print_operand_address): Handle legitimate_constant_pool_address_p
4513 match before lo_sum.
4514 (rs6000_eliminate_indexed_memrefs): Tidy.
4515 (rs6000_emit_move): Tweak threshold for inlining constants.
4516 Keep rs6000_emit_allocate_stack large stack frame offsets
4517 loaded into r0 inline.
4518 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
4519 (tocrel_base, tocrel_offset): New variables.
4520 (toc_relative_expr_p): Set them here.
4521 (print_operand_address): Skip over any offset on constant pool address.
4522 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
4523 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
4524 (offsettable_ok_by_alignment): New function.
4525 (rs6000_emit_move): Address suitably aligned local symbol_refs
4526 relative to the toc pointer for -mcmodel=medium.
4527 (legitimate_constant_pool_address_p): Make param const_rtx. Add
4528 strict param. Allow lo_sum version of addressing. Verify reg
4529 used for -mminimal-toc and -mcmodel != small. Update all callers.
4530 * config/rs6000/constraints.md: Update for above change.
4531 * config/rs6000/predicates.md: Likewise.
4532 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
4534 (tls_gd): Split for -mcmodel=medium/large.
4535 (tls_gd_high, tls_gd_low): New.
4536 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
4537 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
4538 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
4539 (largetoc_high, largetoc_low): New.
4540 (cmptf_internal2): Add clobber.
4541 * config/rs6000/rs6000-protos.h: Update.
4543 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
4545 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
4546 true if no prefetch is going to be generated for a given group.
4547 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
4548 estimate the prefetch_count.
4549 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
4550 prefetch count by considering the unroll_factor and prefetch_mod
4551 for is_loop_prefetching_profitable.
4553 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
4555 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
4556 anything if the argument is not a MEM.
4558 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
4563 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
4565 (canonicalize_loop_ivs): Likewise.
4567 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
4570 * haifa-sched.c (setup_insn_reg_pressure_info,
4571 update_register_pressure): Reject debug insns.
4572 (ready_sort): Don't setup reg pressure for debug insns.
4573 (schedule_insn): Don't update reg pressure for debug insns.
4575 2010-06-14 Richard Guenther <rguenther@suse.de>
4577 * lto-streamer.c (cached_bp): Remove.
4578 (bitpack_delete): Likewise.
4579 (bitpack_create): Likewise.
4580 (bp_get_next_word): Likewise.
4581 (bp_pack_value, bp_unpack_value): Move ...
4582 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
4584 (struct bitpack_d): Likewise.
4585 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4586 New inline functions.
4587 * lto-streamer-out.c (lto_output_bitpack): Remove.
4588 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4589 (pack_value_fields): Adjust.
4590 (lto_write_tree): Likewise.
4591 (output_gimple_stmt): Likewise.
4592 (output_function): Likewise.
4593 * lto-streamer-in.c (input_gimple_stmt): Adjust.
4594 (input_function): Likewise.
4595 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4596 (lto_input_bitpack): Remove.
4597 (lto_materialize_tree): Adjust.
4598 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4599 * lto-cgraph.c (lto_output_edge): Adjust.
4600 (lto_output_node): Likewise.
4601 (lto_output_varpool_node): Likewise.
4602 (lto_output_ref): Likewise.
4603 (input_node): Likewise.
4604 (input_varpool_node): Likewise.
4605 (input_ref): Likewise.
4606 (input_edge): Likewise.
4607 (output_node_opt_summary): Likewise.
4608 (input_node_opt_summary): Likewise.
4609 * ipa-pure-const.c (pure_const_write_summary): Likewise.
4610 (pure_const_read_summary): Likewise.
4611 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4612 (ipa_read_indirect_edge_info): Likewise.
4613 (ipa_write_node_info): Likewise.
4614 (ipa_read_node_info): Likewise.
4616 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
4619 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4620 (vec_extract_lo_v16hi): Likewise.
4621 (vec_extract_lo_v32qi): Likewise.
4623 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4626 * tree.h (build_call_expr): Don't define as vararg macro, instead
4628 * builtins.c (build_call_nofold): Remove.
4629 (expand_builtin_int_roundingfn, expand_builtin_pow,
4630 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
4631 expand_builtin_memset_args, expand_builtin_strcmp,
4632 expand_builtin_strncmp, expand_builtin_memory_chk): Use
4633 build_call_nofold_loc instead of build_call_nofold.
4634 (build_call_expr): New function.
4636 PR tree-optimization/44508
4637 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
4638 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
4639 don't eliminate trivially dead stmts.
4640 * tree-vrp.c (vrp_finalize): Pass false as last argument
4641 to substitute_and_fold.
4642 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
4643 to substitute_and_fold.
4644 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4647 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
4649 2010-06-14 Ira Rosen <irar@il.ibm.com>
4651 PR tree-optimization/44507
4652 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
4653 to build initial vector for BIT_AND_EXPR.
4654 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4656 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4658 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
4659 adjust z10prop set_attr.
4661 2010-06-13 Jan Hubicka <jh@suse.cz>
4663 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4664 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
4665 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
4666 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
4667 datastructure checks into checking asserts.
4668 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
4669 * tree-ssa-sccvn.c (VN_INFO): Likewise.
4670 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
4671 df_ref_create_structure): Likewise.
4672 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
4673 pool_free): Use gcc_checking_assert.
4674 * alias.c (get_alias_set): Likewise.
4675 * var-tracking.c (variable_htab_free, shared_hash_copy,
4676 canonicalize_values_mark, variable_merge_over_cur): Likewise.
4677 * lto-streamer.c (bp_unpack_value): Likewise.
4679 2010-06-13 Richard Guenther <rguenther@suse.de>
4681 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
4682 Do not stream but initialize TYPE_CANONICAL to NULL.
4683 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4684 * gimple.c (gimple_types_compatible_p): Disregard
4685 TYPE_STRUCTURAL_EQUALITY_P.
4686 (gimple_register_type): Use TYPE_CANONICAL as cache.
4687 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4688 before registering common types.
4689 * config/i386/i386.c (ix86_function_arg_boundary): Do not
4690 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4691 * tree.h (TYPE_CANONICAL): Clarify documentation.
4693 2010-06-13 Anatoly Sokolov <aesok@post.ru>
4695 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4696 LIBCALL_VALUE): Remove macros.
4697 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4698 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4699 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4700 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4701 (ia64_function_value): Make static. Handle receiving the function
4702 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4704 2010-06-12 Jan Hubicka <jh@suse.cz>
4706 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4709 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
4711 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4713 2010-06-12 Jan Hubicka <jh@suse.cz>
4715 * df-core.c (df_clear_bb_info): New function.
4716 (df_set_blocks): bb_info is always allocated.
4717 (df_get_bb_info): Use block_info_elt_size.
4718 (df_set_bb_info): Likewise.
4719 (df_compact_blocks): Update for new block_info.
4720 (grow_bb_info): New function.
4721 * df-problems.c (df_grow_bb_info): Move to df-core.c
4722 (df_rd_set_bb_info): Remove.
4723 (df_rd_free_bb_info): Do not free block pool.
4724 (df_rd_alloc): Do not create pool, use check for
4725 obstack presence instead of NULL pointer for new blocks.
4726 (df_rd_free): DO not free alloc pool; clear block_info.
4727 (problem_RD): Add size of block info structure.
4728 (df_lr_set_bb_info): Remove.
4729 (df_lr_free_bb_info): Do not free block pool.
4730 (df_lr_alloc): Do not create pool, use check for
4731 obstack presence instead of NULL pointer for new blocks.
4732 (df_lr_free): DO not free alloc pool; clear block_info.
4733 (problem_LR): Add size of block info structure.
4734 (df_live_set_bb_info): Remove.
4735 (df_live_free_bb_info): Do not free block pool.
4736 (df_live_alloc): Do not create pool, use check for
4737 obstack presence instead of NULL pointer for new blocks.
4738 (df_live_free): DO not free alloc pool; clear block_info.
4739 (problem_LIVE): Add size of block info structure.
4740 (problem_CHAIN): Add size of block info structure.
4741 (df_byte_lr_set_bb_info): Remove.
4742 (df_byte_lr_free_bb_info): Do not free block pool.
4743 (df_byte_lr_alloc): Do not create pool, use check for
4744 obstack presence instead of NULL pointer for new blocks.
4745 (df_byte_lr_free): DO not free alloc pool; clear block_info.
4746 (problem_BYTE_LR): Add size of block info structure.
4747 (problem_NOTE): Add size of block info structure.
4748 (df_byte_MD_set_bb_info): Remove.
4749 (df_byte_MD_free_bb_info): Do not free block pool.
4750 (df_byte_MD_alloc): Do not create pool, use check for
4751 obstack presence instead of NULL pointer for new blocks.
4752 (df_byte_MD_free): DO not free alloc pool; clear block_info.
4753 (problem_BD): Add size of block info structure.
4754 * df-scan.c (df_scan_free_internal): Free block pool.
4755 (df_scan_set_bb_info): Remove.
4756 (df_scan_free_bb_info): Check for artificial_defs instead
4757 of bb_info being non-NULL.
4758 (df_scan_alloc): DO not create df_scan_block pool.
4759 (problem_SCAN): Set size of block info.
4760 (df_bb_refs_record): Do not allocate bb_info.
4761 * df.h (df_problem): Add block_info_elt_size.
4762 (struct dataflow): Change block_info to void *.
4763 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4764 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4767 2010-06-12 Jan Hubicka <jh@suse.cz>
4769 PR tree-optimize/44485
4770 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4771 containing use of return value of noreturn function.
4773 2010-06-12 Anatoly Sokolov <aesok@post.ru>
4775 * targhooks.c (default_function_value): Don't use
4776 FUNCTION_OUTGOING_VALUE.
4777 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4778 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4780 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
4782 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4783 Add crtfastmath.o to extra_parts.
4784 * config/mips/crtfastmath.c: New.
4785 * config/mips/linux.h (ENDFILE_SPEC): New.
4787 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
4789 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4790 old_type in parameter.
4791 (gcc_type_for_value): Update call to gcc_type_for_interval.
4792 (compute_type_for_level_1): Renamed compute_type_for_level.
4793 Update call to gcc_type_for_interval.
4795 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4797 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4798 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4800 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4802 * opts-common.c: Include options.h.
4803 (integral_argument): Move from opts.c.
4804 (decode_cmdline_option): New. Based on read_cmdline_option.
4805 * opts.c (integral_argument): Move to opts-common.c.
4806 (read_cmdline_option): Move most contents to
4807 decode_cmdline_option. Use %qs in diagnostics.
4808 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4809 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4810 decode_cmdline_option): New.
4812 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4815 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4816 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4817 (partiysi2_cmp): Ditto.
4818 (*partiyhi2_cmp): Ditto.
4819 (*parityqi2_cmp): Remove.
4821 2010-06-11 Jan Hubicka <jh@suse.cz>
4823 * bitmap.h (bmp_iter_next_bit): New.
4824 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4826 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
4827 Eric Botcazou <ebotcazou@adacore.com>
4829 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4832 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4834 * config/i386/i386.md (unspec): New define_c_enum.
4837 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4839 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4841 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
4844 * tree-if-conv.c (bb_predicate_s): New struct.
4845 (bb_predicate_p): New.
4846 (bb_has_predicate): New.
4847 (bb_predicate): New.
4848 (set_bb_predicate): New.
4849 (bb_predicate_gimplified_stmts): New.
4850 (set_bb_predicate_gimplified_stmts): New.
4851 (add_bb_predicate_gimplified_stmts): New.
4852 (init_bb_predicate): New.
4853 (free_bb_predicate): New.
4854 (is_predicated): Use bb_predicate.
4855 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4856 (predicate_bbs): Same. Gimplify the condition of the basic blocks
4857 before processing their successors.
4858 (clean_predicate_lists): Removed.
4859 (find_phi_replacement_condition): Use bb_predicate.
4860 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
4862 (insert_gimplified_predicates): New.
4863 (combine_blocks): Call insert_gimplified_predicates.
4864 (tree_if_conversion): Call free_bb_predicate instead of
4865 clean_predicate_lists.
4867 2010-10-11 Paul Brook <paul@codesourcery.com>
4869 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4870 * config/arm/arm.c (all_architectures): Change v7e-m default to
4872 * config/arm/arm-cores.def: Add cortex-m4.
4873 * config/arm/arm-tune.md: Regenerate.
4875 2010-06-11 Jan Hubicka <jh@suse.cz>
4877 * ipa-pure-const.c (special_builtlin_state): New function.
4878 (check_call): Use it instead of special casign BUILT_IN_RETURN.
4879 (propagate_pure_const): Use it.
4881 2010-06-11 Jan Hubicka <jh@suse.cz>
4883 * df-problems.c (df_live_scratch): Convert to bitmap_head.
4884 (df_live_alloc): Initialize df_live_scratch when initializing
4886 (df_live_transfer_function): Update uses of df_live_scratch.
4887 (df_live_free): Free problem_data; clear df_live_scratch before
4888 releasing the obstack.
4889 (df_md_free): Free problem data.
4891 2010-06-11 Jan Hubicka <jh@suse.cz>
4893 * doc/invoke.texi (Wsuggest-attribute): Document.
4894 (Wmissing-noreturn): Remove.
4895 * ipa-pure-const.c (warn_function_noreturn): New function.
4896 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4897 warn_missing_noreturn.
4898 * common.opt (Wsuggest-attribute=noreturn): New.
4899 * tree-flow.h (warn_function_noreturn): Declare.
4900 * tree-cfg.c (execute_warn_function_noreturn): Use
4901 warn_function_noreturn.
4902 (gate_warn_function_noreturn): New.
4903 (pass_warn_function_noreturn): Update.
4905 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4907 * c-typeck.c (handle_warn_cast_qual): Add loc
4908 parameter. Improve warning message.
4909 (build_c_cast): Pass location to handle_warn_cast_qual.
4911 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4913 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4914 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
4916 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4918 2010-06-10 Dodji Seketeli <dodji@redhat.com>
4920 Fix bootstap on mips
4921 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4924 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
4926 * system.h (helper_const_non_const_cast): New inline for
4928 (CONST_CAST2): For gcc version <= 4.0 use
4929 new helper to do const/non-const casting.
4931 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4933 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4934 * Makefile.in (OBJS-common): Include insn-enums.o.
4935 (insn-enums.o): New rule.
4936 (simple_generated_c): Add insn-enums.c.
4937 (build/genenums.o): New rule.
4938 (genprogmd): Add "enums".
4939 * genconstants.c (print_enum_type): Declare a C string array
4941 * genenums.c: New file.
4942 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4943 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
4944 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4946 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4948 * doc/md.texi (define_enum_attr): Document.
4949 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4950 * read-md.h (lookup_enum_type): Declare.
4951 * read-md.c (lookup_enum_type): New function.
4952 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4953 * genattrtab.c (attr_desc): Add an enum_name field.
4954 (evaluate_eq_attr): Take the associated attribute as argument.
4955 Get the enum prefix from the enum_name field, if defined.
4956 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
4957 (simplify_test_exp): Pass attr to evaluate_eq_attr.
4958 (add_attr_value): New function, split out from...
4959 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
4960 (write_test_expr): Pass attr to evaluate_eq_attr.
4961 (write_attr_get): Use the enum_name as the enum tag, if defined.
4962 (write_attr_valueq): Use the enum_name as a prefix, if defined.
4963 (find_attr): Initialize enum_name.
4964 (main): Handle DEFINE_ENUM_ATTR.
4965 * gensupport.c (process_rtx): Likewise.
4966 * config/mips/mips.h (mips_tune_attr): Delete.
4967 * config/mips/mips.md (cpu): Use define_attr_enum.
4969 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4971 * doc/md.texi (define_c_enum, define_enum): Document.
4972 * read-md.h (md_constant): Add a parent_enum field.
4973 (enum_value, enum_type): New structures.
4974 (upcase_string, traverse_enum_types): Declare.
4975 * read-md.c (enum_types): New variable.
4976 (upcase_string, add_constant): New functions.
4977 (handle_constants): Don't create the hash table here.
4979 (traverse_md_constants): Don't check for a null md_constants.
4980 (decimal_string, handle_enum, traverse_enum_types): New functions.
4981 (read_md_files): Initialize md_constants and md_enums.
4982 * genconstants.c (print_md_constant): Ignore info argument.
4983 Only print constants that belong to no enum.
4984 (print_enum_type): New function.
4985 (main): Don't pass stdout to print_md_constant. Call print_enum_type
4986 for each defined enum type.
4987 * config/mips/mips.md (processor): New define_enum.
4988 (unspec): New define_c_enum.
4989 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4990 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4991 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4992 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4993 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4994 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4995 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4996 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4997 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4998 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4999 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5000 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5001 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5002 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5003 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5004 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5005 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5006 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5007 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5008 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5009 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5010 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5011 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5012 (UNSPEC_RDDSP): Move to mips-dsp.md.
5013 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5014 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5015 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5016 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5017 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5018 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5019 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5020 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5021 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5022 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5023 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5024 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5025 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5026 Moved to mips-dspr2.md.
5027 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5028 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5029 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5030 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5031 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5032 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5033 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5034 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5035 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5036 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5037 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5038 UNSPEC_LOONGSON_PSADBH)
5039 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5040 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5041 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5042 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5043 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5044 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5045 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5046 (cpu): Update comment.
5047 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5048 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5049 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5050 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5051 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5052 UNSPEC_LOONGSON_PCMPEQ)
5053 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5054 UNSPEC_LOONGSON_PINSR_0)
5055 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5056 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5057 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5058 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5059 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5060 UNSPEC_LOONGSON_PSADBH)
5061 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5062 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5063 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5064 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5065 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5066 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5067 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5068 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5069 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5070 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5071 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5072 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5073 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5074 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5075 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5076 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5077 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5078 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5079 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5080 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5081 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5082 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5083 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5084 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5085 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5086 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5087 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5088 (UNSPEC_RDDSP): Moved from mips.md.
5089 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5090 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5091 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5092 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5093 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5094 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5095 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5096 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5097 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5098 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5099 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5100 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5101 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5102 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5103 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5104 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5105 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5106 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5107 (UNSPEC_SCC): Moved from mips.md.
5108 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5109 "processor_type" to "processor".
5110 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5111 * config/mips/mips.h (processor_type): Delete.
5112 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5113 "processor_type" to "processor".
5115 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5117 * configure.ac (tm_include_list): Add insn-constants.h.
5118 * configure: Regenerate.
5119 * Makefile.in (GTM_H): Move insn-constants.h here from...
5121 * mkconfig.sh: Remove special handling for insn-constants.h.
5123 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5125 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5126 (BUILD_MD): ...this new variable.
5127 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5128 that include the old contents of simple_generated_h and
5130 (simple_generated_h, simple_generated_c): Include them. Add
5132 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5133 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5134 Remove these dependencies from the main rule and include
5135 insn-conditions.md in the command line only if it appears
5136 in the dependency list.
5137 (insn-constants.h, s-constants): Delete.
5138 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5140 (build/genmddeps.o): Likewise.
5141 (genprogrtl): New variable that contains everything from genprogmd
5142 except mddeps and constants.
5143 (genprogmd): Redefine in terms of genprogrtl. Make these programs
5144 depend on $(BUILD_MD)
5145 (genprog): New variable. Make these programs depend on
5147 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5148 (main): Use read_md_files instead of init_rtx_reader_args.
5149 * genconstants.c: As for genmddeps.c.
5150 * read-md.h (read_skip_construct): Declare.
5151 * read-md.c (read_skip_construct): New function.
5152 (handle_file): Allow a null handle_directive, skipping the
5154 (parse_include): Update the comment accordingly.
5156 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5158 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5159 * genmddeps.c: Include read-md.h.
5160 (main): Call init_rtx_reader_args instead of init_md_reader_args.
5161 * genattr.c (main): Likewise.
5162 * genattrtab.c (main): Likewise.
5163 * genautomata.c (main): Likewise.
5164 * gencodes.c (main): Likewise.
5165 * genconditions.c (main): Likewise.
5166 * genconfig.c (main): Likewise.
5167 * genconstants.c (main): Likewise.
5168 * genemit.c (main): Likewise.
5169 * genextract.c (main): Likewise.
5170 * genflags.c (main): Likewise.
5171 * genopinit.c (main): Likewise.
5172 * genoutput.c (main): Likewise.
5173 * genpeep.c (main): Likewise.
5174 * genrecog.c (main): Likewise.
5175 * genpreds.c (main): Likewise.
5176 * gensupport.h (in_fname): Move to read-md.h.
5177 (init_md_reader_args_cb): Rename to...
5178 (init_rtx_reader_args_cb): ...this and return a bool.
5179 (init_md_reader_args): Rename to...
5180 (init_rtx_reader_args): ...this and return a bool.
5181 (include_callback): Move to read-md.h.
5182 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5183 (file_name_list, first_dir_md_include): Move to read-md.c
5184 (first_bracket_include): Delete unused variable.
5185 (last_dir_md_include): Move to read-md.c.
5186 (process_include): Delete, moving code to read-md.c:handle_include.
5187 (process_rtx): Don't handle INCLUDE.
5188 (save_string): Delete.
5189 (rtx_handle_directive): New function.
5190 (init_md_reader_args_cb): Rename to...
5191 (init_rtx_reader_args_cb): ...this and return a boolean success value.
5193 (init_md_reader_args): Rename to...
5194 (init_rtx_reader_args): ...this and return a boolean success value.
5195 * rtl.def (INCLUDE): Delete.
5196 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
5198 * read-rtl.c (read_conditions): Don't gobble ')' here.
5199 (read_mapping): Likewise.
5200 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
5201 Handle top-level non-rtx constructs here rather than in read_rtx_1.
5202 Store the whole queue in *X. Remove call to init_md_reader.
5203 (read_rtx_1): Rename to...
5204 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
5205 Don't handle top-level non-rtx constructs here. Don't handle (nil)
5207 (read_nested_rtx): New function. Handle (nil) here rather than
5209 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
5211 * read-md.h (directive_handler_t): New type.
5212 (in_fname, include_callback): Moved from read-md.h.
5213 (read_constants, init_md_reader): Delete.
5214 (read_md_files): Declare.
5215 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
5216 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
5218 (read_constants): Rename to...
5219 (handle_constants): ...this. Don't gobble ')' here.
5220 (handle_include, handle_file, handle_toplevel_file)
5221 (parse_include): New functions, mostly taken from gensupport.c.
5222 (init_md_reader): Subsume into...
5223 (read_md_files): ...this new function.
5225 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5227 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
5228 (unread_char): Decrement read_md_lineno after putting back '\n'.
5229 * read-md.c (fatal_with_file_and_line): Push back any characters
5230 that we decide not to add to the context.
5231 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
5232 fatal_expected_char in cases where '/' ends a line (for example).
5233 (read_name): Don't increment read_md_lineno here.
5234 (read_escape): Likewise.
5235 (read_quoted_string): Likewise.
5236 (read_braced_string): Likewise.
5238 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5240 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
5241 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
5242 * genconstants.c: Include read-md.h.
5243 * read-rtl.c (md_constants): Move to read-md.c.
5244 (md_name): Move to read-md.h.
5245 (initialize_iterators): Use leading_string_hash instead of def_hash
5246 and leading_string_eq_p instead of def_name_eq_p.
5247 (read_name): Move to read-md.c.
5248 (def_hash, def_name_eq_p): Delete.
5249 (read_constants, traverse_md_constants): Move to read-md.c.
5250 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
5251 * read-md.h: Include hashtab.h.
5252 (md_name): Moved from read-rtl.c.
5253 (md_constant): Moved from read-md.h.
5254 (leading_string_hash, leading_string_eq_p, read_name)
5255 (read_constants, traverse_md_constants): Declare.
5256 * read-md.c (md_constants): Moved from read-rtl.c.
5257 (leading_string_hash, leading_string_eq_p): New functions.
5258 (read_name, read_constants, traverse_md_constants): Moved from
5261 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5263 * read-rtl.c (md_name): New structure.
5264 (read_name): Take an md_name instead of a buffer pointer.
5265 Use the "string" field instead of strcpy when expanding constants.
5266 (read_constants): Remove the tmp_char argument. Update the calls
5267 to read_name, using two local name buffers instead of the tmp_char
5268 argument. Merge the constant-creation code.
5269 (read_conditions): Remove the tmp_char argument. Update the calls
5270 to read_name, using a local name buffer instead of the tmp_char
5272 (read_mapping): Replace tmp_char variable with a local name buffer.
5273 Update the calls to read_name.
5274 (read_rtx_1): Likewise. Update the calls to read_constants and
5277 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5279 * Makefile.in (build/read-md.o): Depend on errors.h.
5280 * read-md.h (error_with_line): Declare.
5281 * read-md.c: Include errors.h.
5282 (message_with_line_1): New function, extracted from...
5283 (message_with_line): ...here.
5284 (error_with_line): New function.
5285 * genattrtab.c: If a call to message_with_line is followed by
5286 "have_error = 1;", replace both statements with a call to
5288 * genoutput.c: Likewise.
5289 * genpreds.c: Likewise.
5290 * genrecog.c: If a call to message_with_line is followed by
5291 "error_count++;", replace both statements with a call to
5293 (errorcount): Delete.
5294 (main): Don't check it.
5295 * gensupport.c: If a call to message_with_line is followed by
5296 "errors = 1;", replace both statements with a call to error_with_line.
5298 (process_define_cond_exec): Check have_error instead of errors.
5299 (init_md_reader_args_cb): Likewise. Don't set errors.
5301 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5303 * read-md.h (read_md_file): Declare.
5304 (read_char, unread_char): New functions.
5305 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5306 (read_quoted_string, read_string): Remove FILE * argument.
5307 * read-md.c (read_md_file): New variable.
5308 (read_md_filename, read_md_lineno): Update comments and remove
5309 unnecessary initialization.
5310 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5311 (read_escape, read_quoted_string, read_braced_string, read_string):
5312 Remove FILE * argument. Update calls accordingly, using read_char
5313 and unread_char instead of getc and ungetc.
5314 * rtl.h (read_rtx): Remove FILE * argument.
5315 * read-rtl.c (iterator_group): Remove FILE * argument from
5317 (iterator_traverse_data): Remove "infile" field.
5318 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5319 (add_mapping, read_name, read_constants, read_conditions)
5320 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5321 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5322 Remove file arguments from all calls, using read_char and unread_char
5323 instead of getc and ungetc.
5324 * gensupport.c (process_include): Preserve read_md_file around
5325 the include. Set read_md_file to the handle of the included file.
5326 Update call to read_rtx.
5327 (init_md_reader_args_cb): Set read_md_file to the handle of the file
5328 and remove local FILE *. Update calls to read_rtx.
5330 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5332 * read-md.h (read_rtx_lineno): Rename to...
5333 (read_md_lineno): ...this.
5334 (read_rtx_filename): Rename to...
5335 (read_md_filename): ...this.
5336 (copy_rtx_ptr_loc): Rename to...
5337 (copy_md_ptr_loc): ...this.
5338 (print_rtx_ptr_loc): Rename to...
5339 (print_md_ptr_loc): ...this.
5340 * read-md.c: Likewise. Update references after renaming.
5341 (string_obstack): Replace RTL with MD in comment.
5342 (set_rtx_ptr_loc): Rename to...
5343 (set_md_ptr_loc): ...this.
5344 (get_rtx_ptr_loc): Rename to...
5345 (get_md_ptr_loc): ...this.
5346 * genconditions.c: Update references after renaming.
5347 * genemit.c: Likewise.
5348 * genoutput.c: Likewise.
5349 * genpreds.c: Likewise.
5350 * gensupport.c: Likewise.
5351 * read-rtl.c: Likewise.
5353 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5355 * Makefile.in (READ_MD_H): New variable.
5356 (BUILD_RTL): Add build/read-md.o.
5357 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
5358 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5359 (build/genattrtab.o, build/genconditions.o build/genemit.o)
5360 (build/genextract.o, build/genflags.o, build/genoutput.o)
5361 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
5362 (build/read-md.o): New rule.
5363 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
5364 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
5365 * coretypes.h: ...here.
5366 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
5367 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
5368 * genattr.c: Include read-md.h.
5369 * genattrtab.c: Likewise.
5370 * genconditions.c: Likewise.
5371 * genemit.c: Likewise.
5372 * genextract.c: Likewise.
5373 * genflags.c: Likewise.
5374 * genoutput.c: Likewise.
5375 * genpreds.c: Likewise.
5376 * genrecog.c: Likewise.
5377 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
5378 (join_c_conditions, print_c_condition, read_rtx_filename)
5379 (read_rtx_lineno): Move to read-md.h.
5380 * read-rtl.c: Include read-md.h.
5381 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
5382 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
5383 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
5384 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
5385 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
5386 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
5387 (read_braced_string, read_string): Move to read-md.c.
5388 (read_rtx): Move some initialization to init_md_reader and call
5389 init_md_reader here.
5390 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
5392 * gensupport.c: Include read-md.h.
5393 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
5394 * read-md.h, read-md.c: New files.
5396 2010-06-10 Anatoly Sokolov <aesok@post.ru>
5398 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5399 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5400 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
5401 * config/moxie/moxie.c (moxie_function_value): Make static.
5402 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
5403 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5405 2010-06-10 Martin Jambor <mjambor@suse.cz>
5407 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
5408 * dbgcnt.def (tree_sra): New counter.
5409 * tree-sra.c: Include dbgcnt.h.
5410 (gate_intra_sra): Check tree_sra debug counter.
5412 2010-06-10 Martin Jambor <mjambor@suse.cz>
5414 PR tree-optimization/44258
5415 * tree-sra.c (build_access_subtree): Return false iff there is a
5417 (build_access_trees): Likewise.
5418 (analyze_all_variable_accesses): Disqualify candidates if
5419 build_access_trees returns true for them.
5421 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
5424 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
5425 tail-recurse into canonical node. Fast-forward over
5426 non-canonical VALUEs.
5428 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
5431 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
5432 (*addsi_1_zext) <TYPE_LEA>: Likewise.
5433 (add lea splitter): Likewise.
5434 (add_zext lea splitter): Likewise.
5436 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5438 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
5440 2010-06-10 Jan Hubicka <jh@suse.cz>
5442 * df-problems.c (df_live_problem_data): Add live_bitmaps.
5443 (df_live_alloc): Initialize problem data and live_osbtacks.
5444 (df_live_finalize): Remove obstack, problem data; do not
5446 (df_live_top_dump, df_live_bottom_dump): Do not dump old
5447 data when not allocated.
5448 (df_live_verify_solution_start): Do not allocate problem data.
5449 (df_live_verify_solution_end): Check if out is allocated.
5450 (struct df_md_problem_data): New structure.
5451 (df_md_alloc): Allocate problem data.
5452 (df_md_free): Free problem data; do not clear bitmaps.
5454 2010-06-10 Jan Beulich <jbeulich@novell.com>
5457 * configure.ac: Replace $() with ${} when intending to expand
5458 variables rather than invoking commands.
5459 * configure: Re-generate.
5461 2010-06-10 Jan Hubicka <jh@suse.cz>
5463 PR rtl-optimization/44460
5464 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5465 TYPE_NEEDS_CONSTRUCTING sanity check.
5467 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
5469 * doc/include/fdl.texi: Move to GFDL version 1.3.
5471 * doc/cpp.texi: Move to GFDL version 1.3.
5472 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
5473 * doc/gccint.texi: Move to GFDL version 1.3.
5474 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
5475 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
5476 * doc/invoke.texi: Move to GFDL version 1.3.
5478 2010-06-09 Jan Hubicka <jh@suse.cz>
5480 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
5482 (propagate) ... here; swap the order.
5484 2010-06-09 Jan Hubicka <jh@suse.cz>
5486 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
5487 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
5488 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
5489 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
5491 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
5493 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
5494 Do not the gather memory reference in the outer loop if the step
5497 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
5499 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
5500 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
5501 8 to 4. Minor change of the related comments.
5503 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5505 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
5506 the scev analysis when the variable is not used outside the loop
5507 in a close phi node: call compute_overall_effect_of_inner_loop.
5509 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5511 * graphite-sese-to-poly.c (single_pred_cond): Renamed
5512 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
5513 (build_sese_conditions_before): Renamed call to single_pred_cond.
5514 (build_sese_conditions_after): Same.
5516 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5518 * graphite-poly.h: Fix comments and indentation.
5519 * graphite-sese-to-poly.c: Same.
5520 (build_sese_conditions_before): Compute stmt and gbb only when needed.
5521 * tree-chrec.c: Fix comments and indentation.
5522 (tree-ssa-loop-niter.c): Same.
5524 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
5526 PR rtl-optimization/42461
5527 * dce.c (deletable_insn_p): Return true for const or pure calls again.
5528 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
5530 2010-06-09 Jan Hubicka <jh@suse.cz>
5532 * bitmap.c (bitmap_and): Walk array forward.
5533 (bitmap_and_compl_into): Likewise.
5534 (bitmap_xor): Likewise.
5535 (bitmap_xor_into): Likewise.
5536 (bitmap_equal_p): Likewise.
5537 (bitmap_intersect_p): Likewise.
5538 (bitmap_intersect_compl_p): Likewise.
5539 (bitmap_ior_and_into): Likewise.
5540 (bitmap_elt_copy): Likewise.
5541 (bitmap_and_compl): Likewise.
5542 (bitmap_elt_ior): Likewise.
5544 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
5546 * opts-common.c (prune_options): Ensure replacement argv array
5547 is correctly terminated by a NULL entry.
5549 2010-06-09 Jan Hubicka <jh@suse.cz>
5551 * cgraph.h (varpool_first_static_initializer,
5552 varpool_next_static_initializer): Make checking only when
5554 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
5555 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
5556 gcc_assert to gcc_checking_assert.
5557 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
5558 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
5559 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
5560 op_iter_init_phiuse, op_iter_init_phidef,
5561 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
5562 gcc_checking_assert.
5563 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
5564 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
5565 partition_is_global, live_on_entry, live_on_exit,
5566 live_merge_and_clear): Likewise.
5567 * system.h (gcc_checking_assert): New macro.
5568 * gimple.h (set_bb_seq): Use gcc_checking_assert.
5570 2010-06-09 Jason Merrill <jason@redhat.com>
5572 * Makefile.in (TAGS): Collect tags info from c-family.
5574 2010-06-09 Jan Hubicka <jh@suse.cz>
5576 * gimple.h (gcc_gimple_checking_assert): New macro.
5577 (gimple_set_def_ops, gimple_set_use_ops,
5578 gimple_set_vuse, gimple_set_vdef,
5579 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
5580 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
5581 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
5582 gimple_asm_output_op, gimple_asm_output_op_ptr,
5583 gimple_asm_set_output_op, gimple_asm_clobber_op,
5584 gimple_asm_set_clobber_op, gimple_asm_label_op,
5585 gimple_asm_set_label_op, gimple_try_set_kind,
5586 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5587 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5588 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5589 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5590 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5591 gimple_omp_for_set_initial, gimple_omp_for_final,
5592 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5593 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5594 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5595 conditional with ENABLE_GIMPLE_CHECKING.
5596 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5598 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
5600 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5601 (get_computation_cost_at): Use it.
5602 (determine_use_iv_cost_condition): Likewise.
5603 (determine_iv_cost): Likewise.
5605 2010-06-09 Richard Guenther <rguenther@suse.de>
5607 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5610 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
5612 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5614 2010-06-09 Martin Jambor <mjambor@suse.cz>
5616 PR tree-optimization/44423
5617 * tree-sra.c (dump_access): Dump also grp_assignment_read.
5618 (analyze_access_subtree): Pass negative allow_replacements to children
5619 if the current type is scalar.
5621 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5624 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
5625 * doc/plugins.texi (Plugin license check): Update information
5626 on type of plugin_is_GPL_compatible.
5627 * Makefile.in (PLUGINCC): Define as $(COMPILER).
5628 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
5630 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
5632 * config/arm/arm.c (thumb2_reorg): New function.
5633 (arm_reorg): Call it.
5634 * config/arm/thumb2.md (define_peephole2 for flag clobbering
5635 arithmetic operations): Delete.
5637 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
5640 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
5643 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5646 * gcc-plugin.h: Encapsulate all declarations in extern "C".
5648 2010-06-08 Jan Hubicka <jh@suse.cz>
5650 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
5651 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
5653 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
5655 PR tree-optimization/39874
5657 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
5659 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
5660 same_bool_result_p): New.
5661 (and_var_with_comparison, and_var_with_comparison_1,
5662 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
5663 (or_var_with_comparison, or_var_with_comparison_1,
5664 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
5665 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
5666 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
5667 of combine_comparisons.
5668 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
5670 2010-06-08 Anatoly Sokolov <aesok@post.ru>
5672 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5673 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5674 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
5675 pdp11_function_value_regno_p): New functions.
5676 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5677 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5679 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
5681 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
5682 Thumb-2 in the MINUS case.
5684 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5686 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5688 * doc/gty.texi (GTY Options): Document typed GC allocation and
5689 variable_size GTY option.
5691 * ggc-internal.h: New.
5693 * ggc.h: Update copyright year.
5694 (digit_string): Move to stringpool.c.
5695 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5696 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5697 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5698 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5699 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5700 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5701 (ggc_force_collect, ggc_get_size, ggc_statistics)
5702 (ggc_print_common_statistics): Move to ggc-internal.h.
5703 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5704 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5705 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5706 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5707 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5708 (ggc_alloc_zone_pass_stat): Remove.
5709 (ggc_internal_alloc_stat, ggc_internal_alloc)
5710 (ggc_internal_cleared_alloc_stat): New.
5711 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5712 (ggc_internal_vec_alloc_stat)
5713 (ggc_internal_cleared_vec_alloc_stat)
5714 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5715 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5716 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5717 (ggc_cleared_alloc_ptr_array_two_args): New.
5718 (htab_create_ggc, splay_tree_new_ggc): Redefine.
5719 (ggc_splay_alloc): Change the type of the first argument to
5721 (ggc_alloc_string): Make macro.
5722 (ggc_alloc_string_stat): New.
5723 (ggc_strdup): Redefine.
5724 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5725 (ggc_alloc_rtvec_sized): New.
5726 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5727 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5728 (ggc_internal_cleared_alloc_zone_stat)
5729 (ggc_internal_zone_alloc_stat)
5730 (ggc_internal_zone_cleared_alloc_stat)
5731 (ggc_internal_zone_vec_alloc_stat)
5732 (ggc_alloc_zone_rtx_def_stat)
5733 (ggc_alloc_zone_tree_node_stat)
5734 (ggc_alloc_zone_cleared_tree_node_stat)
5735 (ggc_alloc_cleared_gimple_statement_d_stat): New.
5737 * ggc-common.c: Include ggc-internal.h.
5738 (ggc_internal_cleared_alloc_stat): Rename from
5739 ggc_alloc_cleared_stat.
5740 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5741 (ggc_calloc): Remove.
5742 (ggc_cleared_alloc_htab_ignore_args): New.
5743 (ggc_cleared_alloc_ptr_array_two_args): New.
5744 (ggc_splay_alloc): Add obj_type parameter.
5745 (init_ggc_heuristics): Formatting fixes.
5747 * ggc-none.c: Update copyright year.
5748 (ggc_alloc_stat): Rename to ggc_alloc_stat.
5749 (ggc_alloc_cleared_stat): Rename to
5750 ggc_internal_cleared_alloc_stat.
5751 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5753 * ggc-page.c: Update copyright year. Include ggc-internal.h.
5754 Remove references to ggc_alloc in comments.
5755 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5756 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5757 (new_ggc_zone, destroy_ggc_zone): Remove.
5758 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5760 * ggc-zone.c: Include ggc-internal.h. Remove references to
5761 ggc_alloc in comments.
5762 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5763 (ggc_internal_alloc_zone_pass_stat): New.
5764 (ggc_internal_cleared_alloc_zone_stat): New.
5765 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5766 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5767 (new_ggc_zone, destroy_ggc_zone): Remove.
5769 * stringpool.c: Update copyright year. Include ggc-internal.h
5770 (digit_vector): Make static.
5771 (digit_string): Moved from ggc.h.
5772 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5773 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5775 * Makefile.in (GGC_INTERNAL_H): New.
5776 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5777 $(GGC_INTERNAL_H) to dependencies.
5779 * gentype.c: Update copyright year.
5780 (walk_type): Accept variable_size GTY option.
5781 (USED_BY_TYPED_GC_P): New macro.
5782 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
5783 whitespace at the end of strings.
5784 (get_type_specifier, variable_size_p): New functions.
5785 (alloc_quantity, alloc_zone): New enums.
5786 (write_typed_alloc_def): New function.
5787 (write_typed_struct_alloc_def): Likewise.
5788 (write_typed_typed_typedef_alloc_def): Likewise.
5789 (write_typed_alloc_defns): Likewise.
5790 (output_typename, write_splay_tree_allocator_def): Likewise.
5791 (write_splay_tree_allocators): Likewise.
5792 (main): Call write_typed_alloc_defns and
5793 write_splay_tree_allocators.
5795 * lto-streamer.h (lto_file_decl_data_ptr): New.
5797 * passes.c (order): Define using cgraph_node_ptr.
5799 * strinpool.c (struct string_pool_data): Declare nested_ptr using
5802 * gimple.h (union gimple_statement_d): Likewise.
5804 * rtl.h (struct rtx_def): Likewise.
5805 (struct rtvec_def): Likewise.
5807 * tree.h (union tree_node): Likewise.
5809 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5811 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5813 * tree-scalar-evolution.c (scev_initialize): Likewise.
5815 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5817 * dwarf2asm.c (dw2_force_const_mem): Likewise.
5819 * omp-low.c (lower_omp_critical): Likewise.
5821 * bitmap.h (struct bitmap_head_def): Update comment to not
5822 reference ggc_alloc.
5824 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5826 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5828 * ipa-prop.c (duplicate_ggc_array): Rename to
5829 duplicate_ipa_jump_func_array. Use typed GC allocation.
5830 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5832 * gimple.c (gimple_alloc_stat): Use
5833 ggc_alloc_cleared_gimple_statement_d_stat.
5835 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5837 * tree.c (make_node_stat): Use
5838 ggc_alloc_zone_cleared_tree_node_stat.
5839 (make_tree_vec_stat): Likewise.
5840 (build_vl_exp_stat): Likewise.
5841 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5842 (make_tree_binfo_stat): Likewise.
5843 (tree_cons_stat): Likewise.
5845 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5846 (shallow_copy_rtx_stat): Likewise.
5847 (make_node_stat): Likewise.
5849 * lto-symtab.c: Fix comment.
5851 * tree-cfg.c (create_bb): Update comment to not reference
5853 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5855 * varpool.c (varpool_node): Use typed GC allocation.
5856 (varpool_extra_name_alias): Likewise.
5858 * varasm.c (emutls_decl): Likewise.
5859 (get_unnamed_section): Likewise.
5860 (get_noswitch_section): Likewise.
5861 (get_section): Likewise.
5862 (get_block_for_section): Likewise.
5863 (build_constant_desc): Likewise.
5864 (create_constant_pool): Likewise.
5865 (force_const_mem): Likewise.
5867 * tree.c (build_vl_exp_stat): Likewise.
5868 (build_real): Likewise.
5869 (build_string): Likewise.
5870 (decl_debug_expr_insert): Likewise.
5871 (decl_value_expr_insert): Likewise.
5872 (type_hash_add): Likewise.
5873 (build_omp_clause): Likewise.
5875 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5877 * tree-ssa.c (init_tree_ssa): Likewise.
5879 * tree-ssa-structalias.c (heapvar_insert): Likewise.
5881 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5883 * tree-ssa-loop-niter.c (record_estimate): Likewise.
5885 * tree-ssa-alias.c (get_ptr_info): Likewise.
5887 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5889 * tree-phinodes.c (allocate_phi_node): Likewise.
5891 * tree-iterator.c (tsi_link_before): Likewise.
5892 (tsi_link_after): Likewise.
5894 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5896 * tree-dfa.c (create_var_ann): Likewise.
5898 * tree-cfg.c (create_bb): Likewise.
5900 * toplev.c (alloc_for_identifier_to_locale): Likewise.
5901 (general_init): Likewise.
5903 * stringpool.c (stringpool_ggc_alloc): Likewise.
5904 (gt_pch_save_stringpool): Likewise.
5906 * sese.c (if_region_set_false_region): Likewise.
5908 * passes.c (do_per_function_toporder): Likewise.
5910 * optabs.c (set_optab_libfunc): Likewise.
5911 (set_conv_libfunc): Likewise.
5913 * lto-symtab.c (lto_symtab_register_decl): Likewise.
5915 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5916 (input_eh_region): Likewise.
5917 (input_eh_lp): Likewise.
5918 (make_new_block): Likewise.
5919 (unpack_ts_real_cst_value_fields): Likewise.
5921 * lto-section-in.c (lto_new_in_decl_state): Likewise.
5923 * lto-cgraph.c (input_node_opt_summary): Likewise.
5925 * loop-init.c (loop_optimizer_init): Likewise.
5927 * lambda.h (lambda_vector_new): Likewise.
5929 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5931 * ira.c (update_equiv_regs): Likewise.
5933 * ipa.c (cgraph_node_set_new): Likewise.
5934 (cgraph_node_set_add): Likewise.
5935 (varpool_node_set_new): Likewise.
5936 (varpool_node_set_add): Likewise.
5938 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5939 (duplicate_ipa_jump_func_array): Likewise.
5940 (ipa_read_node_info): Likewise.
5942 * ipa-cp.c (ipcp_create_replace_map): Likewise.
5944 * integrate.c (get_hard_reg_initial_val): Likewise.
5946 * gimple.c (gimple_alloc_stat): Likewise.
5947 (gimple_build_omp_for): Likewise.
5948 (gimple_seq_alloc): Likewise.
5949 (gimple_copy): Likewise.
5951 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5952 (gsi_insert_after_without_update): Likewise.
5954 * function.c (add_frame_space): Likewise.
5955 (insert_temp_slot_address): Likewise.
5956 (assign_stack_temp_for_type): Likewise.
5957 (allocate_struct_function): Likewise.
5958 (types_used_by_var_decl_insert): Likewise.
5960 * except.c (init_eh_for_function): Likewise.
5961 (gen_eh_region): Likewise.
5962 (gen_eh_region_catch): Likewise.
5963 (gen_eh_landing_pad): Likewise.
5964 (add_call_site): Likewise.
5966 * emit-rtl.c (get_mem_attrs): Likewise.
5967 (get_reg_attrs): Likewise.
5968 (start_sequence): Likewise.
5969 (init_emit): Likewise.
5971 * dwarf2out.c (new_cfi): Likewise.
5972 (queue_reg_save): Likewise.
5973 (dwarf2out_frame_init): Likewise.
5974 (new_loc_descr): Likewise.
5975 (find_AT_string): Likewise.
5976 (new_die): Likewise.
5977 (add_var_loc_to_decl): Likewise.
5978 (clone_die): Likewise.
5979 (clone_as_declaration): Likewise.
5980 (break_out_comdat_types): Likewise.
5981 (new_loc_list): Likewise.
5982 (loc_descriptor): Likewise.
5983 (add_loc_descr_to_each): Likewise.
5984 (add_const_value_attribute): Likewise.
5985 (tree_add_const_value_attribute): Likewise.
5986 (add_comp_dir_attribute): Likewise.
5987 (add_name_and_src_coords_attributes): Likewise.
5988 (lookup_filename): Likewise.
5989 (store_vcall_insn): Likewise.
5990 (dwarf2out_init): Likewise.
5992 * dbxout.c (dbxout_init): Likewise.
5994 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5996 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5998 * config/score/score7.c (score7_output_external): Likewise.
6000 * config/score/score3.c (score3_output_external): Likewise.
6002 * config/s390/s390.c (s390_init_machine_status): Likewise.
6004 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6005 (rs6000_init_machine_status): Likewise.
6006 (output_toc): Likewise.
6008 * config/pa/pa.c (pa_init_machine_status): Likewise.
6009 (get_deferred_plabel): Likewise.
6011 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6013 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6015 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6017 * config/mep/mep.c (mep_init_machine_status): Likewise.
6018 (mep_note_pragma_flag): Likewise.
6020 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6022 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6024 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6026 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6027 (i386_pe_maybe_record_exported_symbol): Likewise.
6029 * config/i386/i386.c (get_dllimport_decl): Likewise.
6030 (ix86_init_machine_status): Likewise.
6031 (assign_386_stack_local): Likewise.
6033 * config/frv/frv.c (frv_init_machine_status): Likewise.
6035 * config/darwin.c (machopic_indirection_name): Likewise.
6037 * config/cris/cris.c (cris_init_machine_status): Likewise.
6039 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6041 * config/avr/avr.c (avr_init_machine_status): Likewise.
6043 * config/arm/arm.c (arm_init_machine_status): Likewise.
6045 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6046 (alpha_need_linkage): Likewise.
6047 (alpha_use_linkage): Likewise.
6049 * cgraph.c (cgraph_allocate_node): Likewise.
6050 (cgraph_create_edge_1): Likewise.
6051 (cgraph_create_indirect_edge): Likewise.
6052 (cgraph_add_asm_node): Likewise.
6054 * cfgrtl.c (init_rtl_bb_info): Likewise.
6056 * cfgloop.c (alloc_loop): Likewise.
6057 (rescan_loop_exit): Likewise.
6059 * cfg.c (init_flow): Likewise.
6060 (alloc_block): Likewise.
6061 (unchecked_make_edge): Likewise.
6063 * c-parser.c (c_parse_init): Likewise.
6064 (c_parse_file): Likewise.
6066 * c-decl.c (bind): Likewise.
6067 (record_inline_static): Likewise.
6068 (push_scope): Likewise.
6069 (make_label): Likewise.
6070 (lookup_label_for_goto): Likewise.
6071 (finish_struct): Likewise.
6072 (finish_enum): Likewise.
6073 (c_push_function_context): Likewise.
6075 * bitmap.c (bitmap_element_allocate): Likewise.
6076 (bitmap_gc_alloc_stat): Likewise.
6078 * alias.c (record_alias_subset): Likewise.
6079 (init_alias_analysis): Likewise.
6081 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
6083 * fold-const.c (fold_comparison): Remove redundant parenthesis.
6084 * tree-inline.c (expand_call_inline): Pass translated return value of
6085 cgraph_inline_failed_string to diagnostic function.
6087 2010-06-08 Andrew Pinski <pinskia@gmail.com>
6088 Shujing Zhao <pearly.zhao@oracle.com>
6091 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6092 implicit bad conversions is initialization.
6093 (error_init): Use gmsgid instead of msgid for argument name and change
6095 (pedwarn_init): Use gmsgid instead of msgid for argument name and
6096 change the call for pedwarn.
6097 (warning_init): Use gmsgid instead of msgid for argument name and
6098 change the call for warning.
6100 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
6102 * config/mips/mips-protos.h (mips_print_operand): Delete.
6103 (mips_print_operand_address): Delete.
6104 * config/mips/mips.h (mips_print_operand_punct): Delete.
6105 (PRINT_OPERAND): Delete.
6106 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6107 (PRINT_OPERAND_ADDRESS): Delete.
6108 * config/mips/mips.c (mips_print_operand_punct): Make static.
6109 (mips_print_operand_address): Make static.
6110 (mips_print_operand): Make static. Call
6111 mips_print_operand_punct_valid_p.
6112 (mips_print_operand_punct_valid_p): New function.
6113 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6114 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6116 2010-06-07 Jan Hubicka <jh@suse.cz>
6119 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6122 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
6124 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6127 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6129 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6130 attributes): Document gas.
6132 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
6134 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6135 <TYPE_LEA>: Split instruction.
6136 <default>: Remove alternative 2 handling.
6137 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6138 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6139 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6141 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6142 (ashift_zext lea splitter): Use DImode for multiplication.
6144 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6145 to generate addition.
6147 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6149 * common.opt (fira-verbose): Use Var.
6150 (fpcc-struct-return): Use Init instead of VarExists.
6151 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6153 * flags.h (flag_signed_char, flag_short_enums,
6154 flag_pcc_struct_return, flag_ira_verbose,
6155 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6156 * toplev.c (flag_detailed_statistics, flag_signed_char,
6157 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6158 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6159 * toplev.h (flag_crossjumping, flag_if_conversion,
6160 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6161 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6162 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6163 flag_cprop_registers, time_report, flag_ira_loop_pressure,
6164 flag_ira_coalesce, flag_ira_move_spills,
6165 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6167 2010-06-07 Jan Hubicka <jh@suse.cz>
6169 * df-core.c (df_analyze_problem): Do verification after allocation.
6171 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6172 (df_lr_alloc): Initialize problem data; move bitmaps to
6174 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6175 (df_lr_verify_solution_start): Do not initialize problem data;
6176 allocate bitmaps in lr_bitmaps.
6177 (df_lr_verify_solution_end): Do not free problem data.
6179 2010-06-07 Jan Hubicka <jh@suse.cz>
6181 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6182 if caller is noreturn.
6183 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6184 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6185 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6186 * ipa-pure-const.c (check_decl): Add IPA parameter.
6187 (state_from_flags): New function.
6188 (better_state, worse_state): New functions.
6189 (check_call): When in IPA mode, do not care about callees.
6190 (check_load, check_store): Update.
6191 (check_ipa_load, check_ipa_store): New.
6192 (check_stmt): When in IPA mode, use IPA checkers.
6193 (analyze_function): Use state_from_flags.
6194 (propagate): Check indirect edges and references.
6196 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
6198 PR rtl-optimization/44404
6199 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6200 of count_occurrences to see if it's safe to modify mem_insn.
6202 2010-06-07 Richard Guenther <rguenther@suse.de>
6204 * gimplify.c (gimplify_cleanup_point_expr): For empty body
6205 and EH-only cleanup drop the cleanup instead of inserting it
6208 2010-06-07 Ira Rosen <irar@il.ibm.com>
6210 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6212 * targhooks.c (default_builtin_vectorization_cost): New function.
6213 * targhooks.h (default_builtin_vectorization_cost): Declare.
6214 * target.h (enum vect_cost_for_stmt): Define.
6215 (builtin_vectorization_cost): Change argument and comment.
6216 * tree-vectorizer.h: Remove cost model macros.
6217 * tree-vect-loop.c: Include target.h.
6218 (vect_get_cost): New function.
6219 (vect_estimate_min_profitable_iters): Replace cost model macros with
6220 calls to vect_get_cost.
6221 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
6222 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
6223 default implementation.
6224 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
6225 calls to target hook builtin_vectorization_cost.
6226 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6228 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
6229 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
6230 implementation to return costs.
6231 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6232 * config/spu/spu.h: Remove vectorizer cost model macros.
6233 * config/i386/i386.h: Likewise.
6234 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
6235 a call to target hook builtin_vectorization_cost.
6237 2010-06-06 Sriraman Tallam <tmsriram@google.com>
6240 * config/i386/i386.c (override_options): Turn zee pass on for level 2
6241 and above and defer till target is known.
6242 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
6245 2010-05-25 Jan Hubicka <jh@suse.cz>
6247 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
6248 (df_compact_blocks): Likewise.
6249 * df.h (struct df): Turn hardware_regs_used,
6250 regular_block_artificial_uses, eh_block_artificial_uses,
6251 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
6253 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
6254 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
6255 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
6256 df_scan_blocks, df_insn_delete, df_insn_rescan,
6257 df_insn_rescan_debug_internal, df_insn_rescan_all,
6258 df_process_deferred_rescans, df_process_deferred_rescans,
6259 df_notes_rescan, df_get_call_refs, df_get_call_refs,
6260 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
6261 df_record_entry_block_defs, df_record_exit_block_uses,
6262 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
6263 df_scan_verify): Update.
6265 2010-05-25 Dodji Seketeli <dodji@redhat.com>
6268 * c-common.c (is_typedef_decl): Move this definition ...
6269 * tree.c (is_typedef_decl): ... here.
6270 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6271 * c-common.h (is_typedef_decl): Move this declaration ...
6272 * tree.h (is_typedef_decl): ... here.
6273 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6274 * dwarf2out.c (is_naming_typedef_decl): New function.
6275 (gen_tagged_type_die): Split out of ...
6276 (gen_type_die_with_usage): ... this function. When an anonymous
6277 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6278 is emitted for the typedef.
6279 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6280 anonymous tagged types.
6282 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
6285 * c-decl.c (grokdeclarator): Delete warning.
6287 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
6289 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6290 newly built CALL_EXPR.
6291 * tree-profile.c (tree_profiling): Don't profile functions produced
6294 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
6298 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6299 endianness-independent.
6301 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6303 * c-common.c: Move to c-family/.
6304 * c-common.def: Likewise.
6305 * c-common.h: Likewise.
6306 * c-cppbuiltin.c: Likewise.
6307 * c-dump.c: Likewise.
6308 * c-format.c: Likewise.
6309 * c-format.h : Likewise.
6310 * c-gimplify.c: Likewise.
6311 * c-lex.c: Likewise.
6312 * c-omp.c: Likewise.
6314 * c-opts.c: Likewise.
6315 * c-pch.c: Likewise.
6316 * c-ppoutput.c: Likewise.
6317 * c-pragma.c: Likewise.
6318 * c-pragma.h: Likewise.
6319 * c-pretty-print.c: Likewise.
6320 * c-pretty-print.h: Likewise.
6321 * c-semantics.c: Likewise.
6322 * stub-objc.c: Likewise.
6324 * gengtype.c (get_file_langdir): Special-case files in c-family/.
6325 (get_output_file_with_visibility): Fix name for c-common.h.
6326 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6328 * c-tree.h: Update include path for moved files.
6329 * c-lang.c: Likewise.
6330 * c-lang.h: Likewise.
6331 * c-parser.c: Likewise.
6332 * c-convert.c: Likewise.
6333 * c-decl.c: Likewise.
6334 * c-objc-common.c: Likewise.
6335 * configure.ac: Make sure c-family/ exists in the build directory.
6336 * configure: Regenerate.
6337 * Makefile.in: Update paths for moved files. Regroup files per
6338 location and update dependencies. Move generated_files down after
6341 * config/spu/spu-c.c: Update paths for moved files.
6342 * config/mep/mep-pragma.c: Likewise.
6343 * config/darwin-c.c: Likewise.
6344 * config/i386/msformat-c.c: Likewise.
6345 * config/i386/i386-c.c: Likewise.
6346 * config/avr/avr-c.c: Likewise.
6347 * config/sol2-c.c: Likewise.
6348 * config/ia64/ia64-c.c: Likewise.
6349 * config/rs6000/rs6000-c.c: Likewise.
6350 * config/arm/arm.c: Likewise.
6351 * config/arm/arm-c.c: Likewise.
6352 * config/h8300/h8300.c: Likewise.
6353 * config/v850/v850-c.c: Likewise.
6355 * config/t-darwin: Fix dependencies for moved files.
6356 * config/t-sol2: Fix dependencies for moved files.
6357 * config/mep/t-mep: Fix dependencies for moved files.
6358 * config/ia64/t-ia64: Fix dependencies for moved files.
6359 * config/rs6000/t-rs6000: Fix dependencies for moved files.
6360 * config/v850/t-v850: Fix dependencies for moved files.
6361 * config/v850/t-v850e: Fix dependencies for moved files.
6363 * config/m32c/m32c-pragma.c
6365 * po/exgettext: Look in c-family/ also.
6367 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
6369 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
6370 (mark_control_dependent_edges_necessary): Call it instead of marking
6371 the last statement manually.
6372 (propagate_necessity): Likewise.
6374 2010-06-05 Jan Hubicka <jh@suse.cz>
6376 * basic-block.h (compute_dominance_frontiers): Updated.
6377 (compute_idf): Likewise.
6379 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
6380 for dominance frontiers.
6381 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
6382 (insert_updated_phi_nodes_for): Likewise.
6383 (update_ssa): Likewise.
6384 * cfganal.c (compute_dominance_frontiers_1): Likewise.
6385 (compute_dominance_frontiers): Likewise.
6386 (compute_idf): Likewise.
6387 * df-problems.c (df_md_local_compute): Likewise.
6389 2010-06-05 Anatoly Sokolov <aesok@post.ru>
6391 * target.h (struct gcc_target): Add memory_move_cost field.
6392 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
6393 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
6394 * targhooks.c (default_memory_move_cost): New function.
6395 * targhooks.h (default_memory_move_cost): Declare function.
6396 * reload.h (memory_move_cost): Declare.
6397 (memory_move_secondary_cost): Change type of 'in' argument to bool.
6398 * reginfo.c (memory_move_cost): New function.
6399 (memory_move_secondary_cost): Change type of 'in' argument to bool.
6400 * ira.h (ira_memory_move_cost): Update comment.
6401 * ira.c: (ira_memory_move_cost): Update comment.
6402 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
6403 with memory_move_cost.
6404 * postreload.c (reload_cse_simplify_set): (Ditto.).
6405 * reload1.c (choose_reload_regs): (Ditto.).
6406 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
6407 (MEMORY_MOVE_COST): Revise documentation.
6409 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6410 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6411 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
6412 type of 'in' argument to bool.
6413 (TARGET_MEMORY_MOVE_COST): Define.
6415 2010-06-05 Jan Hubicka <jh@suse.cz>
6417 * ipa-pure-const.c (propagate): Fix typo in handling of functions
6418 that cannot return. Be more careful when merging the results with
6419 previously known ones.
6421 2010-06-05 Matthias Klose <doko@ubuntu.com>
6423 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
6424 function to add the -iplugindir option.
6425 (find_plugindir_spec_function): Add new declaration and function.
6426 (static_spec_func): Use it for "find-plugindir".
6428 2010-06-05 Jakub Jelinek <jakub@redhat.com>
6431 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
6432 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
6433 statement expression.
6435 2010-06-05 Jan Hubicka <jh@suse.cz>
6437 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
6438 (df_rd_problem_data): Convert sparse_invalidated_by_call,
6439 dense_invalidated_by_call to bitmap head.
6440 (df_rd_alloc, df_rd_bb_local_compute_process_def,
6441 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
6442 df_rd_start_dump, df_lr_verify_transfer_functions,
6443 df_live_verify_transfer_functions, df_chain_create_bb,
6444 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
6445 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
6446 df_simulate_one_insn_forwards, df_md_alloc,
6447 df_md_bb_local_compute_process_def,
6448 df_md_bb_local_compute_process_def, df_md_local_compute,
6449 df_md_transfer_function df_md_free): Update.
6451 2010-06-05 Joseph Myers <joseph@codesourcery.com>
6454 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
6455 target type for ADDR_EXPR; require no changes to qualifiers except
6457 * c-tree.h (c_build_type_variant): Remove.
6459 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
6461 * genautomata.c (get_excl_set): Do work per element, not per char.
6462 (check_presence_pattern_sets): Similar.
6463 (check_absence_pattern_sets): Similar.
6465 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
6467 * genautomata.c (curr_state_pass_num): Delete.
6468 (min_issue_delay_pass_states): Delete.
6469 (min_issue_delay): Delete.
6470 (initiate_min_issue_delay_pass_states): Delete.
6471 (output_min_issue_delay_table): Compute min_issue_delay_vect
6472 using a breadth-first search variant.
6473 (output_tables): Don't call initiate_min_issue_delay_pass_states.
6475 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
6478 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
6479 (df_byte_lr_bb_local_compute): Likewise.
6481 2010-06-03 Jason Merrill <jason@redhat.com>
6483 Implement noexcept operator (5.3.7)
6484 * c-common.c (c_common_reswords): Add noexcept.
6485 * c-common.h (enum rid): Add RID_NOEXCEPT.
6487 2010-06-04 Joseph Myers <joseph@codesourcery.com>
6489 * config/darwin-driver.c (darwin_default_min_version): Use
6490 GCC-specific formats in diagnostics.
6491 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
6493 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
6494 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
6495 eval_spec_function, handle_braces, process_brace_body, main,
6496 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
6497 getenv_spec_function, compare_version_strings,
6498 version_compare_spec_function): Use GCC-specific formats in
6501 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6503 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
6504 that operand 0 and operand 1 are equal.
6505 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
6506 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
6507 and operand 1 are equal.
6508 <default>: Ditto. Remove ??? comment.
6509 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
6510 and operand 1 are equal.
6511 <default>: Ditto. Remove ??? comment.
6512 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
6514 (*add<mode>_4) <default>: Ditto.
6515 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
6517 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
6519 * config/i386/i386-protos.h (ix86_print_operand): Declare.
6520 * config/i386/i386.c (ix86_print_operand): Make non-static.
6521 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
6522 * output.h (output_operand): Declare.
6523 * final.c (output_operand): Make non-static.
6525 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
6527 PR rtl-optimization/44013
6528 * sched-deps.c (add_dependence_list_and_free): Don't free lists
6529 when processing debug insns.
6532 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
6533 recursing. Check that recursion is bounded. Rename inner var
6534 to avoid hiding incoming argument.
6536 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6538 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
6543 (*addqi_ext_1_rex64): Ditto.
6544 (*addqi_ext_1): Ditto.
6546 (*addqi_4): Check for incdec_operand in QImode.
6548 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
6549 using SWI mode iterator.
6550 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
6551 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
6553 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
6554 using SWI mode iterator.
6556 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6559 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
6560 * c-format.c (gcc_diag_flag_specs): Add hash.
6561 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
6562 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
6563 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
6564 pp_c_cv_qualifiers. Handle qualifiers spelling here.
6565 (pp_c_type_qualifier_list): Call the function above.
6566 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
6567 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
6568 (WARN_FOR_QUALIFIERS): New macro.
6569 (convert_for_assignment): Use it.
6571 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
6573 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
6575 2010-06-04 Jan Hubicka <jh@suse.cz>
6577 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
6578 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
6579 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
6580 DF_BYTE_LR_OUT): Update for embedded bitmaps.
6581 * fwprop.c (single_def_use_enter_block): Likewise.
6582 * ddg.c (create_ddg_dep_from_intra_loop_link,
6583 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6584 * loop-iv.c (latch_dominating_def): Likewise.
6585 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6586 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6587 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6588 df_rd_transfer_function, df_rd_top_dump,
6589 df_rd_bottom_dump): Update.
6590 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6591 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6592 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6593 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6594 df_lr_verify_solution_start, df_lr_verify_solution_end,
6595 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6596 df_live_free_bb_info, df_live_alloc, df_live_reset,
6597 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6598 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6599 df_live_verify_solution_start, df_live_verify_solution_end,
6600 df_live_verify_transfer_functions, df_chain_create_bb,
6601 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6602 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6603 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6604 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6605 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6606 df_byte_lr_transfer_function, df_byte_lr_top_dump,
6607 df_byte_lr_bottom_dump, df_create_unused_note,
6608 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6609 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6610 df_md_transfer_function, df_md_init, df_md_confluence_0,
6612 df_md_top_dump, df_md_bottom_dump): Update.
6613 (struct df_lr_problem_data): Embedd bitmap headers.
6615 2010-06-04 Jan Hubicka <jh@suse.cz>
6617 * dce.c (dce_process_block): Do not re-scan already marked
6620 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
6622 PR rtl-optimization/39871
6623 PR rtl-optimization/40615
6624 PR rtl-optimization/42500
6625 PR rtl-optimization/42502
6626 * ira.c (init_reg_equiv_memory_loc: New function.
6627 (ira): Call it twice.
6628 * reload.h (calculate_elim_costs_all_insns): Declare.
6629 * ira-costs.c: Include "reload.h".
6630 (regno_equiv_gains): New static variable.
6631 (init_costs): Allocate it.
6632 (finish_costs): Free it.
6633 (ira_costs): Call calculate_elim_costs_all_insns.
6634 (find_costs_and_classes): Take estimated elimination costs
6636 (ira_adjust_equiv_reg_cost): New function.
6637 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
6638 * reload1.c (init_eliminable_invariants, free_reg_equiv,
6639 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
6640 (elim_bb): New static variable.
6641 (reload): Move code out of here into init_eliminable_invariants and
6642 free_reg_equiv. Call them.
6643 (calculate_elim_costs_all_insns): New function.
6644 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
6645 all callers changed. If FOR_COSTS is true, don't call alter_reg,
6646 but call note_reg_elim_costly if we turned a valid memory address
6647 into an invalid one.
6648 * Makefile.in (ira-costs.o): Depend on reload.h.
6650 2010-06-04 Julian Brown <julian@codesourcery.com>
6652 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
6655 2010-06-04 Richard Guenther <rguenther@suse.de>
6658 * cgraph.h (struct varpool_node): Add lto_file_data field.
6659 * lto-cgraph.c (input_varpool_node): Initialize it.
6661 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6663 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
6664 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
6665 predicate in "type" attribute calculation.
6666 (*addsi_1_zext): Ditto.
6667 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
6668 (*addsi_2_zext): Ditto.
6669 (*add<mode>_3): Ditto.
6670 (*addsi_3_zext): Ditto.
6671 (*add<mode>_5): Ditto.
6673 2010-06-03 Jan Hubicka <jh@suse.cz>
6675 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
6677 * cfganal.c (compute_dominance_frontiers_1): Likewise.
6679 2010-06-03 Jan Hubicka <jh@suse.cz>
6681 * df-problems.c (df_create_unused_note, df_note_bb_compute):
6682 micro-optimize the checks when to add new note.
6684 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
6686 * final.c (output_asm_insn): Call
6687 targetm.asm_out.print_operand_punct_valid_p. Update comments.
6688 (output_operand): Call targetm.asm_out.print_operand. Update comments.
6689 (output_address): Call targetm.asm_out.print_operand_address.
6691 * target.h (struct gcc_target): Add print_operand,
6692 print_operand_address, and print_operand_punct_valid_p fields.
6693 * targhooks.h (default_print_operand): Declare.
6694 (default_print_operand_address): Declare.
6695 (default_print_operand_punct_valid_p): Declare.
6696 * targhooks.c (default_print_operand): Define.
6697 (default_print_operand_address): Define.
6698 (default_print_operand_punct_valid_p): Define.
6699 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6700 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6701 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6702 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6703 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6704 * vmsdbgout.c (addr_const_to_string): Update comment.
6705 * config/i386/i386.c (print_operand): Rename to...
6706 (ix86_print_operand): ...this. Make static.
6707 (print_operand_address): Rename to...
6708 (ix86_print_operand_address): ...this. Make static. Call
6709 ix86_print_operand instead of PRINT_OPERAND.
6710 (ix86_print_operand_punct_valid_p): New function.
6711 (TARGET_PRINT_OPERAND): Define.
6712 (TARGET_PRINT_OPERAND_ADDRESS): Define.
6713 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6714 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6715 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6716 (PRINT_OPERAND): Delete.
6717 (PRINT_OPERAND_ADDRESS): Delete.
6718 * config/i386/i386-protos.h (print_operand): Delete prototype.
6719 (print_operand_address): Delete prototype.
6721 2010-06-03 Richard Guenther <rguenther@suse.de>
6723 PR tree-optimization/44403
6724 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6725 Preserve pointer qualifiers.
6726 (vect_create_data_ref_ptr): Likewise.
6728 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
6731 * defaults.h (MAX_FIXED_MODE_SIZE): New.
6733 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6735 2010-06-03 Jakub Jelinek <jakub@redhat.com>
6738 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6739 return false if merging the bbs would lead to goto_locus
6740 location being lost from the IL.
6742 2010-06-03 Jan Hubicka <jh@suse.cz>
6743 Jakub Jelinek <jakub@redhat.com>
6745 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6746 set->regs[i] is NULL or has just one entry.
6748 2010-06-03 Jan Hubicka <jh@suse.cz>
6750 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6751 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6753 2010-06-03 Paul Brook <paul@codesourcery.com>
6755 * config/arm/arm.c (FL_TUNE): Define.
6756 (arm_default_cpu, arm_cpu_select): Remove.
6757 (all_cores): Populate core field.
6758 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6759 (arm_find_cpu): New function.
6760 (arm_handle_option): Lookup cpu/architecture names.
6761 (arm_override_options): Cleanup mcpu/march/mtune handling.
6762 (arm_file_start): Ditto.
6764 2010-06-03 Alan Modra <amodra@gmail.com>
6767 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6768 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6769 rtx to gen_load_toc_v4_PIC_1b. Tidy.
6770 (rs6000_emit_load_toc_table): Likewise.
6772 2010-06-02 Jan Hubicka <jh@suse.cz>
6774 * passes.c (init_optimization_passes): Put ipa reference
6775 after ipa pure-const.
6777 2010-06-02 Jan Hubicka <jh@suse.cz>
6779 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6780 calls_read_all and calls_write_all.
6781 (get_reference_optimization_summary): Fix formatting.
6782 (is_proper_for_analysis): Check that decl is not readonly.
6783 (propagate_bits): Check CONST/PURE/noreturn flags.
6784 (ipa_init): Move all_module_statics to optimization_summary_obstack.
6785 (analyze_function): Ignore indirect edges.
6786 (copy_global_bitmap): For all module statics, do nothing.
6787 (generate_summary): Do not print calls_read_all/calls_write_all.
6788 (read_write_all_from_decl): Take node as argument; check
6789 cgraph_node_cannot_return.
6790 (propagate): Reorganize read_all/write_all computation;
6791 check indirect edges; check ecf flags; use all_module_statics
6792 in the results; do not free all_module_statics.
6793 (stream_out_bitmap): Handle all_module_statics.
6794 (ipa_reference_write_optimization_summary): Likewise; use
6795 varpool/cgraph encoders to get boundaries.
6796 (ipa_reference_read_optimization_summary): Read in all_module_statics;
6797 use it when possible.
6799 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6802 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6803 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6805 * doc/extend.texi (powerpc builtins): Document vec_recip,
6806 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6808 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6809 (rs6000_emit_swrsqrt): Ditto.
6810 (rs6000_emit_swdivsf): Delete.
6811 (rs6000_emit_swdivdf): Ditto.
6812 (rs6000_emit_swrsqrtsf): Ditto.
6814 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6815 describe the reciprocal estimate support for each type.
6816 (recip_options): Map -mrecip=<opt> into option bits.
6817 (gen_2arg_fn_t): New typedef for binary rtx gen function.
6818 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6819 reciprocal estimate instructions.
6820 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6821 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6822 Set up rs6000_recip_bits based on the -mrecip* options. Print the
6823 cost information if -mdebug=cost or -mdebug=reg.
6824 (rs6000_override_options): Set -mrecip-precision for power6, and
6825 power7 machines. If -mvsx or -mdfp, enable various options that
6826 came in previous instruction set ISAs, unless the option was
6827 explicitly disabled by the command line option. Parse
6828 -mrecip=<opt> options.
6829 (rs6000_builtin_vectorized_function): Add support for vectorizing
6830 the reciprocal estimate builtins and expansions.
6831 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6832 (bdesc_2arg): Add reciprocal estimate builtins.
6833 (bdesc_1arg): Add reciprocal square root estimate builtins.
6834 (rs6000_expand_builtin): Rewrite to use a switch statement,
6835 instead of multiple if/then/elses. Add reciprocal estimate builtins.
6836 (rs6000_init_builtins): Create declarations for reciprocal
6838 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6839 sized, prefer traditional floating point registers, if integer
6840 vector types, prefer altivec registers. Don't actually look at
6841 the memory address any more.
6842 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6844 (rs6000_load_constant_and_splat): New helper function to load up
6845 the constant for reciprocal estimate instructions.
6846 (rs6000_emit_madd): New helper function for generating
6847 multiply/add type instructions, based on the current switches.
6848 (rs6000_emit_msub): Ditto.
6849 (rs6000_emit_mnsub): Ditto.
6850 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6851 replace a divide with a reciprocal estimate and fixup, adding
6852 support for machines with high precision and vectors.
6853 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6854 low precision machines.
6855 (rs6000_emit_swdiv): New common function to be called to replace a
6856 division with reciprocal estimate and fixup.
6857 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
6858 for double and vector types. Add support for high precision machines.
6860 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6861 the reciprocal estimate instructions can be generated.
6862 (TARGET_FRE): Ditto.
6863 (TARGET_FRSQRTES): Ditto.
6864 (TARGET_FRSQRTE): Ditto.
6865 (RS6000_RECIP_*): New macros for reciprocal estimate support.
6867 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6868 square root estimate on vectors.
6869 (re<mode>2): New insn for reciprocal division estimate on vectors.
6871 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6873 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6874 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6875 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6876 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6877 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6878 (RS6000_BUILTIN_RSQRT): Ditto.
6879 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6880 floating point builtin.
6882 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6883 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6884 __RECIP_PRECISION__ based on the command line switches.
6885 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6887 * config/rs6000/rs6000.opt (-mrecip): Document add support for
6888 replacing division instructions with reciprocal estimate and fixup.
6889 (-mrecip=<opt>): New option.
6890 (-mrecip-precision): Ditto.
6892 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6893 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6894 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6897 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6898 (UNSPEC_VREFP): Ditto.
6899 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6900 conterparts with regard to support of -mno-fused-madd and -ffast-math.
6901 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6902 reciprocal estimate instructions to be generated.
6903 (altivec_vrefp): Ditto.
6905 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6907 (rreg): New mode attribute for reciprocal estimate support.
6908 (recip<mode>3): New insn for division using reciprocal estimate
6910 (divide define_split): New define_split to convert floating point
6911 division to use reciprocal estimate if the user used the
6912 appropriate options and the split is run when we can add new
6913 pseudo registers for the fixup.
6914 (rsqrt<mode>2): New insn for reciprocal square root support.
6915 (recipsf3): Move into recip<mode>3.
6917 (fres): Use TARGET_FRES.
6918 (rsqrtsf2): Move into rsqrt<mode>2.
6919 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6920 (copysignsf3): Add support for VSX.
6921 (fred): Use TARGET_FRE.
6923 (rsqrtdf_internal1): New function for frsqrte instruciton.
6925 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6928 2010-06-03 Richard Guenther <rguenther@suse.de>
6931 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6932 (set_user_assembler_libfunc): Likewise.
6934 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6936 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6938 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6940 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6941 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6942 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6943 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6944 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6945 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6946 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6947 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6948 * defaults.h: Updated for above mentioned changes.
6950 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
6952 * c-common.c: Remove header include of tm_p.h.
6953 * Makefile.in (c-common.o): Remove TM_P_H dependency.
6955 2010-06-02 Jakub Jelinek <jakub@redhat.com>
6957 * tree.h (struct tree_decl_map): New type.
6958 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6959 (tree_decl_map_hash): New prototype.
6960 (debug_expr_for_decl, value_expr_for_decl): Change into
6961 tree_decl_map hashtab from tree_map.
6962 (init_ttree): Adjust initialization.
6963 (tree_decl_map_hash): New function.
6964 (decl_debug_expr_lookup, decl_debug_expr_insert,
6965 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6967 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6969 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6971 * configure: Regenerate.
6972 * config.in: Regenerate.
6974 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6975 (X86_64_EMULATION): Define.
6976 (TARGET_LD_EMULATION): Use them.
6978 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6979 (SPARC64_EMULATION): Define.
6980 (LINK_ARCH_SPEC): Use them.
6982 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6984 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6985 smallest_mode_for_size for computing the precision types of new
6986 graphite IVs. Do not call lang_hooks.types.type_for_size.
6988 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6990 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6992 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6994 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6997 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6998 return false instead.
7000 2010-06-02 Jan Hubicka <jh@suse.cz>
7003 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7004 create new cgraph node to check callee.
7006 2010-06-02 Richard Guenther <rguenther@suse.de>
7008 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7010 2010-06-02 Richard Guenther <rguenther@suse.de>
7012 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7013 (lto_wrapper_cleanup): ... this. Do not exit.
7014 (fatal): Adjust. Exit here.
7015 (fatal_perror): Likewise.
7016 (fatal_signal): New function.
7017 (main): Set up signal handlers to cleanup temporary files.
7018 * Makefile.in (lto-wrapper.o): Adjust dependencies.
7020 2010-06-02 Richard Guenther <rguenther@suse.de>
7022 PR tree-optimization/44377
7023 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7025 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7027 * config/s390/2097.md (z10_fhex): Remove insn reservation.
7028 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7029 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7030 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7032 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7034 2010-06-02 Jan Hubicka <jh@suse.cz>
7036 * bitmap.c (bitmap_descriptor): Add search_iter.
7037 (bitmap_find_bit): Increment it.
7038 (print_statistics): Print it.
7040 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
7042 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7043 instead of gimple_build_call_vec. Delete unnecessary local variable.
7045 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7047 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7048 change from yesterday.
7050 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7052 * c-ada-spec.c: Clean up redundant includes.
7054 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
7056 * gimplify.c: Do not include except.h and optabs.h.
7057 (gimplify_body): Do not initialize RTL profiling.
7058 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7059 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7060 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7061 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7064 * tree-pretty-print.h: Include pretty-print.h.
7065 * gimple-pretty-print.h: Include pretty-print.h.
7067 * tree-pretty-print.c: Do not include diagnostic.h.
7068 * tree-vrp.c: Likewise.
7069 * tree-tailcall.c: Likewise
7070 * tree-scalar-evolution.c: Likewise
7071 * tree-ssa-dse.c: Likewise
7072 * tree-chrec.c: Likewise
7073 * tree-ssa-sccvn.c: Likewise
7074 * tree-ssa-copyrename.c: Likewise
7075 * tree-nomudflap.c: Likewise
7076 * tree-call-cdce.c: Likewise
7077 * tree-stdarg.c: Likewise
7078 * tree-ssa-math-opts.c: Likewise
7079 * tree-nrv.c: Likewise
7080 * tree-ssa-sink.c: Likewise
7081 * tree-browser.c: Likewise
7082 * tree-ssa-loop-ivcanon.c: Likewise
7083 * tree-ssa-loop.c: Likewise
7084 * tree-parloops.c: Likewise
7085 * tree-ssa-address.c: Likewise
7086 * tree-ssa-ifcombine.c: Likewise
7087 * tree-if-conv.c: Likewise
7088 * tree-data-ref.c: Likewise
7089 * tree-affine.c: Likewise
7090 * tree-ssa-phiopt.c: Likewise
7091 * tree-ssa-coalesce.c: Likewise
7092 * tree-ssa-pre.c: Likewise
7093 * tree-ssa-live.c: Likewise
7094 * tree-predcom.c: Likewise
7095 * tree-ssa-forwprop.c: Likewise
7096 * tree-ssa-dce.c: Likewise
7097 * tree-ssa-ter.c: Likewise
7098 * tree-ssa-loop-prefetch.c: Likewise
7099 * tree-optimize.c: Likewise
7100 * tree-ssa-phiprop.c: Likewise
7101 * tree-object-size.c: Likewise
7102 * tree-outof-ssa.c: Likewise
7103 * tree-ssa-structalias.c: Likewise
7104 * tree-switch-conversion.c: Likewise
7105 * tree-ssa-reassoc.c: Likewise
7106 * tree-ssa-operands.c: Likewise
7107 * tree-vectorizer.c: Likewise
7108 * tree-vect-data-refs.c: Likewise
7109 * tree-vect-generic.c: Likewise
7110 * tree-vect-stmts.c: Likewise
7111 * tree-vect-patterns.c: Likewise
7112 * tree-vect-slp.c: Likewise
7113 * tree-vect-loop.c: Likewise
7114 * tree-ssa-loop-ivopts.c: Likewise
7115 * tree-ssa-loop-im.c: Likewise
7116 * tree-ssa-loop-niter.c: Likewise
7117 * tree-ssa-loop-unswitch.c: Likewise
7118 * tree-ssa-loop-manip.c: Likewise
7119 * tree-ssa-loop-ch.c: Likewise
7120 * tree-dump.c: Likewise
7121 * tree-complex.c: Likewise
7123 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7124 * tree-ssa-uninit.c: Likewise
7125 * tree-ssa-threadupdate.c: Likewise
7126 * tree-ssa-uncprop.c: Likewise
7127 * tree-ssa-ccp.c: Likewise
7128 * tree-ssa-dom.c: Likewise
7129 * tree-ssa-propagate.c: Likewise
7130 * tree-ssa-alias.c: Likewise
7131 * tree-dfa.c: Likewise
7132 * tree-cfgcleanup.c: Likewise
7133 * tree-sra.c: Likewise
7134 * tree-ssa-copy.c: Likewise
7135 * tree-ssa.c: Likewise
7136 * tree-profile.c: Likewise
7137 * tree-cfg.c: Likewise
7138 * tree-ssa-threadedge.c: Likewise
7139 * tree-vect-loop-manip.c: Likewise
7141 * tree-inline.c: Do not include diagnostic.h and expr.h.
7143 (copy_decl_for_dup_finish): Do not use NULL_RTX.
7145 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7146 * tree-loop-distribution.c: Likewise.
7148 2010-06-01 Jan Hubicka <jh@suse.cz>
7150 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7152 2010-06-01 Jan Hubicka <jh@suse.cz>
7154 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7155 remove return value.
7156 (split_bbs_on_noreturn_calls) .... here.
7157 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7158 * tree-flow.h (fixup_noreturn_call): New.
7160 2010-06-01 Jan Hubicka <jh@suse.cz>
7162 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7164 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
7166 * tree.h (build_nt_call_list): Delete.
7167 * tree.c (build_nt_call_list): Delete.
7169 2010-06-01 Jan Hubicka <jh@suse.cz>
7171 * fwprop.c: Make emit-rtl.h include last.
7172 * rtlanal.c: Include emit-rtl.h.
7173 * genautomata.c: Output emit-rtl include into insn-automata.c
7174 * df-scan.c: Include emit-rtl.h.
7175 * haifa-sched.c: Indlude emit-rtl.h.
7176 * mode-switching.c: Indlude emit-rtl.h.
7177 * graph.c: Indlude emit-rtl.h.
7178 * sel-sched.c: Include emit-rtl.h.
7179 * sel-sched-ir.c: Include emit-rtl.h.
7180 * ira-build.c: Include emit-rtl.h.
7181 * emit-rtl.c: (first_insn, last_insn): Remove defines.
7182 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7184 (set_new_first_and_last_insn, get_last_insn_anywhere,
7185 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7186 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7187 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7188 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7189 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7190 Use accessor functions.
7191 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7192 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7193 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7194 mem_expr_equal_p): Move here from rtl.h.
7195 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7196 Move here from emit-rtl.c; make inline.
7197 * cfglayout.h: Include emit-rtl.h.
7198 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7199 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7200 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7201 mem_expr_equal_p, get_insns, set_first-insn,
7202 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7203 * reg-stack.c: Include emit-rtl.h.
7206 2010-06-01 Jan Hubicka <jh@suse.cz>
7208 * cgraph.h (tree_function_versioning): Update prototype.
7209 (cgraph_function_versioning): Update prototype.
7210 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7212 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7213 (cgraph_materialize_clone, save_inline_function_body): Update use of
7214 tree_function_versioning.
7215 * tree-inline.c (copy_bb): Look for previous copied block to link
7216 after; fix debug output.
7217 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
7218 (copy_body): Likewise.
7219 (expand_call_inline): Update use of copy_body.
7220 (tree_function_versioning): Update use of copy body; accept
7221 blocks_to_copy and new_entry.
7223 2010-06-01 Jan Hubicka <jh@suse.cz>
7225 * gegenrtl.c: Remove unnecesary prototypes.
7227 (gendef): Produce static inline.
7229 (main): Do not decode parameters; generate header only.
7230 * Makefile.in (genrtl.c): Remove.
7232 2010-06-01 Jan Hubicka <jh@suse.cz>
7234 * tree-switch-conversion.c (build_one_array): Make it readonly.
7236 2010-06-01 Richard Guenther <rguenther@suse.de>
7238 * optabs.c (init_optabs): Guard all accesses to reinit.
7239 * ipa-pure-const.c (propagate): Fix another typo.
7240 * opts.c (common_handle_option): Split assignment to bool.
7241 * c-opts.c (c_common_handle_option): Likewise.
7243 2010-06-01 Arnaud Charlet <charlet@adacore.com>
7244 Matthew Gingell <gingell@adacore.com>
7246 * doc/invoke.texi: Mention -fdump-ada-spec.
7247 * tree-dump.c (dump_files): Add ada-spec.
7248 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
7249 * tree-pass.h (tree_dump_index): Add TDI_ada.
7250 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
7251 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
7252 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
7253 * c-decl.c: Include c-ada-spec.h.
7254 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
7256 (c_write_global_declarations): Add handling of -fdump-ada-spec.
7257 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
7258 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
7259 * c-ada-spec.h, c-ada-spec.c: New files.
7261 2010-06-01 Richard Guenther <rguenther@suse.de>
7264 * ipa-pure-const.c (get_function_state): Hand back varying state
7265 if we do not have one.
7266 (has_function_state): New function.
7267 (duplicate_node_data): Adjust.
7268 (remove_node_data): Likewise.
7269 (pure_const_write_summary): Likewise.
7270 (propagate): Likewise. Fix typo.
7272 2010-06-01 Jan Hubicka <jh@suse.cz>
7274 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
7275 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
7276 (execute_all_ipa_transforms): Do not play with the states.
7278 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7280 * config/arm/t-linux-androideabi: New.
7281 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7283 2010-06-01 Jan Hubicka <jh@suse.cz>
7285 * tree-inline.c (estimate_num_insns): For stdarg functions look
7286 into call statement to count cost of argument passing.
7288 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
7290 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7291 argument for fprintf.
7292 (ix86_output_addr_diff_elt): Likewise.
7293 (x86_function_profiler): Likewise.
7294 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7295 (LPREFIX): Likewise.
7296 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7298 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7301 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7302 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7303 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7304 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7305 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7306 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7307 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7308 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7311 2010-05-31 Jan Hubicka <jh@suse.cz>
7313 * tree.h (tree_range_check_failed): Declare noreturn.
7315 2010-05-31 Jan Hubicka <jh@suse.cz>
7317 * gimple.c (gimple_call_builtin_p): New function.
7318 * gimple.h (gimple_call_builtin_p): Declare.
7319 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7321 (execute_warn_function_return): BUILT_IN_RETURN is return.
7322 (split_critical_edges): Return edges are not critical.
7323 (is_ctrl_altering_stmt): Builtin_in_return is altering.
7324 (gimple_verify_flow_info): Handle built_in_return.
7325 (execute_warn_function_return): Handle built_in_return.
7326 * ipa-pure-const.c (check_call): Ignore builtin_return.
7328 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7331 * expr.c (expand_assignment): Don't store anything for out-of-bounds
7332 array accesses with non-MEM.
7334 PR tree-optimization/44182
7335 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7336 newly needs to end a bb is followed by debug stmts, instead return
7337 true from the function at the end.
7338 (maybe_move_debug_stmts_to_successors): New function.
7339 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7341 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
7344 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7346 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
7348 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7349 for nested functions in non-optimized compilation.
7351 2010-05-31 Richard Guenther <rguenther@suse.de>
7353 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
7355 2010-05-30 Jan Hubicka <jh@suse.cz>
7357 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
7359 2010-05-30 Richard Guenther <rguenther@suse.de>
7362 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
7363 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
7366 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
7368 * config/darwin.c (output_objc_section_asm_op): Add comment.
7369 (name_needs_quotes): Add '_' to list of valid comment chars.
7370 (machopic_output_function_base_name): Remove unneeded quotes.
7371 (darwin_encode_section_info): Adjust asm whitespace.
7372 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
7373 (ASM_OUTPUT_LOCAL): Ditto.
7374 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
7375 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
7376 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
7378 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7380 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
7381 RS6000_OUTPUT_BASENAME unconditionally.
7382 (rs6000_output_function_epilogue): Likewise.
7384 2010-05-30 Jan Hubicka <jh@suse.cz>
7386 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
7389 2010-05-30 Richard Guenther <rguenther@suse.de>
7391 * tree-cfg.c (verify_gimple_assign_single): Implement
7392 verification for COND_EXPR rhs.
7394 2010-05-30 Jan Hubicka <jh@suse.cz>
7396 * cgraph.h (cgraph_dump_file): Declare.
7397 * cgraphunit.c (cgraph_dump_file): Export.
7398 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
7400 2010-05-30 Jan Hubicka <jh@suse.cz>
7402 * dwarf2out.c (reference_to_unused,
7403 premark_types_used_by_global_vars_helper): Avoid creation of new
7406 2010-05-30 Jan Hubicka <jh@suse.cz>
7408 * cgraph.h (cgraph_node_cannot_return,
7409 cgraph_edge_cannot_lead_to_return): New functions.
7410 * cgraph.c (cgraph_node_cannot_return,
7411 cgraph_edge_cannot_lead_to_return): Use them.
7412 * ipa-pure-const.c (pure_const_names): New static var.
7413 (check_call): Handle calls not leading to return.
7414 (pure_const_read_summary): Dump info read.
7415 (propagate): Dump info about propagation process; ignore side effects
7416 of functions not leading to exit; fix handling of pure functions.
7418 2010-05-30 Jan Hubicka <jh@suse.cz>
7420 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
7421 for tail call epilogues.
7423 2010-05-30 Jan Hubicka <jh@suse.cz>
7425 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
7426 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
7429 2010-05-29 Jan Hubicka <jh@suse.cz>
7431 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
7432 node; remove references in node we no longer keep in cgrpah but need
7435 2010-05-29 Jan Hubicka <jh@suse.cz>
7437 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
7439 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7442 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
7444 2010-05-29 Jan Hubicka <jh@suse.cz>
7446 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
7447 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
7448 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
7449 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
7450 debug_names_replaced_by, debug_update_ssa): Likewise.
7451 * sbitmap.c (debug_sbitmap): Likewise.
7452 * genrecog.c (debug_decision, debug_decision_list): Likewise.
7453 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
7454 debug_tree_chain): Likewise.
7455 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
7456 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
7457 * optabs.c (debug_optab_libfuncs): Likewise.
7458 (verify_loop_closed_ssa): Likewise.
7459 * value-prof.c (verify_histograms): Likewise.
7460 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
7461 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
7462 * cfghooks.c (verify_flow_info): Likewise.
7463 * fold-const.c (debug_fold_checksum): Likewise.
7464 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
7465 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
7467 * omega.c (debug_omega_problem): Likewise.
7468 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
7469 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
7470 * dominance.c (verify_dominators, debug_dominance_info,
7471 debug_dominance_tree): Likewise.
7472 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
7473 * df_regno_debug, df_ref_debug,
7474 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
7475 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
7476 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
7477 * sel-sched.c (debug_state): Likewise.
7478 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
7480 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
7481 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
7482 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
7483 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
7485 * c-pretty-print.c (debug_c_tree): Likewise.
7486 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
7487 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
7488 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
7489 * ebitmap.c (debug_ebitmap): Likewise.
7490 * function.c (debug_find_var_in_block_tree): Likewise.
7491 * print-rtl.c (debug_rtx): Likewise.
7492 (debug_rtx_count): Likewise.
7493 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
7494 * stor-layout.c (debug_rli): Likewise.
7495 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
7496 * tree-data-ref.c (debug_data_references,
7497 debug_data_dependence_relations, debug_data_reference,
7498 debug_data_dependence_relation, debug_rdg_vertex,
7499 debug_rdg_component, debug_rdg): Likewise.
7500 * tree-affine.c (debug_aff): Likewise.
7501 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
7503 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
7504 * emit-rtl.c (verify_rtl_sharing): Likewise.
7505 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
7506 debug_value_expressions): Likewise.
7507 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
7508 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
7509 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
7510 * cfglayout.c (verify_insn_chain): Likewise.
7511 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
7512 debug_clast_stmt, debug_generated_program): Likewise.
7513 * ggc-page.c (debug_print_page_list): Likewise.
7514 * tree-ssa-ter.c (debug_ter): Likewise.
7515 * graphite-dependences.c (debug_pddr): Likewise.
7516 * sched-deps.c (debug_ds): Likewise.
7517 * tree-ssa.c (verify_ssa): Likewise.
7518 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
7519 debug_scattering_functions, debug_iteration_domains, debug_pdr,
7520 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
7521 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
7522 * tree-inline.c (debug_find_tree): Likewise.
7523 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
7524 debug_ppl_powerset_matrix): Likewise.
7525 * var-tracking.c (debug_dv): Likewise.
7526 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
7527 * cfgloop.c (verify_loop_structure): Likewise.
7528 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
7529 * c-common.c (verify_sequence_points): Likewise.
7530 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
7531 debug_candidates, debug_rgn_dependencies): Likewise.
7532 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
7533 * debug_constraint_graph, debug_solution_for_var,
7534 debug_sa_points_to_info): Likewise.
7535 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
7537 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
7538 debug_loops, debug_loop, debug_loop_num): Likewise.
7539 * passes.c (debug_pass): Likewise.
7540 (dump_properties): Likewise; add cfglayout property.
7541 (debug_properties): Likewise.
7542 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
7543 * varpool.c (debug_varpool): Likewise.
7544 * regcprop.c (debug_value_data): Likewise.
7545 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
7546 debug_immediate_uses_for): Likewise.
7548 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7551 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
7552 Filter out insn-flags.h.
7554 2010-05-29 Jan Hubicka <jh@suse.cz>
7556 * cgraph.h (struct varpool_node_set_def,
7557 struct cgraph_node_set_def): Remove unused AUX pointer.
7558 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
7561 2010-05-29 Jan Hubicka <jh@suse.cz>
7564 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
7566 2010-05-29 Richard Guenther <rguenther@suse.de>
7568 * lto-streamer.c (cached_bp): New global variable.
7569 (bitpack_create): Return the cached bitpack, if available.
7570 (bitpack_delete): Clear and cache the bitpack, if appropriate.
7571 (bp_pack_value): Remove redundant asserts.
7573 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7576 * tree-if-conv.c (is_true_predicate): New.
7577 (is_predicated): Use is_true_predicate.
7578 (add_to_predicate_list): Same. Do not use unshare_expr.
7579 (add_to_dst_predicate_list): Same.
7581 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7583 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7585 (predicate_bbs): Same.
7586 (clean_predicate_lists): Same.
7587 (find_phi_replacement_condition): Do not AND the predicate from
7590 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7593 * Makefile.in (build/gencondmd.o): Add a missing `\'.
7595 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7598 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7599 (negdf2): Adjust expander pattern and use negdf2_slow.
7602 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
7604 * basic-block.h (struct control_flow_graph): Move last_label_uid field
7606 * df.h (struct df_base_ref): Move regno field up.
7607 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7608 * expr.h (struct separate_ops): Move location field up.
7609 * optabs.h (struct optab_d): Move libcall_basename field down.
7610 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7611 * config/i386/i386.h (struct machine_function): Convert call_abi field
7612 into a bitfield. Move cfa field to the end of the structure.
7614 2010-05-29 Jan Hubicka <jh@suse.cz>
7616 * varpool.c (varpool_get_node): Fix lookup.
7618 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7620 * config/spu/spu-protos.h: Do not include rtl.h. Protect
7621 RTL specific prototypes with #ifdef RTX_CODE.
7622 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7623 * config/spu/t-spu-elf: Fix dependencies.
7625 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
7627 2010-05-29 Mike Stump <mikestump@comcast.net>
7630 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
7631 TM_H when building to avoid dependency loops.
7633 2010-05-29 Jan Hubicka <jh@suse.cz>
7635 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
7636 refs and body; not the whole node for masters of materialized clones.
7638 2010-05-29 Mike Stump <mikestump@comcast.net>
7640 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
7642 2010-05-29 Jan Hubicka <jh@suse.cz>
7644 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
7645 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
7646 use of clone_function_name.
7647 * cgraph.h (cgraph_create_virtual_clone,
7648 cgraph_function_versioning): update prototypes.
7649 (clone_function_name): Declare.
7650 * ipa-cp.c (ipcp_insert_stage): Update call of
7651 cgraph_create_virtual_clone.
7652 * omp-low.c (create_omp_child_function_name): Use
7653 cgraph_create_virtual_clone.
7654 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
7655 (cgraph_function_versioning): Take SUFFIX argument; produce new name
7656 and make decl local.
7658 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7660 * vec.h: Include statistics.h
7661 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
7664 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7666 * c-lex.c: Do not include c-tree.h.
7667 * c-pretty-print.c: Likewise.
7668 * c-opts.c: Likewise.
7669 * c-gimplify.c: Likewise.
7670 * c-common.c: Likewise.
7671 * c-dump.c: Likewise. Include c-common.h.
7673 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7675 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
7676 before including diagnostic-core.h.
7677 (c_cpp_error): New prototype moved from c-tree.h.
7678 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
7679 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
7680 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
7681 (c_cpp_error): Prototype moved to c-common.h.
7682 * Makefile.in: Update dependency for C_COMMON_H.
7684 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7686 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7687 * c-common.c (c_register_addr_space): Remove here.
7688 * c-decl.c (c_register_addr_space): Re-add here.
7690 2010-05-28 Mike Stump <mikestump@comcast.net>
7692 * config/darwin-c.c: Remove c-tree.h include.
7694 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7696 * gcc.c: Include diagnostic.h.
7697 (error_count): Remove. All users changed to use errorcount.
7698 (programname): Remove. All users changed to use progname.
7699 (fancy_abort, internal_error, fatal_error, error, warning, inform,
7701 (execute): Don't include "Internal error" and bug reporting
7702 information in argument of internal_error call.
7703 (process_command): Don't increment error_count after calling
7705 (input_filename): Rename to gcc_input_filename. All users
7707 (main): Call diagnostic_initialize. Register delete_temp_files
7708 with atexit. Use seen_error to test for errors.
7709 * gcc.h: Include diagnostic-core.h.
7710 (fatal_error, error, warning): Remove.
7711 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7712 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7713 (gcc.o): Update dependencies.
7715 2010-05-28 Jeff Law <law@redhat.com>
7717 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7719 * ira.h (ira_bad_reload_regno): Declare
7720 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7722 * ira-color.c (update_curr_costs): Free updated hard reg costs.
7723 (ira_reassign_conflict_allocnos): Remove bogus asserts.
7724 (allocno_reload_assign): Likewise.
7726 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
7728 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7731 2010-05-28 Richard Guenther <rguenther@suse.de>
7734 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7735 Stream fixed-point constants mode.
7736 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7738 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7739 Stream fixed-point constants mode.
7740 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7743 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7745 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7746 only place it was called from.
7747 (number_of_latch_executions): Do not return chrec_dont_know when the
7748 may_be_zero is a runtime condition: instead, return a COND_EXPR
7749 including the may_be_zero condition.
7750 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7752 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7755 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7757 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7758 generate COND_EXPRs for degenerate_phi_result.
7760 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7763 * tree-if-conv.c (if_convertible_loop_p): Check the
7764 if-convertibility of phi nodes in non predicated BBs.
7766 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7768 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7770 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7773 * gcc.c (inform, warning, inform): New functions.
7774 (fatal_ice): Rename to internal_error; change cmsgid parameter to
7775 gmsgid. All callers changed.
7776 (notice): Rename to fnotice; add parameter fp. All callers changed.
7777 (fatal_error): Rename to fatal_signal. All users changed.
7778 (fatal): Rename to fatal_error; change cmsgid parameter to
7779 gmsgid. All callers changed.
7780 (process_command): Use warning instead of error for warnings.
7781 (end_going_arg): Don't use _() around argument of error.
7782 (do_spec_1): Use inform for message from %n specs. Use warning
7783 instead of error for warnings.
7784 (main): Use inform for comparison messages. Use warning for
7785 message about unused linker input.
7786 (error): Increment error_count. Print "error: ".
7787 * gcc.h (fatal): Change to fatal_error.
7789 * config/darwin-driver.c (darwin_default_min_version): Use warning
7790 instead of fprintf for warnings.
7791 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7793 2010-05-28 Julian Brown <julian@codesourcery.com>
7795 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7796 (*thumb2_addsi3_compare0_scratch): New.
7797 * config/arm/constraints.md (Pv): New.
7798 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7800 (*addsi3_compare0_scratch): Likewise.
7802 2010-05-28 Jan Hubicka <jh@suse.cz>
7804 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7806 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7807 only on local statics.
7809 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
7811 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7813 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7816 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7817 (OPTION_GLIBC): Define.
7819 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7822 * dwarf2out.c (double_int_type_size_in_bits): New function.
7823 (round_up_to_align): Change first argument and return value to
7825 (field_byte_offset): Work internally on double_ints.
7828 * builtins.c (expand_movstr): Use a temporary pseudo instead
7829 of target even when target is not NULL and not const0_rtx, but
7830 fails movstr predicate.
7831 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7833 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7835 * final.c (rest_of_clean_state): Use %m in errors instead of
7837 * gengtype.c (read_input_list, close_output_files): Use xstrerror
7838 instead of strerror.
7839 * toplev.c (process_options): Use %m in errors instead of strerror
7841 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7844 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
7846 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7847 (ix86_canonical_va_list_type): Make static. Add declaration.
7848 (ix86_enum_va_list): Make static. Reindent.
7849 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7850 (ix86_canonical_va_list_type): Ditto.
7851 (ix86_enum_va_list): Ditto.
7853 2010-05-28 Richard Guenther <rguenther@suse.de>
7855 * lto-wrapper.c (run_gcc): With -save-temps generate a
7856 user-visible ltrans filename. Fixup ltrans unit numbering.
7858 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
7860 * c-common.c (c_common_nodes_and_builtins): Replace use
7861 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7862 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7863 to ix86_enum_va_list.
7864 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7865 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7866 (TARGET_ENUM_VA_LIST_P): Add hook description.
7867 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7868 * target.h (gcc_target): Add enum_va_list hook.
7871 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7872 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7873 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7875 2010-05-28 Alan Modra <amodra@gmail.com>
7878 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7879 emit_library_call machinery to set up __tls_get_addr calls.
7881 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7883 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7885 2010-05-28 Dodji Seketeli <dodji@redhat.com>
7887 Revert fix for PR c++/44188
7888 * c-common.c (is_typedef_decl): Revert the moving of this
7890 * tree.c (is_typedef_decl): ... here.
7891 (typdef_variant_p): Revert the moving of this definition
7892 here from gcc/cp/tree.c.
7893 * c-common.h (is_typedef_decl): Revert the moving of this
7895 * tree.h (is_typedef_decl): ... here.
7896 (typedef_variant_p): Revert the moving of this declaration here
7897 from gcc/cp/cp-tree.h
7898 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7899 (gen_tagged_type_die): Revert the splitting out of ...
7900 (gen_type_die_with_usage): ... this function. Revert the anonymous
7901 tagged type handling.
7902 (gen_typedef_die): Revert emitting DW_TAG_typedef for
7903 typedefs naming anonymous tagged types.
7905 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7907 * config/rs6000/rs6000-modes.def (PSImode): Delete.
7909 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7911 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7912 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7914 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7916 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7917 XER_REGS to CA_REGS throughout.
7918 * config/rs6000/rs6000.h: Same.
7919 (ADDITIONAL_REGISTER_NAMES): Add "xer".
7920 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
7921 that mode_iterator "P" is the size for arithmetic carries as well.
7922 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7924 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7927 * combine.c (struct rtx_subst_pair): Define unconditionally.
7928 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
7929 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7930 Call make_compound_operation on pair->to.
7931 (propagate_for_debug): Don't call make_compound_operation here.
7932 Always use simplify_replace_fn_rtx.
7934 2010-05-27 Sterling Augustine <sterling@tensilica.com>
7936 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7937 * config/xtensa/xtensa.c (override_options): Check
7938 TARGET_FORCE_NO_PIC and set flag_pic.
7939 * config/xtensa/xtensa.opt: Document -mforce-no-pic
7941 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7944 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7945 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7947 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7949 * diagnostic-core.h: New. Contents moved from diagnostic.h and
7951 * diagnostic.c: Don't include toplev.h.
7952 (progname): Define. Moved from toplev.c.
7953 (seen_error): New function.
7954 * diagnostic.h: Include diagnostic-core.h.
7955 (diagnostic_t, emit_diagnostic): Don't declare here.
7956 * toplev.c (progname): Move to toplev.c.
7957 (emit_debug_global_declarations, compile_file, finalize,
7958 do_compile, toplev_main): Use seen_error.
7959 * toplev.h: Include diagnostic-core.h.
7960 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7961 internal_error, warning, warning_at, error, error_n, error_at,
7962 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7963 verbatim, fnotice, progname): Move to diagnostic-core.h.
7964 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7965 (expand_builtin_expect): Use seen_error.
7966 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7967 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7968 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7969 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7970 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7971 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7972 errorcount for errors.
7973 * c-opts.c (c_common_finish): Use seen_error.
7974 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7975 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7976 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7977 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7978 (get_coverage_counts): Use seen_error.
7979 * dwarf2out.c (dwarf2out_finish): Use seen_error.
7980 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7981 gimplify_body): Use seen_error.
7982 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7983 * ipa-pure-const.c (gate_pure_const): Use seen_error.
7984 * ipa-reference.c (gate_reference): Use seen_error.
7985 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7986 * lambda-code.c: Include diagnostic-core.h instead of
7988 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7989 * lto-compress.c: Include diagnostic-core.h instead of
7991 * lto-section-in.c: Include diagnostic-core.h instead of
7993 * lto-streamer-out.c: Include diagnostic-core.h instead of
7995 * lto-streamer.c: Include diagnostic-core.h instead of
7997 (gate_lto_out): Use seen_error.
7998 * matrix-reorg.c: Include diagnostic-core.h instead of
8000 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8001 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8002 (gate_expand_omp, lower_omp_1): Use seen_error.
8003 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8004 (rest_of_decl_compilation, rest_of_type_compilation,
8005 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8006 * tree-cfg.c (label_to_block_fn): Use seen_error.
8007 * tree-inline.c (optimize_inline_calls): Use seen_error.
8008 * tree-mudflap.c (mudflap_finish_file): Use
8010 * tree-optimize.c (gate_all_optimizations,
8011 gate_all_early_local_passes, gate_all_early_optimizations): Use
8013 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8014 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8015 (varpool_remove_unreferenced_decls,
8016 varpool_assemble_pending_decls): Use seen_error.
8017 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8018 (TOPLEV_H, DIAGNOSTIC_H): Update.
8019 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8020 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8021 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8022 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8023 coverage.o, lambda-code.o): Update dependencies.
8025 2010-05-25 Dodji Seketeli <dodji@redhat.com>
8028 * c-common.c (is_typedef_decl): Move this definition ...
8029 * tree.c (is_typedef_decl): ... here.
8030 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8031 * c-common.h (is_typedef_decl): Move this declaration ...
8032 * tree.h (is_typedef_decl): ... here.
8033 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8034 * dwarf2out.c (is_naming_typedef_decl): New function.
8035 (gen_tagged_type_die): Split out of ...
8036 (gen_type_die_with_usage): ... this function. When an anonymous
8037 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8038 is emitted for the typedef.
8039 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8040 anonymous tagged types.
8042 2010-05-27 Jason Merrill <jason@redhat.com>
8044 * print-tree.c (debug_vec_tree): New fn.
8045 (print_vec_tree): New fn.
8046 * tree.h: Declare them.
8047 * gdbinit.in (pvt): New command.
8049 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8051 * gdbinit.in (pdd): New command.
8053 2010-05-27 Jan Hubicka <jh@suse.cz>
8055 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8056 (update_caller_keys): Return early if there are no callers;
8057 only update fibheap when decresing the key.
8058 (update_callee_keys): Avoid recursion.
8059 (decide_inlining_of_small_functions): When badness does not match;
8060 re-insert into fibheap.
8062 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8064 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8065 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8066 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8067 (ALL_HOST_OBJS): Now a union of the above two.
8068 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8069 all files in ALL_HOST_FRONTEND_OBJS.
8070 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8072 * c-common.c: Pretend to be a backend file by undefining
8073 IN_GCC_FRONTEND (still need rtl.h here).
8075 2010-05-27 Jan Hubicka <jh@suse.cz>
8077 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8078 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8080 2010-05-27 Jan Hubicka <jh@suse.cz>
8082 * sched-ebb.c: Rename struct deps to struct deps_desc.
8084 * sel-sched-ir.c: Likewise.
8085 * sched-deps.c: Likewise.
8086 * sched-int.h: Likewise.
8087 * sched-rgn.c: Likewise.
8089 2010-05-27 Jon Beniston <jon@beniston.com>
8092 * config/lm32/lm32.h: Remove definition of
8093 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8095 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
8098 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8100 2010-05-27 Richard Guenther <rguenther@suse.de>
8102 PR tree-optimization/44284
8103 * tree-vect-stmts.c (vectorizable_assignment): Handle
8104 sign-changing conversions as simple copy.
8106 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8108 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8110 (__gthread_active_p): Check for pthread_create if compiling against
8113 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8115 Support compilation for Android platform. Reimplement -mandroid.
8117 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8118 (*android*): Set ANDROID_DEFAULT.
8119 (arm*-*-linux*): Include linux-android.h.
8120 (arm*-*-eabi*): Don't include previous -mandroid implementation.
8121 * config/arm/eabi.h: Remove, move Android-specific parts ...
8122 * config/linux-android.h: ... here. New file.
8123 * config/arm/eabi.opt: Rename to ...
8124 * config/linux-android.opt: ... this.
8125 (mandroid): Allow -mno-android option. Initialize based on
8127 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8128 Move logic to corresponding LINUX_TARGET_* macros.
8129 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8130 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8131 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8132 Android definitions.
8133 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8134 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8137 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8139 Add support for Bionic C library
8141 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8143 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8144 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8146 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8147 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8148 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8149 to support multiple C libraries. Handle Bionic.
8150 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8151 (BIONIC_DYNAMIC_LINKER64): Define.
8152 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8154 (TARGET_HAS_SINCOS): Enable for Bionic.
8156 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
8157 the last option specified on command line take effect.
8158 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8160 (mglibc, muclibc): Update.
8162 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8163 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8166 * doc/invoke.texi (-mglibc, -muclibc): Update.
8167 (-mbionic): Document.
8169 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8171 * c-common.h (c_register_addr_space): Add prototype.
8172 (ADDR_SPACE_KEYWORD): Remove.
8173 * c-common.c (c_register_addr_space): New function.
8174 (c_addr_space_name): Reimplement.
8175 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8177 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8178 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8180 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8181 Remove TARGET_ADDR_SPACE_KEYWORDS.
8183 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8185 * input.c: New file.
8186 * input.h (main_input_filename): Move declaration to toplev.h.
8187 * toplev.c (input_location, line_table): Move to input.c
8188 * toplev.h (main_input_filename): Move declaration from input.h.
8189 * tree.c (expand_location): Move to input.c.
8190 * Makefile.in (OBJS-common): Add input.o.
8191 (input.o): Add dependencies.
8193 2010-05-27 Richard Guenther <rguenther@suse.de>
8195 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8196 for non-existant files.
8197 (fork_execute): Mark args_name file as deleted.
8199 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8202 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8203 (narrow_signed_type): Likewise.
8205 2010-05-26 Jan Hubicka <jh@suse.cz>
8207 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8208 edge only when checking is enabled; check using former_clone_of;
8209 check inline clones too.
8210 (cgraph_materialize_clone): Record former_clone_of pointer.
8211 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8212 combining redirections; dump args_to_skip bitmap
8213 (cgraph_materialize_all_clones): Do no redirection here.
8214 * ipa-inline.c (inline_transform): Do redirection here.
8215 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
8218 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8220 * config/avr/avr-c.c: Do not include regs.h.
8221 Include cpplib.h for cpp_define and tree.h for c-common.h.
8222 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
8223 * config/avr/t-avr: Fix dependencies for avr-c.o.
8225 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8227 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
8228 string instead of SYMBOL_REF rtx.
8229 * rtl.h (set_stack_check_libfunc): Move prototype from here...
8230 * libfuncs.h: ...to here. Adjust for explow.c change.
8232 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8234 * pretty-print.c: Don't include ggc.h.
8235 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
8236 (identifier_to_locale): Use them for allocation.
8237 * pretty-print.h (identifier_to_locale_alloc,
8238 identifier_to_locale_free): Declare.
8239 * toplev.c (alloc_for_identifier_to_locale): New.
8240 (general_init): Set identifier_to_locale_alloc and
8241 identifier_to_locale_free.
8242 * Makefile.in (pretty-print.o): Update dependencies.
8244 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8246 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
8247 pointer types if they have different alignment or mode.
8249 2010-05-26 Anatoly Sokolov <aesok@post.ru>
8251 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8252 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8253 * config/sparc/sparc-protos.h (function_value): Remove declaration.
8254 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
8255 sparc_function_value_regno_p): New functions.
8256 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8257 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8258 (function_value): Rename to...
8259 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
8260 argument to 'outgoing'.
8261 (function_arg_record_value, function_arg_union_value,
8262 function_arg_vector_value): Update comment.
8264 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8266 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
8267 (fde_needed_for_eh_p): New predicate.
8268 (output_call_frame_info): Use it throughout to decide whether FDEs
8269 are needed for EH purpose.
8270 (dwarf2out_begin_prologue): Reorder assignments.
8272 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8274 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
8275 special case loop->header.
8276 (is_predicated): New.
8277 (if_convertible_loop_p): Call it.
8279 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8281 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8282 iterator in parameter. Do not generate code during the analysis.
8283 (tree_if_convert_cond_stmt): Removed.
8284 (tree_if_convert_stmt): Removed.
8285 (predicate_bbs): New.
8286 (if_convertible_loop_p): Call predicate_bbs.
8287 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8288 now contains all the analysis part.
8290 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8292 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8293 statements in the analysis part.
8294 (tree_if_convert_stmt): Update comment.
8295 (remove_conditions_and_labels): New.
8296 (combine_blocks): Call remove_conditions_and_labels.
8297 (tree_if_conversion): Update comment.
8299 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8301 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8302 than 2 predecessors or more than 2 successors.
8304 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8306 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8307 of loops in which the data dependence analysis fails.
8309 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8311 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8312 CDI_POST_DOMINATORS.
8313 (tree_if_conversion): Same.
8315 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8317 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8319 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8321 * tree-if-conv.c: Update copyright years. Fix comments.
8324 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
8326 * builtin-types.def (BT_INT128): New primitive type.
8327 (BT_UINT128): Likewise.
8328 * c-common.c (c_common_r): Add __int128 keyword.
8329 (c_common_type_for_size): Handle __int128.
8330 (c_common_type_for_mode): Likewise.
8331 (c_common_signed_or_unsigned_type): Likewise.
8332 (c_common_nodes_and_builtins): Add builtin type
8333 if target supports 128-bit integer scalar.
8334 * c-common.h (enum rid): Add RID_INT128.
8335 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8336 if target supports 128-bit integer scalar.
8337 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8338 (finish_declspecs): Likewise.
8339 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8340 (c_token_starts_declspecs): Likewise.
8341 (c_parser_declspecs): Likewise.
8342 (c_parser_attributes): Likewise.
8343 (c_parser_objc_selector): Likewise.
8344 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8345 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8346 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8347 * tree.c (make_or_reuse_type): Likewise.
8348 (make_unsigned_type): Likewise.
8349 (build_common_tree_nodes_2): Likewise.
8350 * tree.h (enum integer_type_kind): Add itk_int128 and
8351 itk_unsigned_int128.
8352 (int128_integer_type_node): New define.
8353 (int128_unsigned_type_node): New define.
8354 * doc/extend.texi: Add documentation about __int128 type.
8356 2010-05-26 Richard Guenther <rguenther@suse.de>
8358 * tree-ssa-sccvn.c (copy_nary): Adjust.
8359 (copy_phis): Rename to ...
8360 (copy_phi): ... this. Adjust.
8361 (copy_references): Rename to ...
8362 (copy_reference): ... this. Adjust.
8363 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
8364 result into the valid table.
8366 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8368 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
8369 insn-config.h, insn-codes.h, recog.h, and optabs.h.
8371 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8373 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
8375 2010-05-26 Richard Guenther <rguenther@suse.de>
8377 * opts.c (common_handle_option): Handle OPT_Ofast.
8379 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8381 * diagnostic.c: Don't include opts.h.
8382 (permissive_error_option): Define.
8383 (diagnostic_initialize): Take n_opts parameter. Allocate memory
8384 for classify_diagnostic. Don't use memset for
8385 classify_diagnostic. Initialize new and recently added fields.
8386 (diagnostic_classify_diagnostic): Use context->n_opts instead of
8388 (diagnostic_report_diagnostic): Pass context parameter to
8389 diagnostic_report_warnings_p. Use option_enabled and option_name
8391 (emit_diagnostic): Use permissive_error_option.
8392 (permerror): Likewise.
8393 * diagnostic.h: Don't include options.h.
8394 (struct diagnostic_context): Add n_opts, opt_permissive,
8395 inhibit_warnings, warn_system_headers, option_enabled and
8396 option_name fields. Change classify_diagnostic to a pointer.
8397 * opts-diagnostic.h: New file.
8398 * opts.c: Include opts-diagnostic.h.
8399 (common_handle_option): Set global_dc fields for -Wfatal-errors,
8400 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
8401 (option_name): New function.
8402 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
8403 (c_common_handle_option): Set global_dc->permissive for
8405 * c-common.c (c_cpp_error): Save and restore
8406 global_dc->warn_system_headers, not variable warn_system_headers.
8407 * toplev.c: Include opts-diagnostic.h.
8408 (general_init): Update call to diagnostic_initialize. Set
8409 global_dc->show_column, global_dc->option_enabled and
8410 global_dc->option_name.
8411 (process_options): Don't set global_dc fields here.
8412 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
8413 (diagnostic.o, opts.o, toplev.o): Update dependencies.
8415 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8417 * config/picochip/picochip.md (movsi): Split a movsi from a
8420 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8422 * ggc-zone.c: Update copyright year.
8423 (poison_region): Mark memory for Valgrind as undefined before
8424 memset () call and inaccessible afterwards.
8425 (ggc_pch_total_size): Change type of i to int.
8427 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8429 * ggc-common.c (ggc_free_overhead): Allow empty slot.
8431 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8433 * ggc-common.c: Update copyright year.
8434 (ggc_rlimit_bound): Remove prototype. Compile only if
8435 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
8436 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
8437 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
8438 (ggc_min_heapsize_heuristic): Likewise.
8440 2010-05-26 Richard Guenther <rguenther@suse.de>
8442 PR rtl-optimization/44164
8443 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
8444 no-common access-path disambiguation.
8445 (indirect_ref_may_alias_decl_p): Adjust.
8446 (indirect_refs_may_alias_p): Likewise.
8447 (refs_may_alias_p_1): Likewise.
8449 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8451 * c-typeck.c: Do not include expr.h.
8453 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8455 * rtl.h (decl_default_tls_model): Move prototype from here...
8456 * output.h: ...to here.
8457 * c-decl.c: Do not include rtl.h.
8458 * c-pragma.c: Likewise.
8459 * c-parser.c: Likewise.
8460 * c-gimplify.c: Likewise. And also not hard-reg-set.
8461 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
8462 FIXME note for it. Add a FIXME note for expr.h.
8463 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
8464 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
8467 2010-05-26 Jakub Jelinek <jakub@redhat.com>
8470 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
8471 or total_size is larger than red zone size for non-V4 ABI, emit a
8472 stack_tie resp. frame_tie insn before stack pointer restore.
8473 * config/rs6000/rs6000.md (frame_tie): New insn.
8475 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
8477 * function.h (struct function): Add can_throw_non_call_exceptions bit.
8478 * lto-streamer-in.c (input_function): Stream it in.
8479 * lto-streamer-out.c (output_function): Stream it out.
8480 * function.c (allocate_struct_function): Set it.
8481 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
8482 for flag_non_call_exceptions.
8483 * cfgbuild.c (control_flow_insn_p): Likewise.
8484 (make_edges): Likewise.
8485 * cfgexpand.c (expand_stack_alignment): Likewise.
8486 * combine.c (distribute_notes): Likewise.
8487 * cse.c (cse_extended_basic_block): Likewise.
8488 * except.c (insn_could_throw_p): Likewise.
8489 * gcse.c (simple_mem): Likewise.
8490 * ipa-pure-const.c (check_call): Likewise.
8491 (check_stmt ): Likewise.
8492 * lower-subreg.c (lower-subreg.c): Likewise.
8493 * optabs.c (emit_libcall_block): Likewise.
8494 (prepare_cmp_insn): Likewise.
8495 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
8496 * postreload.c (rest_of_handle_postreload): Likewise.
8497 * reload1.c (reload_as_needed): Likewise.
8498 (emit_input_reload_insns): Likewise.
8499 (emit_output_reload_insns): Likewise.
8500 (fixup_abnormal_edges): Likewise.
8501 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
8502 * store-motion.c (find_moveable_store): Likewise.
8503 * tree-eh.c (stmt_could_throw_p): Likewise.
8504 (tree_could_throw_p): Likewise.
8505 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8506 * config/arm/arm.c (arm_expand_prologue): Likewise.
8507 (thumb1_expand_prologue): Likewise.
8508 * config/rx/rx.md (cbranchsf4): Likewise.
8510 * config/s390/s390.c (s390_emit_prologue): Likewise.
8511 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
8512 (inline_forbidden_into_p): New predicate.
8513 (expand_call_inline): Use it to forbid inlining.
8514 (tree_can_inline_p): Likewise.
8516 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8518 * config/i386/i386-c.c: Do not include rtl.h.
8519 * config/i386/t-i386: Update dependencies.
8521 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8523 * attribs.c: Do not include rtl.h.
8524 * Makefile.in: Update dependencies.
8526 2010-05-25 Anatoly Sokolov <aesok@post.ru>
8528 * double-int.h (double_int_and): New.
8529 * combine.c (try_combine): Clean up, use double_int_* and
8530 immed_double_int_const functions.
8532 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8534 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
8535 stderr to /dev/null instead of grep -q.
8536 * configure: Regenerate.
8538 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8540 * Makefile.in (EXCEPT_H): Fix typo.
8542 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
8544 * ira-build.c (update_conflict_hard_reg_costs): New.
8545 (ira_build): Call update_conflict_hard_reg_costs.
8547 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8550 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
8552 (intersect_loc_chains): Walk the s2var's loc_chain together
8553 with s1node chain as long as the locations are equal, don't
8554 call find_loc_in_1pdv in that case.
8557 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
8558 (copy_bind_expr): ... instead of here.
8559 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
8560 if the block hasn't been remapped.
8561 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
8562 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
8564 2010-05-25 Richard Guenther <rguenther@suse.de>
8567 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
8568 out-of-bounds array accesses.
8570 2010-05-25 Richard Guenther <rguenther@suse.de>
8572 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
8573 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
8574 (run_gcc): Re-organize to make cleanup easier.
8576 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8578 * config/s390/s390.c (optimization_options): Fix and move the
8579 flag_prefetch_loop_arrays override ...
8580 (override_options): ... here.
8582 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8584 * diagnostic.c: Don't include plugin.h.
8585 (diagnostic_report_diagnostic): Don't handle plugins specially
8586 here. Pass context to internal_error callback.
8587 * diagnostic.h (struct diagnostic_context): Add context parameter
8588 to internal_error callback.
8589 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8590 * plugin.h (struct diagnostic_context): Declare.
8591 (warn_if_plugins, plugins_internal_error_function): Declare.
8592 * toplev.c (general_init): Set global_dc->internal_error.
8593 * Makefile.in (diagnostic.o): Update dependencies.
8595 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
8597 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8598 * config/rs6000/t-darwin64: New.
8599 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8602 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
8605 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8606 match the original (and intended) behaviour before r159557. This
8607 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8610 2010-05-25 Richard Guenther <rguenther@suse.de>
8612 * doc/invoke.texi: Document -Ofast.
8613 * target.h (struct gcc_target): Add handle_ofast.
8614 * target-def.h (TARGET_HANDLE_OFAST): Add.
8615 (TARGET_INITIALIZER): Adjust.
8616 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
8617 * common.opt (Ofast): Add.
8619 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8621 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8622 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8624 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8627 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
8628 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
8629 false_rtx. Use false_rtx to compute the correct *ptest for reversed
8630 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
8632 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8634 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
8635 DW_OP_minus with negated offset instead of DW_OP_plus.
8636 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
8638 2010-05-25 Wei Guozhi <carrot@google.com>
8640 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
8641 tst instruction and a new alternative.
8642 * config/arm/constraints.md (Pu): New constraint.
8644 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
8646 * function.c (assign_stack_local_1): Initialize variable
8647 to avoid warning when bootstrapping at -O3.
8649 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
8651 * configure.ac (all_lang_makefiles): Remove everything related to it.
8652 * configure: Regenerate.
8653 * Makefile.in: Fix reference to ada Make-lang.in.
8654 Remove support for LANG_MAKEFILES.
8656 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
8657 Sandra Loosemore <sandra@codesourcery.com>
8659 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
8660 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
8661 description. Add arm_neon_fp16_ok.
8662 (Add Options): Add arm_neon and arm_neon_fp16.
8664 2010-05-24 Joseph Myers <joseph@codesourcery.com>
8666 * diagnostic.c: Don't include flags.h.
8667 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
8668 context parameters. Check flags in the context passed as a parameter.
8669 (diagnostic_build_prefix): Add context parameter. Check
8670 show_column flag in context.
8671 (diagnostic_action_after_output): Check fatal_errors flag in context.
8672 (diagnostic_report_current_module): Check show_column flag in context.
8673 (default_diagnostic_starter): Update call to
8674 diagnostic_build_prefix.
8675 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
8676 (emit_diagnostic): Pass context to permissive_error_kind.
8677 (permerror): Pass context to permissive_error_kind.
8678 * diagnostic.h (struct diagnostic_context): Add show_column,
8679 pedantic_errors, permissive and fatal_errors fields.
8680 (diagnostic_build_prefix): Update prototype.
8682 * toplev.c (process_options): Set flags in global_dc from
8683 flag_show_column, flag_pedantic_errors, flag_permissive,
8685 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8686 to diagnostic_build_prefix.
8687 * Makefile.in (diagnostic.o): Update dependencies.
8689 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
8691 * config/i386/ia32intrin.h (__crc32q): Define only if
8692 __SSE4_2__ is defined.
8694 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
8698 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8699 DECL_VISIBILITY_SPECIFIED.
8700 (emutls_decl): Set DECL_PRESERVE_P and copy
8701 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8702 (emutls_finalize_control_var): New callback.
8703 (emutls_finish): Finalize emutls control variables.
8704 * toplev.c (compile_file): Move the call to emutls_finish ()
8705 before varpool_assemble_pending_decls ().
8707 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
8709 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8710 added to the preprocessor condition.
8712 2010-05-24 Paul Brook <paul@codesourcery.com>
8714 * gengtype-lex.l: Add HARD_REG_SET.
8715 * expr.c (expand_expr_real_1): Record writes to hard registers.
8716 * function.c (rtl_data): Add asm_clobbers.
8717 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8718 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8719 Use crtl->asm_clobbers.
8721 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8723 * doc/makefile.texi (Makefile): Mention stages 'profile'
8724 and 'feedback' for profiledbootstrap.
8726 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
8729 * config/i386/i386.c (def_builtin): Properly check
8730 OPTION_MASK_ISA_64BIT.
8732 2010-05-23 Joseph Myers <joseph@codesourcery.com>
8734 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8735 typedefs with different but compatible types. Allow duplicate
8736 typedefs with the same type except for pedantic non-C1X, but give
8737 warning for variably modified types.
8738 * c-typeck.c (tagged_types_tu_compatible_p,
8739 function_types_compatible_p, type_lists_compatible_p,
8740 comptypes_internal): Add parameter different_types_p; set
8741 *different_types_p for different but compatible types. All
8743 (comptypes_check_different_types): New.
8744 * c-tree.h (comptypes_check_different_types): Declare.
8746 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8748 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
8749 * jump.c: Include basic-block.h.
8750 * profile.c: Likewise.
8751 * tree-profile.c: Likewise.
8752 * coverage.c: Likewise.
8753 * basic-block.h (optimize_function_for_size_p): Move to function.h.
8754 (optimize_function_for_speed_p): Likewise.
8755 * function.h (optimize_function_for_size_p,
8756 optimize_function_for_speed_p): Moved here from basic-block.h.
8757 * Makefile.in: Update dependencies.
8759 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8761 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8762 before calling make; allow override through $MAKE.
8763 * doc/invoke.texi (Optimize Options): Document override.
8765 2010-05-23 Anatoly Sokolov <aesok@post.ru>
8767 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8768 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8769 (rs6000_mode_dependent_address_ptr): Make static.
8770 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8771 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8774 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
8777 * config/i386/i386.c: Make sure that the correct regparm is passed.
8779 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8781 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8782 * sbitmap.c: ...to here to internalize sbitmap element access.
8783 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8784 Explain why basic-block.h is included.
8785 * function.h: Include tm.h for CUMULATIVE_ARGS.
8786 * Makefile.in: Update dependencies.
8788 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8790 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8792 * sbitmap.h (struct sbitmap_def): Do not typedef here.
8793 * sbitmap.c: Include sbitmap.h.
8794 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8795 hard-reg-set.h. Split everything related to regsets out from here...
8796 * regset.h: ...to here. New file.
8797 * df.h: Include regset.h and sbitmap.h.
8798 * tree-flow.h: Likewise.
8799 * cfgloop.h: Likewise.
8800 * except.h: Do not include sbitmap.h. Include hashtab.h.
8801 * cgraph.h: Include vec.h and function.h.
8802 * reload.h (struct insn_chain): Change types of live_throughout
8803 and dead_or_set from regset_head to bitmap_head.
8804 (compute_use_by_pseudos): Be defined also if regset.h is not included.
8805 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8806 spilled_regs from regset_head to bitmap_head to avoid dependency
8808 * sel-sched-ir.h: Include regset.h.
8809 * reload.c: Include df.h before reload.h.
8810 * caller-save.c: Likewise.
8811 * reload1.c: Likewise.
8813 (mark_elimination): Update type of r to bitmap, consistent with
8815 * dominance.c: Include bitmap.h.
8816 * modulo-sched.c: Include df.h.
8817 * cfganal.c: Include bitmap.h and sbitmap.h.
8818 * cfgbuild.c: Include sbitmap.h.
8819 * lcm.c: Include sbitmap.h.
8820 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8821 * domwalk.c: Include sbitmap.h, exclude ggc.h.
8822 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8823 * cselib.c: Include bitmap.h.
8824 * tree-optimize.c: Include regset.h.
8825 * stmt.c: Include bitmap.h.
8826 * Makefile.in: Update dependencies.
8828 2010-05-22 Jan Hubicka <jh@suse.cz>
8830 * cgraph.h (struct varpool_node): Add same_comdat_group.
8831 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8833 (output_varpool): Update call of lto_output_varpool_node.
8834 (input_varpool): Read same_comdat_group pointer.
8835 (input_varpool_1): Fixup same_comdat_group pointer.
8836 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8837 group is needed, all are.
8838 * varpool.c (varpool_remove_node): Remove node from same comdat group
8840 (varpool_analyze_pending_decls): Walk same comdat groups.
8842 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8844 * rtl.h (union rtunion_def): Remove rt_bit member.
8845 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8846 * print-rtl (print_rtx): Do not print the member.
8847 * gengtype.c (adjust_field_rtx_def): Do not handle it.
8848 * gengenrtl.c (type_from_format): Likewise.
8849 (accessor_from_format): Likewise.
8851 2010-05-22 Joseph Myers <joseph@codesourcery.com>
8853 * dbgcnt.c: Include toplev.h instead of errors.h.
8854 * ira-emit.c: Don't include errors.h.
8855 * ira.c: Include toplev.h instead of errors.h.
8856 * lto-compress.c: Include toplev.h instead of errors.h.
8857 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8858 ira.o, dbgcnt.o): Update dependencies.
8860 2010-05-22 Richard Guenther <rguenther@suse.de>
8862 * gimple.c (gimple_types_compatible_p): Check type qualifications
8863 before merging pointer to complete and pointer to incomplete type.
8864 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8865 we use our own resolution algorithm. The gold linker plugin
8866 doesn't do the job we want it to do here.
8868 2010-05-22 Anatoly Sokolov <aesok@post.ru>
8870 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8871 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8872 (sparc_mode_dependent_address_p): New function.
8874 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8876 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8878 * timevar.c: Do not include any core headers.
8879 (timevar_print): De-i18n-ize.
8880 (print_time): Likewise.
8881 * timevar.h (timevar_push, timevar_pop): Make inline functions.
8883 2010-05-21 Joseph Myers <joseph@codesourcery.com>
8885 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8887 (diagnostic_initialize): Initialize x_data not last_function.
8888 (diagnostic_report_current_function): Move to tree-diagnostic.c.
8889 (default_diagnostic_starter): Call
8890 diagnostic_report_current_module not
8891 diagnostic_report_current_function.
8892 (diagnostic_report_diagnostic): Initialize x_data not
8894 (verbatim): Likewise.
8895 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8897 (struct diagnostic_context): Change last_function to x_data.
8898 (diagnostic_auxiliary_data): Replace with
8899 diagnostic_context_auxiliary_data and
8900 diagnostic_info_auxiliary_data.
8901 (diagnostic_last_function_changed, diagnostic_set_last_function,
8902 diagnostic_report_current_function): Move to tree-diagnostic.h.
8903 (print_declaration, dump_generic_node, print_generic_stmt,
8904 print_generic_stmt_indented, print_generic_expr,
8905 print_generic_decl, debug_c_tree, dump_omp_clauses,
8906 print_call_name, debug_generic_expr, debug_generic_stmt,
8907 debug_tree_chain, default_tree_printer): Move to
8908 tree-pretty-print.h.
8909 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8910 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8911 gimple-pretty-print.h.
8912 * pretty-print.c: Don't include tree.h
8913 (pp_base_format): Don't handle %K here.
8914 (pp_base_tree_identifier): Move to tree-pretty-print.c.
8915 * pretty-print.h (text_info): Change abstract_origin to x_data.
8916 (pp_tree_identifier, pp_unsupported_tree,
8917 pp_base_tree_identifier): Move to tree-pretty-print.h.
8918 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8919 tree-pretty-print.h: New files.
8920 * tree-pretty-print.c: Include tree-pretty-print.h.
8921 (percent_K_format): New. Moved from pretty-print.c.
8922 (pp_base_tree_identifier): Move from pretty-print.c.
8923 * c-objc-common.c: Include tree-pretty-print.h.
8924 (c_tree_printer): Handle %K here.
8925 * langhooks.c: Include tree-diagnostic.h.
8926 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8927 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8928 (default_tree_printer): Handle %K using percent_K_format.
8929 (general_init): Use default_tree_diagnostic_starter.
8930 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8931 (free_lang_data): Use default_tree_diagnostic_starter.
8932 * c-pretty-print.c: Include tree-pretty-print.h.
8933 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8934 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8935 * dwarf2out.c: Include tree-pretty-print.h.
8936 * except.c: Include tree-pretty-print.h.
8937 * gimple-pretty-print.c: Include tree-pretty-print.h and
8938 gimple-pretty-print.h.
8939 * gimplify.c: Include tree-pretty-print.h.
8940 * graphite-poly.c: Include tree-pretty-print.h and
8941 gimple-pretty-print.h.
8942 * ipa-cp.c: Include tree-pretty-print.h.
8943 * ipa-inline.c: Include gimple-pretty-print.h.
8944 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8945 * ipa-pure-const.c: Include gimple-pretty-print.h.
8946 * ipa-struct-reorg.c: Include tree-pretty-print.h and
8947 gimple-pretty-print.h.
8948 * ipa-type-escape.c: Include tree-pretty-print.h.
8949 * print-rtl.c: Include tree-pretty-print.h.
8950 * print-tree.c: Include gimple-pretty-print.h.
8951 * sese.c: Include tree-pretty-print.h.
8952 * tree-affine.c: Include tree-pretty-print.h.
8953 * tree-browser.c: Include tree-pretty-print.h.
8954 * tree-call-cdce.c: Include gimple-pretty-print.h.
8955 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8956 * tree-chrec.c: Include tree-pretty-print.h.
8957 * tree-data-ref.c: Include tree-pretty-print.h and
8958 gimple-pretty-print.h.
8959 * tree-dfa.c: Include tree-pretty-print.h.
8960 * tree-if-conv.c: Include tree-pretty-print.h and
8961 gimple-pretty-print.h.
8962 * tree-inline.c: Include tree-pretty-print.h.
8963 * tree-into-ssa.c: Include tree-pretty-print.h and
8964 gimple-pretty-print.h.
8965 * tree-nrv.c: Include tree-pretty-print.h.
8966 * tree-object-size.c: Include tree-pretty-print.h and
8967 gimple-pretty-print.h.
8968 * tree-outof-ssa.c: Include tree-pretty-print.h and
8969 gimple-pretty-print.h.
8970 * tree-parloops.c: Include tree-pretty-print.h and
8971 gimple-pretty-print.h.
8972 * tree-predcom.c: Include tree-pretty-print.h and
8973 gimple-pretty-print.h.
8974 * tree-scalar-evolution.c: Include tree-pretty-print.h and
8975 gimple-pretty-print.h.
8976 * tree-sra.c: Include tree-pretty-print.h.
8977 * tree-ssa-address.c: Include tree-pretty-print.h.
8978 * tree-ssa-alias.c: Include tree-pretty-print.h.
8979 * tree-ssa-ccp.c: Include tree-pretty-print.h and
8980 gimple-pretty-print.h.
8981 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8982 * tree-ssa-copy.c: Include tree-pretty-print.h and
8983 gimple-pretty-print.h.
8984 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8985 * tree-ssa-dce.c: Include tree-pretty-print.h and
8986 gimple-pretty-print.h.
8987 * tree-ssa-dom.c: Include tree-pretty-print.h and
8988 gimple-pretty-print.h.
8989 * tree-ssa-dse.c: Include gimple-pretty-print.h.
8990 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8991 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8992 * tree-ssa-live.c: Include tree-pretty-print.h and
8993 gimple-pretty-print.h.
8994 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8995 gimple-pretty-print.h.
8996 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8997 gimple-pretty-print.h.
8998 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8999 gimple-pretty-print.h.
9000 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9001 gimple-pretty-print.h.
9002 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9003 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9004 * tree-ssa-operands.c: Include tree-pretty-print.h and
9005 gimple-pretty-print.h.
9006 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9007 gimple-pretty-print.h.
9008 * tree-ssa-pre.c: Include tree-pretty-print.h and
9009 gimple-pretty-print.h.
9010 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9011 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9012 gimple-pretty-print.h.
9013 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9014 gimple-pretty-print.h.
9015 * tree-ssa-sink.c: Include gimple-pretty-print.h.
9016 * tree-ssa-ter.c: Include tree-pretty-print.h and
9017 gimple-pretty-print.h.
9018 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9019 * tree-ssa.c: Include tree-pretty-print.h and
9020 gimple-pretty-print.h.
9021 * tree-stdarg.c: Include gimple-pretty-print.h.
9022 * tree-switch-conversion.c: Include gimple-pretty-print.h.
9023 * tree-tailcall.c: Include tree-pretty-print.h and
9024 gimple-pretty-print.h.
9025 * tree-vect-data-refs.c: Include tree-pretty-print.h and
9026 gimple-pretty-print.h.
9027 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9028 gimple-pretty-print.h.
9029 * tree-vect-loop.c: Include tree-pretty-print.h and
9030 gimple-pretty-print.h.
9031 * tree-vect-patterns.c: Include gimple-pretty-print.h.
9032 * tree-vect-slp.c: Include tree-pretty-print.h and
9033 gimple-pretty-print.h.
9034 * tree-vect-stmts.c: Include tree-pretty-print.h and
9035 gimple-pretty-print.h.
9036 * tree-vectorizer.c: Include tree-pretty-print.h.
9037 * tree-vrp.c: Include tree-pretty-print.h and
9038 gimple-pretty-print.h.
9039 * value-prof.c: Include tree-pretty-print.h and
9040 gimple-pretty-print.h.
9041 * var-tracking.c: Include tree-pretty-print.h.
9042 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9043 (tree-diagnostic.o): New dependencies.
9044 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9045 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9046 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9047 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9048 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9049 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9050 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9051 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9052 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9053 tree-ssa-address.o, tree-ssa-loop-niter.o,
9054 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9055 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9056 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9057 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9058 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9059 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9060 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9061 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9062 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9063 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9064 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9065 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9066 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9067 tree-switch-conversion.o, var-tracking.o, value-prof.o,
9068 cfgexpand.o, pretty-print.o): Update dependencies.
9070 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
9072 * tree-ssa-structalias.c: Remove tm_p.h from include.
9074 2010-05-21 Jeff Law <law@redhat.com>
9076 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9078 2010-05-21 Jason Merrill <jason@redhat.com>
9080 * tree-eh.c (cleanup_is_dead_in): New.
9081 (lower_try_finally): Don't generate a dead cleanup region.
9082 (lower_cleanup): Likewise.
9084 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9087 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9088 unchain each use from the cyclic next_regno_use chain first.
9090 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9092 * real: Do not include gmp.h, mpfr.h, and mpc.h.
9093 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9094 (real_value_negate, real_value_abs): New prototypes.
9095 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9096 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9097 new include file for interface between MPFR and REAL_VALUE_TYPE.
9098 * real.c: Include realmpfr.h.
9099 (real_arithmetic2): Remove legacy function.
9100 (real_value_negate): New.
9101 (real_value_abs): New.
9102 (mfpr_from_real, real_from_mpfr): Move from here...
9103 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9104 * builtins.c: Include realmpfr.h.
9105 * fold-const.c: Include realmpfr.h.
9106 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9107 (fold_negate_const): Likewise.
9108 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9109 * toplev.c: Include realmpfr.h.
9110 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9111 and real_value_negate.
9112 * fixed-value.c (check_real_for_fixed_mode): Likewise.
9113 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9114 (vfp3_const_double_index): Likewise.
9115 (arm_print_operand): Likewise.
9116 * Makefile.in: Update dependencies.
9118 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9120 * config/s390/s390.c (override_options): Increase the default
9121 of max-completely-peel-times.
9123 2010-05-21 Julian Brown <julian@codesourcery.com>
9124 Mark Mitchell <mark@codesourcery.com>
9126 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9127 sibling calls for Thumb-1.
9128 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9129 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9131 (*call_insn, *call_value_insn): Don't use for Thumb-2.
9132 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9134 (return): New expander.
9135 (*arm_return): New name for ARM return insn.
9136 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9138 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
9140 * config.gcc (sparc64-*-rtems*): New target.
9142 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9144 * tree.c (build_function_decl_skip_args): Fix grammar.
9145 (build_function_type_list_1): Fix typos, adjust formatting.
9147 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9149 * tree.h: Include real.h and fixed-value.h as basic datatypes.
9150 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9151 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9152 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9153 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9154 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9155 tree-pretty-print.c, tree-loop-distribution.c,
9156 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9157 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9158 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9159 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9160 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9161 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9162 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9163 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9164 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9165 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9166 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9167 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9168 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9169 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9170 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9171 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9172 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9173 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9174 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9175 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9176 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9177 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9178 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9179 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9180 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9181 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9182 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9183 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9184 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9185 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9186 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9187 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9188 config/score/score7.c, config/score/score.c, config/arm/arm.c,
9189 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9190 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9191 config/bfin/bfin.c: Clean up redundant includes.
9192 * Makefile.in: Update accordingly.
9194 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9197 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9198 statement has no arguments.
9200 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
9203 * varasm.c (emutls_decl): Merge attributes to new decl.
9205 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
9208 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9209 around the uniquized constructor if its type requires a conversion.
9211 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9214 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9215 at -O0 goto_locus of any of the incoming edges differs from
9216 goto_locus of outgoing edge, or gimple_location of any of the
9219 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
9221 * ira.c (ira_non_ordered_class_hard_regs): Define.
9222 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
9223 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
9224 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
9225 cost of unaligned hard regs when allocating multi-reg pseudos.
9227 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
9229 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
9230 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
9231 for TARGET_NO_FLOAT.
9232 * config/mips/mips.c (mips_file_start): Expand conditional expression
9233 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
9234 (mips_override_options): Move -mno-float override -msoft-float and
9236 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
9237 Condition(TARGET_SUPPORTS_NO_FLOAT).
9238 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
9239 __mips_no_float here.
9240 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
9241 (TARGET_SUPPORTS_NO_FLOAT): Define.
9242 * config/mips/sdemtk.opt: Delete.
9244 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
9246 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
9248 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
9251 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
9252 * configure: Regenerate.
9253 * config.in: Regenerate.
9254 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
9255 instead of sahf only for 64bit targets.
9257 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9260 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
9261 setup_ref_regs for DEBUG_INSNs.
9263 2010-05-20 Jan Hubicka <jh@suse.cz>
9266 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
9268 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9271 * df-scan.c (df_ref_compare): Stabilize sort.
9273 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9275 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
9276 argument. Don't use DW_OP_piece if offset is non-zero,
9277 put offset into second DW_OP_bit_piece argument.
9278 (dw_sra_loc_expr): Adjust callers. For memory expressions
9281 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
9284 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9285 settings for 16-bit-constant "addo" alternative.
9287 2010-05-19 James E. Wilson <wilson@codesourcery.com>
9289 * config/mips/mips-dsp.md (add<DSPV:mode>3,
9290 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9293 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
9294 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9297 2010-05-19 Joseph Myers <joseph@codesourcery.com>
9299 * diagnostic.c (FLOAT, FFS): Don't undefine.
9300 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9301 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9304 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
9306 * combine.c (propagate_for_debug): Call make_compound_operation
9307 on the source value.
9308 (try_combine): When implementing a split chosen by find_split_point,
9309 either copy i2src or set it to null. Assert that i2src is not null
9310 before substituting into CALL_INSN_FUNCTION_USAGE.
9312 2010-05-19 Anatoly Sokolov <aesok@post.ru>
9314 * double-int.h (double_int_ior): New function.
9315 * tree.h (build_int_cst_wide_type): Remove.
9316 * tree.c (build_int_cst_wide_type): Remove.
9317 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9318 of build_int_cst_wide_type.
9319 * stor-layout.c (set_sizetype): (Ditto.).
9320 * dojump.c (do_jump): Use build_int_cstu instead of
9321 build_int_cst_wide_type.
9323 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
9325 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9326 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9327 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9328 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9329 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
9330 propagate the 'data' argument to copy_tree_r.
9331 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9332 Propagate 'data' argument to walk_tree.
9333 (copy_if_shared): New function.
9334 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9335 (unmark_visited): New function.
9336 (unshare_body): Call copy_if_shared instead of doing it manually.
9337 (unvisit_body): Call unmark_visited instead of doing it manually.
9339 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
9341 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9342 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
9343 * hooks.c: Likewise.
9344 * target-def.h (TARGET_FOLD_BUILTIN): Define to
9345 hook_tree_tree_int_treep_bool_null.
9346 * target.h (struct gcc_target): Update signature of fold_builtin
9348 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9349 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9350 instead of the call expression.
9351 (fold_builtin_call_array): Pass n and argarray directly.
9352 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
9354 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
9355 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
9356 `i' and use it in place of `arity'.
9357 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
9358 Dereference `args' directly.
9359 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
9361 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9363 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9365 (Directives): Document optional dg-require-effective-target
9368 2010-05-19 Richard Guenther <rguenther@suse.de>
9371 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
9373 2010-05-19 Richard Guenther <rguenther@suse.de>
9375 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
9376 * common.opt (fwhopr=): New.
9377 * opts.c (common_handle_option): Handle OPT_fwhopr.
9378 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
9379 * collect2.c (main): Match -fwhopr*.
9380 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
9381 Execute ltrans stage in parallel when jobs is bigger than 1.
9383 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9385 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9386 pentiumpro on Solaris 8/x86 with Sun as.
9387 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
9389 (gcc_cv_as_ix86_quad): Check for .quad directive.
9390 * configure: Regenerate.
9391 * config.in: Regenerate.
9392 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
9394 2010-05-19 Martin Jambor <mjambor@suse.cz>
9396 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
9397 also for indirect edges. Actual printing moved...
9398 (ipa_print_node_jump_functions_for_edge): ...here.
9399 (ipa_compute_jump_functions): Renamed to
9400 ipa_compute_jump_functions_for_edge and made static.
9401 (ipa_compute_jump_functions): New function.
9402 (make_edge_direct_to_target): Check if the number of arguments on
9403 the newly direct edge is the same as the number of parametrs of
9405 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
9406 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
9407 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9408 analysis functions unconditionally, call the new
9409 ipa_analyze_params_uses on the node instead of every edge.
9411 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
9413 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
9415 (dump_mem_ref): Adopt debug code to handle a tree as step. This
9416 also checks for a constant int vs. non-constant but
9417 loop-invariant steps.
9418 (find_or_create_group): Change the sort algorithm to only consider
9419 steps that are constant ints.
9420 (idx_analyze_ref): Adopt code to handle a tree instead of a
9421 HOST_WIDE_INT for step.
9422 (gather_memory_references_ref): Handle tree instead of int and be
9423 prepared to see a NULL_TREE.
9424 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
9425 prefetches if the step cannot be calculated at compile time.
9426 (issue_prefetch_ref): Issue prefetches for non-constant but
9427 loop-invariant steps.
9429 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9432 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9434 * tree.h (build_call_list): Remove.
9435 * tree.c (build_call_list): Remove.
9437 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9439 * tree.h (build_call_list): Remove.
9440 * tree.c (build_call_list): Remove.
9442 2010-05-18 Jan Hubicka <jh@suse.cz>
9444 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
9446 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
9448 PR rtl-optimization/43332
9449 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
9451 2010-05-18 Anatoly Sokolov <aesok@post.ru>
9453 * tree.h (build_int_cstu): Implement as static inline.
9454 * tree.c (build_int_cstu): Remove function.
9455 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
9458 2010-05-18 Richard Guenther <rguenther@suse.de>
9461 * lto-wrapper.c (verbose): New variable. Initialize from -v.
9462 (debug): Initialize from -save-temps.
9463 (collect_execute): Print command-line when verbose.
9464 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
9465 for ltrans invocation. Produce -dumpbase flag again.
9466 (process_args): Remove.
9468 * collect2.c (maybe_run_lto_and_relink): Only pass object
9469 files to lto-wrapper.
9470 * gcc.c (LINK_COMMAND_SPEC): Likewise.
9472 2010-05-18 Jan Hubicka <jh@suse.cz>
9474 * opts.c (decode_options): Do not disable whopr at ipa_cp.
9475 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
9477 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
9480 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
9482 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
9485 2010-05-18 Jakub Jelinek <jakub@redhat.com>
9488 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
9491 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
9493 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
9494 lto-macho as lto_binary_reader.
9496 * darwin.c (darwin_asm_named_section): Do not add assembler comment
9497 after .section directive; just print it before the directive instead.
9499 2010-05-17 Jan Hubicka <jh@suse.cz>
9501 * cgraph.c (cgraph_create_virtual_clone): Only check
9502 versionable_function_p when not in wpa and checking is enabled.
9503 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
9504 there are no more functions to materialize.
9506 2010-05-17 Jan Hubicka <jh@suse.cz>
9508 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
9509 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
9511 (output_cgraph): Call output_cgraph_opt_summary.
9512 (input_cgrpah): Call input_cgraph_opt_summary.
9513 (output_cgraph_opt_summary_p, output_node_opt_summary,
9514 input_node_opt_summary, input_cgraph_opt_section): New functions.
9515 * lto-section-in.c (lto_section_name): Add cgraphopt.
9516 * tree-inline.c (tree_function_versioning): Handle parm_num.
9517 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
9518 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
9520 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
9522 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
9523 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
9524 the insn to prefetch ratio heuristic to loops with known trip count.
9526 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
9528 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
9529 (schedule_prefetches): Do not generate a prefetch if the unroll factor
9530 is far from what is required by the prefetch.
9532 2010-05-17 Jan Hubicka <jh@suse.cz>
9534 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
9535 (ipcp_estimate_growth): Likewise.
9536 (ipcp_const_param_count): Likewise.
9537 (ipcp_insert_stage): Likewise.
9538 * ipa-prop.c (visit_load_for_mod_analysis): New function.
9539 (visit_store_addr_for_mod_analysis): Set used flag.
9540 (ipa_detect_param_modifications): Set used flag for SSE params;
9541 update use of walk_stmt_load_store_addr_ops.
9542 (ipa_print_node_params): Print used flag.
9543 (ipa_write_node_info): Stream used flag.
9544 (ipa_read_node_info): Likewise.
9545 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
9546 (ipa_is_param_used): New function.
9547 (lto_ipa_fixup_call_notes): Remove unused declaration.
9549 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9552 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
9553 * configure: Regenerate.
9554 * config.in: Regenerate.
9555 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
9556 !HAVE_AS_IX86_REP_LOCK_PREFIX.
9557 Don't emit whitespace.
9558 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
9559 (*rep_movsi): Likewise.
9560 (*rep_movsi_rex64): Likewise.
9561 (*rep_movqi): Likewise.
9562 (*rep_movqi_rex64): Likewise.
9563 (*rep_stosdi_rex64): Likewise.
9564 (*rep_stossi): Likewise.
9565 (*rep_stossi_rex64): Likewise.
9566 (*rep_stosqi): Likewise.
9567 (*rep_stosqi_rex64): Likewise.
9568 (*cmpstrnqi_nz_1): Use {%;} after repz.
9569 (*cmpstrnqi_nz_rex_1): Likewise.
9570 (*cmpstrnqi_1): Likewise.
9571 (*cmpstrnqi_rex_1): Likewise.
9572 (*strlenqi_1): Use {%;} after repnz.
9573 (*strlenqi_rex_1): Likewise.
9574 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
9575 (*sync_compare_and_swap<mode>): Likewise.
9576 (sync_double_compare_and_swap<mode>): Likewise.
9577 (*sync_double_compare_and_swapdi_pic): Likewise.
9578 (sync_old_add<mode>): Likewise.
9579 (sync_add<mode>): Likewise.
9580 (sync_sub<mode>): Likewise.
9581 (sync_<code><mode>): Likewise.
9583 2010-05-17 Martin Jambor <mjambor@suse.cz>
9585 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9586 otr_token and polymorphic.
9587 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9588 (cgraph_clone_edge): Copy the above fields.
9589 * tree.c (get_binfo_at_offset): New function.
9590 * tree.h (get_binfo_at_offset): Declare.
9591 * ipa-prop.h (enum jump_func_type): Added known_type jump function
9592 type, reordered items, updated comments.
9593 (union jump_func_value): Added base_type field, reordered fields.
9594 (enum ipa_lattice_type): Moved down in the file.
9595 (struct ipa_param_descriptor): New field polymorphic.
9596 (ipa_is_param_polymorphic): New function.
9597 * ipa-prop.c: Include gimple.h and gimple-fold.h.
9598 (ipa_print_node_jump_functions): Print known type jump functions.
9599 (compute_complex_pass_through): Renamed to...
9600 (compute_complex_assign_jump_func): this.
9601 (compute_complex_ancestor_jump_func): New function.
9602 (compute_known_type_jump_func): Likewise.
9603 (compute_scalar_jump_functions): Create known type and complex ancestor
9605 (ipa_note_param_call): New parameter polymorphic, set the corresponding
9606 flag in the call note accordingly.
9607 (ipa_analyze_call_uses): Renamed to...
9608 (ipa_analyze_indirect_call_uses): this. New parameter target, define
9609 variable var only in the block where it is used.
9610 (ipa_analyze_virtual_call_uses): New function.
9611 (ipa_analyze_call_uses): Likewise.
9612 (combine_known_type_and_ancestor_jfs): Likewise.
9613 (update_jump_functions_after_inlining): Implemented handling of a
9614 number of new jump function types combination.
9615 (print_edge_addition_message): Removed.
9616 (make_edge_direct_to_target): New function.
9617 (try_make_edge_direct_simple_call): Likewise.
9618 (try_make_edge_direct_virtual_call): Likewise.
9619 (update_call_notes_after_inlining): Renamed to...
9620 (update_indirect_edges_after_inlining): this. Moved edge creation for
9621 indirect calls to try_make_edge_direct_simple_call, also calls
9622 try_make_edge_direct_virtual_call for virtual calls.
9623 (ipa_print_node_params): Changed the header message.
9624 (ipa_write_jump_function): Stream also known type jump functions.
9625 (ipa_read_jump_function): Likewise.
9626 (ipa_write_indirect_edge_info): Stream new fields in
9627 cgraph_indirect_call_info.
9628 (ipa_read_indirect_edge_info): Likewise.
9629 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
9632 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9634 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
9636 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9638 * tree.h (CALL_EXPR_ARGS): Delete.
9639 (call_expr_arglist): Delete.
9640 * tree.c (call_expr_arglist): Delete.
9641 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
9642 targetm.fold_builtin.
9643 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
9644 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
9645 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
9646 arglist parameter. Use CALL_EXPR_ARG.
9647 (picochip_expand_builtin_3op): Likewise.
9648 (picochip_expand_builtin_2opvoid): Likewise.
9649 (picochip_expand_array_get): Likewise.
9650 (picochip_expand_array_put): Likewise.
9651 (picochip_expand_array_testport): Likewise.
9652 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
9653 rather than arglist.
9654 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
9656 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
9657 than TREE_VALUE and TREE_CHAIN.
9658 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9659 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
9662 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9665 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
9666 to have no fallthru edge.
9669 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
9670 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
9671 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
9672 add BARRIER after previous bb if needed.
9674 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9676 * tree.c (build_function_type_list_1): Remove bogus assert condition.
9678 2010-05-17 Alan Modra <amodra@gmail.com>
9680 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
9681 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
9682 with copy_reg rtx param.
9683 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9684 Correct cases where code for ABI_V4 did not initialise the reg
9685 used to access frame. Also leave frame_reg_rtx as sp for large
9686 frames that save no regs.
9688 2010-05-17 Martin Jambor <mjambor@suse.cz>
9691 * tree-sra.c (create_access_replacement): New parameter rename, mark
9692 the replaement for renaming only when it is true.
9693 (get_access_replacement): Pass true in the rename parameter of
9694 create_access_replacement.
9695 (get_unrenamed_access_replacement): New function.
9696 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9697 replacement declaration from it.
9699 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
9701 * function.c (try_fit_stack_local, add_frame_space): New static
9703 (assign_stack_local_1): Use them. Look for opportunities to use
9704 space previously wasted on alignment.
9705 * function.h (struct frame_space): New.
9706 (struct rtl_data): Add FRAME_SPACE_LIST member.
9707 * reload1.c (something_was_spilled): New static variable.
9708 (alter_reg): Set it.
9709 (reload): Test it in addition to testing if the frame size changed.
9711 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
9713 * config/s390/s390.c: Define sane prefetch settings and activate
9714 flag_prefetch_loop_arrays on -O3.
9715 * config/s390/s390.h: Declare that read can use write prefetch.
9717 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9719 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9722 2010-05-16 Jan Hubicka <jh@suse.cz>
9724 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9725 function body; do not check stdarg field of struct function.
9727 2010-05-16 Jan Hubicka <jh@suse.cz>
9729 * cgraph.c (dump_cgraph_node): Dump versionable flag.
9730 * cgraph.h (cgraph_local_info): Add versionable flag.
9731 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9732 (ipcp_versionable_function_p): Use it.
9733 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9736 2010-05-16 Jan Hubicka <jh@suse.cz>
9738 * cgraph.c (cgraph_clone_node): Take decl argument and insert
9739 clone into hash when it is different from orig.
9740 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9741 * cgraph.h (cgraph_clone_node): Update prototype.
9742 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9743 (lto_cgraph_encoder_delete): Delete body map.
9744 (lto_cgraph_encoder_size): Move to header.
9745 (lto_cgraph_encoder_encode_body_p,
9746 lto_set_cgraph_encoder_encode_body): New.
9747 (lto_output_node): Do not take written_decls argument; output clone_of
9749 (add_node_to): Add include_body_argument; call
9750 lto_set_cgraph_encoder_encode_body on master of the clone.
9751 (add_references): Update use of add_node_to.
9752 (compute_ltrans_boundary): Likewise.
9753 (output_cgraph): Do not create written_decls bitmap.
9754 (input_node): Take nodes argument; stream in clone_of correctly.
9755 (input_cgraph_1): Update use of input_node.
9756 * lto-streamer-out.c (lto_output): Use encoder info to decide
9757 what bodies to output.
9758 * ipa-inline.c (cgraph_clone_inlined_nodes,
9759 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9760 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9761 (lto_cgraph_encoder_size): Define here.
9762 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9765 2010-05-16 Richard Guenther <rguenther@suse.de>
9767 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9769 * ipa-type-escape.c (gate_type_escape_vars): Run when
9770 -fipa-struct-reorg runs.
9771 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9772 * common.opt (fipa-type-escape): Remove.
9774 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9776 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9777 (decode_options): Likewise.
9778 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9780 2010-05-16 Jan Hubicka <jh@suse.cz>
9782 * ipa.c (function_and_variable_visibility): Also bring local all
9785 2010-05-16 Richard Guenther <rguenther@suse.de>
9787 * alias.c (nonoverlapping_memrefs_p): Remove use of
9788 IPA type-escape information.
9790 2010-05-16 Joseph Myers <joseph@codesourcery.com>
9792 * c-common.c (c_common_reswords): Add _Static_assert for C.
9793 * c-parser.c (c_token_starts_declaration,
9794 c_parser_next_token_starts_declaration,
9795 c_parser_static_assert_declaration_no_semi,
9796 c_parser_static_assert_declaration): New.
9797 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9798 Handle static assertions if static_assert_ok.
9799 (c_parser_external_declaration, c_parser_declaration_or_fndef,
9800 c_parser_compound_statement_nostart, c_parser_label,
9801 c_parser_for_statement, c_parser_objc_methodprotolist,
9802 c_parser_omp_for_loop): All callers of
9803 c_parser_declaration_or_fndef changed.
9804 (c_parser_struct_declaration): Handle static assertions.
9805 (c_parser_compound_statement_nostart): Use
9806 c_parser_next_token_starts_declaration and
9807 c_token_starts_declaration to detect start of declarations.
9808 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9811 2010-05-16 Anatoly Sokolov <aesok@post.ru>
9813 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9814 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9815 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9816 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9817 (mmix_function_outgoing_value): Rename to...
9818 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9819 (mmix_function_value_regno_p): Make static.
9820 (mmix_libcall_value): New function.
9821 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9822 mmix_function_value_regno_p): Remove declaration.
9824 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9826 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9827 BUILT_IN_ALLOCA if stack checking is enabled.
9829 2010-05-16 Richard Guenther <rguenther@suse.de>
9831 * var-tracking.c (vars_copy_1): Inline ...
9832 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
9833 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
9834 (variable_merge_over_cur): Adjust. Merge asserts.
9835 (variable_merge_over_src): Likewise.
9836 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9837 (variable_post_merge_new_vals): Merge asserts.
9838 (variable_post_merge_perm_vals): Likewise.
9839 (find_mem_expr_in_1pdv): Likewise.
9840 (dataflow_set_different_value): Remove.
9841 (onepart_variable_different_p): Merge asserts.
9842 (variable_different_p): Likewise.
9843 (dataflow_set_different_1): Inline ...
9844 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
9845 (emit_notes_for_differences_1): Merge asserts.
9847 2010-05-16 Richard Guenther <rguenther@suse.de>
9849 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9850 * optabs.c (libfunc_decl_hash): Likewise.
9851 * varasm.c (emutls_decl): Likewise.
9853 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
9855 * c-decl.c: Don't include gimple.h.
9856 (merge_decls): Do not copy gimple_body.
9858 2010-05-15 Jason Merrill <jason@redhat.com>
9860 * c.opt: Add -fnothrow-opt.
9862 2010-05-15 Jan Hubicka <jh@suse.cz>
9864 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9866 * passes.c (ipa_write_summaries): Write all analyzed nodes.
9868 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
9870 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9871 * Makefile.in: Add it.
9872 Fix all other Makefile dependencies for changes below.
9873 * tree.h: Include it instead of defining VEC primitives here.
9874 * gimple.h: Likewise.
9876 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9877 * except.h: Include vecir.h, break dependence on tree.h.
9879 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9881 * tree-iterator.c: ...to here.
9882 * tree-iterator.h: Fix file introduction comment. Add extern markers.
9884 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
9886 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9887 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9888 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9889 tree-mudflap.h, and target.h.
9890 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9891 predict.h, tree-inline.h, gimple.h, and langhooks.h.
9892 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9893 Add FIXME for why gimple.h is still included (should be unnecessary
9894 since GCC 4.5 gimplification unit-at-a-time).
9895 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9896 * c-pragma.c: Add FIXME for why function.h needs to be included just
9897 for cfun, at front-end level.
9898 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9899 Do not include ggc.h, but include vecprim.h for VEC(char).
9900 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9901 Explain why target.h is included.
9902 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9903 Explain why gimple.h is included.
9904 * c-ppoutput.c: Do not include tm.h.
9905 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
9906 * c-parses.c: Explain why rtl.h is included, and that this (and only
9907 this) is also why tm.h must be included.
9908 Do not include except.h.
9909 * c-lang.c: Do not include ggc.h.
9911 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
9913 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9915 2010-05-15 Joseph Myers <joseph@codesourcery.com>
9917 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9918 unions by default if those structs and unions have no tags. Do
9919 not condition anonymous struct and unions handling on flag_iso.
9920 Allow anonymous structs and unions for C1X.
9921 (finish_struct): Do not diagnose lack of named fields when
9922 anonymous structs and unions present for C1X. Accept flexible
9923 array members in structure with anonymous structs or unions but no
9924 directly named fields.
9925 * doc/extend.texi (Unnamed Fields): Update.
9927 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
9929 * gimple.h (compare_field_offset): Rename into...
9930 (gimple_compare_field_offset): ...this.
9931 * gimple.c (compare_field_offset): Rename into...
9932 (gimple_compare_field_offset): ...this. Compare the full access if
9933 the offset is self-referential.
9934 (gimple_types_compatible_p): Adjust for above renaming.
9935 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
9936 DECL_NONADDRESSABLE_P flag of fields before merging them.
9938 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
9940 * tree.h (ctor_to_list): Delete.
9941 * tree.c (ctor_to_list): Delete.
9943 2010-05-15 Jan Hubicka <jh@suse.cz>
9945 * ipa-reference.c: Include toplev.h
9946 (is_proper_for_analysis): Only add to all_module_statics
9948 (write_node_summary_p, stream_out_bitmap,
9949 ipa_reference_write_optimization_summary,
9950 ipa_reference_read_optimization_summary): New.
9951 (struct ipa_opt_pass_d pass_ipa_reference): Add
9952 optimization summary streaming.
9953 * lto-cgraph.c (referenced_from_this_partition_p,
9954 reachable_from_this_partition_p): New functions.
9955 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9956 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9957 * opts.c (decode_options): Enable ipa_reference.
9958 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9959 * lto-streamer.h (referenced_from_this_partition_p,
9960 reachable_from_this_partition_p): Declare.
9962 2010-05-15 Richard Guenther <rguenther@suse.de>
9964 PR tree-optimization/44038
9965 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9966 taking the address of a V_C_E of a constant.
9968 2010-05-14 Jan Hubicka <jh@suse.cz>
9970 * tree.h (memory_identifier_string): Remove.
9971 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9972 (ipa_reference_global_vars_info_d): Remove statics_not_read and
9973 statics_not_written.
9974 (ipa_reference_optimization_summary_d): New structure.
9975 (ipa_reference_optimization_summary_t): New type and vector.
9976 (ipa_reference_vars_info_d): Embedd structures instead of using
9978 (reference_vars_to_consider): Remove out of GGC space.
9979 (module_statics_escape): Remove.
9980 (global_info_obstack): Rename to ...
9981 (optimization_summary_obstack): ... this one.
9982 (initialization_status_t): Remove.
9983 (memory_identifier_string): Remove.
9984 (get_reference_vars_info): Fix indenting.
9985 (set_reference_vars_info): Likewise.
9986 (get_reference_optimization_summary): New.
9987 (set_reference_optimization_summary): New.
9988 (get_global_reference_vars_info): Remove.
9989 (ipa_reference_get_read_global): Remove.
9990 (ipa_reference_get_written_global): Remove.
9991 (ipa_reference_get_not_read_global): Update.
9992 (ipa_reference_get_not_written_global): Update.
9993 (is_proper_for_analysis): Outlaw addressable.
9994 (propagate_bits): Update for new datastructures.
9995 (analyze_variable): Remove.
9996 (init_function_info): Update for new datastructures.
9997 (clean_function_local_data): Remove.
9998 (clean_function): Remove.
9999 (copy_global_bitmap): Use optimizations_summary_obstack.
10000 (duplicate_node_data): Duplicate optimization summary only.
10001 (remove_node_data): Remove optimization summary only.
10002 (generate_summary): Do not analyze variables; do not compute
10003 module_statics_escape; do not prune solutions by it.
10004 (read_write_all_from_decl): Fix typos in comments.
10005 (propagate): Doscover readonly and nonaddressable first;
10006 update for new datastructures; share global bitmaps.
10007 * ipa-reference.h (ipa_reference_get_read_global,
10008 ipa_reference_get_written_global): Remove.
10009 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10010 * Makefile.in: Remove ipa-refereference from GT files.
10012 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10015 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10016 for all SYMBOL_REF_DECLs.
10018 2010-05-14 Jan Hubicka <jh@suse.cz>
10020 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10021 (varpool_all_refs_explicit_p): New inline function.
10022 * ipa-reference.c: Update comment.
10023 (module_statics_written): Remove.
10024 (get_static_decl): Remove.
10025 (ipa_init): Do not initialize module_statics_written.
10026 (analyze_function): Likewise.
10027 (generate_summary): Likewise; do not compute module_statics_readonly
10028 and do not update variable flags.
10029 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10030 * ipa.c: Inlucde flags.h
10031 (cgraph_local_node_p): New.
10032 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10033 promote functions to local.
10034 (ipa_discover_readonly_nonaddressable_vars): New function.
10035 (function_and_variable_visibility): Use cgraph_local_node_p.
10036 * varpool.c (varpool_finalize_decl): Set force_output for
10037 DECL_PRESERVE_P vars.
10039 2010-05-14 Jan Hubicka <jh@suse.cz>
10041 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10043 2010-05-14 Richard Guenther <rguenther@suse.de>
10045 PR tree-optimization/44119
10046 * tree-ssa-pre.c (eliminate): Properly mark replacement of
10047 a PHI node necessary.
10049 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
10051 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10053 2010-05-14 Jason Merrill <jason@redhat.com>
10056 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10057 (gimple_call_set_nothrow): New.
10058 * gimple.c (gimple_build_call_from_tree): Call it.
10059 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10062 * gimplify.c (gimplify_seq_add_stmt): No longer static.
10063 * gimple.h: Declare it.
10064 * gimple.c (gimple_build_eh_filter): No ops.
10066 2010-05-14 Jan Hubicka <jh@suse.cz>
10068 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10069 nodes already in queue.
10070 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10071 re-enqueueing node.
10073 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10076 * cfgexpand.c (expand_debug_expr): If non-memory op0
10077 has BLKmode, return NULL.
10079 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
10081 * config.gcc: Add support for --with-cpu option for bdver1.
10082 * config/i386/i386.h (TARGET_BDVER1): New macro.
10083 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10084 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10085 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10086 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10087 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10088 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10089 (processor_type): Add PROCESSOR_BDVER1.
10090 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10091 processor_type in config/i386/i386.h.
10092 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10093 movaps <reg, reg> instead of movapd <reg, reg> when replacing
10094 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10095 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10096 to emit packed xor instead of packed double/packed integer
10097 xor for SSE and AVX when moving a zero value.
10098 * config/i386/sse.md: Add check for
10099 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10100 movapd/movdqa for SSE and AVX.
10101 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10102 single logical operations i.e and, or and xor instead of packed double
10103 logical operations for SSE and AVX.
10104 * config/i386/i386-c.c (ix86_target_macros_internal):
10105 Add PROCESSOR_BDVER1.
10106 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10107 (has_fma4, has_xop): New.
10108 * config/i386/i386.c (bdver1_cost): New variable.
10109 (m_BDVER1): New macro.
10110 (m_AMD_MULTIPLE): Add m_BDVER1.
10111 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10112 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10113 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10114 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10115 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10116 x86_tune_sse_partial_reg_dependency,
10117 x86_tune_sse_unaligned_load_optimal,
10118 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10119 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10120 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10121 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10122 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10123 Enable/disable for bdver1.
10124 (processor_target_table): Add bdver1_cost.
10125 (cpu_names): Add bdver1.
10126 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10127 processor_alias_table.
10128 (ix86_expand_vector_move_misalign): Change.
10129 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10130 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10131 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10132 of movupd/movdqu for SSE and AVX.
10133 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10134 (ix86_tune_adjust_cost): Add code for bdver1.
10135 (standard_sse_constant_opcode): Add check for
10136 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10137 of packed double xor for SSE and AVX.
10139 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
10141 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10142 result to unsigned.
10144 2010-05-14 Tristan Gingold <gingold@adacore.com>
10146 * toplev.c (default_debug_hooks): Remove this variable.
10147 (process_options): Remove assignments to default_debug_hooks.
10149 2010-05-14 Martin Jambor <mjambor@suse.cz>
10151 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10152 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10153 * langhooks.h (struct lang_hooks_for_decls): Removed field
10155 * tree.c (free_lang_data): Remove assignment to
10156 lang_hooks.fold_obj_type_ref.
10157 * tree.def (OBJ_TYPE_REF): Update comment.
10159 2010-05-14 Richard Guenther <rguenther@suse.de>
10161 PR tree-optimization/44124
10162 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10164 2010-05-14 Alan Modra <amodra@gmail.com>
10167 * config/rs6000/rs6000.c (struct machine_function): Reorder
10168 fields for better packing. Add lr_save_state.
10169 (rs6000_ra_ever_killed): Return lr_save_state if set.
10170 (rs6000_emit_eh_reg_restore): Set lr_save_state.
10172 2010-05-13 Jan Hubicka <jh@suse.cz>
10174 * varpool.c (decide_is_variable_needed): Drop code checking
10175 TREE_SYMBOL_REFERENCED.
10177 2010-05-13 Jan Hubicka <jh@suse.cz>
10179 * final.c (output_addr_const): Do not call mark_decl_referenced.
10180 * cgraphunit.c (process_function_and_variable_attributes): Use
10181 mark_needed_node dirrectly.
10182 (assemble_thunk): Do not call mark_decl_referenced.
10184 2010-05-13 Anatoly Sokolov <aesok@post.ru>
10186 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10188 2010-05-13 Jeff Law <law@redhat.com>
10190 * ira-conflicts.c (print_allocno_conflicts): New function broken out
10192 (print_conflicts): Call print_allocno_conflicts.
10194 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10197 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10200 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
10202 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10203 t-mingw-w64 or t-mingw-w32 for multilib configuration.
10204 * config/i386/t-mingw-w32: New.
10205 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10207 2010-05-13 Martin Jambor <mjambor@suse.cz>
10209 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10211 * gimple-fold.c (get_base_binfo_for_type): New function.
10212 (gimple_get_relevant_ref_binfo): Likewise.
10213 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10214 (gimple_fold_obj_type_ref): Likewise.
10215 (fold_gimple_call): Simplify condition for folding virtual calls
10216 and call gimple_fold_obj_type_ref.
10217 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
10218 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10220 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
10222 * config/rs6000/rs6000-protos.h
10223 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
10224 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
10225 (rs6000_debug_mode_dependent_address)
10226 (rs6000_mode_dependent_address_ptr): Likewise.
10228 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10231 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
10233 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
10234 * tree-sra.c (create_access_replacement): Call unshare_expr before
10235 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
10236 * dwarf2out.c: Include tree-flow.h.
10237 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
10238 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10239 Handle DW_OP_bit_piece.
10240 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
10241 construct_piece_list, adjust_piece_list): New functions.
10242 (add_var_loc_to_decl): Handle SRA optimized variables.
10243 Adjust for var_loc_note to loc field renaming.
10244 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
10245 in VAR_LOCATION note.
10246 (new_loc_descr_op_bit_piece): New function.
10247 (dw_sra_loc_expr): New function.
10248 (dw_loc_list): Use it. Don't handle the last range after the
10249 loop, handle it inside of the loop. Adjust for var_loc_note
10250 to loc field renaming.
10251 (add_location_or_const_value_attribute): Only special case
10252 single entry loc lists if loc is NOTE_P. Adjust for
10253 var_loc_note to loc field renaming.
10254 (dwarf2out_var_location): Don't set newloc->var_loc_note
10255 and newloc->next here.
10257 2010-05-12 Jan Hubicka <jh@suse.cz>
10259 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
10261 * cgraph.h (cgraph_only_called_directly_p,
10262 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
10263 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
10264 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
10266 * ipa.c (cgraph_remove_unreachable_nodes): Use
10267 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
10269 * tree-inline.c (copy_bb): Check address_taken flag.
10270 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
10271 externally_visible flag.
10273 2010-05-12 Jason Merrill <jason@redhat.com>
10277 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
10278 * sdbout.c (plain_type_1): Likewise.
10279 * dwarf2out.c (is_base_type): Likewise.
10280 (gen_type_die_with_usage): Likewise. Generate
10281 DW_TAG_unspecified_type for any LANG_TYPE.
10283 2010-05-12 Jan Hubicka <jh@suse.cz>
10285 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10287 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10288 (cgraph_clone_edge): Update.
10289 (cgraph_node_remove_callees): Remove indirect calls too.
10290 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10291 (cgraph_create_indirect_edge): Update prototype.
10292 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10293 is_proper_for_analysis.
10294 (add_new_function, visited_nodes, function_insertion_hook_holder,
10295 get_local_reference_vars_info, mark_address_taken, mark_address,
10296 mark_load, mark_store, check_asm_memory_clobber, check_call,
10297 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10298 (ipa_init): Do not initialize visited_nodes;
10299 function_insertion_hook_holder.
10300 (analyze_variable): Rewrite.
10301 (analyze_function): Rewrite.
10302 (copy_local_bitmap): Remove.
10303 (duplicate_node_dat): Do not duplicate local info.
10304 (generate_summary): Simplify to only walk cgraph.
10305 (write_node_summary_p, ipa_reference_write_summary,
10306 ipa_reference_read_summary): Remove.
10307 (propagate): Do not remove function insertion;
10309 (pass_ipa_reference): NULLify summary handling fields.
10310 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10311 (input_edge): Input ecf_flags.
10312 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10313 (update_indirect_edges_after_inlining): Ignore edges with unknown
10316 2010-05-12 Sriraman Tallam <tmsriram@google.com>
10318 * implicit-zee.c: New file.
10319 * tree-pass.h (pass_implicit_zee): Declare.
10320 * passes.c (init_optimization_passes): Add zee pass.
10321 * common.opt (fzee): New flag.
10322 * timevar.def (TV_ZEE): Define.
10323 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10325 * Makefile.in (implicit-zee.o): Add new build file.
10327 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10328 Nathan Froyd <froydnj@codesourcery.com>
10330 * c-common.c (sync_resolve_params): Remove write-only variable.
10332 2010-05-12 Anatoly Sokolov <aesok@post.ru>
10334 * target.h (struct gcc_target): Add mode_dependent_address_p field.
10335 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10336 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10337 * targhooks.c (default_mode_dependent_address_p): New function.
10338 * targhooks.h (default_mode_dependent_address_p): Declare function.
10339 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10340 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10341 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10342 target hook. Change return type to bool.
10343 * recog.h (mode_dependent_address_p): Change return type to bool.
10345 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10346 Nathan Froyd <froydnj@codesourcery.com>
10348 * tree-mudflap.c (build_function_type_0, build_function_type_1,
10349 build_function_type_2, build_function_type_3): Remove.
10350 (mudflap_init): Use build_function_type_list.
10352 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10353 Nathan Froyd <froydnj@codesourcery.com>
10355 * coverage.c (build_fn_info_value): Call build_constructor instead of
10356 build_constructor_from_list.
10357 (build_ctr_info_value): Likewise.
10358 (build_gcov_info): Likewise.
10360 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
10362 * tree.c (build_constructor): Compute TREE_CONSTANT for the
10363 resultant constructor.
10364 (build_constructor_single): Don't set TREE_CONSTANT.
10365 (build_constructor_from_list): Don't compute TREE_CONSTANT.
10367 2010-05-12 Jan Hubicka <jh@suse.cz>
10369 * cgraph.h (struct varpool_node): Add aux.
10370 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
10371 * varpool.c (varpool_remove_node): Do not remove initializer.
10372 (varpool_reset_queue): Export.
10373 (varpool_finalize_decl): Volatile vars are forced to be output.
10374 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
10376 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
10377 process_references, varpool_can_remove_if_no_refs): New functions.
10378 (cgraph_remove_unreachable_nodes): Handle variables too.
10380 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
10383 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
10385 2010-05-12 Jakub Jelinek <jakub@redhat.com>
10387 PR middle-end/44085
10388 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
10389 change value of ORT_TASK.
10390 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
10391 (omp_notice_threadprivate_variable): New function.
10392 (omp_notice_variable): Call it for threadprivate variables.
10393 If enclosing ctx is a task, print enclosing task rather than
10394 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
10395 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
10396 if task has untied clause.
10399 * dwarf2out.c (base_type_die): Don't add name attribute here.
10400 (modified_type_die): Instead of sizetype use
10401 its underlying original type. If a DW_TAG_base_type doesn't
10402 have name added, add __unknown__.
10403 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
10404 always call force_type_die instead.
10406 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
10408 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
10409 for __stack_chk_guard.
10411 2010-05-11 Jakub Jelinek <jakub@redhat.com>
10413 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
10414 don't call start_source_file debug hook here...
10415 (finish_options): ... but here, after outputting predefined and
10416 command line defines and undefs.
10418 PR middle-end/44071
10419 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
10421 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
10422 optimizing away empty bb with no successors, move over its
10423 footer chain to fallthru predecessor.
10424 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
10425 (rtl_split_edge): For asm goto call patch_jump_insn even if
10426 splitting fallthru edge.
10429 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
10430 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
10431 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10432 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
10436 * c-parser.c (c_parser_expression): Mark LHS of a comma
10437 expression as read if it is a decl, handled component or
10438 COMPOUND_EXPR with that on the RHS.
10439 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
10440 if it is a decl or handled component.
10442 2010-05-11 Jan Hubicka <jh@suse.cz>
10444 * lto-symtab.c (lto_symtab_free): New function.
10445 * lto-streamer.h (lto_symtab_free): Declare.
10447 2010-05-11 Jan Hubicka <jh@suse.cz>
10449 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
10450 that if function is needed it is reachable.
10451 (lto_output_node): See if it the function is reachable or referenced.
10452 (output_cgraph): Update call of lto_output_node.
10453 * lto-streamer.h (reachable_from_other_partition_p): Declare.
10455 2010-05-11 Jan Hubicka <jh@suse.cz>
10457 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
10460 2010-05-11 Jan Hubicka <jh@suse.cz>
10462 PR tree-optimize/44063
10463 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
10465 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
10467 (estimate_function_body_sizes): Compute sizes even when disregarding.
10469 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
10471 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
10473 2010-05-11 Jan Hubicka <jh@suse.cz>
10475 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
10476 into every boundary.
10478 2010-05-11 Jan Hubicka <jh@suse.cz>
10480 * matrix-reorg.c (matrix_reorg): Rebuild edges.
10482 2010-05-11 Jan Hubicka <jh@suse.cz>
10484 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
10485 lto_streamer_cache_delete): Put nodes into heap.
10486 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
10489 2010-05-11 Jan Hubicka <jh@suse.cz>
10491 * cgraphbuild.c (cgraph_rebuild_references): New.
10492 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
10493 out extern inlines.
10494 * cgraph.h (cgraph_rebuild_references): Declare.
10495 * tree-inline.c (tree_function_versioning): Use it.
10496 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
10498 2010-05-11 Jan Hubicka <jh@suse.cz>
10500 * cgraph.c: Include ipa-utils.h
10501 (cgraph_create_virtual_clone): Update references.
10502 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
10504 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
10506 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
10507 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
10510 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
10512 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
10514 2010-05-11 Jakub Jelinek <jakub@redhat.com>
10516 * gcc.c (execute): For -### don't quote arguments that
10517 contain just alphanumerics and _/-. characters.
10518 * doc/invoke.texi: Document that change for -###.
10521 * df-problems.c (struct dead_debug): Add to_rescan field.
10522 (dead_debug_init): Clear to_rescan field.
10523 (dead_debug_finish): Rescan all debug insns in to_rescan
10524 bitmap and free the bitmap.
10525 (dead_debug_insert_before): Instead of rescanning debug insns
10526 immediately queue their rescanning until dead_debug_finish.
10527 (df_note_bb_compute): After dead_debug_add do continue instead
10530 2010-05-10 Jakub Jelinek <jakub@redhat.com>
10533 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
10534 clear also INSN_REG_USE_LIST.
10536 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10538 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
10540 2010-05-10 Jan Hubicka <jh@suse.cz>
10542 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
10545 2010-05-10 Jan Hubicka <jh@suse.cz>
10547 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
10549 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
10550 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
10551 (lto_streamer_cache_create): Init alloc pool.
10552 (lto_streamer_cache_delete): Free alloc pool.
10553 * lto-streamer.h: Include alloc pool.
10554 (lto_streamer_cache_d): Use alloc pool.
10555 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
10557 2010-05-10 Jan Hubicka <jh@suse.cz>
10559 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
10560 * cgraphbuild.c: Include except.h
10561 (record_type_list, record_eh_tables): New function.
10562 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
10564 2010-05-10 Jan Hubicka <jh@suse.cz>
10566 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
10567 __frame_dummy_init_array_entry, force_to_data): Attribute as used
10568 rather than unused.
10570 2010-05-10 Michael Matz <matz@suse.de>
10572 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
10573 (can_reassociate_p): Use FLOAT_TYPE_P.
10574 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
10575 (vect_force_simple_reduction): ... this.
10576 * tree-parloops.c (gather_scalar_reductions): Use
10577 vect_force_simple_reduction.
10578 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
10579 vect_is_simple_reduction, add modify argument, if true rewrite
10580 "a-b" into "a+(-b)".
10581 (vect_is_simple_reduction, vect_force_simple_reduction): New
10583 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10585 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
10586 Vladimir Makarov <vmakarov@redhat.com>
10588 PR rtl-optimization/44012
10589 * ira-build.c (remove_unnecessary_allocnos): Nullify
10590 regno_allocno_map of the removed allocno.
10592 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10594 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10596 * configure: Regenerate.
10598 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10600 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10602 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10603 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10605 * configure: Regenerate.
10607 2010-05-10 Richard Guenther <rguenther@suse.de>
10609 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10610 marked if the entry identifier is marked.
10612 2010-05-10 Richard Guenther <rguenther@suse.de>
10614 * c-common.c (struct c_common_attributes): Add fnspec attribute.
10615 (handle_fnspec_attribute): New function.
10616 * gimple.h (gimple_call_return_flags): Declare.
10617 (gimple_call_arg_flags): Likewise.
10618 * gimple.c (gimple_call_arg_flags): New function.
10619 (gimple_call_return_flags): Likewise.
10620 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10621 New argument flags.
10622 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10623 return value flags.
10624 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
10625 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
10627 (make_heapvar_for): ... this new function.
10628 (handle_rhs_call): Handle fnspec attribute argument specifiers.
10629 (handle_lhs_call): Likewise.
10630 (find_func_aliases): Adjust.
10632 2010-05-10 Richard Guenther <rguenther@suse.de>
10634 PR tree-optimization/44050
10635 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
10637 2010-05-10 Wei Guozhi <carrot@google.com>
10640 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
10642 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10645 * c-typeck.c (lookup_field): Take a type directly. Update
10647 (build_component_ref): Update call to lookup_field.
10648 (set_init_label): Use lookup_field to find initialized field.
10649 Handle returned list of fields like a sequence of designators.
10651 2010-05-09 Richard Guenther <rguenther@suse.de>
10653 PR middle-end/44024
10654 * fold-const.c (tree_single_nonzero_warnv_p): Properly
10655 handle &FUNCTION_DECL.
10657 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10660 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
10661 structures and unions recursively.
10662 (detect_field_duplicates): Move duplicate detection with a hash to
10663 detect_field_duplicates_hash. Always use a hash if anonymous
10664 structures or unions are present.
10665 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
10668 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
10671 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
10672 detect Atom, Core 2 and Core i7.
10674 2010-05-09 Richard Guenther <rguenther@suse.de>
10676 * gcc.c (store_arg): Handle temporary file deletion for
10679 2010-05-09 Richard Guenther <rguenther@suse.de>
10681 PR middle-end/44043
10682 * ipa-inline.c (estimate_function_body_sizes): Return after
10683 disregarding inline limits.
10685 2010-05-09 Richard Guenther <rguenther@suse.de>
10687 * gcc.c (store_arg): Revert last change.
10689 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
10691 PR middle-end/28685
10692 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10693 (optimize_ops_list): Call it.
10695 2010-05-08 Richard Guenther <rguenther@suse.de>
10697 PR tree-optimization/44030
10698 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
10699 NECESSARY flag if we propagate from a inserted expression.
10701 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
10703 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10704 domain types as equal if they are both PLACEHOLDER_EXPRs.
10706 2010-05-08 Richard Guenther <rguenther@suse.de>
10708 * lto-wrapper.c (run_gcc): Remove linker output from
10709 command line for LTRANS invocation.
10711 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10713 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10714 lto-macho as lto_binary_reader.
10715 * target.h (struct gcc_target): New hooks lto_start and lto_end.
10716 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10717 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10718 in lto_start and lto_end calls.
10719 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
10721 (scan_prog_file): Update is_elf_or_coff call.
10722 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10724 * collect2.c (main): Fix enum comparison.
10726 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10728 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10729 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
10730 and TARGET_ASM_LTO_END.
10731 * darwin.c: Include obstack.h and lto-streamer.h.
10732 (lto_section_names_offset, lto_section_names_obstack,
10733 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10735 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10736 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
10737 to a temporary file.
10738 (darwin_asm_lto_end): New function. Restore asm_out_file.
10739 (darwin_asm_named_section): For LTO sections, replace the name with
10740 the offset of the section name in a string table, and build this
10742 (darwin_file_start): Initialize global vars for LTO support.
10743 (darwin_file_end): If output to asm_out_file was redirected, append it
10744 to the proper asm_out_file here. Add the section names section.
10746 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10748 * c-pragma.c (pending_weak_d, pending_weak): New.
10749 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10750 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10751 handle_pragma_weak): Update the uses of pending_weaks.
10753 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10755 PR documentation/44016
10756 * doc/standards.texi (Standards): Link to unversioned
10757 cxx0x_status.html page.
10759 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
10762 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10763 in addition to TREE_USED, to avoid "set but unused" warnings.
10765 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10767 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10768 (is_loop_prefetching_profitable): Do not insert prefetches
10769 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10770 times the prefetch ahead distance.
10772 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10774 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10775 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10776 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10779 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10781 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10782 a diagnostic info when the insn-to-mem ratio is too small.
10784 2010-05-07 Richard Guenther <rguenther@suse.de>
10786 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10788 (store_arg): Queue temp_filename for deletion instead of
10789 the whole argument.
10791 2010-05-07 Richard Guenther <rguenther@suse.de>
10793 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10794 (run_gcc): Handle LTRANS phase invocation.
10795 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10797 2010-05-07 Jakub Jelinek <jakub@redhat.com>
10799 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10800 this is also meaningful on PARM_DECLs and RESULT_DECLs.
10802 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10804 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10806 2010-05-07 Richard Guenther <rguenther@suse.de>
10808 PR tree-optimization/44020
10809 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10810 code when PRE is not yet initialized.
10812 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10814 * config/mips/dbxmdebug.h: Remove.
10815 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10817 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
10819 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10820 with null pointer and also warn about ordered comparison of zero with
10821 pointer if -Wextra.
10823 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10825 * graphite-blocking.c
10826 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10827 * graphite-clast-to-gimple.c
10828 (clast_to_gcc_expression): Same.
10829 (precision_for_value): Same.
10830 (precision_for_interval): Same.
10831 (gcc_type_for_interval): Same.
10832 (graphite_create_new_guard): Same.
10833 (compute_bounds_for_level): Same.
10834 (graphite_create_new_loop_guard): Same.
10835 * graphite-interchange.c
10836 (build_linearized_memory_access): Same.
10837 (pdr_stride_in_loop): Same.
10838 (memory_strides_in_loop_1): Same.
10839 (memory_strides_in_loop): Same.
10840 (extend_scattering): Same.
10841 (psct_scattering_dim_for_loop_depth): Same.
10842 (pbb_number_of_iterations): Same.
10844 (debug_iteration_domains): Same.
10846 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10847 (ppl_set_inhomogeneous_gmp): Same.
10848 (ppl_strip_loop): Same.
10849 (ppl_lexico_compare_linear_expressions): Same.
10850 (ppl_read_polyhedron_matrix): Same.
10851 (ppl_max_for_le_pointset): Same.
10853 (ppl_read_polyhedron_matrix): Same.
10854 (tree_int_to_gmp): Same.
10855 (gmp_cst_to_tree): Same.
10856 (ppl_set_inhomogeneous): Same.
10857 (ppl_set_inhomogeneous_tree): Same.
10858 (ppl_set_coef): Same.
10859 (ppl_set_coef_tree): Same.
10860 * graphite-sese-to-poly.c
10861 (build_pbb_scattering_polyhedrons): Same.
10862 (build_scop_scattering): Same.
10863 (scan_tree_for_params_right_scev): Same.
10864 (scan_tree_for_params): Same.
10865 (find_params_in_bb): Same.
10866 (find_scop_parameters): Same.
10867 (add_upper_bounds_from_estimated_nit): Same.
10868 (build_loop_iteration_domains): Same.
10869 (add_condition_to_domain): Same.
10870 (pdr_add_memory_accesses): Same.
10872 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10874 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10875 CLooG's value_* macros to their respective mpz_* counterparts.
10876 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10877 (graphite_create_new_loop_guard): Same.
10878 * graphite-interchange.c (build_linearized_memory_access): Same.
10879 (pdr_stride_in_loop): Same.
10880 (memory_strides_in_loop_1): Same.
10881 (1st_interchange_profitable_p): Same.
10882 * graphite-poly.c (extend_scattering): Same.
10883 (psct_scattering_dim_for_loop_depth): Same.
10884 (pbb_number_of_iterations): Same.
10885 (pbb_number_of_iterations_at_time): Same.
10886 * graphite-poly.h (new_1st_loop): Same.
10887 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10888 (oppose_constraint): Same.
10889 (insert_constraint_into_matrix): Same.
10890 (ppl_set_inhomogeneous_gmp): Same.
10891 (ppl_set_coef_gmp): Same.
10892 (ppl_strip_loop): Same.
10893 (ppl_lexico_compare_linear_expressions): Same.
10894 (ppl_max_for_le_pointset): Same.
10895 (ppl_min_for_le_pointset): Same.
10896 (ppl_build_realtion): Same.
10897 * graphite-ppl.h (gmp_cst_to_tree): Same.
10898 (ppl_set_inhomogeneous): Same.
10899 (ppl_set_inhomogeneous_tree): Same.
10900 (ppl_set_coef): Same.
10901 (ppl_set_coef_tree): Same.
10902 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10903 (build_scop_scattering): Same.
10904 (add_value_to_dim): Same.
10905 (scan_tree_for_params_right_scev): Same.
10906 (scan_tree_for_params_int): Same.
10907 (scan_tree_for_params): Same.
10908 (find_params_in_bb): Same.
10909 (find_scop_parameters): Same.
10910 (add_upper_bounds_from_estimated_nit): Same.
10911 (build_loop_iteration_domains): Same.
10912 (create_linear_expr_from_tree): Same.
10913 (add_condition_to_domain): Same.
10914 (pdr_add_memory_accesses): Same.
10916 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
10917 Jason Merrill <jason@redhat.com>
10919 * c-common.c (c_common_reswords): Add nullptr.
10920 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
10921 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10922 (gen_type_die_with_usage): Likewise.
10923 * dbxout.c (dbxout_type): Likewise.
10924 * sdbout.c (plain_type_1): Likewise.
10926 2010-05-06 Jason Merrill <jason@redhat.com>
10928 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10929 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
10931 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10933 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10934 stripping WITH_SIZE_EXPR.
10935 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10938 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10940 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10941 list of obsolete configurations.
10942 Disabled check for obsolete configurations.
10943 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10944 Removed support for previous versions.
10945 * config/mips/iris.h: Removed.
10946 * config/mips/iris5.h: Removed.
10947 * config/mips/iris6.h: Merged old iris.h contents.
10948 (TARGET_IRIX): Removed.
10949 (DRIVER_SELF_SPECS): Removed mabi=32.
10950 (IDENT_ASM_OP): Removed undef.
10951 (STARTFILE_SPEC): Removed mabi=32.
10952 (ENDFILE_SPEC): Likewise.
10953 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10954 (MACHINE_TYPE): Update for IRIX 6.5.
10955 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10956 TARGET_IRIX by TARGET_IRIX6.
10957 (mips_file_start): Likewise.
10958 (mips_output_external): Remove IRIX 5/6 O32 support.
10959 (mips_output_function_prologue): Likewise.
10960 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10962 (TARGET_CPU_CPP_BUILTINS): Likewise.
10963 (TARGET_IRIX): Removed.
10964 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10965 (MULTILIB_DIRNAMES): Removed 32.
10966 (MULTILIB_OSDIRNAMES): Removed ../lib.
10967 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10968 (Specific, mips-sgi-irix5): Document removal.
10969 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10970 Remove references to older IRIX 6 releases and the O32 ABI.
10972 2010-05-06 Jakub Jelinek <jakub@redhat.com>
10975 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10976 instead of DF_REF_REAL_REG.
10978 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
10981 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10982 handling to still return true for x64 targets.
10984 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10986 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10988 2010-05-06 Jan Hubicka <jh@suse.cz>
10990 PR tree-optimization/43791
10991 * ipa-inline.c (update_caller_keys): Remove bogus
10992 disregard_inline_limits check.
10994 2010-05-06 Michael Matz <matz@suse.de>
10996 PR tree-optimization/43984
10997 * tree-ssa-pre.c (inserted_phi_names): Remove.
10998 (inserted_exprs): Change to bitmap.
10999 (create_expression_by_pieces): Set bits, don't append to vector.
11000 (insert_into_preds_of_block): Don't handle inserted_phi_names.
11001 (eliminate): Don't look at inserted_phi_names, remove deleted
11002 insns from inserted_exprs.
11003 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11004 (init_pre, fini_pre): Allocate and free bitmaps.
11005 (execute_pre): Insert insns on edges before elimination.
11007 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11009 * tree.c (initializer_zerop): Handle STRING_CST.
11011 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
11014 * doc/invoke.texi (Wimplicit): Document as C only.
11015 * opts.c (common_handle_option): Add argument kind.
11016 (handle_option): Rename as read_cmdline_option. Factor out code to...
11017 (handle_option): ... here. New.
11018 (handle_options): Rename as read_cmdline_options.
11019 (decode_options): Update call.
11020 (set_option): Use option index instead of option pointer. Classify
11021 diagnostics correctly.
11022 (enable_warning_as_error): Call handle_option.
11023 * opts.h (set_option): Update declaration.
11024 (handle_option): Declare.
11025 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11026 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11027 * c-opts.c (set_Wimplicit): Delete.
11028 (c_family_lang_mask): New static constant.
11029 (c_common_handle_option): Add argument kind. Use handle_option
11030 instead of set_Wimplicit.
11031 (c_common_post_options): warn_implicit and warn_implicit_int
11032 are disabled by default.
11033 * c-common.c (warn_implicit): Do not define here.
11034 * c-common.h (warn_implicit): Do not declare here.
11035 (c_common_handle_option): Update declaration.
11036 * lto-opts.c (lto_reissue_options): Update call to set_option.
11038 2010-05-06 Richard Guenther <rguenther@suse.de>
11040 PR tree-optimization/43571
11041 * domwalk.c (walk_dominator_tree): Walk the dominator
11042 sons in more optimal order.
11044 2010-05-06 Richard Guenther <rguenther@suse.de>
11046 PR tree-optimization/43934
11047 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11048 (stmt_cost): Likewise.
11049 (extract_true_false_args_from_phi): New helper.
11050 (determine_max_movement): For PHI nodes verify we can hoist them
11051 and compute their cost.
11052 (determine_invariantness_stmt): Handle PHI nodes.
11053 (move_computations_stmt): Likewise. Hoist PHI nodes in
11054 if-converted form using COND_EXPRs.
11055 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11056 (tree_ssa_lim): Likewise.
11057 * tree-flow.h (tree_ssa_lim): Adjust prototype.
11058 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11060 2010-05-06 Richard Guenther <rguenther@suse.de>
11062 PR tree-optimization/43987
11063 * tree-ssa-structalias.c (could_have_pointers): For possibly
11064 address-taken variables force pointers to be recorded.
11065 (create_variable_info_for_1): Likewise.
11066 (push_fields_onto_fieldstack): Pass in wheter all fields
11067 must have pointers.
11068 (find_func_aliases): Query types instead of vars whether
11069 they contain pointers where appropriate.
11071 2010-05-06 Jan Hubicka <jh@suse.cz>
11073 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11074 (record_reference, mark_address, mark_load, mark_store): Record
11076 (record_references_in_initializer): Update call of record_references.
11077 (rebuild_cgraph_edges): Remove all references before rebuiding.
11078 * cgraph.c (cgraph_create_node): Clear ref list.
11079 (cgraph_remove_node): Remove references.
11080 (dump_cgraph_node): Dump references.
11081 (cgraph_clone_node): Clone references.
11082 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11083 (struct cgraph_node, varpool_node): Add ref_lst.
11084 * ipa-ref.c: New file.
11085 * ipa-ref.h: New file.
11086 * ipa-ref-inline.h: New file.
11087 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11088 (referenced_from_other_partition_p): New function.
11089 (lto_output_varpool_node): Take set arugment; call
11090 referenced_from_other_partition.
11091 (lto_output_ref): New.
11092 (add_references): New.
11093 (output_refs): New.
11094 (output_cgraph): Compute boundary based on references; output refs.
11095 (output_varpool): Accept cgraph_node_set argument.
11098 (input_cgraph): Call input_refs.
11099 * lto-section-in.c (lto_section_name): Add refs.
11100 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11101 (ipa-ref.o): New file.
11102 * varpool.c (varpool_node): Clear ipa ref list.
11103 (varpool_remove_node): Remove references.
11104 (dump_varpool_node): Dump references.
11105 (varpool_assemble_decl): Only compile finalized ones.
11106 (varpool_extra_name_alias): Initialize ref list.
11107 * lto-streamer.c (lto-get_section_name): Add .refs section.
11108 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11109 (referenced_from_other_partition_p): Declared.
11111 2010-05-06 Ira Rosen <irar@il.ibm.com>
11113 PR tree-optimization/43901
11114 * tree-vect-stmts.c (vectorizable_call): Assert that vector
11115 type is not NULL if it's transformation phase, and return
11116 FALSE if it's analysis.
11117 (vectorizable_conversion, vectorizable_operation,
11118 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11120 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11122 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11124 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11126 * config/mips/mips-protos.h
11127 (mips_small_register_classes_for_mode_p): Delete prototype.
11129 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
11131 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11132 * config/arm/arm.c (multiple_operation_profitable_p,
11133 compute_offset_order): New static functions.
11134 (load_multiple_sequence, store_multiple_sequence): Use them.
11135 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
11136 memory offsets, not register numbers.
11137 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11139 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
11141 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11142 (get_pending_sizes, put_pending_size, put_pending_sizes):
11143 Update the uses of pending_sizes.
11144 * c-decl.c (store_parm_decls): Likewise.
11145 * c-tree.h (struct c_arg_info): Likewise.
11146 * tree.h: Update the prototype for get_pending_sizes and
11149 2010-05-05 Jason Merrill <jason@redhat.com>
11152 * c-common.c (handle_aligned_attribute): Respect
11153 ATTR_FLAG_TYPE_IN_PLACE.
11156 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11157 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11158 (TARGET_INITIALIZER): Use it.
11159 * c-common.c (attribute_takes_identifier_p): Call it.
11160 * c-common.h: Update prototype.
11161 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11162 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11164 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11167 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11168 DW_ID_down_case for Fortran compilation units.
11170 2010-05-05 Jan Hubicka <jh@suse.cz>
11172 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11175 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
11177 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11178 a variable-sized RESULT_DECL.
11180 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
11182 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11184 2010-05-05 Jason Merrill <jason@redhat.com>
11187 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11189 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11191 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
11192 Jakub Jelinek <jakub@redhat.com>
11195 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11196 (dead_debug_init, dead_debug_finish): New functions.
11197 (dead_debug_add, dead_debug_insert_before): Likewise.
11198 (df_note_bb_compute): Initialize a dead_debug object, add dead
11199 debug uses to it, insert debug bind insns before death insns,
11200 reset debug insns that refer to pending uses at the end.
11201 * rtl.h (make_debug_expr_from_rtl): New prototype.
11202 * varasm.c (make_debug_expr_from_rtl): New function.
11204 2010-05-05 Jan Hubicka <jh@suse.cz>
11206 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11207 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11208 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11209 lto_varpool_encoder_deref, lto_varpool_encoder_size,
11210 lto_varpool_encoder_encode_initializer_p,
11211 lto_set_varpool_encoder_encode_initializer): New functions.
11212 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11213 call output_varpool.
11214 (input_varpool_node): Do not always set analyzed.
11215 (input_cgraph_1): Return vector of cgraph nodes.
11216 (input_varpool_1): Return vector of varpools.
11217 (input_cgraph): Free the vectors.
11218 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11219 output only initializers needed.
11220 (lto_output): Only call output_cgraph.
11221 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
11222 * lto-section-out.c (lto_new_out_decl_state): Initialize
11223 state->varpool_node_encoder.
11224 * lto-streamer.h (lto_varpool_encoder_d): New.
11225 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
11226 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
11227 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
11228 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
11229 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
11231 (output_varpool, input_varpool): Remove declarations.
11233 2010-05-05 Jan Hubicka <jh@suse.cz>
11235 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
11236 with body can prevail.
11238 2010-05-05 Jan Hubicka <jh@suse.cz>
11240 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
11243 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11245 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
11247 * gengtype.h (erro_at_line): Constify pos argument.
11249 * gengtype.c: Include hashtab.h.
11250 (enum gc_used): Document GC_MAYBE_POINTED_TO.
11251 (error_at_line): Constify pos argument.
11252 (do_typedef): Initialize p->opt field.
11253 (get_file_gtfilename): Fix comment typo.
11254 (struct walk_type_data): Constify line field.
11255 (get_output_file_for_structure): New function.
11256 (write_local_func_for_structure): Constify orig_s argument.
11257 Use get_output_file_for_structure.
11258 (write_func_for_structure): Use get_output_file_for_structure.
11259 (INDENT): New define.
11260 (dump_pair, dump_type, dump_type_list, dump_typekind)
11261 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
11262 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
11264 (seen_types): New variable.
11265 (main): New variable do_dump. Process "-d" command line option.
11266 Call dump_everything if dump requested.
11268 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11270 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
11271 in a temporary instead of invoking the macro multiple times.
11272 (track_expr_p): Likewise.
11274 2010-05-04 Neil Vachharajani <nvachhar@google.com>
11276 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
11278 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
11279 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
11280 conditions for printing notes.
11281 * common.opt (-Wcoverage-mismatch): Allow negative, default to
11282 true, update documentation.
11283 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11285 2010-05-04 Jakub Jelinek <jakub@redhat.com>
11288 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11291 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11294 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11295 (*sse_prologue_save_insn1): Likewise.
11296 (SSE prologue save splitter): Likewise.
11298 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
11300 * tree.c (free_lang_data_in_one_sizepos): New inline function.
11301 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11302 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11303 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11304 all decls. Call it on DECL_FIELD_OFFSET of fields.
11305 (find_decls_types_r): Follow DECL_VALUE_EXPR.
11306 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11308 2010-05-04 Martin Jambor <mjambor@suse.cz>
11310 * tree-sra.c (build_access_from_expr_1): The first parameter type
11311 changed to simple tree.
11312 (build_access_from_expr): Likewise, gsi parameter was eliminated.
11313 (scan_assign_result): Renamed to assignment_mod_result, enum elements
11315 (build_accesses_from_assign): Removed all parameters except for a
11316 simple gimple statement. Now returns a simple bool.
11317 (scan_function): All non-analysis parts moved to separate functions
11318 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
11319 parameters and updated both callers.
11320 (sra_modify_expr): Removed parameter data.
11321 (sra_modify_function_body): New function.
11322 (perform_intra_sra): Call sra_modify_function_body to modify the
11324 (replace_removed_params_ssa_names): Parameter data changed into
11325 adjustments vector.
11326 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
11327 changed the parameter dont_convert to convert with the opposite
11329 (sra_ipa_modify_assign): Parameter data changed into adjustments
11330 vector, return value changed to bool.
11331 (ipa_sra_modify_function_body): New function.
11332 (sra_ipa_reset_debug_stmts): Updated a comment.
11333 (modify_function): Use ipa_sra_modify_function_body to modify function
11336 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11338 PR middle-end/43671
11339 * alias.c (true_dependence): Handle the same VALUE in x and mem.
11340 (canon_true_dependence): Likewise.
11341 (write_dependence_p): Likewise.
11343 2010-05-04 Jan Hubicka <jh@suse.cz>
11345 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11346 * cgraphbuild.c: Include ipa-utils.h
11347 (record_reference_ctx): New struct.
11348 (record_reference): Simplify to work on initializers; not statements.
11349 (mark_address, mark_load, mark_store): New.
11350 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11351 walk PHI nodes too.
11352 (record_references_in_initializer): Update use of record_reference.
11353 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11354 walk PHI nodes too.
11356 2010-05-04 Jan Hubicka <jh@suse.cz>
11358 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
11359 node will be removed anyway.
11360 (lto_varpool_replace_node): Allow also unanalyzed nodes;
11361 relink aliases of node into prevailing node.
11362 * varpool.c (varpool_remove_node): Remove aliases properly;
11363 when removing node, remove all its aliases too; remove DECL_INITIAL
11364 of removed node; ggc_free the varpool node.
11366 2010-05-04 Richard Guenther <rguenther@suse.de>
11368 PR tree-optimization/43879
11369 * tree-ssa-structalias.c (alias_get_name): Use
11370 DECL_ASSEMBLER_NAME if available.
11371 (create_function_info_for): Return the varinfo node.
11372 (ipa_pta_execute): Associate same-body aliases and extra names
11373 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
11375 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
11377 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
11379 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
11382 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
11383 only if HONOR_REG_ALLOC_ORDER is not defined.
11385 2010-05-04 Richard Guenther <rguenther@suse.de>
11387 PR tree-optimization/43949
11388 * tree-vrp.c (extract_range_from_binary_expr): Only handle
11391 2010-04-26 Jason Merrill <jason@redhat.com>
11393 * c.opt (-fstrict-enums): New.
11394 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
11396 2010-05-03 David Ung <davidu@mips.com>
11397 James E. Wilson <wilson@codesourcery.com>
11399 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
11400 emit the trap instruction before the divide for TUNE_74K.
11402 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
11404 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
11405 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
11406 based on the above, for new target hook.
11408 * hooks.c (hook_bool_mode_true): New generic hook.
11409 * hooks.h (hook_bool_mode_true): Add prototype.
11411 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
11413 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
11414 target hook, set to hook_bool_mode_false.
11415 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
11416 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
11417 with targetm.small_register_classes_for_mode_p.
11418 (find_reusable_reload): Likewise.
11419 (combine_reloads): Likewise.
11420 * reload1.c (reload_as_needed): Likewise.
11421 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
11422 * ifcvt.c (noce_process_if_block, check_cond_move_block,
11423 dead_or_predicable): Likewise.
11424 * regmove.c (optimize_reg_copy_1): Likewise.
11425 * calls.c (prepare_call_address): Likewise.
11426 (precompute_register_parameters): Likewise.
11428 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
11430 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
11431 implementation of the hook that considers all register classes
11432 small except for SH64.
11433 (sh_override_options): Use the new hook.
11434 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
11437 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
11439 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
11440 implementation of the hook that considers all register classes
11442 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
11445 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
11447 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
11448 implementation of the hook that considers all register classes
11450 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
11453 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
11455 * config/m32c/m32c.h: Likewise.
11456 * config/pdp11/pdp11.h: Likewise.
11457 * config/avr/avr.h: Likewise.
11458 * config/xtensa/xtensa.h: Likewise.
11459 * config/m68hc11/m68hc11.h: Likewise.
11460 * config/mn10300/mn10300.h: Likewise.
11461 * config/mcore/mcore.h: Likewise.
11462 * config/h8300/h8300.h: Likewise.
11463 * config/bfin/bfin.h: Likewise.
11465 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
11466 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
11468 2010-05-03 Anatoly Sokolov <aesok@post.ru>
11470 * double-int.h (tree_to_double_int): Remove macro.
11471 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
11472 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11473 (tree_to_double_int): New function.
11474 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
11476 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11478 2010-05-03 Richard Guenther <rguenther@suse.de>
11480 PR tree-optimization/43971
11481 * tree-ssa-structalias.c (get_constraint_for_1): Fix
11482 constraints in the !flag_delete_null_pointer_checks case.
11484 2010-05-03 Jakub Jelinek <jakub@redhat.com>
11487 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
11488 result mode matches original rtl mode.
11490 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
11493 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
11495 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11497 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
11498 when processing flag options.
11500 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11502 * gcov-iov.c (main): Change format string placeholder
11503 from %#08x to 0x%08x.
11504 * genchecksum.c (dosum): Change format string placeholder
11505 from %#02x to 0x%02x.
11507 2010-05-02 Richard Guenther <rguenther@suse.de>
11509 PR tree-optimization/43879
11510 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
11512 2010-05-02 Bruno Haible <bruno@clisp.org>
11514 * doc/extend.texi (Function Attributes): Fix a typo.
11516 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11519 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
11520 placeholder from 0x%x to %#x.
11521 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11522 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11523 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11524 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11525 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11526 * config/i386/i386.c (ix86_target_string): Ditto.
11527 * config/i386/i386.c (output_pic_addr_const): Ditto.
11528 (print_operand): Ditto.
11530 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11532 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
11533 placeholder from 0x%x to %#x.
11534 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
11535 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
11536 (ASM_OUTPUT_DEBUG_DATA): Ditto.
11537 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
11538 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
11539 * optc-gen.awk: Ditto.
11540 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
11541 (HOST_WIDE_INT_PRINT_HEX): Ditto.
11542 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
11543 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11545 2010-05-01 Anatoly Sokolov <aesok@post.ru>
11547 * target.h (struct calls): Add function_value_regno_p field.
11548 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11549 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
11550 * targhooks.c (default_function_value_regno_p): New function.
11551 * targhooks.h (default_function_value_regno_p): Declare function.
11552 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
11553 * builtins.c. (apply_result_size): (Ditto.).
11554 * combine.c. (likely_spilled_retval_p): (Ditto.).
11555 * mode-switching.c. Include 'target.h'.
11556 (create_pre_exit): Use function_value_regno_p hook.
11557 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
11558 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
11559 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
11561 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
11562 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
11563 (ix86_function_value_regno_p): Declare as static, change argument
11564 type to const unsigned int.
11565 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
11567 2010-05-01 Richard Guenther <rguenther@suse.de>
11569 PR tree-optimization/43949
11570 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
11572 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
11574 2010-05-01 Anatoly Sokolov <aesok@post.ru>
11576 * rtl.h (CONST_DOUBLE_P): Define.
11577 (rtx_to_double_int): Declare.
11578 * emit-rtl.c (rtx_to_double_int): New function.
11579 * dwarf2out.c (insert_double): New function.
11580 (loc_descriptor, add_const_value_attribute): Clean up, use
11581 rtx_to_double_int and insert_double functions.
11583 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
11585 * doc/extend.texi (Inline): Add missing return keyword to examples.
11586 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11589 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
11591 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11592 the variable part of the offset as well. Use highest_pow2_factor for
11593 all alignment checks.
11595 2010-04-30 Richard Guenther <rguenther@suse.de>
11597 PR tree-optimization/43879
11598 * tree-ssa-structalias.c (type_could_have_pointers): Functions
11601 2010-04-30 Jan Hubicka <jh@suse.cz>
11603 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11605 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11607 2010-04-30 Jan Hubicka <jh@suse.cz>
11609 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11611 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11612 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11613 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11614 cgraph_node_set_needs_ltrans_p): Remove.
11616 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11618 * sdbout.c: Include vec.h, do not include varray.h.
11619 (deferred_global_decls, sdbout_global_decl,
11620 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11621 * toplev.c: Do not include varray.h.
11622 (dump_memory_report): Do not dump VARRAY statistics.
11623 * gengtype.c (open_base_file): Ignore varray.h.
11624 * Makefile.in: Update for abovementioned changes.
11625 Remove all traces of varray.c and varray.h.
11626 * varray.c: Remove file.
11627 * varray.h: Remove file.
11629 2010-04-30 Jan Hubicka <jh@suse.cz>
11631 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
11634 2010-04-30 Jan Hubicka <jh@suse.cz>
11636 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
11639 2010-04-30 Richard Guenther <rguenther@suse.de>
11641 * tree-ssa-structalias.c (get_constraint_for_1): Generate
11642 constraints for CONSTRUCTOR.
11644 2010-04-30 Richard Guenther <rguenther@suse.de>
11647 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
11648 first after all lowering passes.
11650 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11652 * toplev.c: Include varray.h for statistics dumping.
11653 * tree.h: Do not declare varray_head_tag.
11654 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
11655 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
11656 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
11657 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
11658 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
11659 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
11660 c-common.c, c-common.h, reg-stack.c, basic-block.h,
11661 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
11663 * Makefile.in: Update for abovementioned changes.
11665 2010-04-30 Jakub Jelinek <jakub@redhat.com>
11668 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
11670 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
11672 * config/picochip/picochip.c (picochip_legitimize_address): Define.
11673 Use this function to do machine-specific conversion.
11674 (picochip_legitimize_reload_address): Likewise.
11675 (picochip_legitimate_address_p): Check valid base register only if
11677 (picochip_check_conditional_copy): Check for modw only if opnd is
11679 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
11680 to call the function in c.
11681 * config/picochip/picochip-protos.h
11682 (picochip_legitimize_reload_address): Define.
11683 * config/picochip/picochip.md (supported_compare1): Define.
11685 2010-04-30 Jan Hubicka <jh@suse.cz>
11687 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11688 (cgraph_global_info): Remove inlined.
11689 (LTO_cgraph_tag_names): Remove.
11690 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11691 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11692 simplify cgraph tags and document.
11693 (lto_output_node): Use only LTO_cgraph_unavail_node and
11694 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
11695 for_functions_valid, global info, process and output flags.
11696 (input_overwrite_node): Initialize estimated stack size and
11697 estimated growth. Do not read flags we no longer store.
11698 (input_node): Likewise do not read info no longer stored.
11699 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11702 2010-04-30 Richard Guenther <rguenther@suse.de>
11704 PR tree-optimization/43879
11705 * tree-ssa-structalias.c (get_constraint_for_1): Properly
11706 handle non-zero initializers.
11708 2010-04-30 Richard Guenther <rguenther@suse.de>
11710 * builtins.c (fold_builtin_1): Delete free (0).
11712 2010-04-29 Jan Hubicka <jh@suse.cz>
11714 * gengtype.c (open_base_files): Add lto-streamer.h
11715 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11716 (pass_ipa_cp): GGC collect.
11717 * toplev. (compile_file): Do not output symbols.
11718 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11719 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11720 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11721 * lto-section-in.c: Include ggc.h
11722 (lto_new_in_decl_state): Alloc in GGC.
11723 (lto_delete_in_decl_state): Likewise.
11724 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11727 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11730 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11731 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
11732 (HONOR_REG_ALLOC_ORDER): Describe new macro.
11733 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11734 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11735 account only if HONOR_REG_ALLOC_ORDER is not defined.
11736 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11737 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11739 2010-04-29 Jon Grant <04@jguk.org>
11741 * collect2.c (vflag): Change type from int to bool.
11743 (helpflag): New global bool.
11744 (main): Set vflag and debug with boolean, not integer truth values.
11745 Accept new "--help" option and output usage text if found.
11746 * collect2.h (vflag): Update prototype.
11749 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11752 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11754 2010-04-29 Richard Guenther <rguenther@suse.de>
11757 * plugin.h (invoke_plugin_callbacks): Annotate arguments
11758 with ATTRIBUTE_UNUSED.
11760 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11763 * config/i386/i386.c (get_some_local_dynamic_name): Replace
11764 INSN_P with NONDEBUG_INSN_P.
11765 (distance_non_agu_define): Likewise.
11766 (distance_agu_use): Likewise.
11768 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11770 From Dominique d'Humieres <dominiq@lps.ens.fr>
11772 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11775 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
11777 * plugin.h (invoke_plugin_callbacks): New inline function.
11778 * plugin.c (flag_plugin_added): New global flag.
11779 (add_new_plugin): Initialize above flag.
11780 (invoke_plugin_callbacks): Rename to ...
11781 (invoke_plugin_callbacks_full): ... this.
11783 2010-04-28 Jan Hubicka <jh@suse.cz>
11785 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11786 (lto_varpool_replace_node): New.
11787 (lto_symtab_resolve_symbols): Resolve varpool nodes.
11788 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11789 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11790 * cgraph.h (varpool_node_ptr): New type.
11791 (varpool_node_ptr): New vector.
11792 (varpool_node_set_def): New structure.
11793 (varpool_node_set): New type.
11794 (varpool_node_set): New vector.
11795 (varpool_node_set_element_def): New structure.
11796 (varpool_node_set_element, const_varpool_node_set_element): New types.
11797 (varpool_node_set_iterator): New type.
11798 (varpool_node): Add prev pointers, add used_from_other_partition,
11799 in_other_partition.
11800 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11801 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11802 varpool_get_node, varpool_remove_node): Declare.
11803 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11804 varpool_node_set_size): New inlines.
11805 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11806 * tree-pass.h (varpool_node_set_def): Forward declare.
11807 (ipa_opt_pass_d): Summary writting takes vnode sets too.
11808 (ipa_write_optimization_summaries): Update prototype.
11809 * ipa-cp.c (ipcp_write_summary): Update.
11810 * ipa-reference.c (ipa_reference_write_summary): Update.
11811 * lto-cgraph.c (lto_output_varpool_node): New static function.
11812 (output_varpool): New function.
11813 (input_varpool_node): New static function.
11814 (input_varpool_1): New function.
11815 (input_cgraph): Input varpool.
11816 * ipa-pure-const.c (pure_const_write_summary): Update.
11817 * lto-streamer-out.c (lto_output): Update, output varpool too.
11818 (write_global_stream): Kill WPA hack.
11819 (produce_asm_for_decls): Update.
11820 (output_alias_pair_p): Handle variables.
11821 (output_unreferenced_globals): Output only needed partition of varpool.
11822 * ipa-inline.c (inline_write_summary): Update.
11823 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11825 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11826 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11827 varpool_node_set_new, varpool_node_set_add,
11828 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11829 debug_varpool_node_set): New functions.
11830 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11831 (execute_one_pass): Process new decls too.
11832 (ipa_write_summaries_2): Pass around vsets.
11833 (ipa_write_summaries_1): Likewise.
11834 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11836 (ipa_write_optimization_summaries_1): Pass around vsets.
11837 (ipa_write_optimization_summaries): Likewise.
11838 * varpool.c (varpool_get_node): New.
11839 (varpool_node): Update doubly linked lists.
11840 (varpool_remove_node): New.
11841 (dump_varpool_node): More dumping.
11842 (varpool_enqueue_needed_node): Update doubly linked lists.
11843 (decide_is_variable_needed): Kill ltrans hack.
11844 (varpool_finalize_decl): Kill lto hack.
11845 (varpool_assemble_decl): Skip decls in other partitions.
11846 (varpool_assemble_pending_decls): Update doubly linkes lists.
11847 (varpool_empty_needed_queue): Likewise.
11848 (varpool_extra_name_alias): Likewise.
11849 * lto-streamer.c (lto_get_section_name): Add vars section.
11850 * lto-streamer.h (lto_section_type): Update.
11851 (output_varpool, input_varpool): Declare.
11853 2010-04-28 Mike Stump <mikestump@comcast.net>
11855 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11857 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11859 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11860 record or union type with RECORD_OR_UNION_TYPE_P predicate.
11861 (lto_input_ts_type_tree_pointers): Likewise.
11862 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11863 (lto_output_ts_type_tree_pointers): Likewise.
11865 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11867 Uniquization of constants at the Tree level
11868 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11869 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11871 (tree_output_constant_def): Declare.
11872 * gimplify.c (gimplify_init_constructor): When using block copy, first
11873 uniquize the constant constructor on the RHS.
11874 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11875 DECL_IN_CONSTANT_POOL flag.
11876 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11877 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11879 (assemble_variable): Deal with symbols belonging to the tree constant
11881 (get_constant_section): Add ALIGN parameter and simplify.
11882 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11883 (assemble_constant_contents): Use the expression of the VAR_DECL.
11884 (output_constant_def_contents): Use the alignment of the VAR_DECL.
11885 (tree_output_constant_def): New global function.
11886 (mark_constant): Use the expression of the VAR_DECL.
11887 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11889 (output_object_block): Likewise and assemble the expression.
11891 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11893 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11894 hash_tree, eq_tree): New tree hash table.
11895 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11896 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11897 lto_orig_address_remove): Reimplement.
11899 2010-04-28 Xinliang David Li <davidxl@google.com>
11902 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11903 (compute_uninit_opnds_pos): New function.
11904 (is_non_loop_exit_postdominating): New function.
11905 (compute_control_dep_chain): New function.
11906 (find_pdom): New function.
11907 (convert_control_dep_chain_into_preds): New function.
11908 (find_predicates): New function.
11909 (find_control_equiv_block): New function.
11910 (collect_phi_def_edges): New function.
11911 (find_def_preds): New function.
11912 (find_dom): New function.
11913 (dump_predicates): New function.
11914 (get_cmp_code): New function.
11915 (is_value_included_in): New function.
11916 (find_matching_predicate_in_rest_chains): New function.
11917 (use_pred_not_overlap_with_undef_path_pred): New function.
11918 (is_use_properly_guarded): New function.
11919 (normalize_cond_1): New function.
11920 (is_and_or_or): New function.
11921 (normalize_cond): New function.
11922 (is_gcond_subset_of): New function.
11923 (is_subset_of_any): New function.
11924 (is_or_set_subset_of): New function.
11925 (is_and_set_subset_of): New function.
11926 (is_norm_cond_subset_of): New function.
11927 (is_pred_expr_subset_of): New function.
11928 (is_pred_chain_subset_of): New function.
11929 (is_included_in): New function.
11930 (is_superset_of): New function.
11931 (find_uninit_use): New function.
11932 (warn_uninitialized_phi): New function.
11933 (compute_possibly_undefined_names): New function.
11934 (ssa_undefined_value_p): New function.
11935 (execute_late_warn_uninitialized): New function.
11936 * tree-ssa.c (ssa_undefined_value_p): Removed.
11937 (warn_uninit): Changed to extern.
11938 (warn_uninitialized_phi): Removed.
11939 (warn_uninitialized_vars): Changed to extern.
11940 (execute_late_warn_uninitialized): Removed
11941 * tree-flow.h: Add new prototypes.
11942 * timevar.def: Add new time variable.
11943 * Makefile.in: Add new build file.
11945 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
11947 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11950 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11953 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11955 2010-04-28 Martin Jambor <mjambor@suse.cz>
11957 * cgraph.h (struct cgraph_node): New field indirect_calls.
11958 (struct cgraph_indirect_call_info): New type.
11959 (struct cgraph_edge): Removed field indirect_call. New fields
11960 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11961 (cgraph_create_indirect_edge): Declare.
11962 (cgraph_make_edge_direct): Likewise.
11963 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11964 * ipa-prop.h (struct ipa_param_call_note): Removed.
11965 (struct ipa_node_params): Removed field param_calls.
11966 (ipa_create_all_structures_for_iinln): Declare.
11967 * cgraph.c: Described indirect edges and uids in initial comment.
11968 (cgraph_add_edge_to_call_site_hash): New function.
11969 (cgraph_edge): Search also among the indirect edges, use
11970 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11971 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11972 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11974 (initialize_inline_failed): Assign a reason to indirect edges.
11975 (cgraph_create_edge_1): New function.
11976 (cgraph_create_edge): Moved some functionality to
11977 cgraph_create_edge_1.
11978 (cgraph_create_indirect_edge): New function.
11979 (cgraph_edge_remove_callee): Add an assert checking for
11981 (cgraph_edge_remove_caller): Special-case indirect edges.
11982 (cgraph_remove_edge): Likewise.
11983 (cgraph_set_edge_callee): New function.
11984 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11985 (cgraph_make_edge_direct): New function.
11986 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11987 the declaration of the call statement matches.
11988 (cgraph_node_remove_callees): Special-case indirect edges.
11989 (cgraph_clone_edge): Likewise.
11990 (cgraph_clone_node): Clone also the indirect edges.
11991 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11992 indirect_call, dump count of indirect_calls edges.
11993 * ipa-prop.c (iinlining_processed_edges): New variable.
11994 (ipa_note_param_call): Create indirect edges instead of
11995 creating notes. New parameter node.
11996 (ipa_analyze_call_uses): New parameter node, pass it on to
11997 ipa_note_param_call.
11998 (ipa_analyze_stmt_uses): Likewise.
11999 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12000 (print_edge_addition_message): Work on edges rather than on notes.
12001 (update_call_notes_after_inlining): Likewise, renamed to
12002 update_indirect_edges_after_inlining.
12003 (ipa_create_all_structures_for_iinln): New function.
12004 (ipa_free_node_params_substructures): Do not free notes.
12005 (ipa_edge_duplication_hook): Propagate bits within
12006 iinlining_processed_edges bitmap.
12007 (ipa_node_duplication_hook): Do not duplicate notes.
12008 (free_all_ipa_structures_after_ipa_cp): Renamed to
12009 ipa_free_all_structures_after_ipa_cp.
12010 (free_all_ipa_structures_after_iinln): Renamed to
12011 ipa_free_all_structures_after_iinln.
12012 (ipa_write_param_call_note): Removed.
12013 (ipa_read_param_call_note): Removed.
12014 (ipa_write_indirect_edge_info): New function.
12015 (ipa_read_indirect_edge_info): Likewise.
12016 (ipa_write_node_info): Do not stream notes, do stream information
12018 (ipa_read_node_info): Likewise.
12019 (lto_ipa_fixup_call_notes): Removed.
12020 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12021 * ipa-inline.c (pass_ipa_inline): Likewise.
12022 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12023 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12024 * tree-inline.c (copy_bb): Removed an unnecessary double check for
12026 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12028 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12029 (output_cgraph): Stream also indirect edges.
12030 (lto_output_edge): Added capability to stream indirect edges.
12031 (input_edge): Likewise.
12032 (input_cgraph_1): Likewise.
12033 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12036 2010-04-28 Richard Guenther <rguenther@suse.de>
12038 PR tree-optimization/43879
12039 PR tree-optimization/43909
12040 * tree-ssa-structalias.c (struct variable_info): Add
12041 only_restrict_pointers flag.
12042 (new_var_info): Initialize it. Increment stats.total_vars here.
12043 (create_function_info_for): Do not increment stats.total_vars here.
12044 (get_function_part_constraint): Fix build with C++.
12045 (insert_into_field_list): Remove.
12046 (push_fields_onto_fieldstack): Properly merge fields.
12047 (create_variable_info_for): Split and simplify.
12048 (create_variable_info_for_1): New piece.
12049 (intra_create_variable_infos): Properly make restrict constraints
12052 2010-04-28 Richard Guenther <rguenther@suse.de>
12055 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12057 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
12058 Jan Hubicka <hubicka@ucw.cz>
12060 * doc/invoke.texi (-Wsuggest-attribute=const,
12061 -Wsuggest-attribute=pure): Document.
12062 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12063 (function_always_visible_to_compiler_p,
12064 suggest_attribute, warn_function_pure, warn_function_const):
12066 (check_call): Improve debug info.
12067 (analyze_function): Do not check availability.
12068 (add_new_function): Check availability.
12069 (propagate): Output warnings.
12070 (skip_function_for_local_pure_const): New function.
12071 (local_pure_const): Use it; output warnings.
12072 * common.opt (Wsuggest-attribute=const,
12073 Wsuggest-attribute=pure): New.
12075 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12077 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12078 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12079 or DW_CFA_def_cfa_offset{,_sf}.
12081 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12083 * tree.h: Fix truncated long macros.
12085 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
12087 * collect2.c (TARGET_64BIT): Redefine to target's default.
12088 * tlink.c: Likewise.
12089 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12090 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12091 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12092 for underscoring __USER_LABEL_PREFIX__.
12093 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12094 (SUB_LINK_ENTRY32): New.
12095 (SUB_LINK_ENTRY64): New.
12096 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12097 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12098 (SUB_LINK_ENTRY64): New.
12099 (SUB_LINK_ENTRY): New.
12100 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12101 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12102 x64 target is choosen.
12103 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12104 * configure: Regenerated.
12105 * configure.ac (leading-mingw64-underscores): Option added.
12107 2010-04-27 Jan Hubicka <jh@suse.cz>
12109 * doc/invoke.texi (-fipa-profile): Document.
12110 * opts.c (decode_options): Enable ipa-profile at -O1.
12111 * timevar.def (TV_IPA_PROFILE): Define.
12112 * common.opt (fipa-profile): Add.
12113 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12115 (cgraph_propagate_frequency): Handle only local ones.
12116 * tree-pass.h (pass_ipa_profile): Declare.
12117 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12118 (pass_ipa_profile): Use TV_IPA_PROFILE.
12119 * ipa.c (ipa_profile): New function.
12120 (gate_ipa_profile): Likewise.
12121 (pass_ipa_profile): New global variable.
12122 * passes.c (pass_ipa_profile): New.
12124 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
12126 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12128 2010-04-27 Martin Jambor <mjambor@suse.cz>
12130 PR middle-end/43812
12131 * ipa.c (dissolve_same_comdat_group_list): New function.
12132 (function_and_variable_visibility): Call
12133 dissolve_same_comdat_group_list when comdat group contains external or
12135 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12136 lists are circular and that they contain only DECL_ONE_ONLY nodes.
12138 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12140 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12141 (const_hash_1) <VECTOR_CST>: New case.
12142 (compare_constant) <VECTOR_CST>: Likewise.
12143 <ADDR_EXPR>: Deal with LABEL_REFs.
12144 (copy_constant) <VECTOR_CST>: New case.
12146 2010-04-27 Jan Hubicka <jh@suse.cz>
12148 * cgraph.c (cgraph_propagate_frequency): New function.
12149 * cgraph.h (cgraph_propagate_frequency): Declare.
12150 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12151 cgraph_propagate_frequency.
12153 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12155 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12157 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
12160 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12161 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12162 here to determine which regs to push and how much stack to reserve.
12164 2010-04-27 Jie Zhang <jie@codesourcery.com>
12166 * doc/gimple.texi (gimple_statement_with_ops): Remove
12167 addresses_taken field.
12168 (gimple_statement_with_memory_ops): Likewise.
12170 2010-04-27 Jan Hubicka <jh@suse.cz>
12172 * tree-inline.c (eni_inlining_weights): Remove.
12173 (estimate_num_insns): Special case more builtins.
12175 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
12178 * c-typeck.c (build_binary_op): Move forward check for comparison
12179 pointer with null pointer constant and adjust the diagnostic message.
12181 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
12184 * configure.ac (gcc_cv_as_section_has_align): Set if installed
12185 binutils supports extended .section directive needed by LTO, or
12186 warn if older binutils found.
12187 (LTO_BINARY_READER): New AC_SUBST'd variable.
12188 (LTO_USE_LIBELF): Likewise.
12189 * gcc/config.gcc (lto_binary_reader): New target-specific configure
12191 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12192 (LTO_USE_LIBELF): Likewise.
12193 * configure: Regenerate.
12195 * collect2.c (is_elf): Rename from this ...
12196 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12197 object files in addition to ELF-formatted ones.
12198 (scan_prog_file): Caller updated. Also allow for LTO info marker
12199 symbol to be prefixed or not by an extra underscore.
12201 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12202 * config/i386/winnt.c: Also #include lto-streamer.h
12203 (i386_pe_asm_named_section): Specify 1-byte section alignment for
12204 LTO named sections.
12205 (i386_pe_asm_output_aligned_decl_common): Add comment.
12206 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12208 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
12211 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12212 Add missing earlyclobber for second alternative.
12214 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
12216 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
12217 bits for artificial defs at the top of the block.
12218 * fwprop.c (single_def_use_enter_block): Don't call it.
12220 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
12223 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
12224 instead of "$gcc_cv_objdump -T".
12225 Use "-undefined dynamic_lookup" on darwin.
12226 * gcc/configure: Regenerate.
12228 2010-04-26 Jakub Jelinek <jakub@redhat.com>
12231 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
12233 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12235 * c-parser.c (struct c_token): Move location field up.
12236 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
12237 (struct c_declspecs): Convert typespec_word, storage_class, and
12238 default_int_p into bitfields.
12239 (struct c_declarator): Move loc field up.
12241 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12243 * cfgloop.h (struct loop): Move can_be_parallel field up.
12244 * ipa-prop.h (struct ip_node_params): Move bitfields up.
12245 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
12247 (struct iv_cand): Convert pos field into a bitfield.
12248 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
12250 (struct _stmt_vec_info): Shuffle fields for better packing.
12252 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12254 * varasm.c (IN_NAMED_SECTION): Remove guard.
12255 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
12256 (IN_NAMED_SECTION_P): ...this.
12257 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
12258 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12260 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12262 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
12263 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
12264 of shadowing it. Fix comments.
12266 2010-04-26 Jan Hubicka <jh@suse.cz>
12268 * cgraph.c (cgraph_create_node): Set node frequency to normal.
12269 (cgraph_clone_node): Copy function frequency.
12270 * cgraph.h (node_frequency): New enum
12271 (struct cgraph_node): Add.
12272 * final.c (rest_of_clean_state): Update.
12273 * lto-cgraph.c (lto_output_node): Output node frequency.
12274 (input_overwrite_node): Input node frequency.
12275 * tre-ssa-loop-ivopts (computation_cost): Update.
12276 * lto-streamer-out.c (output_function): Do not output function
12278 * predict.c (maybe_hot_frequency_p): Update and handle functions
12280 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
12282 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12283 (compute_function_frequency): Set noreturn functions to be executed
12285 (choose_function_section): Update.
12286 * lto-streamer-in.c (input_function): Do not input function frequency.
12287 * function.c (allocate_struct_function): Do not initialize function
12289 * function.h (function_frequency): Remove.
12290 (struct function): Remove function frequency.
12291 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12292 (try_update): Update.
12293 * tree-inline.c (initialize_cfun): Do not update function frequency.
12294 * passes.c (pass_init_dump_file): Update.
12295 * i386.c (ix86_compute_frame_layout): Update.
12296 (ix86_pad_returns): Update.
12298 2010-04-26 Jie Zhang <jie@codesourcery.com>
12300 PR tree-optimization/43833
12301 * tree-vrp.c (range_int_cst_p): New.
12302 (range_int_cst_singleton_p): New.
12303 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12304 when both operands are constants. Use range_int_cst_p in
12307 2010-04-26 Jan Hubicka <jh@suse.cz>
12309 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12311 2010-04-26 Richard Guenther <rguenther@suse.de>
12314 * gimple.c (gimple_decl_printable_name): Deal gracefully
12315 with a NULL DECL_NAME.
12317 2010-04-26 Richard Guenther <rguenther@suse.de>
12320 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12321 if emitting debug information and it is either a function
12322 or a namespace decl.
12324 2010-04-26 Ira Rosen <irar@il.ibm.com>
12326 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12327 determine if the statement is vectorizable, and a macro to access it.
12328 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12329 Skip statements that can't be vectorized. If the analysis fails,
12330 mark the statement as unvectorizable if vectorizing basic block.
12331 (vect_compute_data_refs_alignment): Likewise.
12332 (vect_verify_datarefs_alignment): Skip statements marked as
12333 unvectorizable. Add print.
12334 (vect_analyze_group_access): Skip statements that can't be
12335 vectorized. If the analysis fails, mark the statement as
12336 unvectorizable if vectorizing basic block.
12337 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12338 * tree-vect-stmts.c (vectorizable_store): Fix the number of
12339 generated stmts for SLP.
12340 (new_stmt_vec_info): Initialize the new field.
12341 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12342 statements marked as unvectorizable.
12344 2010-04-25 Joseph Myers <joseph@codesourcery.com>
12346 * c-common.c (flag_isoc1x): New.
12347 (flag_isoc99): Update comment.
12348 * c-common.h (flag_isoc1x): New.
12349 (flag_isoc99): Update comment.
12350 * c-cppbuiltin.c (builtin_define_float_constants): Also define
12351 __<type>_DECIMAL_DIG__.
12352 * c-opts.c (set_std_c1x): New.
12353 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
12354 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
12355 * c.opt (-std=c1x, -std=gnu1x): New options.
12356 * doc/cpp.texi: Mention -std=c1x.
12357 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
12358 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
12359 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
12360 * doc/standards.texi: Mention C1X.
12361 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
12362 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
12363 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
12366 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
12368 * config/i386/gmon-sol2.c (_mcleanup): Change format string
12369 placeholder from 0x%x to %#x.
12370 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12371 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12372 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12373 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12374 * config/i386/i386.c (ix86_target_string): Ditto.
12375 (output_pic_addr_const): Ditto.
12376 (print_operand): Ditto.
12378 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
12380 * combine.c (find_split_point): Add third argument. Use it
12381 to find nested multiply-accumulate instructions. Adjust calls.
12382 (try_combine): Adjust call to find_split_point.
12384 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
12386 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
12388 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
12390 PR tree-optimization/41442
12391 * fold-const.c (merge_truthop_with_opposite_arm): New function.
12392 (fold_binary_loc): Call it.
12394 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12396 * toplev.c (general_init): Set default for fdiagnostics-show-option.
12397 * opts.c (common_handle_option): Allow disabling it.
12398 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
12400 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
12402 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
12403 between modes if both types are integral.
12405 2010-04-23 Richard Guenther <rguenther@suse.de>
12407 PR tree-optimization/43572
12408 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
12410 2010-04-23 Richard Guenther <rguenther@suse.de>
12413 * tree-inline.c (tree_can_inline_p): Also check compatibility
12416 2010-04-23 Martin Jambor <mjambor@suse.cz>
12418 PR tree-optimization/43846
12419 * tree-sra.c (struct access): New flag grp_assignment_read.
12420 (build_accesses_from_assign): Set grp_assignment_read.
12421 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
12422 (enum mark_read_status): New type.
12423 (analyze_access_subtree): Propagate grp_assignment_read, create
12424 accesses also if both direct_read and root->grp_assignment_read.
12426 2010-04-23 Martin Jambor <mjambor@suse.cz>
12428 PR middle-end/43835
12429 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
12430 function does not have type attributes.
12432 2010-04-23 Richard Guenther <rguenther@suse.de>
12435 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
12438 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12440 * sese.h (create_if_region_on_edge): Remove.
12442 * sese.c (create_if_region_on_edge): Make static.
12444 * tree-inline.c: Do not include ggc.h.
12446 * expr.c: Do not include ggc.h.
12448 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
12451 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
12454 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12455 in the middle of insns for casesi_worker_2.
12457 2010-04-22 David Edelsohn <edelsohn@gnu.org>
12459 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
12461 2010-04-22 Ira Rosen <irar@il.ibm.com>
12463 PR tree-optimization/43842
12464 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12465 loop unrolling in update of exit phis. Fix comment.
12466 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
12467 least two reduction statements in the loop before starting SLP
12470 2010-04-22 Nick Clifton <nickc@redhat.com>
12472 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
12474 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
12476 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
12477 to simplify a + ~a.
12479 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12481 * tree-parloops.c (loop_parallel_p): New argument
12482 parloop_obstack. Pass it down.
12483 (parallelize_loops): New variable parloop_obstack. Initialize it,
12484 pass it down, free it.
12486 * tree-loop-linear.c (linear_transform_loops): Pass down
12489 * tree-data-ref.h (lambda_compute_access_matrices): New argument
12490 of type struct obstack *.
12492 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
12493 scratch_obstack. Initialize it, pass down, free it.
12495 * lambda.h (lambda_loop_new): Remove.
12496 (lambda_matrix_new, lambda_matrix_inverse)
12497 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
12498 argument of type struct obstack *.
12500 * lambda-trans.c (lambda_trans_matrix_new): New argument
12501 lambda_obstack. Pass it down, use obstack allocation for ret.
12502 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
12505 * lambda-mat.c (lambda_matrix_get_column)
12506 (lambda_matrix_project_to_null): Remove.
12507 (lambda_matrix_new): New argument lambda_obstack. Use obstack
12508 allocation for mat.
12509 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
12512 * lambda-code.c (lambda_loop_new): New function.
12513 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
12514 (lambda_compute_auxillary_space, lambda_compute_target_space)
12515 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
12516 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
12517 (build_access_matrix): New argument lambda_obstack. Use obstack
12519 (lambda_compute_step_signs, lambda_compute_access_matrices): New
12520 argument lambda_obstack. Pass it down.
12522 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12524 * optabs.h (expand_widening_mult): Declare.
12526 2010-04-22 Richard Guenther <rguenther@suse.de>
12528 PR tree-optimization/43845
12529 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
12530 lookup the CALL_EXPR function and arguments.
12532 2010-04-22 Nick Clifton <nickc@redhat.com>
12534 * config/stormy16/stormy16.c
12535 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
12536 * config/stormy16/stormy16.h: Tidy up formatting.
12537 (DONT_USE_BUILTIN_SETJMP): Remove definition.
12538 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
12539 (ineqbranchsi): Delete pattern.
12540 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
12541 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
12542 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12543 stormy16-lib2-ucmpsi2.c.
12545 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12547 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
12548 df_simulate_find_noclobber_defs as appropriate. Keep track of an
12549 extra set merge_set_noclobber, and use it to relax the final test
12551 * df.h (df_simulate_find_noclobber_defs): Declare.
12552 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
12554 (df_simulate_find_noclobber_defs): New function.
12556 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
12558 * config/i386/i386.md: Use {} around multi-line preparation statements.
12560 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12562 * c-tree.h (push_init_level, pop_init_level, set_init_index)
12563 (process_init_element): New argument of type struct obstack *.
12565 * c-typeck.c (push_init_level, pop_init_level, set_designator)
12566 (set_init_index, set_init_label, set_nonincremental_init)
12567 (set_nonincremental_init_from_string, find_init_member)
12568 (output_init_element, output_pending_init_elements)
12569 (process_init_element): New argument braced_init_obstack. Pass it
12571 (push_range_stack, add_pending_init): New argument
12572 braced_init_obstack. Use obstack allocation.
12574 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
12575 braced_init_obstack. Pass it down.
12576 (c_parser_braced_init): New variables ret, braced_init_obstack.
12577 Initialize obstack, pass it down and finally free it.
12579 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12581 PR middle-end/29274
12582 * tree-pass.h (pass_optimize_widening_mul): Declare.
12583 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12584 gate_optimize_widening_mul): New static functions.
12585 (pass_optimize_widening_mul): New.
12586 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12587 <case MULT_EXPR>: Remove support for widening multiplies.
12588 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12589 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12590 simplify_gen_unary rather than directly building extensions.
12591 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12593 * expmed.c (expand_widening_mult): New function.
12594 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12596 2010-04-21 Jan Hubicka <jh@suse.cz>
12598 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12599 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12600 * lto-wpa-fixup.c: Remove.
12601 * Makefile.in (lto-wpa-fixup.o): Remove.
12602 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12603 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12604 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12606 2010-04-21 Jan Hubicka <jh@suse.cz>
12608 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12609 add write_optimization_summary, read_optimization_summary.
12610 (ipa_write_summaries_of_cgraph_node_set): Remove.
12611 (ipa_write_optimization_summaries): Declare.
12612 (ipa_read_optimization_summaries): Declare.
12613 * ipa-cp.c (pass_ipa_cp): Update.
12614 * ipa-reference.c (pass_ipa_reference): Update.
12615 * ipa-pure-const.c (pass_ipa_pure_const): Update.
12616 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12618 * ipa-inline.c (pass_ipa_inline): Update.
12619 * ipa.c (pass_ipa_whole_program): Update.
12620 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12621 * passes.c (ipa_write_summaries_1): Do not test wpa.
12622 (ipa_write_optimization_summaries_1): New.
12623 (ipa_write_optimization_summaries): New.
12624 (ipa_read_summaries): Do not test ltrans.
12625 (ipa_read_optimization_summaries_1): New.
12626 (ipa_read_optimization_summaries): New.
12628 2010-04-21 Jan Hubicka <jh@suse.cz>
12630 * lto-cgraph.c (lto_output_node): Do not output comdat groups
12631 for boundary nodes.
12632 (output_cgraph): Do not arrange comdat groups for boundary nodes.
12634 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12637 * dwarf2out.c (add_name_and_src_coords_attributes): Add
12638 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
12640 2010-04-21 Jan Hubicka <jh@suse.cz>
12642 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
12644 2010-04-21 Jan Hubicka <jh@suse.cz>
12646 * varpool.c (decide_is_variable_needed): Variable is always needed
12649 2010-04-21 Jan Hubicka <jh@suse.cz>
12651 * opts.c (decode_options): Enable pure-const pass for whopr.
12653 2010-04-21 Jan Hubicka <jh@suse.cz>
12655 * cgraph.c (dump_cgraph_node): Dump also assembler name.
12656 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
12658 (cgraph_decide_inlining): Do not expect callee to be removed in all
12661 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
12663 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
12665 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12667 * config/i386/i386.md (x86_shrd): Add athlon_decode and
12668 amdfam10_decode attributes.
12670 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12672 PR middle-end/43570
12673 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
12674 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
12675 (lower_copyprivate_clauses): Use private var in outer
12676 context instead of original var. Make sure the types
12677 are correct for VLAs.
12679 2010-04-21 Richard Guenther <rguenther@suse.de>
12681 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
12682 to non-pointer objects.
12684 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12686 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
12687 last chain entry if it starts with the still current label.
12688 (add_location_or_const_value_attribute): Check that
12689 loc_list->first->next is NULL instead of comparing ->first with ->last.
12690 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12691 to add_var_loc_to_decl.
12693 * dwarf2out.c (output_call_frame_info): For dw_cie_version
12694 >= 4 add also address size and segment size fields into CIE header.
12696 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12697 long as address size is the same as sizeof (void *) and
12699 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
12700 address size or segment size is unexpected, return DW_EH_PE_omit.
12701 (classify_object_over_fdes): If get_cie_encoding returned
12702 DW_EH_PE_omit, return -1.
12703 (init_object): If classify_object_over_fdes returned -1,
12704 pretend there were no FDEs at all.
12706 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12708 * config/i386/i386.md (bswap<mode>2): Macroize expander from
12709 bswap{si,di}2 using SWI48 mode iterator.
12710 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12711 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
12712 set modrm attribute of bswap insn to 0 and remove length attribute.
12713 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12714 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
12715 set mode attribute to <MODE> and remove length attribute.
12717 2010-04-20 James E. Wilson <wilson@codesourcery.com>
12719 PR rtl-optimization/43520
12720 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12721 zero available registers.
12723 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12725 * builtins.c (fold_builtin_cproj): Fold more cases.
12727 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12729 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12730 (fold_builtin_1): Fold builtin cproj.
12731 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12732 Use ATTR_CONST_NOTHROW_LIST.
12734 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
12736 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12737 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
12738 ffsi2_no_cmove for !TARGET_CMOVE.
12739 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
12740 (ffssi2): Remove expander.
12741 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12743 (ctz<mode>2): Ditto from ctz{si,di}2.
12744 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12746 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12749 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12751 * dwarf2out.c (AT_linkage_name): Define.
12752 (clone_as_declaration): Handle DW_AT_linkage_name.
12753 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12754 of DW_AT_MIPS_linkage_name.
12755 (move_linkage_attr): Likewise.
12756 (dwarf2out_finish): Likewise.
12758 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
12760 PR middle-end/41952
12761 * fold-const.c (fold_comparison): New folding rule.
12763 2010-04-20 Anatoly Sokolov <aesok@post.ru>
12765 * double-int.h (double_int_setbit): Declare.
12766 * double-int.c (double_int_setbit): New function.
12767 * rtl.h (immed_double_int_const): Declare.
12768 * emit-rtl.c (immed_double_int_const): New function.
12769 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12770 and immed_double_int_const functions.
12771 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12772 expand_copysign_bit): (Ditto.).
12773 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12774 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12775 * dojump.c (prefer_and_bit_test): (Ditto.).
12776 * expr.c (convert_modes, reduce_to_bit_field_precision,
12777 const_vector_from_tree): (Ditto.).
12778 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12780 2010-04-20 Jan Hubicka <jh@suse.cz>
12782 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12783 (dump_cgraph_node): Dump new flags.
12784 * cgraph.h (struct cgraph_node): Add flags
12785 reachable_from_other_partition and in_other_partition.
12786 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12787 other partition can not be removed.
12788 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12789 the other partition must be output; silence sanity checking on
12790 leaking functions bodies from other paritition.
12791 * lto-cgraph.c (reachable_from_other_partition_p): New function.
12792 (lto_output_node): Output new flags; do not sanity check that inline
12793 clones are output; drop lto_forced_extern_inline_p code; do not mock
12794 visibility flags at partition boundaries.
12795 (add_node_to): New function.
12796 (output_cgraph): Use it to sort functions so masters appear before
12798 (input_overwrite_node): Input new flags.
12799 * passes.c (ipa_write_summaries): Do not call
12800 lto_new_extern_inline_states.
12801 * lto-section-out.c (forced_extern_inline,
12802 lto_new_extern_inline_states lto_delete_extern_inline_states,
12803 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12804 * lto-streamer.h (lto_new_extern_inline_states,
12805 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12806 lto_forced_extern_inline_p): Kill.
12808 2010-04-20 Richard Guenther <rguenther@suse.de>
12810 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12811 from vars that can have pointers.
12812 (process_constraint): Dump useless constraints.
12814 2010-04-20 Richard Guenther <rguenther@suse.de>
12816 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12817 (dump_sa_points_to_info): Remove asserts.
12818 (init_base_vars): nothing_id isn't an escape point nor does it
12821 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12823 * tree.h (TYPE_REF_IS_RVALUE): Define.
12824 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12825 should_move_die_to_comdat, prune_unused_types_walk): Handle
12826 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12827 (modified_type_die, gen_reference_type_die): Emit
12828 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12829 if TYPE_REF_IS_RVALUE and -gdwarf-4.
12831 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12834 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12835 calls for -fpic -m31 if they have been sibcall optimized.
12837 2010-04-19 James E. Wilson <wilson@codesourcery.com>
12839 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12840 ar.lc fixed and call-used.
12842 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12844 2010-04-19 Jan Hubicka <jh@suse.cz>
12846 * opts.c (decode_options): Disable whpr incompatible passes.
12847 * lto/lto.c (lto_1_to_1_map): Skip clones.
12848 (read_cgraph_and_symbols): Do not mark everything as needed.
12849 (do_whole_program_analysis): Do map only after optimizing;
12850 set proper cgraph_state; use passmanager.
12852 2010-04-19 DJ Delorie <dj@redhat.com>
12854 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12855 POINTER_PLUS_EXPR and fix them.
12857 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
12859 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12860 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12861 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12862 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12863 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12864 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12865 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12866 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12867 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12868 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12869 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12871 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
12873 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12874 (check_cond_move_block): Likewise.
12875 (cond_move_process_if_block): Likewise.
12876 (noce_find_if_block): Improve formatting.
12877 (find_if_header): Pass 0 to memset and tweak conditions.
12878 (cond_exec_find_if_block): Fix long lines and tweak conditions.
12880 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12882 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12885 PR middle-end/43337
12886 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12887 with non-local decl doesn't need chain.
12889 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
12891 * ira-color.c (allocno_reload_assign): Avoid accumulating
12892 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12894 2010-04-19 Martin Jambor <mjambor@suse.cz>
12896 * gimple.h (create_tmp_reg): Declare.
12897 * gimplify.c (create_tmp_reg): New function.
12898 (gimplify_return_expr): Use create_tmp_reg.
12899 (gimplify_omp_atomic): Likewise.
12900 (gimple_regimplify_operands): Likewise.
12901 * tree-dfa.c (make_rename_temp): Likewise.
12902 * tree-predcom.c (predcom_tmp_var): Likewise.
12903 (reassociate_to_the_same_stmt): Likewise.
12904 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12905 (get_replaced_param_substitute): Likewise.
12906 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12907 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12908 * tree-ssa-pre.c (get_representative_for): Likewise.
12909 (create_expression_by_pieces): Likewise.
12910 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12911 (create_tailcall_accumulator): Likewise.
12913 2010-04-19 Martin Jambor <mjambor@suse.cz>
12915 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12917 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12919 2010-04-19 Richard Guenther <rguenther@suse.de>
12921 PR tree-optimization/43796
12922 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12923 from SCEV in the lattice.
12924 (vrp_visit_phi_node): Dump change.
12926 2010-04-19 Richard Guenther <rguenther@suse.de>
12928 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12929 * configure: Re-generated.
12931 2010-04-19 Richard Guenther <rguenther@suse.de>
12933 PR tree-optimization/43783
12934 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12935 constant ARRAY_REF operands two and three if possible.
12937 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
12940 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12942 2010-04-19 Jie Zhang <jie@codesourcery.com>
12945 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12947 2010-04-19 Ira Rosen <irar@il.ibm.com>
12949 PR tree-optimization/37027
12950 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12951 and macro to access it.
12952 (vectorizable_reduction): Add argument.
12953 (vect_get_slp_defs): Likewise.
12954 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12955 statements for possible use in SLP.
12956 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12957 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12958 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12960 (vectorizable_reduction): Likewise.
12961 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12963 (vectorizable_type_demotion, vectorizable_type_promotion,
12964 vectorizable_store): Likewise.
12965 (vect_analyze_stmt): Update call to vectorizable_reduction.
12966 (vect_transform_stmt): Likewise.
12967 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12968 (vect_build_slp_tree): Fix indentation. Check that there are no loads
12969 from different interleaving chains in same node.
12970 (vect_slp_rearrange_stmts): New function.
12971 (vect_supported_load_permutation_p): Allow load permutations for
12972 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12973 inside SLP nodes if necessary.
12974 (vect_analyze_slp_instance): Handle reductions.
12975 (vect_analyze_slp): Try to build SLP instances originating from groups
12977 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12978 (vect_get_constant_vectors): Create initial vectors for reductions
12979 according to reduction code. Add new argument.
12980 (vect_get_slp_defs): Add new argument, pass it to
12981 vect_get_constant_vectors.
12982 (vect_schedule_slp_instance): Remove SLP tree root statements.
12984 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12986 * tree.h (ENUM_IS_SCOPED): Define.
12987 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12988 for ENUM_IS_SCOPED enums.
12990 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
12992 * fold-const.c (fold_comparison): Use ssizetype.
12993 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12994 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12995 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12996 * tree-object-size.c (compute_object_sizes): Use size_type_node.
12998 * tree.h (initialize_sizetypes): Remove parameter.
12999 (build_common_tree_nodes): Remove second parameter.
13000 * stor-layout.c (initialize_sizetypes): Remove parameter.
13001 Always create an unsigned type.
13002 (set_sizetype): Assert that the passed type is unsigned and simplify.
13003 * tree.c (build_common_tree_nodes): Remove second parameter.
13004 Adjust call to initialize_sizetypes.
13005 * c-decl.c (c_init_decl_processing): Remove second argument in call to
13006 build_common_tree_nodes.
13008 2010-04-18 Matthias Klose <doko@ubuntu.com>
13010 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13012 2010-04-18 Ira Rosen <irar@il.ibm.com>
13014 PR tree-optimization/43771
13015 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13016 load permutation doesn't have gaps.
13018 2010-04-18 Jan Hubicka <jh@suse.cz>
13020 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13021 (sse_prologue_save_insn expander): Use new pattern.
13022 (sse_prologue_save_insn1): New pattern and splitter.
13023 (sse_prologue_save_insn): Update to deal also with 64bit aligned
13025 * i386.c (setup_incoming_varargs_64): Do not compute jump
13027 (ix86_gimplify_va_arg): Update alignment needed.
13028 (ix86_local_alignment): Do not align all local arrays to 128bit.
13030 2010-04-17 Jan Hubicka <jh@suse.cz>
13032 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13034 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13036 * arm.md (negdi2): Remove redundant code to force values into a
13039 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13041 * arm/bpabi.S: Add EABI alignment attributes to objects.
13042 * arm/bpabi-v6m.S: Likewise.
13043 * arm/crti.asm: Likewise.
13044 * arm/crtn.asm: Likewise.
13045 * arm/lib1funcs.asm: Likewise.
13046 * arm/libunwind.S: Likewise.
13048 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13050 * arm-protos.h (tune_params): New structure.
13051 * arm.c (current_tune): New variable.
13052 (arm_constant_limit): Delete.
13053 (struct processors): Add pointer to the tune parameters.
13054 (arm_slowmul_tune): New tuning option.
13055 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13056 (all_cores): Adjust to pick up the tuning model.
13057 (arm_constant_limit): New function.
13058 (arm_override_options): Select the appropriate tuning model. Delete
13059 initialization of arm_const_limit.
13060 (arm_split_constant): Use the new constant-limit model.
13061 (arm_rtx_costs): Pick up the current tuning model.
13062 * arm.md (is_strongarm, is_xscale): Delete.
13063 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13064 for Xscale variant architectures.
13065 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13067 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13069 * config/arm/arm.c (arm_gen_constant): Remove unused variable
13071 (arm_rtx_costs_1): Remove unused variable extra_cost.
13072 (arm_unwind_emit_set): Use variable offset.
13073 (thumb1_output_casesi): Remove unused variable flags.
13075 2010-04-16 Jeff Law <law@redhat.com>
13077 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13078 needing assignment rather than doing a two-phase assignment. Remove
13079 unused variable 'm'.
13081 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13084 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13086 2010-04-16 Doug Kwan <dougkwan@google.com>
13088 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13089 (next_operand_entry_id): New static variable.
13090 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13091 (add_to_ops_vec): Assigned unique ID to operand entry.
13092 (struct oecount_s): New field ID.
13093 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13094 (undistribute_ops_list): Assign unique IDs to oecounts.
13095 (init_reassoc): reset next_operand_entry_id.
13097 2010-04-16 Doug Kwan <dougkwan@google.com>
13099 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13100 missing left parenthesis.
13102 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
13104 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13105 *btdi_rex64 using SWI48 mode iterator.
13106 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13107 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13108 *jcc_btdi_mask_rex64.
13110 2010-04-16 Anatoly Sokolov <aesok@post.ru>
13112 * double-int.h (tree_to_double_int): Convert to macro.
13113 * double-int.c (tree_to_double_int): Remove.
13115 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13118 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13119 with want_address 2 and in case a single element list might be
13120 possible, call it again with want_address 0.
13122 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13124 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13125 case 'W' print operands for HI mode.
13126 * config/h8300/h8300.h (Y0, Y2) : New constraints.
13127 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13128 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13129 * config/h8300/predicate.md (bit_register_indirect_operand): New.
13131 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13133 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13134 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13135 #xx:3 and #xx:4 mode.
13137 * config/h8300/h8300.md (inverted load with HImode dest): Add
13138 support for H8300SX.
13140 * config/h8300/predicate.md (bit_operand): Allow immediate values that
13141 satisfy 'U' constraint.
13143 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13145 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13146 * configure: Regenerate.
13147 * config.in: Regenerate.
13148 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13151 2010-04-16 Richard Guenther <rguenther@suse.de>
13153 * tree.h (struct tree_decl_minimal): Move pt_uid ...
13154 (struct tree_decl_common): ... here.
13155 (DECL_PT_UID): Adjust.
13156 (SET_DECL_PT_UID): Likewise.
13157 (DECL_PT_UID_SET_P): Likewise.
13159 2010-04-16 Richard Guenther <rguenther@suse.de>
13161 PR tree-optimization/43572
13162 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13163 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13164 * tree-flow.h (is_call_clobbered): Remove.
13165 * tree-flow-inline.h (is_call_clobbered): Likewise.
13166 * tree-dfa.c (dump_variable): Do not dump call clobber state.
13167 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13168 (execute_return_slot_opt): Adjust.
13169 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13170 check for call clobbered vars here.
13171 (find_tail_calls): Move tailcall verification to the
13174 2010-04-16 Diego Novillo <dnovillo@google.com>
13176 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13178 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13181 * config/arm/arm.md (cbranchqi4): New pattern.
13182 * config/arm/predicates.md (const0_operand,
13183 cbranchqi4_comparison_operator): New predicates.
13185 2010-04-16 Richard Guenther <rguenther@suse.de>
13187 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13188 (dump_gimple_stmt): Likewise.
13190 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13192 * recog.h (struct recog_data): New field is_operator.
13193 (struct insn_operand_data): New field is_operator.
13194 * recog.c (extract_insn): Set recog_data.is_operator.
13195 * genoutput.c (output_operand_data): Emit code to set the
13197 * reload.c (find_reloads): Use it rather than testing for an
13198 empty constraint string.
13201 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13202 If the previous insn is a cbranchsi4_insn with the same arguments,
13203 omit the compare instruction.
13205 * config/arm/arm.md (addsi3_cbranch): If destination is a high
13206 register, inputs must be low registers and we need a low register
13207 scratch. Handle alternative 2 like alternative 3.
13209 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13211 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13212 don't call get_addr on both. If one expression is a VALUE and
13213 the other a REG, check VALUE's locs if the REG isn't among them.
13215 2010-04-16 Christian Bruel <christian.bruel@st.com>
13217 * config/sh/sh.h (sh_frame_pointer_required): New function.
13218 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
13219 (flag_omit_frame_pointer) Set.
13220 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
13221 (rounded_frame_size): Adjust size with outgoing_args_size.
13222 (sh_set_return_address): Must return from stack pointer.
13223 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
13224 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
13225 (ACCUMULATE_OUTGOING_ARGS): Define.
13226 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
13227 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
13229 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13232 * config/sh/sh.c (sh_legitimize_reload_address): Use
13233 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
13234 Remove a unneeded check for offset_base.
13236 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
13238 * configure: Regenerated.
13240 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13242 * config/s390/s390.c (s390_call_save_register_used): Switch back
13243 to HARD_REGNO_NREGS.
13245 2010-04-15 Richard Guenther <rguenther@suse.de>
13247 * alias.c (alias_set_subset_of): Handle alias-set zero
13250 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
13251 Julian Brown <julian@codesourcery.com>
13253 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
13254 alternatives according to use of high and low regs.
13255 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13256 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
13257 optimizing for size on Thumb-2.
13259 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
13261 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
13263 2010-04-15 Richard Guenther <rguenther@suse.de>
13265 * tree-ssa-structalias.c (struct variable_info): Add
13267 (new_var_info): Initialize it.
13268 (dump_constraints): Support printing last added constraints.
13269 (debug_constraints): Adjust.
13270 (dump_constraint_graph): Likewise.
13271 (make_heapvar_for): Check for NULL cfun.
13272 (get_function_part_constraint): New function.
13273 (get_fi_for_callee): Likewise.
13274 (find_func_aliases): Properly implement IPA PTA constraints.
13275 (process_ipa_clobber): New function.
13276 (find_func_clobbers): Likewise.
13277 (insert_into_field_list_sorted): Remove.
13278 (create_function_info_for): Properly allocate vars for IPA mode.
13279 Do not use insert_into_field_list_sorted.
13280 (create_variable_info_for): Properly generate constraints for
13281 global vars in IPA mode.
13282 (dump_solution_for_var): Always dump the solution.
13283 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13284 (find_what_var_points_to): Adjust.
13285 (pt_solution_set): Change.
13286 (pt_solution_ior_into): New function.
13287 (pt_solution_empty_p): Export.
13288 (pt_solution_includes_global): Adjust.
13289 (pt_solution_includes_1): Likewise.
13290 (pt_solutions_intersect_1): Likewise.
13291 (dump_sa_points_to_info): Check some invariants.
13292 (solve_constraints): Move constraint dumping ...
13293 (compute_points_to_sets): ... here.
13294 (ipa_pta_execute): ... and here.
13295 (compute_may_aliases): Do not re-compute points-to info
13296 locally if IPA info is available.
13297 (ipa_escaped_pt): New global var.
13298 (ipa_pta_execute): Properly implement IPA PTA.
13299 * tree-into-ssa.c (dump_decl_set): Support dumping
13300 decls not in referenced-vars.
13301 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13302 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13303 (dump_points_to_solution): Likewise.
13304 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13305 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13306 (remap_gimple_stmt): Reset call clobber/use information if necessary.
13307 (copy_decl_to_var): Copy DECL_PT_UID.
13308 (copy_result_decl_to_var): Likewise.
13309 * tree.c (make_node_stat): Initialize DECL_PT_UID.
13310 (copy_node_stat): Copy it.
13311 * tree.h (DECL_PT_UID): New macro.
13312 (SET_DECL_PT_UID): Likewise.
13313 (DECL_PT_UID_SET_P): Likewise.
13314 (struct tree_decl_minimal): Add pt_uid member.
13315 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13316 (pt_solution_empty_p): Declare.
13317 (pt_solution_set): Adjust.
13318 (ipa_escaped_pt): Declare.
13319 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13320 * gimple-pretty-print.c (pp_points_to_solution): New function.
13321 (dump_gimple_call): Dump call clobber/use information.
13322 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13323 * tree-pass.h (TDF_ALIAS): New dump option.
13324 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13325 * doc/invoke.texi (-fipa-pta): Update documentation.
13327 2010-04-15 Richard Guenther <rguenther@suse.de>
13329 * Makefile.in (OBJS-common): Add gimple-fold.o.
13330 (gimple-fold.o): New rule.
13331 * tree.h (maybe_fold_offset_to_reference,
13332 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13334 * gimple.h: ... here.
13335 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13336 may_propagate_address_into_dereference): Move prototypes ...
13337 * gimple.h: ... here.
13338 * tree-ssa-ccp.c (get_symbol_constant_value,
13339 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13340 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13341 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13342 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13343 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13344 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13345 gimplify_and_update_call_from_tree): Move ...
13346 * gimple-fold.c: ... here. New file.
13347 (ccp_fold_builtin): Rename to ...
13348 (gimple_fold_builtin): ... this.
13349 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13351 2010-04-15 Richard Guenther <rguenther@suse.de>
13353 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
13354 fit_double_type, force_fit_type_double, add_double_with_sign,
13355 neg_double, mul_double_with_sign, lshift_double, rshift_double,
13356 lrotate_double, rrotate_double, div_and_round_double): Move ...
13357 * double-int.c: ... here.
13358 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
13359 add_double, neg_double, mul_double_with_sign, mul_double,
13360 lshift_double, rshift_double, lrotate_double, rrotate_double,
13361 div_and_round_double): Move prototypes ...
13362 * double-int.h: ... here.
13364 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
13367 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
13368 matching constraints to ensure inputs match the output.
13370 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13373 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
13374 in an input-only operand.
13376 2010-04-15 Anatoly Sokolov <aesok@post.ru>
13378 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
13379 (double_int_not, double_int_lshift, double_int_rshift): Declare.
13380 (double_int_negative_p): Convert to static inline function.
13381 * double-int.c (double_int_lshift, double_int_lshift): New functions.
13382 (double_int_negative_p): Remove.
13383 * tree.h (lshift_double, rshift_double):
13384 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
13385 * fold-const.c (fold_convert_const_int_from_real,
13386 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
13387 (lshift_double): Change type of arith argument to bool.
13388 (rshift_double): Change type of arith argument to bool. Correct
13390 * expmed.c (mask_rtx, lshift_value): (Ditto.).
13392 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
13395 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
13396 at the start and end of the then/else blocks, and omit them from the
13398 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
13399 argument; all callers changed. Pass zero to old_insns_match_p instead.
13400 (flow_find_head_matching_sequence): New function.
13401 (old_insns_match_p): Check REG_EH_REGION notes for calls.
13402 * basic-block.h (flow_find_cross_jump,
13403 flow_find_head_matching_sequence): Declare functions.
13405 2010-04-14 Jason Merrill <jason@redhat.com>
13408 * c-common.c (attribute_takes_identifier_p): New fn.
13409 * c-common.h: Declare it.
13411 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13413 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
13414 splitter condition.
13415 (*udivmod<mode>4): Ditto.
13417 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13419 * config/i386/i386.md (maxmin_int): Rename code attribute from
13420 maxminiprefix and update all users.
13421 (maxmin_float): Ditto from maxminfprefix.
13422 (logic): Ditto from logicprefix.
13423 (absneg_mnemonic): Ditto from absnegprefix.
13424 * config/i386/mmx.md: Update all users of maxminiprefix,
13425 maxminfprefix and logicprefix for rename.
13426 * config/i386/sse.md: Ditto.
13427 * config/i386/sync.md (sync_<code><mode>): Update for
13428 logicprefix rename.
13430 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13433 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
13434 warnings converted to errors.
13436 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13438 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
13439 used insn_type variable.
13440 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
13441 to avoid set-but-not-used warning.
13443 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13445 * df-core.c (df_ref_debug): Change format string placeholder
13447 * dwarf2asm.c (dw2_asm_output_data_raw,
13448 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
13449 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
13450 * dwarf2out.c (output_cfi, output_cfi_directive,
13451 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
13452 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
13454 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
13455 * print-rtl.c (print_rtx): Ditto.
13457 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13459 PR middle-end/42694
13460 * builtins.c (expand_builtin_pow_root): New function to expand pow
13461 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
13462 series of sqrt and cbrt calls under -ffast-math.
13463 (expand_builtin_pow): Call it.
13465 2010-04-14 Michael Matz <matz@suse.de>
13467 PR tree-optimization/42963
13468 * tree-cfg.c (touched_switch_bbs): New static variable.
13469 (group_case_labels_stmt): New function broken out from ...
13470 (group_case_labels): ... here, use the above.
13471 (start_recording_case_labels): Allocate touched_switch_bbs.
13472 (end_recording_case_labels): Deallocate it, call
13473 group_case_labels_stmt.
13474 (gimple_redirect_edge_and_branch): Remember index of affected BB.
13476 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13478 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
13479 from insn template.
13481 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13483 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
13485 2010-04-13 Jan Hubicka <jh@suse.cz>
13487 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
13488 of optimized out static functions.
13489 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
13490 cost computation. Also sanity check for overflows.
13491 (update_caller_keys): Update cgraph_edge_badness call; properly
13492 update fibheap and sanity check that it is up to date.
13493 (add_new_edges_to_heap): Update cgraph_edge_badness.
13494 (cgraph_decide_inlining_of_small_function): Likewise;
13495 add sanity checking that badness in heap is up to date;
13496 improve dumping of reason; Update badness of calls to the
13497 offline copy of function currently inlined; dump badness
13498 of functions not inlined because of unit growth limits.
13500 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
13502 PR middle-end/32628
13503 * c-common.c (pointer_int_sum): Disregard overflow that occured only
13504 because of sign-extension change when converting to sizetype here...
13505 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
13507 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
13508 the folding to constants. Remove redundant final conversion.
13509 (fold_binary) <associate>: Do not associate if the re-association of
13510 constants alone overflows.
13511 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
13512 to the end of the list.
13513 (multiple_of_p) <COND_EXPR>: New case.
13515 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13517 * opt-functions.awk (opt_sanitized_name): New.
13519 * optc-gen.awk: Use it
13520 * opth-gen.awk: Use it.
13522 2010-04-13 Martin Jambor <mjambor@suse.cz>
13524 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
13525 (sra_modify_assign): Delete stmts loading dead data even if racc has no
13526 children. Call replace_uses_with_default_def_ssa_name to handle
13529 2010-04-13 Michael Matz <matz@suse.de>
13531 PR middle-end/43730
13532 * builtins.c (expand_builtin_interclass_mathfn): Also create
13533 a register if the predicate doesn't match.
13535 2010-04-13 Diego Novillo <dnovillo@google.com>
13537 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
13538 * c-pch.c: Include timevar.h.
13539 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
13540 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
13541 * ggc-common.c: Include timevar.h.
13542 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
13543 * timevar.def (TV_PCH_SAVE): Define.
13544 (TV_PCH_CPP_SAVE): Define.
13545 (TV_PCH_PTR_REALLOC): Define.
13546 (TV_PCH_PTR_SORT): Define.
13547 (TV_PCH_RESTORE): Define.
13548 (TV_PCH_CPP_RESTORE): Define.
13550 2010-04-13 Michael Matz <matz@suse.de>
13552 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
13554 (can_reassociate_p): New function.
13555 (break_up_subtract_bb, reassociate_bb): Use it.
13557 2010-04-13 Richard Guenther <rguenther@suse.de>
13560 * builtins.c (c_readstr): Fix assert.
13562 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
13564 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
13565 when generating cltd insn.
13567 (*ashl<mode>3_1): Remove special handling for register operand 2.
13568 (*ashlsi3_1_zext): Ditto.
13569 (*ashlhi3_1): Ditto.
13570 (*ashlhi3_1_lea): Ditto.
13571 (*ashlqi3_1): Ditto.
13572 (*ashlqi3_1_lea): Ditto.
13573 (*<shiftrt_insn><mode>3_1): Ditto.
13574 (*<shiftrt_insn>si3_1_zext): Ditto.
13575 (*<shiftrt_insn>qi3_1_slp): Ditto.
13576 (*<rotate_insn><mode>3_1): Ditto.
13577 (*<rotate_insn>si3_1_zext): Ditto.
13578 (*<rotate_insn>qi3_1_slp): Ditto.
13580 2010-04-13 Richard Guenther <rguenther@suse.de>
13582 * tree-ssa-structalias.c (callused_id): Remove.
13583 (call_stmt_vars): New.
13584 (get_call_vi): Likewise.
13585 (lookup_call_use_vi): Likewise.
13586 (lookup_call_clobber_vi): Likewise.
13587 (get_call_use_vi): Likewise.
13588 (get_call_clobber_vi): Likewise.
13589 (make_transitive_closure_constraints): Likewise.
13590 (handle_const_call): Adjust to do per-call call-used handling.
13591 (handle_pure_call): Likewise.
13592 (find_what_var_points_to): Remove general callused handling.
13593 (init_base_vars): Likewise.
13594 (init_alias_vars): Initialize call_stmt_vars.
13595 (compute_points_to_sets): Process call-used and call-clobbered
13596 vars for call statements.
13597 (delete_points_to_sets): Free call_stmt_vars.
13599 2010-04-13 Richard Guenther <rguenther@suse.de>
13601 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13602 Only add RW dependence for dependence distance zero.
13603 Adjust maximal vectorization factor according to dependences.
13604 Move alignment handling ...
13605 (vect_find_same_alignment_drs): ... here. New function.
13606 (vect_analyze_data_ref_dependences): Adjust.
13607 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13608 (vect_analyze_data_refs): Adjust minimal vectorization factor
13609 according to data references.
13610 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13611 dependences before determining the vectorization factor.
13612 Analyze alignment after determining the vectorization factor.
13613 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13614 dependences before alignment.
13615 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13617 (vect_analyze_data_refs): Likewise.
13618 (MAX_VECTORIZATION_FACTOR): New define.
13620 2010-04-13 Duncan Sands <baldrick@free.fr>
13622 * except.h (lang_eh_type_covers): Remove.
13623 * except.c (lang_eh_type_covers): Likewise.
13625 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13626 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13628 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
13629 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
13630 UNITS_PER_LONG where it is ABI relevant.
13631 (s390_return_addr_rtx): Likewise.
13632 (s390_back_chain_rtx): Likewise.
13633 (s390_frame_area): Likewise.
13634 (s390_frame_info): Likewise.
13635 (s390_initial_elimination_offset): Likewise.
13636 (save_gprs): Likewise.
13637 (s390_emit_prologue): Likewise.
13638 (s390_emit_epilogue): Likewise.
13639 (s390_function_arg_advance): Likewise.
13640 (s390_function_arg): Likewise.
13641 (s390_va_start): Likewise.
13642 (s390_gimplify_va_arg): Likewise.
13643 (s390_function_profiler): Likewise.
13644 (s390_optimize_prologue): Likewise.
13645 (s390_rtx_costs): Likewise.
13646 (s390_secondary_reload): Likewise.
13647 (s390_promote_function_mode): Likewise.
13648 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
13649 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
13650 registers available.
13651 (s390_unwind_word_mode): New function.
13652 (s390_function_value): Split 64 bit values into register pair if
13653 used as return value.
13654 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
13655 function call parameters. Handle parallels.
13656 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
13657 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
13658 (DWARF_CIE_DATA_ALIGNMENT): New macro.
13659 (s390_expand_setmem): Remove unused variable src_addr.
13660 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
13661 deal with 64 bit registers.
13662 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
13663 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
13664 (UNITS_PER_LONG): New macro.
13665 * libjava/include/s390-signal.h: Define extended ucontext
13666 structure containing the upper halfs of the 64 bit registers.
13668 2010-04-13 Simon Baldwin <simonb@google.com>
13670 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
13672 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
13674 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
13675 rvalue on the RHS if the LHS is of a non-renamable type.
13676 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
13678 2010-04-13 Matthias Klose <doko@ubuntu.com>
13680 * gcc.c (cc1_options): Handle -iplugindir before processing
13681 the cc1 spec. Only add -iplugindir once.
13682 (cpp_unique_options): Add -iplugindir option if -fplugin* options
13684 * common.opt (iplugindir): Remove `Separate' property, initialize.
13685 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13687 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13688 (distclean): Remove plugin dir.
13689 * doc/invoke.texi: Document -iplugindir.
13691 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
13693 * doc/plugins.texi (Loading Plugins): Document short
13694 -fplugin=foo option.
13695 (Plugin API): Mention default_plugin_dir_name function.
13697 * gcc.c (find_file_spec_function): Add new declaration.
13698 (static_spec_func): Use it for "find-file".
13699 (find_file_spec_function): Add new function.
13700 (cc1_options): Add -iplugindir option if -fplugin* options found.
13702 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13704 * plugin.c (add_new_plugin): Updated comment, and handle short
13706 (default_plugin_dir_name): Added new function.
13708 * common.opt (iplugindir): New option to set the plugin directory.
13710 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
13712 * config/i386/i386.md (any_rotate): New code iterator.
13713 (rotate_insn): New code attribute.
13715 (SWIM124): New mode iterator.
13716 (<rotate_insn>ti3): New expander.
13717 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13718 any_rotate code iterator.
13719 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13720 using any_rotate code iterator and SWIM124 mode iterator.
13721 (ix86_rotlti3): New insn_and_split pattern.
13722 (ix86_rotrti3): Ditto.
13723 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13724 ix86_rotl{di,ti}3 patterns.
13725 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13726 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13727 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13728 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13729 code iterator and SWI mode iterator.
13730 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13731 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13733 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13734 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13735 (bswap rotatert splitter): Add splitter.
13736 (bswap splitter): Macroize splitter using any_rotate code iterator.
13737 Add insn predicate to split only for TARGET_USE_XCHGB or when
13738 optimizing function for size.
13740 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13742 * config/pa/pa.c (emit_move_sequence): Remove use of
13743 deleted variable flag_argument_noalias.
13745 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13747 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13749 Add to unsupported targets list.
13750 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13751 sparc*-sun-solaris2.[567]* from target lists.
13752 * configure: Regenerate.
13753 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13755 Remove Solaris 7 patch references.
13756 (Specific, sparc-sun-solaris2.7): Removed.
13757 (sparc-sun-solaris2*): Update Solaris 7 example.
13758 (sparc64-*-solaris2*): Likewise.
13760 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13762 * config.build (alpha*-dec-osf4*): Remove.
13763 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13764 of obsolete configurations.
13765 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13767 * config/alpha/t-osf4: Renamed to ...
13768 * config/alpha/t-osf5: ... this.
13769 * config/alpha/osf.h: Renamed to ...
13770 * config/alpha/osf5.h: ... this.
13771 Merged old osf5.h contents.
13773 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13774 (EXTRA_SPECS): Removed.
13775 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13776 reflect removal of Tru64 UNIX V4.0/V5.0 support.
13779 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13781 * doc/contrib.texi (Contributors, Rainer Orth): Update.
13783 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
13786 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13787 __thiscall convention.
13789 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13791 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13793 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13795 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13797 * function.c (assign_parms_initialize_all): Add unused attribute
13800 2010-04-12 Richard Guenther <rguenther@suse.de>
13802 * gsstruct.def (GSS_CALL): New.
13803 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13804 * gimple.h: Include tree-ssa-alias.h.
13805 (struct gimple_statement_call): New.
13806 (union gimple_statement_struct_d): Add gimple_call member.
13807 (gimple_call_reset_alias_info): Declare.
13808 (gimple_call_use_set): New function.
13809 (gimple_call_clobber_set): Likewise.
13810 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13811 * gimple.c (gimple_call_reset_alias_info): New function.
13812 (gimple_build_call_1): Call it.
13813 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13814 * tree-inline.c (remap_gimple_stmt): Likewise.
13815 (expand_call_inline): Remove callused handling.
13816 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13817 * tree-dfa.c (dump_variable): Likewise.
13818 * tree-parloops.c (parallelize_loops): Likewise.
13819 * tree-ssa.c (init_tree_ssa): Likewise.
13820 (delete_tree_ssa): Likewise.
13821 * tree-flow-inline.h (is_call_used): Remove.
13822 * tree-flow.h (struct gimple_df): Remove callused member.
13823 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13824 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13825 (ref_maybe_used_by_call_p_1): Simplify.
13826 (call_may_clobber_ref_p_1): Likewise.
13827 * tree-ssa-structalias.c (compute_points_to_sets): Set
13828 the call stmt used and clobbered sets.
13829 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13830 (find_tail_calls): Verify the tail call.
13832 2010-04-12 Richard Guenther <rguenther@suse.de>
13834 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13835 single-iteration always-inline inlining.
13836 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13837 (cgraph_decide_inlining): Do not handle always-inline specially.
13838 (try_inline): Remove always-inline cycle detection special case.
13839 Do not recurse on always-inlines.
13840 (cgraph_early_inlining): Do not iterate if not optimizing.
13841 (cgraph_gate_early_inlining): remove.
13842 (pass_early_inline): Run unconditionally.
13843 (gate_cgraph_decide_inlining): New function.
13844 (pass_ipa_inline): Use it. Do not run the IPA inliner if
13845 not inlining or optimizing.
13846 (cgraph_decide_inlining_of_small_functions): Also consider
13847 always-inline functions.
13848 (cgraph_default_inline_p): Return true for nodes which should
13849 disregard inline limits.
13850 (estimate_function_body_sizes): Assume zero size and time for
13851 nodes which are marked as disregarding inline limits.
13852 (cgraph_decide_recursive_inlining): Do not perform recursive
13853 inlining on always-inline nodes.
13855 2010-04-12 Jakub Jelinek <jakub@redhat.com>
13858 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13859 for exprs satisfying handled_component_p.
13861 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
13863 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13864 non-constant aggregate elements.
13866 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13867 is a real initialization.
13869 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
13872 * c-decl.c (start_function): Move forward check for nested function.
13874 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
13876 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13877 * config/sh/sh.c: Include reload.h.
13878 (sh_legitimize_reload_address): New.
13879 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13880 sh_legitimize_reload_address.
13882 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13884 * config/sh/sh.md (*movqi_pop): New insn pattern.
13885 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13887 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13889 * config/i386/i386.md (any_shiftrt): New code iterator.
13890 (shiftrt_insn): New code attribute.
13892 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13893 using any_shiftrt code iterator.
13894 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13895 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13896 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13897 pattern from corresponding peephole2 patterns.
13898 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13899 using any_shiftrt code iterator.
13900 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13901 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13902 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13903 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13904 *{ashr,lshr}<mode>3_cmp_zext.
13905 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13907 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13909 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13911 (*lshr<mode>3_cconly): Ditto.
13913 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13915 * config/i386/i386.md (lshr<mode>3): Macroize expander from
13916 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13917 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13918 pattern from *lshr{di,ti}3_1 and corresponding splitters using
13920 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13921 from corresponding peephole2 patterns.
13922 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13923 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13924 and *lshrdi3_1_rex64 using SWI mode iterator.
13925 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13926 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13927 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13928 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13929 and *lshrdi3_cmp_rex64 using SWI mode iterator.
13930 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13931 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13932 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13933 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13936 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
13938 * config/i386/i386.md (ashr<mode>3): Macroize expander from
13939 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13940 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13941 pattern from *ashr{di,ti}3_1 and corresponding splitters using
13943 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13944 from corresponding peephole2 patterns.
13945 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13946 (ashrsi3_cvt): Rename from ashrsi3_31.
13947 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13948 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13949 and x86_64_shift_adj_3 using SWI48 mode iterator.
13950 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13951 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13952 and *ashrdi3_1_rex64 using SWI mode iterator.
13953 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13954 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13955 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13956 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13957 and *ashrdi3_cmp_rex64 using SWI mode iterator.
13958 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13959 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13960 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13961 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13963 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13964 * config/i386/i386.c (ix86_split_ashr): Update for renamed
13965 x86_shift<mode>_adj_3 expanders.
13967 2010-04-10 Wei Guozhi <carrot@google.com>
13970 * config/arm/arm.c (arm_pic_static_addr): New function.
13971 (legitimize_pic_address): Call arm_pic_static_addr when it detects
13973 (arm_output_addr_const_extra): Output expression for new pattern.
13974 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13976 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
13978 * ira-costs.c (record_reg_classes): Ignore alternatives that are
13981 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13982 * web.c: Include "insn-config.h" and "recog.h".
13983 (union_match_dups): New function.
13984 (web_main): Call it.
13985 (union_defs): Don't try to recognize match_dups.
13987 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13988 if doing so would replace the entire pattern.
13990 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13994 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13995 and splitter pattern. Change splitter operand 1 predicate to
13998 2010-04-09 Martin Jambor <mjambor@suse.cz>
14000 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14001 lattices are addresses of CONST_DECLs with the same initial value.
14002 (ipcp_print_all_lattices): Print values of CONST_DECLs.
14003 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14005 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
14006 Bernd Schmidt <bernds@codesourcery.com>
14008 * loop-invariant.c (replace_uses): New static function.
14009 (move_invariant_reg): Use it to ensure we can replace the uses.
14011 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14013 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14015 (picochip_override_options): Enable section anchors only above -O1.
14016 (picochip_reorg): Fixed a couple of build warnings.
14018 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14020 * configure.ac (plugin -rdynamic test): Log result.
14021 * configure: Regenerate.
14022 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14023 (RDYNAMIC_SPEC): Define.
14024 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14026 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14028 * configure.ac: Determine Sun ld version numbers.
14029 (comdat_group): Restrict GNU ld version checks to gld.
14030 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14031 (enable_comdat): Support --enable-comdat.
14032 * configure: Regenerate.
14033 * doc/install.texi (Configuration): Document --enable-comdat.
14035 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14037 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
14038 * config/sol2-gld.h: ... here.
14039 * config.gcc (sparc*-*-solaris2*): Reflect this.
14040 (i[34567]86-*-solaris2*): Use it.
14042 2010-04-09 Steve Ellcey <sje@cup.hp.com>
14044 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14046 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14048 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14051 * diagnostic.c (diagnostic_initialize): Initialize
14052 some_warnings_are_errors.
14053 (diagnostic_finish): New.
14054 (diagnostic_action_after_output): Call it before exiting.
14055 (diagnostic_report_diagnostic): Do not print message here. Set
14056 some_warnings_are_errors.
14057 * diagnostic.h (diagnostic_context): Delete
14058 issue_warnings_are_errors_message. Add some_warnings_are_errors.
14059 (diagnostic_finish): Declare.
14060 * toplev.c (toplev_main): Call it before exit.
14062 2010-04-09 Jason Merrill <jason@redhat.com>
14065 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14066 for incomplete type.
14069 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14070 based on a warning flag.
14072 2010-04-09 Richard Guenther <rguenther@suse.de>
14074 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14076 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
14079 * varasm.c (default_assemble_visibility): Wrap vars that are
14080 set, but unused, by targets without GAS.
14081 * config/rs6000/rs6000.c (paired_emit_vector_compare):
14082 Remove set, but unused, vars.
14083 (rs6000_legitimize_tls_address): Likewise.
14084 (altivec_expand_dst_builtin): Likewise.
14085 * config/darwin.c (machopic_classify_symbol): Likewise.
14086 (machopic_indirection_name): Likewise.
14088 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14090 * config/i386/i386.md (DWI): New mode iterator.
14091 (S): New mode attribute.
14092 (shift_operand): Ditto.
14093 (shift_immediate_operand): Ditto.
14094 (ashl_input_operand): Ditto.
14095 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14096 using SDWIM mode iterator.
14097 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
14098 pattern from *ashl{di,ti}3_1 and corresponding splitters using
14100 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14101 from corresponding peephole2 patterns.
14102 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14103 and x86_64_shift_adj_1 using SWI48 mode iterator.
14104 (x86_shift<mode>_adj_2): Ditto.
14105 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14106 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14107 using SWI48 mode iterator.
14108 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14109 *ashldi3_cmp_rex64 using SWI mode iterator.
14110 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14111 *ashldi3_cconly_rex64 using SWI mode iterator.
14112 * config/i386/i386.c (ix86_split_ashl): Update for renamed
14113 x86_shift<mode>_adj_{1,2}.
14114 (ix86_split_ashr): Ditto.
14115 (ix86_split_lshr): Ditto.
14117 2010-04-09 Richard Guenther <rguenther@suse.de>
14119 * target.h (builtin_conversion): Pass in input and output types.
14120 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14121 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14122 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14123 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14125 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14127 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14129 2010-04-09 Richard Guenther <rguenther@suse.de>
14132 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14134 2010-04-09 Richard Guenther <rguenther@suse.de>
14136 * tree-vectorizer.h (struct _stmt_vec_info): Document
14137 that vectype is the type of the LHS.
14138 (supportable_widening_operation, supportable_narrowing_operation):
14139 Get both input and output vector types as arguments.
14140 (vect_is_simple_use_1): Declare.
14141 (get_same_sized_vectype): Likewise.
14142 * tree-vect-loop.c (vect_determine_vectorization_factor):
14143 Set STMT_VINFO_VECTYPE to the vector type of the def.
14144 (vectorizable_reduction): Adjust.
14145 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14146 Adjust. Specify the output vector type.
14147 (vect_pattern_recog_1): Adjust.
14148 * tree-vect-stmts.c (get_same_sized_vectype): New function.
14149 (vectorizable_call): Adjust.
14150 (vectorizable_conversion): Likewise.
14151 (vectorizable_operation): Likewise.
14152 (vectorizable_type_demotion): Likewise.
14153 (vectorizable_type_promotion): Likewise.
14154 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14156 (vect_is_simple_use_1): New function.
14157 (supportable_widening_operation): Get both input and output
14159 (supportable_narrowing_operation): Likewise.
14160 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14162 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
14164 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14165 __thiscall and _thiscall as predefined macros.
14166 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14167 thiscall attribute handling.
14168 (ix86_comp_type_attributes): Likewise.
14169 (ix86_function_regparm): Likewise.
14170 (ix86_return_pops_args): Likewise.
14171 (init_cumulative_args): Likewise.
14172 (find_drap_reg): Likewise.
14173 (ix86_static_chain): Likewise.
14174 (x86_this_parameter): Likewise.
14175 (x86_output_mi_thunk): Likewise.
14176 (ix86_attribute_table): Add description for thiscall attribute.
14177 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14178 * doc/extend.texi: Add documentation for thiscall.
14180 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14183 * c.opt (Wint-to-pointer-cast): Available in C++.
14184 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14186 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
14188 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14189 * calls.c (expand_call): Pass the function type to aggregate_value_p.
14190 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14191 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
14192 function type instead. Reorder and simplify checks.
14194 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14196 2010-04-08 Jing Yu <jingyu@google.com>
14197 Zdenek Dvorak <ook@ucw.cz>
14199 PR tree-optimization/42720
14200 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14201 loop unswitch conditions here from ...
14202 (tree_unswitch_single_loop): ... here.
14204 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14206 * tree-if-conv.c: Fix comments and simplify logic.
14208 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14210 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14211 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
14212 (main_tree_if_conversion): Update call to tree_if_conversion.
14214 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14217 * doc/invoke.texi (-b,-V): Delete.
14218 * doc/tm.texi: Do not mention -b.
14219 * gcc.c (display_help): Delete -b and -V.
14220 (process_command): Delete -b and -V.
14221 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
14223 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
14224 Wolfgang Gellerich <gellerich@de.ibm.com>
14226 Implement target hook for loop unrolling
14227 * target.h (loop_unroll_adjust): Add a new target hook function.
14228 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
14229 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
14230 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
14231 (s390_loop_unroll_adjust): Implement the new target hook for s390.
14232 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
14234 (decide_unroll_stupid): Likewise.
14236 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14239 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
14241 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14243 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
14244 (Specific, *-*-solaris2*): Likewise.
14245 Don't prefer Sun as over GNU as.
14247 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
14249 * config/s390/s390.c (override_options): Adjust the z10 defaults
14250 for max-unroll-times, max-completely-peeled-insns
14251 and max-completely-peel-times.
14253 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14255 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
14256 instructions for z10.
14257 (s390_expand_setmem): Likewise.
14258 (s390_expand_cmpmem): Likewise.
14260 2010-04-08 Richard Guenther <rguenther@suse.de>
14262 PR tree-optimization/43679
14263 * tree-ssa-pre.c (eliminate): Only propagate copies.
14265 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14268 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
14269 set but not used variable warning.
14271 2010-04-08 Wei Guozhi <carrot@google.com>
14274 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
14275 (arm_size_rtx_costs): Call the new function when optimized for size.
14277 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14280 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
14281 op0 is not a MEM, just return NULL instead of assertion
14283 (discover_nonconstant_array_refs): Don't walk debug stmts.
14285 2010-04-08 Doug Kwan <dougkwan@google.com>
14287 * configure.ac: Recognize gold and do not use its version number
14288 to test ld features.
14289 * configure: Regenerate.
14291 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
14293 PR middle-end/40815
14294 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14295 (negate_value): Move code to push elements to broken_up_substracts ...
14296 (eliminate_plus_minus_pair): ... here. Push operands that have no
14297 negative pair to plus_negates.
14298 (repropagate_negates, init_reassoc, fini_reassoc): Update.
14300 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14302 * doc/install.texi (Configuration): Move description of
14303 --enable-lto, --with-libelf*, --enable-gold from Java section to
14306 * doc/generic.texi (Working with declarations)
14307 (Function Properties, C and C++ Trees): Fix typos.
14308 * doc/sourcebuild.texi (Top Level): Likewise.
14310 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14313 * tree.h (DECL_READ_P): Define.
14314 (struct tree_decl_common): Add decl_read_flag.
14315 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14316 a set but not used warning.
14317 (merge_decls): Merge DECL_READ_P flag.
14318 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14319 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14320 * c-common.c (handle_used_attribute, handle_unused_attribute):
14322 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14324 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14326 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14327 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14328 c_parser_binary_expression, c_parser_cast_expression,
14329 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14330 Call default_function_array_read_conversion instead of
14331 default_function_array_conversion where needed.
14332 (c_parser_unary_expression, c_parser_conditional_expression,
14333 c_parser_postfix_expression_after_primary, c_parser_initelt):
14334 Likewise. Call mark_exp_read where needed.
14335 (c_parser_statement_after_labels, c_parser_asm_operands,
14336 c_parser_typeof_specifier, c_parser_sizeof_expression,
14337 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14339 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14341 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14342 (warn_unused_but_set_parameter): Default to warn_unused
14344 * doc/invoke.texi: Document -Wunused-but-set-variable and
14345 -Wunused-but-set-parameter.
14347 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14348 used count variable.
14349 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14350 when operandN variables aren't used in the body of the expander
14352 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
14353 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
14354 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
14355 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
14356 FOR_EACH_IMM_USE_ON_STMT): Likewise.
14357 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
14358 * tree.c (PROCESS_ARG): Likewise.
14360 2010-04-07 Simon Baldwin <simonb@google.com>
14362 * diagnostic.h (diagnostic_override_option_index): New macro to
14363 set a diagnostic's option_index.
14364 * c-tree.h (c_cpp_error): Add warning reason argument.
14365 * opts.c (_warning_as_error_callback): New.
14366 (register_warning_as_error_callback): Store callback for
14367 warnings enabled via enable_warning_as_error.
14368 (enable_warning_as_error): Call callback, minor code tidy.
14369 * opts.h (register_warning_as_error_callback): Declare.
14370 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
14371 response to -Werror=.
14372 (c_common_init_options): Register warning_as_error_callback in opts.c.
14373 * common.opt: Add -Wno-cpp option.
14374 * c-common.c (struct reason_option_codes_t): Map cpp warning
14375 reason codes to gcc option indexes.
14376 * (c_option_controlling_cpp_error): New function, lookup the gcc
14377 option index for a cpp warning reason code.
14378 * (c_cpp_error): Add warning reason argument, call
14379 c_option_controlling_cpp_error for diagnostic_override_option_index.
14380 * doc/invoke.texi: Document -Wno-cpp.
14382 2010-04-07 Richard Guenther <rguenther@suse.de>
14384 * ipa-reference.c (mark_load): Use get_base_address.
14385 (mark_store): Likewise.
14387 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
14388 inserting GIMPLE_NOPs into the IL.
14389 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14390 Explicitly strip handled components and indirect references.
14392 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
14393 folding address expressions.
14394 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
14395 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
14396 operand_equal_p to compare decls.
14397 (ptr_deref_may_alias_decl_p): Likewise.
14398 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
14399 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
14400 Handle reversed comparison ops.
14401 * tree-sra.c (asm_visit_addr): Use get_base_address.
14402 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
14403 * ipa-reference.c (mark_address): Use get_base_address.
14405 2010-04-07 Richard Guenther <rguenther@suse.de>
14407 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
14408 Propagate constants everywhere.
14410 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14413 * tree.c (MAX_INT_CACHED_PREC): Define.
14414 (nonstandard_integer_type_cache): New array.
14415 (build_nonstandard_integer_type): Cache results for precision
14416 <= MAX_INT_CACHED_PREC.
14418 2010-04-07 Richard Guenther <rguenther@suse.de>
14420 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
14421 -fargument-noalias-global, -fargument-noalias-anything): Remove.
14422 * common.opt: Likewise.
14423 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
14424 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
14425 (nonoverlapping_memrefs_p): Likewise.
14426 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14427 * opts.c (common_handle_option): Handle OPT_fargument_alias,
14428 OPT_fargument_noalias, OPT_fargument_noalias_anything and
14429 OPT_fargument_noalias_global for backward compatibility.
14431 2010-04-07 Richard Guenther <rguenther@suse.de>
14433 PR tree-optimization/43270
14434 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
14435 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
14436 * tree-ssa-pre.c (phi_translate_1): Adjust.
14437 (fully_constant_expression): Split out vn_reference handling to ...
14438 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
14439 Fold reads from constant strings.
14440 (vn_reference_lookup): Handle fully constant references.
14441 (vn_reference_lookup_pieces): Likewise.
14442 * Makefile.in (expmed.o-warn): Add -Wno-error.
14444 2010-04-07 Martin Jambor <mjambor@suse.cz>
14446 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
14448 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
14451 * gcc.c: Add -static-libstdc++ to list of recognized options.
14453 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14455 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
14457 2010-04-07 Richard Guenther <rguenther@suse.de>
14459 PR middle-end/42617
14460 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
14461 bases build simple mem attributes to retain points-to information.
14463 2010-04-07 Richard Guenther <rguenther@suse.de>
14465 PR middle-end/42617
14466 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
14467 preserve points-to related information.
14469 2010-04-07 Richard Guenther <rguenther@suse.de>
14471 PR middle-end/42617
14472 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
14473 discard plain indirect references.
14474 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
14475 * tree.c (tree_nop_conversion): Likewise.
14477 2010-04-07 Dodji Seketeli <dodji@redhat.com>
14480 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
14482 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
14484 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
14485 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
14487 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14489 * tree-if-conv.c: Fix indentation and comments.
14491 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14493 * tree-if-conv.c: Sort static functions in topological order.
14495 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14497 * tree-if-conv.c: Fix indentation and comments.
14499 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14501 PR middle-end/43519
14502 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
14503 lang_hooks.types.type_for_size instead of
14504 build_nonstandard_integer_type.
14505 When converting an unsigned type to signed, double its precision.
14506 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
14507 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
14508 (graphite_create_new_loop_guard): When ub + 1 wraps around,
14511 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14513 PR middle-end/43519
14514 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14515 POINTER_PLUS_EXPR for pointer types.
14517 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14519 PR middle-end/43519
14520 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
14521 * graphite-clast-to-gimple.c: Include langhooks.h.
14522 (max_signed_precision_type): New.
14523 (max_precision_type): Takes two types as arguments.
14524 (precision_for_value): New.
14525 (precision_for_interval): New.
14526 (gcc_type_for_interval): New.
14527 (gcc_type_for_value): New.
14528 (gcc_type_for_clast_term): New.
14529 (gcc_type_for_clast_red): New.
14530 (gcc_type_for_clast_bin): New.
14531 (gcc_type_for_clast_expr): Split up into several functions.
14532 (gcc_type_for_clast_eq): Rewritten.
14533 (compute_bounds_for_level): New.
14534 (compute_type_for_level_1): New.
14535 (compute_type_for_level): New.
14536 (gcc_type_for_cloog_iv): Removed.
14537 (gcc_type_for_iv_of_clast_loop): Rewritten.
14538 (graphite_create_new_loop): Compute the lower and upper bound types
14539 with gcc_type_for_clast_expr.
14540 (graphite_create_new_loop_guard): Same.
14541 (find_cloog_iv_in_expr): Removed.
14542 (compute_cloog_iv_types_1): Removed.
14543 (compute_cloog_iv_types): Removed.
14544 (gloog): Do not call compute_cloog_iv_types.
14545 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
14546 GBB_CLOOG_IV_TYPES.
14547 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
14548 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
14549 (GBB_CLOOG_IV_TYPES): Removed.
14551 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14553 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
14554 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
14555 (detect_commutative_reduction): Same.
14557 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14559 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
14560 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
14562 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
14563 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
14564 (rewrite_commutative_reductions_out_of_ssa): Same.
14565 * passes.c (execute_function_todo): Call verify_ssa for every pass
14566 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
14567 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
14568 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
14569 with an extra argument.
14570 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
14571 verify_ssa only when the extra argument is true.
14572 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
14573 with an extra argument.
14574 (tree_transform_and_unroll_loop): Same.
14576 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14578 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
14579 for all the passes of the LNO having LOOP_CLOSED_SSA.
14580 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
14581 * tree-loop-distribution.c (pass_loop_distribution): Same.
14582 * tree-pass.h (TODO_verify_loops): Removed.
14583 * tree-ssa-loop.c (pass_tree_loop_init): Same.
14585 (pass_tree_unswitch): Same.
14586 (pass_predcom): Same.
14587 (pass_vectorize): Same.
14588 (pass_linear_transform): Same.
14589 (pass_graphite_transforms): Same.
14590 (pass_iv_canon): Same.
14591 (pass_complete_unroll): Same.
14592 (pass_complete_unrolli): Same.
14593 (pass_parallelize_loops): Same.
14594 (pass_loop_prefetch): Same.
14595 (pass_iv_optimize): Same.
14597 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
14599 PR middle-end/32824
14600 * passes.c (init_optimization_passes): Move pass_lim before
14601 pass_copy_prop and pass_dce_loop.
14603 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14606 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14607 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14608 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14609 MULTI_* defines for 4 argument vpermil2p* builtins.
14611 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14613 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14614 * config/i386/i386.c (x86_maybe_negate_const_int): New.
14615 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14616 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14617 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14618 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14619 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14620 Use x86_maybe_negate_const_int to output insn mnemonic.
14621 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
14622 check from instruction predicate. Update comments.
14623 * config/i386/sync.md (sync_add<mode>): Use
14624 x86_maybe_negate_const_int to output insn mnemonic.
14626 2010-04-06 Jan Hubicka <jh@suse.cz>
14628 PR tree-optimization/42906
14629 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
14630 IGNORE_SELF argument. Set visited_control_parents for fully
14632 (find_obviously_necessary_stmts): Update call of
14633 mark_control_dependent_edges_necessary.
14634 (propagate_necessity): Likewise. Handle PHI edges more curefully.
14636 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14638 * config/i386/i386.md: Remove comment about 'e' and 'E'
14641 2010-04-06 Richard Guenther <rguenther@suse.de>
14643 PR tree-optimization/43627
14644 * tree-vrp.c (extract_range_from_unary_expr): Widenings
14645 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
14648 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14650 * BASE-VER: Change to 4.6.0.
14653 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
14656 2010-04-06 Richard Guenther <rguenther@suse.de>
14658 PR middle-end/43661
14659 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
14661 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14663 * doc/invoke.texi (Optimize Options): Document that LTO
14664 won't remove object access purely due to incompatible
14667 2010-04-04 Matthias Klose <doko@ubuntu.com>
14669 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
14670 Initialize variable.
14672 2010-04-03 Richard Guenther <rguenther@suse.de>
14674 PR middle-end/42509
14675 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
14676 require a non-NULL MEM_OFFSET.
14678 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
14680 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
14681 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
14682 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
14683 config/alpha/predicates.md, config/arm/arm.md,
14684 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14685 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14686 config/darwin9.h, config/darwin.c, config/darwin.h,
14687 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14688 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14689 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14690 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14691 config/mips/mips.md, config/mn10300/mn10300.c,
14692 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14693 config/rs6000/aix.h, config/rs6000/dfp.md,
14694 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
14695 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14696 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14697 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14698 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14699 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14700 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14701 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14702 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14703 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14704 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14705 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14706 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14707 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14708 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14709 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14710 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14711 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14712 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14713 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14714 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14715 opt-functions.awk, opth-gen.awk, params.def, passes.c,
14716 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14717 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14718 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14719 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14720 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14721 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14722 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14723 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14724 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14725 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14726 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14727 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14728 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14729 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14731 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14734 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14735 * aclocal.m4: Regenerate.
14737 2010-04-02 Richard Guenther <rguenther@suse.de>
14739 PR tree-optimization/43629
14740 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14741 if we have seen a constant value.
14743 2010-04-02 Joseph Myers <joseph@codesourcery.com>
14745 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14747 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
14750 * arm.c (legitimize_tls_address): Adjust call to
14751 gen_tls_load_dot_plus_four.
14752 (arm_note_pic_base): New function.
14753 (arm_cannot_copy_insn_p): Use it.
14754 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14757 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14762 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14764 * Makefile.in ($(out_object_file)): Depend on
14765 gt-$(basename $(notdir $(out_file))).h.
14767 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
14769 * config.gcc (lm32-*-rtems*): Add t-lm32.
14771 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
14773 * config.gcc: Add lm32-*-rtems*.
14774 * config/lm32/rtems.h: New file.
14776 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
14779 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14781 2010-04-01 Jakub Jelinek <jakub@redhat.com>
14783 * dwarf2out.c (output_compilation_unit_header): For
14784 -gdwarf-4 use version 4 instead of version 3.
14785 (output_line_info): For version 4 and above emit additional
14786 maximum ops per insn header field.
14787 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14789 * dwarf2out.c (is_c_family, is_java): Remove.
14790 (lower_bound_default): New function.
14791 (add_bound_info, gen_descr_array_type_die): Use it.
14793 2010-04-01 Dodji Seketeli <dodji@redhat.com>
14796 * dwarf2out.c (gen_variable_die): Allow debug info for variable
14797 re-declaration when it happens in a function.
14799 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
14801 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14802 (cgraph_remove_function_insertion_hook): Same.
14803 (cgraph_call_function_insertion_hooks): Same.
14805 2010-04-01 Richard Guenther <rguenther@suse.de>
14807 PR middle-end/43614
14808 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14809 and TREE_THIS_VOLATILE.
14810 (copy_ref_info): Likewise.
14811 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14812 * tree.c (build6_stat): Ignore side-effects of all but arg5
14813 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
14816 2010-04-01 Richard Guenther <rguenther@suse.de>
14818 PR tree-optimization/43607
14819 * ipa-type-escape.c (check_call): Do not access non-existing
14822 2010-04-01 Richard Guenther <rguenther@suse.de>
14824 PR middle-end/43602
14826 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14827 Jack Howarth <howarth@bromo.med.uc.edu>
14829 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14832 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14834 * doc/install.texi (Prerequisites): Document libelf usability on
14835 IRIX 5/6 and Solaris 2.
14836 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14837 Update GNU as, GNU ld requirements.
14838 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14839 Document Sun Studio compiler download.
14840 Update and simplify as, ld recommendations.
14841 (Specific, *-*-solaris2.7): Note obsoletion, removal.
14843 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14845 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14846 with_tune_32 to pentium4.
14848 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
14850 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14852 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14854 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14855 obsoletion, removal.
14857 Document GNU as requirement.
14858 Update configure requirements.
14859 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14860 Recomment IRIX 6.5.18+.
14861 Document IDF/IDL requirement.
14862 Document GNU as requirement.
14863 Document GNU ld bootstrap failure.
14864 Remove freeware.sgi.com reference.
14866 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14868 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14869 UNIX V4.0, V5.0 obsoletion, removal.
14870 Remove --with-gc=simple reference.
14871 Update VM requirements during bootstrap.
14872 Remove -oldas bootstrap description.
14873 Update binutils reference.
14874 Remove comparison failure note.
14876 2010-03-31 Richard Guenther <rguenther@suse.de>
14877 Zdenek Dvorak <ook@ucw.cz>
14878 Sebastian Pop <sebastian.pop@amd.com>
14880 PR middle-end/43464
14881 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14882 with multiple arguments.
14883 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14885 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14887 * graphite-dependences.c (print_pddr): Call print_pdr with an
14889 * graphite-poly.c (debug_pdr): Add an extra argument for the
14892 (print_pbb_domain): Same.
14894 (print_scop_context): Same.
14895 (print_scop): Same.
14896 (print_cloog): Same.
14897 (debug_pbb_domain): Same.
14899 (print_pdrs): Same.
14900 (debug_pdrs): Same.
14901 (debug_scop_context): Same.
14902 (debug_scop): Same.
14903 (debug_cloog): Same.
14904 (print_scop_params): Same.
14905 (debug_scop_params): Same.
14906 (print_iteration_domain): Same.
14907 (print_iteration_domains): Same.
14908 (debug_iteration_domain): Same.
14909 (debug_iteration_domains): Same.
14910 (print_scattering_function): Same.
14911 (print_scattering_functions): Same.
14912 (debug_scattering_function): Same.
14913 (debug_scattering_functions): Same.
14914 * graphite-poly.h (debug_pdr): Update declaration.
14916 (print_pbb_domain): Same.
14918 (print_scop_context): Same.
14919 (print_scop): Same.
14920 (print_cloog): Same.
14921 (debug_pbb_domain): Same.
14923 (print_pdrs): Same.
14924 (debug_pdrs): Same.
14925 (debug_scop_context): Same.
14926 (debug_scop): Same.
14927 (debug_cloog): Same.
14928 (print_scop_params): Same.
14929 (debug_scop_params): Same.
14930 (print_iteration_domain): Same.
14931 (print_iteration_domains): Same.
14932 (debug_iteration_domain): Same.
14933 (debug_iteration_domains): Same.
14934 (print_scattering_function): Same.
14935 (print_scattering_functions): Same.
14936 (debug_scattering_function): Same.
14937 (debug_scattering_functions): Same.
14939 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14941 * graphite-poly.c (print_scattering_function_1): New.
14942 (print_scattering_function): Call it.
14943 (print_scop_params): Remove spaces at the end of lines.
14944 (print_cloog): New.
14945 (debug_cloog): New.
14946 * graphite-poly.h (print_cloog): Declared.
14947 (debug_cloog): Declared.
14949 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14951 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14953 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14954 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14955 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14956 to switch between adding the IV bump in loop->latch or in loop->header.
14958 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14960 * graphite-poly.c (print_scattering_function): Pretty print following
14961 the scoplib format.
14963 (print_pbb_domain): Same.
14964 (dump_gbb_cases): Same.
14965 (dump_gbb_conditions): Same.
14966 (print_pdrs): Same.
14968 (print_scop_params): Same.
14969 (print_scop_context): Same.
14970 (print_scop): Same.
14971 (print_pbb_body): New.
14972 (lst_indent_to): New.
14973 (print_lst): Start new lines with a #.
14974 * graphite-poly.h (pbb_bb): New.
14975 (pbb_index): Use pbb_bb.
14976 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14978 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14980 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14982 * dwarf2out.c (size_of_die): For -gdwarf-4 use
14983 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14984 and 0 instead of 1 for dw_val_class_flag.
14985 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14986 dw_val_class_range_list, dw_val_class_loc_list,
14987 dw_val_class_lineptr and dw_val_class_macptr, use
14988 DW_FORM_flag_present for dw_val_class_flag and
14989 DW_FORM_exprloc for dw_val_class_loc.
14990 (output_die): For -gdwarf-4 print dw_val_class_loc
14991 size as uleb128 instead of 1 or 2 bytes and don't print
14992 anything for dw_val_class_flag.
14994 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14995 instead of cselib_lookup following by tweaking locs->setting_insn.
14998 * cselib.c (cselib_process_insn): Clear cselib_current_insn
14999 even before returning from label, setjmp call or volatile asm
15002 2010-03-31 Richard Guenther <rguenther@suse.de>
15004 PR middle-end/43600
15005 * cgraphunit.c (cgraph_output_in_order): Do not allocate
15006 temporary data on stack.
15008 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15010 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15011 (PUSHSECTION_ASM_OP): Remove.
15012 (POPSECTION_ASM_OP): Remove.
15013 (PUSHSECTION_FORMAT): Remove.
15014 * config/sol2.h (PUSHSECTION_FORMAT): Define.
15015 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15016 * config/sol2.c (solaris_output_init_fini): Use it.
15018 2010-03-31 Jie Zhang <jie@codesourcery.com>
15021 * opt-functions.awk (var_type_struct): Use signed char type
15022 for simple variables.
15024 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15026 * config/sol2.c: Include output.h.
15027 (solaris_assemble_visibility): New function.
15028 * config/t-sol2 (sol2.o): Add output.h dependency.
15029 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15030 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15033 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15036 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15037 V2SImode or XFmode on PRE_DEC.
15040 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15043 2010-03-31 Jie Zhang <jie@codesourcery.com>
15046 * reload.h (caller_save_initialized_p): Declare.
15047 * toplev.c (backend_init_target): Don't call
15048 init_caller_save but set caller_save_initialized_p to false.
15049 * caller-save.c (caller_save_initialized_p): Define.
15050 (init_caller_save): Check caller_save_initialized_p.
15051 * ira.c (ira): Call init_caller_save if flag_caller_saves.
15053 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15056 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15057 and soft-fp/t-softfp to tmake_file.
15058 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15059 (LIBGCC2_TF_CEXT): Define.
15062 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
15065 * cselib.c (n_useless_values): Document handling of debug locs.
15066 (n_useless_debug_values, n_debug_values): New variables.
15067 (new_elt_loc_list): Don't add to debug values, keep count.
15068 (promote_debug_loc): New.
15069 (cselib_reset_table): Zero new variables.
15070 (entry_and_rtx_equal_p): Promote debug locs.
15071 (discard_useless_locs): Increment n_useless_debug_values for
15073 (remove_useless_values): Adjust n_useless_values and n_debug_values
15074 with n_useless_debug_values.
15075 (add_mem_for_addr): Promote debug locs.
15076 (cselib_lookup_mem): Likewise.
15077 (cselib_lookup_addr): Renamed to...
15078 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
15079 (cselib_log_lookup): ... this. Turn into...
15080 (cselib_lookup_addr): ... new wrapper.
15081 (cselib_lookup_from_insn): New.
15082 (cselib_invalidate_regno): Increment n_useless_debug_values for
15084 (cselib_invalidate_mem): Likewise.
15085 (cselib_process_insn): Take n_deleted and n_debug_values into
15086 account to guard remove_useless_value call.
15087 (cselib_finish): Zero n_useless_debug_values.
15088 * cselib.h (cselib_lookup_from_insn): Declare.
15089 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15090 (sched_analyze_2): Likewise.
15092 2010-03-30 Jakub Jelinek <jakub@redhat.com>
15094 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15096 (adjust_mems): Replace narrowing SUBREG of expression containing
15097 just PLUS, MINUS, MULT and ASHIFT of registers and constants
15098 with operations in the narrower mode.
15101 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15102 regs_invalidated_by_call instead all call_used_reg_set registers.
15104 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
15106 PR middle-end/43430
15107 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15108 pointer comparisons with types_compatible_p.
15109 * tree-vect-stmts.c (vectorizable_call): Same.
15110 (vectorizable_condition): Same.
15112 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15114 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15115 stack check if the mask would be zero.
15117 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15118 Jack Howarth <howarth@bromo.med.uc.edu>
15120 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15123 2010-03-30 Joseph Myers <joseph@codesourcery.com>
15126 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
15128 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15129 Include ___unordxf2 and ___unordtf2.
15130 * config/i386/libgcc-glibc.ver: Do not define inheritance from
15133 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
15135 * config/lm32/t-lm32: New file.
15136 * config.gcc: Use the above file when targetting lm32.
15138 2010-03-28 Duncan Sands <baldrick@free.fr>
15140 * Makefile.in (PLUGIN_HEADERS): Add except.h.
15142 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15144 PR middle-end/43431
15145 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15146 Improve vectorization cost model diagnostic.
15148 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15150 PR middle-end/43436
15151 * tree-vect-data-refs.c (vect_analyze_data_refs): When
15152 compute_data_dependences_for_loop returns false, early exit
15153 and output an extra diagnostic for the failed data reference
15156 2010-03-29 Richard Guenther <rguenther@suse.de>
15158 PR tree-optimization/43560
15159 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15160 (can_sm_ref_p): Treat stores to readonly locations as trapping.
15162 2010-03-29 Jie Zhang <jie@codesourcery.com>
15165 * toplev.c (process_options): Set optimization_default_node
15166 and optimization_current_node.
15167 * opts.c (decode_options): Don't set optimization_default_node
15168 and optimization_current_node.
15170 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
15172 * config/rtems.h: Abandon -qrtems_debug.
15174 2010-03-28 Jan Hubicka <jh@suse.cz>
15176 PR tree-optimization/43505
15177 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15178 map should not be copied.
15180 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15182 PR middle-end/41674
15183 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15184 cdtors, set DECL_PRESERVE_P.
15185 * ipa.c (cgraph_externally_visible_p): Return true if declaration
15186 should be preseved.
15188 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
15190 PR tree-optimization/43528
15191 * stor-layout.c (place_field): Check that constant fits into
15192 unsigned HWI when skipping calculation of MS bitfield layout.
15194 2010-03-27 Jan Hubicka <jh@suse.cz>
15196 PR middle-end/43391
15197 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15198 notice_global_symbol work.
15200 2010-03-27 Jakub Jelinek <jakub@redhat.com>
15202 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15203 instead of dwarf2out_decl.
15204 (struct var_loc_node): Remove section_label field.
15205 (dwarf2out_function_decl): New function.
15206 (dwarf2out_var_location): Don't set section_label field.
15207 (dwarf2out_begin_function): Don't empty decl_loc_table here.
15209 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15211 PR tree-optimization/43544
15212 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15213 First argument for builtin vectorized function hook is now a
15214 tree to be able to distinguish between machine specific and
15216 * targhooks.c (default_builtin_vectorized_function): Ditto.
15217 * targhooks.h (default_builtin_vectorized_function): Ditto.
15218 * target.h (struct gcc_target): Ditto.
15219 * tree-vect-stmts.c (vectorizable_function): Ditto.
15220 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
15221 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15224 2010-03-26 Joseph Myers <joseph@codesourcery.com>
15227 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
15228 nested binding iff it is a FUNCTION_DECL.
15229 (store_parm_decls_newstyle): Pass nested=true to bind for
15230 FUNCTION_DECLs amongst parameters.
15232 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15234 * var-tracking.c (vt_expand_loc_callback): Don't run
15235 cselib_expand_value_rtx_cb in dummy mode if
15236 cselib_dummy_expand_value_rtx_cb returned false.
15238 * var-tracking.c (emit_note_insn_var_location): For one part
15239 notes with offset 0, don't add EXPR_LIST around the location.
15240 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
15241 add_location_or_const_value_attribute): Adjust for that change.
15244 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
15245 into first operand and location into second.
15246 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
15247 dw_cfi_oprnd_loc for DW_CFA_expression.
15248 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
15249 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
15250 assume first argument is regnum and second argument is location.
15252 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15255 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
15256 of scratch register to DImode. Split to DImode comparison operator.
15257 Use SImode subreg of scratch register in the multiplication.
15258 (*cmp_sadd_sidi): Ditto.
15259 (*cmp_ssub_si): Ditto.
15260 (*cmp_ssub_sidi): Ditto.
15262 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15265 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
15266 Remove invalid assert and wrong comment.
15268 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15271 * flags.h (final_insns_dump_p): New extern.
15272 * final.c (final_insns_dump_p): New variable.
15273 (rest_of_clean_state): Set it before -fdump-final-insns=
15274 dumping, clear afterwards.
15275 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
15276 MEM_ALIAS_SET on MEMs.
15278 2010-03-26 David S. Miller <davem@davemloft.net>
15280 * configure.ac: Fix sparc GOTDATA_OP bug check.
15281 * configure: Rebuild.
15283 2010-03-26 Alan Modra <amodra@gmail.com>
15285 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15287 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15289 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15290 TLS_SECTION_ASM_FLAG.
15292 2010-03-25 Jakub Jelinek <jakub@redhat.com>
15295 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15296 Clear first_function_block_is_cold.
15299 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15300 argument if the argument is truth_value_p.
15302 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15304 * config/rs6000/constraints.md: Update copyright year for my changes.
15307 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15308 used in reg+reg addressing, swap registers.
15310 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15313 * target.h (struct gcc_target): Add code_end hook.
15314 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15315 if not yet defined.
15316 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15317 * toplev.c (compile_file): Call targetm.asm_out.code_end
15318 hook before unwind info/debug info output.
15319 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15320 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15321 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15322 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15323 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15324 * config/i386/i386.c (ix86_file_end): Renamed to...
15325 (ix86_code_end): ... this. Make static. Don't call
15326 file_end_indicate_exec_stack. Emit unwind info using
15327 final_start_function/final_end_function.
15328 (darwin_x86_file_end): Remove.
15329 (TARGET_ASM_CODE_END): Define.
15330 * config/i386/i386.h (TARGET_ASM_FILE_END,
15331 NEED_INDICATE_EXEC_STACK): Don't define.
15332 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15333 (TARGET_ASM_FILE_END): Define to darwin_file_end.
15334 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15335 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15338 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15339 at the beginning and final_end_function at the end.
15340 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15342 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15344 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15345 and Sun as TLS syntax.
15346 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15347 * configure: Regenerate.
15348 * config.in: Regenerate.
15349 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15350 (default_elf_asm_named_section): Use it.
15351 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
15352 (i386_output_dwarf_dtprel): Likewise.
15353 (output_addr_const_extra): Likewise.
15354 (output_pic_addr_const): Lowercase @GOTTPOFF.
15355 (output_addr_const_extra): Likewise.
15356 (output_pic_addr_const): Lowercase @GOTNTPOFF.
15357 (output_addr_const_extra): Likewise.
15358 (output_pic_addr_const): Lowercase @INDNTPOFF.
15359 (output_addr_const_extra): Likewise.
15360 (output_pic_addr_const): Lowercase @NTPOFF.
15361 (output_addr_const_extra): Likewise.
15362 (output_pic_addr_const): Lowercase @TPOFF.
15363 (output_addr_const_extra): Likewise.
15364 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
15365 (*tls_global_dynamic_64): Likewise.
15366 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
15367 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
15369 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
15370 (ASM_OUTPUT_TLS_COMMON): Use it.
15371 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
15374 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
15375 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15376 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
15377 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
15378 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15379 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
15381 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15383 * config/i386/i386.c (override_options): Don't accept
15384 -mtls-dialect=sun any longer.
15385 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
15386 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
15387 (*tls_local_dynamic_base_32_sun): Likewise.
15388 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15390 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15393 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15394 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
15397 * ira.c (adjust_cleared_regs): New function.
15398 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
15402 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
15404 * expr.c (expand_expr_real): Restore previous
15405 curr_insn_source_location and curr_insn_block after
15406 expand_expr_real_1 call.
15407 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
15408 instead of expand_expr_real_1.
15410 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
15412 PR rtl-optimization/43413
15413 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
15416 2010-03-22 James E. Wilson <wilson@codesourcery.com>
15419 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
15420 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
15422 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
15424 * config/i386/i386.c (ix86_target_string): Add -mfma.
15425 Fix a typo in comment.
15427 2010-03-22 Mike Stump <mikestump@comcast.net>
15430 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
15431 Don't overly align based upon packed packed fields.
15433 2010-03-22 Jason Merrill <jason@redhat.com>
15435 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
15436 Use () rather than [], and move before the element type.
15438 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15440 * doc/configfiles.texi (Configuration Files): Removed
15441 fixinc/Makefile*, intl/Makefile.*.
15442 * doc/makefile.texi: Fixed markup. Abstract from version
15443 control system used.
15444 (Makefile): Removed obsolete gcc/java/parse.y example.
15445 * doc/sourcebuild.texi: Likewise.
15446 (Top Level): Added config, gnattools, libdecnumber, libgcc,
15447 libgomp, libssp. Removed fastjar.
15448 (Miscellaneous Docs): Clarify location.
15449 Added COPYING3, COPYING3.LIB.
15450 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
15452 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15455 * config/i386/i386.c (x86_function_profiler)
15456 [!NO_PROFILE_COUNTERS]: Fix typo.
15457 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
15460 2010-03-22 Janis Johnson <janis187@us.ibm.com>
15461 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15463 * doc/sourcebuild.texi (Test Directives): Split into six
15464 subsections, with most of the current text in new subsections
15465 Directives, Selectors, and Final Actions.
15466 (Directives): Split list of test directives into multiple
15468 (Selectors): Describe use and syntax of selectors.
15469 (Effective-Target Keywords): Describe all existing keywords.
15470 (Add Options): Describe features for dg-add-options.
15471 (Require Support): Describe variants of dg-require-support.
15472 (Final Actions): Describe commands to use in dg-final.
15474 2010-03-22 Michael Matz <matz@suse.de>
15476 PR middle-end/43475
15477 * recog.c (validate_replace_rtx_group): Replace also in
15478 REG_EQUAL and REG_EQUIV notes.
15480 2010-03-22 Richard Guenther <rguenther@suse.de>
15482 PR tree-optimization/43390
15483 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
15484 sure vector extracts are type correct.
15486 2010-03-22 Richard Guenther <rguenther@suse.de>
15488 PR middle-end/40106
15489 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
15490 x * sqrt (x) even when optimizing for size if the target
15491 has native support for sqrt.
15493 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15495 * varasm.c (make_decl_rtl_for_debug): Also clear
15496 flag_mudflap for the duration of make_decl_rtl call.
15499 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
15500 locs from preserved VALUEs.
15502 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15504 PR middle-end/42718
15505 * pa.md (movmemsi): Set align to one if zero.
15506 (movmemdi): Likewise.
15508 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
15511 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
15512 with their corresponding prologue pushes.
15514 2010-03-20 Andrew Pinski <pinskia@gmail.com>
15517 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
15518 at the begining or end.
15519 (spu_expand_epilogue): Likewise.
15521 2010-03-20 Richard Guenther <rguenther@suse.de>
15523 PR rtl-optimization/43438
15524 * combine.c (make_extraction): Properly zero-/sign-extend an
15525 extraction of the low part of a CONST_INT. Also handle
15528 2010-03-19 Mike Stump <mikestump@comcast.net>
15530 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
15531 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
15532 (override_options): Use SUBTARGET32_DEFAULT_CPU.
15534 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15537 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
15540 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
15542 PR rtl-optimization/42258
15543 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
15544 use that may match DEF.
15547 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
15548 the cost of loading the constant rather than assuming
15550 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
15551 outer code is AND, do the same tests as the andsi3 expander and
15552 return COSTS_N_INSNS (1) if and is cheap.
15554 * optabs.c (avoid_expensive_constant): Fix formatting.
15556 2010-03-19 Michael Matz <matz@suse.de>
15559 * attribs.c (decl_attributes): When rebuilding a function pointer
15560 type use the same qualifiers as the original pointer type.
15562 2010-03-19 Martin Jambor <mjambor@suse.cz>
15564 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
15565 and is_gimple_ip_invariant_address.
15567 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15570 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15572 * config/arm/arm.c (arm_override_options): Turn off
15573 flag_dwarf2_cfi_asm for AAPCS variants.
15575 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15578 * config/arm/arm.c (emit_multi_reg_push): Update comments.
15579 Use PRE_MODIFY instead of PRE_DEC.
15580 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
15581 (vfp_emit_fstmd): Likewise.
15583 2010-03-19 Michael Matz <matz@suse.de>
15586 * builtins.c (expand_builtin_interclass_mathfn,
15587 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15590 2010-03-19 Richard Guenther <rguenther@suse.de>
15592 PR tree-optimization/43415
15593 * tree-ssa-pre.c (phi_translate): Split out worker to ...
15594 (phi_translate_1): ... this.
15595 (phi_translate): Move all caching here. Cache all NARY
15596 and REFERENCE translations.
15598 2010-03-19 David S. Miller <davem@davemloft.net>
15600 With help from Eric Botcazou.
15601 * config/sparc/sparc.c: Include dwarf2out.h.
15602 (emit_pic_helper): Delete.
15603 (pic_helper_symbol_name): Delete.
15604 (pic_helper_emitted_p): Delete.
15605 (pic_helper_needed): New.
15606 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15607 (get_pc_thunk_name): New.
15608 (load_pic_register): Remove 'delay_pic_helper' arg. Use
15609 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15610 Set pic_helper_needed to true. Don't call emit_pic_helper.
15611 (sparc_expand_prologue): Update load_pic_register call.
15612 (sparc_output_mi_thunk): Likewise.
15613 (sparc_file_end): Emit a hidden comdat symbol for the PIC
15614 thunk if possible. Output CFI information as needed.
15616 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15617 Jack Howarth <howarth@bromo.med.uc.edu>
15620 * config/i386/i386.h: Fix ABI on darwin x86-32.
15622 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
15624 * tree.h: Declare make_decl_rtl_for_debug.
15625 * varasm.c (make_decl_rtl_for_debug): New.
15626 * dwarf2out.c (rtl_for_decl_location): Call it.
15627 * cfgexpand.c (expand_debug_expr): Call it.
15629 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15632 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
15636 * var-tracking.c (vt_init_cfa_base): Do nothing if
15637 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
15639 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
15642 * var-tracking.c (canonicalize_vars_star): New.
15643 (dataflow_post_merge_adjust): Use it.
15645 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15648 * var-tracking.c (non_suitable_const): New function.
15649 (add_uses): For DEBUG_INSNs with constants, don't record any
15650 value, instead just the constant value itself.
15651 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
15652 is not VAR_LOC_UNKNOWN_P, set var to the constant.
15653 (emit_notes_in_bb): Likewise.
15654 (emit_note_insn_var_location): For onepart variables if
15655 cur_loc is a VOIDmode constant, use DECL_MODE.
15657 2010-03-18 Martin Jambor <mjambor@suse.cz>
15659 PR middle-end/42450
15660 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
15661 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
15662 all non-clones. Moved call redirection...
15663 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
15664 (cgraph_materialize_all_clones): Dispose of all
15665 combined_args_to_skip bitmaps.
15666 (verify_cgraph_node): Do not check for edges pointing to wrong
15667 nodes in inline clones.
15668 * tree-inline.c (copy_bb): Call
15669 cgraph_redirect_edge_call_stmt_to_callee.
15670 * ipa.c (cgraph_remove_unreachable_nodes): Call
15671 cgraph_node_remove_callees even when there are used clones.
15673 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15675 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
15677 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15680 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
15683 2010-03-18 Michael Matz <matz@suse.de>
15685 PR middle-end/43419
15686 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15687 into sqrt(x) if we need to preserve signed zeros.
15689 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
15690 Eric Botcazou <ebotcazou@adacore.com>
15692 PR rtl-optimization/43360
15693 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15694 note if we don't know its invariant status.
15696 2010-03-18 Michael Matz <matz@suse.de>
15698 PR tree-optimization/43402
15699 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15700 PHI chains of ssa names registered for update.
15702 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
15705 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15706 non-offsettable and pre_modify update addressing.
15707 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15708 and "2" alternatives "#".
15709 (*movdd_softfloat32): Make all alternatives "#";
15710 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15711 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15712 (*movdf_softfloat32): Make all alternatives "#";
15713 (movdi): Use the new DIFD mode iterator to create a common splitter
15714 for movdi, movdf and movdd patterns.
15716 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
15718 * common.opt (dumpdir): Remove redundant tab.
15720 2010-03-17 Martin Jambor <mjambor@suse.cz>
15722 PR tree-optimization/43347
15723 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15724 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15726 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
15728 PR rtl-optimization/42216
15729 * regrename.c (create_new_chain): New function, broken out from...
15730 (scan_rtx_reg): ... here. Call it. Handle the case where we are
15731 appending a use to an empty chain.
15732 (build_def_use): Remove previous changes that convert OP_INOUT to
15733 OP_OUT operands; instead detect the case where an OP_INOUT operand
15734 uses a previously untracked register and create an empty chain for it.
15736 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15738 * doc/extend.texi (Function Attributes): Rewrite unfinished
15739 sentence in ms_abi documentation.
15741 2010-03-17 Alan Modra <amodra@gmail.com>
15743 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15744 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15745 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15746 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15748 2010-03-16 Richard Henderson <rth@redhat.com>
15750 PR middle-end/43365
15751 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15752 (lower_try_finally): Save and restore eh_seq around the expansion
15753 of the try-finally.
15755 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15757 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15758 statements before splitting block.
15760 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15762 * doc/sourcebuild.texi (Testsuites): Fix markup.
15763 Use pathnames relative to gcc/testsuite.
15764 (Test Directives): Move description of how timeout is determined.
15765 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15766 (C Tests): Correct gcc.misc-tests directory.
15767 Framework tests now live in gcc.test-framework.
15769 2010-03-16 Richard Guenther <rguenther@suse.de>
15771 PR middle-end/43379
15772 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15773 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15775 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15776 Alexandre Oliva <aoliva@redhat.com>
15778 PR tree-optimization/42917
15779 * lambda-code.c (remove_iv): Skip debug statements.
15780 (lambda_loopnest_to_gcc_loopnest): Likewise.
15781 (not_interesting_stmt): Debug statements are not interesting.
15783 2010-03-16 Jakub Jelinek <jakub@redhat.com>
15787 * cselib.c (cselib_preserve_constants,
15788 cfa_base_preserved_val): New static variables.
15789 (preserve_only_constants): New function.
15790 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15791 clear its REG_VALUES. If cselib_preserve_constants, don't
15792 empty the whole hash table, but preserve there VALUEs with constants,
15793 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15794 (cselib_preserve_cfa_base_value): New function.
15795 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15796 (cselib_init): Change argument to int bitfield. Set
15797 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15799 (cselib_finish): Clear cselib_preserve_constants and
15800 cfa_base_preserved_val.
15801 * cselib.h (enum cselib_record_what): New enum.
15802 (cselib_init): Change argument to int.
15803 (cselib_preserve_cfa_base_value): New prototype.
15804 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15805 * dse.c (dse_step1): Likewise.
15806 * cfgcleanup.c (thread_jump): Likewise.
15807 * sched-deps.c (sched_analyze): Likewise.
15808 * gcse.c (local_cprop_pass): Likewise.
15809 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15810 If FN is non-NULL, call the callback always and whenever it returns
15811 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
15812 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15813 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15814 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15815 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15816 * var-tracking.c: Include recog.h.
15817 (bb_stack_adjust_offset): Remove.
15818 (vt_stack_adjustments): Don't call it, instead just gather the
15819 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15820 (adjust_stack_reference): Remove.
15821 (compute_cfa_pointer): New function.
15822 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15823 (struct adjust_mem_data): New type.
15824 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15826 (get_address_mode): New function.
15827 (replace_expr_with_values): Use it.
15828 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15829 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
15830 (adjust_sets): Remove.
15831 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15832 Use get_address_mode.
15833 (get_adjusted_src): Remove.
15834 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
15835 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
15836 (add_with_sets): Don't call adjust_sets.
15837 (fp_setter, vt_init_cfa_base): New functions.
15838 (vt_initialize): Change return type to bool. Move most of pool etc.
15839 initialization to the beginning of the function from end. Pass
15840 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15841 If !frame_pointer_needed, call vt_stack_adjustment before mos
15842 vector is filled, call vt_init_cfa_base if argp/framep has been
15843 eliminated to sp. If frame_pointer_needed and argp/framep has
15844 been eliminated to hard frame pointer, set
15845 hard_frame_pointer_adjustment and call vt_init_cfa_base after
15846 encountering fp setter in the prologue. For MO_ADJUST, call
15847 log_op_type before pusing the op into mos vector, not afterwards.
15848 Call adjust_insn before cselib_process_insn/add_with_sets,
15849 call cancel_changes (0) afterwards.
15850 (variable_tracking_main_1): Adjust for vt_initialize calling
15851 vt_stack_adjustments and returning whether it succeeded or not.
15853 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
15855 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15858 2010-03-15 Jakub Jelinek <jakub@redhat.com>
15860 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15862 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15863 drap_reg has not been set.
15865 2010-03-15 Michael Matz <matz@suse.de>
15867 PR middle-end/43300
15868 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15869 use it to expand block copies.
15870 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15871 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15872 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15874 2010-03-15 Richard Guenther <rguenther@suse.de>
15876 PR tree-optimization/43367
15877 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15880 2010-03-15 Richard Guenther <rguenther@suse.de>
15882 PR tree-optimization/43317
15883 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15885 2010-03-15 Martin Jambor <mjambor@suse.cz>
15887 PR tree-optimization/43141
15888 * tree-sra.c (create_abstract_origin): New function.
15889 (modify_function): Call create_abstract_origin.
15891 2010-03-15 Chris Demetriou <cgd@google.com>
15893 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15896 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15898 PR middle-end/43354
15899 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15900 call insert_out_of_ssa_copy for default definitions.
15902 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15904 * graphite-clast-to-gimple.c (my_long_long): Defined.
15905 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15906 * graphite-sese-to-poly.c (my_long_long): Defined.
15907 (scop_ivs_can_be_represented): Use it.
15909 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15911 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15912 graphite-max-bbs-per-function, and loop-block-tile-size.
15913 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15915 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15917 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15919 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15920 forward declaration.
15921 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15922 (add_upper_bounds_from_estimated_nit): New.
15923 (build_loop_iteration_domains): Use it.
15925 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15927 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15929 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15931 PR middle-end/43306
15932 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15933 should be an INTEGER_CST. Also handle CASE_CONVERT.
15935 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15937 * graphite.c (graphite_initialize): To bound the number of bbs per
15938 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15939 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15940 * doc/invoke.texi: Document it.
15942 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15944 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15945 * graphite-sese-to-poly.h (build_poly_scop): Same.
15947 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15949 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15950 the number of parameters in the scop. Use as an upper bound
15951 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15952 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15953 * doc/invoke.texi: Document it.
15955 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
15957 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15958 * doc/c-tree.texi: Remove.
15959 * doc/generic.texi: Merge c-tree.texi here.
15960 * doc/gccint.texi (Trees): Remove menu entry.
15961 (c-tree.texi): Remove @include.
15962 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15963 * doc/languages.texi (Reading RTL): Ditto.
15965 2010-03-12 Steve Ellcey <sje@cup.hp.com>
15968 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15970 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15972 PR middle-end/42431
15973 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15974 code added to work around reload clobbering CONST insns.
15976 2010-03-12 Jakub Jelinek <jakub@redhat.com>
15978 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15979 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15980 (cselib_preserve_only_values): Remove retain argument, don't
15981 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15982 * cselib.h (cselib_preserve_only_values): Remove retain argument.
15983 * var-tracking.c (micro_operation): Move insn field before union.
15984 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15985 (struct variable_tracking_info_def): Remove n_mos field, change
15986 mos into a vector of micro_operations.
15987 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15988 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15989 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15990 changing into a vector.
15991 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
15992 come before all other uops generated by add_stores.
15993 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15995 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
15996 a vector. Run just one pass over the bbs instead of separate counting
15997 and computation phase.
15998 (vt_finalize): Free VTI (bb)->mos vector instead of array.
16001 * tree-inline.c (remap_decls): Put old_var rather than origin_var
16002 into *nonlocalized_list vector.
16003 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16004 even if origin is non-NULL.
16005 (gen_variable_die): Likewise.
16006 (process_scope_var): Don't change origin.
16007 (gen_decl_die): Likewise.
16008 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16009 before adding new edges instead of after it, fix moving over
16012 2010-03-11 David S. Miller <davem@davemloft.net>
16014 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16016 * configure: Rebuild.
16018 2010-03-11 Martin Jambor <mjambor@suse.cz>
16020 PR tree-optimization/43257
16021 * tree.c (assign_assembler_name_if_neeeded): New function.
16022 (free_lang_data_in_cgraph): Assembler name assignment moved to the
16023 above new function.
16024 * tree.h (assign_assembler_name_if_neeeded): Declare.
16025 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16026 the function if needed.
16028 2010-03-11 Chris Demetriou <cgd@google.com>
16030 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16031 include/stdint-gcc.h, and include/stdint.h world-readable.
16033 2010-03-11 Richard Guenther <rguenther@suse.de>
16035 PR tree-optimization/43255
16036 * tree-vrp.c (process_assert_insertions_for): Do not insert
16037 asserts for trivial conditions.
16039 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16041 PR tree-optimization/43280
16042 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16043 generation. Move calculation of size out of the if branch.
16044 (find_bswap): Modify compare number generation.
16046 2010-03-11 Richard Guenther <rguenther@suse.de>
16049 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16050 (input_gimple_stmt): Fixup handled component types during
16051 operand read. Also fix up decls in ADDR_EXPRs.
16053 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
16055 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16056 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16058 2010-03-10 Jan Hubicka <jh@suse.cz>
16061 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16062 * varasm.c (get_variable_section): Don't do that here...
16063 (make_decl_rtl): ... and here.
16064 (do_assemble_alias): Produce decl RTL.
16065 (assemble_alias): Likewise.
16067 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16070 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16071 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16073 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16074 (based_loc_descr): Only express drap or vdrap regno based expressions
16075 using DW_OP_fbreg when not optimizing.
16076 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16077 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16078 REG_CFA_SET_VDRAP note.
16080 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
16082 PR tree-optimization/43236
16083 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16084 error in calculation of base address in reverse iteration case.
16085 (generate_builtin): Take number of latch executions if the statement
16088 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
16090 PR middle-end/42859
16091 * tree-eh.c: Include pointer-set.h.
16092 (lower_eh_dispatch): Filter out duplicate case labels and
16093 remove the unneeded edge when the label is unused. Return
16094 true when some edges are removed.
16095 (execute_lower_eh_dispatch): When any lowering resulted in
16096 removing an edge, also delete unreachable blocks.
16098 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16101 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16102 UNSPEC_MACHOPIC_OFFSET.
16104 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
16107 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16108 (m68k_delegitimize_address): New function.
16110 2010-03-09 Jakub Jelinek <jakub@redhat.com>
16113 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16116 * var-tracking.c (adjust_sets): New function.
16117 (count_with_sets, add_with_sets): Use it.
16118 (get_adjusted_src): New inline function.
16119 (add_stores): Use it.
16122 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16123 call cselib_dummy_expand_value_rtx_cb instead of
16124 cselib_expand_value_rtx_cb.
16127 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16128 * config/i386/i386.c: Include debug.h and dwarf2out.h.
16129 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16130 and .cfi_endproc around the pic thunks.
16131 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16132 all queued unwind info register saves are saved before the call.
16133 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16134 considered as sp-=4 for unwind info and the pop as sp+=4 which
16135 also clobbers dest, but doesn't actually restore it.
16138 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16139 RTX_FRAME_RELATED_P.
16141 2010-03-09 Jie Zhang <jie@codesourcery.com>
16143 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16144 whitespaces in output template.
16146 2010-03-09 Jie Zhang <jie@codesourcery.com>
16148 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16149 out array boundary.
16151 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16153 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16154 builtins.exp in a separate job.
16156 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16158 * graphite-sese-to-poly.c (add_param_constraints): Use
16159 lower_bound_in_type and upper_bound_in_type.
16161 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16163 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16164 instead of unsigned_type_node.
16166 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16167 Reza Yazdani <reza.yazdani@amd.com>
16169 PR middle-end/43065
16170 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16171 on pointer type parameters.
16173 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16175 PR middle-end/42644
16176 PR middle-end/42130
16177 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16178 handle conversions from pointer to integers.
16179 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16180 induction variable, to be able to work with code generated by CLooG.
16181 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16182 (build_poly_scop): Bail out if we cannot codegen a loop.
16184 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16186 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16187 code generation with gloog_error.
16189 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16191 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16192 Call fold_convert on all the returned values.
16193 (expand_scalar_variables_expr): Pass to
16194 expand_scalar_variables_ssa_name the type of the resulting expression.
16196 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16198 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16199 ppl_min_for_le_pointset.
16200 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16201 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16203 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16205 * graphite-dependences.c (map_into_dep_poly): Removed.
16206 (dependence_polyhedron_1): Use combine_context_id_scat.
16208 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16210 * graphite-poly.h (struct poly_scattering): Add layout documentation.
16211 (struct poly_bb): Same.
16212 (combine_context_id_scat): New.
16214 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16216 PR middle-end/42326
16217 * sese.c (name_defined_in_loop_p): Return false for default
16220 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16222 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
16223 and clean up the logic.
16225 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16227 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
16230 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16232 * var-tracking.c (remove_cselib_value_chains): Define only for
16234 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
16235 delete_slot_part, emit_notes_for_differences_1): Don't call
16236 remove_cselib_value_chains here.
16237 (set_slot_part, emit_notes_for_differences_2): Don't call
16238 add_cselib_value_chains here.
16239 (preserved_values): New vector.
16240 (preserve_value): New function.
16241 (add_uses, add_stores, vt_add_function_parameters): Use it
16242 instead of cselib_preserve_value.
16243 (changed_values_stack): New vector.
16244 (check_changed_vars_0): New function.
16245 (check_changed_vars_1, check_changed_vars_2): Use it.
16246 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
16247 changed_values_stack VALUEs.
16248 (vt_emit_notes): For all preserved_values call
16249 add_cselib_value_chains. If ENABLE_CHECKING call
16250 remove_cselib_value_chains before verifying value_chains is empty.
16251 Initialize and free changed_values_stack.
16252 (vt_initialize): Initialize preserved_values.
16253 (vt_finalize): Free preserved_values.
16255 2010-03-08 Richard Guenther <rguenther@suse.de>
16257 PR tree-optimization/43269
16258 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
16261 2010-03-08 Martin Jambor <mjambor@suse.cz>
16263 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
16264 (ipa_is_param_called): Removed.
16265 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
16266 (ipa_print_node_params): Do not print the called flag.
16267 (ipa_write_node_info): Do not stream the called flag.
16268 (ipa_read_node_info): Likewise.
16270 2010-03-07 Jakub Jelinek <jakub@redhat.com>
16273 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
16274 * cselib.c (struct expand_value_data): Add dummy field.
16275 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
16277 (cselib_dummy_expand_value_rtx_cb): New function.
16278 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
16280 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
16281 * var-tracking.c: Include pointer-set.h.
16282 (variable): Change n_var_parts to char from int. Add
16283 cur_loc_changed and in_changed_variables fields.
16284 (variable_canonicalize): Remove.
16285 (shared_var_p): New inline function.
16286 (unshare_variable): Maintain cur_loc_changed and
16287 in_changed_variables fields. If var was in changed_variables,
16288 replace it there with new_var. Just copy cur_loc instead of
16289 resetting it to something else.
16290 (variable_union): Don't recompute cur_loc. Use shared_var_p.
16291 (dataflow_set_union): Don't call variable_canonicalize.
16292 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16293 of their DEBUG_EXPR_TREE_DECLs.
16294 (canonicalize_loc_order_check): Verify that cur_loc is NULL
16295 and in_changed_variables and cur_loc_changed is false.
16296 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16297 and cur_loc_changed. Don't update cur_loc here.
16298 (variable_merge_over_src): Don't call variable_canonicalize.
16299 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
16300 removing loc that is equal to cur_loc, clear cur_loc,
16301 set cur_loc_changed and ensure variable_was_changed is called.
16302 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
16303 compare pointers in cur_loc check, if it is equal to loc,
16304 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
16305 (variable_different_p): Remove compare_current_location argument,
16306 don't compare cur_loc.
16307 (dataflow_set_different_1): Adjust variable_different_p caller.
16308 (variable_was_changed): If dv had some var in changed_variables
16309 already, reset in_changed_variables flag for it and propagate
16310 cur_loc_changed over to the new variable. On empty var
16311 always set cur_loc_changed. Set in_changed_variables on whatever
16312 var is added to changed_variables.
16313 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16314 Use shared_var_p. When removing loc that is equal to cur_loc,
16315 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
16316 end, don't set it to something else, just call variable_was_changed.
16317 (delete_slot_part): Use shared_var_p. When cur_loc equals to
16318 loc being removed, clear cur_loc and set cur_loc_changed.
16319 Set cur_loc_changed if all locations have been removed.
16320 (struct expand_loc_callback_data): New type.
16321 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16322 allocated. Always create SUBREGs if simplify_subreg failed.
16323 Prefer to use cur_loc, when that fails and still in
16324 changed_variables (and seen first time) recompute it. Set
16325 cur_loc_changed of variables which had to change cur_loc and
16326 compute elcd->cur_loc_changed if any of the subexpressions used
16327 had to change cur_loc.
16328 (vt_expand_loc): Adjust to pass arguments in
16329 expand_loc_callback_data structure.
16330 (vt_expand_loc_dummy): New function.
16331 (emitted_notes): New variable.
16332 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16333 that weren't used for any other decl in current
16334 emit_notes_for_changes call call vt_expand_loc_dummy to update
16335 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
16336 first loc_chain location if NULL before. Always use just
16337 cur_loc instead of first loc_chain location. When cur_loc_changed
16338 is false, when not --enable-checking=rtl just don't emit any note.
16339 When rtl checking, compute the note and assert it is the same
16340 as previous note. Clear cur_loc_changed and in_changed_variables
16341 at the end before removing from changed_variables.
16342 (check_changed_vars_3): New function.
16343 (emit_notes_for_changes): Traverse changed_vars to call
16344 check_changed_vars_3 on each changed var.
16345 (emit_notes_for_differences_1): Clear cur_loc_changed and
16346 in_changed_variables. Recompute cur_loc of new_var.
16347 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16348 (vt_emit_notes): Initialize and destroy emitted_notes.
16350 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
16352 PR rtl-optimization/42220
16353 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
16354 Use verify_reg_tracked to determine if we should use OP_OUT rather
16356 (build_def_use): If we see an in-out operand for a register that we
16357 know nothing about, treat is an output if possible, fail the block if
16360 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16363 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
16366 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16369 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
16370 uses of relevant DEFs that are dead outside the loop too.
16372 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16374 * var-tracking.c (dataflow_set_merge): Swap src and src2.
16376 2010-01-13 Jakub Jelinek <jakub@redhat.com>
16378 * var-tracking.c (values_to_unmark): New variable.
16379 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16380 values_to_unmark vector. Moved body to...
16381 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
16382 instead queue it into values_to_unmark vector.
16383 (vt_find_locations): Free values_to_unmark vector.
16385 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
16387 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
16388 (site.exp): Export them when plugins are enabled.
16390 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
16392 PR middle-end/42326
16393 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
16394 that contain scevs.
16395 (chrec_fold_multiply): Same.
16397 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
16400 * c-decl.c (build_compound_literal): Return early if init is
16401 an error_mark_node.
16403 2010-03-04 Martin Jambor <mjambor@suse.cz>
16405 PR tree-optimization/43164
16406 PR tree-optimization/43191
16407 * tree-sra.c (type_consists_of_records_p): Reject records with
16408 zero-size bit-fields at the end.
16410 2010-03-04 Mike Stump <mikestump@comcast.net>
16412 * Makefile.in (TAGS): Remove *.y.
16414 2010-03-04 Richard Guenther <rguenther@suse.de>
16416 PR tree-optimization/40761
16417 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
16419 (my_rev_post_order_compute): New function.
16420 (init_pre): Call it.
16422 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
16424 PR middle-end/43209
16425 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
16426 decrease the cost of an IV candidate when the cost is infinite.
16428 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16430 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
16431 Use '3DNow!' for the extension of that name, ensure normal space
16433 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
16435 2010-03-03 Jeff Law <law@redhat.com>
16437 * PR middle-end/32693
16438 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
16439 than gen_rtx_SUBREG.
16440 (extract_bit_field_1): Likewise.
16442 2010-03-03 Janis Johnson <janis187@us.ibm.com>
16444 * doc/sourcebuild.texi (Test directives): Document that arguments
16445 include-opts and exclude-opts are now optional for dg-skip-if,
16446 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
16448 2010-03-03 Jason Merrill <jason@redhat.com>
16451 * cgraph.h (varpool_node): Add extra_name field.
16452 * varpool.c (varpool_extra_name_alias): New.
16453 (varpool_assemble_decl): Emit extra name aliases.
16454 (varpool_mark_needed_node): Look past an extra name alias.
16455 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
16456 * lto-streamer-in.c (lto_input_tree): Read it.
16457 * lto-streamer-out.c (output_unreferenced_globals): Write it.
16459 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
16461 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
16462 (sparc*-*-solaris2*): ...this.
16464 2010-03-03 Jakub Jelinek <jakub@redhat.com>
16467 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
16468 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
16469 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
16470 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
16473 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
16474 fallthrough to default handling, just with want_address 0 instead of 2.
16475 For single element lists, add_AT_loc directly, otherwise create an
16476 artificial variable DIE and stick location list to it.
16479 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
16480 (VAL_EXPR_HAS_REVERSE): Define.
16481 (reverse_op): New function.
16482 (add_stores): For reversible operations add an extra MO_VAL_USE.
16484 2010-03-02 Jason Merrill <jason@redhat.com>
16486 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
16488 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
16490 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
16491 (sparc64-*-linux*): Likewise.
16492 (sparc64-*-solaris2*): Include assembler files before linker ones.
16493 (sparc-*-solaris2*): Simplify and reorder to match previous case.
16494 * config/sparc/gas.h: Delete.
16495 * config/sparc/sol2-64.h: Add copyright notice.
16496 * config/sparc/sol2-gas-bi.h: Likewise.
16497 * config/sparc/sol2-gld.h: Likewise.
16498 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
16499 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
16500 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
16501 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
16502 (sparc_elf_asm_named_section): Rename into...
16503 (sparc_solaris_elf_asm_named_section): ...this. Always define.
16505 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
16507 * config/alpha/alpha.c (override_options): Fix -mtune error message.
16509 2010-03-02 Jeff Law <law@redhat.com>
16511 PR middle-end/42431
16512 * reload1.c (rtx_p, substitute_stack): Declare.
16513 (substitute): Record addresses of changed rtxs.
16514 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
16515 Restore the original rtx when complete.
16516 (reload): Free subsitute_stack when complete.
16518 2010-03-02 Janis Johnson <janis187@us.ibm.com>
16520 * doc/gccint.texi (menu): Add Testsuites as a chapter.
16521 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
16523 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
16524 LTO Testing, gcov Testing, profopt Testing, compat Testing,
16525 Torture Tests): Change from subsection to section.
16527 2010-03-02 Jakub Jelinek <jakub@redhat.com>
16528 Steven Bosscher <steven@gcc.gnu.org>
16530 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
16533 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
16535 PR middle-end/42640
16536 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
16537 the assignment from the new induction variable to the assignment
16538 of the value from the original loop PHI function.
16540 2010-03-01 Janis Johnson <janis187@us.ibm.com>
16541 Daniel Jacobowitz <dan@codesourcery.com>
16543 * doc/sourcebuild.texi (Test directives): Clarify options to
16546 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16548 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
16549 Disable cfi directives unless GCC and gas agree on using read-only
16550 .eh_frame sections for 64-bit.
16551 * configure: Regenerate.
16553 2010-03-01 Richard Guenther <rguenther@suse.de>
16555 PR tree-optimization/43220
16556 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
16557 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
16559 2010-03-01 Richard Guenther <rguenther@suse.de>
16560 Martin Jambor <mjambor@suse.cz>
16562 PR middle-end/41250
16563 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
16564 gimplified parameters.
16566 2010-03-01 Christian Bruel <christian.bruel@st.com>
16568 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
16570 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16572 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
16574 2010-03-01 Richard Guenther <rguenther@suse.de>
16576 PR middle-end/43213
16577 * expr.c (expand_assignment): Use the alias-oracle to tell
16578 if the rhs aliases the result decl.
16580 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16583 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16584 to sol_gt_pch_get_address.
16585 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16586 64-bit, SPARC and x86.
16587 (sol_gt_pch_get_address): New function.
16589 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
16591 * toplev.h (inform_n, error_n): Declare.
16592 * diagnostic.c (inform_n, error_n): New function.
16594 2010-03-01 Jakub Jelinek <jakub@redhat.com>
16596 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16597 has no rtl yet when processing local_decls, queue it and recheck
16598 if deferred stack allocation hasn't assigned it rtl.
16600 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
16602 * config/sh/sh.c (unspec_bbr_uid): New.
16603 (gen_block_redirect): Use it instead of INSN_UID.
16604 (gen_far_branch): Likewise.
16606 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
16608 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16609 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16611 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16613 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16614 (Warning Options): -Wno-conversion-null is valid for
16615 Objective-C++ as well.
16616 * doc/tm.texi (Named Address Spaces): Likewise.
16617 * doc/plugins.texi (Plugins): Replace TABs with spaces.
16618 * doc/tree-ssa.texi (Tree SSA): Likewise.
16620 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16623 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16624 by default. Don't set the default arch for
16625 i[34567]86-*-darwin*|x86_64-*-darwin*.
16627 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16630 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
16631 default. Set the default 32bit/64bit archs with $with_arch
16632 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
16634 2010-02-27 Richard Guenther <rguenther@suse.de>
16636 PR tree-optimization/43186
16637 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
16638 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
16639 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
16640 unroller iterations.
16642 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16644 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
16645 required and i[34567]86-*-* targets don't support 64bit ISA.
16647 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
16650 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16651 the same alias set.
16653 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16655 * config.gcc: Set the default arch at least to Prescott for
16656 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
16657 if SSE math is enabled.
16659 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16661 * diagnostic.c (diagnostic_initialize): Update.
16662 (diagnostic_report_diagnostic): Test inhibit_notes_p for
16664 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
16665 (diagnostic_inhibit_notes): New.
16666 * toplev.c (process_options): inhibit notes with -fcompare-debug.
16668 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16671 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
16672 * doc/standards.texi: Likewise.
16673 * doc/extend.texi: Likewise.
16674 * doc/trouble.texi: Likewise.
16675 * doc/cppopts.texi: Likewise.
16676 * doc/install.texi: Likewise.
16677 * c.opt (std=c90,std=gnu90): New options.
16678 * c-opts.c (c_common_handle_option): Handle them.
16680 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16683 * c-decl.c (undeclared_variable): Use an informative note.
16685 2010-02-26 Richard Guenther <rguenther@suse.de>
16687 PR tree-optimization/43186
16688 * gimple.h (gimple_fold): Remove.
16689 * gimple.c (gimple_fold): Remove. Inline into single user ...
16690 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16691 Try harder for conditions.
16693 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16696 * function.c (used_types_insert): Don't skip through named pointer
16697 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
16698 and it is different from the main variant's type.
16700 2010-02-26 Nick Clifton <nickc@redhat.com>
16702 * config/rx/rx.md (sminsi3): Remove bogus alternative.
16704 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16706 * config.gcc: Support --with-fpmath=sse for x86.
16708 * config/i386/ssemath.h: New.
16710 * doc/install.texi (--with-fpmath=sse): Documented.
16712 2010-02-26 Richard Guenther <rguenther@suse.de>
16714 PR tree-optimization/43188
16715 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16716 vector types of over-aligned element type.
16718 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
16721 * config/i386/i386.c (expand_vec_perm_blend): Use correct
16722 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
16724 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16726 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16728 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16730 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16731 * var-tracking.c: Include diagnostic.h.
16732 (debug_dv): New function.
16733 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16736 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16737 (add_value_chain, add_value_chains, remove_value_chain,
16738 remove_value_chains): Handle DEBUG_EXPRs.
16739 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16742 * regcprop.c (struct queued_debug_insn_change): New type.
16743 (struct value_data_entry): Add debug_insn_changes field.
16744 (struct value_data): Add n_debug_insn_changes field.
16745 (debug_insn_changes_pool): New variable.
16746 (free_debug_insn_changes, apply_debug_insn_changes,
16747 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16748 (kill_value_one_regno): Call free_debug_insn_changes if needed.
16749 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16751 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16753 (copyprop_hardreg_forward_1): Don't call apply_change_group for
16754 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
16755 changes, call cprop_find_used_regs via note_stores.
16756 (copyprop_hardreg_forward): When copying vd from predecessor
16757 which has any queued DEBUG_INSN changes, make sure the pointers are
16758 cleared. At the end call df_analyze and then if there are any
16759 DEBUG_INSN changes queued at the end of some basic block for still
16760 live registers, apply them.
16761 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16763 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
16765 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16768 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
16770 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16771 targets. Set the default with_cpu/with_arch from arch/cpu.
16772 Allow x86-64 and native for with_cpu/with_arch.
16774 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
16776 * ebitmap.c: Change calls to verify_popcount with calls to
16777 sbitmap_verify_popcount.
16778 (ebitmap_clear_bit): Fixed map->cacheindex test and
16779 map>cache update when bit clearing results in an empty
16782 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
16785 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16786 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16787 and support both V2DF and V2DI modes.
16788 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16789 support both V2DF and V2DI modes.
16790 (general): Delete trailing whitespace from a few patterns.
16792 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16793 V2DF/V2DI interleave high/low builtins.
16795 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16798 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16799 interleave high/low functions.
16801 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16803 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16804 #pragma extern_prefix.
16806 2010-02-25 Jakub Jelinek <jakub@redhat.com>
16809 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16810 BLKmode, assert op0 is a MEM and just adjust its mode.
16813 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16814 if bitpos isn't multiple of mode's bitsize.
16816 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16818 * c.opt (-ftemplate-depth=): New.
16819 (-ftemplate-depth-): Deprecate.
16820 * optc-gen.awk: Handle -ftemplate-depth=.
16821 * opth-gen.awk: Likewise.
16822 * c-opts.c (c_common_handle_option): Likewise.
16823 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16825 2010-02-24 Jason Merrill <jason@redhat.com>
16827 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16829 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16831 * cfg.c (alloc_aux_for_block): Remove inline.
16832 (alloc_aux_for_edge): Likewise.
16834 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16836 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16838 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16840 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16841 * config/i386/sol2-gas.h: New file.
16842 * config.gcc (i[34567]86-*-solaris2*): Use it.
16844 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16847 * c-typeck.c (ep_convert_and_check): New.
16848 (build_conditional_expr): Use it.
16849 (build_binary_op): Likewise.
16851 2010-02-24 Jakub Jelinek <jakub@redhat.com>
16853 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16856 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16857 bounds even for -O+.
16858 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16859 expr needs to have DECL_NAME set.
16861 2010-02-24 Nick Clifton <nickc@redhat.com>
16863 * config/mep/mep.c: Include gimple.h.
16864 (mep_function_uses_sp): Delete unused function.
16865 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16866 parameters. Use unsigned integers to count args. Return a
16867 NULL_RTX instead of an error_mark_node. Toidy up formatting.
16869 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16872 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16873 greater or equal to nelt instead of 2 * nelt.
16874 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16877 2010-02-23 Jason Merrill <jason@redhat.com>
16880 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16881 in cfun->local_decls even if they have register types.
16884 * stor-layout.c (place_field): Don't warn about unnecessary
16885 DECL_PACKED if the type is packed.
16887 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16890 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16891 GOTOFF relocs, even when the base reg isn't pic pointer.
16893 2010-02-23 Michael Matz <matz@suse.de>
16896 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16897 (expand_gimple_basic_block): Generate and use debug temps if there
16898 are debug uses left after the last real use of TERed ssa names.
16899 Unlink debug immediate uses when they are expanded.
16901 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
16904 * config/i386/i386.c (override_options): Reorganise to provide
16905 better error messages.
16907 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16909 PR middle-end/43083
16910 * graphite-scop-detection.c (create_single_exit_edge): Move
16911 the call to find_single_exit_edge to....
16912 (create_sese_edges): ...here. Don't handle multiple edges
16913 exiting the function.
16914 (build_graphite_scops): Don't handle multiple edges
16915 exiting the function.
16917 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16919 PR middle-end/43097
16920 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16921 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16923 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16925 PR middle-end/43026
16926 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16928 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
16931 * c-typeck.c (convert_arguments): Print declaration location.
16932 * c-common.c (validate_nargs): Rename as
16933 builtin_function_validate_nargs.
16934 (check_builtin_function_arguments): Update.
16936 2010-02-22 Richard Guenther <rguenther@suse.de>
16939 * tree-inline.c (declare_return_variable): Use the type of
16940 the call stmt lhs if available.
16942 2010-02-22 Duncan Sands <baldrick@free.fr>
16944 * passes.c (register_pass): Always consider all pass lists when
16945 ref_pass_instance_number is zero.
16947 2010-02-22 Richard Guenther <rguenther@suse.de>
16949 PR tree-optimization/42749
16950 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16951 parameter. Do arithmetic in the original type.
16952 (update_accumulator_with_ops): Likewise.
16953 (adjust_accumulator_values): Adjust.
16955 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16957 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16958 (QI to BLKmode splitter): New splitter.
16960 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
16962 * config/i386/i386.c (initial_ix86_tune_features): Turn on
16963 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16965 2010-02-22 Richard Guenther <rguenther@suse.de>
16967 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16969 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
16971 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16972 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16973 ($(T)crti.o, $(T)crtn.o): Remove rules.
16975 2010-02-21 Tobias Burnus <burnus@net-b.de>
16978 * doc/invoke.texi (-fassociative-math): Document that this
16979 option is automatically enabled for Fortran.
16981 2010-02-20 David S. Miller <davem@davemloft.net>
16983 * configure.ac: Test if linker and assembler properly support
16984 GOTDATA_OP relocations.
16985 * configure: Rebuild.
16986 * config.in: Likewise.
16987 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16988 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16989 (movsi_high_pic): Likewise.
16990 (movdi_lo_sum_pic): Likewise.
16991 (movdi_high_pic): Likewise.
16992 (movsi_pic_gotdata_op): New pattern.
16993 (movdi_pic_gotdata_op): Likewise.
16994 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16995 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16997 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
17000 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17001 attribute to ssemul.
17002 (xop_mulv2div2di3_high): Ditto.
17004 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17007 * c.opt (Wconversion-null): New option.
17008 * doc/invoke.texi (Wconversion-null): Document.
17010 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17012 * common.opt (Wlarger-than-): Add Undocumented.
17014 2010-02-19 Mike Stump <mikestump@comcast.net>
17016 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17018 2010-02-19 Jason Merrill <jason@redhat.com>
17021 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17022 * configure: Likewise.
17024 2010-02-20 Alan Modra <amodra@gmail.com>
17026 PR middle-end/42344
17027 * cgraph.h (cgraph_make_decl_local): Declare.
17028 * cgraph.c (cgraph_make_decl_local): New function.
17029 (cgraph_make_node_local): Use it.
17030 * cgraphunit.c (cgraph_function_versioning): Likewise.
17031 * ipa.c (function_and_variable_visibility): Likewise.
17033 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17036 * except.c (sjlj_emit_function_enter): Don't call
17037 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17039 * rtl.h (add_reg_br_prob_note): Remove prototype.
17041 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
17044 * c-common.c (conversion_warning): Remove widening conversions
17045 before checking the conversion of integers to reals.
17047 2010-02-19 Mike Stump <mikestump@comcast.net>
17049 PR middle-end/43125
17050 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17053 * cgraphunit.c (process_function_and_variable_attributes): Check
17054 DECL_PRESERVE_P instead of looking up attribute "used".
17055 * ipa-pure-const.c (check_decl): Likewise.
17056 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17057 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17058 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17059 instead of attribute "used".
17060 * config/sol2-c.c (solaris_pragma_init): Likewise.
17061 (solaris_pragma_fini): Likewise.
17063 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17065 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17066 Use XCNEW instead of xcalloc.
17067 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17068 XNEW instead of xmalloc.
17069 (get_fields): Use XNEWVEC instead of xmalloc.
17072 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17073 populate vars array.
17074 (create_new_general_access): For debug stmts just reset value.
17075 (get_stmt_accesses): For accesses within debug stmts just record them
17076 using add_access_to_acc_sites instead of preventing the peeling or
17077 counting them as accesses.
17079 PR middle-end/42233
17080 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17082 2010-02-19 Richard Guenther <rguenther@suse.de>
17084 PR tree-optimization/42916
17085 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17088 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
17090 * configure.ac: Replace all uses of changequote in macro arguments
17091 with proper quoting.
17093 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17095 PR middle-end/42233
17096 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17098 2010-02-19 Richard Guenther <rguenther@suse.de>
17100 PR tree-optimization/42944
17101 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17102 test for aliasing with errno.
17104 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17106 PR middle-end/42233
17107 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17108 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17109 * dojump.c: Include output.h.
17110 (inv): New inline function.
17111 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17112 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17113 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17114 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17115 argument, pass it down to other calls.
17116 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
17117 add REG_BR_PROB note to the conditional jump.
17118 * cfgexpand.c (add_reg_br_prob_note): Removed.
17119 (expand_gimple_cond): Don't call it, add the probability
17120 as last argument to jumpif_1/jumpifnot_1.
17121 * Makefile.in (dojump.o): Depend on output.h.
17122 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17124 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17125 * stmt.c (do_jump_if_equal): Likewise.
17126 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17127 * loop-unswitch.c (compare_and_jump_seq): Likewise.
17128 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17130 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17131 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17132 jumpifnot_1 callers.
17133 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17135 (store_expr): Adjust jumpifnot caller.
17136 (store_constructor): Adjust jumpif caller.
17138 PR middle-end/42233
17139 * gimplify.c (gimple_boolify): For __builtin_expect call
17140 gimple_boolify also on its first argument.
17142 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
17144 * configure.ac (gnu-unique-object): Wrap regexps using [] in
17146 (__stack_chk_fail): Ditto. Remove quadrigraphs.
17147 * configure: Regenerated.
17149 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17151 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17152 lang_hooks.types_compatible_p instead of comptypes.
17154 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17156 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17157 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17158 if __prefer_thumb__ is defined.
17160 2010-02-18 Martin Jambor <mjambor@suse.cz>
17162 PR tree-optimization/43066
17163 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17164 array with zero-sized element type.
17166 2010-02-18 Jakub Jelinek <jakub@redhat.com>
17168 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17169 rtx, allocate struct var_loc_node here and return it to the
17170 caller, and only if it is actually needed.
17171 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17172 move it earlier and return immediately if it returns NULL.
17174 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
17176 * config/sparc/gas.h: New file. Restore
17177 TARGET_ASM_NAMED_SECTION to its ELF default.
17178 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17179 check !HAVE_GNU_AS.
17180 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17181 Likewise. Add ATTRIBUTE_UNUSED to prototype.
17182 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17183 after sparc/sysv4.h.
17185 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
17187 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17189 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
17191 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17192 patterns from predicated pattern.
17194 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
17197 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17198 for insn mnemonic suffix.
17200 2010-02-17 Richard Guenther <rguenther@suse.de>
17202 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17205 2010-02-17 Jakub Jelinek <jakub@redhat.com>
17208 * caller-save.c (save_call_clobbered_regs): If BB ends with
17209 a DEBUG_INSN, move any notes in between last real insn and the last
17210 DEBUG_INSN after the last DEBUG_INSN.
17212 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
17214 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17215 Fix return type. Fix argument type. Explain meaning of return value.
17217 2010-02-16 Richard Guenther <rguenther@suse.de>
17219 PR tree-optimization/41043
17220 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
17221 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
17223 (vrp_visit_phi_node): ... but only for loop PHI nodes.
17225 2010-02-16 Ira Rosen <irar@il.ibm.com>
17227 PR tree-optimization/43074
17228 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
17229 * tree-vect-loop.c (vect_analyze_loop_operations): Add
17230 vectorizable cycles in hybrid SLP check.
17231 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
17233 2010-02-16 Richard Guenther <rguenther@suse.de>
17235 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
17236 (true_dependence): If memrefs_conflict_p computes must-alias
17237 trust it. Move TBAA check after offset-based disambiguation.
17238 (canon_true_dependence): Likewise.
17240 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
17242 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
17243 * doc/invoke.texi: Document it.
17244 * var-tracking.c: Include toplev.h and params.h.
17245 (vt_find_locations): Return bool indicating success. Compute
17246 hash sizes unconditionally. Check new parameter, report.
17247 (variable_tracking_main_1): Check vt_find_locations results and
17248 retry. Renamed from...
17249 (variable_tracking_main): ... this. New wrapper to preserve
17250 flag_var_tracking_assignments.
17251 * Makefile.in (var-tracking.o): Adjust dependencies.
17253 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
17254 Jakub Jelinek <jakub@redhat.com>
17257 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
17258 if weak_import attribute is present.
17259 * config/darwin.c (machopic_select_section): Likewise.
17261 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
17263 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
17264 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
17265 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
17266 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
17268 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
17271 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17272 Fix argument types.
17274 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
17275 Rewrite text to refer to the names.
17277 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
17279 * config/i386/i386-builtin-types.def
17280 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
17281 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17282 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17283 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17284 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17285 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17286 IX86_BUILTIN_VPERMIL2PS256.
17287 (MULTI_ARG_4_DF2_DI_I): Defined.
17288 (MULTI_ARG_4_DF2_DI_I1): Defined.
17289 (MULTI_ARG_4_SF2_SI_I): Defined.
17290 (MULTI_ARG_4_SF2_SI_I1): Defined.
17291 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17292 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17293 __builtin_ia32_vpermil2ps256.
17294 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17295 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17296 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
17297 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17298 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17299 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
17300 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17301 CODE_FOR_xop_vpermil2v8sf3.
17302 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17303 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17304 * config/i386/xopintrin.h (_mm_permute2_pd): New.
17305 (_mm256_permute2_pd): New.
17306 (_mm_permute2_ps): New.
17307 (_mm256_permute2_ps): New.
17309 2010-02-15 Nick Clifton <nickc@redhat.com>
17311 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17312 boolean parameters. Use emit_jump_insn when emitting a pop
17313 instruction containing a return insn.
17314 (push): Use 'true' rather than '1' as second parameter to F.
17315 (h8300_expand_prologue): Likewise.
17316 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17317 (h8300_expand_epilogue): Likewise.
17319 2010-02-15 Richard Guenther <rguenther@suse.de>
17321 PR middle-end/43068
17322 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17325 2010-02-15 Nick Clifton <nickc@redhat.com>
17327 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17330 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
17332 * intl.c (fake_ngettext): New function.
17333 * intl.h (fake_ngettext): Declare.
17334 (ngettext): Define macro.
17335 * collect2.c (notice_translated): New function.
17336 (main): Use notice_translated and ngettext.
17337 * collect2.h (notice_translated): Declare.
17339 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
17341 * reorg.c (delete_computation): Comment fixes.
17342 * caller-save.c (setup_save_areas): Idem.
17343 * sel-sched-dump.c (dump_lv_set): Idem.
17346 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17348 * config/s390/s390.c (s390_sched_init): New function.
17349 (TARGET_SCHED_INIT): Target hook defined.
17351 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
17352 Jack Howarth <howarth@bromo.med.uc.edu>
17353 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17356 Partial revert of unintended change in fix for PR41605.
17357 * config/darwin.h: Fix typo.
17358 * config/darwin9.h: Same.
17360 2010-02-11 Jakub Jelinek <jakub@redhat.com>
17362 * c-pch.c (pch_init): Clear v.
17364 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17366 PR middle-end/42930
17367 * graphite-scop-detection.c (graphite_can_represent_scev): Call
17368 graphite_can_represent_init for MULT_EXPR.
17370 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17372 PR middle-end/42914
17373 PR middle-end/42530
17374 * graphite-sese-to-poly.c (remove_phi): New.
17375 (translate_scalar_reduction_to_array): Call remove_phi.
17377 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17379 PR middle-end/42771
17380 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
17381 * graphite-clast-to-gimple.h (gloog): Update declaration.
17382 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
17383 * graphite-poly.h (struct poly_bb): Add missing comments.
17384 (struct scop): Add poly_scop_p field.
17385 (POLY_SCOP_P): New.
17386 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
17387 * graphite.c (graphite_transform_loops): Build the polyhedral
17388 representation for each scop before code generation.
17389 * sese.c (rename_variables_in_operand): Removed.
17390 (rename_variables_in_expr): Return the renamed expression.
17391 (rename_sese_parameters): New.
17392 * sese.h (rename_sese_parameters): Declared.
17394 2010-02-11 Richard Guenther <rguenther@suse.de>
17396 PR tree-optimization/42998
17397 * tree-ssa-pre.c (create_expression_by_pieces): Treat
17398 POINTER_PLUS_EXPR properly.
17400 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17401 Changpeng Fang <changpeng.fang@amd.com>
17403 PR middle-end/40886
17404 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
17405 the cost of an IV candidate when the IV is used in a test against zero.
17407 * gcc.dg/tree-ssa/ivopts-3.c: New.
17409 2010-02-11 Richard Guenther <rguenther@suse.de>
17412 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
17413 pointer-vs-decl case by swapping refs. Handle some cases
17414 of pointer-vs-decl disambiguations more conservatively.
17415 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
17416 to false after expanding.
17418 2010-02-11 Richard Guenther <rguenther@suse.de>
17421 * gcc.c (process_command): Handle LTO file@offset case more
17424 2010-02-11 Jakub Jelinek <jakub@redhat.com>
17426 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
17427 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
17429 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
17431 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
17432 if MEM's mode size isn't DWARF2_ADDR_SIZE.
17433 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
17434 Optimize eq/ne comparisons when both arguments are known to be
17436 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
17437 Don't mask operands unnecessarily if they are known to be already
17440 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
17442 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
17445 2010-02-10 Richard Guenther <rguenther@suse.de>
17447 PR tree-optimization/43017
17448 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
17449 for wrapping signed arithmetic.
17451 2010-02-10 Jakub Jelinek <jakub@redhat.com>
17454 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
17455 if no debug info should be emitted for it.
17457 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
17459 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
17460 note when flag_exceptions is set.
17462 2010-02-10 Duncan Sands <baldrick@free.fr>
17464 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
17466 2010-02-10 Richard Guenther <rguenther@suse.de>
17469 * tree.c (get_unwidened): Handle constants.
17470 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
17472 2010-02-10 Martin Jambor <mjambor@suse.cz>
17475 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
17476 check for variable argument counts independently.
17478 2010-02-10 Christian Bruel <christian.bruel@st.com>
17481 * config/sh/sh.c (find_barrier): Increase length for non delayed
17482 conditional branches.
17484 2010-02-10 Christian Bruel <christian.bruel@st.com>
17486 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
17488 2010-02-10 Jakub Jelinek <jakub@redhat.com>
17490 * builtins.c (set_builtin_user_assembler_name): Also handle
17491 ffs if int is smaller than word.
17493 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
17495 PR middle-end/42973
17496 * ira-conflicts.c (get_dup): Remove.
17497 (process_reg_shuffles): Add new parameter. Use it as an
17498 additional guard for copy generation.
17499 (add_insn_allocno_copies): Rewrite.
17501 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
17503 * common.opt (fsched2-use-traces): Preserved for backward
17505 * doc/invoke.texi: Remove the documentation about option
17506 -fsched2-use-traces.
17507 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
17508 flag_sched2_use_traces.
17509 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
17510 the backward compatibility flag section.
17512 2010-02-09 Richard Guenther <rguenther@suse.de>
17514 PR tree-optimization/43008
17515 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
17516 make HEAP variables initialized from global memory if they
17517 are not known builtin functions.
17518 (find_func_aliases): Adjust.
17520 2010-02-09 Richard Guenther <rguenther@suse.de>
17522 PR tree-optimization/43000
17523 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
17524 arithmetic manually.
17526 2010-02-08 Jakub Jelinek <jakub@redhat.com>
17528 PR tree-optimization/42931
17529 * tree-loop-linear.c (try_interchange_loops): Don't call
17530 double_int_mul if estimated_loop_iterations failed.
17532 2010-02-08 Martin Jambor <mjambor@suse.cz>
17534 PR middle-end/42898
17535 * tree-sra.c (build_accesses_from_assign): Do not mark in
17536 should_scalarize_away_bitmap if stmt has volatile ops.
17537 (sra_modify_assign): Do not process assigns piecemeal if if stmt
17540 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
17542 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
17544 2010-02-07 Adam Nemet <adambnmet@gmail.com>
17546 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
17547 before the pattern.
17549 2010-02-07 Andrew Pinski <pinskia@gmail.com>
17551 PR middle-end/42946
17552 * df-core.c (df_finish_pass): Change type of saved_flags to int.
17554 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
17556 PR middle-end/42988
17557 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
17558 to unknown_dependence.
17559 (graphite_legal_transform_dr): Handle the unknown_dependence.
17560 (graphite_carried_dependence_level_k): Same.
17562 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
17564 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
17566 2010-02-07 Richard Guenther <rguenther@suse.de>
17568 PR middle-end/42991
17569 * expr.c (get_inner_reference): Always initialize *pbitsize.
17571 2010-02-07 Richard Guenther <rguenther@suse.de>
17573 PR middle-end/42956
17574 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
17575 new ARRAY_REFs on variable size element or minimal index arrays.
17577 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
17578 gimple_fold_indirect_ref.
17580 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
17583 * arm.c (arm_override_options): Just return if the user has specified
17584 an invalid fpu name.
17586 2010-02-03 Jason Merrill <jason@redhat.com>
17589 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17590 i386_pe_maybe_record_exported_symbol.
17592 2010-02-05 Steve Ellcey <sje@cup.hp.com>
17595 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17596 (pa_delegitimize_address): New function.
17598 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
17600 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17601 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17603 2010-02-05 Richard Guenther <rguenther@suse.de>
17606 * lto-streamer-in.c (get_resolution): Deal with references
17607 to undefined functions.
17609 2010-02-05 Richard Guenther <rguenther@suse.de>
17611 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17612 (fold_const_aggregate_ref): Likewise.
17613 (ccp_fold_stmt): Substitute loads.
17614 (maybe_fold_reference): Verify types before substituting.
17616 (fold_gimple_assign): Unshare properly.
17617 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17619 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
17621 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17622 for rs6000_gen_cell_microcode.
17624 2010-02-04 Richard Guenther <rguenther@suse.de>
17626 PR rtl-optimization/42952
17627 * dse.c (const_or_frame_p): Remove MEM handling.
17629 2010-02-04 Nick Clifton <nickc@redhat.com>
17631 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17632 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17633 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
17634 (mn10300_asm_output_mi_thunk): New function.
17635 (mn10300_can_output_mu_thunk): New function.
17636 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
17637 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
17638 (FUNCTION_ARG): Delete incorrect comment.
17640 2010-02-03 Jason Merrill <jason@redhat.com>
17643 * fold-const.c (operand_equal_p): Handle erroneous types.
17645 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17647 * config/h8300/h8300.md (can_delay): Fix attibute condition.
17649 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
17651 PR rtl-optimization/42941
17652 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
17655 2010-02-03 Jason Merrill <jason@redhat.com>
17658 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
17660 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
17663 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
17664 (cselib_reset_table): Renamed from...
17665 (cselib_reset_table_with_next_value): ... this.
17666 (cselib_get_next_uid): Renamed from...
17667 (cselib_get_next_unknown_value): ... this.
17668 * cselib.c (next_uid): Renamed from...
17669 (next_unknown_value): ... this.
17670 (cselib_clear_table): Adjust.
17671 (cselib_reset_table): Adjust. Renamed from...
17672 (cselib_reset_table_with_next_value): ... this.
17673 (cselib_get_next_uid): Adjust. Renamed from...
17674 (cselib_get_next_unknown_value): ... this.
17675 (get_value_hash): Use hash.
17676 (cselib_hash_rtx): Likewise.
17677 (new_cselib_val): Adjust. Set and dump uid.
17678 (cselib_lookup_mem): Pass next_uid as hash.
17679 (cselib_subst_to_values): Likewise.
17680 (cselib_log_lookup): Dump uid.
17681 (cselib_lookup): Pass next_uid as hash. Adjust.
17682 (cselib_process_insn): Adjust.
17683 (cselib_init): Initialize next_uid.
17684 (cselib_finish): Adjust.
17685 (dump_cselib_table): Likewise.
17686 * dse.c (canon_address): Dump value uid.
17687 * print-rtl.c (print_rtx): Print value uid.
17688 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17690 (dv_uid): New function, sort of renamed from...
17691 (dv_htab_hash): ... this, reimplemented in terms of it and...
17692 (dv_uid2hash): ... this. New.
17693 (variable_htab_eq): Drop excess assertions.
17694 (tie_break_pointers): Removed.
17695 (canon_value_cmp): Compare uids.
17696 (variable_post_merge_New_vals): Print uids.
17697 (vt_add_function_parameters): Adjust.
17698 (vt_initialize): Reset table. Adjust.
17700 2010-02-03 Richard Guenther <rguenther@suse.de>
17702 PR tree-optimization/42944
17703 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17704 (call_may_clobber_ref_p_1): Likewise. Properly handle
17705 malloc and calloc clobbering errno.
17707 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
17709 * doc/invoke.texi: Fix name of sched1 dump.
17711 * opts.c (decode_options): Set flag_tree_switch_conversion
17712 only conditionally on optimize >= 2.
17714 * gcse.c: Assorted comment fixes in pass description.
17716 2010-02-03 Anthony Green <green@moxielogic.com>
17718 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17719 nop padding in order to maintain alignment of storage location of
17720 target function address.
17721 (moxie_trampoline_init): Store target function address at newly
17723 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17725 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17727 2010-02-03 Richard Guenther <rguenther@suse.de>
17729 PR middle-end/42927
17730 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17732 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17734 * config.gcc: Reenable check for obsolete targets.
17735 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17736 mips-sgi-irix6.[0-4]*.
17738 2010-02-02 Nick Clifton <nickc@redhat.com>
17740 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17741 constant size of 4 as being the same as 0.
17742 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17743 can take values in the range 0..4.
17745 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
17748 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17749 as _darwin10_Unwind_FindEnclosingFunction().
17750 * libgcc-libsystem.ver: New.
17752 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
17755 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17756 implicitly set registers.
17758 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
17760 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17761 (arm_override_options): Allow automatic selection of the thread
17762 pointer register if thumb2.
17763 (legitimize_pic_address): Improve code sequences for Thumb2.
17764 (arm_call_tls_get_addr): Likewise.
17765 (legitimize_tls_address): Likewise.
17766 * arm.md (pic_load_addr_arm): Delete. Replace with ...
17767 (pic_load_addr_32bit): ... this. New named pattern.
17768 * thumb2.md (pic_load_addr_thumb2): Delete.
17769 (pic_load_dot_plus_four): Delete.
17770 (tls_load_dot_plus_four): New named pattern.
17772 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17775 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17776 Document fix for TLS bug.
17778 2010-01-31 Richard Guenther <rguenther@suse.de>
17780 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17781 conservatively correct.
17783 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17787 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17789 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17791 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17793 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17795 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
17797 * config.gcc: Adjust order of makefile fragments for mingw targets.
17799 2010-01-31 Richard Guenther <rguenther@suse.de>
17801 PR middle-end/42898
17802 * gimplify.c (gimplify_init_constructor): For volatile LHS
17803 initialize a temporary.
17805 2010-01-31 Matthias Klose <doko@ubuntu.com>
17807 * configure.ac: Fix __stack_chk_fail check for cross builds configured
17809 * configure: Regenerate.
17811 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
17813 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17814 the same alias set and their sizes different constantness.
17815 (aliasing_component_refs_p): Revert 2009-10-24 change.
17817 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17819 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17822 2010-01-29 Richard Guenther <rguenther@suse.de>
17824 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17825 Assert we successfully updated the call.
17827 2010-01-29 Jakub Jelinek <jakub@redhat.com>
17829 PR rtl-optimization/42889
17830 * df.h (df_set_bb_dirty_nonlr): New prototype.
17831 * df-core.c (df_set_bb_dirty_nonlr): New function.
17832 * df-scan.c (df_insn_rescan): Call it instead of
17833 df_set_bb_dirty for DEBUG_INSNs.
17835 2010-01-29 Richard Guenther <rguenther@suse.de>
17837 PR middle-end/37448
17838 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17839 quadratic behavior in most cases.
17841 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
17844 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17845 in the call to gen_x86_movsicc_0_m1.
17847 2010-01-28 Richard Guenther <rguenther@suse.de>
17849 PR tree-optimization/42871
17850 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17852 2010-01-28 Richard Guenther <rguenther@suse.de>
17854 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17855 into call arguments.
17857 2010-01-28 Richard Guenther <rguenther@suse.de>
17859 PR middle-end/42883
17860 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17861 the forwarder if the destination is an EH landing pad.
17863 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
17865 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17866 block list passed to gimple_duplicate_sese_tail.
17867 (parallelize_loops): Avoid parallelization when the function
17868 has_nonlocal_label.
17869 Avoid parallelization when the preheader is IRREDUCIBLE.
17870 Try to optimize when estimated_loop_iterations_int is unresolved.
17871 Add the loop's location to the dump file.
17872 * tree-cfg.c (add_phi_args_after_redirect): Remove.
17873 (gimple_duplicate_sese_tail): Remove the check for the latch.
17874 Redirect nexits to the exit block.
17875 Remove handling of the incoming edges to the latch.
17876 Redirect the backedge from the copied latch to the exit bb.
17878 2010-01-28 Michael Matz <matz@suse.de>
17881 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17882 Wrap force_reg into a sequence, emit it before user.
17884 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
17886 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17888 (arm_legacy_rev): Likewise.
17889 (thumb_legacy_rev): Likewise.
17891 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17893 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17894 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
17895 on MEM's address failed, try avoid_constant_pool_reference and
17896 recurse if it returned something different.
17897 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17898 address, try avoid_constant_pool_reference and recurse if it
17899 returned something different.
17900 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17901 address and avoid_constant_pool_reference returned something
17902 different, don't set have_address.
17904 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
17907 * var-tracking.c (val_store): Add modified argument, obey it.
17909 (count_uses): Move down logging of main.
17910 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17911 don't need resolution.
17912 (emit_notes_in_bb): Likewise.
17914 2010-01-27 Richard Guenther <rguenther@suse.de>
17916 PR middle-end/42878
17917 * tree-inline.c (remap_decl): Delay remapping of SSA name
17918 default definitions until we need them.
17920 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17922 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17923 (rs6000_delegitimize_address): New function.
17925 * config/s390/s390.c (s390_delegitimize_address): Call
17926 delegitimize_mem_from_attrs.
17928 PR middle-end/42874
17929 * tree-inline.c (cannot_copy_type_1): Removed.
17930 (copy_forbidden): Don't forbid copying of functions containing
17931 records/unions with variable length fields.
17933 2010-01-27 Christian Bruel <christian.bruel@st.com>
17937 * config/sh/sh.c (find_barrier): Increase length for non delayed
17938 conditional branches.
17940 2010-01-27 Matthias Klose <doko@ubuntu.com>
17942 * configure.ac (gnu-unique-object): Fix ldd version check.
17943 * configure: Regenerate.
17945 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17947 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17949 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17950 Test for HAVE_GNU_AS value.
17952 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17954 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17955 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17956 INT64_TYPE): Define.
17957 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17958 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17959 INT_LEAST64_TYPE): Define.
17960 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17961 UINT_LEAST64_TYPE): Define.
17962 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17963 INT_FAST64_TYPE): Define.
17964 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17965 UINT_FAST64_TYPE): Define.
17966 (INTMAX_TYPE, UINTMAX_TYPE): Define.
17967 (INTPTR_TYPE, UINTPTR_TYPE): Define.
17968 (SIG_ATOMIC_TYPE): Define.
17970 2010-01-26 Richard Guenther <rguenther@suse.de>
17972 * df-scan.c (df_scan_set_bb_info): Remove assert.
17973 (df_insn_rescan_debug_internal): Merge asserts.
17974 (df_install_ref): Likewise.
17975 (df_mark_reg): Use bitmap_set_range.
17976 (df_hard_reg_used_p): Remove assert.
17977 (df_hard_reg_used_count): Likewise.
17979 2010-01-26 Richard Guenther <rguenther@suse.de>
17981 PR rtl-optimization/42685
17982 * web.c (web_main): Ignore DEBUG_INSNs.
17984 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
17986 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17988 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17989 Fix types of fndecl and arglist parameters.
17991 2010-01-26 Richard Guenther <rguenther@suse.de>
17993 PR middle-end/42806
17994 * tree-eh.c (unsplit_eh): Skip debug insns.
17996 2010-01-26 Richard Guenther <rguenther@suse.de>
17998 PR tree-optimization/42250
17999 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18001 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18004 * omp-low.c (expand_omp_sections): Only use single_pred if
18005 l2_bb is single_pred_p.
18007 2010-01-25 Christian Bruel <christian.bruel@st.com>
18010 * config/sh/sh.c (find_barrier): Increase length for non delayed
18011 conditional branches.
18012 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18014 2010-01-24 David S. Miller <davem@davemloft.net>
18016 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18017 define if not using GAS.
18018 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18019 Likewise. Delete SECTION_MERGE code, which is only applicable
18022 2010-01-24 Mark Mitchell <mark@codesourcery.com>
18025 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18026 mangling of va_list in system headers.
18028 2010-01-23 Toon Moene <toon@moene.org>
18030 * tree-predcom.c (combine_chains): Return NULL, not false.
18032 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
18034 * tree-loop-distribution.c (distribute_loop): Fix declaration and
18035 initialization of variable res to agree with return type.
18037 2010-01-22 Steve Ellcey <sje@cup.hp.com>
18039 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18040 * tree-sra.c: Add include of expr.h.
18042 2010-01-22 Jakub Jelinek <jakub@redhat.com>
18044 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18045 insert the debug stmt on the single non-EH edge from the stmt.
18047 2010-01-22 Richard Henderson <rth@redhat.com>
18050 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18051 the RHS until after generate_subtree_copies has insertted its
18052 code before the current statement.
18054 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
18056 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18058 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18060 2010-01-21 Martin Jambor <mjambor@suse.cz>
18062 PR tree-optimization/42585
18063 * tree-sra.c (struct access): New field grp_total_scalarization.
18064 (dump_access): Dump the new field.
18065 (should_scalarize_away_bitmap): New variable.
18066 (cannot_scalarize_away_bitmap): Likewise.
18067 (sra_initialize): Allocate new bitmaps.
18068 (sra_deinitialize): Free new bitmaps.
18069 (create_access_1): New function.
18070 (create_access): Parts moved to create_access_1.
18071 (type_consists_of_records_p): New function.
18072 (completely_scalarize_record): Likewise.
18073 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18074 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18075 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18077 (analyze_all_variable_accesses): Completely scalarize small eligible
18080 2010-01-21 Martin Jambor <mjambor@suse.cz>
18082 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18084 2010-01-21 Andrew Haley <aph@redhat.com>
18086 * gcc.c (process_command): Move lang_specific_driver before
18087 setting cc_libexec_prefix.
18089 2010-01-21 Richard Guenther <rguenther@suse.de>
18091 PR middle-end/19988
18092 * fold-const.c (negate_expr_p): Pretend only negative
18093 real constants are easily negatable.
18095 2010-01-20 Janis Johnson <janis187@us.ibm.com>
18096 Jason Merrill <jason@redhat.com>
18098 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18099 (TYPE_TRANSPARENT_AGGR): this, for union and record.
18100 * calls.c (initialize argument_information): Handle it.
18101 * c-common.c (handle_transparent_union_attribute): Use new name.
18102 * c-decl.c (finish_struct): Ditto.
18103 * c-typeck.c (type_lists_compatible_p): Ditto.
18104 (convert_for_assignment): Use new name and also handle record.
18105 * function.c (aggregate_value_p): Handle it.
18106 (pass_by_reference): Ditto.
18107 (assign_parm_data_types): Ditto.
18108 * print-tree.c (print_node): Ditto.
18109 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18110 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18111 * tree.c (first_field): New fn.
18113 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
18116 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18117 even when linking statically, for now.
18119 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18122 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18123 without a cselib val.
18124 (count_uses): Accept MO_VAL_SET with no val on stores.
18125 (add_stores): Likewise.
18127 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18129 * var-tracking.c (check_value_val): Add a compile time assertion.
18130 (dv_is_decl_p): Simplify.
18131 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18132 gcc_assert if ENABLE_CHECKING.
18134 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18137 * var-tracking.c: Include tree-flow.h.
18138 (mem_dies_at_call): New.
18139 (dataflow_set_preserve_mem_locs): Use it.
18140 (dataflow_set_remove_mem_locs): Likewise.
18141 (dump_var): Renamed from dump_variable. Adjust all callers.
18142 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
18143 * Makefile.in (var-tracking.o): Adjust deps.
18145 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
18147 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18149 2010-01-20 Richard Guenther <rguenther@suse.de>
18151 PR tree-optimization/42717
18152 * tree-ssa-dce.c (get_live_post_dom): Remove.
18153 (forward_edge_to_pdom): Take an arbitrary edge to copy
18154 degenerate PHI args from.
18155 (remove_dead_stmt): Use the first post-dominator even if it
18156 does not contain live statements as redirection destination.
18158 2010-01-20 Richard Guenther <rguenther@suse.de>
18160 * tree-inline.c (estimate_num_insns): Handle EH builtins.
18162 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18164 * sel-sched.c (create_speculation_check): Remove set but not used
18166 (try_transformation_cache): Remove set but not used variable ds.
18167 (calculate_privileged_insns): Remove set but not used variables
18168 cur_insn and min_spec_insn.
18169 (find_best_expr): Remove set but not used variable avail_n.
18170 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18172 * cgraphunit.c (assemble_thunk): Remove set but not used variable
18174 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18175 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18176 new_scop_exit_edge.
18178 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
18181 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18182 cpu types. Add support for *-sse3 cpu types.
18183 (x86_64-*-*): Ditto.
18185 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18187 PR middle-end/42803
18188 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18189 argument, call initializer_constant_valid_p_1 instead of
18190 initializer_constant_valid_p, pass CACHE to it, return NULL
18191 immediately if first call returns NULL.
18192 (initializer_constant_valid_p_1): New function.
18193 (initializer_constant_valid_p): Use it.
18195 2010-01-20 Thomas Quinot <quinot@adacore.com>
18197 * tree.def (PLACEHOLDER_EXPR): Fix comment.
18199 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18201 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18202 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18203 (loc_list_from_tree): Don't handle unsigned division. Handle
18204 signed modulo using DW_OP_{over,over,div,mul,minus}.
18205 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18206 modulo instead of signed.
18208 2010-01-20 DJ Delorie <dj@redhat.com>
18210 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18212 (h8300_emit_stack_adjustment): Propogate it.
18214 (h8300_expand_prologue): Likewise.
18215 (h8300_expand_epilogue): Likewise.
18217 2010-01-19 Michael Matz <matz@suse.de>
18219 PR tree-optimization/41783
18220 * tree-data-ref.c (toplevel): Include flags.h.
18221 (dump_data_dependence_relation): Also dump the inputs if the
18222 result will be unknown.
18223 (split_constant_offset_1): Look through some conversions.
18224 * tree-predcom.c (determine_roots_comp): Restart a new chain if
18225 the offset from last element is too large.
18226 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
18227 (reassociate_to_the_same_stmt): Handle vector registers.
18228 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
18229 (e.g. conversions).
18230 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
18231 wide_prolog_niters argument, emit widening instructions.
18232 (vect_do_peeling_for_alignment): Adjust caller, use widened
18233 variant of the iteration cound.
18234 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
18236 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18239 * config/arm/neon-testgen.m (emit_automatics): New parameter
18240 features. Adjust for Fixed_return_reg feature.
18241 (test_intrinsic): Call emit_automatics with new feature.
18242 * config/arm/neon.ml: Update copyright years.
18243 (features): New Fixed_return_reg feature.
18244 (ops): Update feature for Vget_low.
18246 2010-01-19 Jakub Jelinek <jakub@redhat.com>
18248 PR tree-optimization/42719
18249 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
18253 * fwprop.c (all_uses_available_at): Return false if def_set dest
18254 is a REG that is used in def_insn.
18256 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
18258 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
18260 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
18261 Add argument names.
18263 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
18265 * target.h (struct gcc_target) <secondary_reload>: Change type
18266 of last argument to secondary_reload_info *.
18268 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
18271 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
18272 memory references with unaligned offsets. Remove CQImode handling.
18273 (unaligned_memory_operand): Return 1 for memory references with
18274 unaligned offsets. Remove CQImode handling.
18276 2010-01-18 Richard Guenther <rguenther@suse.de>
18278 PR middle-end/39954
18279 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
18282 2010-01-18 Richard Guenther <rguenther@suse.de>
18284 PR tree-optimization/42781
18285 * tree-ssa-structalias.c (find_what_var_points_to): Skip
18286 restrict processing only if the original variable was artificial.
18288 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
18290 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18291 find number of popped argument bytes.
18293 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18294 Fix the text that describes the return value for invalid insns.
18296 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
18298 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18299 Clarify what 'cost of the -dependence' is. Fix quoting.
18301 * toplev.c (default_get_pch_validity): Rename argument to "sz".
18302 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18304 2010-01-17 Jakub Jelinek <jakub@redhat.com>
18306 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18307 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18309 2010-01-17 Richard Guenther <rguenther@suse.de>
18311 PR middle-end/42248
18312 * function.c (split_complex_args): Take a VEC to modify.
18313 (assign_parms_augmented_arg_list): Build a VEC instead of
18314 a chain of PARM_DECLs.
18315 (assign_parms_unsplit_complex): Take a VEC of arguments.
18316 Do not fixup unmodified parms.
18317 (assign_parms): Deal with the VEC.
18318 (gimplify_parameters): Likewise.
18320 2010-01-17 Richard Guenther <rguenther@suse.de>
18322 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18323 node existence check.
18324 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18325 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18326 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18327 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18328 (gimple_execute_on_growing_pred): Likewise.
18330 2010-01-17 Richard Guenther <rguenther@suse.de>
18332 PR tree-optimization/42773
18333 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18334 (compute_antic_aux): Likewise.
18335 (compute_partial_antic_aux): Likewise.
18337 2010-01-17 Jie Zhang <jie.zhang@analog.com>
18340 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18343 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
18345 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18348 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18349 Fix markup for strict argument.
18351 (TARGET_SCHED_REORDER2): Fix argument types.
18353 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
18354 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
18356 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
18357 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
18359 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18362 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
18363 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
18364 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
18365 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
18366 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
18368 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
18370 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
18372 (TARGET_ASM_RELOC_RW_MASK): Add return type.
18373 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
18375 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
18377 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
18380 (TARGET_ASM_NAMED_SECTION): Fix argument list.
18382 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
18383 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
18385 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
18387 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
18389 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
18390 referring to it. Fix language.
18392 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
18394 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
18396 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
18398 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
18400 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
18401 '@var{stream}. Remove stray 'and'.
18403 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
18405 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
18407 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
18409 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
18410 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
18412 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
18413 Fix description of return value.
18414 Rename argument "sz" to "len."
18416 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
18417 Clarify meaning of 'true' return value.
18419 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
18421 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
18422 rep_mode versus mode_rep.
18424 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
18426 (TARGET_BUILTIN_DECL): Fix name.
18428 (TARGET_COMMUTATIVE_P): Fix type of first argument.
18430 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
18432 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
18434 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
18436 (TARGET_RELAXED_ORDERING): Use @deftypevr.
18438 (TARGET_GET_DRAP_RTX): Note that this is a hook.
18441 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
18442 Rename argument tm_fn to md_fn.
18444 (TARGET_OPTION_PRINT): Fix argument list.
18446 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
18449 * config/i386/i386.c (ix86_fixup_binary_operands):
18450 Revert FMA4 fixup of operands.
18452 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18455 * Makefile.in (write_entries_to_file, install-plugin):
18456 Use \012 instead of \n with tr.
18458 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
18460 * configure.ac (HAVE_AS_REF): New C macro.
18461 * configure: Regenerate.
18462 * config.in: Likewise.
18463 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
18465 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
18468 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
18470 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
18472 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
18474 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
18476 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
18478 (TARGET_IN_SMALL_DATA_P): Fix argument type.
18480 (TARGET_BINDS_LOCAL_P): Fix argument type.
18482 (TARGET_ASM_FILE_END): Use prototype.
18484 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
18486 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
18488 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
18490 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
18492 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
18493 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
18495 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
18496 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
18498 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
18499 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
18500 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
18501 (TARGET_ADDR_SPACE_CONVERT): Likewise.
18503 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
18505 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
18507 (TARGET_INIT_BUILTINS): Use prototype.
18509 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
18510 Put 'const char *' in braces. Fix parameter types.
18511 (TARGET_INVALID_CONVERSION): Fix parameter types.
18512 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
18513 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
18515 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
18518 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
18520 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
18522 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
18524 * doc/tm.texi (TARGET_HELP): Fix return type.
18526 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
18527 in braces. Fix argument types.
18529 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
18531 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
18533 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
18535 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
18536 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
18538 (TARGET_MANGLE_TYPE): Fix argument types.
18540 (TARGET_IRA_COVER_CLASSES): Use prototype.
18542 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
18544 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
18546 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
18548 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
18550 (TARGET_CALLEE_COPIES): Fix argument types.
18552 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
18554 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
18556 (TARGET_FUNCTION_VALUE): Fix argument types.
18558 (TARGET_RETURN_IN_MSB): Fix argument type.
18560 (TARGET_RETURN_IN_MEMORY): Fix argument types.
18562 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
18564 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
18566 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
18567 agree with return type.
18569 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
18571 2010-01-15 Jing Yu <jingyu@google.com>
18573 PR rtl-optimization/42691
18574 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
18575 a pseudo to a constant and are merged, and adjust comments.
18577 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
18579 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
18581 2010-01-15 Richard Guenther <rguenther@suse.de>
18583 PR middle-end/42739
18584 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18585 labels of computed or non-local gotos to the destination.
18586 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18587 landing pad label is the first label.
18589 2010-01-15 Richard Guenther <rguenther@suse.de>
18591 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18593 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18596 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18597 to allow generation of the xssqrtdp instruction on power7.
18598 (sqrtdf2_fpr): Ditto.
18600 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18602 PR middle-end/42674
18603 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18604 functions with noreturn attribute.
18607 * varasm.c (declare_weak): Add weak attribute to decl if it
18608 doesn't have one already.
18609 (assemble_external): Only add decls to weak_decls if they also
18610 have weak attribute.
18612 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
18614 * var-tracking.c (var_reg_delete): Don't delete the association
18615 between REGs and values or one-part variables if the register
18618 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18621 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18622 because its first operand is a non-localized variable.
18624 2010-01-14 Martin Jambor <mjambor@suse.cz>
18626 PR tree-optimization/42706
18627 * tree-sra.c (encountered_recursive_call): New variable.
18628 (encountered_unchangable_recursive_call): Likewise.
18629 (sra_initialize): Initialize both new variables.
18630 (callsite_has_enough_arguments_p): New function.
18631 (scan_function): Call decl and flags check only for IPA-SRA, check
18632 whether there is a recursive call and whether it has enough arguments.
18633 (all_callers_have_enough_arguments_p): New function.
18634 (convert_callers): Look for recursive calls only when
18635 encountered_recursive_call is set.
18636 (ipa_early_sra): Bail out either if
18637 !all_callers_have_enough_arguments_p or
18638 encountered_unchangable_recursive_call.
18640 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18642 * sel-sched.c: Add 2010 to copyright years.
18643 * sel-sched-ir.c: Likewise.
18644 * sel-sched-ir.h: Likewise.
18646 2010-01-14 Martin Jambor <mjambor@suse.cz>
18648 PR tree-optimization/42714
18649 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
18650 constructors specially.
18652 2010-01-14 Andi Kleen <ak@linux.intel.com>
18654 * config/i386/drivers-i386.c (detect_caches_intel):
18655 Add l2sizekb parameter and fill in.
18656 (host_detect_local_cpu): Add l2sizekb, fill in.
18657 Add Atom small cache heuristic.
18659 2010-01-14 Andi Kleen <ak@linux.intel.com>
18661 * config/i386/drivers-i386.c (detect_caches_cpuid4):
18662 Add level3 parameter and fill in.
18663 (detect_caches_intel): Handle level3 cache.
18665 2010-01-14 Andi Kleen <ak@linux.intel.com>
18667 * config/i386/drivers-i386.c (host_detect_local_cpu):
18668 Fix core duo detection.
18670 2010-01-14 Andi Kleen <ak@linux.intel.com>
18672 * config/i386/drivers-i386.c (host_detect_local_cpu):
18673 Fix Atom detection.
18675 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18677 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
18678 (rs6000_variable_issue_1): this. Use...
18679 (rs6000_variable_issue): here. Reimplement. Print debug info.
18681 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18683 * sel-sched-ir.c (sel_restore_other_notes): Rename to
18684 sel_restore_notes. Update all callers. Call reemit_notes
18687 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18689 PR rtl-optimization/42246
18690 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18693 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18695 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18696 all successors is the same as number of successors in current region.
18698 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18700 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18701 to rename is not separable. Otherwise check that its LHS is not NULL.
18703 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18705 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
18707 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18709 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18710 available registers when failed to discover LHS register class.
18711 Fix indentation. Update comment.
18713 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18714 Alexander Monakov <amonakov@ispras.ru>
18716 PR rtl-optimization/42389
18717 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18719 (advance_state_on_fence): Likewise.
18720 (sel_target_adjust_priority): Print debug output only when
18721 sched_verbose >= 4, not 2.
18722 (get_expr_cost): Do not issue all unique insns on the next cycle.
18723 (fill_insns): Initialize can_issue_more from the value saved
18725 * sel-sched-ir.c (flist_add): New parameter issue_more.
18726 Init FENCE_ISSUE_MORE with it.
18727 (merge_fences): Likewise.
18728 (init_fences): Update call to flist_add.
18729 (add_to_fences, add_clean_fence_to_fences)
18730 (add_dirty_fence_to_fences): Likewise.
18731 (move_fence_to_fences): Update call to merge_fences.
18732 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18734 * sel-sched-ir.h (struct _fence): New field issue_more.
18735 (FENCE_ISSUE_MORE): New accessor macro.
18737 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18739 PR rtl-optimization/42388
18740 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18741 that have no predecessors nor successors. Do not call move_bb_info
18742 for empty blocks outside of current region.
18744 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18746 PR rtl-optimization/42294
18747 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18748 * sel-sched.c (move_exprs_to_boundary): Transitively add all
18749 originators' originators.
18751 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18753 PR rtl-optimization/39453
18754 PR rtl-optimization/42246
18755 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18757 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18759 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18760 Alexander Monakov <amonakov@ispras.ru>
18762 PR middle-end/42245
18763 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
18764 (maybe_tidy_empty_bb): ... here. Make static. Add new
18765 argument. Update all callers.
18766 (tidy_control_flow): ... and here. Recompute topological order
18767 of basic blocks in region if necessary.
18768 (sel_redirect_edge_and_branch): Change return type. Return true
18769 if topological order might have been invalidated.
18770 (purge_empty_blocks): Export and move from...
18771 * sel-sched.c (purge_empty_blocks): ... here.
18772 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18773 (maybe_tidy_empty_bb): Delete prototype.
18774 (purge_empty_blocks): Declare.
18776 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18778 PR rtl-optimization/42249
18779 * sel-sched.c (try_replace_dest_reg): When chosen register
18780 and original register is the same, do not bail out early, but
18781 still check all original insns for validity of replacing destination
18782 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18785 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18788 Port from no-undefined-overflow branch:
18789 2009-03-09 Richard Guenther <rguenther@suse.de>
18791 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18793 2010-01-14 Richard Guenther <rguenther@suse.de>
18796 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18798 2010-01-14 Ira Rosen <irar@il.ibm.com>
18800 PR tree-optimization/42709
18801 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18802 as scalar type in creation of constant vector operand.
18804 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18807 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18808 (check-parallel-%): Match `testsuite' directory component only
18811 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
18813 PR translation/39521
18814 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18817 2010-01-13 Richard Guenther <rguenther@suse.de>
18819 PR tree-optimization/42730
18820 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18823 2010-01-13 Steve Ellcey <sje@cup.hp.com>
18826 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18827 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18830 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
18832 * config/bfin/libgcc-bfin.ver: Regenerate based on current
18833 libgcc-std.ver. Add entries for ___smulsi3_highpart and
18834 ___umulsi3_highpart.
18836 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18837 rather than schedule_insns if the pass is enabled.
18839 2010-01-13 Martin Jambor <mjambor@suse.cz>
18841 PR tree-optimization/42704
18842 * tree-sra.c (sra_modify_assign): Do not delete assignments to
18845 2010-01-13 Martin Jambor <mjambor@suse.cz>
18847 PR tree-optimization/42703
18848 * tree-sra.c (analyze_access_subtree): Check that we can build a
18849 reference to the original data within the aggregate.
18851 2010-01-13 Richard Guenther <rguenther@suse.de>
18853 PR tree-optimization/42705
18854 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18856 2010-01-13 Richard Guenther <rguenther@suse.de>
18858 PR middle-end/42716
18859 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18861 2010-01-13 Jakub Jelinek <jakub@redhat.com>
18864 * var-tracking.c (values_to_unmark): New variable.
18865 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18866 values_to_unmark vector. Moved body to...
18867 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
18868 instead queue it into values_to_unmark vector.
18869 (vt_find_locations): Free values_to_unmark vector.
18871 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
18873 * config/s390/s390.c (override_options): Set
18874 default of max-pending-list-length to 256
18876 2010-01-13 Richard Guenther <rguenther@suse.de>
18879 * tree-pass.h (PROP_gimple_lcx): New.
18880 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18881 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18882 before the final cleanup_eh.
18883 (dump_properties): Dump PROP_gimple_lcx.
18884 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18885 (tree_lower_complex_O0): Remove.
18886 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18887 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
18888 tree_lower_complex, schedule TODO_update_ssa.
18889 * lto-streamer-out.c (output_function): Stream the functions
18891 * lto-streamer-in.c (input_function): Likewise.
18892 (lto_read_body): Do not override them here.
18894 2010-01-12 Joseph Myers <joseph@codesourcery.com>
18897 * c-typeck.c (build_c_cast): Fold value cast to union type before
18898 wrapping it in a CONSTRUCTOR.
18900 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18902 PR rtl-optimization/42699
18903 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18906 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18908 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18909 SUBTARGET_WARN_UNUSED_SPEC): Move ...
18910 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18911 SUBTARGET_WARN_UNUSED_SPEC): ... here
18912 * config/mips/iris5.h (LIBGCC_SPEC): Define.
18914 2010-01-12 Julian Brown <julian@codesourcery.com>
18916 * config/arm/neon-schedgen.ml (Utils): Don't try to
18917 open missing module.
18918 (find_with_result): New.
18920 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18923 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18924 sharing when canonicalizing ({lt,ge}u (plus a b) b).
18926 PR tree-optimization/42645
18927 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
18928 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18929 decl_map, set processing_debug_stmt to -1 and return name without
18932 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
18934 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18935 binutils version, and reword target configuration description.
18937 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18939 * config/avr/avr.h (LINKER_NAME): Remove.
18941 2010-01-11 Janis Johnson <janis187@us.ibm.com>
18944 * config/rs6000/rs6000.c (rs6000_override_options): On targets
18945 that support VSX, warn for -mno-altivec if vsx is not disabled,
18948 2010-01-11 Joseph Myers <joseph@codesourcery.com>
18949 Shujing Zhao <pearly.zhao@oracle.com>
18951 PR translation/42469
18952 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18953 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18954 character between option name and help text.
18955 * c.opt (imultilib): Likewise.
18957 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
18959 * lto-streamer-out.c (output_unreferenced_globals): Output static
18962 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
18964 PR rtl-optimization/42621
18965 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18966 optimizing for size.
18967 (duplicate_computed_gotos): Remove now-redundant check.
18969 2010-01-10 Steve Ellcey <sje@cup.hp.com>
18972 * configure.ac: Save and restore LDFLAGS and LIBS
18973 * configure: Regenerate.
18975 2010-01-10 Richard Guenther <rguenther@suse.de>
18977 PR middle-end/42667
18978 * builtins.c (fold_builtin_strlen): Add type argument and
18979 convert the resulting length to it.
18980 (fold_builtin_1): Adjust.
18982 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18984 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18985 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18987 (num_insns_constant_wide): Adjust for that change.
18989 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18992 * web.c (union_defs): Add used argument, to combine uses of
18993 uninitialized regs.
18994 (entry_register): Adjust type and tests of used argument.
18995 (web_main): Widen used for new use. Pass it to union_defs.
18996 * df.h (union_defs): Adjust prototype.
18998 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19001 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19002 uses in new incoming argument. Free body.
19003 (reset_debug_uses_in_loop): New.
19004 (analyze_insn_to_expand_var): Call the latter if the former found
19005 anything. Fix whitespace. Reject invalid dest overlaps before
19006 going through all insns in the loop.
19008 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19011 * haifa-sched.c (dying_use_p): Debug insns don't count.
19013 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19015 PR middle-end/42363
19016 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19017 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19018 (verify_gimple_call): Reject LHS in noreturn calls.
19020 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19024 * tree-vect-loop-manip.c (adjust_info): New type.
19025 (adjust_vec): New pointer to vector.
19026 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19027 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19028 (slpeel_update_phis_for_duplicate_loop): Use them.
19029 (slpeel_update_phi_nodes_for_guard1): Likewise.
19030 (slpeel_update_phi_nodes_for_guard2): Likewise.
19031 (slpeel_tree_peel_loop_to_edge): Likewise.
19032 (vect_update_ivs_after_vectorizer): Likewise.
19034 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19036 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19037 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19039 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19041 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19042 bogus uninitialized warning.
19044 2010-01-09 Richard Guenther <rguenther@suse.de>
19046 PR middle-end/42512
19047 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19048 the evolution is compatible with the initial condition.
19050 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19052 * gcc.c (process_command): Update copyright notice dates.
19053 * gcov.c (print_version): Likewise.
19054 * gcov-dump.c (print_version): Likewise.
19055 * mips-tfile.c (main): Likewise.
19056 * mips-tdump.c (main): Likewise.
19058 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19061 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19063 (rotlhi3_8): Delete.
19065 (rotlsi3_8): Delete.
19066 (rotlsi3_16): Delete.
19067 (rotlsi3_24): Delete.
19068 (rotl<mode>3): New.
19069 (*rotw<mode>3): New.
19070 (*rotb<mode>3): New.
19071 * config/avr/avr.c (avr_rotate_bytes): New function.
19072 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19074 2010-01-08 Steve Ellcey <sje@cup.hp.com>
19077 * configure.ac: Modify -rdynamic check.
19078 * configure: Regenerate.
19080 2010-01-08 DJ Delorie <dj@redhat.com>
19082 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19083 register popping order.
19085 2010-01-08 Richard Guenther <rguenther@suse.de>
19088 * c.opt (fsigned-char): Also let LTO handle this option.
19089 (funsigned-char): Likewise.
19091 2010-01-07 Richard Guenther <rguenther@suse.de>
19093 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19094 (gimple_op): Likewise.
19095 (gimple_op_ptr): Likewise.
19096 (gimple_assign_set_lhs): Remove gcc_assert.
19097 (gimple_assign_set_rhs1): Likewise.
19098 (gimple_assign_set_rhs2): Likewise.
19099 (gimple_call_set_lhs): Likewise.
19100 (gimple_call_set_fn): Likewise.
19101 (gimple_call_set_fndecl): Likewise.
19102 (gimple_call_fndecl): Likewise.
19103 (gimple_call_return_type): Likewise.
19104 (gimple_call_set_chain): Likewise.
19105 (gimple_call_num_args): Likewise.
19106 (gimple_call_set_arg): Likewise.
19107 (gimple_cond_set_code): Likewise.
19108 (gimple_cond_set_lhs): Likewise.
19109 (gimple_cond_set_rhs): Likewise.
19110 (gimple_cond_set_true_label): Likewise.
19111 (gimple_cond_set_false_label): Likewise.
19112 (gimple_label_set_label): Likewise.
19113 (gimple_goto_set_dest): Likewise.
19114 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19115 (gimple_debug_bind_get_value): Likewise.
19116 (gimple_debug_bind_get_value_ptr): Likewise.
19117 (gimple_debug_bind_set_var): Likewise.
19118 (gimple_debug_bind_set_value): Likewise.
19119 (gimple_debug_bind_reset_value): Likewise.
19120 (gimple_debug_bind_has_value_p): Likewise.
19121 (gimple_return_retval_ptr): Remove gcc_assert.
19122 (gimple_return_retval): Likewise.
19123 (gimple_return_set_retval): Likewise.
19124 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19125 (safe_referenced_var_iterator): Remove.
19126 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19127 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19128 (fill_referenced_var_vec): Remove.
19129 (first_readonly_imm_use): Remove redundant gcc_assert.
19130 (phi_arg_index_from_use): Combine gcc_asserts.
19131 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19132 (first_imm_use_stmt): Remove redundant gcc_assert.
19133 * tree-cfg.c (verify_gimple_call): Verify function and chain
19134 operands. Verify arguments.
19135 (verify_types_in_gimple_stmt): Verify condition code and labels.
19137 2010-01-07 Richard Guenther <rguenther@suse.de>
19139 PR tree-optimization/42641
19140 * sese.c (rename_map_elt_info): Use the SSA name version, do
19143 2010-01-07 Jakub Jelinek <jakub@redhat.com>
19145 PR tree-optimization/42625
19146 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19147 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19149 2010-01-07 Duncan Sands <baldrick@free.fr>
19151 * Makefile.in (PLUGIN_HEADERS): Add version.h.
19153 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
19156 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19157 note itself is not function_invariant_p.
19159 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
19161 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19162 Do not add the DF_NOTE problem.
19163 * store-motion.c (execute_rtl_store_motion): Likewise.
19165 2010-01-07 Martin Jambor <mjambor@suse.cz>
19167 PR tree-optimization/42157
19168 * tree-sra.c (compare_access_positions): Stabilize sort if both
19169 accesses have integer types, return zero immediately if they are the
19172 2010-01-06 Richard Henderson <rth@redhat.com>
19174 PR middle-end/41883
19175 * haifa-sched.c (add_to_note_list): Merge into ...
19176 (concat_note_lists): ... here, and ...
19177 (unlink_other_notes, rm_other_notes): Merge into...
19178 (remove_notes): ... here. Create REG_SAVE_NOTEs for
19179 NOTE_INSN_EPILOGUE_BEG.
19181 2010-01-06 Richard Guenther <rguenther@suse.de>
19183 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19184 not inline regular functions into always-inline functions.
19186 2010-01-06 Nick Clifton <nickc@redhat.com>
19188 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19189 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19191 (OVERRIDE_OPTIONS): Delete.
19192 (OPTIMIZATION_OPTIONS): Define.
19193 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19194 * config/rx/rx.c (rx_handle_option): Issue an error message if
19195 -mcpu=rx200 and -fpu are used together.
19196 (rx_set_optimization_options): New function. Issue an error
19197 message if an optimization attribute attempts to reset the FPU/
19198 math optimization pairing.
19199 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19200 * config/rx/rx.opt: Set the default to 32-bit doubles.
19201 * config/rx/t-rx: Add multilibs for -nofpu option.
19202 * doc/invoke.texi: Update documentation of RX options.
19204 2010-01-06 Richard Guenther <rguenther@suse.de>
19206 * tree-ssa-pre.c (name_to_id): New global.
19207 (alloc_expression_id): Simplify SSA name handling.
19208 (lookup_expression_id): Likewise.
19209 (init_pre): Zero name_to_id.
19210 (fini_pre): Free it.
19212 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
19214 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19216 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
19219 * config/i386/sse.md (smaxv2di3): New.
19220 (umaxv2di3): Likewise.
19221 (sminv2di3): Likewise.
19222 (uminv2di3): Likewise.
19224 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
19227 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
19228 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
19229 (legitimize_tls_address): Likewise.
19230 (sparc_tls_referenced_p): Likewise.
19231 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
19232 and adjust calls to legitimize_pic_address.
19233 (legitimate_constant_p) Use sparc_tls_referenced_p.
19234 (legitimate_pic_operand_p): Likewise.
19235 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
19236 (sparc_tls_symbol_ref_1): Delete.
19237 (sparc_tls_referenced_p): Make static, recognize specific patterns.
19238 (legitimize_tls_address): Make static, handle CONST patterns.
19239 (legitimize_pic_address): Make static, remove unused parameter and
19240 adjust recursive calls.
19241 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
19242 and adjust call to legitimize_pic_address.
19243 (sparc_output_mi_thunk): Likewise.
19245 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
19246 H.J. Lu <hongjiu.lu@intel.com>
19249 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
19250 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
19251 operands to make them signed.
19254 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19257 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19258 GTU to GT for V4SI and V2DI.
19260 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19261 (umin<mode>3): Removed.
19263 (uminv4si3): Likewise.
19265 2010-01-05 Martin Jambor <mjambor@suse.cz>
19267 PR tree-optimization/42462
19268 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
19269 current_function_decl to helper functions and macros.
19271 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19274 * flags.h: Don't include real.h.
19275 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
19276 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
19277 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
19278 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
19279 * dominance.c: Update copyright.
19280 * gimple.c (walk_gimple_op): Remove inline.
19281 * tree-ssa-reassoc.c: Include real.h.
19282 * Makefile.in (FLAGS_H): Remove $(REAL_H).
19283 (tree-ssa-reassoc.o): Depend on $(REAL_H).
19285 2010-01-05 Nick Clifton <nickc@redhat.com>
19287 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19288 register to push into the stack frame when the accumulator has to
19289 be saved during interrupts.
19291 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
19293 * doc/invoke.texi: Remove the documentation about option
19294 -Wunreachable-code.
19295 * common.opt (Wunreachable-code): Preserved for backward
19297 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19298 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19299 the backward compatibility flag section.
19301 2010-01-05 Richard Guenther <rguenther@suse.de>
19303 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19305 2010-01-05 Jakub Jelinek <jakub@redhat.com>
19308 * cfgexpand.c (expand_one_var): Diagnose too large variables.
19310 PR tree-optimization/42508
19311 * tree-sra.c (convert_callers): Check for recursive call
19312 by comparing cgraph nodes instead of decls.
19313 (modify_function): Call ipa_modify_formal_parameters also
19314 on all same_body aliases.
19316 * cgraphunit.c (cgraph_materialize_all_clones): Compare
19317 cgraph nodes when checking for same_body aliases.
19319 2010-01-05 Richard Guenther <rguenther@suse.de>
19321 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19322 allocation and lookup.
19323 (get_or_alloc_expr_for_constant): Likewise.
19324 (phi_translate): Sink allocation.
19326 2010-01-04 Richard Guenther <rguenther@suse.de>
19328 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19329 a new entry only if needed.
19330 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19331 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19333 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19335 (phi_translate): Handle CONSTANTs early.
19337 2010-01-04 Martin Jambor <mjambor@suse.cz>
19339 PR tree-optimization/42398
19340 * tree-sra.c (struct access): Removed flag grp_different_types.
19341 (dump_access): Do not dump the removed flag.
19342 (sort_and_splice_var_accesses): Do not set the removed flag.
19343 (sra_modify_expr): Check for type compatibility directly.
19345 2010-01-04 Martin Jambor <mjambor@suse.cz>
19347 PR tree-optimization/42366
19348 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19349 edges with variable number of parameters.
19350 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
19351 flag instead of asserting it.
19352 (ipa_read_node_info): Read uses_analysis_done flag.
19354 2010-01-04 Richard Guenther <rguenther@suse.de>
19356 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
19357 iterative_hash_* as intended.
19358 (vn_reference_compute_hash): Likewise. Simplify hashing
19360 (vn_reference_lookup_2): Likewise.
19361 (vn_nary_op_compute_hash): Likewise.
19362 (vn_phi_compute_hash): Likewise.
19363 (expressions_equal_p): Remove strange code.
19364 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
19365 (pre_expr_hash): Likewise. Simplify hashing SSA names.
19366 (bitmap_insert_into_set_1): Take value-id as parameter.
19367 (add_to_value): Pass it.
19368 (bitmap_insert_into_set): Likewise.
19369 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
19371 2010-01-04 Jakub Jelinek <jakub@redhat.com>
19374 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
19375 (do_self_spec): For switches with SWITCH_IGNORE set set also
19376 SWITCH_IGNORE_PERMANENTLY.
19377 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
19380 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
19382 * lto-streamer-out.c (output_unreferenced_globals): Output the full
19383 tree of an unreferenced global var.
19385 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19388 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19389 GTU to GT for V4SI and V2DI.
19391 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19392 (umin<mode>3): Removed.
19394 (uminv4si3): Likewise.
19396 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19399 * collect2.c (main): Turn on trace in collect2 if -v is passed
19402 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
19404 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
19405 description of expression operand.
19407 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
19409 * configure.ac: Add install-html to target_list for Make-hooks.
19410 * configure: Regenerate.
19411 * fortran/Make-lang.in (F95_HTMLFILES): New.
19412 (fortran.html): Use it.
19413 (fortran.install-html): New.
19414 * Makefile.in (install-html): Add lang.install-html.
19415 * java/Make-lang.in (JAVA_HTMLFILES): New.
19416 (java.html): Use it.
19417 (java.install-html): New.
19418 * objc/Make-lang.in (objc.install-html): New.
19419 * objcp/Make-lang.in (obj-c++.install-html): New.
19420 * cp/Make-lang.in (c++.install-html): New.
19421 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
19422 * lto/Make-lang.in (lto.install-html): New.
19424 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
19427 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
19429 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
19431 PR rtl-optimization/41862
19432 * store-motion.c (store_killed_in_insn, compute_store_table,
19433 remove_reachable_equiv_notes, replace_store_insn,
19434 build_store_vectors): Ignore all DEBUG_INSNs.
19436 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
19439 * common.opt: Add dumpdir.
19441 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
19443 (option_map): Add --dumpdir.
19445 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
19447 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
19449 * opts.c (decode_options): Try dump_dir_name first if
19450 dump_base_name isn't an absolute path.
19451 (common_handle_option): Handle OPT_dumpdir.
19453 * toplev.c (dump_dir_name): New.
19454 (print_switch_values): Also ignore -dumpdir.
19456 * toplev.h (dump_dir_name): New.
19458 2010-01-03 Richard Guenther <rguenther@suse.de>
19460 PR tree-optimization/42589
19461 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
19462 double-word expansion of bswap32.
19464 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
19466 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
19467 with BLOCK_FOR_INSN.
19468 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
19469 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
19470 noce_process_if_block): Likewise.
19471 * gcse.c (compute_local_properties, insert_expr_in_table,
19472 insert_set_in_table, canon_list_insert, find_avail_set,
19473 pre_insert_copy_insn): Likewise.
19475 * basic-block.h (BLOCK_NUM): Move from here...
19476 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
19478 2010-01-03 Richard Guenther <rguenther@suse.de>
19480 PR tree-optimization/42438
19481 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
19482 contains_may_not_return_call flag.
19483 (BB_MAY_NOTRETURN): New.
19484 (valid_in_sets): Trapping nary operations are not valid
19485 in blocks that may not return.
19486 (insert_into_preds_of_block): Remove check for trapping expressions.
19487 (compute_avail): Compute also BB_MAY_NOTRETURN.
19489 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
19491 * doc/invoke.texi: Add 2010 to copyright years.
19493 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
19495 * config/sparc/sparc.c: Fix formatting nits.
19497 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
19498 Alexander Monakov <amonakov@ispras.ru>
19500 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
19502 2010-01-02 Richard Guenther <rguenther@suse.de>
19504 PR middle-end/42577
19505 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
19506 (simplify_switch_using_ranges): Mark to be removed edges
19509 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19511 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19513 * collect2.c (scan_libraries): Add missing argument in call to
19516 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
19519 * config/alpha/predicates.md (aligned_memory_operand): Return false
19521 (unaligned_memory_operand): Return true for CQImode.
19522 * config/alpha/alpha.c (get_aligned_mem): Assert that location
19523 doesn not cross aligned SImode word boundary.
19525 2010-01-02 Anatoly Sokolov <aesok@post.ru>
19527 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
19529 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
19530 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
19532 2010-01-02 Richard Guenther <rguenther@suse.de>
19535 * toplev.c (compile_file): Emit LTO marker properly. Change
19536 it to __gnu_lto_v1.
19537 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
19539 2010-01-01 Richard Guenther <rguenther@suse.de>
19542 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
19544 2010-01-01 Richard Guenther <rguenther@suse.de>
19547 * c-decl.c (grokdeclarator): For zero-size arrays force
19548 structural equality checks as layout_type does.
19550 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
19552 * builtins.c: Update copyright to 2010.
19554 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
19557 * lto-streamer-out.c (produce_asm): Revert the last change.
19558 (copy_function): Likewise.
19560 * lto-streamer.c (lto_get_section_name): Skip any leading
19563 2010-01-01 Richard Guenther <rguenther@suse.de>
19565 PR middle-end/42559
19566 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
19570 Copyright (C) 2010 Free Software Foundation, Inc.
19572 Copying and distribution of this file, with or without modification,
19573 are permitted in any medium without royalty provided the copyright
19574 notice and this notice are preserved.