]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
re PR target/44930 (another problem with line break in output with -fverbose-asm)
[gcc.git] / gcc / ChangeLog
1 2010-07-14 Richard Guenther <rguenther@suse.de>
2
3 PR middle-end/44930
4 * tree-pretty-print.c (do_niy): Do not print a newline.
5
6 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
7
8 * ira-int.h (struct ira_object): New.
9 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P
10 for it.
11 (struct ira_allocno): Remove members min, max,
12 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
13 conflict_allocnos_num and conflict_vec_p. Add new member object.
14 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
15 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
16 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
17 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
18 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
19 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
20 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
21 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
22 an ira_object_t rather than ira_allocno_t. All uses changed.
23 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
24 contains a vector of ira_object_t; all uses changed.
25 (ira_objects_num): Declare variable.
26 (ira_create_allocno_object): Declare function.
27 (ira_conflict_vector_profitable_p): Adjust prototype.
28 (ira_allocate_conflict_vec): Renamed from
29 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
30 (ira_allocate_object_conflicts): Renamed from
31 ira_allocate_allocno_conflicts; first arg now ira_object_t.
32 (struct ira_object_iterator): New.
33 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
34 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
35 to conflict_vec_p. All uses changed.
36 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
37 Changed to take into account that conflicts are now tracked for
38 objects.
39 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from
40 CONFLICT_ALLOCNO_P. Args changed to accept ira_object_t. All
41 uses changed.
42 (allocnos_conflict_p): New static function.
43 (collected_conflict_objects): Renamed from collected_allocno_objects;
44 now a vector of ira_object_t. All uses changed.
45 (build_conflict_bit_table): Changed to take into account that
46 conflicts are now tracked for objects.
47 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
48 (print_allocno_conflicts, ira_build_conflicts): Likewise.
49 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
50 setup_allocno_left_conflicts_size, allocno_reload_assign,
51 fast_allocation): Likewise.
52 * ira-lives.c (make_hard_regno_born, make_allocno_born)
53 process_single_reg_class_operands, process_bb_node_lives): Likewise.
54 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
55 Likewise.
56 * ira-build.c (ira_objects_num): New variable.
57 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
58 contains a vector of ira_object_t; all uses changed.
59 (ira_object_id_map_vec): Corresponding change.
60 (object_pool): New static variable.
61 (initiate_allocnos): Initialize it.
62 (finish_allocnos): Free it.
63 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
64 New functions.
65 (ira_create_allocno): Don't set members that were removed.
66 (ira_set_allocno_cover_class): Don't change conflict hard regs.
67 (merge_hard_reg_conflicts): Changed to take into account that
68 conflicts are now tracked for objects.
69 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
70 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
71 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
72 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
73 setup_min_max_conflict_allocno_ids, ): Likewise.
74 ((add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
75 to ira_object_t; all callers changed.
76 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
77 to ira_object_t, all callers changed.
78 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
79 to ira_object_t, all callers changed.
80 (conflict_check, curr_conflict_check_tick): Renamed from
81 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
82 changed.
83 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
84 arg changed to ira_object_t, all callers changed.
85 (create_cap_allocno): Call ira_create_allocno_object.
86 (finish_allocno): Free the corresponding object.
87 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
88 callers changed. Adjusted for dealing with objects.
89 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
90 dealing with objects.
91 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
92
93 * ira-int.h (struct live_range): Rename allocno member to object and change
94 type to ira_object_t.
95 (struct ira_object): New member live_ranges.
96 (struct ira_allocno): Remove member live_ranges.
97 (ALLOCNO_LIVE_RANGES): Remove.
98 (OBJECT_LIVE_RANGES): New macro.
99 (ira_create_live_range, ira_copy_live_range_list,
100 ira_merge_live_range_list, ira_live_ranges_intersect_p,
101 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
102 * ira-build.c (ira_create_object): Initialize live ranges here.
103 (ira_create_allocno): Not here.
104 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
105 changed to ira_object_t, all callers changed.
106 (copy_live_range): Rename from copy_allocno_live_range, all callers
107 changed.
108 (ira_copy_live_range_list): Rename from ira_copy_allocno_live_range_list,
109 all callers changed.
110 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
111 all callers changed.
112 (ira_live_ranges_intersect_p): Rename from
113 ira_allocno_live_ranges_intersect_p, all callers changed.
114 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
115 callers changed.
116 (ira_finish_live_range_list): Rename from
117 ira_finish_allocno_live_range_list, all callers changed.
118 (change_object_in_range_list): Rename from change_allocno_in_range_list,
119 last arg changed to ira_object_t, all callers changed.
120 (finish_allocno): Changed to expect live ranges in the allocno's object.
121 (move_allocno_live_ranges, copy_allocno_live_ranges,
122 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
123 ira_flattening, ira_build): Likewise.
124 * ira-color.c (allocnos_have_intersected_live_ranges_p,
125 slot_coalesced_allocno_live_ranges_intersect,
126 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
127 * ira-conflicts.c (build_conflict_bit_table): Likewise.
128 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
129 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
130 make_allocno_dead, create_start_finish_chains,
131 remove_some_program_points_and_update_live_ranges,
132 ira_debug_live_range_list): Likewise.
133
134 * ira-int.h (ira_object_conflict_iterator): Rename from
135 ira_allocno_conflict_iterator.
136 (ira_object_conflict_iter_init): Rename from
137 ira_allocno_conflict_iter_init, second arg changed to
138 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
139 FOR_EACH_ALLOCNO_CONFLICT.
140 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
141 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
142 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
143 * ira-conflicts.c (print_allocno_conflicts): Likewise.
144
145 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
146
147 PR other/44874
148 * tree-dump.c (dump_options): Add enumerate_locals entry.
149 Add TDF_NOID exclusion to all entry.
150 * tree-dump.h (dump_enumerated_decls): Declare.
151 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
152 Don't display type uid.
153 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
154 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
155 * tree-ssa-live.c: Include gimple.h.
156 (numbered_tree_d): New struct.
157 (numbered_tree): New typedef.
158 (DEF_VEC_O (numbered_tree): New.
159 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
160 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
161 (dump_enumerated_decls): Likewise.
162 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
163 debug info and flag_dump_final_insns, call dump_enumerated_decls.
164 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
165 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
166
167 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
168
169 * expmed.h (MAX_BITS_PER_WORD): Move to...
170 * defaults.h (MAX_BITS_PER_WORD): ...here.
171
172 2010-07-13 DJ Delorie <dj@redhat.com>
173
174 * config/h8300/h8300.c (h8300_init_once): Default to
175 -fstrict_volatile_bitfields.
176
177 * config/sh/sh.c (sh_override_options): Default to
178 -fstrict_volatile_bitfields.
179
180 * config/rx/rx.c (rx_option_override): New.
181
182 * config/m32c/m32c.c (m32c_override_options): Default to
183 -fstrict_volatile_bitfields.
184
185 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
186
187 * tree.h (build_function_call_expr): Delete.
188 (build_call_expr_loc_array): New function.
189 (build_call_expr_loc_vec): New function.
190 * tree-flow.h (struct omp_region): Change type of ws_args field
191 to a VEC.
192 * builtins.c (build_function_call_expr): Delete.
193 (build_call_expr_loc_array): New function.
194 (build_call_expr_loc): Call it. Use XALLOCAVEC.
195 (build_call_expr): Likewise.
196 (build_call_expr_loc_vec): New function.
197 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
198 build_function_call_expr.
199 * expr.c (emutls_var_address): Likewise.
200 * varasm.c (emutls_common_1): Likewise.
201 * omp-low.c (expand_omp_atomic_mutex): Likewise.
202 (expand_omp_taskreg): Adjust for new type of region->ws_args.
203 (get_ws_args_for): Return a VEC instead of a tree.
204 (expand_parallel_call): Call build_call_expr_loc_vec instead of
205 build_function_call_expr.
206 * stor-layout.c (self_referential_size): Likewise.
207
208 2010-07-13 Jakub Jelinek <jakub@redhat.com>
209
210 PR testsuite/44701
211 * recog.c (constrain_operands): Allow side-effects in memory
212 operands if either < or > constraint is used, rather than if
213 both < and > is used.
214
215 2010-07-13 Richard Guenther <rguenther@suse.de>
216
217 PR middle-end/44911
218 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
219 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
220 without name.
221
222 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
223
224 PR target/44761
225 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
226 to variable emited.
227 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
228 * config/sh/sh.md (symGOT_load): Likewise.
229 (symDTPOFF2reg): Likewise.
230 (symTPOFF2reg): Likewise.
231
232 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
233
234 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
235 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
236
237 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
238
239 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
240 explanation.
241 Find ucontext_t * on Solaris 11.
242 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
243 Handle new Solaris 11 __sighndlr patterns.
244
245 2010-07-13 Jakub Jelinek <jakub@redhat.com>
246
247 PR debug/44901
248 * vec.h (VEC_block_remove): Fix comment.
249 * tree-ssa-live.c (remove_unused_locals): Don't use
250 VEC_unordered_remove on local_decls, instead replace a single
251 vector element in each iteration if at least one element had
252 to be removed and VEC_truncate at the end.
253 * omp-low.c (expand_omp_taskreg): Likewise.
254
255 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
256
257 * c-decl.c (finish_function): Fix typo in comment.
258
259 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
260
261 PR bootstrap/44921
262 * postreload.c (move2add_use_add3_insn): Silence gcc warning
263 on min_regno.
264
265 2010-07-12 Jakub Jelinek <jakub@redhat.com>
266
267 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
268 (simplify_stmt_using_ranges): Use it.
269
270 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
271
272 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
273 member. Do not mark as GTY(()).
274 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
275 (spu_builtin_decls): New static variable.
276 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
277 (spu_init_builtins): Likewise.
278 (spu_builtin_mul_widen_even): Likewise.
279 (spu_builtin_mul_widen_odd): Likewise.
280 (spu_builtin_mask_for_load): Likewise.
281 (spu_builtin_vec_perm): Likewise.
282 * config/spu/spu-c.c: Include "target.h".
283 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
284 of using spu_builtins[].fndecl.
285
286 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
287
288 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
289 imply -minterlink-mips16.
290
291 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
292
293 * config/mips/mips.h (mips16_globals): Declare.
294 (SWITCHABLE_TARGET): Define.
295 * config/mips/mips.c: Include target-globals.h.
296 (mips16_globals): New variable.
297 (mips_set_mips16_mode): Use save_target_globals and
298 restore_target_globals instead of target_reinit.
299
300 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
301
302 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
303 to say that the function can be called more than once.
304 * target-globals.c (save_target_globals): Call init_reg_sets.
305
306 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
307
308 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
309 * bb-reorder.h: New file.
310 * bb-reorder.c (default_target_bb_reorder): New variable.
311 (this_target_bb_reorder): New conditional variable.
312 (uncond_jump_length): Redefine as a macro.
313 * target-globals.h (this_target_bb_reorder): Declare.
314 (target_globals): Add a bb_reorder field.
315 (restore_target_globals): Copy the bb_reorder field to
316 this_target_bb-reorder.
317 * target-globals.c: Include bb-reorder.h.
318 (default_target_globals): Initialize the bb_reorder field.
319 (save_target_globals): Likewise.
320
321 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
322
323 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
324 * gcse.h: New file.
325 * gcse.c: Include gcse.h.
326 (default_target_gcse): New variable.
327 (this_target_gcse): New conditional variable.
328 (can_copy): Redefine as a macro.
329 (can_copy_init_p): New macro.
330 (can_copy_p): Remove can_copy_init_p.
331 * target-globals.h (this_target_gcse): Declare.
332 (target_globals): Add a gcse field.
333 (restore_target_globals): Copy the gcse field to
334 this_target_gcse.
335 * target-globals.c: Include gcse.h.
336 (default_target_globals): Initialize the gcse field.
337 (save_target_globals): Likewise.
338
339 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
340
341 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
342 and x_ira_prohibited_mode_move_regs_initialized_p.
343 (ira_prohibited_mode_move_regs): Redefine as a macro.
344 * ira.c (ira_prohibited_mode_move_regs): Delete.
345 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
346
347 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
348
349 * reload.h (target_reload): Add x_cached_reg_save_code and
350 x_cached_reg_restore_code.
351 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
352 Redefine as macros.
353
354 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
355
356 * Makefile.in (target-globals.o): Depend on builtins.h.
357 * builtins.h: New file.
358 * builtins.c: Include builtins.h.
359 (default_target_builtins): New variable.
360 (this_target_builtins): New conditional variable.
361 (apply_args_mode, apply_result_mode): Redefine as macros.
362 * target-globals.h (this_target_builtins): Declare.
363 (target_globals): Add a builtins field.
364 (restore_target_globals): Copy the builtins field to
365 this_target_builtins.
366 * target-globals.c: Include builtins.h.
367 (default_target_globals): Initialize the builtins field.
368 (save_target_globals): Likewise.
369
370 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
371
372 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
373 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
374 from expmed.c.
375 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
376 (alg_hash, alg_hash_used_p): New macros.
377 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
378 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
379 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
380
381 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
382
383 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
384 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
385 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
386 (this_op_costs, costs_classes): Redefine as macros.
387 (record_reg_classes): Don't take op_costs as a parameter.
388 (record_operand_costs): Likewise. Update calls to record_reg_classes.
389 (scan_one_insn): Update call to record_operand_costs.
390
391 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
392
393 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
394 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
395 (target_ira_int): New structure.
396 (default_target_ira_int): Declare.
397 (this_target_ira_int): Declare as a variable or define as a macro.
398 (ira_reg_mode_hard_regset, ira_register_move_cost)
399 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
400 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
401 (prohibited_class_mode_regs, ira_important_classes_num)
402 (ira_important_classes, ira_reg_class_intersect)
403 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
404 (ira_reg_class_union): Redefine as macros.
405 * ira.h (target_ira): New structure.
406 (default_target_ira): Declare.
407 (this_target_ira): Declare as a variable or define as a macro.
408 (ira_available_class_regs, ira_hard_regno_cover_class)
409 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
410 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
411 (ira_class_hard_regs_num): Redefine as macros.
412 * ira.c (default_target_ira, default_target_ira_int): New variables.
413 (this_target_ira, this_target_ira_int): New conditional variables.
414 (ira_reg_mode_hard_regset, ira_memory_move_cost)
415 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
416 (ira_class_subset_p): Delete.
417 (no_unit_alloc_regs): Redefine as a macro.
418 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
419 (ira_class_hard_regs_num, ira_class_hard_reg_index)
420 (ira_available_class_regs): Delete.
421 (alloc_reg_class_subclasses): Redefine as a macro.
422 (ira_reg_class_cover_size, ira_reg_class_cover)
423 (ira_important_classes_num, ira_important_classes)
424 (ira_important_class_nums, ira_class_translate): Delete.
425 (cover_class_order): Document the variable's lifetime.
426 (reorder_important_classes): Don't set ira_important_class_nums.
427 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
428 (ira_reg_class_super_classes, ira_reg_class_union)
429 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
430 Delete.
431 (setup_reg_class_nregs): Don't set ira_max_regs.
432 (prohibited_class_mode_regs): Delete.
433 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
434 (target_globals): Add ira and ira_int fields.
435 (restore_target_globals): Copy the ira field to this_target_ira
436 and the ira_int field to this_target_ira_int.
437 * target-globals.c: Include ira-int.h.
438 (default_target_globals): Initialize the ira and ira_int fields.
439 (save_target_globals): Likewise.
440
441 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
442
443 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
444 * cfgloop.h (target_cfgloop): New structure.
445 (default_target_cfgloop): Declare.
446 (this_target_cfgloop): Declare as a variable or define as a macro.
447 (target_avail_regs, target_clobbered_regs, target_res_regs)
448 (target_reg_cost, target_spill_cost): Redefine as macros.
449 * cfgloopanal.c (default_target_cfgloop): New variable.
450 (this_target_cfgloop): New conditional variable.
451 (target_avail_regs, target_clobbered_regs, target_res_regs)
452 (target_reg_cost, target_spill_cost): Delete.
453 * target-globals.h (this_target_cfgloop): Declare.
454 (target_globals): Add a cfgloop field.
455 (restore_target_globals): Copy the cfgloop field to
456 this_target_cfgloop.
457 * target-globals.c: Include cfgloop.h.
458 (default_target_globals): Initialize the cfgloop field.
459 (save_target_globals): Likewise.
460
461 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
462
463 * regs.h (target_regs): Add x_direct_load, x_direct_store and
464 x_float_extend_from_mem.
465 (direct_load, direct_store, float_extend_from_mem): New macros.
466 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
467
468 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
469
470 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
471 (target-globals.o): Depend on $(LIBFUNCS_H).
472 * libfuncs.h: Include hashtab.h.
473 (libfunc_entry): Moved from optabs.c.
474 (target_libfuncs): New structure.
475 (default_target_libfuncs): Declare.
476 (this_target_libfuncs): Declare as a variable or define as a macro.
477 (libfunc_table): Redefine as a macro.
478 * optabs.c (default_target_libfuncs): New variable.
479 (this_target_libfuncs): New conditional variable.
480 (libfunc_table): Delete.
481 (libfunc_entry): Moved to optabs.h.
482 (libfunc_hash): Redefine as a macro.
483 (hash_libfunc, eq_libfunc): Fix comments.
484 (init_optabs): Use libfunc_hash to detect cases where the function
485 has already been called. Clear the hash table instead of
486 recreating it.
487 * target-globals.h (this_target_libfuncs): Declare.
488 (target_globals): Add a libfuncs field.
489 (restore_target_globals): Copy the libfuncs field to
490 this_target_libfuncs.
491 * target-globals.c: Include libfuncs.h.
492 (default_target_globals): Initialize the libfuncs field.
493 (save_target_globals): Likewise.
494
495 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
496
497 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
498 in all dependency lists.
499
500 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
501
502 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
503 * optabs.h (target_optabs): New structure.
504 (default_target_optabs): Declare.
505 (this_target_optabs): Declare as a variable or define as a macro.
506 (optab_table, convert_optab_table, direct_optab_table): Redefine
507 as macros.
508 * optabs.c (default_target_optabs): New variable.
509 (this_target_optabs): New conditional variable.
510 (optab_table, convert_optab_table, direct_optab_table): Delete.
511 * target-globals.h (this_target_optabs): Declare.
512 (target_globals): Add a optabs field.
513 (restore_target_globals): Copy the optabs field to
514 this_target_optabs.
515 * target-globals.c: Include expr.h and optabs.h.
516 (default_target_globals): Initialize the optabs field.
517 (save_target_globals): Likewise.
518
519 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
520
521 * flags.h (target_flagstate): Add x_flag_excess_precision.
522 (flag_excess_precision): Redefine as a macro.
523 * toplev.c (flag_excess_precision): Delete.
524
525 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
526
527 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
528 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
529 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
530 (no_caller_save_reg_set): Redefine as a macro.
531 * reload.h (target_reload): Add x_caller_save_initialized_p and
532 x_regno_save_mode.
533 (caller_save_initialized_p): Redefine as a macro.
534 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
535 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
536 (regno_save_mode): Redefine as a macro.
537
538 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
539
540 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
541 * expmed.h: New file.
542 * expmed.c (default_target_costs): New variable.
543 (this_target_costs): New conditional variable.
544 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
545 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
546 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
547 * target-globals.h (this_target_expmed): Declare.
548 (target_globals): Add a expmed field.
549 (restore_target_globals): Copy the expmed field to
550 this_target_expmed.
551 * target-globals.c: Include expmed.h.
552 (default_target_globals): Initialize the expmed field.
553 (save_target_globals): Likewise.
554
555 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
556
557 * Makefile.in (target-globals.o): Depend on reload.h.
558 * reload.h (target_reload): New structure.
559 (default_target_reload): Declare.
560 (this_target_reload): Declare as a variable or define as a macro.
561 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
562 * reload1.c (default_target_reload): New variable
563 (this_target_reload): New conditional variable.
564 (indirect_symref_ok, double_reg_address_ok): Delete.
565 (spill_indirect_levels): Redefine as a macro.
566 * target-globals.h (this_target_reload): Declare.
567 (target_globals): Add a reload field.
568 (restore_target_globals): Copy the reload field to
569 this_target_reload.
570 * target-globals.c: Include hard-reg-set.h.
571 (default_target_globals): Initialize the reload field.
572 (save_target_globals): Likewise.
573
574 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
575
576 * rtl.h (target_rtl): Add x_static_reg_base_value.
577 * alias.c (static_reg_base_value): Redefine as a macro.
578
579 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
580
581 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
582 (GTFILES): Remove reginfo.c.
583 * rtl.h (target_rtl): Add x_top_of_stack.
584 (top_of_stack): New macro.
585 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
586 (top_of_stack): Delete.
587
588 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
589
590 * regs.h (target_regs): Add x_hard_regs_of_mode, x_contains_reg_of_mode,
591 x_move_cost, x_may_move_in_cost, x_may_move_out_cost and
592 x_last_mode_for_init_move_cost.
593 (have_regs_of_mode, contains_reg_of_mode, move_cost)
594 (may_move_in_cost, may_move_out_cost): Redefine as macros.
595 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
596 (may_move_in_cost, may_move_out_cost): Delete.
597 (last_mode_for_init_move_cost): Redefine as a macro.
598
599 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
600
601 * hard-reg-set.h (target_hard_regs): New structure.
602 (default_target_hard_regs): Declare.
603 (this_target_hard_regs): Declare as a variable or define as a macro.
604 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
605 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
606 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
607 (reg_class_size, reg_class_subclasses, reg_class_subunion)
608 (reg_class_superunion, reg_names): Redefine as macros.
609 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
610 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
611 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
612 (reg_class_contents, reg_class_size, reg_class_subclasses)
613 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
614 (default_target_hard_regs): New variable
615 (this_target_hard_regs, initial_call_really_used_regs)
616 (initial_reg_alloc_order): New conditional variables.
617 (initial_reg_names): New variable.
618 (init_reg_sets): Assert that initial_call_really_used_regs,
619 initial_reg_alloc_order and initial_reg_names
620 are all the same size as their variable counterparts. Use them to
621 initialize those counterparts.
622 * target-globals.h (this_target_hard_regs): Declare.
623 (target_globals): Add a hard_regs field.
624 (restore_target_globals): Copy the hard_regs field to
625 this_target_hard_regs.
626 * target-globals.c: Include hard-reg-set.h.
627 (default_target_globals): Initialize the hard_regs field.
628 (save_target_globals): Likewise.
629
630 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
631
632 * Makefile.in (target-globals.o): Depend on $(RTL_H).
633 * rtl.h: (target_rtl): New structure.
634 (default_target_rtl): Declare.
635 (this_target_rtl): Declare as a variable or define as a macro.
636 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
637 Redefine as macros.
638 * emit-rtl.c (default_target_rtl): New variable.
639 (this_target_rtl): New conditional variable.
640 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
641 (return_address_pointer_rtx): Delete.
642 (initial_regno_reg_rtx): New macro.
643 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
644 (init_emit_regs): Likewise.
645 * target-globals.h (this_target_rtl): Declare.
646 (target_globals): Add a rtl field.
647 (restore_target_globals): Copy the rtl field to this_target_rtl.
648 * target-globals.c: Include rtl.h.
649 (default_target_globals): Initialize the rtl field.
650 (save_target_globals): Likewise.
651
652 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
653
654 * Makefile.in (target-globals.o): Depend on $(REGS_H).
655 * regs.h (target_reg_modes): New structure.
656 (default_target_reg_modes): Declare.
657 (this_target_reg_modes): Declare as a variable or define as a macro.
658 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
659 * reginfo.c (default_target_reg_modes): New variable.
660 (this_target_reg_modes): New conditional variable.
661 (hard_regno_nregs, reg_raw_mode): Delete.
662 * target-globals.h (this_target_regs): Declare.
663 (target_globals): Add a regs field.
664 (restore_target_globals): Copy the regs field to this_target_regs.
665 * target-globals.c: Include regs.h.
666 (default_target_globals): Initialize the regs field.
667 (save_target_globals): Likewise.
668
669 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
670
671 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
672 * doc/tm.texi: Regenerate.
673 * Makefile.in (OBJS-common): Add target-globals.o.
674 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
675 and target-globals.h.
676 (target-globals.o): New rule.
677 (GTFILES): Include $(srcdir)/target-globals.h.
678 * defaults.h (SWITCHABLE_TARGET): Define.
679 * gengtype.c (open_base_files): Add target-globals.h to the
680 list of includes.
681 * target-globals.h: New file.
682 * target-globals.c: Likewise.
683
684 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
685 * flags.h (target_flag_state): New structure.
686 (default_target_flag_state): Declare.
687 (this_target_flag_state): Declare as a variable or define as a macro.
688 (align_loops_log): Redefine as a macro.
689 (align_loops_max_skip, align_jumps_log): Likewise.
690 (align_jumps_max_skip, align_labels_log): Likewise.
691 (align_labels_max_skip, align_functions_log): Likewise.
692 * toplev.c (default_target_flag_state): New variable.
693 (this_target_flag_state): New conditional variable.
694 (align_loops_log): Delete.
695 (align_loops_max_skip, align_jumps_log): Likewise.
696 (align_jumps_max_skip, align_labels_log): Likewise.
697 (align_labels_max_skip, align_functions_log): Likewise.
698 * target-globals.h (this_target_flag_state): Declare.
699 (target_globals): Add a flag_state field.
700 (restore_target_globals): Copy the flag_state field to
701 this_target_flag_state.
702 * target-globals.c: Include flags.h.
703 (default_target_globals): Initialize the flag_state field.
704 (save_target_globals): Likewise.
705
706 2010-07-12 Jie Zhang <jie@codesourcery.com>
707
708 * postreload.c (reg_symbol_ref[]): New.
709 (move2add_use_add2_insn): New.
710 (move2add_use_add3_insn): New.
711 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
712 (move2add_note_store): Likewise.
713
714 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
715
716 PR rtl-optimization/44752
717 * genautomata.c (main): Don't emit an empty file even if there
718 is no automaton.
719
720 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
721
722 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
723 ix86_solaris_return_in_memory.
724 * config/i386-protos.h: Reflect this.
725 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
726 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
727 Move ...
728 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
729
730 2010-07-12 Jie Zhang <jie@codesourcery.com>
731
732 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
733 align the stack when it's going to be saved.
734
735 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
736
737 PR pch/14940
738 * config/host-solaris.c (mmap_fixed): New function.
739 (sol_gt_pch_get_address): Use it.
740 (sol_gt_pch_use_address): Likewise.
741
742 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
743
744 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
745 pentiumpro on Solaris 8 and 9/x86.
746 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
747 Document SSE/SSE2 support.
748 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
749
750 2010-07-12 Andi Kleen <ak@linux.intel.com>
751
752 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
753 instead of gcc_assert to print better error message for multiple
754 prevailing defs.
755
756 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
757
758 * config/i386/i386.c (ix86_asm_output_function_label): Change format
759 string placeholder from 0x%x to %#x.
760 (ix86_code_end): Use putc to output '\n'.
761 (ix86_print_operand) <case ';'>: Use putc to output ';'.
762
763 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
764
765 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
766 in directive -export.
767
768 2010-07-10 Anatoly Sokolov <aesok@post.ru>
769
770 * reginfo.h (reg_classes_intersect_p): Change arguments type to
771 reg_class_t.
772 * rtl.h (reg_classes_intersect_p): Adjust prototype.
773
774 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
775 Remove macros.
776 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
777 rs6000_memory_move_cost): Remove
778 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
779 TARGET_MEMORY_MOVE_COST): Define.
780 (rs6000_register_move_cost): Make static. Change arguments type from
781 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
782 (rs6000_memory_move_cost): Make static. Change arguments type from
783 'enum reg_class' to reg_class_t.
784
785 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
786
787 PR middle-end/42505
788 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
789 lookup code into....
790 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
791 new functions.
792 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
793 * cfgloopanal.c (target_clobbered_regs): Define.
794 (init_set_costs): Initialize target_clobbered_regs.
795 (estimate_reg_pressure_cost): Add call_p argument. When true,
796 adjust the number of available registers to exclude the
797 call-clobbered registers.
798 * cfgloop.h (target_clobbered_regs): Declare.
799 (estimate_reg_pressure_cost): Adjust declaration.
800 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
801 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
802 (determine_set_costs): Dump target_clobbered_regs.
803 (loop_body_includes_call): New function.
804 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
805 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
806 call_p flag through.
807 (best_gain_for_invariant): Likewise.
808 (find_invariants_to_move): Likewise.
809 (move_single_loop_invariants): Likewise, using already-computed
810 has_call field.
811
812 2010-07-10 Richard Guenther <rguenther@suse.de>
813 Joern Rennecke <joern.rennecke@embecosm.com>
814
815 PR debug/44832
816 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
817 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
818 unless they have DECL_IGNORED_P set.
819
820 2010-07-10 Richard Guenther <rguenther@suse.de>
821
822 PR lto/44889
823 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
824 helper function.
825 (gimple_types_compatible_p): Similar to pointed-to
826 types allow and merge a mix of complete and incomplete aggregate.
827 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
828 (iterative_hash_gimple_type): Adjust for that.
829
830 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
831
832 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
833
834 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
835
836 PR objc/44140
837 * config/darwin.c (output_objc_section_asm_op): Save and restore
838 section when outputting ObjC section list.
839
840 2010-07-09 Jan Hubicka <jh@suse.cz>
841
842 * lto-streamer-out.c (produce_symtab): Do not write alias
843 cgraph/varpool nodes.
844
845 2010-07-09 Jan Hubicka <jh@suse.cz>
846
847 * tree-inline.c (declare_return_variable): Fix ICE while
848 inlining DECL_BY_VALUE function not in SSA form
849
850 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
851
852 PR tree-optimization/44576
853 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
854 New. Pull out from is_loop_prefetching_profitable to implement
855 the trip count to ahead ratio heuristic.
856 (mem_ref_count_reasonable_p): New. Pull out from
857 is_loop_prefetching_profitable to implement the instruction to
858 memory reference ratio heuristic. Also consider not reasonable if
859 the memory reference count is above a threshold (to avoid
860 explosive compilation time.
861 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
862 is_loop_prefetching_profitable to implement the instruction to
863 prefetch ratio heuristic.
864 (is_loop_prefetching_profitable): Removed.
865 (loop_prefetch_arrays): Distribute the cost analysis across the
866 function to allow early exit of the prefetch analysis.
867 is_loop_prefetching_profitable is splitted into three functions,
868 with each one called as early as possible.
869 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
870 number of memory references in a loop is considered too many.
871
872 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
873
874 * reload.c (find_reloads): Don't clear badop if we have a winreg
875 alternative, but not win, and the class only has fixed regs.
876 * hard-reg-set.h (class_only_fixed_regs): Declare.
877 * reginfo.c (class_only_fixed_regs): New array.
878 (init_reg_sets_1): Initialize it.
879 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
880 discourage alternatives using the stack pointer.
881
882 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
883
884 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
885
886 * config/arm/arm.md (cbranchqi4): Fix array size.
887 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
888 calculating length.
889
890 2010-07-09 Richard Guenther <rguenther@suse.de>
891
892 * gimple.c (struct type_fixup_s): New struct and VEC type.
893 (gimple_register_type_fixups): New static global.
894 (gimple_queue_type_fixup): New function.
895 (gimple_types_compatible_p): Queue type fixups instead of
896 applying them here.
897 (gimple_register_type): Apply queued fixups for the
898 canonical type. Empty the type fixup queue.
899
900 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
901
902 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
903 * configure: Regenerate.
904 * config.in: Ditto.
905
906 2010-07-09 Jakub Jelinek <jakub@redhat.com>
907 Denys Vlasenko <dvlasenk@redhat.com>
908 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
909
910 PR tree-optimization/28632
911 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
912 (extract_range_from_binary_expr): Further optimize
913 BIT_AND_EXPR and BIT_IOR_EXPR.
914
915 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
916
917 * tree-if-conv.c (fold_or_predicates): New.
918 (add_to_predicate_list): Call it.
919
920 2010-07-09 Richard Guenther <rguenther@suse.de>
921
922 PR middle-end/44890
923 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
924 if base is a pointer.
925 * tree-cfg.c (verify_expr): Update MEM_REF checking.
926
927 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
928
929 PR target/44877
930 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
931 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
932 builtin mask for load/store builtins.
933
934 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
935
936 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
937 for "lock addl".
938 * configure: Regenerate.
939 * config/i386/i386.c (ix86_print_operand) <case ';'>:
940 Remove TARGET_MACHO.
941
942 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
943
944 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
945 default ISA flags.
946 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
947
948 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
949
950 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
951
952 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
953
954 * config/picochip/picochip.md (commsTestPort): Emit more
955 efficient sequence for tstport instruction.
956
957 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
958
959 * config/i386/i386.c (ix86_veclib_handler): Make static.
960
961 2010-07-09 Richard Guenther <rguenther@suse.de>
962
963 PR tree-optimization/44852
964 * tree-ssa-alias.c: Include toplev.h for exact_log2.
965 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
966 in MEM_REF.
967 (indirect_refs_may_alias_p): Likewise.
968 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
969
970 2010-07-09 Richard Guenther <rguenther@suse.de>
971
972 PR tree-optimization/44882
973 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
974 sets do conflict.
975 (vectorizable_load): Likewise.
976
977 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
978
979 PR target/40657
980 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
981 All callers changed.
982 Handle the case when we're called for the epilogue.
983 (thumb_unexpanded_epilogue): Use it.
984 (thumb1_expand_epilogue): Likewise.
985
986 2010-07-09 Jakub Jelinek <jakub@redhat.com>
987
988 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
989 both ranges are range_int_cst_p with non-negative minimum,
990 try harder to derive smaller range.
991
992 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
993
994 * genrecog.c: Include diagnostic-core.h before toplev.h.
995 * genoutput.c: Likewise.
996 * genextract.c: Likewise.
997 * genautomata.c: Likewise.
998 * genemit.c: Likewise.
999 * genpeep.c: Likewise.
1000 * genattrtab.c: Likewise.
1001 * genconditions.c: Likewise.
1002 * genpreds.c: Likewise.
1003
1004 2010-07-08 Andi Kleen <ak@linux.intel.com>
1005
1006 * lto-section-in.c (lto_section_name): Add missing comma.
1007
1008 2010-07-08 Anatoly Sokolov <aesok@post.ru>
1009
1010 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
1011 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
1012 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
1013 (ia64_override_options): Rename to...
1014 (ia64_option_override): ... this one. Make static.
1015
1016 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1017
1018 PR middle-end/44843
1019 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
1020 pointed-to type of the offset in a MEM_REF to compute the alignment.
1021
1022 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
1023
1024 * final.c (final_scan_insn): Replace
1025 TARGET_UNWIND_INFO macro check by unwind_emit
1026 hook NULL check.
1027 * targhooks.c (default_unwind_emit): Removed.
1028 * targhooks.h (default_unwind_emit): Likewise.
1029 * target.def (unwind_emit): Set default value to NULL.
1030
1031 * config/i386/i386-protos.h (ix86_asm_output_function_label):
1032 New prototype.
1033 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
1034 for NULL fntype argument and allow 64-bit targets.
1035 (ix86_asm_output_function_label): New function.
1036 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
1037 (ix86_handle_fndecl_attribute): Likewise.
1038 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
1039 * doc/doc/tm.texi: Regenerated.
1040 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
1041 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
1042 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
1043 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1044 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1045 * config/elfos.h: Likewise.
1046 * config/i386/cygming.h: Likewise.
1047 * config/netbsd-aout.h: Likewise.
1048 * config/openbsd.h: Likewise.
1049 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
1050 by ix86_asm_output_function_label function call.
1051 * varasm.c (assemble_start_function): Use
1052 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1053
1054 2010-07-08 Jan Hubicka <jh@suse.cz>
1055
1056 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
1057 New function.
1058 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
1059 Declare.
1060 * ipa-cp.c (ipcp_estimate_growth): Use it.
1061 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
1062 Likewise.
1063
1064 2010-07-08 Jan Hubicka <jh@suse.cz>
1065
1066 * tree-inline.c (declare_return_variable): Allocate annotation for new
1067 temporary.
1068
1069 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1070
1071 PR tree-optimization/44710
1072 * tree-if-conv.c (parse_predicate): New.
1073 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
1074 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
1075
1076 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1077
1078 * common.opt (ftree-loop-if-convert): New flag.
1079 * doc/invoke.texi (ftree-loop-if-convert): Documented.
1080 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
1081 when flag_tree_loop_if_convert is set.
1082
1083 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
1084
1085 * config/i386/i386.c: Use short syntax for function calls
1086 through function pointers.
1087 * config/i386/i386.md: Ditto.
1088
1089 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1090
1091 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
1092
1093 2010-07-08 Richard Guenther <rguenther@suse.de>
1094
1095 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
1096 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
1097
1098 2010-07-08 Jakub Jelinek <jakub@redhat.com>
1099
1100 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
1101 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
1102 (loc_list_from_tree): Likewise.
1103 (output_loc_operands): Handle outputting DW_OP_const[48]u
1104 with loc->dtprel set.
1105 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
1106
1107 2010-07-08 Jan Hubicka <jh@suse.cz>
1108
1109 * ipa.c: Include pointer-set.h
1110 (cgraph_externally_visible_p): New attribute ALIASED;
1111 when in LTO, hidden symbols are local unless they are aliased.
1112 (function_and_variable_visibility): Compute aliased nodes;
1113 handle LTO and hidden symbol on functions and vars.
1114 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
1115 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
1116
1117 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1118
1119 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1120 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1121 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1122 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1123 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1124 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
1125 (ix86_gen_probe_stack_range): Likewise.
1126 (override_options): Set them.
1127 (ix86_target_stack_probe): New function.
1128 (ix86_compute_frame_layout): Force use of push instructions to
1129 save registers if stack checking with probes is enabled.
1130 (get_scratch_register_on_entry): New function.
1131 (release_scratch_register_on_entry): Likewise.
1132 (ix86_adjust_stack_and_probe): Likewise.
1133 (output_adjust_stack_and_probe): Likewise.
1134 (ix86_emit_probe_stack_range): Likewise.
1135 (output_probe_stack_range): Likewise.
1136 (ix86_expand_prologue): Emit stack checking code if static built-in
1137 stack checking is enabled.
1138 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
1139 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
1140 (output_adjust_stack_and_probe): Likewise.
1141 (output_probe_stack_range): Likewise.
1142 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1143 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
1144 TARGET_STACK_PROBE.
1145 (allocate_stack_worker_64): Likewise.
1146 (allocate_stack): Likewise.
1147 (adjust_stack_and_probe): New insn.
1148 (probe_stack_range): Likewise.
1149
1150 2010-07-08 Richard Guenther <rguenther@suse.de>
1151
1152 PR tree-optimization/44831
1153 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
1154 a MEM_REF preserving TBAA info of the original dereference.
1155 Dereference the original pointer if the address is not invariant.
1156 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
1157 at least one invariant address that we are going to dereference.
1158
1159 2010-07-08 Richard Guenther <rguenther@suse.de>
1160
1161 PR tree-optimization/44861
1162 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
1163 information when building MEM_REFs.
1164 (vectorizable_load): Likewise.
1165 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1166
1167 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1168
1169 * config/sol2-c.c: Do not include diagnostic-core.h.
1170
1171 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1172
1173 PR bootstrap/44768
1174 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
1175 with respect to current_function_decl. Pass decl of the function.
1176 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
1177 * ipa-inline.c (compute_inline_parameters): Pass decl to
1178 estimated_stack_frame_size.
1179
1180 2010-07-08 Richard Guenther <rguenther@suse.de>
1181
1182 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1183 New function.
1184 (valueize_refs): Call it.
1185
1186 2010-07-08 Richard Guenther <rguenther@suse.de>
1187
1188 PR rtl-optimization/44838
1189 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
1190 SSA form do not use pointer equivalence.
1191
1192 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1193
1194 * dwarf2out.c (AT_linkage_name): Delete.
1195 (add_linkage_attr): New function.
1196 (add_linkage_name): Call it to emit the linkage attribute.
1197 (dwarf2out_finish): Likewise.
1198 (move_linkage_attr): Explicitly accept both attribute variants.
1199
1200 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1201
1202 * toplev.h: Do not include diagnostic-core.h.
1203 Include diagnostic-core.h in every file that includes toplev.h.
1204 * c-tree.h: Do not include toplev.h.
1205 * pretty-print.h: Update comment.
1206 * Makefile.in: Update dependencies.
1207 * alias.c: Include diagnostic-core.h in every file that includes
1208 toplev.h.
1209 * attribs.c: Likewise.
1210 * auto-inc-dec.c: Likewise.
1211 * bb-reorder.c: Likewise.
1212 * bt-load.c: Likewise.
1213 * caller-save.c: Likewise.
1214 * calls.c: Likewise.
1215 * cfg.c: Likewise.
1216 * cfganal.c: Likewise.
1217 * cfgbuild.c: Likewise.
1218 * cfgcleanup.c: Likewise.
1219 * cfghooks.c: Likewise.
1220 * cfgloop.c: Likewise.
1221 * combine.c: Likewise.
1222 * config/alpha/alpha.c: Likewise.
1223 * config/arc/arc.c: Likewise.
1224 * config/arm/arm.c: Likewise.
1225 * config/arm/pe.c: Likewise.
1226 * config/avr/avr.c: Likewise.
1227 * config/bfin/bfin.c: Likewise.
1228 * config/cris/cris.c: Likewise.
1229 * config/crx/crx.c: Likewise.
1230 * config/darwin-c.c: Likewise.
1231 * config/darwin.c: Likewise.
1232 * config/fr30/fr30.c: Likewise.
1233 * config/frv/frv.c: Likewise.
1234 * config/h8300/h8300.c: Likewise.
1235 * config/host-darwin.c: Likewise.
1236 * config/i386/i386.c: Likewise.
1237 * config/i386/netware.c: Likewise.
1238 * config/i386/nwld.c: Likewise.
1239 * config/i386/winnt-cxx.c: Likewise.
1240 * config/i386/winnt-stubs.c: Likewise.
1241 * config/i386/winnt.c: Likewise.
1242 * config/ia64/ia64-c.c: Likewise.
1243 * config/ia64/ia64.c: Likewise.
1244 * config/iq2000/iq2000.c: Likewise.
1245 * config/lm32/lm32.c: Likewise.
1246 * config/m32c/m32c-pragma.c: Likewise.
1247 * config/m32c/m32c.c: Likewise.
1248 * config/m32r/m32r.c: Likewise.
1249 * config/m68hc11/m68hc11.c: Likewise.
1250 * config/m68k/m68k.c: Likewise.
1251 * config/mcore/mcore.c: Likewise.
1252 * config/mep/mep-pragma.c: Likewise.
1253 * config/mep/mep.c: Likewise.
1254 * config/mmix/mmix.c: Likewise.
1255 * config/mn10300/mn10300.c: Likewise.
1256 * config/moxie/moxie.c: Likewise.
1257 * config/pa/pa.c: Likewise.
1258 * config/pdp11/pdp11.c: Likewise.
1259 * config/picochip/picochip.c: Likewise.
1260 * config/rs6000/rs6000-c.c: Likewise.
1261 * config/rs6000/rs6000.c: Likewise.
1262 * config/rx/rx.c: Likewise.
1263 * config/s390/s390.c: Likewise.
1264 * config/score/score.c: Likewise.
1265 * config/score/score3.c: Likewise.
1266 * config/score/score7.c: Likewise.
1267 * config/sh/sh.c: Likewise.
1268 * config/sh/symbian-base.c: Likewise.
1269 * config/sh/symbian-c.c: Likewise.
1270 * config/sh/symbian-cxx.c: Likewise.
1271 * config/sol2-c.c: Likewise.
1272 * config/sol2.c: Likewise.
1273 * config/sparc/sparc.c: Likewise.
1274 * config/spu/spu.c: Likewise.
1275 * config/stormy16/stormy16.c: Likewise.
1276 * config/v850/v850-c.c: Likewise.
1277 * config/v850/v850.c: Likewise.
1278 * config/vax/vax.c: Likewise.
1279 * config/vxworks.c: Likewise.
1280 * config/xtensa/xtensa.c: Likewise.
1281 * convert.c: Likewise.
1282 * cse.c: Likewise.
1283 * cselib.c: Likewise.
1284 * dbgcnt.c: Likewise.
1285 * dbxout.c: Likewise.
1286 * ddg.c: Likewise.
1287 * dominance.c: Likewise.
1288 * emit-rtl.c: Likewise.
1289 * explow.c: Likewise.
1290 * expmed.c: Likewise.
1291 * fixed-value.c: Likewise.
1292 * fold-const.c: Likewise.
1293 * fwprop.c: Likewise.
1294 * gcse.c: Likewise.
1295 * ggc-common.c: Likewise.
1296 * ggc-page.c: Likewise.
1297 * ggc-zone.c: Likewise.
1298 * gimple-low.c: Likewise.
1299 * gimplify.c: Likewise.
1300 * graph.c: Likewise.
1301 * haifa-sched.c: Likewise.
1302 * ifcvt.c: Likewise.
1303 * implicit-zee.c: Likewise.
1304 * integrate.c: Likewise.
1305 * ira-build.c: Likewise.
1306 * ira-color.c: Likewise.
1307 * ira-conflicts.c: Likewise.
1308 * ira-costs.c: Likewise.
1309 * ira-lives.c: Likewise.
1310 * ira.c: Likewise.
1311 * lists.c: Likewise.
1312 * loop-doloop.c: Likewise.
1313 * loop-iv.c: Likewise.
1314 * lto-opts.c: Likewise.
1315 * lto-symtab.c: Likewise.
1316 * main.c: Likewise.
1317 * modulo-sched.c: Likewise.
1318 * optabs.c: Likewise.
1319 * params.c: Likewise.
1320 * plugin.c: Likewise.
1321 * postreload-gcse.c: Likewise.
1322 * postreload.c: Likewise.
1323 * predict.c: Likewise.
1324 * profile.c: Likewise.
1325 * real.c: Likewise.
1326 * regcprop.c: Likewise.
1327 * reginfo.c: Likewise.
1328 * regmove.c: Likewise.
1329 * reorg.c: Likewise.
1330 * resource.c: Likewise.
1331 * rtl.c: Likewise.
1332 * rtlanal.c: Likewise.
1333 * sched-deps.c: Likewise.
1334 * sched-ebb.c: Likewise.
1335 * sched-rgn.c: Likewise.
1336 * sdbout.c: Likewise.
1337 * sel-sched-dump.c: Likewise.
1338 * sel-sched-ir.c: Likewise.
1339 * simplify-rtx.c: Likewise.
1340 * stmt.c: Likewise.
1341 * stor-layout.c: Likewise.
1342 * store-motion.c: Likewise.
1343 * targhooks.c: Likewise.
1344 * tree-cfg.c: Likewise.
1345 * tree-cfgcleanup.c: Likewise.
1346 * tree-dump.c: Likewise.
1347 * tree-eh.c: Likewise.
1348 * tree-inline.c: Likewise.
1349 * tree-nomudflap.c: Likewise.
1350 * tree-object-size.c: Likewise.
1351 * tree-optimize.c: Likewise.
1352 * tree-outof-ssa.c: Likewise.
1353 * tree-phinodes.c: Likewise.
1354 * tree-profile.c: Likewise.
1355 * tree-ssa-ccp.c: Likewise.
1356 * tree-ssa-coalesce.c: Likewise.
1357 * tree-ssa-live.c: Likewise.
1358 * tree-ssa-loop-niter.c: Likewise.
1359 * tree-ssa-loop-prefetch.c: Likewise.
1360 * tree-ssa-loop.c: Likewise.
1361 * tree-ssa-structalias.c: Likewise.
1362 * tree-ssa-uninit.c: Likewise.
1363 * tree-ssa.c: Likewise.
1364 * tree-vect-data-refs.c: Likewise.
1365 * tree-vect-loop-manip.c: Likewise.
1366 * tree-vect-loop.c: Likewise.
1367 * tree-vect-patterns.c: Likewise.
1368 * tree-vect-stmts.c: Likewise.
1369 * tree-vrp.c: Likewise.
1370 * varasm.c: Likewise.
1371 * vec.c: Likewise.
1372 * web.c: Likewise.
1373 * xcoffout.c: Likewise.
1374
1375 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
1376
1377 * gengtype.c (write_field_root): New function.
1378 (write_root): Use it.
1379
1380 2010-07-07 Wei Guozhi <carrot@google.com>
1381
1382 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1383 of lowest bits to lshift/compare): Add a missing line.
1384
1385 2010-07-07 Wei Guozhi <carrot@google.com>
1386
1387 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1388 of lowest bits to lshift/compare): New.
1389
1390 2010-07-07 Tom Tromey <tromey@redhat.com>
1391
1392 * doc/tm.texi: Update.
1393 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1394 Add @hook.
1395 * target.def (want_debug_pub_sections): New hook.
1396 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1397 * dwarf2out.c (add_pubname_string): Check
1398 targetm.want_debug_pub_sections.
1399 (add_pubname): Likewise.
1400 (add_pubtype): Likewise.
1401
1402 2010-07-07 Jie Zhang <jie@codesourcery.com>
1403
1404 * genautomata.c (output_automata_list_min_issue_delay_code):
1405 Correctly decompress min_issue_delay.
1406
1407 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1408
1409 PR rtl-optimization/44404
1410 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1411 possible, use reg_overlap_mentioned_p instead.
1412
1413 2010-07-07 Duncan Sands <baldrick@free.fr>
1414
1415 PR middle-end/41355
1416 * tree.c (build_function_type_skip_args): Copy the original type using
1417 build_distinct_type_copy rather than copy_node.
1418
1419 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 PR target/44850
1422 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1423 revision 161876.
1424 (ix86_expand_prologue): Likewise.
1425 (ix86_handle_fndecl_attribute): Likewise.
1426 (ix86_asm_declare_function_name): Likewise.
1427 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1428 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1429 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1430 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1431 * doc/extend.texi: Likewise.
1432
1433 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1434
1435 PR target/44844
1436 * config/i386/i386.md (rdrand<mode>): Changed to expand to
1437 retry if the carry flag isn't valid.
1438 (rdrand<mode>_1): New.
1439
1440 2010-07-07 Richard Guenther <rguenther@suse.de>
1441
1442 PR middle-end/44790
1443 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1444 for expanding the constant offset for MEM_REFs.
1445
1446 2010-07-07 Richard Guenther <rguenther@suse.de>
1447
1448 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1449 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
1450 * gimple.h (is_gimple_operand): Remove.
1451 * gimple.c (is_gimple_operand): Likewise.
1452 (walk_gimple_op): Fix wi->val_only setting for calls.
1453 * tree-cfg.c (verify_gimple_call): Fix argument validation.
1454 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1455 invalid gimple calls.
1456
1457 2010-07-06 Jan Hubicka <jh@suse.cz>
1458
1459 * lto-cgraph.c (output_cgraph): Add missing declaration.
1460
1461 2010-07-06 Jan Hubicka <jh@suse.cz>
1462
1463 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1464 partition.
1465
1466 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
1467
1468 * doc/gimple.texi (GIMPLE_DEBUG): Document.
1469 * doc/rtl.texi (Debug Information): New node.
1470 (NOTE_INSN_VAR_LOCATION): Document.
1471 (debug_insn): Likewise.
1472 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1473
1474 2010-07-07 Jan Hubicka <jh@suse.cz>
1475
1476 With parts by Richard Guenther.
1477
1478 PR middle-end/44813
1479 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1480 for functions passed by reference.
1481 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1482 in memory when passed by reference.
1483 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1484 beggining.
1485 * ipa-split.c (split_function): Cleanup way return value is passed;
1486 handle SSA DECL_BY_REFERENCE retvals.
1487 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1488 DECL_BY_REFERENCE is set.
1489 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1490 find_what_p_points_to): Handle RESULT_DECL.
1491 * tree-inline.c (declare_return_variable): Get new entry_block argument;
1492 when passing by reference ensure that RESULT_DECL is gimple_val.
1493 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1494 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1495
1496 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1497
1498 PR rtl-optimization/44787
1499 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1500 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1501
1502 2010-07-06 Jan Hubicka <jh@suse.cz>
1503
1504 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1505 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1506 with body can prevail.
1507 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1508 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1509 * cgraph.c (cgraph_get_node_or_alias): New function.
1510 * cgraph.h (cgraph_get_node_or_alias): Declare.
1511
1512 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
1513
1514 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1515 support.
1516 (ix86_expand_prologue): Likewise.
1517 (ix86_handle_fndecl_attribute): Likewise.
1518 (ix86_asm_declare_function_name): New function for
1519 ASM_DECLARE_FUNCTION_NAME.
1520 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
1521 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
1522 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
1523 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
1524 * doc/extend.texi: Adjust documentation about ms_hook_prologue
1525 attribute.
1526
1527 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1528
1529 * config/i386/i386.md (immediate_operand): New mode attribute.
1530
1531 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
1532 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
1533 using P mode iterator.
1534 (pro_epilogue_adjust_stack_di_2): Rename from
1535 pro_epilogue_adjust_stack_rex64_2.
1536
1537 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
1538
1539 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1540
1541 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
1542 through gen_mov_insv_1 function pointer.
1543 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
1544 gen_truncxf<mode>2 through gen_truncxf function pointer.
1545 (remainder<mode>3): Ditto.
1546 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
1547 (allocate_stack): Call gen_allocate_stack_worker_64 or
1548 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
1549 function pointer.
1550 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
1551 function pointer.
1552
1553 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1554
1555 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
1556 operand constraint instead of <r><i>m.
1557
1558 2010-07-06 Richard Guenther <rguenther@suse.de>
1559
1560 PR middle-end/44828
1561 * convert.c (convert_to_integer): Watch out for overflowing
1562 MULT_EXPR as well.
1563
1564 2010-07-05 Jan Hubicka <jh@suse.cz>
1565
1566 * lto-streamer.c (write_symbol_vec): Rename to ...
1567 (write_symbol) ... this one; write only symbol given and when
1568 present in cache. Sanity check that what is defined is present
1569 in cgraph/varpool with body/finalized decl.
1570 (write_symbols_of_kind): Remove.
1571 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
1572 pairs to produce symtab.
1573 (produce_asm_for_decls): Update call of produce_symtab; don't do so
1574 when doing WPA streaming.
1575
1576 2010-07-05 Jan Hubicka <jh@suse.cz>
1577
1578 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
1579 function is still available to fold into.
1580
1581 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1582
1583 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
1584 * function.h (struct_function): Change type of local_decls field
1585 to a VEC.
1586 (add_local_decl): New function.
1587 (FOR_EACH_LOCAL_DECL): New macro.
1588 * cfgexpand.c (init_vars_expansion): Adjust for new type of
1589 cfun->local_decls.
1590 (estimated_stack_frame_size): Likewise.
1591 (expand_used_vars): Likewise.
1592 * cgraphbuild.c (build_cgraph_edges): Likewise.
1593 * function.c (instantiate_decls_1): Likewise.
1594 * ipa-struct-reorg.c (build_data_structure): Likewise.
1595 * ipa-type-escape.c (analyze_function): Likewise.
1596 * lto-streamer-in.c (input_function): Likewise.
1597 * lto-streamer-out.c (output_function): Likewise.
1598 * tree-ssa-live.c (remove_unused_locals): Likewise.
1599 * tree.c (free_lang_data_in_decl): Likewise.
1600 (find_decls_types_in_node): Likewise.
1601 * omp-low.c (remove_exit_barrier): Likewise.
1602 (expand_omp_taskreg): Likewise.
1603 (list2chain): Rename to...
1604 (vec2chain): ...this. Adjust.
1605 * cgraphunit.c (assemble_thunk): Call add_local_decl.
1606 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1607 * gimple-low.c (record_vars_into): Likewise.
1608 * tree-inline.c (remap_decls): Likewise.
1609 (declare_return_variable): Likewise.
1610 (declare_inline_vars): Likewise.
1611 (copy_forbidden): Adjust for new type of cfun->local_decls.
1612 (add_local_variables): New function.
1613 (expand_call_inline): Call it.
1614 (tree_function_versioning): Likewise.
1615
1616 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
1617
1618 AVX Programming Reference (June, 2010)
1619 * config/i386/cpuid.h (bit_F16C): New.
1620 (bit_RDRND): Likewise.
1621 (bit_FSGSBASE): Likewise.
1622
1623 * config/i386/i386-builtin-types.def: Add
1624 "DEF_FUNCTION_TYPE (UINT16)", function types for
1625 float16 <-> float conversions and
1626 "DEF_FUNCTION_TYPE (VOID, UINT64)".
1627
1628 * config/i386/i386-c.c (ix86_target_macros_internal): Support
1629 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1630 OPTION_MASK_ISA_F16C.
1631
1632 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1633 (OPTION_MASK_ISA_RDRND_SET): Likewise.
1634 (OPTION_MASK_ISA_F16C_SET): Likewise.
1635 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1636 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1637 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1638 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1639 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1640 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1641 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1642 (override_options): Handle them.
1643 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1644 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1645 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1646 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1647 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1648 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1649 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1650 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1651 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1652 (bdesc_args): Likewise.
1653 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1654 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1655 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
1656 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
1657 Handle non-memory store.
1658
1659 * config/i386/i386.h (TARGET_FSGSBASE): New.
1660 (TARGET_RDRND): Likewise.
1661 (TARGET_F12C): Likewise.
1662
1663 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
1664 (UNSPEC_VCVTPS2PH): Likewise.
1665 (UNSPECV_RDFSBASE): Likewise.
1666 (UNSPECV_RDGSBASE): Likewise.
1667 (UNSPECV_WRFSBASE): Likewise.
1668 (UNSPECV_WRGSBASE): Likewise.
1669 (UNSPECV_RDRAND): Likewise.
1670 (rdfsbase<mode>): Likewise.
1671 (rdgsbase<mode>): Likewise.
1672 (wrfsbase<mode>): Likewise.
1673 (wrgsbase<mode>): Likewise.
1674 (rdrand<mode>): Likewise.
1675
1676 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
1677
1678 * config/i386/immintrin.h (_rdrand_u16): New.
1679 (_rdrand_u32): Likewise.
1680 (_readfsbase_u32): Likewise.
1681 (_readfsbase_u64): Likewise.
1682 (_readgsbase_u32): Likewise.
1683 (_readgsbase_u64): Likewise.
1684 (_writefsbase_u32): Likewise.
1685 (_writefsbase_u64): Likewise.
1686 (_writegsbase_u32): Likewise.
1687 (_writegsbase_u64): Likewise.
1688 (_rdrand_u64): Likewise.
1689 (_cvtsh_ss): Likewise.
1690 (_mm_cvtph_ps): Likewise.
1691 (_mm256_cvtph_ps): Likewise.
1692 (_cvtss_sh): Likewise.
1693 (_mm_cvtps_ph): Likewise.
1694 (_mm256_cvtps_ph): Likewise.
1695
1696 * config/i386/sse.md (vcvtph2ps): New.
1697 (*vcvtph2ps_load): Likewise.
1698 (vcvtph2ps256): Likewise.
1699 (vcvtps2ph): Likewise.
1700 (*vcvtps2ph): Likewise.
1701 (*vcvtps2ph_store): Likewise.
1702 (vcvtps2ph256): Likewise.
1703
1704 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
1705
1706 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
1707
1708 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
1709
1710 PR bootstrap/44512
1711 * genenums.c (main): Output include of insn-constants.h
1712 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
1713
1714 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
1715
1716 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
1717 (override_options): Initialize it.
1718 (ix86_expand_prologue): Use it.
1719
1720 2010-07-05 Jakub Jelinek <jakub@redhat.com>
1721
1722 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
1723
1724 2010-07-05 Anatoly Sokolov <aesok@post.ru>
1725
1726 * double-int.h (fit_double_type): Remove declaration.
1727 * double-int.c (fit_double_type): Remove function.
1728 * tree.h (int_fits_type_p): Adjust prototype.
1729 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
1730 instead of fit_double_type.
1731 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
1732 instead of fit_double_type and build_int_cst_wide.
1733 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
1734 instead of fit_double_type and build_int_cst_wide.
1735 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
1736 of fit_double_type.
1737
1738 2010-07-05 Jan Hubicka <jh@suse.cz>
1739
1740 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
1741 in_other_partition.
1742 * lto-cgraph.c (referenced_from_other_partition_p,
1743 reachable_from_other_partition_p): Use in_other_partition flags.
1744 (output_node, output_varpool_node): COMDAT nodes always have private
1745 copies and thus are never used from other partition.
1746
1747 2010-07-05 Anatoly Sokolov <aesok@post.ru>
1748
1749 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1750 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
1751 * config/ia64/ia64.c Include reload.h.
1752 (ia64_memory_move_cost): New function.
1753 (TARGET_MEMORY_MOVE_COST): Define.
1754 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
1755 memory_move_cost.
1756
1757 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
1758
1759 PR middle-end/42505
1760 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
1761 comments about cost model.
1762 (try_add_cand_for): Add second strategy for choosing initial set
1763 based on original IVs, controlled by ORIGINALP argument.
1764 (get_initial_solution): Add ORIGINALP argument.
1765 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
1766 (find_optimal_iv_set): Try two different strategies for choosing
1767 the IV set, and return the one with lower cost.
1768
1769 2010-07-05 Richard Guenther <rguenther@suse.de>
1770
1771 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
1772
1773 2010-07-05 Richard Guenther <rguenther@suse.de>
1774
1775 * tree.c (reference_alias_ptr_type): New function.
1776 * tree.h (reference_alias_ptr_type): Declare.
1777 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
1778 allow non-TARGET_MEM_REF new refs.
1779 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
1780 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
1781 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
1782 (create_mem_ref): Get alias pointer type. Adjust calls to
1783 create_mem_ref_raw.
1784 (maybe_fold_tmr): Likewise.
1785 * tree-flow.h (create_mem_ref): Adjust prototype.
1786
1787 2010-07-05 Jakub Jelinek <jakub@redhat.com>
1788
1789 PR c++/44808
1790 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
1791 *from_p is VAR_DECL.
1792
1793 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1794
1795 * tree.h (build_call_list): Remove.
1796 * tree.c (build_call_list): Remove.
1797
1798 2010-07-05 Richard Guenther <rguenther@suse.de>
1799
1800 * double-int.h (double_int_sub): Declare.
1801 * double-int.c (double_int_sub): New function.
1802 * dwarf2out.c (field_byte_offset): Use it.
1803 * fixed-value.c (do_fixed_add): Likewise.
1804 (do_fixed_multiply): Likewise.
1805 (do_fixed_divide): Likewise.
1806 * tree-predcom.c (add_ref_to_chain): Likewise.
1807 (determine_roots_comp): Likewise.
1808 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
1809
1810 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1811
1812 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
1813 implementations.
1814
1815 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
1816
1817 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
1818 * arm-modes.def (CC_NOTB): Don't define.
1819 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
1820 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
1821 (LTUGEU): New code_iterator.
1822 (cnb, optab): New corresponding code_attrs.
1823 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
1824 to canonical form. Operands 1 and 2 are commutative. Parametrize
1825 using LTUGEU.
1826 (addsi3_carryin_shift_<optab>): Likewise.
1827 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
1828 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
1829 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
1830 (subsi3_compare): Renamed from subsi3_compare0_c.
1831 Change CC_NOTB to CC.
1832 (arm_subsi3_insn): Allow constants for operand 0.
1833 (compare_scc peephole for eq case): New.
1834 (compare_scc splitters): Change CC_NOTB to CC.
1835
1836 2010-07-05 Richard Guenther <rguenther@suse.de>
1837
1838 * tree-ssa-loop-im.c (for_each_index): Do not handle
1839 ALIGN_INDIRECT_REF.
1840 (gen_lsm_tmp_name): Likewise.
1841 * tree-dump.c (dequeue_and_dump): Likewise.
1842 * tree-pretty-print.c (dump_generic_node): Likewise.
1843 (op_code_prio): Likewise.
1844 (op_symbol_code): Likewise.
1845 * tree.c (staticp): Likewise.
1846 (build1_stat): Likewise.
1847 * tree.h (INDIRECT_REF_P): Likewise.
1848 * fold-const.c (maybe_lvalue_p): Likewise.
1849 (operand_equal_p): Likewise.
1850 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1851 (ao_ref_init_from_vn_reference): Likewise.
1852 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1853 (find_interesting_uses_address): Likewise.
1854 * dwarf2out.c (loc_list_from_tree): Likewise.
1855 * gimplify.c (gimplify_expr): Likewise.
1856 * tree-eh.c (tree_could_trap_p): Likewise.
1857 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1858 * cfgexpand.c (expand_debug_expr): Likewise.
1859 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1860 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1861 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1862 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
1863 * tree-ssa-operands.c (get_expr_operands): Likewise.
1864 * expr.c (safe_from_p): Likewise.
1865 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
1866 * tree-vect-data-refs.c (vect_setup_realignment): Build
1867 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
1868 * tree-vect-stmts.c (vectorizable_load): Likewise.
1869 * tree.def (ALIGN_INDIRECT_REF): Remove.
1870
1871 2010-07-05 Richard Guenther <rguenther@suse.de>
1872
1873 PR tree-optimization/44784
1874 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
1875 for inserted stmts.
1876 (find_or_generate_expression): Fix SCCVN insertion check.
1877
1878 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
1879
1880 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
1881 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1882 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
1883 directives.
1884
1885 2010-07-05 Ira Rosen <irar@il.ibm.com>
1886
1887 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
1888 statements that are not vectorized.
1889 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1890 in INSIDE_COST.
1891
1892 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
1893
1894 PR bootstrap/44820
1895 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1896
1897 2010-07-05 Richard Guenther <rguenther@suse.de>
1898
1899 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1900 RESULT_DECLs properly.
1901
1902 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
1903
1904 PR rtl-optimization/44695
1905 * config/i386/i386.md (extract_code): Removed.
1906 (<u>divmodqi4): Likewise.
1907 (divmodqi4): New.
1908 (udivmodqi4): Likewise.
1909 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1910 (udivmodhiqi3): Likewise.
1911
1912 2010-07-04 Jan Hubicka <jh@suse.cz>
1913
1914 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1915
1916 2010-07-04 Jan Hubicka <jh@suse.cz>
1917
1918 * cgraphunit.c (init_cgraph): Only initialize dump file if it
1919 is not already initialized.
1920
1921 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1922
1923 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1924 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1925 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1926 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1927 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1928 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1929 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
1930 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
1931 (sync_new_nand_optab): Redefine as macros.
1932 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
1933 Delete.
1934 (direct_optab_index): New enum.
1935 (direct_optab_d): New structure.
1936 (direct_optab): New typedef.
1937 (direct_optab_table): Declare.
1938 (direct_optab_handler, set_direct_optab_handler): New functions.
1939 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
1940 (sync_lock_release_optab): New macros.
1941 * optabs.c (direct_optab_table): New variable.
1942 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
1943 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
1944 cmpstr_optab and cmpstrn_optab.
1945 (emit_conditional_move): Likewise for movcc_optab.
1946 (can_conditionally_move_p): Likewise for movcc_gen_code.
1947 (init_insn_codes): Clear direct_optab_table.
1948 (init_optabs): Don't initialize the new "direct optabs" here.
1949 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
1950 vcond_gen_code.
1951 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
1952 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
1953 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
1954 (expand_sync_operation): Likewise other sync_*_optabs.
1955 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
1956 to sync_compare_and_swap_optab.
1957 (expand_sync_lock_test_and_set): Use direct_optab_handler for
1958 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
1959 to the names of both.
1960 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
1961 cmpstr_optab and cmpstrn_optab.
1962 (expand_builtin_lock_release): Likewise sync_lock_release.
1963 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
1964 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
1965 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
1966 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
1967 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
1968 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
1969 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
1970 (sync_lock_test_and_set, sync_lock_release): Delete.
1971 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
1972 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
1973 * genopinit.c (optabs): Use set_direct_optab_handler for the new
1974 macro optabs.
1975 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
1976 the "optab" local variable. Use direct_optab_handler for optab and
1977 sync_compare_and_swap_optab.
1978 * reload1.c (reload_in_optab, reload_out_optab): Delete.
1979 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
1980 reload_in_optab and reload_out_optab.
1981 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1982 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
1983 * config/pa/pa.c (pa_secondary_reload): Likewise.
1984 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
1985 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
1986 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
1987 (VMSupportsCS8_builtin): Likewise.
1988
1989 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1990
1991 * optabs.h (optab_handlers): Change type of insn_code to int.
1992 (optab_handler, set_optab_handler, convert_optab_handler)
1993 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1994 CODE_FOR_nothing".
1995 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1996 (init_insn_codes): Zero both the above arrays.
1997 (init_optabs): Never call init_insn_codes first time around.
1998
1999 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2000
2001 * optabs.h (optab_handler, convert_optab_handler): Turn into
2002 inline functions that return an insn code.
2003 (set_optab_handler, set_convert_optab_handler): New functions.
2004 * builtins.c: Replace optab_handler(X)->insn_code with
2005 optab_handler or set_optab_handler thoughout. Likewise
2006 convert_optab_handler(X)->insn_code with convert_optab_handler
2007 and set_convert_optab_handler.
2008 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
2009 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
2010 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
2011 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2012 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
2013 config/spu/spu.c: Likewise.
2014
2015 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
2016
2017 PR target/44531
2018 * config.gcc (sh*-*-*): Use regular expressions instead of
2019 the 'i' modifier for sed substitutions.
2020
2021 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
2022
2023 * gimple.c (gimple_body): Comments added.
2024
2025 2010-07-04 Richard Guenther <rguenther@suse.de>
2026
2027 PR middle-end/44809
2028 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
2029 of an INDIRECT_REF.
2030
2031 2010-07-04 Richard Guenther <rguenther@suse.de>
2032
2033 PR tree-optimization/44479
2034 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
2035 extra SSA name copy statements which preserves points-to
2036 information.
2037 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2038 Copy points-to information for all pointers. Properly handle
2039 MEM_REFs.
2040 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
2041 copy statements.
2042 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
2043 dependency.
2044
2045 2010-07-04 Richard Guenther <rguenther@suse.de>
2046
2047 PR middle-end/44785
2048 * tree-inline.c (initialize_inlined_parameters): Do not
2049 re-use pointer-map slot over remap_type call.
2050
2051 2010-07-04 Richard Guenther <rguenther@suse.de>
2052
2053 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
2054
2055 2010-07-04 Richard Guenther <rguenther@suse.de>
2056
2057 PR tree-optimization/44656
2058 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
2059 again after value-replacing in the defintions lhs.
2060
2061 2010-07-04 Ira Rosen <irar@il.ibm.com>
2062 Revital Eres <eres@il.ibm.com>
2063
2064 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
2065 Document new arguments.
2066 * doc/tm.texi: Regenerate.
2067 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
2068 Handle unaligned store.
2069 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
2070 * target.def (builtin_vectorization_cost): Add new arguments.
2071 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
2072 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
2073 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
2074 (vect_vfa_segment_size): Fix indentation.
2075 * tree-vectorizer.h (struct _vect_peel_info): New.
2076 (struct _vect_peel_extended_info): New.
2077 (struct _loop_vec_info): Add new field for peeling hash table and a
2078 macro for its access.
2079 (VECT_MAX_COST): Define.
2080 (vect_get_load_cost): Declare.
2081 (vect_get_store_cost, vect_get_known_peeling_cost,
2082 vect_get_single_scalar_iteraion_cost): Likewise.
2083 (vect_supportable_dr_alignment): Add new argument.
2084 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
2085 field.
2086 (destroy_loop_vec_info): Free peeling hash table.
2087 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
2088 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
2089 vect_analyze_slp. Fix indentation.
2090 (vect_get_single_scalar_iteraion_cost): New function.
2091 (vect_get_known_peeling_cost): Likewise.
2092 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
2093 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
2094 statement. Move outside cost calculation inside unknown peeling case.
2095 Call vect_get_known_peeling_cost for known amount of peeling.
2096 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
2097 reference to the print message of forced alignment.
2098 (vect_verify_datarefs_alignment): Update call to
2099 vect_supportable_dr_alignment.
2100 (vect_get_data_access_cost): New function.
2101 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
2102 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
2103 vect_peeling_hash_choose_best_peeling): Likewise.
2104 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
2105 to store all the accesses in the loop and find best possible access to
2106 align using peeling for known alignment case. For unknown alignment
2107 check if stores are preferred or if peeling is worthy.
2108 (vect_find_same_alignment_drs): Analyze pairs of loads too.
2109 (vect_supportable_dr_alignment): Add new argument and check aligned
2110 accesses according to it.
2111 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
2112 (cost_for_stmt): Call vect_get_stmt_cost.
2113 (vect_model_simple_cost): Likewise.
2114 (vect_model_store_cost): Call vect_get_stmt_cost. Call
2115 vect_get_store_cost to calculate the cost of the statement.
2116 (vect_get_store_cost): New function.
2117 (vect_model_load_cost): Call vect_get_stmt_cost. Call
2118 vect_get_load_cost to calculate the cost of the statement.
2119 (vect_get_load_cost): New function.
2120 (vectorizable_store): Update call to vect_supportable_dr_alignment.
2121 (vectorizable_load): Likewise.
2122 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
2123 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
2124 arguments. Handle unaligned store.
2125 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
2126 (rs6000_builtin_support_vector_misalignment): Return true for word and
2127 double word alignments for VSX.
2128 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
2129 vect_supportable_dr_alignment and builtin_vectorization_cost.
2130
2131 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2132
2133 PR target/44597
2134 * config/pa/predicates.md (prefetch_cc_operand): Remove.
2135 (prefetch_nocc_operand): Likewise.
2136 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
2137 (prefetch_20): New insn.
2138 (prefetch_cc): Remove.
2139 (prefetch_nocc): Likewise.
2140
2141 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2142
2143 * expr.c (vector_mode_valid_p): Move to c-common.c.
2144 * expr.h (vector_mode_valid_p): Do not declare here.
2145 * system.h: Poison GCC_EXPR_H in front-ends.
2146 * Makefile.in: Update dependencies.
2147
2148 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2149
2150 PR target/44705
2151 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
2152
2153 2010-07-03 Jan Hubicka <jh@suse.cz>
2154
2155 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
2156 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
2157 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
2158 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
2159 Likewise.
2160
2161 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
2162 Update timevars.V
2163 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
2164 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
2165 TV_IPA_LTO_DECL_OUT): New.
2166 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
2167
2168 2010-07-03 Jan Hubicka <jh@suse.cz>
2169
2170 * ipa-inline.c (update_edge_key): Break out from ...
2171 update_callers_keys): ... here;
2172 (update_callee_keys): Update only the edges from caller to callee.
2173 (update_all_calle_keys): Do what update_calle_keys did.
2174 (decide_inlining_of_small_functions): Avoid recomputing of all
2175 callees when badness increase.
2176
2177 2010-07-03 Jie Zhang <jie@codesourcery.com>
2178
2179 * config/arm/arm.c (arm_attr_length_move_neon): New.
2180 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
2181 * config/arm/neon.md (define_mode_attr V_slen): Remove.
2182 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
2183 to compute length attribute.
2184
2185 2010-07-03 Jie Zhang <jie@codesourcery.com>
2186
2187 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
2188 as predicate for operand 1 and remove its constraint.
2189 * config/arm/predicates.md (vfp_register_operand): New.
2190 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
2191 (*push_fp_multi): Likewise.
2192
2193 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
2194
2195 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
2196
2197 2010-07-03 Jan Hubicka <jh@suse.cz>
2198
2199 * config/i386/i386.c (override_options): Revert accidental commit.
2200
2201 2010-07-02 Le-Chun Wu <lcwu@google.com>
2202
2203 PR c++/44128
2204 * doc/invoke.texi: Update documentation of -Wshadow.
2205
2206 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2207 Julian Brown <julian@codesourcery.com>
2208 Sandra Loosemore <sandra@codesourcery.com>
2209
2210 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
2211 comparisons. Adjust to take both operands.
2212 (arm_select_cc_mode): Handle DImode comparisons.
2213 (arm_gen_compare_reg): Generate a scratch register for DImode
2214 comparisons which require one. Use xor for Thumb equality checks.
2215 (arm_const_double_by_immediates): New.
2216 (arm_print_operand): Allow 'Q' and 'R' for constants.
2217 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
2218 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
2219 arm_canonicalize_comparison.
2220 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
2221 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2222 prototype.
2223 (arm_const_double_by_immediates): Declare.
2224 * config/arm/constraints.md (Di): New constraint.
2225 * config/arm/predicates.md (arm_immediate_di_operand)
2226 (arm_di_operand, cmpdi_operand): New.
2227 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
2228 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
2229 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
2230 (cstoredi4): Handle non-Cirrus also.
2231
2232 2010-07-02 Julian Brown <julian@codesourcery.com>
2233 Sandra Loosemore <sandra@codesourcery.com>
2234
2235 PR target/43703
2236 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
2237 (smax<mode>3): Disable for NEON float modes when
2238 flag_unsafe_math_optimizations is false.
2239 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
2240 (*mul<mode>3_neon)
2241 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
2242 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
2243 for NEON float modes when flag_unsafe_math_optimizations is false.
2244 (quad_halves_<code>v4sf): Only enable if
2245 flag_unsafe_math_optimizations is true.
2246 * doc/invoke.texi (ARM Options): Add note about floating point
2247 vectorization requiring -funsafe-math-optimizations.
2248
2249 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2250 Julian Brown <julian@codesourcery.com>
2251
2252 * config/arm/neon.md (UNSPEC_VABA): Delete.
2253 (UNSPEC_VABAL): Delete.
2254 (UNSPEC_VABS): Delete.
2255 (UNSPEC_VMUL_N): Delete.
2256 (adddi3_neon): New.
2257 (subdi3_neon): New.
2258 (mul<mode>3add<mode>_neon): Make the pattern named.
2259 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
2260 (neon_vadd<mode>): Replace with define_expand, and move the remaining
2261 unspec parts...
2262 (neon_vadd<mode>_unspec): ...to this.
2263 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
2264 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
2265 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
2266 (neon_vaba<mode>): Rewrite in terms of vabd.
2267 (neon_vabal<mode>): Rewrite in terms of vabdl.
2268 (neon_vabs<mode>): Rewrite without unspec.
2269 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
2270 (*arm_subdi3): Likewise.
2271 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
2272 No_op attribute to disable assembly output checks.
2273 * config/arm/arm_neon.h: Regenerated.
2274 * doc/arm-neon-intrinsics.texi: Regenerated.
2275
2276 2010-07-02 Jan Hubicka <jh@suse.cz>
2277
2278 * ipa-split.c (split_function): For aggregate values, set the return
2279 slot optimization bit. When passing DECL_BY_REFERENCE, produce
2280 *<retval> = fncall.part ().
2281 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
2282
2283 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2284
2285 * config/arm/neon.md (UNSPEC_VAND): Delete.
2286 (UNSPEC_VBIC): Delete.
2287 (UNSPEC_VCLZ): Delete.
2288 (UNSPEC_VCNT): Delete.
2289 (UNSPEC_VEOR): Delete.
2290 (UNSPEC_VORN): Delete.
2291 (UNSPEC_VORR): Delete.
2292 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
2293 core registers too.
2294 (anddi3_neon): Likewise.
2295 (orndi3_neon): Likewise.
2296 (bicdi3_neon): Likewise.
2297 (xordi3_neon): Likewise.
2298 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
2299 rid of unspec and handle unused operand.
2300 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
2301 * config/arm/predicates.md (imm_for_neon_logic_operand):
2302 Require TARGET_NEON.
2303 (imm_for_neon_inv_logic_operand): Likewise.
2304 * config/arm/arm.md (define_split for logical_binary_operator):
2305 Disable for NEON registers.
2306 (anddi3): Add new define_expand, and rename the insn. Disable
2307 this insn for NEON, where anddi3_neon now applies.
2308 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2309 (iordi3): As for anddi3.
2310 (xordi3): Likewise.
2311 * config/arm/neon.ml (Vand): Split DImode variants and mark them
2312 as No_op to disable testing for exact instruction match.
2313 (Vorr): Likewise.
2314 (Veor): Likewise.
2315 (Vbic): Likewise.
2316 (Vorn): Likewise.
2317 * config/arm/arm_neon.h: Regenerated.
2318 * doc/arm-neon-intrinsics.texi: Regenerated.
2319
2320 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2321
2322 * expr.h (emit_stack_probe): Declare.
2323 * explow.c (emit_stack_probe): Make global.
2324 (anti_adjust_stack_and_probe): Fix comments.
2325 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2326 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2327 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2328 * config/sparc/sparc.c: Include except.h.
2329 (sparc_emit_probe_stack_range): New function.
2330 (output_probe_stack_range): Likewise.
2331 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2332 built-in stack checking is enabled.
2333 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2334 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2335 (probe_stack_range): New insn.
2336
2337 2010-07-02 Richard Guenther <rguenther@suse.de>
2338
2339 PR target/43958
2340 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2341 for argument alignment.
2342
2343 2010-07-02 Jan Hubicka <jh@suse.cz>
2344
2345 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2346 walk backwards from entry_bb to check only those basic block of header
2347 that might lead to execution of split part.
2348 (consider_split) ... here.
2349 (find_return_bb): Allow assignment in return BB.
2350 (find_retval): New.
2351 (split_function): Fix name of cloned function; take care of updating
2352 return value in return_bb containing move.
2353
2354 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
2355
2356 PR target/44771
2357 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2358 used variable insn.
2359
2360 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2361
2362 * implicit-zee.c (combine_reaching_defs): Fix long lines.
2363 (is_set_with_extension_DI): Delete.
2364 (struct zero_extend_info): New structure.
2365 (add_removable_zero_extend): New function.
2366 (find_removable_zero_extends): Use note_stores to find SETs.
2367 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2368
2369 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2370
2371 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2372 is_miss_rate_acceptable. Pull total_positions computation
2373 out of the loops. Early return if miss_positions exceeds
2374 the acceptable threshold.
2375 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2376 is_miss_rate_acceptable after renaming of compute_miss_rate.
2377
2378 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2379
2380 PR middle-end/44576
2381 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2382 of 1000) for miss rate if the address diference is greater than or
2383 equal to the cache line size (the two reference will never hit the
2384 same cache line).
2385
2386 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
2387
2388 PR target/42835
2389 * config/arm/arm-modes.def (CC_NOTB): New mode.
2390 * config/arm/arm.c (get_arm_condition_code): Handle it.
2391 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2392 * config/arm/arm.md (subsi3_compare0_c): New pattern.
2393 (compare_scc): Now a define_and_split. Add a number of extra
2394 splitters before it.
2395
2396 PR target/42172
2397 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2398 and ZERO_EXTEND.
2399 (arm_rtx_costs_1): Likewise.
2400 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2401 * config/arm/arm.md (is_arch6): New attribute.
2402 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2403 extendqisi2): Tighten the code somewhat, avoiding invalid
2404 RTL to occur in the expander patterns.
2405 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2406 (thumb1_zero_extendhisi2_v6): Delete.
2407 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2408 (thumb1_extendhisi2_v6): Delete.
2409 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2410 (thumb1_extendqisi2_v6): Delete.
2411 (zero_extendhisi2 for register input splitter): New.
2412 (zero_extendqisi2 for register input splitter): New.
2413 (thumb1_extendhisi2 for register input splitter): New.
2414 (extendhisi2 for register input splitter): New.
2415 (extendqisi2 for register input splitter): New.
2416 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2417 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2418 and add support for a register alternative requiring a split.
2419 (thumb1_zero_extendqisi2): Likewise.
2420 (arm_zero_extendqisi2): Likewise.
2421 (arm_extendhisi2): Likewise.
2422 (arm_extendqisi2): Likewise.
2423
2424 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2425
2426 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2427 instead of an unspec.
2428 (neon_expand_vector_init): Likewise.
2429 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2430 (UNSPEC_VDUP_LANE): Delete.
2431 (UNSPEC VDUP_N): Delete.
2432 (UNSPEC_VGET_HIGH): Delete.
2433 (UNSPEC_VGET_LANE): Delete.
2434 (UNSPEC_VGET_LOW): Delete.
2435 (UNSPEC_VMVN): Delete.
2436 (UNSPEC_VSET_LANE): Delete.
2437 (V_double_vector_mode): New.
2438 (vec_set<mode>_internal): Make code emitted match that for the
2439 corresponding intrinsics.
2440 (vec_setv2di_internal): Likewise.
2441 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2442 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2443 (neon_vset_lane<mode>): Combine double and quad patterns and
2444 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2445 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2446 (neon_vdup_n<mode>): Rewrite RTL without unspec.
2447 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2448 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2449 with neon_vdup_lanev2di, adjusting the pattern from the latter
2450 to be predicable for consistency.
2451 (neon_vdup_lane<mode>_internal): New.
2452 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2453 to avoid using an unspec.
2454 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2455 (neon_vdup_lanev2di): Turn into a define_expand.
2456 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2457 (neon_vget_high<mode>): Replace with....
2458 (neon_vget_highv16qi): New pattern using canonical RTL.
2459 (neon_vget_highv8hi): Likewise.
2460 (neon_vget_highv4si): Likewise.
2461 (neon_vget_highv4sf): Likewise.
2462 (neon_vget_highv2di): Likewise.
2463 (neon_vget_low<mode>): Replace with....
2464 (neon_vget_lowv16qi): New pattern using canonical RTL.
2465 (neon_vget_lowv8hi): Likewise.
2466 (neon_vget_lowv4si): Likewise.
2467 (neon_vget_lowv4sf): Likewise.
2468 (neon_vget_lowv2di): Likewise.
2469
2470 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2471 test for this emitting vmov.
2472 (Vset_lane): Likewise.
2473 (Vdup_n): Likewise.
2474 (Vmov_n): Likewise.
2475
2476 * doc/arm-neon-intrinsics.texi: Regenerated.
2477
2478 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2479
2480 * config/arm/neon.md (vec_extractv2di): Correct error in register
2481 numbering to reconcile with neon_vget_lanev2di.
2482
2483 2010-07-02 Richard Guenther <rguenther@suse.de>
2484
2485 * tree-ssa-structalias.c (pt_solution_set_var): New function.
2486 * tree-ssa-alias.h (pt_solution_set_var): Declare.
2487 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2488 points-to information.
2489
2490 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
2491
2492 * config/s390/s390.c (override_options): Adopt prefetching
2493 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2494
2495 2010-07-02 Jan Hubicka <jh@suse.cz>
2496
2497 * df-problems.c (df_kill_notes): Do not collect dead notes.
2498 (df_set_note): Just call add_reg_note.
2499 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2500 df_create_unused_note): Do not deal with lists of old notes.
2501 (df_note_bb_compute): Likewise.
2502
2503 2010-07-02 Richard Guenther <rguenther@suse.de>
2504
2505 * tree-ssa-structalias.c (find_func_aliases): Handle
2506 pointer alignment via BIT_AND_EXPR.
2507 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2508
2509 2010-07-02 Richard Guenther <rguenther@suse.de>
2510
2511 * tree-data-ref.c (initialize_data_dependence_relation): Handle
2512 mismatching number of dimensions properly.
2513
2514 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2515
2516 PR target/44707
2517 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2518 (lo_sum (high ...) ...) patterns generated by earlier passes.
2519
2520 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2521
2522 * doc/install.texi (Prerequisites): Document Perl requirement on
2523 Solaris 2.
2524 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
2525
2526 2010-07-02 Richard Guenther <rguenther@suse.de>
2527
2528 PR middle-end/44777
2529 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2530
2531 2010-07-02 Jan Hubicka <jh@suse.cz>
2532
2533 PR middle-end/44706
2534 * predict.c (predict_paths_for_bb): Handle case when control dependence
2535 BB has only abnormal edges.
2536
2537 2010-07-02 Richard Guenther <rguenther@suse.de>
2538
2539 PR tree-optimization/44748
2540 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
2541 the embedded conversion in MEM_REFs.
2542
2543 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
2544
2545 * reload.c: Include toplev.h.
2546 * recog.c: Likewise.
2547 * Makefile.in: Adjust dependencies.
2548
2549 2010-07-01 Jakub Jelinek <jakub@redhat.com>
2550
2551 PR debug/44694
2552 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
2553 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
2554
2555 2010-07-01 Richard Guenther <rguenther@suse.de>
2556
2557 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
2558 types for offsets.
2559
2560 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
2561
2562 PR target/44732
2563 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
2564 Fix argument types.
2565
2566 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
2567
2568 PR target/44727
2569 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2570 Make sure operand 0 dies.
2571
2572 2010-07-01 Richard Guenther <rguenther@suse.de>
2573
2574 PR middle-end/42834
2575 PR middle-end/44468
2576 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
2577 * doc/generic.texi (References to storage): Document MEM_REF.
2578 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
2579 (print_call_name): Likewise.
2580 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
2581 (build_simple_mem_ref_loc): New function.
2582 (mem_ref_offset): Likewise.
2583 * tree.h (build_simple_mem_ref_loc): Declare.
2584 (build_simple_mem_ref): Define.
2585 (mem_ref_offset): Declare.
2586 * fold-const.c: Include tree-flow.h.
2587 (operand_equal_p): Handle MEM_REF.
2588 (build_fold_addr_expr_with_type_loc): Likewise.
2589 (fold_comparison): Likewise.
2590 (fold_unary_loc): Fold
2591 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2592 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2593 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2594 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2595 (ptr_deref_may_alias_ref_p_1): Likewise.
2596 (ao_ref_base_alias_set): Properly differentiate base object for
2597 offset and TBAA.
2598 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2599 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2600 (indirect_refs_may_alias_p): Likewise.
2601 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
2602 chasing code.
2603 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2604 (call_may_clobber_ref_p_1): Likewise.
2605 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2606 * expr.c (expand_assignment): Handle MEM_REF.
2607 (store_expr): Handle MEM_REFs from STRING_CSTs.
2608 (store_field): If expanding a MEM_REF of a non-addressable
2609 decl use bitfield operations.
2610 (get_inner_reference): Handle MEM_REF.
2611 (expand_expr_addr_expr_1): Likewise.
2612 (expand_expr_real_1): Likewise.
2613 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2614 * alias.c (ao_ref_from_mem): Handle MEM_REF.
2615 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
2616 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2617 (dr_analyze_indices): Likewise.
2618 (dr_analyze_alias): Likewise.
2619 (object_address_invariant_in_loop_p): Likewise.
2620 * gimplify.c (mark_addressable): Handle MEM_REF.
2621 (gimplify_cond_expr): Build MEM_REFs.
2622 (gimplify_modify_expr_to_memcpy): Likewise.
2623 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2624 (gimple_fold_indirect_ref): Adjust.
2625 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
2626 * tree.def (MEM_REF): New tree code.
2627 * tree-dfa.c: Include toplev.h.
2628 (get_ref_base_and_extent): Handle MEM_REF.
2629 (get_addr_base_and_unit_offset): New function.
2630 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2631 * gimple-fold.c (may_propagate_address_into_dereference): Handle
2632 MEM_REF.
2633 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2634 accesses if the array has just one dimension. Remove always true
2635 parameter. Do not require type compatibility here.
2636 (maybe_fold_offset_to_component_ref): Remove.
2637 (maybe_fold_stmt_indirect): Remove.
2638 (maybe_fold_reference): Remove INDIRECT_REF handling.
2639 Fold back to non-MEM_REF.
2640 (maybe_fold_offset_to_address): Simplify. Deal with type
2641 mismatches here.
2642 (maybe_fold_reference): Likewise.
2643 (maybe_fold_stmt_addition): Likewise. Also handle
2644 &ARRAY + I in addition to &ARRAY[0] + I.
2645 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2646 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2647 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2648 * tree-ssa.c (useless_type_conversion_p): Make most pointer
2649 conversions useless.
2650 (warn_uninitialized_var): Handle MEM_REF.
2651 (maybe_rewrite_mem_ref_base): New function.
2652 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2653 to SSA form.
2654 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2655 INDIRECT_REF handling.
2656 (copy_tree_body_r): Handle MEM_REF.
2657 * gimple.c (is_gimple_addressable): Adjust.
2658 (is_gimple_address): Likewise.
2659 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
2660 invariant base are invariant.
2661 (is_gimple_min_lval): Adjust.
2662 (is_gimple_mem_ref_addr): New function.
2663 (get_base_address): Handle MEM_REF.
2664 (count_ptr_derefs): Likewise.
2665 (get_base_loadstore): Likewise.
2666 * gimple.h (is_gimple_mem_ref_addr): Declare.
2667 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
2668 * tree-cfg.c (verify_address): New function, split out from ...
2669 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
2670 the address operand of MEM_REFs. Verify MEM_REFs. Reject
2671 INDIRECT_REFs.
2672 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
2673 INDIRECT_REF. Allow conversions.
2674 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
2675 a register does not change its size.
2676 (verify_types_in_gimple_reference): Verify MEM_REF.
2677 (verify_gimple_assign_single): Disallow INDIRECT_REF.
2678 Handle MEM_REF.
2679 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
2680 New.
2681 (mark_address_taken): Handle MEM_REF.
2682 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
2683 (get_asm_expr_operands): Pass opf_not_non_addressable.
2684 (get_expr_operands): Handle opf_[not_]non_addressable.
2685 Handle MEM_REF. Remove INDIRECT_REF handling.
2686 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
2687 (search_for_addr_array): Likewise.
2688 (check_array_bounds): Likewise.
2689 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
2690 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
2691 (ref_always_accessed_p): Likewise.
2692 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
2693 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
2694 Handle MEM_REF.
2695 * cgraphbuild.c (mark_load): Properly check for NULL result
2696 from get_base_address.
2697 (mark_store): Likewise.
2698 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
2699 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
2700 handling for MEM_REF.
2701 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
2702 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
2703 * builtins.c (stabilize_va_list_loc): Use the function ABI
2704 valist type if we couldn't canonicalize the argument type.
2705 Always dereference with the canonical va-list type.
2706 (maybe_emit_free_warning): Handle MEM_REF.
2707 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
2708 memmove to memcpy.
2709 * builtins.c (fold_builtin_memory_op): Use ref-all types
2710 for all memcpy foldings.
2711 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
2712 (build_outer_var_ref): Likewise.
2713 (scan_omp_1_op): Likewise.
2714 (lower_rec_input_clauses): Likewise.
2715 (lower_lastprivate_clauses): Likewise.
2716 (lower_reduction_clauses): Likewise.
2717 (lower_copyprivate_clauses): Likewise.
2718 (expand_omp_atomic_pipeline): Likewise.
2719 (expand_omp_atomic_mutex): Likewise.
2720 (create_task_copyfn): Likewise.
2721 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
2722 Remove old union trick. Initialize constant offsets.
2723 (ao_ref_init_from_vn_reference): Likewise. Do not handle
2724 INDIRECT_REF. Init base_alias_set properly.
2725 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
2726 (vn_reference_fold_indirect): Adjust for MEM_REFs.
2727 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
2728 for ARRAY_REFs.
2729 (may_insert): Remove.
2730 (visit_reference_op_load): Do not test may_insert.
2731 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
2732 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
2733 a field to store the constant offset this op applies.
2734 (run_scc_vn): Adjust prototype.
2735 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
2736 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
2737 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
2738 bother about volatile qualifiers on pointers.
2739 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
2740 * tree-ssa-loop-ivopts.c
2741 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
2742 (strip_offset_1): Likewise.
2743 (find_interesting_uses_address): Replace INDIRECT_REF handling with
2744 MEM_REF handling.
2745 (get_computation_cost_at): Likewise.
2746 * ipa-pure-const.c (check_op): Handle MEM_REF.
2747 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
2748 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
2749 and constants.
2750 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
2751 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
2752 (eliminate_local_variables_1): Likewise.
2753 (create_call_for_reduction_1): Likewise.
2754 (create_loads_for_reductions): Likewise.
2755 (create_loads_and_stores_for_name): Likewise.
2756 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
2757 (ssa_accessed_in_tree): Handle MEM_REF.
2758 (ssa_accessed_in_assign_rhs): Likewise.
2759 (update_type_size): Likewise.
2760 (analyze_accesses_for_call_stmt): Likewise.
2761 (analyze_accesses_for_assign_stmt): Likewise.
2762 (transform_access_sites): Likewise.
2763 (transform_allocation_sites): Likewise.
2764 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
2765 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2766 not handle INDIRECT_REF.
2767 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
2768 (cond_store_replacement): Likewise.
2769 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
2770 MEM_REF, no not handle INDIRECT_REFs.
2771 (insert_into_preds_of_block): Properly initialize avail.
2772 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
2773 for ARRAY_REFs. Properly handle reference lookups that
2774 require a bit re-interpretation.
2775 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
2776 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
2777 (build_ref_for_offset_1): Remove.
2778 (build_ref_for_offset): Build MEM_REFs.
2779 (gate_intra_sra): Disable for now.
2780 (sra_ipa_modify_expr): Handle MEM_REF.
2781 (ipa_early_sra_gate): Disable for now.
2782 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
2783 MEM_REF handling.
2784 (disqualify_base_of_expr): Likewise.
2785 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
2786 MEM_REF handling.
2787 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
2788 Use mem_ref_offset. Remove bogus folding.
2789 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
2790 (make_fancy_name_1): Add support for MEM_REF.
2791 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
2792 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
2793 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
2794 (compute_complex_ancestor_jump_func): Likewise.
2795 (ipa_analyze_virtual_call_uses): Likewise.
2796 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
2797 INDIRECT_REF folding with more generalized MEM_REF folding.
2798 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
2799 (forward_propagate_addr_into_variable_array_index): Also handle
2800 &ARRAY + I in addition to &ARRAY[0] + I.
2801 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
2802 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
2803 creates assignments with overlap.
2804 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
2805 (get_frame_field): Likewise.
2806 (get_nonlocal_debug_decl): Likewise.
2807 (convert_nonlocal_reference_op): Likewise.
2808 (struct nesting_info): Add mem_refs pointer-set.
2809 (create_nesting_tree): Allocate it.
2810 (convert_local_reference_op): Insert to be folded mem-refs.
2811 (fold_mem_refs): New function.
2812 (finalize_nesting_tree_1): Perform defered folding of mem-refs
2813 (free_nesting_tree): Free the pointer-set.
2814 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
2815 (vectorizable_load): Likewise.
2816 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
2817 (propagate_with_phi): Likewise.
2818 * tree-object-size.c (addr_object_size): Handle MEM_REFs
2819 instead of INDIRECT_REFs.
2820 (compute_object_offset): Handle MEM_REF.
2821 (plus_stmt_object_size): Handle MEM_REF.
2822 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
2823 for &MEM_REF.
2824 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
2825 (symbol_marked_for_renaming): Likewise.
2826 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
2827 (fold-const.o): Add $(TREE_FLOW_H).
2828 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
2829 (find_func_clobbers): Likewise.
2830 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
2831 (decompose_access): Likewise.
2832 (replace_field_acc): Likewise.
2833 (replace_field_access_stmt): Likewise.
2834 (insert_new_var_in_stmt): Likewise.
2835 (get_stmt_accesses): Likewise.
2836 (reorg_structs_drive): Disable.
2837 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
2838 (ix86_canonical_va_list_type): Likewise.
2839
2840 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2841
2842 PR other/44566
2843 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
2844 * target.def (struct gcc_target): Replace enum reg_class with
2845 reg_class_t in hook argument / return types.
2846 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
2847 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
2848 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2849 * targhooks.h (default_branch_target_register_class): Likewise.
2850 (default_ira_cover_classes, default_secondary_reload): Likewise.
2851 (default_memory_move_cost, default_register_move_cost): Likewise.
2852 * targhooks.c (default_branch_target_register_class): Likewise.
2853 (default_ira_cover_classes, default_secondary_reload): Likewise.
2854 (default_memory_move_cost, default_register_move_cost): Likewise.
2855 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
2856 * bt-load.c (branch_target_load_optimize): Likewise.
2857 * ira.c (setup_cover_and_important_classes): Likewise.
2858 * ira-costs.c (copy_cost): Likewise.
2859 * reload1.c (emit_input_reload_insns): Likewise.
2860 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2861 * config/frv/frv.c (frv_secondary_reload): Likewise.
2862 * config/s390/s390.c (s390_secondary_reload): Likewise.
2863 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
2864 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
2865 (ix86_register_move_cost): Likewise.
2866 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
2867 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
2868 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
2869 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
2870 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
2871 (rs6000_ira_cover_classes): Likewise.
2872 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
2873 * config/picochip/picochip-protos.h (picochip_secondary_reload):
2874 Likewise.
2875 * config/pa/pa.c (pa_secondary_reload): Likewise.
2876 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
2877 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
2878 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
2879 * doc/tm.texi: Regenerate.
2880
2881 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
2882
2883 PR bootstrrap/44726
2884 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
2885 use.
2886 (build_alias_set_optimal_p): Likewise.
2887 (build_base_obj_set_for_drs): Likewise.
2888
2889 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2890
2891 * target.def: Remove comment about licensing problems of function
2892 declarations.
2893
2894 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
2895 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2896 * doc/tm.texi: Regenerate.
2897
2898 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
2899 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2900
2901 * target.def (enum_va_list_p): Use DEFHOOK.
2902 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2903 Rename ptype to ptree.
2904 * doc/tm.texi: Regenerate.
2905
2906 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
2907 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2908 * doc/tm.texi: Regenerate.
2909
2910 * target.def (memory_move_cost): Use DEFHOOK.
2911 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2912 Rename regclass AKA class to rclass.
2913 * doc/tm.texi: Regenerate.
2914
2915 * target.def (pragma_parse): Use DEFHOOK.
2916 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2917 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2918 * doc/tm.texi: Regenerate.
2919
2920 * target.def (pass_by_reference): Use DEFHOOK.
2921 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2922 * doc/tm.texi: Regenerate.
2923
2924 * target.def (resolve_overloaded_builtin): Rename params to arglist.
2925 Use DEFHOOK.
2926 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2927 * doc/tm.texi: Regenerate.
2928
2929 * target.def (return_pops_args): Use DEFHOOK.
2930 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
2931 Rename stack-size to size.
2932 * doc/tm.texi: Regenerate.
2933
2934 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
2935 last-sched_cycle to last_clock, cur_cycle to clock.
2936 * doc/tm.texi.in: Use @hook.
2937 * doc/tm.texi: Regenerate.
2938
2939 * target.def (print_operand, print_operand_address): Update comment.
2940 (print_operand_punct_valid_p): Likewise.
2941
2942 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2943
2944 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
2945 to rtl.h.
2946 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
2947 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
2948 * rtl-error.h: New.
2949 * regrename.c: Do not include toplev.h. Include rtl-error.h.
2950 * rtl-error.c: Likewise.
2951 * reload.c: Likewise.
2952 * recog.c: Likewise.
2953 * sel-sched.c: Likewise.
2954 * function.c: Likewise.
2955 * reg-stack.c: Likewise.
2956 * cfgrtl.c: Likewise.
2957 * reload1.c: Likewise.
2958 * final.c: Include rtl-error.
2959 * Makefile.in: Adjust dependencies.
2960
2961 2010-06-30 Jan Hubicka <jh@suse.cz>
2962
2963 PR middle-end/PR44706
2964 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
2965 to return the value.
2966
2967 2010-06-30 Michael Matz <matz@suse.de>
2968
2969 PR bootstrap/44699
2970 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
2971 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
2972 a gimple reg, attach the original VDEF to the last store in the
2973 sequence.
2974
2975 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
2976
2977 PR other/44034
2978 * config/darwin.c (darwin_override_options): Use renamed
2979 targetm.asm_out.emit_unwind_label.
2980
2981 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2982
2983 PR tree-optimization/39799
2984 * tree-inline.c (remap_ssa_name): Initialize variable only if
2985 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2986
2987 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
2988
2989 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2990
2991 2010-06-30 Richard Guenther <rguenther@suse.de>
2992
2993 PR target/44722
2994 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2995 against oscillation with reverse peephole2.
2996
2997 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
2998
2999 PR target/44721
3000 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3001 Fix last commit.
3002
3003 2010-06-30 Nick Clifton <nickc@redhat.com>
3004
3005 * config/rx/rx-modes.def: New file.
3006 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
3007 (CC_REGNUM): Define.
3008 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
3009 register.
3010 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
3011 (SELECT_CC_MODE): Define.
3012 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
3013 (reg:CC CC_REG) instead of (cc0).
3014 (attr "cc"): Delete.
3015 (cbranchsi4): Do not split compare and branch here. Instead move
3016 it to...
3017 (cbranchsi4_<code>): ... here. New patterns.
3018 (cmpsi): Call rx-compare_redundant to find out if it is necessary
3019 to emit the compare instruction.
3020 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
3021 cc_status flags.
3022 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
3023 FIRST_PSEUDO_REGNUM.
3024 (rx_expand_prologue, rx_expand_epilogue): Likewise.
3025 (rx_notice_update_cc): Delete.
3026 (rx_cc_modes_compatible): New function.
3027 (flags_needed_for_conditional): New function.
3028 (flags_from_mode): New function.
3029 (rx_compare_redundant): New function - scans backwards through
3030 insn list to find out if condition flags are already set correctly.
3031 (TARGET_CC_MODES_COMPATIBLE): Define.
3032 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
3033
3034 * config/rx/rx.h (BRANCH_COST): Define.
3035 (REGISTER_MOVE_COST): Define.
3036 * config/rx/predicates (rx_source_operand): Allow all constant types.
3037 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
3038 (tstsi4): New pattern.
3039 * config/rx/rx.c (rx_memory_move_cost): Define.
3040 (TARGET_MEMORY_MOVE_COST): Define.
3041
3042 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3043
3044 * tree.h (block_may_fallthru): Declare here.
3045 * tree-flow.h (block_may_fallthru): Do not declare here.
3046 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
3047 bitmap.h
3048 * Makefile.in (c-typeck.o): Update dependencies.
3049
3050 2010-06-30 Jakub Jelinek <jakub@redhat.com>
3051
3052 PR debug/44694
3053 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
3054 * cselib.c (cfa_base_preserved_regno): New static variable.
3055 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
3056 of REGNO (cfa_base_preserved_val->locs->loc).
3057 (cselib_preserve_cfa_base_value): Add regno argument, set
3058 cfa_base_preserved_regno to it.
3059 (cselib_invalidate_regno): Allow removal of registers other than
3060 cfa_base_preserved_regno from cfa_base_preserved_val.
3061 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
3062 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
3063 of MEM addresses, if not on LHS.
3064 (reverse_op): Don't add reverse ops for cfa_base_rtx.
3065 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
3066
3067 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
3068
3069 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
3070 static variables.
3071 (peep2_buf_position): New static function.
3072 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
3073 peephole2_optimize): Use it.
3074 (peep2_attempt, peep2_update_life): New static functions, broken out
3075 of peephole2_optimize.
3076 (peep2_fill_buffer): New static function.
3077 (peephole2_optimize): Change the main loop to try to fill the buffer
3078 with the maximum number of insns before matching them against
3079 peepholes. Use a forward scan. Remove special case for targets with
3080 conditional execution.
3081 * genrecog.c (change_state): Delete dead code.
3082 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3083 Rewrite so as not to expect the second insn to have had a peephole
3084 applied yet.
3085
3086 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3087
3088 * genhooks.c (emit_findices): Cast field precision to int.
3089 (emit_documentation): Likewise.
3090
3091 2010-06-29 Jakub Jelinek <jakub@redhat.com>
3092
3093 PR tree-optimization/43801
3094 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
3095 if old_decl was DECL_ONE_ONLY.
3096
3097 PR debug/44668
3098 * dwarf2out.c (add_accessibility_attribute): New function.
3099 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
3100 instead of adding DW_AT_accessibility manually.
3101 (gen_enumeration_type_die, gen_struct_or_union_type_die,
3102 gen_typedef_die): Use it.
3103
3104 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3105
3106 * vmsdbgout.c (full_name): Just output the file name if not native.
3107
3108 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3109
3110 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
3111 (funcnam_table): New static table.
3112 (funcnum_table): New static table.
3113 (write_rtnbeg): Write value saved in funcnum_table.
3114 (write_rtnend): Write value saved in funcnum_table.
3115 (vmsdbgout_begin_function): Save current function info in
3116 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
3117 (vmsdbgout_finish): Iterate over funcnum_table.
3118
3119 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3120
3121 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
3122 (vmsdbgout_type_decl): Declare
3123 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
3124 (FUNC_EPILOGUE_LABEL): New macro
3125 (vmsdbgout_begin_epilogue): New function.
3126 (vmsdbgout_type_decl): New function.
3127
3128 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3129
3130 * vmsdbg.h: Update copyright.
3131
3132 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3133
3134 * vmsdbg.h (DST_K_TBG): New DST constant.
3135 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
3136 (write_modbeg): Cast module_language to avoid warning.
3137 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
3138
3139 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3140
3141 PR other/44034
3142 * target.def, doc/tm.texi.in, genhooks.c: New files.
3143 * target.h: Instead of defining individual hook members,
3144 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
3145 include target.def.
3146 * target-def.h: Instead of defining individual hook initializers,
3147 include target-hooks-def.h.
3148 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
3149 targetm.live_on_entry -> targetm.extra_live_on_entry
3150 targetm.sched.md_finish ->targetm.sched.finish
3151 targetm.sched.md_init -> targetm.sched.init
3152 targetm.sched.md_init_global -> targetm.sched.init_global
3153 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
3154 targetm.asm_out.except_table_label ->
3155 targetm.asm_out.emit_except_table_label
3156 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
3157 targetm.target_help -> targetm.help
3158 targetm.vectorize.builtin_support_vector_misalignment ->
3159 targetm.vectorize.support_vector_misalignment
3160 targetm.file_start_app_off -> targetm.asm_file_start_app_off
3161 targetm.file_start_file_directive ->
3162 targetm.asm_file_start_file_directive
3163 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
3164 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
3165 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
3166 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
3167 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
3168 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
3169 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
3170 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
3171 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
3172 * Makefile.in (TARGET_H): Depend on target.def.
3173 (TARGET_DEF_H): Depend on target-hooks-def.h.
3174 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
3175 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
3176 * doc/tm.texi: Regenerate.
3177
3178 * Makefile.in (s-tm-texi): Remove stray tab / rule.
3179
3180 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
3181 (targetm.sched.init): Likewise.
3182
3183 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3184
3185 PR bootstrap/44713
3186 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
3187 (function_arg_advance_32): Const-ify TYPE parameter.
3188 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
3189 (ix86_function_arg_advance): Change type of NAMED to bool.
3190 (function_arg_32): Const-ify CUM and TYPE parameters.
3191 (function_arg_64): Likewise. Change type of NAMED to bool.
3192 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
3193 to bool.
3194 (ix86_function_arg): Change type of NAMED to bool.
3195 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
3196 last argument as a bool.
3197
3198 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3199
3200 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
3201 (OVERRIDE_OPTIONS): Add note of obsolescence.
3202 Replace references with references to TARGET_OPTION_OVERRIDE.
3203 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
3204 the macro).
3205 * targhooks.c (default_target_option_override): New function.
3206 * targhooks.h (default_target_option_override): Declare.
3207 * target.h (struct gcc_target): Add override member to
3208 target_option member.
3209 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
3210 targetm.target_option.override call.
3211 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
3212 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
3213
3214 2010-06-29 Jan Hubicka <jh@suse.cz>
3215
3216 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
3217
3218 2010-06-29 Jan Hubicka <jh@suse.cz>
3219
3220 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
3221 unreachable.
3222 (rebuild_frequencies): New function.
3223 * predict.h (rebuild_frequencies): Declare.
3224 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
3225 entry block and edge reaching new_entry.
3226 (tree_function_versioning): When doing partial cloning, rebuild
3227 frequencies when done.
3228 * passes.c (execute_function_todo): Use rebild_frequencies.
3229
3230 2010-06-29 Richard Guenther <rguenther@suse.de>
3231
3232 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
3233 * tree-flow.h (enum noalias_state): Remove.
3234 (struct var_ann_d): Remove noalias_state member.
3235
3236 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3237
3238 PR target/43902
3239 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
3240 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
3241 (maddhidi4): Likewise.
3242
3243 Revert parts of the change for PR25130.
3244 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3245 MEM_ALIAS_SET.
3246
3247 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3248
3249 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
3250 targetm.calls.function_incoming_arg, and
3251 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
3252 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
3253 * target.h (struct gcc_target): Add function_arg_advance,
3254 function_arg, and function_incoming_arg fields.
3255 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
3256 (TARGET_FUNCTION_INCOMING_ARG): Define.
3257 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
3258 and TARGET_FUNCTION_INCOMING_ARG.
3259 * targhooks.h (default_function_arg_advance): Declare.
3260 (default_function_arg, default_function_incoming_arg): Declare.
3261 * targhooks.c (default_function_arg_advance): New function.
3262 (default_function_arg, default_function_incoming_arg): New function.
3263 * config/i386/i386.c (function_arg_advance): Rename to...
3264 (ix86_function_arg_advance): ...this. Make static.
3265 (function_arg): Rename to...
3266 (ix86_function_arg): ...this. Make static.
3267 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3268 (TARGET_FUNCTION_ARG): Define.
3269 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
3270 (FUNCTION_ARG): Delete.
3271 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
3272 (function_arg): Delete prototype.
3273
3274 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3275
3276 * reginfo.c (init_reg_sets_1): Adjust comments.
3277 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
3278 * calls.c (prepare_call_address): Likewise.
3279 (emit_call_1): Use targetm.calls.return_pops_args.
3280 (expand_call): Likewise.
3281 * function.c (assign_parms): Likewise.
3282 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
3283 * target.h (struct gcc_target) [struct calls]: Add
3284 return_pops_args field.
3285 * targhooks.h (default_return_pops_args): Declare.
3286 * targhooks.c (default_return_pops_args): Define.
3287 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
3288 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
3289 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
3290 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
3291 documentation.
3292 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
3293 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
3294 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
3295 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
3296 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
3297 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
3298 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
3299 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
3300 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
3301 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
3302 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
3303 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
3304 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3305 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3306 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3307 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3308 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3309 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3310 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3311 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3312 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3313 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3314 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3315 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3316 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3317 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3318 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3319 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3320 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3321 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3322 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3323 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3324 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3325 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3326 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3327 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3328 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3329 * config/i386/i386.c (ix86_return_pops_args): Make static.
3330 Constify arguments.
3331 (TARGET_RETURN_POPS_ARGS): Define.
3332 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3333 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
3334 (TARGET_RETURN_POPS_ARGS): Define.
3335 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3336 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
3337 (TARGET_RETURN_POPS_ARGS): Define.
3338
3339 2010-06-29 Richard Guenther <rguenther@suse.de>
3340
3341 PR middle-end/44667
3342 * tree-inline.c (initialize_inlined_parameters): Make sure
3343 to remap the inlined parameter variable substitutions types.
3344
3345 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
3346
3347 PR rtl-optimization/44659
3348 * combine.c (make_compound_operation) <SUBREG>: Do not return the
3349 result of force_to_mode if it partially re-expanded the compound.
3350
3351 2010-06-28 Jan Hubicka <jh@suse.cz>
3352
3353 PR middle-end/44671
3354 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3355 RESULT_DECL.
3356
3357 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3358
3359 * double-int.h (force_fit_type_double): Remove declaration.
3360 * double-int.c (force_fit_type_double): Move to tree.c.
3361 * tree.h (force_fit_type_double): Declare.
3362 * tree.h (force_fit_type_double): Moved from double-int.c. Use
3363 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3364 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3365 * convert.c (convert_to_pointer): Adjust call to
3366 force_fit_type_double.
3367 * tree-vrp.c (extract_range_from_assert,
3368 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3369 * fold-const.c: Update comment.
3370 (int_const_binop, fold_convert_const_int_from_int,
3371 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3372 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3373 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3374 round_up_loc): Adjust call to force_fit_type_double.
3375
3376 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3377
3378 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3379
3380 2010-06-28 Martin Jambor <mjambor@suse.cz>
3381
3382 * tree-sra.c (convert_callers): New parameter, change fndecls of
3383 recursive calls.
3384 (modify_function): Pass the old decl to convert_callers.
3385
3386 2010-06-28 Martin Jambor <mjambor@suse.cz>
3387
3388 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3389 ipa_check_create_node_params and ipa_initialize_node_params with
3390 checking asserts they are not necessary.
3391
3392 2010-06-28 Jan Hubicka <jh@suse.cz>
3393
3394 PR tree-optimization/44687
3395 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3396
3397 2010-06-28 Martin Jambor <mjambor@suse.cz>
3398
3399 PR c++/44535
3400 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3401 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3402 instead of BINFO_BASE_BINFO.
3403
3404 2010-06-28 Michael Matz <matz@suse.de>
3405
3406 PR middle-end/44592
3407 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3408 proper VDEF chain for intermediate stores in the sequence.
3409
3410 2010-06-28 Jan Hubicka <jh@suse.cz>
3411
3412 PR tree-optimization/44357
3413 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3414 uninlinable functions.
3415
3416 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3417
3418 * config.gcc (powerpc*-*-*): Handle titan.
3419 * config/rs6000/rs6000.c (titan_cost): New costs.
3420 (rs6000_override_options): Add "titan" to processor_target_table.
3421 Add Titan to branch alignment logic.
3422 Correctly set rs6000_cost for titan.
3423 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
3424 * config/rs6000/titan.md: New file.
3425 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3426
3427 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3428
3429 * tree-browser.c (TB_history_stack): Convert to a VEC.
3430 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3431 (TB_history_prev): Likewise.
3432
3433 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3434
3435 * vec.h (vec_heap_free): Add parentheses around free.
3436
3437 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3438
3439 * system.h: Poison GCC_EXCEPT_H for front-end files.
3440
3441 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3442 langhook.
3443 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3444 Define to NULL by default.
3445 * except.h: Define GCC_EXCEPT_H.
3446 (doing_eh): Remove prototype.
3447 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3448 (lang_protect_cleanup_actions): Remove.
3449 * except.c (lang_protect_cleanup_actions): Remove.
3450 (doing_eh): Remove.
3451 (gen_eh_region): Don't check doing_eh here.
3452 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3453 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3454 instead of lang_protect_cleanup_actions.
3455 * omp-low.c (maybe_catch_exception): Likewise.
3456 * Makefile.in: Update dependencies.
3457
3458 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
3459
3460 * cgraph.h (struct varpool_node): new used_from_object_file flag.
3461 (struct cgraph_local_info): new used_from_object_file flag.
3462 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3463 (cgraph_clone_node): initialize used_from_object_file.
3464 (cgraph_create_virtual_clone): initialize used_from_object_file.
3465 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3466 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3467 when compiling with -fwhole-program.
3468 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3469 internal resolver.
3470 * ipa.c (function_and_variable_visibility): Set externally_visible
3471 flag of varpool_node if used_from_object_file flag is set.
3472 (cgraph_externally_visible_p): check used_from_object_file flag.
3473 * doc/invoke.texi (-fwhole-program option): Change description of
3474 externally_visible attribute accordingly.
3475 * doc/extend.texi (externally_visible): Ditto.
3476
3477 2010-06-27 Jan Hubicka <jh@suse.cz>
3478
3479 * params.def (max-inline-insns-auto): Default to 40.
3480 * doc/invoke.texi (max-inline-insns-auto): Document the change.
3481
3482 2010-06-27 Jan Hubicka <jh@suse.cz>
3483
3484 PR middle-end/44671
3485 PR middle-end/44686
3486 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3487 signature change.
3488 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3489 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3490
3491 2010-06-27 Anatoly Sokolov <aesok@post.ru>
3492
3493 * target.h (struct gcc_target): Add register_move_cost field.
3494 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3495 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3496 * targhooks.c (default_register_move_cost): New function.
3497 * targhooks.h (default_register_move_cost): Declare function.
3498 * defaults.h (REGISTER_MOVE_COST): Delete.
3499 * ira-int.h (ira_register_move_cost): Update comment.
3500 * ira.c: (ira_register_move_cost): Update comment.
3501 * reload.h (register_move_cost): Declare.
3502 * reginfo.c (register_move_cost): New function.
3503 (move_cost): Update comment.
3504 (init_move_cost, memory_move_secondary_cost): Replace
3505 REGISTER_MOVE_COST with register_move_cost.
3506 * postreload.c (reload_cse_simplify_set): (Ditto.).
3507 * reload.c (find_valid_class, find_reloads): (Ditto.).
3508 * reload1.c (choose_reload_regs): (Ditto.).
3509 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3510 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3511 * doc/md.texi (can_create_pseudo_p): Update documentation.
3512
3513 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3514 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3515 * config/i386/i386.h (ix86_memory_move_cost): Make static.
3516 (TARGET_MEMORY_MOVE_COST): Define.
3517
3518 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3519 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3520 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
3521 (TARGET_MEMORY_MOVE_COST): Define.
3522
3523 2010-06-27 Richard Guenther <rguenther@suse.de>
3524
3525 PR tree-optimization/44683
3526 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
3527 false edge from the inverted condition.
3528
3529 2010-06-27 Richard Guenther <rguenther@suse.de>
3530
3531 PR middle-end/44684
3532 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
3533 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
3534 for register LHS. Or non-store assignments.
3535
3536 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
3537
3538 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
3539 (sparc_emit_set_const64): Likewise. Remove disabled code.
3540 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
3541 (sparc_emit_set_const64): Likewise.
3542
3543 2010-06-26 Catherine Moore <clm@codesourcery.com>
3544
3545 * config/mips/mips.md (alu_type): New attribute.
3546 (type): Infer type from alu_type.
3547 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
3548 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
3549 *subsi3_extended, negsi2, negdi2, *low<mode>,
3550 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
3551 xor<mode>3, *nor<mode>3,
3552 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
3553 *zero_extendhi_truncqi): Set alu_type instead of type.
3554
3555 2010-06-26 Douglas B Rupp <rupp@gnat.com>
3556
3557 * config/alpha/alpha.c (alpha_need_linkage): Adjust
3558 splay_tree_new_ggc call.
3559 (alpha_use_linkage): Likewise.
3560
3561 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3562
3563 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
3564 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
3565 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
3566 (static_specs): Remove switches_need_spaces.
3567 (process_command, do_self_spec): Hardcode handling "-o" instead of
3568 checking switches_need_spaces.
3569 * system.h (SWITCHES_NEED_SPACES): Poison.
3570
3571 2010-06-26 Richard Guenther <rguenther@suse.de>
3572
3573 PR tree-optimization/44393
3574 * tree-loop-distribution.c (generate_loops_for_partition): Fix
3575 stmt removal and VOP renaming.
3576 (generate_memset_zero): Remove redundant stmt updating.
3577 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
3578 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
3579
3580 2010-06-26 Jan Hubicka <jh@suse.cz>
3581
3582 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
3583 edges comming from header are equivalent.
3584 (visit_bb): Handle PHIs correctly.
3585 * tree-inline.c (copy_phis_for_bb): Be able to copy
3586 PHI from entry edge.
3587 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3588
3589 2010-06-26 Richard Guenther <rguenther@suse.de>
3590
3591 PR middle-end/44674
3592 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3593 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
3594
3595 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3596
3597 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3598 add_infile, alloc_switch): New.
3599 (process_command): Remove variable lang_n_infiles. Process
3600 options in a single pass. Use new functions for allocating
3601 infiles and switches arrays. Properly skip operands of
3602 -Xpreprocessor and -Xassembler.
3603
3604 2010-06-26 Jan Hubicka <jh@suse.cz>
3605
3606 PR middle-end/44671
3607 * cgraphunit.c (cgraph_function_versioning): Remove wrong
3608 cgraph_make_decl_local call; fix typo copying RTL data.
3609
3610 2010-06-25 DJ Delorie <dj@redhat.com>
3611
3612 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3613 (m32c_output_aligned_common): Likewise.
3614 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3615 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3616 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3617 (m32c_register_pragmas): Register it.
3618 * config/m32c/m32c.c (m32c_get_pragma_address): New.
3619 (m32c_insert_attributes): Set #pragma address decls volatile.
3620 (pragma_entry_eq): New.
3621 (pragma_entry_hash): New.
3622 (m32c_note_pragma_address): New.
3623 (m32c_get_pragma_address): New.
3624 (m32c_output_aligned_common): New.
3625 * doc/extend.texi: Document the new pragma.
3626
3627 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3628 also.
3629 * config/m32c/predicates.md (m32c_any_operand): Check the code
3630 instead of memory_operand so as to allow matching volatile MEMs.
3631 (m32c_nonimmediate_operand): Likewise.
3632 (mra_operand): Allow volatiles.
3633
3634 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
3635
3636 PR debug/44610
3637 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3638 address if the offset is unknown.
3639
3640 2010-06-25 Douglas B Rupp <rupp@gnat.com>
3641
3642 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3643 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3644 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3645 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3646 to ia64_start_function. Invoke it.
3647 * config/ia64/ia64.c (ia64_start_function): Call new function
3648 dwarf2out_vms_debug_main_pointer.
3649
3650 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3651
3652 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3653 statements computing the true predicate.
3654
3655 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3656
3657 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
3658 to boolean_true_node.
3659 (reset_bb_predicate): New.
3660 (predicate_bbs): Call reset_bb_predicate.
3661
3662 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3663
3664 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
3665 (tree_if_conversion): Returns true when something has been changed.
3666 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
3667 changed something.
3668
3669 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3670
3671 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
3672 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
3673 * tree-if-conv.c: Include dbgcnt.h.
3674 (tree_if_conversion): Use if_conversion_tree to count the number of
3675 if-convertible loops.
3676
3677 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
3678
3679 * common.opt (fprefetch-loop-arrays): Re-define
3680 -fprefetch-loop-arrays as a tri-state option with the initial
3681 value of -1.
3682 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
3683 pass only when flag_prefetch_loop_arrays > 0.
3684 * toplev.c (process_options): Note that, with tri-states,
3685 flag_prefetch_loop_arrays>0 means prefetching is enabled.
3686 * config/i386/i386.c (override_options): Enable prefetching at -O3
3687 for a set of CPUs that sw prefetching is helpful.
3688 (software_prefetching_beneficial_p): New. Return TRUE if software
3689 prefetching is beneficial for the given CPU.
3690
3691 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
3692
3693 PR rtl-optimization/44326
3694 * implicit-zee.c (find_removable_zero_extends): Replace
3695 INSN_P with NONDEBUG_INSN_P.
3696
3697 2010-06-25 Martin Jambor <mjambor@suse.cz>
3698
3699 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
3700 (struct ipa_node_params): Removed the modification_analysis_done flag.
3701 (ipa_is_param_modified): Removed.
3702 (ipa_analyze_node): Declare.
3703 (ipa_compute_jump_functions): Remove declaration.
3704 (ipa_count_arguments): Likewise.
3705 (ipa_detect_param_modifications): Likewise.
3706 (ipa_analyze_params_uses): Likewise.
3707 * ipa-prop.c (struct param_analysis_info): New type.
3708 (visit_store_addr_for_mod_analysis): Removed.
3709 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
3710 moved down in the file.
3711 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
3712 (ipa_count_arguments): Made static.
3713 (mark_modified): New function.
3714 (is_parm_modified_before_call): New function.
3715 (compute_pass_through_member_ptrs): New parameter parms_info, call
3716 is_parm_modified_before_call instead of ipa_is_param_modified.
3717 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
3718 it to compute_pass_through_member_ptrs.
3719 (ipa_compute_jump_functions): New parameter parms_info, pass it to
3720 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
3721 on the callee if it is analyzed. Made static.
3722 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
3723 is_parm_modified_before_call instead of ipa_is_param_modified.
3724 (ipa_analyze_call_uses): New parameter parms_info, pass it to
3725 ipa_analyze_indirect_call_uses.
3726 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
3727 ipa_analyze_call_uses.
3728 (ipa_analyze_params_uses): New parameter parms_info, pass it to
3729 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
3730 (ipa_analyze_node): New function.
3731 (ipa_print_node_params): Do not dump the modified flag.
3732 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
3733 it. Do not stream the modified parameter flag.
3734 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
3735 it. Do not stream the modified parameter flag.
3736 * ipa-cp.c (ipcp_analyze_node): Removed.
3737 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
3738 with only a call to ipa_analyze_node.
3739 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
3740 node with only a call to ipa_analyze_node.
3741
3742 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3743
3744 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
3745
3746 2010-06-25 Jan Hubicka <jh@suse.cz>
3747
3748 * tree-pass.h (pass_split_functions): Declare.
3749 * opts.c (decode_options): Enable function splitting at -O2
3750 * timevar.def (TV_IPA_FNSPLIT): New macro.
3751 * ipa-split.c: New file.
3752 * common.opt (-fpartial-inlining): New flag.
3753 * Makefile.in (ipa-split.o): New object file.
3754 * passes.c (init_optimization_passes): Add ipa-split.
3755 * params.def (partial-inlining-entry-probability): New parameters.
3756 * doc/invoke.texi (-fpartial-inlining): New.
3757
3758 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3759
3760 PR 44665
3761 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
3762 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
3763 (gimplify_expr): Likewise.
3764
3765 2010-06-25 Martin Jambor <mjambor@suse.cz>
3766
3767 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
3768 statements instead of bailing out on them.
3769 (ipa_analyze_indirect_call_uses): Do not require that loads from the
3770 parameter are in the same BB as the condition. Update comments.
3771
3772 2010-06-25 Jakub Jelinek <jakub@redhat.com>
3773
3774 PR middle-end/43866
3775 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
3776 true or always false, return NULL_TREE.
3777 (tree_unswitch_single_loop): Optimize conditions even when reaching
3778 max-unswitch-level parameter. If num > 0, optimize first all conditions
3779 using entry checks, then do still reachable block discovery and consider
3780 only conditions in still reachable basic blocks in the loop.
3781
3782 PR tree-optimization/44539
3783 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
3784 the call doesn't have LHS, but has VDEF.
3785
3786 2010-06-25 Joseph Myers <joseph@codesourcery.com>
3787
3788 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
3789 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
3790 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
3791 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
3792 * system.h (MODIFY_TARGET_NAME): Poison.
3793
3794 2010-06-25 Alan Modra <amodra@gmail.com>
3795
3796 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
3797 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
3798 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3799 CMODEL_LARGE as default.
3800 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
3801 (offsettable_ok_by_alignment): Delete.
3802 (rs6000_emit_move): Remove mcmodel=medium optimization.
3803
3804 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
3805
3806 With large parts from Jim Wilson:
3807 PR target/43902
3808 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
3809 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3810 * optabs.c (optab_for_tree_code): Likewise.
3811 (expand_widen_pattern_expr): Likewise.
3812 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
3813 out of execute_optimize_widening_mul.
3814 (convert_plusminus_to_widen): New function.
3815 (execute_optimize_widening_mul): Use the two new functions.
3816 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
3817 Remove code to generate widening multiply-accumulate. Add support
3818 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3819 * gimple-pretty-print.c (dump_ternary_rhs): New function.
3820 (dump_gimple_assign): Call it when appropriate.
3821 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
3822 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
3823 (expand_gimple_stmt_1): Likewise.
3824 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
3825 WIDEN_MULT_MINUS_EXPR.
3826 * tree-ssa-operands.c (get_expr_operands): Likewise.
3827 * tree-inline.c (estimate_operator_cost): Likewise.
3828 * gimple.c (extract_ops_from_tree_1): Renamed from
3829 extract_ops_from_tree. Add new arg for a third operand; fill it.
3830 (gimple_build_assign_stat): Support operations with three operands.
3831 (gimple_build_assign_with_ops_stat): Likewise.
3832 (gimple_assign_set_rhs_from_tree): Likewise.
3833 (gimple_assign_set_rhs_with_ops_1): Renamed from
3834 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
3835 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
3836 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
3837 WIDEN_MULT_MINUS_EXPR.
3838 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
3839 (extract_ops_from_tree_1): Adjust declaration.
3840 (gimple_assign_set_rhs_with_ops_1): Likewise.
3841 (gimple_build_assign_with_ops): Pass NULL for last operand.
3842 (gimple_build_assign_with_ops3): New macro.
3843 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
3844 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
3845 functions.
3846 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
3847 (verify_gimple_assign): Call it.
3848 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
3849 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
3850 functions for dealing with three-operand statements.
3851 * tree.c (commutative_ternary_tree_code): New function.
3852 * tree.h (commutative_ternary_tree_code): Declare it.
3853 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
3854 ternary statements.
3855 (gimple_assign_nonzero_warnv_p): Likewise.
3856 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
3857 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
3858 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
3859 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
3860 (struct hashtable_expr): New member ternary in the union.
3861 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
3862 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
3863 (iterative_hash_hashable_expr): Likewise.
3864 (print_expr_hash_elt): Handle EXPR_TERNARY.
3865 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
3866 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
3867 statements. Handle GIMPLE_TERNARY_RHS.
3868
3869 2010-06-25 Jan Hubicka <jh@suse.cz>
3870
3871 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
3872
3873 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
3874
3875 PR c/44517
3876 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
3877 parameters are not good.
3878 (c_parser_parameter_declaration): Error unknown type name if the type
3879 name can't start declaration specifiers.
3880
3881 2010-06-25 Joseph Myers <joseph@codesourcery.com>
3882
3883 * gcc.c (translate_options): Don't mention +e in comment.
3884 (process_command): Don't handle +e specially.
3885
3886 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
3887
3888 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3889
3890 * ira-build.c (merge_hard_reg_conflicts): New function.
3891 (create_cap_allocno, copy_info_to_removed_store_destinations,
3892 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3893 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3894 (remove_unnecessary_allocnos, remove_low_level_allocnos)
3895 copy_nifo_to_removed_store_destination): Use them.
3896 * ira-lives.c (make_hard_regno_born): New function, split out of
3897 make_regno_born.
3898 (make_allocno_born): Likewise.
3899 (make_hard_regno_dead): New function, split out of make_regno_dead.
3900 (make_allocno_dead): Likewise.
3901 (inc_register_pressure): New function, split out of set_allocno_live.
3902 (dec_register_pressure): New function, split out of clear_allocno_live.
3903 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3904 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
3905 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3906 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
3907 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3908 mark_pseudo_regno_live.
3909 (process_bb_node_lives): Use mark_pseudo_regno_live,
3910 make_hard_regno_born and make_allocno_dead.
3911 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3912 set_allocno_live, clear_allocno_live): Delete functions.
3913
3914 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3915 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3916 functions.
3917 (ira_flattening): Use ira_parent_allocno.
3918 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3919 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3920
3921 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3922 statement.
3923
3924 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3925 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3926 minmax_set_iter_cond, minmax_set_iter_next,
3927 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3928 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3929 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
3930 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
3931 uses changed.
3932
3933 * ira-int.h (struct live_range, live_range_t): Renamed from struct
3934 ira_allocno_live_range and allocno_live_range_t; all uses changed.
3935 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
3936 All uses changed.
3937
3938 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
3939
3940 * thumb2.md (thumb2_tlobits_cbranch): Delete.
3941 (peephole2 to convert zero_extract/compare of single bit to
3942 lshift/compare): New.
3943
3944 2010-06-24 Anatoly Sokolov <aesok@post.ru>
3945
3946 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
3947 recursive call and call to 'int_const_binop'.
3948 (build_range_check, fold_cond_expr_with_comparison, unextend,
3949 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
3950 multiple_of_p): Adjust call to const_binop.
3951
3952 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
3953
3954 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
3955 determine size of XFmode operand.
3956 (XFmode extended DFmode push splitter): Ditto.
3957 (XFmode extended SFmode push splitter): Ditto.
3958
3959 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
3960
3961 PR target/44588
3962 * config/i386/i386.md (extract_code): New.
3963 (<u>divmodqi4): Likewise.
3964 (divmodhiqi3): Likewise.
3965 (udivmodhiqi3): Likewise.
3966 (<u>divqi3): Remvoved.
3967
3968 2010-06-24 Jakub Jelinek <jakub@redhat.com>
3969
3970 PR middle-end/44492
3971 * recog.h (struct recog_data): Add is_asm field.
3972 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
3973 present in constraints of inline-asm operand and memory operand
3974 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
3975 (extract_insn): Initialize recog_data.is_asm.
3976 * doc/md.texi (Constraints): Document operand side-effect rules.
3977
3978 2010-06-24 Andi Kleen <ak@linux.intel.com>
3979
3980 * c-parser.c (c_parser_conditional_expression): Call
3981 warn_for_omitted_condop.
3982 * doc/invoke.texi: Document omitted condop warning.
3983
3984 2010-06-24 Nick Clifton<nickc@redhat.com>
3985
3986 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
3987 insn in the sequence is a jump insn before setting its label.
3988
3989 2010-06-24 Alan Modra <amodra@gmail.com>
3990
3991 * collect2.c (main): Match exactly --version and --help.
3992
3993 2010-06-24 DJ Delorie <dj@redhat.com>
3994
3995 * config/m32c/m32c-pragma.c: Don't include rtl.h.
3996
3997 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
3998
3999 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
4000 using X87MODEF mode iterator.
4001 (pushsf splitter): Macroize splitter using P mode iterator.
4002 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
4003 mode iterator.
4004
4005 (*movxf_internal): Rename from *movxf_integer.
4006 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
4007 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
4008 (*movdf_internal): Rename from *movdf_integer.
4009 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
4010 (*movsf_internal): Rename from *movdf_1.
4011
4012 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
4013
4014 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
4015 (const_gimple_seq_node): Removed typedefs.
4016
4017 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
4018 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
4019
4020 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
4021
4022 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
4023 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
4024 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
4025 and CODE_FOR_vec_extract_lo_v4df.
4026
4027 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
4028 Changed to define_insn_and_split.
4029 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
4030 (vec_extract_lo_v16hi): Likewise.
4031 (vec_extract_lo_v32qi): Likewise.
4032 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4033 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
4034
4035 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
4036
4037 PR target/44640
4038 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
4039 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
4040 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
4041 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
4042 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
4043
4044 PR target/44640
4045 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
4046
4047 PR other/44644
4048 * df-core.c (struct df): Rename to df_d.
4049 * df.h (struct df): Likewise.
4050 * dse.h (struct df): Remove forward declaration.
4051 * recog.h (struct insn_data): Rename to:
4052 (struct_insn_data_d). Adjusted all users.
4053
4054 2010-06-23 Arnaud Charlet <charlet@adacore.com
4055
4056 PR ada/22220
4057 * doc/install.texi: Update requirements to build GNAT.
4058
4059 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
4060
4061 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
4062 enum type.
4063 (m68k_sched_attr_opx_type): Remove unreachable return.
4064 (m68k_sched_attr_opy_type): Likewise.
4065 (m68k_sched_attr_size): Likewise.
4066 (sched_get_opxy_mem_type): Likewise.
4067 (m68k_sched_attr_op_mem): Likewise.
4068
4069 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
4070
4071 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
4072 new statement and adjust VDEF only if necessary. Remove superfluous
4073 call to maybe_clean_or_replace_eh_stmt.
4074 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
4075 copy the flags.
4076 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
4077 * tree-inline.c (copy_bb): ...and not there.
4078
4079 2010-06-22 Cary Coutant <ccoutant@google.com>
4080
4081 * dwarf2out.c (is_nested_in_subprogram): New function.
4082 (should_move_die_to_comdat): Use it.
4083 (copy_ancestor_tree): Don't mark DIEs here.
4084 (copy_decls_walk): Start walk from root of newly-added tree;
4085 mark DIEs here instead.
4086
4087 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
4088
4089 * config/i386/i386.md (unit): Also check sseishft1.
4090
4091 2010-06-22 Jan Hubicka <jh@suse.cz>
4092
4093 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
4094 enabled.
4095
4096 2010-06-22 Jan Hubicka <jh@suse.cz>
4097
4098 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
4099 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
4100 Return true if something changed.
4101 * df.h (df_confluence_function_n): Return bool.
4102 * df-core.c (df_worklist_propagate_forward,
4103 df_worklist_propagate_backward): Track changes and ages.
4104 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
4105 track ages.
4106 * dse.c (dse_confluence_n): Return always true.
4107
4108 2010-06-22 Jan Hubicka <jh@suse.cz>
4109
4110 * bitmap.c (bitmap_clear_bit): Micro optimize.
4111
4112 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
4113
4114 * config/i386/i386.md (SWI1248x): New mode iterator.
4115 (SWI48x): Ditto.
4116 (SWI12): Ditto.
4117 (SWI24): Ditto.
4118
4119 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
4120 SWI1248x mode iterator.
4121 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
4122 using SWI124 mode iterator.
4123 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
4124 mode iterator.
4125 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
4126 *pushdi2_prologue_rex64 using P mode iterator.
4127 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
4128 using SWI48 mode iterator.
4129 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
4130 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
4131 using SWI1248x mode iterator.
4132 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
4133 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
4134 SWI48 mode iterator.
4135 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
4136 iterator.
4137 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
4138 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
4139 SWI12 mode iterator.
4140 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
4141 SWI12 mode iterator.
4142 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
4143 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
4144 SWI24 mode iterator.
4145 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
4146 SWI48 mode iterator.
4147 (mov<mode>_insn_1): New expander.
4148 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
4149 using SWI48x mode iterator.
4150
4151 (*movoi_internal_avx): Rename from *movoi_internal.
4152 (*movti_internal_rex64): Rename from *movti_rex64.
4153 (*movti_internal_sse): Rename from *movti_sse.
4154 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
4155 (*movdi_internal): Rename from *movdi_2.
4156 (*movsi_internal): Rename from *movsi_1.
4157 (*movhi_internal): Rename from *movhi_1.
4158 (*movqi_internal): Rename from *movqi_1.
4159
4160 (insv): Update the call to gen_movsi_insv_1 for rename.
4161 * config/i386/i386.c (promote_duplicated_reg): Ditto.
4162
4163 2010-06-22 Jan Hubicka <jh@suse.cz>
4164
4165 * passes.c (execute_function_todo): Move call of statistics_fini_pass
4166 to ...
4167 (execute_todo) ... this one.
4168
4169 2010-06-22 Alan Modra <amodra@gmail.com>
4170
4171 PR target/44364
4172 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4173 * caller-save.c (insert_restore, insert_save): Use non-validate
4174 form of adjust_address.
4175
4176 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4177
4178 PR target/39690
4179 * config/pa/pa.c (override_options): Disable
4180 -freorder-blocks-and-partition.
4181
4182 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
4183
4184 PR target/44615
4185 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
4186
4187 * config/i386/i386.md (type): Add sseishft1
4188
4189 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
4190 (ppro_insn_load): Likewise.
4191 (ppro_insn_store): Likewise.
4192 (ppro_insn_both): Likewise.
4193
4194 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
4195 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
4196 for type.
4197 (*vec_extractv2di_1_avx): Likewise.
4198 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
4199 type. Remove atom_unit.
4200 (*vec_extractv2di_1_sse2): Likewise.
4201
4202 2010-06-21 DJ Delorie <dj@redhat.com>
4203
4204 * diagnostic.h (diagnostic_classification_change_t): New.
4205 (diagnostic_context): Add history and push/pop list.
4206 (diagnostic_push_diagnostics): Declare.
4207 (diagnostic_pop_diagnostics): Declare.
4208 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
4209 from pragmas in a history chain instead of the global table.
4210 (diagnostic_push_diagnostics): New.
4211 (diagnostic_pop_diagnostics): New.
4212 (diagnostic_report_diagnostic): Scan history chain to find state
4213 of diagnostics as of the diagnostic location.
4214 * opts.c (set_option): Pass UNKNOWN_LOCATION to
4215 diagnostic_classify_diagnostic.
4216 (enable_warning_as_error): Likewise.
4217 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
4218 use in the history chain.
4219 * doc/extend.texi: Document pragma GCC diagnostic changes.
4220
4221 2010-06-21 Jakub Jelinek <jakub@redhat.com>
4222
4223 * dwarf2out.c (add_linkage_name): New function. Don't add
4224 anything to DW_TAG_member DIEs.
4225 (add_name_and_src_coords_attributes): Use it.
4226 (gen_variable_die): Call it for C++ static data members if
4227 specification is DW_TAG_member.
4228
4229 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
4230 C++ char16_t and char32_t.
4231
4232 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
4233 * genattrtab.c: Include vecprim.h.
4234 (cached_attrs, cached_attr_count, attrs_seen_once,
4235 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
4236 attrs_cached_after): New variables.
4237 (find_attrs_to_cache): New function.
4238 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
4239 (write_test_expr): Add attrs_cached argument, return it too,
4240 attempt to cache non-const attributes used more than once in
4241 a single case handling.
4242 (write_attr_get): Use find_attrs_to_cache, for caching candidates
4243 emit cached_* variables. Adjust write_attr_set callers.
4244 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
4245 to find attributes that should be cached in this block. Adjust
4246 write_test_expr callers.
4247 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
4248 callers.
4249 (make_automaton_attrs): Adjust write_test_expr caller.
4250
4251 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
4252 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
4253 (make_automaton_attrs): If find_tune_attr returns non-NULL,
4254 write separate internal_dfa_insn_code_* and insn_default_latency_*
4255 functions for each attribute's value and emit init_sched_attrs
4256 function and function pointers.
4257 * genattr.c (const_attrs, reservations): New variables.
4258 (gen_attr): Add const attributes to const_attrs vector.
4259 (check_tune_attr, find_tune_attr): New functions.
4260 (main): Add reservations to reservations vector. If find_tune_attr
4261 returns true, add prototype for init_sched_attrs and make
4262 internal_dfa_insn_code and insn_default_latency function pointers,
4263 otherwise define init_sched_attrs as dummy macro.
4264 * cfgexpand.c: Include insn-attr.h.
4265 (gimple_expand_cfg): Call init_sched_attrs.
4266
4267 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
4268
4269 PR target/44575
4270 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
4271 va_arg from a set of register save slots into a temporary,
4272 if the container is bigger than type size, do the copying
4273 using smaller mode or using memcpy.
4274
4275 PR bootstrap/44426
4276 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
4277 prototype.
4278 (sel_print_to_dot): Remove macro.
4279 (sel_print): Likewise. New prototype.
4280 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
4281 (sel_print): New function.
4282
4283 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4284
4285 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
4286 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
4287
4288 2010-06-21 Nick Clifton <nickc@redhat.com>
4289
4290 * config/rx/rx.h (PTRDIFF_TYPE): Define.
4291 (SMALL_REGISTER_CLASS): Define (to zero).
4292 (PRINT_OPERAND): Delete.
4293 (PRINT_OPERAND_ADDRESS): Delete.
4294 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
4295 (rx_print_operand_address): Delete prototype.
4296 * config/rx/rx.c (rx_print_operand): Make static.
4297 Allow %H and %L to handle CONST_DOUBLEs.
4298 (rx_print_operand_address): Make static.
4299 (rx_gen_move_template): Rename local variable 'template' to
4300 out_template.
4301 (rx_function_arg): Do not pass unknown sized objects in registers.
4302 (TARGET_PRINT_OPERAND): Define.
4303 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4304
4305 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4306
4307 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4308
4309 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
4310
4311 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4312 stack-alignment for simple leaf-functions.
4313
4314 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4315
4316 * doc/install.texi: Document bootstrap-lto.
4317
4318 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4319
4320 PR debug/44248
4321 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4322 (input_function): Drop them here, if VTA is disabled.
4323
4324 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
4325
4326 PR target/44546
4327 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4328 New predicate.
4329 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4330 ix86_swapped_fp_comparsion_operator instead of
4331 ix86_fp_comparison_operator.
4332
4333 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4334 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4335 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4336 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4337 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4338 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4339
4340 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4341
4342 PR other/32998
4343 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4344 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4345 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4346 (decode_cmdline_option): Update for this return value. Set
4347 orig_option_with_args_text field. Set arg field for unknown
4348 options. Make static.
4349 (decode_cmdline_options_to_array): New.
4350 (prune_options): Update handling of find_opt return value.
4351 * opts.c (read_cmdline_option): Take decoded option. Return void.
4352 (read_cmdline_options): Take decoded options.
4353 (decode_options): Add parameters for decoded options. Use
4354 decode_cmdline_options_to_array. Use decoded options for -O
4355 scan. Use integral_argument for -O parameters. Update call to
4356 read_cmdline_options.
4357 (enable_warning_as_error): Update handling of find_opt return value.
4358 * opts.h: Update comment on unknown options.
4359 (struct cl_decoded_option): Update comments on opt_index and arg.
4360 Add orig_option_with_args_text.
4361 (decode_cmdline_option): Remove.
4362 (decode_cmdline_options_to_array): Declare.
4363 (decode_options): Update prototype.
4364 * toplev.c (save_argv): Remove.
4365 (save_decoded_options, save_decoded_options_count): New.
4366 (read_integral_parameter): Remove.
4367 (print_switch_values): Use decoded options.
4368 (toplev_main): Don't set save_argv. Update call to decode_options.
4369 * toplev.h (read_integral_parameter): Remove.
4370 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4371
4372 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
4373
4374 PR target/44072
4375 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4376 immediate.
4377 * constraints.md (Pw, Px): New constraints.
4378 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4379
4380 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
4381
4382 * config/i386/sse.md (fma4modesuffixf4): Removed.
4383 (ssemodesuffixf2s): Likewise.
4384 (ssemodesuffixf4): Likewise.
4385 (ssemodesuffixf2c): Likewise.
4386 (ssescalarmodesuffix2s): Likewise.
4387 (avxmodesuffixf2c): Likewise.
4388 (ssemodesuffix): New.
4389 (ssescalarmodesuffix): Likewise.
4390 Update patterns with ssemodesuffix and ssescalarmodesuffix.
4391
4392 2010-06-19 Philip Herron <herron.philip@googlemail.com>
4393
4394 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4395
4396 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
4397
4398 * stor-layout.c (debug_rli): Remove unused local variables.
4399
4400 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4401
4402 PR rtl-optimization/40900
4403 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
4404 original expression for later reuse.
4405 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4406 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4407
4408 2010-06-18 Anatoly Sokolov <aesok@post.ru>
4409
4410 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4411 double_int_fits_in_uhwi_p): Implement as static inline.
4412 (double_int_xor): New inline function.
4413 (double_int_lrotate, double_int_rrotate, double_int_max,
4414 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4415 double_int_smin): Declare.
4416 (lrotate_double, rrotate_double): Remove declaration.
4417 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4418 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4419 (double_int_lrotate, double_int_rrotate, double_int_max,
4420 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4421 double_int_smin): New function.
4422 * fold-const.c (int_const_binop): Clean up, use double_int_*
4423 functions.
4424 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4425 double_int_* and immed_double_int_const functions.
4426
4427 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4428
4429 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4430 * function.c (types_used_by_cur_var_decl): Likewise.
4431 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4432
4433 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4434
4435 * tree.h (record_layout_info): Change type of pending_statics field
4436 to a VEC.
4437 * stor-layout.c (start_record_layout): Store NULL into
4438 pending_statics.
4439 (debug_rli): Call debug_vec_tree instead of debug_tree.
4440 (place_field): Likewise.
4441 (finish_record_layout): Likewise.
4442
4443 2010-06-18 Alan Modra <amodra@gmail.com>
4444
4445 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4446
4447 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4448
4449 PR target/43740
4450 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4451 for SET source operand from SET destination operand.
4452
4453 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
4454
4455 PR rtl-optimization/39871
4456 * reload1.c (init_eliminable_invariants): For flag_pic, disable
4457 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4458 (function_invariant_p): Rule out a plus of frame or arg pointer with
4459 a SYMBOL_REF.
4460 * ira.c (find_reg_equiv_invariant_const): Likewise.
4461
4462 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
4463
4464 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4465 print_operand_address and puts to output the operand for CONST.
4466
4467 2010-06-17 Jakub Jelinek <jakub@redhat.com>
4468
4469 PR debug/44572
4470 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4471 hook.
4472
4473 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4474
4475 * v850-protos.h (print_operand): Delete.
4476 (print_operand_address): Delete.
4477 * v850.h (PRINT_OPERAND): Delete.
4478 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4479 (PRINT_OPERAND_ADDRESS): Delete.
4480 * v850.c (print_operand_address): Rename to...
4481 (v850_print_operand_address): ...this. Make static. Call
4482 v850_print_operand.
4483 (print_operand): Rename to...
4484 (v850_print_operand): ...this. Make static. Call
4485 v850_print_operand_address.
4486 (v850_print_operand_punct_valid_p): New function.
4487 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4488 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4489
4490 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4491
4492 * config/sh/sh-protos.h (print_operand): Delete.
4493 (print_operand_address): Delete.
4494 * config/sh/sh.h (PRINT_OPERAND): Delete.
4495 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4496 (PRINT_OPERAND_ADDRESS): Delete.
4497 * config/sh/sh.c (sh_print_operand_address): Make static.
4498 (sh_print_operand): Make static. Call sh_print_operand_address
4499 and sh_print_operand.
4500 (sh_print_operand_punct_valid_p): New function.
4501 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4502 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4503
4504 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4505
4506 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4507 (mcore_print_operand_address): Delete.
4508 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4509 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4510 (PRINT_OPERAND_ADDRESS): Delete.
4511 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4512 (mcore_print_operand): Make static.
4513 (mcore_print_operand_punct_valid_p): New function.
4514 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4515 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4516
4517 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4518
4519 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4520 (print_operand_address): Delete.
4521 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
4522 (PRINT_OPERAND_ADDRESS): Delete.
4523 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
4524 static.
4525 (m68hc11_print_operand): Make static.
4526 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4527
4528 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4529
4530 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
4531 (m32r_print_operand_address): Delete.
4532 * config/m32r/m32r.h (m32r_punct_chars): Delete.
4533 (PRINT_OPERAND): Delete.
4534 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4535 (PRINT_OPERAND_ADDRESS): Delete.
4536 * config/m32r/m32r.c (m32r_punct_chars): Make static.
4537 (m32r_print_operand_address): Make static.
4538 (m32r_print_operand): Make static.
4539 (m32r_print_operand_punct_valid_p): New function.
4540 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4541 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4542
4543 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4544
4545 * config/iq2000/iq2000-protos.h (print_operand): Delete.
4546 (print_operand_address): Delete.
4547 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
4548 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4549 (PRINT_OPERAND_ADDRESS): Delete.
4550 (iq2000_print_operand_punct): Delete.
4551 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
4552 (iq2000_print_operand_address): Make static.
4553 (iq2000_print_operand): Make static.
4554 (iq2000_print_operand_punct_valid_p): New function.
4555 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4556 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4557
4558 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4559
4560 * config/frv/frv-protos.h (frv_print_operand): Delete.
4561 (frv_print_operand_address): Delete.
4562 * config/frv/frv.h (PRINT_OPERAND): Delete.
4563 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4564 (PRINT_OPERAND_ADDRESS): Delete.
4565 * config/frv/frv.c (frv_print_operand_address): Make static.
4566 (frv_print_operand): Make static.
4567 (frv_print_operand_punct_valid_p): New function.
4568 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4569 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4570
4571 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4572
4573 * tree.h (vec_member): Declare.
4574 * tree.c (vec_member): Define.
4575
4576 2010-06-17 Richard Guenther <rguenther@suse.de>
4577
4578 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
4579 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
4580
4581 2010-06-17 Richard Guenther <rguenther@suse.de>
4582
4583 * tree-inline.c (declare_return_variable): Remove bogus code.
4584
4585 2010-06-17 Richard Guenther <rguenther@suse.de>
4586
4587 * gimplify.c (gimplify_bind_expr): Always promote complex
4588 and vector variables to registers if possible.
4589
4590 2010-06-17 Richard Guenther <rguenther@suse.de>
4591
4592 * expr.c (get_inner_reference): Use double_int for bit_offset
4593 calculation.
4594
4595 2010-06-16 DJ Delorie <dj@redhat.com>
4596
4597 * common.opt (-fstrict-volatile-bitfields): new.
4598 * doc/invoke.texi: Document it.
4599 * fold-const.c (optimize_bit_field_compare): For volatile
4600 bitfields, use the field's type to determine the mode, not the
4601 field's size.
4602 * expr.c (expand_assignment): Likewise.
4603 (get_inner_reference): Likewise.
4604 (expand_expr_real_1): Likewise.
4605 * expmed.c (store_fixed_bit_field): Likewise.
4606 (extract_bit_field_1): Likewise.
4607 (extract_fixed_bit_field): Likewise.
4608
4609 2010-06-16 Richard Guenther <rguenther@suse.de>
4610
4611 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4612
4613 2010-06-16 Douglas B Rupp <rupp@gnat.com>
4614
4615 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4616 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4617 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4618 * debug.c: Likewise.
4619 * sdbout.c: Likewise.
4620 * vmsdbgout.c: Likewise.
4621 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4622 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4623 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4624 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4625 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4626 * dwarf2out.c (dw_fde_struct): New fields
4627 dw_fde_vms_{end,begin}_prologue.
4628 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4629 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4630 (dwarf2out_vms_end_prologue): New function.
4631 (dwarf2out_vms_begin_epilogue): New function.
4632 (dw_val_struct): New value dw_val_class_vms_delta.
4633 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4634 begin_epilogue for VMS.
4635 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4636 new static functions.
4637 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4638 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4639 static functions.
4640 (print_die): New case dw_val_class_vms_delta.
4641 (attr_checksum): Likewise.
4642 (same_dw_val_p: Likewise.
4643 (size_of_die): Likewise.
4644 (value_format): Likewise.
4645 (output_die): Likewise.
4646 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4647 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4648 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4649 dwarf2out_cfi_begin_epilogue
4650 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4651
4652 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4653
4654 * config/cris/cris-protos.h (cris_print_operand): Delete.
4655 (cris_print_operand_address): Delete.
4656 * config/cris/cris.h (PRINT_OPERAND): Delete.
4657 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4658 (PRINT_OPERAND_ADDRESS): Delete.
4659 * config/cris/cris.c (cris_print_operand_address): Make static.
4660 (cris_print_operand): Make static.
4661 (cris_print_operand_punct_valid_p): New function.
4662 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4663 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4664
4665 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4666
4667 * config/arm/arm-protos.h (arm_print_operand): Delete.
4668 (arm_print_operand_address): Delete.
4669 * config/arm/arm.h (PRINT_OPERAND): Delete.
4670 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4671 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
4672 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
4673 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
4674 (arm_print_operand): Make static.
4675 (arm_print_operand_punct_valid_p): New function.
4676 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4677 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4678
4679 2010-06-16 Nick Clifton <nickc@redhat.com>
4680
4681 * config/rx/constraints.md (NEGint4): New constraint.
4682 * config/rx/rx.md (attr cc): Add set_zsc.
4683 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
4684 initialised.
4685 (cmpsf): Likewise.
4686 (call_internal): Clobber the cc0 register.
4687 (call_value_internal): Likewise.
4688 (cstoresi4): Likewise.
4689 (movsieq): Likewise.
4690 (movsine): Likewise.
4691 (addsi3): Add alternative to handle small negative constants.
4692 (sunsi3): Likewise.
4693 (addsi3): Do not set the O bit in the cc0 register.
4694 (adddi3): Likewise.
4695 (subsi3): Likewise.
4696 (subdi3): Likewise.
4697 (andsi3): Reorder alternatives to prefer shorter forms.
4698 (mulsi3): Likewise.
4699 (iorsi3): Likewise.
4700 (negsi2): Note that the cc0 flags are set.
4701 (rotlsi3): Note that only the Z and S bits are set in cc0.
4702 (lshrsi3): Likewise.
4703 (ashlsi3): Likewise.
4704 (subsf3): Use %Q for the MEM operand.
4705 (fix_truncsfsi2): Likewise.
4706 (floatsisf2): Likewise.
4707 (bitset): Remove early clobber from destination.
4708 (bitset_in_memory): Likewise.
4709 (lrintsf2): Clobber the cc0 register.
4710 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
4711 (rx_print_operand): Handle %N.
4712
4713 2010-06-16 Jan Hubicka <jh@suse.cz>
4714
4715 * df-core.c (df_compact_blocks): Free problem_temps vector.
4716
4717 2010-06-16 Martin Jambor <mjambor@suse.cz>
4718
4719 PR tree-optimization/43905
4720 * tree-sra.c: Include tree-inline.h.
4721 (create_abstract_origin): Removed.
4722 (modify_function): Version the call graph node instead of creating
4723 abstract origins and dealing with same_body aliases.
4724 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
4725 function is versionable.
4726 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
4727
4728 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
4729
4730 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
4731 (CHOOSE_DYNAMIC_LINKER): Update.
4732
4733 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
4734
4735 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
4736 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
4737 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
4738 *prefetch_3dnow_rex.
4739
4740 2010-06-15 Anatoly Sokolov <aesok@post.ru>
4741
4742 * target.h (struct asm_out):Add declare_constant_name field.
4743 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4744 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
4745 * output.h (default_asm_declare_constant_name): Declare.
4746 (assemble_label): Update prototype.
4747 * varasm.c (assemble_constant_contents): Use
4748 targetm.asm_out.declare_constant_name target hook.
4749 (assemble_label): Add 'file' argument.
4750 (default_asm_declare_constant_name): New function.
4751 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
4752 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
4753 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
4754
4755 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
4756 * config/darwin.c (darwin_asm_declare_constant_name): New function.
4757 (machopic_output_indirection): Update assemble_label argument list.
4758 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
4759 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4760
4761 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
4762
4763 PR middle-end/44391
4764 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4765 size_one_node for pointer types. Do not call gmp_cst_to_tree.
4766
4767 2010-06-15 Richard Guenther <rguenther@suse.de>
4768
4769 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
4770
4771 2010-06-15 Paul Brook <paul@codesourcery.com>
4772
4773 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
4774 hard-float ABI.
4775
4776 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
4777
4778 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
4779 don't get a vector type for output.
4780
4781 2010-06-15 Jakub Jelinek <jakub@redhat.com>
4782
4783 PR fortran/44536
4784 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
4785 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
4786 (LANG_HOOKS_DECLS): Add it.
4787 * gimplify.c (omp_notice_variable): Call
4788 lang_hooks.decls.omp_report_decl.
4789
4790 2010-06-15 Martin Jambor <mjambor@suse.cz>
4791
4792 PR lto/44464
4793 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
4794 on the newly dead SSA name.
4795
4796 2010-06-15 Alan Modra <amodra@gmail.com>
4797
4798 * doc/invoke.texi: Add mcmodel to powerpc options.
4799 * configure.ac: Add HAVE_LD_LARGE_TOC test.
4800 * configure: Regenerate.
4801 * config.in: Regenerate.
4802 * config/rs6000/linux64.opt (mcmodel): New.
4803 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
4804 (TARGET_CMODEL, SET_CMODEL): Define.
4805 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
4806 select CMODEL_MEDIUM default.
4807 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
4808 (TARGET_CMODEL): Define default.
4809 * config/rs6000/rs6000.c (cmodel): New variable.
4810 (rs6000_explicit_options): Add cmodel field.
4811 (rs6000_handle_option): Handle -mcmodel.
4812 (create_TOC_reference): Add largetoc_reg param. Generate high,
4813 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
4814 (rs6000_delegitimize_address): Recognise new toc reference rtl
4815 and minimal-toc rtl.
4816 (rs6000_legitimize_reload_address): Handle new toc references.
4817 (print_operand_address): Handle legitimate_constant_pool_address_p
4818 match before lo_sum.
4819 (rs6000_eliminate_indexed_memrefs): Tidy.
4820 (rs6000_emit_move): Tweak threshold for inlining constants.
4821 Keep rs6000_emit_allocate_stack large stack frame offsets
4822 loaded into r0 inline.
4823 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
4824 (tocrel_base, tocrel_offset): New variables.
4825 (toc_relative_expr_p): Set them here.
4826 (print_operand_address): Skip over any offset on constant pool address.
4827 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
4828 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
4829 (offsettable_ok_by_alignment): New function.
4830 (rs6000_emit_move): Address suitably aligned local symbol_refs
4831 relative to the toc pointer for -mcmodel=medium.
4832 (legitimate_constant_pool_address_p): Make param const_rtx. Add
4833 strict param. Allow lo_sum version of addressing. Verify reg
4834 used for -mminimal-toc and -mcmodel != small. Update all callers.
4835 * config/rs6000/constraints.md: Update for above change.
4836 * config/rs6000/predicates.md: Likewise.
4837 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
4838 code.
4839 (tls_gd): Split for -mcmodel=medium/large.
4840 (tls_gd_high, tls_gd_low): New.
4841 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
4842 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
4843 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
4844 (largetoc_high, largetoc_low): New.
4845 (cmptf_internal2): Add clobber.
4846 * config/rs6000/rs6000-protos.h: Update.
4847
4848 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
4849
4850 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
4851 true if no prefetch is going to be generated for a given group.
4852 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
4853 estimate the prefetch_count.
4854 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
4855 prefetch count by considering the unroll_factor and prefetch_mod
4856 for is_loop_prefetching_profitable.
4857
4858 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
4859
4860 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
4861 anything if the argument is not a MEM.
4862
4863 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
4864
4865 PR debug/43650
4866 PR debug/44181
4867 PR debug/44247
4868 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
4869 debug stmts.
4870 (canonicalize_loop_ivs): Likewise.
4871
4872 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
4873
4874 PR debug/43656
4875 * haifa-sched.c (setup_insn_reg_pressure_info,
4876 update_register_pressure): Reject debug insns.
4877 (ready_sort): Don't setup reg pressure for debug insns.
4878 (schedule_insn): Don't update reg pressure for debug insns.
4879
4880 2010-06-14 Richard Guenther <rguenther@suse.de>
4881
4882 * lto-streamer.c (cached_bp): Remove.
4883 (bitpack_delete): Likewise.
4884 (bitpack_create): Likewise.
4885 (bp_get_next_word): Likewise.
4886 (bp_pack_value, bp_unpack_value): Move ...
4887 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
4888 Re-implement.
4889 (struct bitpack_d): Likewise.
4890 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4891 New inline functions.
4892 * lto-streamer-out.c (lto_output_bitpack): Remove.
4893 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4894 (pack_value_fields): Adjust.
4895 (lto_write_tree): Likewise.
4896 (output_gimple_stmt): Likewise.
4897 (output_function): Likewise.
4898 * lto-streamer-in.c (input_gimple_stmt): Adjust.
4899 (input_function): Likewise.
4900 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4901 (lto_input_bitpack): Remove.
4902 (lto_materialize_tree): Adjust.
4903 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4904 * lto-cgraph.c (lto_output_edge): Adjust.
4905 (lto_output_node): Likewise.
4906 (lto_output_varpool_node): Likewise.
4907 (lto_output_ref): Likewise.
4908 (input_node): Likewise.
4909 (input_varpool_node): Likewise.
4910 (input_ref): Likewise.
4911 (input_edge): Likewise.
4912 (output_node_opt_summary): Likewise.
4913 (input_node_opt_summary): Likewise.
4914 * ipa-pure-const.c (pure_const_write_summary): Likewise.
4915 (pure_const_read_summary): Likewise.
4916 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4917 (ipa_read_indirect_edge_info): Likewise.
4918 (ipa_write_node_info): Likewise.
4919 (ipa_read_node_info): Likewise.
4920
4921 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
4922
4923 PR target/44534
4924 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4925 (vec_extract_lo_v16hi): Likewise.
4926 (vec_extract_lo_v32qi): Likewise.
4927
4928 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4929
4930 PR bootstrap/44426
4931 * tree.h (build_call_expr): Don't define as vararg macro, instead
4932 add a prototype.
4933 * builtins.c (build_call_nofold): Remove.
4934 (expand_builtin_int_roundingfn, expand_builtin_pow,
4935 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
4936 expand_builtin_memset_args, expand_builtin_strcmp,
4937 expand_builtin_strncmp, expand_builtin_memory_chk): Use
4938 build_call_nofold_loc instead of build_call_nofold.
4939 (build_call_expr): New function.
4940
4941 PR tree-optimization/44508
4942 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
4943 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
4944 don't eliminate trivially dead stmts.
4945 * tree-vrp.c (vrp_finalize): Pass false as last argument
4946 to substitute_and_fold.
4947 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
4948 to substitute_and_fold.
4949 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4950
4951 PR bootstrap/44509
4952 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
4953
4954 2010-06-14 Ira Rosen <irar@il.ibm.com>
4955
4956 PR tree-optimization/44507
4957 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
4958 to build initial vector for BIT_AND_EXPR.
4959 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4960
4961 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4962
4963 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
4964 adjust z10prop set_attr.
4965
4966 2010-06-13 Jan Hubicka <jh@suse.cz>
4967
4968 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4969 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
4970 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
4971 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
4972 datastructure checks into checking asserts.
4973 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
4974 * tree-ssa-sccvn.c (VN_INFO): Likewise.
4975 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
4976 df_ref_create_structure): Likewise.
4977 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
4978 pool_free): Use gcc_checking_assert.
4979 * alias.c (get_alias_set): Likewise.
4980 * var-tracking.c (variable_htab_free, shared_hash_copy,
4981 canonicalize_values_mark, variable_merge_over_cur): Likewise.
4982 * lto-streamer.c (bp_unpack_value): Likewise.
4983
4984 2010-06-13 Richard Guenther <rguenther@suse.de>
4985
4986 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
4987 Do not stream but initialize TYPE_CANONICAL to NULL.
4988 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4989 * gimple.c (gimple_types_compatible_p): Disregard
4990 TYPE_STRUCTURAL_EQUALITY_P.
4991 (gimple_register_type): Use TYPE_CANONICAL as cache.
4992 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4993 before registering common types.
4994 * config/i386/i386.c (ix86_function_arg_boundary): Do not
4995 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4996 * tree.h (TYPE_CANONICAL): Clarify documentation.
4997
4998 2010-06-13 Anatoly Sokolov <aesok@post.ru>
4999
5000 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5001 LIBCALL_VALUE): Remove macros.
5002 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
5003 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5004 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5005 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
5006 (ia64_function_value): Make static. Handle receiving the function
5007 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
5008
5009 2010-06-12 Jan Hubicka <jh@suse.cz>
5010
5011 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
5012 at correct place.
5013
5014 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
5015
5016 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
5017
5018 2010-06-12 Jan Hubicka <jh@suse.cz>
5019
5020 * df-core.c (df_clear_bb_info): New function.
5021 (df_set_blocks): bb_info is always allocated.
5022 (df_get_bb_info): Use block_info_elt_size.
5023 (df_set_bb_info): Likewise.
5024 (df_compact_blocks): Update for new block_info.
5025 (grow_bb_info): New function.
5026 * df-problems.c (df_grow_bb_info): Move to df-core.c
5027 (df_rd_set_bb_info): Remove.
5028 (df_rd_free_bb_info): Do not free block pool.
5029 (df_rd_alloc): Do not create pool, use check for
5030 obstack presence instead of NULL pointer for new blocks.
5031 (df_rd_free): DO not free alloc pool; clear block_info.
5032 (problem_RD): Add size of block info structure.
5033 (df_lr_set_bb_info): Remove.
5034 (df_lr_free_bb_info): Do not free block pool.
5035 (df_lr_alloc): Do not create pool, use check for
5036 obstack presence instead of NULL pointer for new blocks.
5037 (df_lr_free): DO not free alloc pool; clear block_info.
5038 (problem_LR): Add size of block info structure.
5039 (df_live_set_bb_info): Remove.
5040 (df_live_free_bb_info): Do not free block pool.
5041 (df_live_alloc): Do not create pool, use check for
5042 obstack presence instead of NULL pointer for new blocks.
5043 (df_live_free): DO not free alloc pool; clear block_info.
5044 (problem_LIVE): Add size of block info structure.
5045 (problem_CHAIN): Add size of block info structure.
5046 (df_byte_lr_set_bb_info): Remove.
5047 (df_byte_lr_free_bb_info): Do not free block pool.
5048 (df_byte_lr_alloc): Do not create pool, use check for
5049 obstack presence instead of NULL pointer for new blocks.
5050 (df_byte_lr_free): DO not free alloc pool; clear block_info.
5051 (problem_BYTE_LR): Add size of block info structure.
5052 (problem_NOTE): Add size of block info structure.
5053 (df_byte_MD_set_bb_info): Remove.
5054 (df_byte_MD_free_bb_info): Do not free block pool.
5055 (df_byte_MD_alloc): Do not create pool, use check for
5056 obstack presence instead of NULL pointer for new blocks.
5057 (df_byte_MD_free): DO not free alloc pool; clear block_info.
5058 (problem_BD): Add size of block info structure.
5059 * df-scan.c (df_scan_free_internal): Free block pool.
5060 (df_scan_set_bb_info): Remove.
5061 (df_scan_free_bb_info): Check for artificial_defs instead
5062 of bb_info being non-NULL.
5063 (df_scan_alloc): DO not create df_scan_block pool.
5064 (problem_SCAN): Set size of block info.
5065 (df_bb_refs_record): Do not allocate bb_info.
5066 * df.h (df_problem): Add block_info_elt_size.
5067 (struct dataflow): Change block_info to void *.
5068 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
5069 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
5070 in-line structures.
5071
5072 2010-06-12 Jan Hubicka <jh@suse.cz>
5073
5074 PR tree-optimize/44485
5075 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
5076 containing use of return value of noreturn function.
5077
5078 2010-06-12 Anatoly Sokolov <aesok@post.ru>
5079
5080 * targhooks.c (default_function_value): Don't use
5081 FUNCTION_OUTGOING_VALUE.
5082 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
5083 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
5084
5085 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
5086
5087 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
5088 Add crtfastmath.o to extra_parts.
5089 * config/mips/crtfastmath.c: New.
5090 * config/mips/linux.h (ENDFILE_SPEC): New.
5091
5092 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
5093
5094 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
5095 old_type in parameter.
5096 (gcc_type_for_value): Update call to gcc_type_for_interval.
5097 (compute_type_for_level_1): Renamed compute_type_for_level.
5098 Update call to gcc_type_for_interval.
5099
5100 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5101
5102 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
5103 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
5104
5105 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5106
5107 * opts-common.c: Include options.h.
5108 (integral_argument): Move from opts.c.
5109 (decode_cmdline_option): New. Based on read_cmdline_option.
5110 * opts.c (integral_argument): Move to opts-common.c.
5111 (read_cmdline_option): Move most contents to
5112 decode_cmdline_option. Use %qs in diagnostics.
5113 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
5114 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
5115 decode_cmdline_option): New.
5116
5117 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5118
5119 PR target/44481
5120 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
5121 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
5122 (partiysi2_cmp): Ditto.
5123 (*partiyhi2_cmp): Ditto.
5124 (*parityqi2_cmp): Remove.
5125
5126 2010-06-11 Jan Hubicka <jh@suse.cz>
5127
5128 * bitmap.h (bmp_iter_next_bit): New.
5129 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
5130
5131 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
5132 Eric Botcazou <ebotcazou@adacore.com>
5133
5134 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
5135 computed cost.
5136
5137 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5138
5139 * config/i386/i386.md (unspec): New define_c_enum.
5140 (unspecv): Ditto.
5141
5142 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5143
5144 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
5145
5146 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
5147
5148 PR middle-end/44483
5149 * tree-if-conv.c (bb_predicate_s): New struct.
5150 (bb_predicate_p): New.
5151 (bb_has_predicate): New.
5152 (bb_predicate): New.
5153 (set_bb_predicate): New.
5154 (bb_predicate_gimplified_stmts): New.
5155 (set_bb_predicate_gimplified_stmts): New.
5156 (add_bb_predicate_gimplified_stmts): New.
5157 (init_bb_predicate): New.
5158 (free_bb_predicate): New.
5159 (is_predicated): Use bb_predicate.
5160 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
5161 (predicate_bbs): Same. Gimplify the condition of the basic blocks
5162 before processing their successors.
5163 (clean_predicate_lists): Removed.
5164 (find_phi_replacement_condition): Use bb_predicate.
5165 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
5166 computations.
5167 (insert_gimplified_predicates): New.
5168 (combine_blocks): Call insert_gimplified_predicates.
5169 (tree_if_conversion): Call free_bb_predicate instead of
5170 clean_predicate_lists.
5171
5172 2010-10-11 Paul Brook <paul@codesourcery.com>
5173
5174 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
5175 * config/arm/arm.c (all_architectures): Change v7e-m default to
5176 cortexm4.
5177 * config/arm/arm-cores.def: Add cortex-m4.
5178 * config/arm/arm-tune.md: Regenerate.
5179
5180 2010-06-11 Jan Hubicka <jh@suse.cz>
5181
5182 * ipa-pure-const.c (special_builtlin_state): New function.
5183 (check_call): Use it instead of special casign BUILT_IN_RETURN.
5184 (propagate_pure_const): Use it.
5185
5186 2010-06-11 Jan Hubicka <jh@suse.cz>
5187
5188 * df-problems.c (df_live_scratch): Convert to bitmap_head.
5189 (df_live_alloc): Initialize df_live_scratch when initializing
5190 problem_data.
5191 (df_live_transfer_function): Update uses of df_live_scratch.
5192 (df_live_free): Free problem_data; clear df_live_scratch before
5193 releasing the obstack.
5194 (df_md_free): Free problem data.
5195
5196 2010-06-11 Jan Hubicka <jh@suse.cz>
5197
5198 * doc/invoke.texi (Wsuggest-attribute): Document.
5199 (Wmissing-noreturn): Remove.
5200 * ipa-pure-const.c (warn_function_noreturn): New function.
5201 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
5202 warn_missing_noreturn.
5203 * common.opt (Wsuggest-attribute=noreturn): New.
5204 * tree-flow.h (warn_function_noreturn): Declare.
5205 * tree-cfg.c (execute_warn_function_noreturn): Use
5206 warn_function_noreturn.
5207 (gate_warn_function_noreturn): New.
5208 (pass_warn_function_noreturn): Update.
5209
5210 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5211
5212 * c-typeck.c (handle_warn_cast_qual): Add loc
5213 parameter. Improve warning message.
5214 (build_c_cast): Pass location to handle_warn_cast_qual.
5215
5216 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5217
5218 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
5219 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
5220 insn mnemonic.
5221 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
5222
5223 2010-06-10 Dodji Seketeli <dodji@redhat.com>
5224
5225 Fix bootstap on mips
5226 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
5227 be naming typedefs.
5228
5229 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
5230
5231 * system.h (helper_const_non_const_cast): New inline for
5232 gcc version <= 4.0.
5233 (CONST_CAST2): For gcc version <= 4.0 use
5234 new helper to do const/non-const casting.
5235
5236 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5237
5238 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
5239 * Makefile.in (OBJS-common): Include insn-enums.o.
5240 (insn-enums.o): New rule.
5241 (simple_generated_c): Add insn-enums.c.
5242 (build/genenums.o): New rule.
5243 (genprogmd): Add "enums".
5244 * genconstants.c (print_enum_type): Declare a C string array
5245 for each enum.
5246 * genenums.c: New file.
5247 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
5248 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
5249 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
5250
5251 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5252
5253 * doc/md.texi (define_enum_attr): Document.
5254 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
5255 * read-md.h (lookup_enum_type): Declare.
5256 * read-md.c (lookup_enum_type): New function.
5257 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
5258 * genattrtab.c (attr_desc): Add an enum_name field.
5259 (evaluate_eq_attr): Take the associated attribute as argument.
5260 Get the enum prefix from the enum_name field, if defined.
5261 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
5262 (simplify_test_exp): Pass attr to evaluate_eq_attr.
5263 (add_attr_value): New function, split out from...
5264 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
5265 (write_test_expr): Pass attr to evaluate_eq_attr.
5266 (write_attr_get): Use the enum_name as the enum tag, if defined.
5267 (write_attr_valueq): Use the enum_name as a prefix, if defined.
5268 (find_attr): Initialize enum_name.
5269 (main): Handle DEFINE_ENUM_ATTR.
5270 * gensupport.c (process_rtx): Likewise.
5271 * config/mips/mips.h (mips_tune_attr): Delete.
5272 * config/mips/mips.md (cpu): Use define_attr_enum.
5273
5274 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5275
5276 * doc/md.texi (define_c_enum, define_enum): Document.
5277 * read-md.h (md_constant): Add a parent_enum field.
5278 (enum_value, enum_type): New structures.
5279 (upcase_string, traverse_enum_types): Declare.
5280 * read-md.c (enum_types): New variable.
5281 (upcase_string, add_constant): New functions.
5282 (handle_constants): Don't create the hash table here.
5283 Use add_constant.
5284 (traverse_md_constants): Don't check for a null md_constants.
5285 (decimal_string, handle_enum, traverse_enum_types): New functions.
5286 (read_md_files): Initialize md_constants and md_enums.
5287 * genconstants.c (print_md_constant): Ignore info argument.
5288 Only print constants that belong to no enum.
5289 (print_enum_type): New function.
5290 (main): Don't pass stdout to print_md_constant. Call print_enum_type
5291 for each defined enum type.
5292 * config/mips/mips.md (processor): New define_enum.
5293 (unspec): New define_c_enum.
5294 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
5295 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
5296 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
5297 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
5298 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5299 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5300 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5301 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5302 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5303 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5304 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5305 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5306 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5307 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5308 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5309 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5310 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5311 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5312 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5313 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5314 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5315 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5316 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5317 (UNSPEC_RDDSP): Move to mips-dsp.md.
5318 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5319 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5320 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5321 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5322 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5323 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5324 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5325 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5326 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5327 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5328 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5329 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5330 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5331 Moved to mips-dspr2.md.
5332 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5333 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5334 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5335 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5336 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5337 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5338 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5339 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5340 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5341 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5342 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5343 UNSPEC_LOONGSON_PSADBH)
5344 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5345 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5346 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5347 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5348 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5349 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5350 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5351 (cpu): Update comment.
5352 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5353 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5354 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5355 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5356 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5357 UNSPEC_LOONGSON_PCMPEQ)
5358 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5359 UNSPEC_LOONGSON_PINSR_0)
5360 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5361 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5362 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5363 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5364 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5365 UNSPEC_LOONGSON_PSADBH)
5366 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5367 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5368 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5369 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5370 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5371 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5372 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5373 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5374 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5375 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5376 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5377 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5378 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5379 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5380 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5381 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5382 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5383 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5384 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5385 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5386 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5387 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5388 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5389 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5390 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5391 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5392 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5393 (UNSPEC_RDDSP): Moved from mips.md.
5394 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5395 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5396 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5397 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5398 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5399 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5400 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5401 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5402 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5403 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5404 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5405 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5406 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5407 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5408 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5409 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5410 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5411 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5412 (UNSPEC_SCC): Moved from mips.md.
5413 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5414 "processor_type" to "processor".
5415 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5416 * config/mips/mips.h (processor_type): Delete.
5417 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5418 "processor_type" to "processor".
5419
5420 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5421
5422 * configure.ac (tm_include_list): Add insn-constants.h.
5423 * configure: Regenerate.
5424 * Makefile.in (GTM_H): Move insn-constants.h here from...
5425 (TM_H): ...here.
5426 * mkconfig.sh: Remove special handling for insn-constants.h.
5427
5428 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5429
5430 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5431 (BUILD_MD): ...this new variable.
5432 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5433 that include the old contents of simple_generated_h and
5434 simple_generated_c.
5435 (simple_generated_h, simple_generated_c): Include them. Add
5436 insn-constants.h.
5437 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5438 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5439 Remove these dependencies from the main rule and include
5440 insn-conditions.md in the command line only if it appears
5441 in the dependency list.
5442 (insn-constants.h, s-constants): Delete.
5443 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5444 or gensupport.h.
5445 (build/genmddeps.o): Likewise.
5446 (genprogrtl): New variable that contains everything from genprogmd
5447 except mddeps and constants.
5448 (genprogmd): Redefine in terms of genprogrtl. Make these programs
5449 depend on $(BUILD_MD)
5450 (genprog): New variable. Make these programs depend on
5451 $(BUILD_ERRORS).
5452 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5453 (main): Use read_md_files instead of init_rtx_reader_args.
5454 * genconstants.c: As for genmddeps.c.
5455 * read-md.h (read_skip_construct): Declare.
5456 * read-md.c (read_skip_construct): New function.
5457 (handle_file): Allow a null handle_directive, skipping the
5458 construct if so.
5459 (parse_include): Update the comment accordingly.
5460
5461 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5462
5463 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5464 * genmddeps.c: Include read-md.h.
5465 (main): Call init_rtx_reader_args instead of init_md_reader_args.
5466 * genattr.c (main): Likewise.
5467 * genattrtab.c (main): Likewise.
5468 * genautomata.c (main): Likewise.
5469 * gencodes.c (main): Likewise.
5470 * genconditions.c (main): Likewise.
5471 * genconfig.c (main): Likewise.
5472 * genconstants.c (main): Likewise.
5473 * genemit.c (main): Likewise.
5474 * genextract.c (main): Likewise.
5475 * genflags.c (main): Likewise.
5476 * genopinit.c (main): Likewise.
5477 * genoutput.c (main): Likewise.
5478 * genpeep.c (main): Likewise.
5479 * genrecog.c (main): Likewise.
5480 * genpreds.c (main): Likewise.
5481 * gensupport.h (in_fname): Move to read-md.h.
5482 (init_md_reader_args_cb): Rename to...
5483 (init_rtx_reader_args_cb): ...this and return a bool.
5484 (init_md_reader_args): Rename to...
5485 (init_rtx_reader_args): ...this and return a bool.
5486 (include_callback): Move to read-md.h.
5487 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5488 (file_name_list, first_dir_md_include): Move to read-md.c
5489 (first_bracket_include): Delete unused variable.
5490 (last_dir_md_include): Move to read-md.c.
5491 (process_include): Delete, moving code to read-md.c:handle_include.
5492 (process_rtx): Don't handle INCLUDE.
5493 (save_string): Delete.
5494 (rtx_handle_directive): New function.
5495 (init_md_reader_args_cb): Rename to...
5496 (init_rtx_reader_args_cb): ...this and return a boolean success value.
5497 Use read_md_args.
5498 (init_md_reader_args): Rename to...
5499 (init_rtx_reader_args): ...this and return a boolean success value.
5500 * rtl.def (INCLUDE): Delete.
5501 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
5502 argument.
5503 * read-rtl.c (read_conditions): Don't gobble ')' here.
5504 (read_mapping): Likewise.
5505 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
5506 Handle top-level non-rtx constructs here rather than in read_rtx_1.
5507 Store the whole queue in *X. Remove call to init_md_reader.
5508 (read_rtx_1): Rename to...
5509 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
5510 Don't handle top-level non-rtx constructs here. Don't handle (nil)
5511 here.
5512 (read_nested_rtx): New function. Handle (nil) here rather than
5513 in read_rtx_code.
5514 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
5515 gobble ')' here.
5516 * read-md.h (directive_handler_t): New type.
5517 (in_fname, include_callback): Moved from read-md.h.
5518 (read_constants, init_md_reader): Delete.
5519 (read_md_files): Declare.
5520 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
5521 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
5522 from gensupport.c.
5523 (read_constants): Rename to...
5524 (handle_constants): ...this. Don't gobble ')' here.
5525 (handle_include, handle_file, handle_toplevel_file)
5526 (parse_include): New functions, mostly taken from gensupport.c.
5527 (init_md_reader): Subsume into...
5528 (read_md_files): ...this new function.
5529
5530 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5531
5532 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
5533 (unread_char): Decrement read_md_lineno after putting back '\n'.
5534 * read-md.c (fatal_with_file_and_line): Push back any characters
5535 that we decide not to add to the context.
5536 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
5537 fatal_expected_char in cases where '/' ends a line (for example).
5538 (read_name): Don't increment read_md_lineno here.
5539 (read_escape): Likewise.
5540 (read_quoted_string): Likewise.
5541 (read_braced_string): Likewise.
5542
5543 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5544
5545 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
5546 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
5547 * genconstants.c: Include read-md.h.
5548 * read-rtl.c (md_constants): Move to read-md.c.
5549 (md_name): Move to read-md.h.
5550 (initialize_iterators): Use leading_string_hash instead of def_hash
5551 and leading_string_eq_p instead of def_name_eq_p.
5552 (read_name): Move to read-md.c.
5553 (def_hash, def_name_eq_p): Delete.
5554 (read_constants, traverse_md_constants): Move to read-md.c.
5555 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
5556 * read-md.h: Include hashtab.h.
5557 (md_name): Moved from read-rtl.c.
5558 (md_constant): Moved from read-md.h.
5559 (leading_string_hash, leading_string_eq_p, read_name)
5560 (read_constants, traverse_md_constants): Declare.
5561 * read-md.c (md_constants): Moved from read-rtl.c.
5562 (leading_string_hash, leading_string_eq_p): New functions.
5563 (read_name, read_constants, traverse_md_constants): Moved from
5564 read-rtl.c.
5565
5566 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5567
5568 * read-rtl.c (md_name): New structure.
5569 (read_name): Take an md_name instead of a buffer pointer.
5570 Use the "string" field instead of strcpy when expanding constants.
5571 (read_constants): Remove the tmp_char argument. Update the calls
5572 to read_name, using two local name buffers instead of the tmp_char
5573 argument. Merge the constant-creation code.
5574 (read_conditions): Remove the tmp_char argument. Update the calls
5575 to read_name, using a local name buffer instead of the tmp_char
5576 argument.
5577 (read_mapping): Replace tmp_char variable with a local name buffer.
5578 Update the calls to read_name.
5579 (read_rtx_1): Likewise. Update the calls to read_constants and
5580 read_conditions.
5581
5582 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5583
5584 * Makefile.in (build/read-md.o): Depend on errors.h.
5585 * read-md.h (error_with_line): Declare.
5586 * read-md.c: Include errors.h.
5587 (message_with_line_1): New function, extracted from...
5588 (message_with_line): ...here.
5589 (error_with_line): New function.
5590 * genattrtab.c: If a call to message_with_line is followed by
5591 "have_error = 1;", replace both statements with a call to
5592 error_with_line.
5593 * genoutput.c: Likewise.
5594 * genpreds.c: Likewise.
5595 * genrecog.c: If a call to message_with_line is followed by
5596 "error_count++;", replace both statements with a call to
5597 error_with_line.
5598 (errorcount): Delete.
5599 (main): Don't check it.
5600 * gensupport.c: If a call to message_with_line is followed by
5601 "errors = 1;", replace both statements with a call to error_with_line.
5602 (errors): Delete.
5603 (process_define_cond_exec): Check have_error instead of errors.
5604 (init_md_reader_args_cb): Likewise. Don't set errors.
5605
5606 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5607
5608 * read-md.h (read_md_file): Declare.
5609 (read_char, unread_char): New functions.
5610 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5611 (read_quoted_string, read_string): Remove FILE * argument.
5612 * read-md.c (read_md_file): New variable.
5613 (read_md_filename, read_md_lineno): Update comments and remove
5614 unnecessary initialization.
5615 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5616 (read_escape, read_quoted_string, read_braced_string, read_string):
5617 Remove FILE * argument. Update calls accordingly, using read_char
5618 and unread_char instead of getc and ungetc.
5619 * rtl.h (read_rtx): Remove FILE * argument.
5620 * read-rtl.c (iterator_group): Remove FILE * argument from
5621 "find_builtin".
5622 (iterator_traverse_data): Remove "infile" field.
5623 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5624 (add_mapping, read_name, read_constants, read_conditions)
5625 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5626 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5627 Remove file arguments from all calls, using read_char and unread_char
5628 instead of getc and ungetc.
5629 * gensupport.c (process_include): Preserve read_md_file around
5630 the include. Set read_md_file to the handle of the included file.
5631 Update call to read_rtx.
5632 (init_md_reader_args_cb): Set read_md_file to the handle of the file
5633 and remove local FILE *. Update calls to read_rtx.
5634
5635 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5636
5637 * read-md.h (read_rtx_lineno): Rename to...
5638 (read_md_lineno): ...this.
5639 (read_rtx_filename): Rename to...
5640 (read_md_filename): ...this.
5641 (copy_rtx_ptr_loc): Rename to...
5642 (copy_md_ptr_loc): ...this.
5643 (print_rtx_ptr_loc): Rename to...
5644 (print_md_ptr_loc): ...this.
5645 * read-md.c: Likewise. Update references after renaming.
5646 (string_obstack): Replace RTL with MD in comment.
5647 (set_rtx_ptr_loc): Rename to...
5648 (set_md_ptr_loc): ...this.
5649 (get_rtx_ptr_loc): Rename to...
5650 (get_md_ptr_loc): ...this.
5651 * genconditions.c: Update references after renaming.
5652 * genemit.c: Likewise.
5653 * genoutput.c: Likewise.
5654 * genpreds.c: Likewise.
5655 * gensupport.c: Likewise.
5656 * read-rtl.c: Likewise.
5657
5658 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5659
5660 * Makefile.in (READ_MD_H): New variable.
5661 (BUILD_RTL): Add build/read-md.o.
5662 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
5663 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5664 (build/genattrtab.o, build/genconditions.o build/genemit.o)
5665 (build/genextract.o, build/genflags.o, build/genoutput.o)
5666 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
5667 (build/read-md.o): New rule.
5668 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
5669 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
5670 * coretypes.h: ...here.
5671 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
5672 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
5673 * genattr.c: Include read-md.h.
5674 * genattrtab.c: Likewise.
5675 * genconditions.c: Likewise.
5676 * genemit.c: Likewise.
5677 * genextract.c: Likewise.
5678 * genflags.c: Likewise.
5679 * genoutput.c: Likewise.
5680 * genpreds.c: Likewise.
5681 * genrecog.c: Likewise.
5682 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
5683 (join_c_conditions, print_c_condition, read_rtx_filename)
5684 (read_rtx_lineno): Move to read-md.h.
5685 * read-rtl.c: Include read-md.h.
5686 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
5687 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
5688 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
5689 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
5690 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
5691 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
5692 (read_braced_string, read_string): Move to read-md.c.
5693 (read_rtx): Move some initialization to init_md_reader and call
5694 init_md_reader here.
5695 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
5696 Move to read-md.h.
5697 * gensupport.c: Include read-md.h.
5698 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
5699 * read-md.h, read-md.c: New files.
5700
5701 2010-06-10 Anatoly Sokolov <aesok@post.ru>
5702
5703 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5704 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5705 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
5706 * config/moxie/moxie.c (moxie_function_value): Make static.
5707 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
5708 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5709
5710 2010-06-10 Martin Jambor <mjambor@suse.cz>
5711
5712 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
5713 * dbgcnt.def (tree_sra): New counter.
5714 * tree-sra.c: Include dbgcnt.h.
5715 (gate_intra_sra): Check tree_sra debug counter.
5716
5717 2010-06-10 Martin Jambor <mjambor@suse.cz>
5718
5719 PR tree-optimization/44258
5720 * tree-sra.c (build_access_subtree): Return false iff there is a
5721 partial overlap.
5722 (build_access_trees): Likewise.
5723 (analyze_all_variable_accesses): Disqualify candidates if
5724 build_access_trees returns true for them.
5725
5726 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
5727
5728 PR debug/41371
5729 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
5730 tail-recurse into canonical node. Fast-forward over
5731 non-canonical VALUEs.
5732
5733 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
5734
5735 PR boostrap/44470
5736 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
5737 (*addsi_1_zext) <TYPE_LEA>: Likewise.
5738 (add lea splitter): Likewise.
5739 (add_zext lea splitter): Likewise.
5740
5741 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5742
5743 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
5744
5745 2010-06-10 Jan Hubicka <jh@suse.cz>
5746
5747 * df-problems.c (df_live_problem_data): Add live_bitmaps.
5748 (df_live_alloc): Initialize problem data and live_osbtacks.
5749 (df_live_finalize): Remove obstack, problem data; do not
5750 clear all bitmaps.
5751 (df_live_top_dump, df_live_bottom_dump): Do not dump old
5752 data when not allocated.
5753 (df_live_verify_solution_start): Do not allocate problem data.
5754 (df_live_verify_solution_end): Check if out is allocated.
5755 (struct df_md_problem_data): New structure.
5756 (df_md_alloc): Allocate problem data.
5757 (df_md_free): Free problem data; do not clear bitmaps.
5758
5759 2010-06-10 Jan Beulich <jbeulich@novell.com>
5760
5761 PR bootstrap/37304
5762 * configure.ac: Replace $() with ${} when intending to expand
5763 variables rather than invoking commands.
5764 * configure: Re-generate.
5765
5766 2010-06-10 Jan Hubicka <jh@suse.cz>
5767
5768 PR rtl-optimization/44460
5769 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5770 TYPE_NEEDS_CONSTRUCTING sanity check.
5771
5772 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
5773
5774 * doc/include/fdl.texi: Move to GFDL version 1.3.
5775
5776 * doc/cpp.texi: Move to GFDL version 1.3.
5777 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
5778 * doc/gccint.texi: Move to GFDL version 1.3.
5779 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
5780 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
5781 * doc/invoke.texi: Move to GFDL version 1.3.
5782
5783 2010-06-09 Jan Hubicka <jh@suse.cz>
5784
5785 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
5786 Break out from ...
5787 (propagate) ... here; swap the order.
5788
5789 2010-06-09 Jan Hubicka <jh@suse.cz>
5790
5791 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
5792 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
5793 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
5794 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
5795
5796 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
5797
5798 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
5799 Do not the gather memory reference in the outer loop if the step
5800 is not a constant.
5801
5802 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
5803
5804 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
5805 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
5806 8 to 4. Minor change of the related comments.
5807
5808 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5809
5810 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
5811 the scev analysis when the variable is not used outside the loop
5812 in a close phi node: call compute_overall_effect_of_inner_loop.
5813
5814 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5815
5816 * graphite-sese-to-poly.c (single_pred_cond): Renamed
5817 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
5818 (build_sese_conditions_before): Renamed call to single_pred_cond.
5819 (build_sese_conditions_after): Same.
5820
5821 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5822
5823 * graphite-poly.h: Fix comments and indentation.
5824 * graphite-sese-to-poly.c: Same.
5825 (build_sese_conditions_before): Compute stmt and gbb only when needed.
5826 * tree-chrec.c: Fix comments and indentation.
5827 (tree-ssa-loop-niter.c): Same.
5828
5829 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
5830
5831 PR rtl-optimization/42461
5832 * dce.c (deletable_insn_p): Return true for const or pure calls again.
5833 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
5834
5835 2010-06-09 Jan Hubicka <jh@suse.cz>
5836
5837 * bitmap.c (bitmap_and): Walk array forward.
5838 (bitmap_and_compl_into): Likewise.
5839 (bitmap_xor): Likewise.
5840 (bitmap_xor_into): Likewise.
5841 (bitmap_equal_p): Likewise.
5842 (bitmap_intersect_p): Likewise.
5843 (bitmap_intersect_compl_p): Likewise.
5844 (bitmap_ior_and_into): Likewise.
5845 (bitmap_elt_copy): Likewise.
5846 (bitmap_and_compl): Likewise.
5847 (bitmap_elt_ior): Likewise.
5848
5849 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
5850
5851 * opts-common.c (prune_options): Ensure replacement argv array
5852 is correctly terminated by a NULL entry.
5853
5854 2010-06-09 Jan Hubicka <jh@suse.cz>
5855
5856 * cgraph.h (varpool_first_static_initializer,
5857 varpool_next_static_initializer): Make checking only when
5858 checking enabled.
5859 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
5860 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
5861 gcc_assert to gcc_checking_assert.
5862 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
5863 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
5864 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
5865 op_iter_init_phiuse, op_iter_init_phidef,
5866 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
5867 gcc_checking_assert.
5868 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
5869 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
5870 partition_is_global, live_on_entry, live_on_exit,
5871 live_merge_and_clear): Likewise.
5872 * system.h (gcc_checking_assert): New macro.
5873 * gimple.h (set_bb_seq): Use gcc_checking_assert.
5874
5875 2010-06-09 Jason Merrill <jason@redhat.com>
5876
5877 * Makefile.in (TAGS): Collect tags info from c-family.
5878
5879 2010-06-09 Jan Hubicka <jh@suse.cz>
5880
5881 * gimple.h (gcc_gimple_checking_assert): New macro.
5882 (gimple_set_def_ops, gimple_set_use_ops,
5883 gimple_set_vuse, gimple_set_vdef,
5884 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
5885 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
5886 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
5887 gimple_asm_output_op, gimple_asm_output_op_ptr,
5888 gimple_asm_set_output_op, gimple_asm_clobber_op,
5889 gimple_asm_set_clobber_op, gimple_asm_label_op,
5890 gimple_asm_set_label_op, gimple_try_set_kind,
5891 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5892 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5893 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5894 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5895 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5896 gimple_omp_for_set_initial, gimple_omp_for_final,
5897 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5898 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5899 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5900 conditional with ENABLE_GIMPLE_CHECKING.
5901 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5902
5903 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
5904
5905 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5906 (get_computation_cost_at): Use it.
5907 (determine_use_iv_cost_condition): Likewise.
5908 (determine_iv_cost): Likewise.
5909
5910 2010-06-09 Richard Guenther <rguenther@suse.de>
5911
5912 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5913 replace constants.
5914
5915 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
5916
5917 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5918
5919 2010-06-09 Martin Jambor <mjambor@suse.cz>
5920
5921 PR tree-optimization/44423
5922 * tree-sra.c (dump_access): Dump also grp_assignment_read.
5923 (analyze_access_subtree): Pass negative allow_replacements to children
5924 if the current type is scalar.
5925
5926 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5927
5928 PR testsuite/42843
5929 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
5930 * doc/plugins.texi (Plugin license check): Update information
5931 on type of plugin_is_GPL_compatible.
5932 * Makefile.in (PLUGINCC): Define as $(COMPILER).
5933 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
5934
5935 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
5936
5937 * config/arm/arm.c (thumb2_reorg): New function.
5938 (arm_reorg): Call it.
5939 * config/arm/thumb2.md (define_peephole2 for flag clobbering
5940 arithmetic operations): Delete.
5941
5942 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
5943
5944 PR target/44067
5945 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
5946 e500v2 target.
5947
5948 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5949
5950 PR plugins/44459
5951 * gcc-plugin.h: Encapsulate all declarations in extern "C".
5952
5953 2010-06-08 Jan Hubicka <jh@suse.cz>
5954
5955 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
5956 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
5957
5958 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
5959
5960 PR tree-optimization/39874
5961 PR middle-end/28685
5962 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
5963 Declare.
5964 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
5965 same_bool_result_p): New.
5966 (and_var_with_comparison, and_var_with_comparison_1,
5967 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
5968 (or_var_with_comparison, or_var_with_comparison_1,
5969 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
5970 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
5971 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
5972 of combine_comparisons.
5973 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
5974
5975 2010-06-08 Anatoly Sokolov <aesok@post.ru>
5976
5977 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5978 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5979 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
5980 pdp11_function_value_regno_p): New functions.
5981 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5982 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5983
5984 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
5985
5986 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
5987 Thumb-2 in the MINUS case.
5988
5989 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5990
5991 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5992
5993 * doc/gty.texi (GTY Options): Document typed GC allocation and
5994 variable_size GTY option.
5995
5996 * ggc-internal.h: New.
5997
5998 * ggc.h: Update copyright year.
5999 (digit_string): Move to stringpool.c.
6000 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
6001 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
6002 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
6003 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
6004 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
6005 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
6006 (ggc_force_collect, ggc_get_size, ggc_statistics)
6007 (ggc_print_common_statistics): Move to ggc-internal.h.
6008 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
6009 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
6010 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
6011 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
6012 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
6013 (ggc_alloc_zone_pass_stat): Remove.
6014 (ggc_internal_alloc_stat, ggc_internal_alloc)
6015 (ggc_internal_cleared_alloc_stat): New.
6016 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
6017 (ggc_internal_vec_alloc_stat)
6018 (ggc_internal_cleared_vec_alloc_stat)
6019 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
6020 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
6021 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
6022 (ggc_cleared_alloc_ptr_array_two_args): New.
6023 (htab_create_ggc, splay_tree_new_ggc): Redefine.
6024 (ggc_splay_alloc): Change the type of the first argument to
6025 enum gt_types_enum.
6026 (ggc_alloc_string): Make macro.
6027 (ggc_alloc_string_stat): New.
6028 (ggc_strdup): Redefine.
6029 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
6030 (ggc_alloc_rtvec_sized): New.
6031 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
6032 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
6033 (ggc_internal_cleared_alloc_zone_stat)
6034 (ggc_internal_zone_alloc_stat)
6035 (ggc_internal_zone_cleared_alloc_stat)
6036 (ggc_internal_zone_vec_alloc_stat)
6037 (ggc_alloc_zone_rtx_def_stat)
6038 (ggc_alloc_zone_tree_node_stat)
6039 (ggc_alloc_zone_cleared_tree_node_stat)
6040 (ggc_alloc_cleared_gimple_statement_d_stat): New.
6041
6042 * ggc-common.c: Include ggc-internal.h.
6043 (ggc_internal_cleared_alloc_stat): Rename from
6044 ggc_alloc_cleared_stat.
6045 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
6046 (ggc_calloc): Remove.
6047 (ggc_cleared_alloc_htab_ignore_args): New.
6048 (ggc_cleared_alloc_ptr_array_two_args): New.
6049 (ggc_splay_alloc): Add obj_type parameter.
6050 (init_ggc_heuristics): Formatting fixes.
6051
6052 * ggc-none.c: Update copyright year.
6053 (ggc_alloc_stat): Rename to ggc_alloc_stat.
6054 (ggc_alloc_cleared_stat): Rename to
6055 ggc_internal_cleared_alloc_stat.
6056 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6057
6058 * ggc-page.c: Update copyright year. Include ggc-internal.h.
6059 Remove references to ggc_alloc in comments.
6060 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
6061 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
6062 (new_ggc_zone, destroy_ggc_zone): Remove.
6063 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6064
6065 * ggc-zone.c: Include ggc-internal.h. Remove references to
6066 ggc_alloc in comments.
6067 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
6068 (ggc_internal_alloc_zone_pass_stat): New.
6069 (ggc_internal_cleared_alloc_zone_stat): New.
6070 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
6071 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
6072 (new_ggc_zone, destroy_ggc_zone): Remove.
6073
6074 * stringpool.c: Update copyright year. Include ggc-internal.h
6075 (digit_vector): Make static.
6076 (digit_string): Moved from ggc.h.
6077 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
6078 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
6079
6080 * Makefile.in (GGC_INTERNAL_H): New.
6081 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
6082 $(GGC_INTERNAL_H) to dependencies.
6083
6084 * gentype.c: Update copyright year.
6085 (walk_type): Accept variable_size GTY option.
6086 (USED_BY_TYPED_GC_P): New macro.
6087 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
6088 whitespace at the end of strings.
6089 (get_type_specifier, variable_size_p): New functions.
6090 (alloc_quantity, alloc_zone): New enums.
6091 (write_typed_alloc_def): New function.
6092 (write_typed_struct_alloc_def): Likewise.
6093 (write_typed_typed_typedef_alloc_def): Likewise.
6094 (write_typed_alloc_defns): Likewise.
6095 (output_typename, write_splay_tree_allocator_def): Likewise.
6096 (write_splay_tree_allocators): Likewise.
6097 (main): Call write_typed_alloc_defns and
6098 write_splay_tree_allocators.
6099
6100 * lto-streamer.h (lto_file_decl_data_ptr): New.
6101
6102 * passes.c (order): Define using cgraph_node_ptr.
6103
6104 * strinpool.c (struct string_pool_data): Declare nested_ptr using
6105 ht_identifier_ptr.
6106
6107 * gimple.h (union gimple_statement_d): Likewise.
6108
6109 * rtl.h (struct rtx_def): Likewise.
6110 (struct rtvec_def): Likewise.
6111
6112 * tree.h (union tree_node): Likewise.
6113
6114 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
6115
6116 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
6117
6118 * tree-scalar-evolution.c (scev_initialize): Likewise.
6119
6120 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
6121
6122 * dwarf2asm.c (dw2_force_const_mem): Likewise.
6123
6124 * omp-low.c (lower_omp_critical): Likewise.
6125
6126 * bitmap.h (struct bitmap_head_def): Update comment to not
6127 reference ggc_alloc.
6128
6129 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
6130
6131 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
6132
6133 * ipa-prop.c (duplicate_ggc_array): Rename to
6134 duplicate_ipa_jump_func_array. Use typed GC allocation.
6135 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
6136
6137 * gimple.c (gimple_alloc_stat): Use
6138 ggc_alloc_cleared_gimple_statement_d_stat.
6139
6140 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
6141
6142 * tree.c (make_node_stat): Use
6143 ggc_alloc_zone_cleared_tree_node_stat.
6144 (make_tree_vec_stat): Likewise.
6145 (build_vl_exp_stat): Likewise.
6146 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
6147 (make_tree_binfo_stat): Likewise.
6148 (tree_cons_stat): Likewise.
6149
6150 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
6151 (shallow_copy_rtx_stat): Likewise.
6152 (make_node_stat): Likewise.
6153
6154 * lto-symtab.c: Fix comment.
6155
6156 * tree-cfg.c (create_bb): Update comment to not reference
6157 ggc_alloc_cleared.
6158 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
6159
6160 * varpool.c (varpool_node): Use typed GC allocation.
6161 (varpool_extra_name_alias): Likewise.
6162
6163 * varasm.c (emutls_decl): Likewise.
6164 (get_unnamed_section): Likewise.
6165 (get_noswitch_section): Likewise.
6166 (get_section): Likewise.
6167 (get_block_for_section): Likewise.
6168 (build_constant_desc): Likewise.
6169 (create_constant_pool): Likewise.
6170 (force_const_mem): Likewise.
6171
6172 * tree.c (build_vl_exp_stat): Likewise.
6173 (build_real): Likewise.
6174 (build_string): Likewise.
6175 (decl_debug_expr_insert): Likewise.
6176 (decl_value_expr_insert): Likewise.
6177 (type_hash_add): Likewise.
6178 (build_omp_clause): Likewise.
6179
6180 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
6181
6182 * tree-ssa.c (init_tree_ssa): Likewise.
6183
6184 * tree-ssa-structalias.c (heapvar_insert): Likewise.
6185
6186 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6187
6188 * tree-ssa-loop-niter.c (record_estimate): Likewise.
6189
6190 * tree-ssa-alias.c (get_ptr_info): Likewise.
6191
6192 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6193
6194 * tree-phinodes.c (allocate_phi_node): Likewise.
6195
6196 * tree-iterator.c (tsi_link_before): Likewise.
6197 (tsi_link_after): Likewise.
6198
6199 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6200
6201 * tree-dfa.c (create_var_ann): Likewise.
6202
6203 * tree-cfg.c (create_bb): Likewise.
6204
6205 * toplev.c (alloc_for_identifier_to_locale): Likewise.
6206 (general_init): Likewise.
6207
6208 * stringpool.c (stringpool_ggc_alloc): Likewise.
6209 (gt_pch_save_stringpool): Likewise.
6210
6211 * sese.c (if_region_set_false_region): Likewise.
6212
6213 * passes.c (do_per_function_toporder): Likewise.
6214
6215 * optabs.c (set_optab_libfunc): Likewise.
6216 (set_conv_libfunc): Likewise.
6217
6218 * lto-symtab.c (lto_symtab_register_decl): Likewise.
6219
6220 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6221 (input_eh_region): Likewise.
6222 (input_eh_lp): Likewise.
6223 (make_new_block): Likewise.
6224 (unpack_ts_real_cst_value_fields): Likewise.
6225
6226 * lto-section-in.c (lto_new_in_decl_state): Likewise.
6227
6228 * lto-cgraph.c (input_node_opt_summary): Likewise.
6229
6230 * loop-init.c (loop_optimizer_init): Likewise.
6231
6232 * lambda.h (lambda_vector_new): Likewise.
6233
6234 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
6235
6236 * ira.c (update_equiv_regs): Likewise.
6237
6238 * ipa.c (cgraph_node_set_new): Likewise.
6239 (cgraph_node_set_add): Likewise.
6240 (varpool_node_set_new): Likewise.
6241 (varpool_node_set_add): Likewise.
6242
6243 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
6244 (duplicate_ipa_jump_func_array): Likewise.
6245 (ipa_read_node_info): Likewise.
6246
6247 * ipa-cp.c (ipcp_create_replace_map): Likewise.
6248
6249 * integrate.c (get_hard_reg_initial_val): Likewise.
6250
6251 * gimple.c (gimple_alloc_stat): Likewise.
6252 (gimple_build_omp_for): Likewise.
6253 (gimple_seq_alloc): Likewise.
6254 (gimple_copy): Likewise.
6255
6256 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
6257 (gsi_insert_after_without_update): Likewise.
6258
6259 * function.c (add_frame_space): Likewise.
6260 (insert_temp_slot_address): Likewise.
6261 (assign_stack_temp_for_type): Likewise.
6262 (allocate_struct_function): Likewise.
6263 (types_used_by_var_decl_insert): Likewise.
6264
6265 * except.c (init_eh_for_function): Likewise.
6266 (gen_eh_region): Likewise.
6267 (gen_eh_region_catch): Likewise.
6268 (gen_eh_landing_pad): Likewise.
6269 (add_call_site): Likewise.
6270
6271 * emit-rtl.c (get_mem_attrs): Likewise.
6272 (get_reg_attrs): Likewise.
6273 (start_sequence): Likewise.
6274 (init_emit): Likewise.
6275
6276 * dwarf2out.c (new_cfi): Likewise.
6277 (queue_reg_save): Likewise.
6278 (dwarf2out_frame_init): Likewise.
6279 (new_loc_descr): Likewise.
6280 (find_AT_string): Likewise.
6281 (new_die): Likewise.
6282 (add_var_loc_to_decl): Likewise.
6283 (clone_die): Likewise.
6284 (clone_as_declaration): Likewise.
6285 (break_out_comdat_types): Likewise.
6286 (new_loc_list): Likewise.
6287 (loc_descriptor): Likewise.
6288 (add_loc_descr_to_each): Likewise.
6289 (add_const_value_attribute): Likewise.
6290 (tree_add_const_value_attribute): Likewise.
6291 (add_comp_dir_attribute): Likewise.
6292 (add_name_and_src_coords_attributes): Likewise.
6293 (lookup_filename): Likewise.
6294 (store_vcall_insn): Likewise.
6295 (dwarf2out_init): Likewise.
6296
6297 * dbxout.c (dbxout_init): Likewise.
6298
6299 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6300
6301 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6302
6303 * config/score/score7.c (score7_output_external): Likewise.
6304
6305 * config/score/score3.c (score3_output_external): Likewise.
6306
6307 * config/s390/s390.c (s390_init_machine_status): Likewise.
6308
6309 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6310 (rs6000_init_machine_status): Likewise.
6311 (output_toc): Likewise.
6312
6313 * config/pa/pa.c (pa_init_machine_status): Likewise.
6314 (get_deferred_plabel): Likewise.
6315
6316 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6317
6318 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6319
6320 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6321
6322 * config/mep/mep.c (mep_init_machine_status): Likewise.
6323 (mep_note_pragma_flag): Likewise.
6324
6325 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6326
6327 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6328
6329 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6330
6331 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6332 (i386_pe_maybe_record_exported_symbol): Likewise.
6333
6334 * config/i386/i386.c (get_dllimport_decl): Likewise.
6335 (ix86_init_machine_status): Likewise.
6336 (assign_386_stack_local): Likewise.
6337
6338 * config/frv/frv.c (frv_init_machine_status): Likewise.
6339
6340 * config/darwin.c (machopic_indirection_name): Likewise.
6341
6342 * config/cris/cris.c (cris_init_machine_status): Likewise.
6343
6344 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6345
6346 * config/avr/avr.c (avr_init_machine_status): Likewise.
6347
6348 * config/arm/arm.c (arm_init_machine_status): Likewise.
6349
6350 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6351 (alpha_need_linkage): Likewise.
6352 (alpha_use_linkage): Likewise.
6353
6354 * cgraph.c (cgraph_allocate_node): Likewise.
6355 (cgraph_create_edge_1): Likewise.
6356 (cgraph_create_indirect_edge): Likewise.
6357 (cgraph_add_asm_node): Likewise.
6358
6359 * cfgrtl.c (init_rtl_bb_info): Likewise.
6360
6361 * cfgloop.c (alloc_loop): Likewise.
6362 (rescan_loop_exit): Likewise.
6363
6364 * cfg.c (init_flow): Likewise.
6365 (alloc_block): Likewise.
6366 (unchecked_make_edge): Likewise.
6367
6368 * c-parser.c (c_parse_init): Likewise.
6369 (c_parse_file): Likewise.
6370
6371 * c-decl.c (bind): Likewise.
6372 (record_inline_static): Likewise.
6373 (push_scope): Likewise.
6374 (make_label): Likewise.
6375 (lookup_label_for_goto): Likewise.
6376 (finish_struct): Likewise.
6377 (finish_enum): Likewise.
6378 (c_push_function_context): Likewise.
6379
6380 * bitmap.c (bitmap_element_allocate): Likewise.
6381 (bitmap_gc_alloc_stat): Likewise.
6382
6383 * alias.c (record_alias_subset): Likewise.
6384 (init_alias_analysis): Likewise.
6385
6386 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
6387
6388 * fold-const.c (fold_comparison): Remove redundant parenthesis.
6389 * tree-inline.c (expand_call_inline): Pass translated return value of
6390 cgraph_inline_failed_string to diagnostic function.
6391
6392 2010-06-08 Andrew Pinski <pinskia@gmail.com>
6393 Shujing Zhao <pearly.zhao@oracle.com>
6394
6395 PR c/37724
6396 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6397 implicit bad conversions is initialization.
6398 (error_init): Use gmsgid instead of msgid for argument name and change
6399 the call for error.
6400 (pedwarn_init): Use gmsgid instead of msgid for argument name and
6401 change the call for pedwarn.
6402 (warning_init): Use gmsgid instead of msgid for argument name and
6403 change the call for warning.
6404
6405 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
6406
6407 * config/mips/mips-protos.h (mips_print_operand): Delete.
6408 (mips_print_operand_address): Delete.
6409 * config/mips/mips.h (mips_print_operand_punct): Delete.
6410 (PRINT_OPERAND): Delete.
6411 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6412 (PRINT_OPERAND_ADDRESS): Delete.
6413 * config/mips/mips.c (mips_print_operand_punct): Make static.
6414 (mips_print_operand_address): Make static.
6415 (mips_print_operand): Make static. Call
6416 mips_print_operand_punct_valid_p.
6417 (mips_print_operand_punct_valid_p): New function.
6418 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6419 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6420
6421 2010-06-07 Jan Hubicka <jh@suse.cz>
6422
6423 PR middle-end/44454
6424 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6425 are allocated.
6426
6427 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
6428
6429 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6430 name of RECORD.
6431
6432 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6433
6434 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6435 attributes): Document gas.
6436
6437 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
6438
6439 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6440 <TYPE_LEA>: Split instruction.
6441 <default>: Remove alternative 2 handling.
6442 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6443 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6444 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6445
6446 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6447 (ashift_zext lea splitter): Use DImode for multiplication.
6448
6449 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6450 to generate addition.
6451
6452 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6453
6454 * common.opt (fira-verbose): Use Var.
6455 (fpcc-struct-return): Use Init instead of VarExists.
6456 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6457 toplev.c.
6458 * flags.h (flag_signed_char, flag_short_enums,
6459 flag_pcc_struct_return, flag_ira_verbose,
6460 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6461 * toplev.c (flag_detailed_statistics, flag_signed_char,
6462 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6463 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6464 * toplev.h (flag_crossjumping, flag_if_conversion,
6465 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6466 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6467 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6468 flag_cprop_registers, time_report, flag_ira_loop_pressure,
6469 flag_ira_coalesce, flag_ira_move_spills,
6470 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6471
6472 2010-06-07 Jan Hubicka <jh@suse.cz>
6473
6474 * df-core.c (df_analyze_problem): Do verification after allocation.
6475
6476 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6477 (df_lr_alloc): Initialize problem data; move bitmaps to
6478 lr_bitmaps obstack.
6479 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6480 (df_lr_verify_solution_start): Do not initialize problem data;
6481 allocate bitmaps in lr_bitmaps.
6482 (df_lr_verify_solution_end): Do not free problem data.
6483
6484 2010-06-07 Jan Hubicka <jh@suse.cz>
6485
6486 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6487 if caller is noreturn.
6488 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6489 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6490 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6491 * ipa-pure-const.c (check_decl): Add IPA parameter.
6492 (state_from_flags): New function.
6493 (better_state, worse_state): New functions.
6494 (check_call): When in IPA mode, do not care about callees.
6495 (check_load, check_store): Update.
6496 (check_ipa_load, check_ipa_store): New.
6497 (check_stmt): When in IPA mode, use IPA checkers.
6498 (analyze_function): Use state_from_flags.
6499 (propagate): Check indirect edges and references.
6500
6501 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
6502
6503 PR rtl-optimization/44404
6504 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6505 of count_occurrences to see if it's safe to modify mem_insn.
6506
6507 2010-06-07 Richard Guenther <rguenther@suse.de>
6508
6509 * gimplify.c (gimplify_cleanup_point_expr): For empty body
6510 and EH-only cleanup drop the cleanup instead of inserting it
6511 unconditionally.
6512
6513 2010-06-07 Ira Rosen <irar@il.ibm.com>
6514
6515 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6516 documentation.
6517 * targhooks.c (default_builtin_vectorization_cost): New function.
6518 * targhooks.h (default_builtin_vectorization_cost): Declare.
6519 * target.h (enum vect_cost_for_stmt): Define.
6520 (builtin_vectorization_cost): Change argument and comment.
6521 * tree-vectorizer.h: Remove cost model macros.
6522 * tree-vect-loop.c: Include target.h.
6523 (vect_get_cost): New function.
6524 (vect_estimate_min_profitable_iters): Replace cost model macros with
6525 calls to vect_get_cost.
6526 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
6527 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
6528 default implementation.
6529 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
6530 calls to target hook builtin_vectorization_cost.
6531 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6532 Likewise.
6533 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
6534 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
6535 implementation to return costs.
6536 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6537 * config/spu/spu.h: Remove vectorizer cost model macros.
6538 * config/i386/i386.h: Likewise.
6539 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
6540 a call to target hook builtin_vectorization_cost.
6541
6542 2010-06-06 Sriraman Tallam <tmsriram@google.com>
6543
6544 PR target/44319
6545 * config/i386/i386.c (override_options): Turn zee pass on for level 2
6546 and above and defer till target is known.
6547 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
6548 turn off otherwise.
6549
6550 2010-05-25 Jan Hubicka <jh@suse.cz>
6551
6552 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
6553 (df_compact_blocks): Likewise.
6554 * df.h (struct df): Turn hardware_regs_used,
6555 regular_block_artificial_uses, eh_block_artificial_uses,
6556 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
6557 bitmap_head.
6558 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
6559 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
6560 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
6561 df_scan_blocks, df_insn_delete, df_insn_rescan,
6562 df_insn_rescan_debug_internal, df_insn_rescan_all,
6563 df_process_deferred_rescans, df_process_deferred_rescans,
6564 df_notes_rescan, df_get_call_refs, df_get_call_refs,
6565 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
6566 df_record_entry_block_defs, df_record_exit_block_uses,
6567 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
6568 df_scan_verify): Update.
6569
6570 2010-05-25 Dodji Seketeli <dodji@redhat.com>
6571
6572 PR c++/44188
6573 * c-common.c (is_typedef_decl): Move this definition ...
6574 * tree.c (is_typedef_decl): ... here.
6575 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6576 * c-common.h (is_typedef_decl): Move this declaration ...
6577 * tree.h (is_typedef_decl): ... here.
6578 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6579 * dwarf2out.c (is_naming_typedef_decl): New function.
6580 (gen_tagged_type_die): Split out of ...
6581 (gen_type_die_with_usage): ... this function. When an anonymous
6582 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6583 is emitted for the typedef.
6584 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6585 anonymous tagged types.
6586
6587 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
6588
6589 PR c/20000
6590 * c-decl.c (grokdeclarator): Delete warning.
6591
6592 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
6593
6594 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6595 newly built CALL_EXPR.
6596 * tree-profile.c (tree_profiling): Don't profile functions produced
6597 for built-in stuff.
6598
6599 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
6600
6601 PR bootstrap/44427
6602 PR bootstrap/44428
6603 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6604 endianness-independent.
6605
6606 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6607
6608 * c-common.c: Move to c-family/.
6609 * c-common.def: Likewise.
6610 * c-common.h: Likewise.
6611 * c-cppbuiltin.c: Likewise.
6612 * c-dump.c: Likewise.
6613 * c-format.c: Likewise.
6614 * c-format.h : Likewise.
6615 * c-gimplify.c: Likewise.
6616 * c-lex.c: Likewise.
6617 * c-omp.c: Likewise.
6618 * c.opt: Likewise.
6619 * c-opts.c: Likewise.
6620 * c-pch.c: Likewise.
6621 * c-ppoutput.c: Likewise.
6622 * c-pragma.c: Likewise.
6623 * c-pragma.h: Likewise.
6624 * c-pretty-print.c: Likewise.
6625 * c-pretty-print.h: Likewise.
6626 * c-semantics.c: Likewise.
6627 * stub-objc.c: Likewise.
6628
6629 * gengtype.c (get_file_langdir): Special-case files in c-family/.
6630 (get_output_file_with_visibility): Fix name for c-common.h.
6631 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6632
6633 * c-tree.h: Update include path for moved files.
6634 * c-lang.c: Likewise.
6635 * c-lang.h: Likewise.
6636 * c-parser.c: Likewise.
6637 * c-convert.c: Likewise.
6638 * c-decl.c: Likewise.
6639 * c-objc-common.c: Likewise.
6640 * configure.ac: Make sure c-family/ exists in the build directory.
6641 * configure: Regenerate.
6642 * Makefile.in: Update paths for moved files. Regroup files per
6643 location and update dependencies. Move generated_files down after
6644 ALL_GTFILES_H.
6645
6646 * config/spu/spu-c.c: Update paths for moved files.
6647 * config/mep/mep-pragma.c: Likewise.
6648 * config/darwin-c.c: Likewise.
6649 * config/i386/msformat-c.c: Likewise.
6650 * config/i386/i386-c.c: Likewise.
6651 * config/avr/avr-c.c: Likewise.
6652 * config/sol2-c.c: Likewise.
6653 * config/ia64/ia64-c.c: Likewise.
6654 * config/rs6000/rs6000-c.c: Likewise.
6655 * config/arm/arm.c: Likewise.
6656 * config/arm/arm-c.c: Likewise.
6657 * config/h8300/h8300.c: Likewise.
6658 * config/v850/v850-c.c: Likewise.
6659
6660 * config/t-darwin: Fix dependencies for moved files.
6661 * config/t-sol2: Fix dependencies for moved files.
6662 * config/mep/t-mep: Fix dependencies for moved files.
6663 * config/ia64/t-ia64: Fix dependencies for moved files.
6664 * config/rs6000/t-rs6000: Fix dependencies for moved files.
6665 * config/v850/t-v850: Fix dependencies for moved files.
6666 * config/v850/t-v850e: Fix dependencies for moved files.
6667
6668 * config/m32c/m32c-pragma.c
6669
6670 * po/exgettext: Look in c-family/ also.
6671
6672 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
6673
6674 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
6675 (mark_control_dependent_edges_necessary): Call it instead of marking
6676 the last statement manually.
6677 (propagate_necessity): Likewise.
6678
6679 2010-06-05 Jan Hubicka <jh@suse.cz>
6680
6681 * basic-block.h (compute_dominance_frontiers): Updated.
6682 (compute_idf): Likewise.
6683
6684 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
6685 for dominance frontiers.
6686 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
6687 (insert_updated_phi_nodes_for): Likewise.
6688 (update_ssa): Likewise.
6689 * cfganal.c (compute_dominance_frontiers_1): Likewise.
6690 (compute_dominance_frontiers): Likewise.
6691 (compute_idf): Likewise.
6692 * df-problems.c (df_md_local_compute): Likewise.
6693
6694 2010-06-05 Anatoly Sokolov <aesok@post.ru>
6695
6696 * target.h (struct gcc_target): Add memory_move_cost field.
6697 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
6698 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
6699 * targhooks.c (default_memory_move_cost): New function.
6700 * targhooks.h (default_memory_move_cost): Declare function.
6701 * reload.h (memory_move_cost): Declare.
6702 (memory_move_secondary_cost): Change type of 'in' argument to bool.
6703 * reginfo.c (memory_move_cost): New function.
6704 (memory_move_secondary_cost): Change type of 'in' argument to bool.
6705 * ira.h (ira_memory_move_cost): Update comment.
6706 * ira.c: (ira_memory_move_cost): Update comment.
6707 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
6708 with memory_move_cost.
6709 * postreload.c (reload_cse_simplify_set): (Ditto.).
6710 * reload1.c (choose_reload_regs): (Ditto.).
6711 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
6712 (MEMORY_MOVE_COST): Revise documentation.
6713
6714 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6715 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6716 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
6717 type of 'in' argument to bool.
6718 (TARGET_MEMORY_MOVE_COST): Define.
6719
6720 2010-06-05 Jan Hubicka <jh@suse.cz>
6721
6722 * ipa-pure-const.c (propagate): Fix typo in handling of functions
6723 that cannot return. Be more careful when merging the results with
6724 previously known ones.
6725
6726 2010-06-05 Matthias Klose <doko@ubuntu.com>
6727
6728 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
6729 function to add the -iplugindir option.
6730 (find_plugindir_spec_function): Add new declaration and function.
6731 (static_spec_func): Use it for "find-plugindir".
6732
6733 2010-06-05 Jakub Jelinek <jakub@redhat.com>
6734
6735 PR c++/44361
6736 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
6737 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
6738 statement expression.
6739
6740 2010-06-05 Jan Hubicka <jh@suse.cz>
6741
6742 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
6743 (df_rd_problem_data): Convert sparse_invalidated_by_call,
6744 dense_invalidated_by_call to bitmap head.
6745 (df_rd_alloc, df_rd_bb_local_compute_process_def,
6746 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
6747 df_rd_start_dump, df_lr_verify_transfer_functions,
6748 df_live_verify_transfer_functions, df_chain_create_bb,
6749 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
6750 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
6751 df_simulate_one_insn_forwards, df_md_alloc,
6752 df_md_bb_local_compute_process_def,
6753 df_md_bb_local_compute_process_def, df_md_local_compute,
6754 df_md_transfer_function df_md_free): Update.
6755
6756 2010-06-05 Joseph Myers <joseph@codesourcery.com>
6757
6758 PR c/44322
6759 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
6760 target type for ADDR_EXPR; require no changes to qualifiers except
6761 for function types.
6762 * c-tree.h (c_build_type_variant): Remove.
6763
6764 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
6765
6766 * genautomata.c (get_excl_set): Do work per element, not per char.
6767 (check_presence_pattern_sets): Similar.
6768 (check_absence_pattern_sets): Similar.
6769
6770 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
6771
6772 * genautomata.c (curr_state_pass_num): Delete.
6773 (min_issue_delay_pass_states): Delete.
6774 (min_issue_delay): Delete.
6775 (initiate_min_issue_delay_pass_states): Delete.
6776 (output_min_issue_delay_table): Compute min_issue_delay_vect
6777 using a breadth-first search variant.
6778 (output_tables): Don't call initiate_min_issue_delay_pass_states.
6779
6780 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
6781
6782 PR boostrap/44421
6783 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
6784 (df_byte_lr_bb_local_compute): Likewise.
6785
6786 2010-06-03 Jason Merrill <jason@redhat.com>
6787
6788 Implement noexcept operator (5.3.7)
6789 * c-common.c (c_common_reswords): Add noexcept.
6790 * c-common.h (enum rid): Add RID_NOEXCEPT.
6791
6792 2010-06-04 Joseph Myers <joseph@codesourcery.com>
6793
6794 * config/darwin-driver.c (darwin_default_min_version): Use
6795 GCC-specific formats in diagnostics.
6796 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
6797 diagnostics.
6798 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
6799 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
6800 eval_spec_function, handle_braces, process_brace_body, main,
6801 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
6802 getenv_spec_function, compare_version_strings,
6803 version_compare_spec_function): Use GCC-specific formats in
6804 diagnostics.
6805
6806 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6807
6808 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
6809 that operand 0 and operand 1 are equal.
6810 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
6811 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
6812 and operand 1 are equal.
6813 <default>: Ditto. Remove ??? comment.
6814 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
6815 and operand 1 are equal.
6816 <default>: Ditto. Remove ??? comment.
6817 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
6818 are equal.
6819 (*add<mode>_4) <default>: Ditto.
6820 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
6821
6822 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
6823
6824 * config/i386/i386-protos.h (ix86_print_operand): Declare.
6825 * config/i386/i386.c (ix86_print_operand): Make non-static.
6826 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
6827 * output.h (output_operand): Declare.
6828 * final.c (output_operand): Make non-static.
6829
6830 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
6831
6832 PR rtl-optimization/44013
6833 * sched-deps.c (add_dependence_list_and_free): Don't free lists
6834 when processing debug insns.
6835
6836 PR debug/41371
6837 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
6838 recursing. Check that recursion is bounded. Rename inner var
6839 to avoid hiding incoming argument.
6840
6841 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6842
6843 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
6844 operands[2] == 255.
6845 (*addqi_3): Ditto.
6846 (*addqi_4): Ditto.
6847 (*addqi_5): Ditto.
6848 (*addqi_ext_1_rex64): Ditto.
6849 (*addqi_ext_1): Ditto.
6850
6851 (*addqi_4): Check for incdec_operand in QImode.
6852
6853 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
6854 using SWI mode iterator.
6855 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
6856 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
6857 mode iterator.
6858 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
6859 using SWI mode iterator.
6860
6861 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6862
6863 PR c/25880
6864 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
6865 * c-format.c (gcc_diag_flag_specs): Add hash.
6866 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
6867 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
6868 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
6869 pp_c_cv_qualifiers. Handle qualifiers spelling here.
6870 (pp_c_type_qualifier_list): Call the function above.
6871 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
6872 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
6873 (WARN_FOR_QUALIFIERS): New macro.
6874 (convert_for_assignment): Use it.
6875
6876 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
6877
6878 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
6879
6880 2010-06-04 Jan Hubicka <jh@suse.cz>
6881
6882 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
6883 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
6884 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
6885 DF_BYTE_LR_OUT): Update for embedded bitmaps.
6886 * fwprop.c (single_def_use_enter_block): Likewise.
6887 * ddg.c (create_ddg_dep_from_intra_loop_link,
6888 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6889 * loop-iv.c (latch_dominating_def): Likewise.
6890 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6891 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6892 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6893 df_rd_transfer_function, df_rd_top_dump,
6894 df_rd_bottom_dump): Update.
6895 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6896 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6897 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6898 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6899 df_lr_verify_solution_start, df_lr_verify_solution_end,
6900 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6901 df_live_free_bb_info, df_live_alloc, df_live_reset,
6902 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6903 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6904 df_live_verify_solution_start, df_live_verify_solution_end,
6905 df_live_verify_transfer_functions, df_chain_create_bb,
6906 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6907 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6908 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6909 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6910 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6911 df_byte_lr_transfer_function, df_byte_lr_top_dump,
6912 df_byte_lr_bottom_dump, df_create_unused_note,
6913 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6914 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6915 df_md_transfer_function, df_md_init, df_md_confluence_0,
6916 df_md_confluence_n,
6917 df_md_top_dump, df_md_bottom_dump): Update.
6918 (struct df_lr_problem_data): Embedd bitmap headers.
6919
6920 2010-06-04 Jan Hubicka <jh@suse.cz>
6921
6922 * dce.c (dce_process_block): Do not re-scan already marked
6923 instructions.
6924
6925 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
6926
6927 PR rtl-optimization/39871
6928 PR rtl-optimization/40615
6929 PR rtl-optimization/42500
6930 PR rtl-optimization/42502
6931 * ira.c (init_reg_equiv_memory_loc: New function.
6932 (ira): Call it twice.
6933 * reload.h (calculate_elim_costs_all_insns): Declare.
6934 * ira-costs.c: Include "reload.h".
6935 (regno_equiv_gains): New static variable.
6936 (init_costs): Allocate it.
6937 (finish_costs): Free it.
6938 (ira_costs): Call calculate_elim_costs_all_insns.
6939 (find_costs_and_classes): Take estimated elimination costs
6940 into account.
6941 (ira_adjust_equiv_reg_cost): New function.
6942 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
6943 * reload1.c (init_eliminable_invariants, free_reg_equiv,
6944 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
6945 (elim_bb): New static variable.
6946 (reload): Move code out of here into init_eliminable_invariants and
6947 free_reg_equiv. Call them.
6948 (calculate_elim_costs_all_insns): New function.
6949 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
6950 all callers changed. If FOR_COSTS is true, don't call alter_reg,
6951 but call note_reg_elim_costly if we turned a valid memory address
6952 into an invalid one.
6953 * Makefile.in (ira-costs.o): Depend on reload.h.
6954
6955 2010-06-04 Julian Brown <julian@codesourcery.com>
6956
6957 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
6958 for pool ranges.
6959
6960 2010-06-04 Richard Guenther <rguenther@suse.de>
6961
6962 PR lto/41584
6963 * cgraph.h (struct varpool_node): Add lto_file_data field.
6964 * lto-cgraph.c (input_varpool_node): Initialize it.
6965
6966 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6967
6968 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
6969 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
6970 predicate in "type" attribute calculation.
6971 (*addsi_1_zext): Ditto.
6972 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
6973 (*addsi_2_zext): Ditto.
6974 (*add<mode>_3): Ditto.
6975 (*addsi_3_zext): Ditto.
6976 (*add<mode>_5): Ditto.
6977
6978 2010-06-03 Jan Hubicka <jh@suse.cz>
6979
6980 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
6981 of bitmap_bit_p.
6982 * cfganal.c (compute_dominance_frontiers_1): Likewise.
6983
6984 2010-06-03 Jan Hubicka <jh@suse.cz>
6985
6986 * df-problems.c (df_create_unused_note, df_note_bb_compute):
6987 micro-optimize the checks when to add new note.
6988
6989 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
6990
6991 * final.c (output_asm_insn): Call
6992 targetm.asm_out.print_operand_punct_valid_p. Update comments.
6993 (output_operand): Call targetm.asm_out.print_operand. Update comments.
6994 (output_address): Call targetm.asm_out.print_operand_address.
6995 Update comments.
6996 * target.h (struct gcc_target): Add print_operand,
6997 print_operand_address, and print_operand_punct_valid_p fields.
6998 * targhooks.h (default_print_operand): Declare.
6999 (default_print_operand_address): Declare.
7000 (default_print_operand_punct_valid_p): Declare.
7001 * targhooks.c (default_print_operand): Define.
7002 (default_print_operand_address): Define.
7003 (default_print_operand_punct_valid_p): Define.
7004 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
7005 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
7006 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7007 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
7008 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
7009 * vmsdbgout.c (addr_const_to_string): Update comment.
7010 * config/i386/i386.c (print_operand): Rename to...
7011 (ix86_print_operand): ...this. Make static.
7012 (print_operand_address): Rename to...
7013 (ix86_print_operand_address): ...this. Make static. Call
7014 ix86_print_operand instead of PRINT_OPERAND.
7015 (ix86_print_operand_punct_valid_p): New function.
7016 (TARGET_PRINT_OPERAND): Define.
7017 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7018 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7019 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
7020 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7021 (PRINT_OPERAND): Delete.
7022 (PRINT_OPERAND_ADDRESS): Delete.
7023 * config/i386/i386-protos.h (print_operand): Delete prototype.
7024 (print_operand_address): Delete prototype.
7025
7026 2010-06-03 Richard Guenther <rguenther@suse.de>
7027
7028 PR tree-optimization/44403
7029 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7030 Preserve pointer qualifiers.
7031 (vect_create_data_ref_ptr): Likewise.
7032
7033 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
7034
7035 PR c++/44294
7036 * defaults.h (MAX_FIXED_MODE_SIZE): New.
7037
7038 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
7039
7040 2010-06-03 Jakub Jelinek <jakub@redhat.com>
7041
7042 PR debug/44375
7043 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
7044 return false if merging the bbs would lead to goto_locus
7045 location being lost from the IL.
7046
7047 2010-06-03 Jan Hubicka <jh@suse.cz>
7048 Jakub Jelinek <jakub@redhat.com>
7049
7050 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
7051 set->regs[i] is NULL or has just one entry.
7052
7053 2010-06-03 Jan Hubicka <jh@suse.cz>
7054
7055 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
7056 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
7057
7058 2010-06-03 Paul Brook <paul@codesourcery.com>
7059
7060 * config/arm/arm.c (FL_TUNE): Define.
7061 (arm_default_cpu, arm_cpu_select): Remove.
7062 (all_cores): Populate core field.
7063 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
7064 (arm_find_cpu): New function.
7065 (arm_handle_option): Lookup cpu/architecture names.
7066 (arm_override_options): Cleanup mcpu/march/mtune handling.
7067 (arm_file_start): Ditto.
7068
7069 2010-06-03 Alan Modra <amodra@gmail.com>
7070
7071 PR target/44169
7072 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
7073 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
7074 rtx to gen_load_toc_v4_PIC_1b. Tidy.
7075 (rs6000_emit_load_toc_table): Likewise.
7076
7077 2010-06-02 Jan Hubicka <jh@suse.cz>
7078
7079 * passes.c (init_optimization_passes): Put ipa reference
7080 after ipa pure-const.
7081
7082 2010-06-02 Jan Hubicka <jh@suse.cz>
7083
7084 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
7085 calls_read_all and calls_write_all.
7086 (get_reference_optimization_summary): Fix formatting.
7087 (is_proper_for_analysis): Check that decl is not readonly.
7088 (propagate_bits): Check CONST/PURE/noreturn flags.
7089 (ipa_init): Move all_module_statics to optimization_summary_obstack.
7090 (analyze_function): Ignore indirect edges.
7091 (copy_global_bitmap): For all module statics, do nothing.
7092 (generate_summary): Do not print calls_read_all/calls_write_all.
7093 (read_write_all_from_decl): Take node as argument; check
7094 cgraph_node_cannot_return.
7095 (propagate): Reorganize read_all/write_all computation;
7096 check indirect edges; check ecf flags; use all_module_statics
7097 in the results; do not free all_module_statics.
7098 (stream_out_bitmap): Handle all_module_statics.
7099 (ipa_reference_write_optimization_summary): Likewise; use
7100 varpool/cgraph encoders to get boundaries.
7101 (ipa_reference_read_optimization_summary): Read in all_module_statics;
7102 use it when possible.
7103
7104 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7105
7106 PR target/44218
7107 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
7108 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
7109
7110 * doc/extend.texi (powerpc builtins): Document vec_recip,
7111 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
7112
7113 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
7114 (rs6000_emit_swrsqrt): Ditto.
7115 (rs6000_emit_swdivsf): Delete.
7116 (rs6000_emit_swdivdf): Ditto.
7117 (rs6000_emit_swrsqrtsf): Ditto.
7118
7119 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
7120 describe the reciprocal estimate support for each type.
7121 (recip_options): Map -mrecip=<opt> into option bits.
7122 (gen_2arg_fn_t): New typedef for binary rtx gen function.
7123 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
7124 reciprocal estimate instructions.
7125 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
7126 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
7127 Set up rs6000_recip_bits based on the -mrecip* options. Print the
7128 cost information if -mdebug=cost or -mdebug=reg.
7129 (rs6000_override_options): Set -mrecip-precision for power6, and
7130 power7 machines. If -mvsx or -mdfp, enable various options that
7131 came in previous instruction set ISAs, unless the option was
7132 explicitly disabled by the command line option. Parse
7133 -mrecip=<opt> options.
7134 (rs6000_builtin_vectorized_function): Add support for vectorizing
7135 the reciprocal estimate builtins and expansions.
7136 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
7137 (bdesc_2arg): Add reciprocal estimate builtins.
7138 (bdesc_1arg): Add reciprocal square root estimate builtins.
7139 (rs6000_expand_builtin): Rewrite to use a switch statement,
7140 instead of multiple if/then/elses. Add reciprocal estimate builtins.
7141 (rs6000_init_builtins): Create declarations for reciprocal
7142 estimate builtins.
7143 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
7144 sized, prefer traditional floating point registers, if integer
7145 vector types, prefer altivec registers. Don't actually look at
7146 the memory address any more.
7147 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
7148 builtins.
7149 (rs6000_load_constant_and_splat): New helper function to load up
7150 the constant for reciprocal estimate instructions.
7151 (rs6000_emit_madd): New helper function for generating
7152 multiply/add type instructions, based on the current switches.
7153 (rs6000_emit_msub): Ditto.
7154 (rs6000_emit_mnsub): Ditto.
7155 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
7156 replace a divide with a reciprocal estimate and fixup, adding
7157 support for machines with high precision and vectors.
7158 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
7159 low precision machines.
7160 (rs6000_emit_swdiv): New common function to be called to replace a
7161 division with reciprocal estimate and fixup.
7162 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
7163 for double and vector types. Add support for high precision machines.
7164
7165 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
7166 the reciprocal estimate instructions can be generated.
7167 (TARGET_FRE): Ditto.
7168 (TARGET_FRSQRTES): Ditto.
7169 (TARGET_FRSQRTE): Ditto.
7170 (RS6000_RECIP_*): New macros for reciprocal estimate support.
7171
7172 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
7173 square root estimate on vectors.
7174 (re<mode>2): New insn for reciprocal division estimate on vectors.
7175
7176 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
7177 New builtin.
7178 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
7179 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
7180 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
7181 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
7182 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
7183 (RS6000_BUILTIN_RSQRT): Ditto.
7184 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
7185 floating point builtin.
7186
7187 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7188 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
7189 __RECIP_PRECISION__ based on the command line switches.
7190 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
7191
7192 * config/rs6000/rs6000.opt (-mrecip): Document add support for
7193 replacing division instructions with reciprocal estimate and fixup.
7194 (-mrecip=<opt>): New option.
7195 (-mrecip-precision): Ditto.
7196
7197 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
7198 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
7199 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
7200 precision scalar.
7201
7202 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
7203 (UNSPEC_VREFP): Ditto.
7204 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
7205 conterparts with regard to support of -mno-fused-madd and -ffast-math.
7206 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
7207 reciprocal estimate instructions to be generated.
7208 (altivec_vrefp): Ditto.
7209
7210 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
7211 estimate support.
7212 (rreg): New mode attribute for reciprocal estimate support.
7213 (recip<mode>3): New insn for division using reciprocal estimate
7214 and fixup builtins.
7215 (divide define_split): New define_split to convert floating point
7216 division to use reciprocal estimate if the user used the
7217 appropriate options and the split is run when we can add new
7218 pseudo registers for the fixup.
7219 (rsqrt<mode>2): New insn for reciprocal square root support.
7220 (recipsf3): Move into recip<mode>3.
7221 (recipdf3): Ditto.
7222 (fres): Use TARGET_FRES.
7223 (rsqrtsf2): Move into rsqrt<mode>2.
7224 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
7225 (copysignsf3): Add support for VSX.
7226 (fred): Use TARGET_FRE.
7227 (fred_fpr): Ditto.
7228 (rsqrtdf_internal1): New function for frsqrte instruciton.
7229
7230 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
7231 (vec_rsqrt): Ditto.
7232
7233 2010-06-03 Richard Guenther <rguenther@suse.de>
7234
7235 PR middle-end/44291
7236 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
7237 (set_user_assembler_libfunc): Likewise.
7238
7239 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7240
7241 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
7242 defaults.h.
7243 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
7244 to defaults.h
7245 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
7246 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
7247 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
7248 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
7249 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
7250 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
7251 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
7252 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
7253 * defaults.h: Updated for above mentioned changes.
7254
7255 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
7256
7257 * c-common.c: Remove header include of tm_p.h.
7258 * Makefile.in (c-common.o): Remove TM_P_H dependency.
7259
7260 2010-06-02 Jakub Jelinek <jakub@redhat.com>
7261
7262 * tree.h (struct tree_decl_map): New type.
7263 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
7264 (tree_decl_map_hash): New prototype.
7265 (debug_expr_for_decl, value_expr_for_decl): Change into
7266 tree_decl_map hashtab from tree_map.
7267 (init_ttree): Adjust initialization.
7268 (tree_decl_map_hash): New function.
7269 (decl_debug_expr_lookup, decl_debug_expr_insert,
7270 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
7271
7272 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7273
7274 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
7275 linker emulations.
7276 * configure: Regenerate.
7277 * config.in: Regenerate.
7278
7279 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
7280 (X86_64_EMULATION): Define.
7281 (TARGET_LD_EMULATION): Use them.
7282
7283 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
7284 (SPARC64_EMULATION): Define.
7285 (LINK_ARCH_SPEC): Use them.
7286
7287 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7288
7289 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
7290 smallest_mode_for_size for computing the precision types of new
7291 graphite IVs. Do not call lang_hooks.types.type_for_size.
7292
7293 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7294
7295 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
7296 information.
7297 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
7298
7299 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7300
7301 PR middle-end/44363
7302 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
7303 return false instead.
7304
7305 2010-06-02 Jan Hubicka <jh@suse.cz>
7306
7307 PR middle-end/44295
7308 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7309 create new cgraph node to check callee.
7310
7311 2010-06-02 Richard Guenther <rguenther@suse.de>
7312
7313 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7314
7315 2010-06-02 Richard Guenther <rguenther@suse.de>
7316
7317 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7318 (lto_wrapper_cleanup): ... this. Do not exit.
7319 (fatal): Adjust. Exit here.
7320 (fatal_perror): Likewise.
7321 (fatal_signal): New function.
7322 (main): Set up signal handlers to cleanup temporary files.
7323 * Makefile.in (lto-wrapper.o): Adjust dependencies.
7324
7325 2010-06-02 Richard Guenther <rguenther@suse.de>
7326
7327 PR tree-optimization/44377
7328 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7329
7330 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7331
7332 * config/s390/2097.md (z10_fhex): Remove insn reservation.
7333 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7334 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7335 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7336 instruction.
7337 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7338
7339 2010-06-02 Jan Hubicka <jh@suse.cz>
7340
7341 * bitmap.c (bitmap_descriptor): Add search_iter.
7342 (bitmap_find_bit): Increment it.
7343 (print_statistics): Print it.
7344
7345 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
7346
7347 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7348 instead of gimple_build_call_vec. Delete unnecessary local variable.
7349
7350 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7351
7352 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7353 change from yesterday.
7354
7355 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7356
7357 * c-ada-spec.c: Clean up redundant includes.
7358
7359 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
7360
7361 * gimplify.c: Do not include except.h and optabs.h.
7362 (gimplify_body): Do not initialize RTL profiling.
7363 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7364 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7365 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7366 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7367 langhooks.h.
7368
7369 * tree-pretty-print.h: Include pretty-print.h.
7370 * gimple-pretty-print.h: Include pretty-print.h.
7371
7372 * tree-pretty-print.c: Do not include diagnostic.h.
7373 * tree-vrp.c: Likewise.
7374 * tree-tailcall.c: Likewise
7375 * tree-scalar-evolution.c: Likewise
7376 * tree-ssa-dse.c: Likewise
7377 * tree-chrec.c: Likewise
7378 * tree-ssa-sccvn.c: Likewise
7379 * tree-ssa-copyrename.c: Likewise
7380 * tree-nomudflap.c: Likewise
7381 * tree-call-cdce.c: Likewise
7382 * tree-stdarg.c: Likewise
7383 * tree-ssa-math-opts.c: Likewise
7384 * tree-nrv.c: Likewise
7385 * tree-ssa-sink.c: Likewise
7386 * tree-browser.c: Likewise
7387 * tree-ssa-loop-ivcanon.c: Likewise
7388 * tree-ssa-loop.c: Likewise
7389 * tree-parloops.c: Likewise
7390 * tree-ssa-address.c: Likewise
7391 * tree-ssa-ifcombine.c: Likewise
7392 * tree-if-conv.c: Likewise
7393 * tree-data-ref.c: Likewise
7394 * tree-affine.c: Likewise
7395 * tree-ssa-phiopt.c: Likewise
7396 * tree-ssa-coalesce.c: Likewise
7397 * tree-ssa-pre.c: Likewise
7398 * tree-ssa-live.c: Likewise
7399 * tree-predcom.c: Likewise
7400 * tree-ssa-forwprop.c: Likewise
7401 * tree-ssa-dce.c: Likewise
7402 * tree-ssa-ter.c: Likewise
7403 * tree-ssa-loop-prefetch.c: Likewise
7404 * tree-optimize.c: Likewise
7405 * tree-ssa-phiprop.c: Likewise
7406 * tree-object-size.c: Likewise
7407 * tree-outof-ssa.c: Likewise
7408 * tree-ssa-structalias.c: Likewise
7409 * tree-switch-conversion.c: Likewise
7410 * tree-ssa-reassoc.c: Likewise
7411 * tree-ssa-operands.c: Likewise
7412 * tree-vectorizer.c: Likewise
7413 * tree-vect-data-refs.c: Likewise
7414 * tree-vect-generic.c: Likewise
7415 * tree-vect-stmts.c: Likewise
7416 * tree-vect-patterns.c: Likewise
7417 * tree-vect-slp.c: Likewise
7418 * tree-vect-loop.c: Likewise
7419 * tree-ssa-loop-ivopts.c: Likewise
7420 * tree-ssa-loop-im.c: Likewise
7421 * tree-ssa-loop-niter.c: Likewise
7422 * tree-ssa-loop-unswitch.c: Likewise
7423 * tree-ssa-loop-manip.c: Likewise
7424 * tree-ssa-loop-ch.c: Likewise
7425 * tree-dump.c: Likewise
7426 * tree-complex.c: Likewise
7427
7428 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7429 * tree-ssa-uninit.c: Likewise
7430 * tree-ssa-threadupdate.c: Likewise
7431 * tree-ssa-uncprop.c: Likewise
7432 * tree-ssa-ccp.c: Likewise
7433 * tree-ssa-dom.c: Likewise
7434 * tree-ssa-propagate.c: Likewise
7435 * tree-ssa-alias.c: Likewise
7436 * tree-dfa.c: Likewise
7437 * tree-cfgcleanup.c: Likewise
7438 * tree-sra.c: Likewise
7439 * tree-ssa-copy.c: Likewise
7440 * tree-ssa.c: Likewise
7441 * tree-profile.c: Likewise
7442 * tree-cfg.c: Likewise
7443 * tree-ssa-threadedge.c: Likewise
7444 * tree-vect-loop-manip.c: Likewise
7445
7446 * tree-inline.c: Do not include diagnostic.h and expr.h.
7447 Include rtl.h.
7448 (copy_decl_for_dup_finish): Do not use NULL_RTX.
7449
7450 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7451 * tree-loop-distribution.c: Likewise.
7452
7453 2010-06-01 Jan Hubicka <jh@suse.cz>
7454
7455 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7456
7457 2010-06-01 Jan Hubicka <jh@suse.cz>
7458
7459 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7460 remove return value.
7461 (split_bbs_on_noreturn_calls) .... here.
7462 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7463 * tree-flow.h (fixup_noreturn_call): New.
7464
7465 2010-06-01 Jan Hubicka <jh@suse.cz>
7466
7467 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7468
7469 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
7470
7471 * tree.h (build_nt_call_list): Delete.
7472 * tree.c (build_nt_call_list): Delete.
7473
7474 2010-06-01 Jan Hubicka <jh@suse.cz>
7475
7476 * fwprop.c: Make emit-rtl.h include last.
7477 * rtlanal.c: Include emit-rtl.h.
7478 * genautomata.c: Output emit-rtl include into insn-automata.c
7479 * df-scan.c: Include emit-rtl.h.
7480 * haifa-sched.c: Indlude emit-rtl.h.
7481 * mode-switching.c: Indlude emit-rtl.h.
7482 * graph.c: Indlude emit-rtl.h.
7483 * sel-sched.c: Include emit-rtl.h.
7484 * sel-sched-ir.c: Include emit-rtl.h.
7485 * ira-build.c: Include emit-rtl.h.
7486 * emit-rtl.c: (first_insn, last_insn): Remove defines.
7487 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7488 Move to emit-rtl.h.
7489 (set_new_first_and_last_insn, get_last_insn_anywhere,
7490 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7491 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7492 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7493 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7494 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7495 Use accessor functions.
7496 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7497 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7498 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7499 mem_expr_equal_p): Move here from rtl.h.
7500 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7501 Move here from emit-rtl.c; make inline.
7502 * cfglayout.h: Include emit-rtl.h.
7503 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7504 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7505 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7506 mem_expr_equal_p, get_insns, set_first-insn,
7507 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7508 * reg-stack.c: Include emit-rtl.h.
7509 * dce.c: Likewise.
7510
7511 2010-06-01 Jan Hubicka <jh@suse.cz>
7512
7513 * cgraph.h (tree_function_versioning): Update prototype.
7514 (cgraph_function_versioning): Update prototype.
7515 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7516 bitmap.
7517 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7518 (cgraph_materialize_clone, save_inline_function_body): Update use of
7519 tree_function_versioning.
7520 * tree-inline.c (copy_bb): Look for previous copied block to link
7521 after; fix debug output.
7522 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
7523 (copy_body): Likewise.
7524 (expand_call_inline): Update use of copy_body.
7525 (tree_function_versioning): Update use of copy body; accept
7526 blocks_to_copy and new_entry.
7527
7528 2010-06-01 Jan Hubicka <jh@suse.cz>
7529
7530 * gegenrtl.c: Remove unnecesary prototypes.
7531 (gendecl): Remove.
7532 (gendef): Produce static inline.
7533 (gencode): Remove.
7534 (main): Do not decode parameters; generate header only.
7535 * Makefile.in (genrtl.c): Remove.
7536
7537 2010-06-01 Jan Hubicka <jh@suse.cz>
7538
7539 * tree-switch-conversion.c (build_one_array): Make it readonly.
7540
7541 2010-06-01 Richard Guenther <rguenther@suse.de>
7542
7543 * optabs.c (init_optabs): Guard all accesses to reinit.
7544 * ipa-pure-const.c (propagate): Fix another typo.
7545 * opts.c (common_handle_option): Split assignment to bool.
7546 * c-opts.c (c_common_handle_option): Likewise.
7547
7548 2010-06-01 Arnaud Charlet <charlet@adacore.com>
7549 Matthew Gingell <gingell@adacore.com>
7550
7551 * doc/invoke.texi: Mention -fdump-ada-spec.
7552 * tree-dump.c (dump_files): Add ada-spec.
7553 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
7554 * tree-pass.h (tree_dump_index): Add TDI_ada.
7555 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
7556 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
7557 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
7558 * c-decl.c: Include c-ada-spec.h.
7559 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
7560 functions.
7561 (c_write_global_declarations): Add handling of -fdump-ada-spec.
7562 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
7563 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
7564 * c-ada-spec.h, c-ada-spec.c: New files.
7565
7566 2010-06-01 Richard Guenther <rguenther@suse.de>
7567
7568 PR lto/43853
7569 * ipa-pure-const.c (get_function_state): Hand back varying state
7570 if we do not have one.
7571 (has_function_state): New function.
7572 (duplicate_node_data): Adjust.
7573 (remove_node_data): Likewise.
7574 (pure_const_write_summary): Likewise.
7575 (propagate): Likewise. Fix typo.
7576
7577 2010-06-01 Jan Hubicka <jh@suse.cz>
7578
7579 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
7580 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
7581 (execute_all_ipa_transforms): Do not play with the states.
7582
7583 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7584
7585 * config/arm/t-linux-androideabi: New.
7586 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7587
7588 2010-06-01 Jan Hubicka <jh@suse.cz>
7589
7590 * tree-inline.c (estimate_num_insns): For stdarg functions look
7591 into call statement to count cost of argument passing.
7592
7593 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
7594
7595 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7596 argument for fprintf.
7597 (ix86_output_addr_diff_elt): Likewise.
7598 (x86_function_profiler): Likewise.
7599 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7600 (LPREFIX): Likewise.
7601 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7602
7603 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7604
7605 PR target/44338
7606 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7607 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7608 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7609 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7610 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7611 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7612 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7613 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7614 TARGET_FUSED_MADD.
7615
7616 2010-05-31 Jan Hubicka <jh@suse.cz>
7617
7618 * tree.h (tree_range_check_failed): Declare noreturn.
7619
7620 2010-05-31 Jan Hubicka <jh@suse.cz>
7621
7622 * gimple.c (gimple_call_builtin_p): New function.
7623 * gimple.h (gimple_call_builtin_p): Declare.
7624 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7625 to exit.
7626 (execute_warn_function_return): BUILT_IN_RETURN is return.
7627 (split_critical_edges): Return edges are not critical.
7628 (is_ctrl_altering_stmt): Builtin_in_return is altering.
7629 (gimple_verify_flow_info): Handle built_in_return.
7630 (execute_warn_function_return): Handle built_in_return.
7631 * ipa-pure-const.c (check_call): Ignore builtin_return.
7632
7633 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7634
7635 PR middle-end/44337
7636 * expr.c (expand_assignment): Don't store anything for out-of-bounds
7637 array accesses with non-MEM.
7638
7639 PR tree-optimization/44182
7640 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7641 newly needs to end a bb is followed by debug stmts, instead return
7642 true from the function at the end.
7643 (maybe_move_debug_stmts_to_successors): New function.
7644 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7645
7646 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
7647
7648 PR target/44161
7649 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7650
7651 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
7652
7653 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7654 for nested functions in non-optimized compilation.
7655
7656 2010-05-31 Richard Guenther <rguenther@suse.de>
7657
7658 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
7659
7660 2010-05-30 Jan Hubicka <jh@suse.cz>
7661
7662 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
7663
7664 2010-05-30 Richard Guenther <rguenther@suse.de>
7665
7666 PR lto/42975
7667 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
7668 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
7669 no longer needed.
7670
7671 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
7672
7673 * config/darwin.c (output_objc_section_asm_op): Add comment.
7674 (name_needs_quotes): Add '_' to list of valid comment chars.
7675 (machopic_output_function_base_name): Remove unneeded quotes.
7676 (darwin_encode_section_info): Adjust asm whitespace.
7677 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
7678 (ASM_OUTPUT_LOCAL): Ditto.
7679 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
7680 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
7681 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
7682
7683 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7684
7685 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
7686 RS6000_OUTPUT_BASENAME unconditionally.
7687 (rs6000_output_function_epilogue): Likewise.
7688
7689 2010-05-30 Jan Hubicka <jh@suse.cz>
7690
7691 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
7692 nodes.
7693
7694 2010-05-30 Richard Guenther <rguenther@suse.de>
7695
7696 * tree-cfg.c (verify_gimple_assign_single): Implement
7697 verification for COND_EXPR rhs.
7698
7699 2010-05-30 Jan Hubicka <jh@suse.cz>
7700
7701 * cgraph.h (cgraph_dump_file): Declare.
7702 * cgraphunit.c (cgraph_dump_file): Export.
7703 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
7704
7705 2010-05-30 Jan Hubicka <jh@suse.cz>
7706
7707 * dwarf2out.c (reference_to_unused,
7708 premark_types_used_by_global_vars_helper): Avoid creation of new
7709 varpool nodes.
7710
7711 2010-05-30 Jan Hubicka <jh@suse.cz>
7712
7713 * cgraph.h (cgraph_node_cannot_return,
7714 cgraph_edge_cannot_lead_to_return): New functions.
7715 * cgraph.c (cgraph_node_cannot_return,
7716 cgraph_edge_cannot_lead_to_return): Use them.
7717 * ipa-pure-const.c (pure_const_names): New static var.
7718 (check_call): Handle calls not leading to return.
7719 (pure_const_read_summary): Dump info read.
7720 (propagate): Dump info about propagation process; ignore side effects
7721 of functions not leading to exit; fix handling of pure functions.
7722
7723 2010-05-30 Jan Hubicka <jh@suse.cz>
7724
7725 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
7726 for tail call epilogues.
7727
7728 2010-05-30 Jan Hubicka <jh@suse.cz>
7729
7730 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
7731 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
7732 dump files.
7733
7734 2010-05-29 Jan Hubicka <jh@suse.cz>
7735
7736 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
7737 node; remove references in node we no longer keep in cgrpah but need
7738 body of.
7739
7740 2010-05-29 Jan Hubicka <jh@suse.cz>
7741
7742 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
7743
7744 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7745
7746 PR target/44165
7747 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
7748
7749 2010-05-29 Jan Hubicka <jh@suse.cz>
7750
7751 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
7752 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
7753 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
7754 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
7755 debug_names_replaced_by, debug_update_ssa): Likewise.
7756 * sbitmap.c (debug_sbitmap): Likewise.
7757 * genrecog.c (debug_decision, debug_decision_list): Likewise.
7758 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
7759 debug_tree_chain): Likewise.
7760 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
7761 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
7762 * optabs.c (debug_optab_libfuncs): Likewise.
7763 (verify_loop_closed_ssa): Likewise.
7764 * value-prof.c (verify_histograms): Likewise.
7765 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
7766 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
7767 * cfghooks.c (verify_flow_info): Likewise.
7768 * fold-const.c (debug_fold_checksum): Likewise.
7769 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
7770 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
7771 Likewise.
7772 * omega.c (debug_omega_problem): Likewise.
7773 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
7774 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
7775 * dominance.c (verify_dominators, debug_dominance_info,
7776 debug_dominance_tree): Likewise.
7777 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
7778 * df_regno_debug, df_ref_debug,
7779 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
7780 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
7781 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
7782 * sel-sched.c (debug_state): Likewise.
7783 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
7784 Likewise.
7785 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
7786 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
7787 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
7788 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
7789 Likewise.
7790 * c-pretty-print.c (debug_c_tree): Likewise.
7791 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
7792 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
7793 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
7794 * ebitmap.c (debug_ebitmap): Likewise.
7795 * function.c (debug_find_var_in_block_tree): Likewise.
7796 * print-rtl.c (debug_rtx): Likewise.
7797 (debug_rtx_count): Likewise.
7798 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
7799 * stor-layout.c (debug_rli): Likewise.
7800 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
7801 * tree-data-ref.c (debug_data_references,
7802 debug_data_dependence_relations, debug_data_reference,
7803 debug_data_dependence_relation, debug_rdg_vertex,
7804 debug_rdg_component, debug_rdg): Likewise.
7805 * tree-affine.c (debug_aff): Likewise.
7806 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
7807 Likewise.
7808 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
7809 * emit-rtl.c (verify_rtl_sharing): Likewise.
7810 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
7811 debug_value_expressions): Likewise.
7812 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
7813 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
7814 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
7815 * cfglayout.c (verify_insn_chain): Likewise.
7816 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
7817 debug_clast_stmt, debug_generated_program): Likewise.
7818 * ggc-page.c (debug_print_page_list): Likewise.
7819 * tree-ssa-ter.c (debug_ter): Likewise.
7820 * graphite-dependences.c (debug_pddr): Likewise.
7821 * sched-deps.c (debug_ds): Likewise.
7822 * tree-ssa.c (verify_ssa): Likewise.
7823 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
7824 debug_scattering_functions, debug_iteration_domains, debug_pdr,
7825 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
7826 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
7827 * tree-inline.c (debug_find_tree): Likewise.
7828 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
7829 debug_ppl_powerset_matrix): Likewise.
7830 * var-tracking.c (debug_dv): Likewise.
7831 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
7832 * cfgloop.c (verify_loop_structure): Likewise.
7833 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
7834 * c-common.c (verify_sequence_points): Likewise.
7835 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
7836 debug_candidates, debug_rgn_dependencies): Likewise.
7837 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
7838 * debug_constraint_graph, debug_solution_for_var,
7839 debug_sa_points_to_info): Likewise.
7840 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
7841 Likewie.
7842 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
7843 debug_loops, debug_loop, debug_loop_num): Likewise.
7844 * passes.c (debug_pass): Likewise.
7845 (dump_properties): Likewise; add cfglayout property.
7846 (debug_properties): Likewise.
7847 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
7848 * varpool.c (debug_varpool): Likewise.
7849 * regcprop.c (debug_value_data): Likewise.
7850 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
7851 debug_immediate_uses_for): Likewise.
7852
7853 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7854
7855 PR bootstrap/44315
7856 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
7857 Filter out insn-flags.h.
7858
7859 2010-05-29 Jan Hubicka <jh@suse.cz>
7860
7861 * cgraph.h (struct varpool_node_set_def,
7862 struct cgraph_node_set_def): Remove unused AUX pointer.
7863 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
7864 VEC_empty macro.
7865
7866 2010-05-29 Jan Hubicka <jh@suse.cz>
7867
7868 PR middle-end/44324
7869 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
7870
7871 2010-05-29 Richard Guenther <rguenther@suse.de>
7872
7873 * lto-streamer.c (cached_bp): New global variable.
7874 (bitpack_create): Return the cached bitpack, if available.
7875 (bitpack_delete): Clear and cache the bitpack, if appropriate.
7876 (bp_pack_value): Remove redundant asserts.
7877
7878 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7879
7880 PR middle-end/44306
7881 * tree-if-conv.c (is_true_predicate): New.
7882 (is_predicated): Use is_true_predicate.
7883 (add_to_predicate_list): Same. Do not use unshare_expr.
7884 (add_to_dst_predicate_list): Same.
7885
7886 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7887
7888 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7889 field on edges.
7890 (predicate_bbs): Same.
7891 (clean_predicate_lists): Same.
7892 (find_phi_replacement_condition): Do not AND the predicate from
7893 edge->aux.
7894
7895 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7896
7897 PR bootstrap/44315
7898 * Makefile.in (build/gencondmd.o): Add a missing `\'.
7899
7900 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7901
7902 PR target/44261
7903 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7904 (negdf2): Adjust expander pattern and use negdf2_slow.
7905 (negsf2): Likewise.
7906
7907 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
7908
7909 * basic-block.h (struct control_flow_graph): Move last_label_uid field
7910 up.
7911 * df.h (struct df_base_ref): Move regno field up.
7912 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7913 * expr.h (struct separate_ops): Move location field up.
7914 * optabs.h (struct optab_d): Move libcall_basename field down.
7915 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7916 * config/i386/i386.h (struct machine_function): Convert call_abi field
7917 into a bitfield. Move cfa field to the end of the structure.
7918
7919 2010-05-29 Jan Hubicka <jh@suse.cz>
7920
7921 * varpool.c (varpool_get_node): Fix lookup.
7922
7923 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7924
7925 * config/spu/spu-protos.h: Do not include rtl.h. Protect
7926 RTL specific prototypes with #ifdef RTX_CODE.
7927 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7928 * config/spu/t-spu-elf: Fix dependencies.
7929
7930 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
7931
7932 2010-05-29 Mike Stump <mikestump@comcast.net>
7933
7934 PR bootstrap/44315
7935 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
7936 TM_H when building to avoid dependency loops.
7937
7938 2010-05-29 Jan Hubicka <jh@suse.cz>
7939
7940 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
7941 refs and body; not the whole node for masters of materialized clones.
7942
7943 2010-05-29 Mike Stump <mikestump@comcast.net>
7944
7945 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
7946
7947 2010-05-29 Jan Hubicka <jh@suse.cz>
7948
7949 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
7950 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
7951 use of clone_function_name.
7952 * cgraph.h (cgraph_create_virtual_clone,
7953 cgraph_function_versioning): update prototypes.
7954 (clone_function_name): Declare.
7955 * ipa-cp.c (ipcp_insert_stage): Update call of
7956 cgraph_create_virtual_clone.
7957 * omp-low.c (create_omp_child_function_name): Use
7958 cgraph_create_virtual_clone.
7959 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
7960 (cgraph_function_versioning): Take SUFFIX argument; produce new name
7961 and make decl local.
7962
7963 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7964
7965 * vec.h: Include statistics.h
7966 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
7967 with VEC_H.
7968
7969 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7970
7971 * c-lex.c: Do not include c-tree.h.
7972 * c-pretty-print.c: Likewise.
7973 * c-opts.c: Likewise.
7974 * c-gimplify.c: Likewise.
7975 * c-common.c: Likewise.
7976 * c-dump.c: Likewise. Include c-common.h.
7977
7978 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7979
7980 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
7981 before including diagnostic-core.h.
7982 (c_cpp_error): New prototype moved from c-tree.h.
7983 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
7984 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
7985 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
7986 (c_cpp_error): Prototype moved to c-common.h.
7987 * Makefile.in: Update dependency for C_COMMON_H.
7988
7989 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7990
7991 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7992 * c-common.c (c_register_addr_space): Remove here.
7993 * c-decl.c (c_register_addr_space): Re-add here.
7994
7995 2010-05-28 Mike Stump <mikestump@comcast.net>
7996
7997 * config/darwin-c.c: Remove c-tree.h include.
7998
7999 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8000
8001 * gcc.c: Include diagnostic.h.
8002 (error_count): Remove. All users changed to use errorcount.
8003 (programname): Remove. All users changed to use progname.
8004 (fancy_abort, internal_error, fatal_error, error, warning, inform,
8005 fnotice): Remove.
8006 (execute): Don't include "Internal error" and bug reporting
8007 information in argument of internal_error call.
8008 (process_command): Don't increment error_count after calling
8009 perror_with_name.
8010 (input_filename): Rename to gcc_input_filename. All users
8011 changed.
8012 (main): Call diagnostic_initialize. Register delete_temp_files
8013 with atexit. Use seen_error to test for errors.
8014 * gcc.h: Include diagnostic-core.h.
8015 (fatal_error, error, warning): Remove.
8016 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
8017 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
8018 (gcc.o): Update dependencies.
8019
8020 2010-05-28 Jeff Law <law@redhat.com>
8021
8022 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
8023 functions.
8024 * ira.h (ira_bad_reload_regno): Declare
8025 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
8026
8027 * ira-color.c (update_curr_costs): Free updated hard reg costs.
8028 (ira_reassign_conflict_allocnos): Remove bogus asserts.
8029 (allocno_reload_assign): Likewise.
8030
8031 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
8032
8033 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
8034 build1_stat.
8035
8036 2010-05-28 Richard Guenther <rguenther@suse.de>
8037
8038 PR lto/44312
8039 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
8040 Stream fixed-point constants mode.
8041 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
8042 and TYPE_PRECISION.
8043 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
8044 Stream fixed-point constants mode.
8045 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
8046 and TYPE_PRECISION.
8047
8048 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8049
8050 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
8051 only place it was called from.
8052 (number_of_latch_executions): Do not return chrec_dont_know when the
8053 may_be_zero is a runtime condition: instead, return a COND_EXPR
8054 including the may_be_zero condition.
8055 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
8056 of nb_iterations.
8057 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
8058 COND_EXPRs.
8059
8060 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8061
8062 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
8063 generate COND_EXPRs for degenerate_phi_result.
8064
8065 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8066
8067 PR middle-end/44293
8068 * tree-if-conv.c (if_convertible_loop_p): Check the
8069 if-convertibility of phi nodes in non predicated BBs.
8070
8071 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8072
8073 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
8074
8075 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8076
8077 PR driver/15303
8078 * gcc.c (inform, warning, inform): New functions.
8079 (fatal_ice): Rename to internal_error; change cmsgid parameter to
8080 gmsgid. All callers changed.
8081 (notice): Rename to fnotice; add parameter fp. All callers changed.
8082 (fatal_error): Rename to fatal_signal. All users changed.
8083 (fatal): Rename to fatal_error; change cmsgid parameter to
8084 gmsgid. All callers changed.
8085 (process_command): Use warning instead of error for warnings.
8086 (end_going_arg): Don't use _() around argument of error.
8087 (do_spec_1): Use inform for message from %n specs. Use warning
8088 instead of error for warnings.
8089 (main): Use inform for comparison messages. Use warning for
8090 message about unused linker input.
8091 (error): Increment error_count. Print "error: ".
8092 * gcc.h (fatal): Change to fatal_error.
8093 (warning): Declare.
8094 * config/darwin-driver.c (darwin_default_min_version): Use warning
8095 instead of fprintf for warnings.
8096 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
8097
8098 2010-05-28 Julian Brown <julian@codesourcery.com>
8099
8100 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
8101 (*thumb2_addsi3_compare0_scratch): New.
8102 * config/arm/constraints.md (Pv): New.
8103 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
8104 for ARM mode only.
8105 (*addsi3_compare0_scratch): Likewise.
8106
8107 2010-05-28 Jan Hubicka <jh@suse.cz>
8108
8109 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
8110 check.
8111 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
8112 only on local statics.
8113
8114 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
8115
8116 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
8117
8118 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
8119
8120 PR bootstrap/44314
8121 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
8122 (OPTION_GLIBC): Define.
8123
8124 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8125
8126 PR debug/41048
8127 * dwarf2out.c (double_int_type_size_in_bits): New function.
8128 (round_up_to_align): Change first argument and return value to
8129 double_int.
8130 (field_byte_offset): Work internally on double_ints.
8131
8132 PR target/43636
8133 * builtins.c (expand_movstr): Use a temporary pseudo instead
8134 of target even when target is not NULL and not const0_rtx, but
8135 fails movstr predicate.
8136 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
8137
8138 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8139
8140 * final.c (rest_of_clean_state): Use %m in errors instead of
8141 strerror (errno).
8142 * gengtype.c (read_input_list, close_output_files): Use xstrerror
8143 instead of strerror.
8144 * toplev.c (process_options): Use %m in errors instead of strerror
8145 (errno).
8146 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
8147 (errno).
8148
8149 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
8150
8151 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
8152 (ix86_canonical_va_list_type): Make static. Add declaration.
8153 (ix86_enum_va_list): Make static. Reindent.
8154 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
8155 (ix86_canonical_va_list_type): Ditto.
8156 (ix86_enum_va_list): Ditto.
8157
8158 2010-05-28 Richard Guenther <rguenther@suse.de>
8159
8160 * lto-wrapper.c (run_gcc): With -save-temps generate a
8161 user-visible ltrans filename. Fixup ltrans unit numbering.
8162
8163 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
8164
8165 * c-common.c (c_common_nodes_and_builtins): Replace use
8166 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
8167 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
8168 to ix86_enum_va_list.
8169 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
8170 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
8171 (TARGET_ENUM_VA_LIST_P): Add hook description.
8172 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
8173 * target.h (gcc_target): Add enum_va_list hook.
8174
8175 PR bootstrap/44299
8176 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
8177 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
8178 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
8179
8180 2010-05-28 Alan Modra <amodra@gmail.com>
8181
8182 PR target/44266
8183 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8184 emit_library_call machinery to set up __tls_get_addr calls.
8185
8186 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8187
8188 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
8189
8190 2010-05-28 Dodji Seketeli <dodji@redhat.com>
8191
8192 Revert fix for PR c++/44188
8193 * c-common.c (is_typedef_decl): Revert the moving of this
8194 definition ...
8195 * tree.c (is_typedef_decl): ... here.
8196 (typdef_variant_p): Revert the moving of this definition
8197 here from gcc/cp/tree.c.
8198 * c-common.h (is_typedef_decl): Revert the moving of this
8199 declaration ...
8200 * tree.h (is_typedef_decl): ... here.
8201 (typedef_variant_p): Revert the moving of this declaration here
8202 from gcc/cp/cp-tree.h
8203 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
8204 (gen_tagged_type_die): Revert the splitting out of ...
8205 (gen_type_die_with_usage): ... this function. Revert the anonymous
8206 tagged type handling.
8207 (gen_typedef_die): Revert emitting DW_TAG_typedef for
8208 typedefs naming anonymous tagged types.
8209
8210 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8211
8212 * config/rs6000/rs6000-modes.def (PSImode): Delete.
8213
8214 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8215
8216 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
8217 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
8218 throughout.
8219 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
8220 "xer" to "ca".
8221 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
8222 XER_REGS to CA_REGS throughout.
8223 * config/rs6000/rs6000.h: Same.
8224 (ADDITIONAL_REGISTER_NAMES): Add "xer".
8225 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
8226 that mode_iterator "P" is the size for arithmetic carries as well.
8227 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
8228
8229 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8230
8231 PR bootstrap/44255
8232 * combine.c (struct rtx_subst_pair): Define unconditionally.
8233 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
8234 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
8235 Call make_compound_operation on pair->to.
8236 (propagate_for_debug): Don't call make_compound_operation here.
8237 Always use simplify_replace_fn_rtx.
8238
8239 2010-05-27 Sterling Augustine <sterling@tensilica.com>
8240
8241 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
8242 * config/xtensa/xtensa.c (override_options): Check
8243 TARGET_FORCE_NO_PIC and set flag_pic.
8244 * config/xtensa/xtensa.opt: Document -mforce-no-pic
8245
8246 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8247
8248 PR bootstrap/44299
8249 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
8250 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
8251
8252 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8253
8254 * diagnostic-core.h: New. Contents moved from diagnostic.h and
8255 toplev.h.
8256 * diagnostic.c: Don't include toplev.h.
8257 (progname): Define. Moved from toplev.c.
8258 (seen_error): New function.
8259 * diagnostic.h: Include diagnostic-core.h.
8260 (diagnostic_t, emit_diagnostic): Don't declare here.
8261 * toplev.c (progname): Move to toplev.c.
8262 (emit_debug_global_declarations, compile_file, finalize,
8263 do_compile, toplev_main): Use seen_error.
8264 * toplev.h: Include diagnostic-core.h.
8265 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
8266 internal_error, warning, warning_at, error, error_n, error_at,
8267 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
8268 verbatim, fnotice, progname): Move to diagnostic-core.h.
8269 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
8270 (expand_builtin_expect): Use seen_error.
8271 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
8272 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
8273 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
8274 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
8275 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
8276 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
8277 errorcount for errors.
8278 * c-opts.c (c_common_finish): Use seen_error.
8279 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8280 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
8281 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
8282 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
8283 (get_coverage_counts): Use seen_error.
8284 * dwarf2out.c (dwarf2out_finish): Use seen_error.
8285 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
8286 gimplify_body): Use seen_error.
8287 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
8288 * ipa-pure-const.c (gate_pure_const): Use seen_error.
8289 * ipa-reference.c (gate_reference): Use seen_error.
8290 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
8291 * lambda-code.c: Include diagnostic-core.h instead of
8292 diagnostic.h.
8293 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8294 * lto-compress.c: Include diagnostic-core.h instead of
8295 diagnostic.h.
8296 * lto-section-in.c: Include diagnostic-core.h instead of
8297 diagnostic.h.
8298 * lto-streamer-out.c: Include diagnostic-core.h instead of
8299 diagnostic.h.
8300 * lto-streamer.c: Include diagnostic-core.h instead of
8301 diagnostic.h.
8302 (gate_lto_out): Use seen_error.
8303 * matrix-reorg.c: Include diagnostic-core.h instead of
8304 diagnostic.h.
8305 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8306 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8307 (gate_expand_omp, lower_omp_1): Use seen_error.
8308 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8309 (rest_of_decl_compilation, rest_of_type_compilation,
8310 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8311 * tree-cfg.c (label_to_block_fn): Use seen_error.
8312 * tree-inline.c (optimize_inline_calls): Use seen_error.
8313 * tree-mudflap.c (mudflap_finish_file): Use
8314 seen_error.
8315 * tree-optimize.c (gate_all_optimizations,
8316 gate_all_early_local_passes, gate_all_early_optimizations): Use
8317 seen_error.
8318 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8319 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8320 (varpool_remove_unreferenced_decls,
8321 varpool_assemble_pending_decls): Use seen_error.
8322 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8323 (TOPLEV_H, DIAGNOSTIC_H): Update.
8324 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8325 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8326 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8327 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8328 coverage.o, lambda-code.o): Update dependencies.
8329
8330 2010-05-25 Dodji Seketeli <dodji@redhat.com>
8331
8332 PR c++/44188
8333 * c-common.c (is_typedef_decl): Move this definition ...
8334 * tree.c (is_typedef_decl): ... here.
8335 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8336 * c-common.h (is_typedef_decl): Move this declaration ...
8337 * tree.h (is_typedef_decl): ... here.
8338 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8339 * dwarf2out.c (is_naming_typedef_decl): New function.
8340 (gen_tagged_type_die): Split out of ...
8341 (gen_type_die_with_usage): ... this function. When an anonymous
8342 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8343 is emitted for the typedef.
8344 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8345 anonymous tagged types.
8346
8347 2010-05-27 Jason Merrill <jason@redhat.com>
8348
8349 * print-tree.c (debug_vec_tree): New fn.
8350 (print_vec_tree): New fn.
8351 * tree.h: Declare them.
8352 * gdbinit.in (pvt): New command.
8353
8354 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8355
8356 * gdbinit.in (pdd): New command.
8357
8358 2010-05-27 Jan Hubicka <jh@suse.cz>
8359
8360 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8361 (update_caller_keys): Return early if there are no callers;
8362 only update fibheap when decresing the key.
8363 (update_callee_keys): Avoid recursion.
8364 (decide_inlining_of_small_functions): When badness does not match;
8365 re-insert into fibheap.
8366
8367 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8368
8369 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8370 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8371 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8372 (ALL_HOST_OBJS): Now a union of the above two.
8373 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8374 all files in ALL_HOST_FRONTEND_OBJS.
8375 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8376
8377 * c-common.c: Pretend to be a backend file by undefining
8378 IN_GCC_FRONTEND (still need rtl.h here).
8379
8380 2010-05-27 Jan Hubicka <jh@suse.cz>
8381
8382 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8383 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8384
8385 2010-05-27 Jan Hubicka <jh@suse.cz>
8386
8387 * sched-ebb.c: Rename struct deps to struct deps_desc.
8388 * ddg.c: Likewise.
8389 * sel-sched-ir.c: Likewise.
8390 * sched-deps.c: Likewise.
8391 * sched-int.h: Likewise.
8392 * sched-rgn.c: Likewise.
8393
8394 2010-05-27 Jon Beniston <jon@beniston.com>
8395
8396 PR 43726
8397 * config/lm32/lm32.h: Remove definition of
8398 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8399
8400 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
8401
8402 PR lto/44230
8403 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8404
8405 2010-05-27 Richard Guenther <rguenther@suse.de>
8406
8407 PR tree-optimization/44284
8408 * tree-vect-stmts.c (vectorizable_assignment): Handle
8409 sign-changing conversions as simple copy.
8410
8411 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8412
8413 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8414 Bionic C library.
8415 (__gthread_active_p): Check for pthread_create if compiling against
8416 Bionic C library.
8417
8418 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8419
8420 Support compilation for Android platform. Reimplement -mandroid.
8421
8422 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8423 (*android*): Set ANDROID_DEFAULT.
8424 (arm*-*-linux*): Include linux-android.h.
8425 (arm*-*-eabi*): Don't include previous -mandroid implementation.
8426 * config/arm/eabi.h: Remove, move Android-specific parts ...
8427 * config/linux-android.h: ... here. New file.
8428 * config/arm/eabi.opt: Rename to ...
8429 * config/linux-android.opt: ... this.
8430 (mandroid): Allow -mno-android option. Initialize based on
8431 ANDROID_DEFAULT.
8432 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8433 Move logic to corresponding LINUX_TARGET_* macros.
8434 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8435 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8436 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8437 Android definitions.
8438 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8439 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8440 Document.
8441
8442 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8443
8444 Add support for Bionic C library
8445
8446 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8447 macro.
8448 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8449 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8450
8451 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8452 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8453 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8454 to support multiple C libraries. Handle Bionic.
8455 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8456 (BIONIC_DYNAMIC_LINKER64): Define.
8457 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8458 Update.
8459 (TARGET_HAS_SINCOS): Enable for Bionic.
8460
8461 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
8462 the last option specified on command line take effect.
8463 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8464 (mbionic): New.
8465 (mglibc, muclibc): Update.
8466
8467 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8468 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8469 DEFAULT_LIBC.
8470
8471 * doc/invoke.texi (-mglibc, -muclibc): Update.
8472 (-mbionic): Document.
8473
8474 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8475
8476 * c-common.h (c_register_addr_space): Add prototype.
8477 (ADDR_SPACE_KEYWORD): Remove.
8478 * c-common.c (c_register_addr_space): New function.
8479 (c_addr_space_name): Reimplement.
8480 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8481
8482 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8483 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8484
8485 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8486 Remove TARGET_ADDR_SPACE_KEYWORDS.
8487
8488 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8489
8490 * input.c: New file.
8491 * input.h (main_input_filename): Move declaration to toplev.h.
8492 * toplev.c (input_location, line_table): Move to input.c
8493 * toplev.h (main_input_filename): Move declaration from input.h.
8494 * tree.c (expand_location): Move to input.c.
8495 * Makefile.in (OBJS-common): Add input.o.
8496 (input.o): Add dependencies.
8497
8498 2010-05-27 Richard Guenther <rguenther@suse.de>
8499
8500 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8501 for non-existant files.
8502 (fork_execute): Mark args_name file as deleted.
8503
8504 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8505
8506 PR bootstrp/44287
8507 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8508 (narrow_signed_type): Likewise.
8509
8510 2010-05-26 Jan Hubicka <jh@suse.cz>
8511
8512 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8513 edge only when checking is enabled; check using former_clone_of;
8514 check inline clones too.
8515 (cgraph_materialize_clone): Record former_clone_of pointer.
8516 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8517 combining redirections; dump args_to_skip bitmap
8518 (cgraph_materialize_all_clones): Do no redirection here.
8519 * ipa-inline.c (inline_transform): Do redirection here.
8520 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
8521 cheking only).
8522
8523 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8524
8525 * config/avr/avr-c.c: Do not include regs.h.
8526 Include cpplib.h for cpp_define and tree.h for c-common.h.
8527 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
8528 * config/avr/t-avr: Fix dependencies for avr-c.o.
8529
8530 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8531
8532 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
8533 string instead of SYMBOL_REF rtx.
8534 * rtl.h (set_stack_check_libfunc): Move prototype from here...
8535 * libfuncs.h: ...to here. Adjust for explow.c change.
8536
8537 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8538
8539 * pretty-print.c: Don't include ggc.h.
8540 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
8541 (identifier_to_locale): Use them for allocation.
8542 * pretty-print.h (identifier_to_locale_alloc,
8543 identifier_to_locale_free): Declare.
8544 * toplev.c (alloc_for_identifier_to_locale): New.
8545 (general_init): Set identifier_to_locale_alloc and
8546 identifier_to_locale_free.
8547 * Makefile.in (pretty-print.o): Update dependencies.
8548
8549 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8550
8551 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
8552 pointer types if they have different alignment or mode.
8553
8554 2010-05-26 Anatoly Sokolov <aesok@post.ru>
8555
8556 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8557 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8558 * config/sparc/sparc-protos.h (function_value): Remove declaration.
8559 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
8560 sparc_function_value_regno_p): New functions.
8561 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8562 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8563 (function_value): Rename to...
8564 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
8565 argument to 'outgoing'.
8566 (function_arg_record_value, function_arg_union_value,
8567 function_arg_vector_value): Update comment.
8568
8569 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8570
8571 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
8572 (fde_needed_for_eh_p): New predicate.
8573 (output_call_frame_info): Use it throughout to decide whether FDEs
8574 are needed for EH purpose.
8575 (dwarf2out_begin_prologue): Reorder assignments.
8576
8577 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8578
8579 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
8580 special case loop->header.
8581 (is_predicated): New.
8582 (if_convertible_loop_p): Call it.
8583
8584 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8585
8586 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8587 iterator in parameter. Do not generate code during the analysis.
8588 (tree_if_convert_cond_stmt): Removed.
8589 (tree_if_convert_stmt): Removed.
8590 (predicate_bbs): New.
8591 (if_convertible_loop_p): Call predicate_bbs.
8592 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8593 now contains all the analysis part.
8594
8595 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8596
8597 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8598 statements in the analysis part.
8599 (tree_if_convert_stmt): Update comment.
8600 (remove_conditions_and_labels): New.
8601 (combine_blocks): Call remove_conditions_and_labels.
8602 (tree_if_conversion): Update comment.
8603
8604 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8605
8606 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8607 than 2 predecessors or more than 2 successors.
8608
8609 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8610
8611 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8612 of loops in which the data dependence analysis fails.
8613
8614 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8615
8616 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8617 CDI_POST_DOMINATORS.
8618 (tree_if_conversion): Same.
8619
8620 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8621
8622 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8623
8624 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8625
8626 * tree-if-conv.c: Update copyright years. Fix comments.
8627 Fix indentation.
8628
8629 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
8630
8631 * builtin-types.def (BT_INT128): New primitive type.
8632 (BT_UINT128): Likewise.
8633 * c-common.c (c_common_r): Add __int128 keyword.
8634 (c_common_type_for_size): Handle __int128.
8635 (c_common_type_for_mode): Likewise.
8636 (c_common_signed_or_unsigned_type): Likewise.
8637 (c_common_nodes_and_builtins): Add builtin type
8638 if target supports 128-bit integer scalar.
8639 * c-common.h (enum rid): Add RID_INT128.
8640 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8641 if target supports 128-bit integer scalar.
8642 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8643 (finish_declspecs): Likewise.
8644 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8645 (c_token_starts_declspecs): Likewise.
8646 (c_parser_declspecs): Likewise.
8647 (c_parser_attributes): Likewise.
8648 (c_parser_objc_selector): Likewise.
8649 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8650 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8651 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8652 * tree.c (make_or_reuse_type): Likewise.
8653 (make_unsigned_type): Likewise.
8654 (build_common_tree_nodes_2): Likewise.
8655 * tree.h (enum integer_type_kind): Add itk_int128 and
8656 itk_unsigned_int128.
8657 (int128_integer_type_node): New define.
8658 (int128_unsigned_type_node): New define.
8659 * doc/extend.texi: Add documentation about __int128 type.
8660
8661 2010-05-26 Richard Guenther <rguenther@suse.de>
8662
8663 * tree-ssa-sccvn.c (copy_nary): Adjust.
8664 (copy_phis): Rename to ...
8665 (copy_phi): ... this. Adjust.
8666 (copy_references): Rename to ...
8667 (copy_reference): ... this. Adjust.
8668 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
8669 result into the valid table.
8670
8671 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8672
8673 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
8674 insn-config.h, insn-codes.h, recog.h, and optabs.h.
8675
8676 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8677
8678 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
8679
8680 2010-05-26 Richard Guenther <rguenther@suse.de>
8681
8682 * opts.c (common_handle_option): Handle OPT_Ofast.
8683
8684 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8685
8686 * diagnostic.c: Don't include opts.h.
8687 (permissive_error_option): Define.
8688 (diagnostic_initialize): Take n_opts parameter. Allocate memory
8689 for classify_diagnostic. Don't use memset for
8690 classify_diagnostic. Initialize new and recently added fields.
8691 (diagnostic_classify_diagnostic): Use context->n_opts instead of
8692 N_OPTS.
8693 (diagnostic_report_diagnostic): Pass context parameter to
8694 diagnostic_report_warnings_p. Use option_enabled and option_name
8695 hooks from context.
8696 (emit_diagnostic): Use permissive_error_option.
8697 (permerror): Likewise.
8698 * diagnostic.h: Don't include options.h.
8699 (struct diagnostic_context): Add n_opts, opt_permissive,
8700 inhibit_warnings, warn_system_headers, option_enabled and
8701 option_name fields. Change classify_diagnostic to a pointer.
8702 * opts-diagnostic.h: New file.
8703 * opts.c: Include opts-diagnostic.h.
8704 (common_handle_option): Set global_dc fields for -Wfatal-errors,
8705 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
8706 (option_name): New function.
8707 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
8708 (c_common_handle_option): Set global_dc->permissive for
8709 -fpermissive.
8710 * c-common.c (c_cpp_error): Save and restore
8711 global_dc->warn_system_headers, not variable warn_system_headers.
8712 * toplev.c: Include opts-diagnostic.h.
8713 (general_init): Update call to diagnostic_initialize. Set
8714 global_dc->show_column, global_dc->option_enabled and
8715 global_dc->option_name.
8716 (process_options): Don't set global_dc fields here.
8717 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
8718 (diagnostic.o, opts.o, toplev.o): Update dependencies.
8719
8720 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8721
8722 * config/picochip/picochip.md (movsi): Split a movsi from a
8723 const after reload.
8724
8725 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8726
8727 * ggc-zone.c: Update copyright year.
8728 (poison_region): Mark memory for Valgrind as undefined before
8729 memset () call and inaccessible afterwards.
8730 (ggc_pch_total_size): Change type of i to int.
8731
8732 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8733
8734 * ggc-common.c (ggc_free_overhead): Allow empty slot.
8735
8736 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8737
8738 * ggc-common.c: Update copyright year.
8739 (ggc_rlimit_bound): Remove prototype. Compile only if
8740 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
8741 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
8742 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
8743 (ggc_min_heapsize_heuristic): Likewise.
8744
8745 2010-05-26 Richard Guenther <rguenther@suse.de>
8746
8747 PR rtl-optimization/44164
8748 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
8749 no-common access-path disambiguation.
8750 (indirect_ref_may_alias_decl_p): Adjust.
8751 (indirect_refs_may_alias_p): Likewise.
8752 (refs_may_alias_p_1): Likewise.
8753
8754 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8755
8756 * c-typeck.c: Do not include expr.h.
8757
8758 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8759
8760 * rtl.h (decl_default_tls_model): Move prototype from here...
8761 * output.h: ...to here.
8762 * c-decl.c: Do not include rtl.h.
8763 * c-pragma.c: Likewise.
8764 * c-parser.c: Likewise.
8765 * c-gimplify.c: Likewise. And also not hard-reg-set.
8766 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
8767 FIXME note for it. Add a FIXME note for expr.h.
8768 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
8769 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
8770 defined.
8771
8772 2010-05-26 Jakub Jelinek <jakub@redhat.com>
8773
8774 PR target/44199
8775 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
8776 or total_size is larger than red zone size for non-V4 ABI, emit a
8777 stack_tie resp. frame_tie insn before stack pointer restore.
8778 * config/rs6000/rs6000.md (frame_tie): New insn.
8779
8780 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
8781
8782 * function.h (struct function): Add can_throw_non_call_exceptions bit.
8783 * lto-streamer-in.c (input_function): Stream it in.
8784 * lto-streamer-out.c (output_function): Stream it out.
8785 * function.c (allocate_struct_function): Set it.
8786 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
8787 for flag_non_call_exceptions.
8788 * cfgbuild.c (control_flow_insn_p): Likewise.
8789 (make_edges): Likewise.
8790 * cfgexpand.c (expand_stack_alignment): Likewise.
8791 * combine.c (distribute_notes): Likewise.
8792 * cse.c (cse_extended_basic_block): Likewise.
8793 * except.c (insn_could_throw_p): Likewise.
8794 * gcse.c (simple_mem): Likewise.
8795 * ipa-pure-const.c (check_call): Likewise.
8796 (check_stmt ): Likewise.
8797 * lower-subreg.c (lower-subreg.c): Likewise.
8798 * optabs.c (emit_libcall_block): Likewise.
8799 (prepare_cmp_insn): Likewise.
8800 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
8801 * postreload.c (rest_of_handle_postreload): Likewise.
8802 * reload1.c (reload_as_needed): Likewise.
8803 (emit_input_reload_insns): Likewise.
8804 (emit_output_reload_insns): Likewise.
8805 (fixup_abnormal_edges): Likewise.
8806 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
8807 * store-motion.c (find_moveable_store): Likewise.
8808 * tree-eh.c (stmt_could_throw_p): Likewise.
8809 (tree_could_throw_p): Likewise.
8810 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8811 * config/arm/arm.c (arm_expand_prologue): Likewise.
8812 (thumb1_expand_prologue): Likewise.
8813 * config/rx/rx.md (cbranchsf4): Likewise.
8814 (cmpsf): Likewise.
8815 * config/s390/s390.c (s390_emit_prologue): Likewise.
8816 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
8817 (inline_forbidden_into_p): New predicate.
8818 (expand_call_inline): Use it to forbid inlining.
8819 (tree_can_inline_p): Likewise.
8820
8821 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8822
8823 * config/i386/i386-c.c: Do not include rtl.h.
8824 * config/i386/t-i386: Update dependencies.
8825
8826 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8827
8828 * attribs.c: Do not include rtl.h.
8829 * Makefile.in: Update dependencies.
8830
8831 2010-05-25 Anatoly Sokolov <aesok@post.ru>
8832
8833 * double-int.h (double_int_and): New.
8834 * combine.c (try_combine): Clean up, use double_int_* and
8835 immed_double_int_const functions.
8836
8837 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8838
8839 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
8840 stderr to /dev/null instead of grep -q.
8841 * configure: Regenerate.
8842
8843 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8844
8845 * Makefile.in (EXCEPT_H): Fix typo.
8846
8847 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
8848
8849 * ira-build.c (update_conflict_hard_reg_costs): New.
8850 (ira_build): Call update_conflict_hard_reg_costs.
8851
8852 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8853
8854 PR debug/41371
8855 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
8856 ENABLE_CHECKING.
8857 (intersect_loc_chains): Walk the s2var's loc_chain together
8858 with s1node chain as long as the locations are equal, don't
8859 call find_loc_in_1pdv in that case.
8860
8861 PR debug/42801
8862 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
8863 (copy_bind_expr): ... instead of here.
8864 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
8865 if the block hasn't been remapped.
8866 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
8867 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
8868
8869 2010-05-25 Richard Guenther <rguenther@suse.de>
8870
8871 PR middle-end/44069
8872 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
8873 out-of-bounds array accesses.
8874
8875 2010-05-25 Richard Guenther <rguenther@suse.de>
8876
8877 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
8878 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
8879 (run_gcc): Re-organize to make cleanup easier.
8880
8881 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8882
8883 * config/s390/s390.c (optimization_options): Fix and move the
8884 flag_prefetch_loop_arrays override ...
8885 (override_options): ... here.
8886
8887 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8888
8889 * diagnostic.c: Don't include plugin.h.
8890 (diagnostic_report_diagnostic): Don't handle plugins specially
8891 here. Pass context to internal_error callback.
8892 * diagnostic.h (struct diagnostic_context): Add context parameter
8893 to internal_error callback.
8894 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8895 * plugin.h (struct diagnostic_context): Declare.
8896 (warn_if_plugins, plugins_internal_error_function): Declare.
8897 * toplev.c (general_init): Set global_dc->internal_error.
8898 * Makefile.in (diagnostic.o): Update dependencies.
8899
8900 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
8901
8902 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8903 * config/rs6000/t-darwin64: New.
8904 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8905 build crt2.
8906
8907 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
8908
8909 PR 44203
8910 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8911 match the original (and intended) behaviour before r159557. This
8912 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8913 in two ways.
8914
8915 2010-05-25 Richard Guenther <rguenther@suse.de>
8916
8917 * doc/invoke.texi: Document -Ofast.
8918 * target.h (struct gcc_target): Add handle_ofast.
8919 * target-def.h (TARGET_HANDLE_OFAST): Add.
8920 (TARGET_INITIALIZER): Adjust.
8921 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
8922 * common.opt (Ofast): Add.
8923
8924 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8925
8926 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8927 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8928
8929 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8930
8931 PR target/43610
8932 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
8933 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
8934 false_rtx. Use false_rtx to compute the correct *ptest for reversed
8935 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
8936
8937 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8938
8939 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
8940 DW_OP_minus with negated offset instead of DW_OP_plus.
8941 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
8942
8943 2010-05-25 Wei Guozhi <carrot@google.com>
8944
8945 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
8946 tst instruction and a new alternative.
8947 * config/arm/constraints.md (Pu): New constraint.
8948
8949 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
8950
8951 * function.c (assign_stack_local_1): Initialize variable
8952 to avoid warning when bootstrapping at -O3.
8953
8954 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
8955
8956 * configure.ac (all_lang_makefiles): Remove everything related to it.
8957 * configure: Regenerate.
8958 * Makefile.in: Fix reference to ada Make-lang.in.
8959 Remove support for LANG_MAKEFILES.
8960
8961 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
8962 Sandra Loosemore <sandra@codesourcery.com>
8963
8964 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
8965 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
8966 description. Add arm_neon_fp16_ok.
8967 (Add Options): Add arm_neon and arm_neon_fp16.
8968
8969 2010-05-24 Joseph Myers <joseph@codesourcery.com>
8970
8971 * diagnostic.c: Don't include flags.h.
8972 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
8973 context parameters. Check flags in the context passed as a parameter.
8974 (diagnostic_build_prefix): Add context parameter. Check
8975 show_column flag in context.
8976 (diagnostic_action_after_output): Check fatal_errors flag in context.
8977 (diagnostic_report_current_module): Check show_column flag in context.
8978 (default_diagnostic_starter): Update call to
8979 diagnostic_build_prefix.
8980 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
8981 (emit_diagnostic): Pass context to permissive_error_kind.
8982 (permerror): Pass context to permissive_error_kind.
8983 * diagnostic.h (struct diagnostic_context): Add show_column,
8984 pedantic_errors, permissive and fatal_errors fields.
8985 (diagnostic_build_prefix): Update prototype.
8986 * langhooks.c
8987 * toplev.c (process_options): Set flags in global_dc from
8988 flag_show_column, flag_pedantic_errors, flag_permissive,
8989 flag_fatal_errors.
8990 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8991 to diagnostic_build_prefix.
8992 * Makefile.in (diagnostic.o): Update dependencies.
8993
8994 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
8995
8996 * config/i386/ia32intrin.h (__crc32q): Define only if
8997 __SSE4_2__ is defined.
8998
8999 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
9000
9001 PR target/44132
9002 PR middle-end/43602
9003 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
9004 DECL_VISIBILITY_SPECIFIED.
9005 (emutls_decl): Set DECL_PRESERVE_P and copy
9006 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
9007 (emutls_finalize_control_var): New callback.
9008 (emutls_finish): Finalize emutls control variables.
9009 * toplev.c (compile_file): Move the call to emutls_finish ()
9010 before varpool_assemble_pending_decls ().
9011
9012 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
9013
9014 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
9015 added to the preprocessor condition.
9016
9017 2010-05-24 Paul Brook <paul@codesourcery.com>
9018
9019 * gengtype-lex.l: Add HARD_REG_SET.
9020 * expr.c (expand_expr_real_1): Record writes to hard registers.
9021 * function.c (rtl_data): Add asm_clobbers.
9022 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
9023 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
9024 Use crtl->asm_clobbers.
9025
9026 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9027
9028 * doc/makefile.texi (Makefile): Mention stages 'profile'
9029 and 'feedback' for profiledbootstrap.
9030
9031 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
9032
9033 PR target/44245
9034 * config/i386/i386.c (def_builtin): Properly check
9035 OPTION_MASK_ISA_64BIT.
9036
9037 2010-05-23 Joseph Myers <joseph@codesourcery.com>
9038
9039 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
9040 typedefs with different but compatible types. Allow duplicate
9041 typedefs with the same type except for pedantic non-C1X, but give
9042 warning for variably modified types.
9043 * c-typeck.c (tagged_types_tu_compatible_p,
9044 function_types_compatible_p, type_lists_compatible_p,
9045 comptypes_internal): Add parameter different_types_p; set
9046 *different_types_p for different but compatible types. All
9047 callers changed.
9048 (comptypes_check_different_types): New.
9049 * c-tree.h (comptypes_check_different_types): Declare.
9050
9051 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9052
9053 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
9054 * jump.c: Include basic-block.h.
9055 * profile.c: Likewise.
9056 * tree-profile.c: Likewise.
9057 * coverage.c: Likewise.
9058 * basic-block.h (optimize_function_for_size_p): Move to function.h.
9059 (optimize_function_for_speed_p): Likewise.
9060 * function.h (optimize_function_for_size_p,
9061 optimize_function_for_speed_p): Moved here from basic-block.h.
9062 * Makefile.in: Update dependencies.
9063
9064 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9065
9066 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
9067 before calling make; allow override through $MAKE.
9068 * doc/invoke.texi (Optimize Options): Document override.
9069
9070 2010-05-23 Anatoly Sokolov <aesok@post.ru>
9071
9072 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
9073 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9074 (rs6000_mode_dependent_address_ptr): Make static.
9075 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9076 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
9077 Remove.
9078
9079 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
9080
9081 PR target/43869
9082 * config/i386/i386.c: Make sure that the correct regparm is passed.
9083
9084 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9085
9086 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
9087 * sbitmap.c: ...to here to internalize sbitmap element access.
9088 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
9089 Explain why basic-block.h is included.
9090 * function.h: Include tm.h for CUMULATIVE_ARGS.
9091 * Makefile.in: Update dependencies.
9092
9093 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9094
9095 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
9096 New core types.
9097 * sbitmap.h (struct sbitmap_def): Do not typedef here.
9098 * sbitmap.c: Include sbitmap.h.
9099 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
9100 hard-reg-set.h. Split everything related to regsets out from here...
9101 * regset.h: ...to here. New file.
9102 * df.h: Include regset.h and sbitmap.h.
9103 * tree-flow.h: Likewise.
9104 * cfgloop.h: Likewise.
9105 * except.h: Do not include sbitmap.h. Include hashtab.h.
9106 * cgraph.h: Include vec.h and function.h.
9107 * reload.h (struct insn_chain): Change types of live_throughout
9108 and dead_or_set from regset_head to bitmap_head.
9109 (compute_use_by_pseudos): Be defined also if regset.h is not included.
9110 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
9111 spilled_regs from regset_head to bitmap_head to avoid dependency
9112 in regset.h.
9113 * sel-sched-ir.h: Include regset.h.
9114 * reload.c: Include df.h before reload.h.
9115 * caller-save.c: Likewise.
9116 * reload1.c: Likewise.
9117 * ira.c: Likewise.
9118 (mark_elimination): Update type of r to bitmap, consistent with
9119 DF_LR_IN.
9120 * dominance.c: Include bitmap.h.
9121 * modulo-sched.c: Include df.h.
9122 * cfganal.c: Include bitmap.h and sbitmap.h.
9123 * cfgbuild.c: Include sbitmap.h.
9124 * lcm.c: Include sbitmap.h.
9125 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
9126 * domwalk.c: Include sbitmap.h, exclude ggc.h.
9127 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
9128 * cselib.c: Include bitmap.h.
9129 * tree-optimize.c: Include regset.h.
9130 * stmt.c: Include bitmap.h.
9131 * Makefile.in: Update dependencies.
9132
9133 2010-05-22 Jan Hubicka <jh@suse.cz>
9134
9135 * cgraph.h (struct varpool_node): Add same_comdat_group.
9136 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
9137 pointer.
9138 (output_varpool): Update call of lto_output_varpool_node.
9139 (input_varpool): Read same_comdat_group pointer.
9140 (input_varpool_1): Fixup same_comdat_group pointer.
9141 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
9142 group is needed, all are.
9143 * varpool.c (varpool_remove_node): Remove node from same comdat group
9144 linklist too.
9145 (varpool_analyze_pending_decls): Walk same comdat groups.
9146
9147 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9148
9149 * rtl.h (union rtunion_def): Remove rt_bit member.
9150 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
9151 * print-rtl (print_rtx): Do not print the member.
9152 * gengtype.c (adjust_field_rtx_def): Do not handle it.
9153 * gengenrtl.c (type_from_format): Likewise.
9154 (accessor_from_format): Likewise.
9155
9156 2010-05-22 Joseph Myers <joseph@codesourcery.com>
9157
9158 * dbgcnt.c: Include toplev.h instead of errors.h.
9159 * ira-emit.c: Don't include errors.h.
9160 * ira.c: Include toplev.h instead of errors.h.
9161 * lto-compress.c: Include toplev.h instead of errors.h.
9162 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
9163 ira.o, dbgcnt.o): Update dependencies.
9164
9165 2010-05-22 Richard Guenther <rguenther@suse.de>
9166
9167 * gimple.c (gimple_types_compatible_p): Check type qualifications
9168 before merging pointer to complete and pointer to incomplete type.
9169 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
9170 we use our own resolution algorithm. The gold linker plugin
9171 doesn't do the job we want it to do here.
9172
9173 2010-05-22 Anatoly Sokolov <aesok@post.ru>
9174
9175 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9176 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9177 (sparc_mode_dependent_address_p): New function.
9178
9179 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9180
9181 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
9182
9183 * timevar.c: Do not include any core headers.
9184 (timevar_print): De-i18n-ize.
9185 (print_time): Likewise.
9186 * timevar.h (timevar_push, timevar_pop): Make inline functions.
9187
9188 2010-05-21 Joseph Myers <joseph@codesourcery.com>
9189
9190 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
9191 langhooks-def.h.
9192 (diagnostic_initialize): Initialize x_data not last_function.
9193 (diagnostic_report_current_function): Move to tree-diagnostic.c.
9194 (default_diagnostic_starter): Call
9195 diagnostic_report_current_module not
9196 diagnostic_report_current_function.
9197 (diagnostic_report_diagnostic): Initialize x_data not
9198 abstract_origin.
9199 (verbatim): Likewise.
9200 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
9201 x_data.
9202 (struct diagnostic_context): Change last_function to x_data.
9203 (diagnostic_auxiliary_data): Replace with
9204 diagnostic_context_auxiliary_data and
9205 diagnostic_info_auxiliary_data.
9206 (diagnostic_last_function_changed, diagnostic_set_last_function,
9207 diagnostic_report_current_function): Move to tree-diagnostic.h.
9208 (print_declaration, dump_generic_node, print_generic_stmt,
9209 print_generic_stmt_indented, print_generic_expr,
9210 print_generic_decl, debug_c_tree, dump_omp_clauses,
9211 print_call_name, debug_generic_expr, debug_generic_stmt,
9212 debug_tree_chain, default_tree_printer): Move to
9213 tree-pretty-print.h.
9214 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
9215 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
9216 gimple-pretty-print.h.
9217 * pretty-print.c: Don't include tree.h
9218 (pp_base_format): Don't handle %K here.
9219 (pp_base_tree_identifier): Move to tree-pretty-print.c.
9220 * pretty-print.h (text_info): Change abstract_origin to x_data.
9221 (pp_tree_identifier, pp_unsupported_tree,
9222 pp_base_tree_identifier): Move to tree-pretty-print.h.
9223 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
9224 tree-pretty-print.h: New files.
9225 * tree-pretty-print.c: Include tree-pretty-print.h.
9226 (percent_K_format): New. Moved from pretty-print.c.
9227 (pp_base_tree_identifier): Move from pretty-print.c.
9228 * c-objc-common.c: Include tree-pretty-print.h.
9229 (c_tree_printer): Handle %K here.
9230 * langhooks.c: Include tree-diagnostic.h.
9231 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
9232 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
9233 (default_tree_printer): Handle %K using percent_K_format.
9234 (general_init): Use default_tree_diagnostic_starter.
9235 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
9236 (free_lang_data): Use default_tree_diagnostic_starter.
9237 * c-pretty-print.c: Include tree-pretty-print.h.
9238 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9239 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9240 * dwarf2out.c: Include tree-pretty-print.h.
9241 * except.c: Include tree-pretty-print.h.
9242 * gimple-pretty-print.c: Include tree-pretty-print.h and
9243 gimple-pretty-print.h.
9244 * gimplify.c: Include tree-pretty-print.h.
9245 * graphite-poly.c: Include tree-pretty-print.h and
9246 gimple-pretty-print.h.
9247 * ipa-cp.c: Include tree-pretty-print.h.
9248 * ipa-inline.c: Include gimple-pretty-print.h.
9249 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9250 * ipa-pure-const.c: Include gimple-pretty-print.h.
9251 * ipa-struct-reorg.c: Include tree-pretty-print.h and
9252 gimple-pretty-print.h.
9253 * ipa-type-escape.c: Include tree-pretty-print.h.
9254 * print-rtl.c: Include tree-pretty-print.h.
9255 * print-tree.c: Include gimple-pretty-print.h.
9256 * sese.c: Include tree-pretty-print.h.
9257 * tree-affine.c: Include tree-pretty-print.h.
9258 * tree-browser.c: Include tree-pretty-print.h.
9259 * tree-call-cdce.c: Include gimple-pretty-print.h.
9260 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9261 * tree-chrec.c: Include tree-pretty-print.h.
9262 * tree-data-ref.c: Include tree-pretty-print.h and
9263 gimple-pretty-print.h.
9264 * tree-dfa.c: Include tree-pretty-print.h.
9265 * tree-if-conv.c: Include tree-pretty-print.h and
9266 gimple-pretty-print.h.
9267 * tree-inline.c: Include tree-pretty-print.h.
9268 * tree-into-ssa.c: Include tree-pretty-print.h and
9269 gimple-pretty-print.h.
9270 * tree-nrv.c: Include tree-pretty-print.h.
9271 * tree-object-size.c: Include tree-pretty-print.h and
9272 gimple-pretty-print.h.
9273 * tree-outof-ssa.c: Include tree-pretty-print.h and
9274 gimple-pretty-print.h.
9275 * tree-parloops.c: Include tree-pretty-print.h and
9276 gimple-pretty-print.h.
9277 * tree-predcom.c: Include tree-pretty-print.h and
9278 gimple-pretty-print.h.
9279 * tree-scalar-evolution.c: Include tree-pretty-print.h and
9280 gimple-pretty-print.h.
9281 * tree-sra.c: Include tree-pretty-print.h.
9282 * tree-ssa-address.c: Include tree-pretty-print.h.
9283 * tree-ssa-alias.c: Include tree-pretty-print.h.
9284 * tree-ssa-ccp.c: Include tree-pretty-print.h and
9285 gimple-pretty-print.h.
9286 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
9287 * tree-ssa-copy.c: Include tree-pretty-print.h and
9288 gimple-pretty-print.h.
9289 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
9290 * tree-ssa-dce.c: Include tree-pretty-print.h and
9291 gimple-pretty-print.h.
9292 * tree-ssa-dom.c: Include tree-pretty-print.h and
9293 gimple-pretty-print.h.
9294 * tree-ssa-dse.c: Include gimple-pretty-print.h.
9295 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
9296 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
9297 * tree-ssa-live.c: Include tree-pretty-print.h and
9298 gimple-pretty-print.h.
9299 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
9300 gimple-pretty-print.h.
9301 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
9302 gimple-pretty-print.h.
9303 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
9304 gimple-pretty-print.h.
9305 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9306 gimple-pretty-print.h.
9307 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9308 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9309 * tree-ssa-operands.c: Include tree-pretty-print.h and
9310 gimple-pretty-print.h.
9311 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9312 gimple-pretty-print.h.
9313 * tree-ssa-pre.c: Include tree-pretty-print.h and
9314 gimple-pretty-print.h.
9315 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9316 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9317 gimple-pretty-print.h.
9318 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9319 gimple-pretty-print.h.
9320 * tree-ssa-sink.c: Include gimple-pretty-print.h.
9321 * tree-ssa-ter.c: Include tree-pretty-print.h and
9322 gimple-pretty-print.h.
9323 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9324 * tree-ssa.c: Include tree-pretty-print.h and
9325 gimple-pretty-print.h.
9326 * tree-stdarg.c: Include gimple-pretty-print.h.
9327 * tree-switch-conversion.c: Include gimple-pretty-print.h.
9328 * tree-tailcall.c: Include tree-pretty-print.h and
9329 gimple-pretty-print.h.
9330 * tree-vect-data-refs.c: Include tree-pretty-print.h and
9331 gimple-pretty-print.h.
9332 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9333 gimple-pretty-print.h.
9334 * tree-vect-loop.c: Include tree-pretty-print.h and
9335 gimple-pretty-print.h.
9336 * tree-vect-patterns.c: Include gimple-pretty-print.h.
9337 * tree-vect-slp.c: Include tree-pretty-print.h and
9338 gimple-pretty-print.h.
9339 * tree-vect-stmts.c: Include tree-pretty-print.h and
9340 gimple-pretty-print.h.
9341 * tree-vectorizer.c: Include tree-pretty-print.h.
9342 * tree-vrp.c: Include tree-pretty-print.h and
9343 gimple-pretty-print.h.
9344 * value-prof.c: Include tree-pretty-print.h and
9345 gimple-pretty-print.h.
9346 * var-tracking.c: Include tree-pretty-print.h.
9347 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9348 (tree-diagnostic.o): New dependencies.
9349 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9350 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9351 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9352 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9353 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9354 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9355 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9356 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9357 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9358 tree-ssa-address.o, tree-ssa-loop-niter.o,
9359 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9360 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9361 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9362 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9363 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9364 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9365 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9366 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9367 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9368 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9369 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9370 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9371 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9372 tree-switch-conversion.o, var-tracking.o, value-prof.o,
9373 cfgexpand.o, pretty-print.o): Update dependencies.
9374
9375 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
9376
9377 * tree-ssa-structalias.c: Remove tm_p.h from include.
9378
9379 2010-05-21 Jeff Law <law@redhat.com>
9380
9381 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9382
9383 2010-05-21 Jason Merrill <jason@redhat.com>
9384
9385 * tree-eh.c (cleanup_is_dead_in): New.
9386 (lower_try_finally): Don't generate a dead cleanup region.
9387 (lower_cleanup): Likewise.
9388
9389 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9390
9391 PR debug/44223
9392 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9393 unchain each use from the cyclic next_regno_use chain first.
9394
9395 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9396
9397 * real: Do not include gmp.h, mpfr.h, and mpc.h.
9398 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9399 (real_value_negate, real_value_abs): New prototypes.
9400 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9401 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9402 new include file for interface between MPFR and REAL_VALUE_TYPE.
9403 * real.c: Include realmpfr.h.
9404 (real_arithmetic2): Remove legacy function.
9405 (real_value_negate): New.
9406 (real_value_abs): New.
9407 (mfpr_from_real, real_from_mpfr): Move from here...
9408 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9409 * builtins.c: Include realmpfr.h.
9410 * fold-const.c: Include realmpfr.h.
9411 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9412 (fold_negate_const): Likewise.
9413 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9414 * toplev.c: Include realmpfr.h.
9415 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9416 and real_value_negate.
9417 * fixed-value.c (check_real_for_fixed_mode): Likewise.
9418 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9419 (vfp3_const_double_index): Likewise.
9420 (arm_print_operand): Likewise.
9421 * Makefile.in: Update dependencies.
9422
9423 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9424
9425 * config/s390/s390.c (override_options): Increase the default
9426 of max-completely-peel-times.
9427
9428 2010-05-21 Julian Brown <julian@codesourcery.com>
9429 Mark Mitchell <mark@codesourcery.com>
9430
9431 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9432 sibling calls for Thumb-1.
9433 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9434 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9435 Thumb-2.
9436 (*call_insn, *call_value_insn): Don't use for Thumb-2.
9437 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9438 for Thumb-2.
9439 (return): New expander.
9440 (*arm_return): New name for ARM return insn.
9441 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9442
9443 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
9444
9445 * config.gcc (sparc64-*-rtems*): New target.
9446
9447 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9448
9449 * tree.c (build_function_decl_skip_args): Fix grammar.
9450 (build_function_type_list_1): Fix typos, adjust formatting.
9451
9452 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9453
9454 * tree.h: Include real.h and fixed-value.h as basic datatypes.
9455 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9456 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9457 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9458 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9459 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9460 tree-pretty-print.c, tree-loop-distribution.c,
9461 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9462 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9463 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9464 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9465 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9466 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9467 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9468 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9469 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9470 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9471 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9472 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9473 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9474 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9475 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9476 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9477 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9478 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9479 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9480 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9481 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9482 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9483 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9484 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9485 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9486 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9487 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9488 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9489 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9490 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9491 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9492 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9493 config/score/score7.c, config/score/score.c, config/arm/arm.c,
9494 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9495 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9496 config/bfin/bfin.c: Clean up redundant includes.
9497 * Makefile.in: Update accordingly.
9498
9499 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9500
9501 PR middle-end/44204
9502 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9503 statement has no arguments.
9504
9505 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
9506
9507 PR/44139
9508 * varasm.c (emutls_decl): Merge attributes to new decl.
9509
9510 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
9511
9512 PR middle-end/44101
9513 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9514 around the uniquized constructor if its type requires a conversion.
9515
9516 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9517
9518 PR debug/44205
9519 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9520 at -O0 goto_locus of any of the incoming edges differs from
9521 goto_locus of outgoing edge, or gimple_location of any of the
9522 labels differs.
9523
9524 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
9525
9526 * ira.c (ira_non_ordered_class_hard_regs): Define.
9527 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
9528 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
9529 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
9530 cost of unaligned hard regs when allocating multi-reg pseudos.
9531
9532 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
9533
9534 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
9535 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
9536 for TARGET_NO_FLOAT.
9537 * config/mips/mips.c (mips_file_start): Expand conditional expression
9538 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
9539 (mips_override_options): Move -mno-float override -msoft-float and
9540 -mhard-float.
9541 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
9542 Condition(TARGET_SUPPORTS_NO_FLOAT).
9543 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
9544 __mips_no_float here.
9545 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
9546 (TARGET_SUPPORTS_NO_FLOAT): Define.
9547 * config/mips/sdemtk.opt: Delete.
9548
9549 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
9550
9551 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
9552
9553 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
9554
9555 PR target/43733
9556 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
9557 * configure: Regenerate.
9558 * config.in: Regenerate.
9559 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
9560 instead of sahf only for 64bit targets.
9561
9562 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9563
9564 PR debug/44178
9565 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
9566 setup_ref_regs for DEBUG_INSNs.
9567
9568 2010-05-20 Jan Hubicka <jh@suse.cz>
9569
9570 PR middle-end/44197
9571 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
9572
9573 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9574
9575 PR bootstrap/43870
9576 * df-scan.c (df_ref_compare): Stabilize sort.
9577
9578 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9579
9580 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
9581 argument. Don't use DW_OP_piece if offset is non-zero,
9582 put offset into second DW_OP_bit_piece argument.
9583 (dw_sra_loc_expr): Adjust callers. For memory expressions
9584 compute offset.
9585
9586 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
9587
9588 PR target/44202
9589 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9590 settings for 16-bit-constant "addo" alternative.
9591
9592 2010-05-19 James E. Wilson <wilson@codesourcery.com>
9593
9594 * config/mips/mips-dsp.md (add<DSPV:mode>3,
9595 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9596
9597 PR target/43764
9598 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
9599 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9600 Use it.
9601
9602 2010-05-19 Joseph Myers <joseph@codesourcery.com>
9603
9604 * diagnostic.c (FLOAT, FFS): Don't undefine.
9605 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9606 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9607 include ordering.
9608
9609 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
9610
9611 * combine.c (propagate_for_debug): Call make_compound_operation
9612 on the source value.
9613 (try_combine): When implementing a split chosen by find_split_point,
9614 either copy i2src or set it to null. Assert that i2src is not null
9615 before substituting into CALL_INSN_FUNCTION_USAGE.
9616
9617 2010-05-19 Anatoly Sokolov <aesok@post.ru>
9618
9619 * double-int.h (double_int_ior): New function.
9620 * tree.h (build_int_cst_wide_type): Remove.
9621 * tree.c (build_int_cst_wide_type): Remove.
9622 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9623 of build_int_cst_wide_type.
9624 * stor-layout.c (set_sizetype): (Ditto.).
9625 * dojump.c (do_jump): Use build_int_cstu instead of
9626 build_int_cst_wide_type.
9627
9628 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
9629
9630 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9631 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9632 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9633 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9634 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
9635 propagate the 'data' argument to copy_tree_r.
9636 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9637 Propagate 'data' argument to walk_tree.
9638 (copy_if_shared): New function.
9639 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9640 (unmark_visited): New function.
9641 (unshare_body): Call copy_if_shared instead of doing it manually.
9642 (unvisit_body): Call unmark_visited instead of doing it manually.
9643
9644 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
9645
9646 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9647 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
9648 * hooks.c: Likewise.
9649 * target-def.h (TARGET_FOLD_BUILTIN): Define to
9650 hook_tree_tree_int_treep_bool_null.
9651 * target.h (struct gcc_target): Update signature of fold_builtin
9652 field.
9653 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9654 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9655 instead of the call expression.
9656 (fold_builtin_call_array): Pass n and argarray directly.
9657 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
9658 consing a list.
9659 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
9660 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
9661 `i' and use it in place of `arity'.
9662 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
9663 Dereference `args' directly.
9664 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
9665
9666 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9667
9668 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9669 3dnow, sse3, sse2.
9670 (Directives): Document optional dg-require-effective-target
9671 selector.
9672
9673 2010-05-19 Richard Guenther <rguenther@suse.de>
9674
9675 PR lto/44196
9676 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
9677
9678 2010-05-19 Richard Guenther <rguenther@suse.de>
9679
9680 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
9681 * common.opt (fwhopr=): New.
9682 * opts.c (common_handle_option): Handle OPT_fwhopr.
9683 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
9684 * collect2.c (main): Match -fwhopr*.
9685 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
9686 Execute ltrans stage in parallel when jobs is bigger than 1.
9687
9688 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9689
9690 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9691 pentiumpro on Solaris 8/x86 with Sun as.
9692 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
9693 hidden alias bug.
9694 (gcc_cv_as_ix86_quad): Check for .quad directive.
9695 * configure: Regenerate.
9696 * config.in: Regenerate.
9697 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
9698
9699 2010-05-19 Martin Jambor <mjambor@suse.cz>
9700
9701 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
9702 also for indirect edges. Actual printing moved...
9703 (ipa_print_node_jump_functions_for_edge): ...here.
9704 (ipa_compute_jump_functions): Renamed to
9705 ipa_compute_jump_functions_for_edge and made static.
9706 (ipa_compute_jump_functions): New function.
9707 (make_edge_direct_to_target): Check if the number of arguments on
9708 the newly direct edge is the same as the number of parametrs of
9709 the callee.
9710 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
9711 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
9712 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9713 analysis functions unconditionally, call the new
9714 ipa_analyze_params_uses on the node instead of every edge.
9715
9716 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
9717
9718 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
9719 to tree.
9720 (dump_mem_ref): Adopt debug code to handle a tree as step. This
9721 also checks for a constant int vs. non-constant but
9722 loop-invariant steps.
9723 (find_or_create_group): Change the sort algorithm to only consider
9724 steps that are constant ints.
9725 (idx_analyze_ref): Adopt code to handle a tree instead of a
9726 HOST_WIDE_INT for step.
9727 (gather_memory_references_ref): Handle tree instead of int and be
9728 prepared to see a NULL_TREE.
9729 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
9730 prefetches if the step cannot be calculated at compile time.
9731 (issue_prefetch_ref): Issue prefetches for non-constant but
9732 loop-invariant steps.
9733
9734 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9735
9736 Revert:
9737 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9738
9739 * tree.h (build_call_list): Remove.
9740 * tree.c (build_call_list): Remove.
9741
9742 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9743
9744 * tree.h (build_call_list): Remove.
9745 * tree.c (build_call_list): Remove.
9746
9747 2010-05-18 Jan Hubicka <jh@suse.cz>
9748
9749 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
9750
9751 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
9752
9753 PR rtl-optimization/43332
9754 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
9755
9756 2010-05-18 Anatoly Sokolov <aesok@post.ru>
9757
9758 * tree.h (build_int_cstu): Implement as static inline.
9759 * tree.c (build_int_cstu): Remove function.
9760 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
9761 sign extended.
9762
9763 2010-05-18 Richard Guenther <rguenther@suse.de>
9764
9765 PR lto/44143
9766 * lto-wrapper.c (verbose): New variable. Initialize from -v.
9767 (debug): Initialize from -save-temps.
9768 (collect_execute): Print command-line when verbose.
9769 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
9770 for ltrans invocation. Produce -dumpbase flag again.
9771 (process_args): Remove.
9772 (main): Simplify.
9773 * collect2.c (maybe_run_lto_and_relink): Only pass object
9774 files to lto-wrapper.
9775 * gcc.c (LINK_COMMAND_SPEC): Likewise.
9776
9777 2010-05-18 Jan Hubicka <jh@suse.cz>
9778
9779 * opts.c (decode_options): Do not disable whopr at ipa_cp.
9780 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
9781
9782 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
9783
9784 PR lto/44184
9785 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
9786 in a GIMPLE_ASM.
9787 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
9788 in a GIMPLE_ASM.
9789
9790 2010-05-18 Jakub Jelinek <jakub@redhat.com>
9791
9792 PR debug/41371
9793 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
9794 rtx_equal_p inline.
9795
9796 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
9797
9798 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
9799 lto-macho as lto_binary_reader.
9800
9801 * darwin.c (darwin_asm_named_section): Do not add assembler comment
9802 after .section directive; just print it before the directive instead.
9803
9804 2010-05-17 Jan Hubicka <jh@suse.cz>
9805
9806 * cgraph.c (cgraph_create_virtual_clone): Only check
9807 versionable_function_p when not in wpa and checking is enabled.
9808 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
9809 there are no more functions to materialize.
9810
9811 2010-05-17 Jan Hubicka <jh@suse.cz>
9812
9813 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
9814 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
9815 New functions.
9816 (output_cgraph): Call output_cgraph_opt_summary.
9817 (input_cgrpah): Call input_cgraph_opt_summary.
9818 (output_cgraph_opt_summary_p, output_node_opt_summary,
9819 input_node_opt_summary, input_cgraph_opt_section): New functions.
9820 * lto-section-in.c (lto_section_name): Add cgraphopt.
9821 * tree-inline.c (tree_function_versioning): Handle parm_num.
9822 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
9823 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
9824
9825 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
9826
9827 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
9828 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
9829 the insn to prefetch ratio heuristic to loops with known trip count.
9830
9831 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
9832
9833 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
9834 (schedule_prefetches): Do not generate a prefetch if the unroll factor
9835 is far from what is required by the prefetch.
9836
9837 2010-05-17 Jan Hubicka <jh@suse.cz>
9838
9839 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
9840 (ipcp_estimate_growth): Likewise.
9841 (ipcp_const_param_count): Likewise.
9842 (ipcp_insert_stage): Likewise.
9843 * ipa-prop.c (visit_load_for_mod_analysis): New function.
9844 (visit_store_addr_for_mod_analysis): Set used flag.
9845 (ipa_detect_param_modifications): Set used flag for SSE params;
9846 update use of walk_stmt_load_store_addr_ops.
9847 (ipa_print_node_params): Print used flag.
9848 (ipa_write_node_info): Stream used flag.
9849 (ipa_read_node_info): Likewise.
9850 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
9851 (ipa_is_param_used): New function.
9852 (lto_ipa_fixup_call_notes): Remove unused declaration.
9853
9854 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9855
9856 PR target/44074
9857 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
9858 * configure: Regenerate.
9859 * config.in: Regenerate.
9860 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
9861 !HAVE_AS_IX86_REP_LOCK_PREFIX.
9862 Don't emit whitespace.
9863 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
9864 (*rep_movsi): Likewise.
9865 (*rep_movsi_rex64): Likewise.
9866 (*rep_movqi): Likewise.
9867 (*rep_movqi_rex64): Likewise.
9868 (*rep_stosdi_rex64): Likewise.
9869 (*rep_stossi): Likewise.
9870 (*rep_stossi_rex64): Likewise.
9871 (*rep_stosqi): Likewise.
9872 (*rep_stosqi_rex64): Likewise.
9873 (*cmpstrnqi_nz_1): Use {%;} after repz.
9874 (*cmpstrnqi_nz_rex_1): Likewise.
9875 (*cmpstrnqi_1): Likewise.
9876 (*cmpstrnqi_rex_1): Likewise.
9877 (*strlenqi_1): Use {%;} after repnz.
9878 (*strlenqi_rex_1): Likewise.
9879 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
9880 (*sync_compare_and_swap<mode>): Likewise.
9881 (sync_double_compare_and_swap<mode>): Likewise.
9882 (*sync_double_compare_and_swapdi_pic): Likewise.
9883 (sync_old_add<mode>): Likewise.
9884 (sync_add<mode>): Likewise.
9885 (sync_sub<mode>): Likewise.
9886 (sync_<code><mode>): Likewise.
9887
9888 2010-05-17 Martin Jambor <mjambor@suse.cz>
9889
9890 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9891 otr_token and polymorphic.
9892 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9893 (cgraph_clone_edge): Copy the above fields.
9894 * tree.c (get_binfo_at_offset): New function.
9895 * tree.h (get_binfo_at_offset): Declare.
9896 * ipa-prop.h (enum jump_func_type): Added known_type jump function
9897 type, reordered items, updated comments.
9898 (union jump_func_value): Added base_type field, reordered fields.
9899 (enum ipa_lattice_type): Moved down in the file.
9900 (struct ipa_param_descriptor): New field polymorphic.
9901 (ipa_is_param_polymorphic): New function.
9902 * ipa-prop.c: Include gimple.h and gimple-fold.h.
9903 (ipa_print_node_jump_functions): Print known type jump functions.
9904 (compute_complex_pass_through): Renamed to...
9905 (compute_complex_assign_jump_func): this.
9906 (compute_complex_ancestor_jump_func): New function.
9907 (compute_known_type_jump_func): Likewise.
9908 (compute_scalar_jump_functions): Create known type and complex ancestor
9909 jump functions.
9910 (ipa_note_param_call): New parameter polymorphic, set the corresponding
9911 flag in the call note accordingly.
9912 (ipa_analyze_call_uses): Renamed to...
9913 (ipa_analyze_indirect_call_uses): this. New parameter target, define
9914 variable var only in the block where it is used.
9915 (ipa_analyze_virtual_call_uses): New function.
9916 (ipa_analyze_call_uses): Likewise.
9917 (combine_known_type_and_ancestor_jfs): Likewise.
9918 (update_jump_functions_after_inlining): Implemented handling of a
9919 number of new jump function types combination.
9920 (print_edge_addition_message): Removed.
9921 (make_edge_direct_to_target): New function.
9922 (try_make_edge_direct_simple_call): Likewise.
9923 (try_make_edge_direct_virtual_call): Likewise.
9924 (update_call_notes_after_inlining): Renamed to...
9925 (update_indirect_edges_after_inlining): this. Moved edge creation for
9926 indirect calls to try_make_edge_direct_simple_call, also calls
9927 try_make_edge_direct_virtual_call for virtual calls.
9928 (ipa_print_node_params): Changed the header message.
9929 (ipa_write_jump_function): Stream also known type jump functions.
9930 (ipa_read_jump_function): Likewise.
9931 (ipa_write_indirect_edge_info): Stream new fields in
9932 cgraph_indirect_call_info.
9933 (ipa_read_indirect_edge_info): Likewise.
9934 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
9935 GIMPLE_FOLD_H.
9936
9937 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9938
9939 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
9940
9941 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9942
9943 * tree.h (CALL_EXPR_ARGS): Delete.
9944 (call_expr_arglist): Delete.
9945 * tree.c (call_expr_arglist): Delete.
9946 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
9947 targetm.fold_builtin.
9948 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
9949 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
9950 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
9951 arglist parameter. Use CALL_EXPR_ARG.
9952 (picochip_expand_builtin_3op): Likewise.
9953 (picochip_expand_builtin_2opvoid): Likewise.
9954 (picochip_expand_array_get): Likewise.
9955 (picochip_expand_array_put): Likewise.
9956 (picochip_expand_array_testport): Likewise.
9957 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
9958 rather than arglist.
9959 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
9960 CALL_EXPR_ARGS.
9961 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
9962 than TREE_VALUE and TREE_CHAIN.
9963 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9964 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
9965 the arglist.
9966
9967 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9968
9969 PR bootstrap/42347
9970 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
9971 to have no fallthru edge.
9972
9973 PR middle-end/44102
9974 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
9975 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
9976 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
9977 add BARRIER after previous bb if needed.
9978
9979 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9980
9981 * tree.c (build_function_type_list_1): Remove bogus assert condition.
9982
9983 2010-05-17 Alan Modra <amodra@gmail.com>
9984
9985 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
9986 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
9987 with copy_reg rtx param.
9988 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9989 Correct cases where code for ABI_V4 did not initialise the reg
9990 used to access frame. Also leave frame_reg_rtx as sp for large
9991 frames that save no regs.
9992
9993 2010-05-17 Martin Jambor <mjambor@suse.cz>
9994
9995 PR middle-end/44133
9996 * tree-sra.c (create_access_replacement): New parameter rename, mark
9997 the replaement for renaming only when it is true.
9998 (get_access_replacement): Pass true in the rename parameter of
9999 create_access_replacement.
10000 (get_unrenamed_access_replacement): New function.
10001 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
10002 replacement declaration from it.
10003
10004 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
10005
10006 * function.c (try_fit_stack_local, add_frame_space): New static
10007 functions.
10008 (assign_stack_local_1): Use them. Look for opportunities to use
10009 space previously wasted on alignment.
10010 * function.h (struct frame_space): New.
10011 (struct rtl_data): Add FRAME_SPACE_LIST member.
10012 * reload1.c (something_was_spilled): New static variable.
10013 (alter_reg): Set it.
10014 (reload): Test it in addition to testing if the frame size changed.
10015
10016 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
10017
10018 * config/s390/s390.c: Define sane prefetch settings and activate
10019 flag_prefetch_loop_arrays on -O3.
10020 * config/s390/s390.h: Declare that read can use write prefetch.
10021
10022 2010-05-17 Jakub Jelinek <jakub@redhat.com>
10023
10024 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
10025 build.
10026
10027 2010-05-16 Jan Hubicka <jh@suse.cz>
10028
10029 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
10030 function body; do not check stdarg field of struct function.
10031
10032 2010-05-16 Jan Hubicka <jh@suse.cz>
10033
10034 * cgraph.c (dump_cgraph_node): Dump versionable flag.
10035 * cgraph.h (cgraph_local_info): Add versionable flag.
10036 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
10037 (ipcp_versionable_function_p): Use it.
10038 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10039 versionable flag.
10040
10041 2010-05-16 Jan Hubicka <jh@suse.cz>
10042
10043 * cgraph.c (cgraph_clone_node): Take decl argument and insert
10044 clone into hash when it is different from orig.
10045 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
10046 * cgraph.h (cgraph_clone_node): Update prototype.
10047 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
10048 (lto_cgraph_encoder_delete): Delete body map.
10049 (lto_cgraph_encoder_size): Move to header.
10050 (lto_cgraph_encoder_encode_body_p,
10051 lto_set_cgraph_encoder_encode_body): New.
10052 (lto_output_node): Do not take written_decls argument; output clone_of
10053 pointer.
10054 (add_node_to): Add include_body_argument; call
10055 lto_set_cgraph_encoder_encode_body on master of the clone.
10056 (add_references): Update use of add_node_to.
10057 (compute_ltrans_boundary): Likewise.
10058 (output_cgraph): Do not create written_decls bitmap.
10059 (input_node): Take nodes argument; stream in clone_of correctly.
10060 (input_cgraph_1): Update use of input_node.
10061 * lto-streamer-out.c (lto_output): Use encoder info to decide
10062 what bodies to output.
10063 * ipa-inline.c (cgraph_clone_inlined_nodes,
10064 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
10065 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
10066 (lto_cgraph_encoder_size): Define here.
10067 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
10068 Declare.
10069
10070 2010-05-16 Richard Guenther <rguenther@suse.de>
10071
10072 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
10073 -fipa-type-escape.
10074 * ipa-type-escape.c (gate_type_escape_vars): Run when
10075 -fipa-struct-reorg runs.
10076 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
10077 * common.opt (fipa-type-escape): Remove.
10078
10079 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10080
10081 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
10082 (decode_options): Likewise.
10083 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
10084
10085 2010-05-16 Jan Hubicka <jh@suse.cz>
10086
10087 * ipa.c (function_and_variable_visibility): Also bring local all
10088 aliases.
10089
10090 2010-05-16 Richard Guenther <rguenther@suse.de>
10091
10092 * alias.c (nonoverlapping_memrefs_p): Remove use of
10093 IPA type-escape information.
10094
10095 2010-05-16 Joseph Myers <joseph@codesourcery.com>
10096
10097 * c-common.c (c_common_reswords): Add _Static_assert for C.
10098 * c-parser.c (c_token_starts_declaration,
10099 c_parser_next_token_starts_declaration,
10100 c_parser_static_assert_declaration_no_semi,
10101 c_parser_static_assert_declaration): New.
10102 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
10103 Handle static assertions if static_assert_ok.
10104 (c_parser_external_declaration, c_parser_declaration_or_fndef,
10105 c_parser_compound_statement_nostart, c_parser_label,
10106 c_parser_for_statement, c_parser_objc_methodprotolist,
10107 c_parser_omp_for_loop): All callers of
10108 c_parser_declaration_or_fndef changed.
10109 (c_parser_struct_declaration): Handle static assertions.
10110 (c_parser_compound_statement_nostart): Use
10111 c_parser_next_token_starts_declaration and
10112 c_token_starts_declaration to detect start of declarations.
10113 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
10114 Likewise.
10115
10116 2010-05-16 Anatoly Sokolov <aesok@post.ru>
10117
10118 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10119 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10120 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10121 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10122 (mmix_function_outgoing_value): Rename to...
10123 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
10124 (mmix_function_value_regno_p): Make static.
10125 (mmix_libcall_value): New function.
10126 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
10127 mmix_function_value_regno_p): Remove declaration.
10128
10129 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10130
10131 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
10132 BUILT_IN_ALLOCA if stack checking is enabled.
10133
10134 2010-05-16 Richard Guenther <rguenther@suse.de>
10135
10136 * var-tracking.c (vars_copy_1): Inline ...
10137 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
10138 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
10139 (variable_merge_over_cur): Adjust. Merge asserts.
10140 (variable_merge_over_src): Likewise.
10141 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
10142 (variable_post_merge_new_vals): Merge asserts.
10143 (variable_post_merge_perm_vals): Likewise.
10144 (find_mem_expr_in_1pdv): Likewise.
10145 (dataflow_set_different_value): Remove.
10146 (onepart_variable_different_p): Merge asserts.
10147 (variable_different_p): Likewise.
10148 (dataflow_set_different_1): Inline ...
10149 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
10150 (emit_notes_for_differences_1): Merge asserts.
10151
10152 2010-05-16 Richard Guenther <rguenther@suse.de>
10153
10154 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
10155 * optabs.c (libfunc_decl_hash): Likewise.
10156 * varasm.c (emutls_decl): Likewise.
10157
10158 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
10159
10160 * c-decl.c: Don't include gimple.h.
10161 (merge_decls): Do not copy gimple_body.
10162
10163 2010-05-15 Jason Merrill <jason@redhat.com>
10164
10165 * c.opt: Add -fnothrow-opt.
10166
10167 2010-05-15 Jan Hubicka <jh@suse.cz>
10168
10169 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
10170 analyzed.
10171 * passes.c (ipa_write_summaries): Write all analyzed nodes.
10172
10173 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
10174
10175 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
10176 * Makefile.in: Add it.
10177 Fix all other Makefile dependencies for changes below.
10178 * tree.h: Include it instead of defining VEC primitives here.
10179 * gimple.h: Likewise.
10180 * rtl.h: Likewise.
10181 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
10182 * except.h: Include vecir.h, break dependence on tree.h.
10183
10184 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
10185 Move from here...
10186 * tree-iterator.c: ...to here.
10187 * tree-iterator.h: Fix file introduction comment. Add extern markers.
10188
10189 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
10190 tm_p.h.
10191 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
10192 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
10193 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
10194 tree-mudflap.h, and target.h.
10195 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
10196 predict.h, tree-inline.h, gimple.h, and langhooks.h.
10197 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
10198 Add FIXME for why gimple.h is still included (should be unnecessary
10199 since GCC 4.5 gimplification unit-at-a-time).
10200 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
10201 * c-pragma.c: Add FIXME for why function.h needs to be included just
10202 for cfun, at front-end level.
10203 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
10204 Do not include ggc.h, but include vecprim.h for VEC(char).
10205 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
10206 Explain why target.h is included.
10207 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
10208 Explain why gimple.h is included.
10209 * c-ppoutput.c: Do not include tm.h.
10210 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
10211 * c-parses.c: Explain why rtl.h is included, and that this (and only
10212 this) is also why tm.h must be included.
10213 Do not include except.h.
10214 * c-lang.c: Do not include ggc.h.
10215
10216 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
10217
10218 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
10219
10220 2010-05-15 Joseph Myers <joseph@codesourcery.com>
10221
10222 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
10223 unions by default if those structs and unions have no tags. Do
10224 not condition anonymous struct and unions handling on flag_iso.
10225 Allow anonymous structs and unions for C1X.
10226 (finish_struct): Do not diagnose lack of named fields when
10227 anonymous structs and unions present for C1X. Accept flexible
10228 array members in structure with anonymous structs or unions but no
10229 directly named fields.
10230 * doc/extend.texi (Unnamed Fields): Update.
10231
10232 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
10233
10234 * gimple.h (compare_field_offset): Rename into...
10235 (gimple_compare_field_offset): ...this.
10236 * gimple.c (compare_field_offset): Rename into...
10237 (gimple_compare_field_offset): ...this. Compare the full access if
10238 the offset is self-referential.
10239 (gimple_types_compatible_p): Adjust for above renaming.
10240 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
10241 DECL_NONADDRESSABLE_P flag of fields before merging them.
10242
10243 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
10244
10245 * tree.h (ctor_to_list): Delete.
10246 * tree.c (ctor_to_list): Delete.
10247
10248 2010-05-15 Jan Hubicka <jh@suse.cz>
10249
10250 * ipa-reference.c: Include toplev.h
10251 (is_proper_for_analysis): Only add to all_module_statics
10252 if it is allocated.
10253 (write_node_summary_p, stream_out_bitmap,
10254 ipa_reference_write_optimization_summary,
10255 ipa_reference_read_optimization_summary): New.
10256 (struct ipa_opt_pass_d pass_ipa_reference): Add
10257 optimization summary streaming.
10258 * lto-cgraph.c (referenced_from_this_partition_p,
10259 reachable_from_this_partition_p): New functions.
10260 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10261 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
10262 * opts.c (decode_options): Enable ipa_reference.
10263 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
10264 * lto-streamer.h (referenced_from_this_partition_p,
10265 reachable_from_this_partition_p): Declare.
10266
10267 2010-05-15 Richard Guenther <rguenther@suse.de>
10268
10269 PR tree-optimization/44038
10270 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
10271 taking the address of a V_C_E of a constant.
10272
10273 2010-05-14 Jan Hubicka <jh@suse.cz>
10274
10275 * tree.h (memory_identifier_string): Remove.
10276 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
10277 (ipa_reference_global_vars_info_d): Remove statics_not_read and
10278 statics_not_written.
10279 (ipa_reference_optimization_summary_d): New structure.
10280 (ipa_reference_optimization_summary_t): New type and vector.
10281 (ipa_reference_vars_info_d): Embedd structures instead of using
10282 pointers.
10283 (reference_vars_to_consider): Remove out of GGC space.
10284 (module_statics_escape): Remove.
10285 (global_info_obstack): Rename to ...
10286 (optimization_summary_obstack): ... this one.
10287 (initialization_status_t): Remove.
10288 (memory_identifier_string): Remove.
10289 (get_reference_vars_info): Fix indenting.
10290 (set_reference_vars_info): Likewise.
10291 (get_reference_optimization_summary): New.
10292 (set_reference_optimization_summary): New.
10293 (get_global_reference_vars_info): Remove.
10294 (ipa_reference_get_read_global): Remove.
10295 (ipa_reference_get_written_global): Remove.
10296 (ipa_reference_get_not_read_global): Update.
10297 (ipa_reference_get_not_written_global): Update.
10298 (is_proper_for_analysis): Outlaw addressable.
10299 (propagate_bits): Update for new datastructures.
10300 (analyze_variable): Remove.
10301 (init_function_info): Update for new datastructures.
10302 (clean_function_local_data): Remove.
10303 (clean_function): Remove.
10304 (copy_global_bitmap): Use optimizations_summary_obstack.
10305 (duplicate_node_data): Duplicate optimization summary only.
10306 (remove_node_data): Remove optimization summary only.
10307 (generate_summary): Do not analyze variables; do not compute
10308 module_statics_escape; do not prune solutions by it.
10309 (read_write_all_from_decl): Fix typos in comments.
10310 (propagate): Doscover readonly and nonaddressable first;
10311 update for new datastructures; share global bitmaps.
10312 * ipa-reference.h (ipa_reference_get_read_global,
10313 ipa_reference_get_written_global): Remove.
10314 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10315 * Makefile.in: Remove ipa-refereference from GT files.
10316
10317 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10318
10319 PR debug/44112
10320 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10321 for all SYMBOL_REF_DECLs.
10322
10323 2010-05-14 Jan Hubicka <jh@suse.cz>
10324
10325 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10326 (varpool_all_refs_explicit_p): New inline function.
10327 * ipa-reference.c: Update comment.
10328 (module_statics_written): Remove.
10329 (get_static_decl): Remove.
10330 (ipa_init): Do not initialize module_statics_written.
10331 (analyze_function): Likewise.
10332 (generate_summary): Likewise; do not compute module_statics_readonly
10333 and do not update variable flags.
10334 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10335 * ipa.c: Inlucde flags.h
10336 (cgraph_local_node_p): New.
10337 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10338 promote functions to local.
10339 (ipa_discover_readonly_nonaddressable_vars): New function.
10340 (function_and_variable_visibility): Use cgraph_local_node_p.
10341 * varpool.c (varpool_finalize_decl): Set force_output for
10342 DECL_PRESERVE_P vars.
10343
10344 2010-05-14 Jan Hubicka <jh@suse.cz>
10345
10346 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10347
10348 2010-05-14 Richard Guenther <rguenther@suse.de>
10349
10350 PR tree-optimization/44119
10351 * tree-ssa-pre.c (eliminate): Properly mark replacement of
10352 a PHI node necessary.
10353
10354 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
10355
10356 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10357
10358 2010-05-14 Jason Merrill <jason@redhat.com>
10359
10360 PR c++/44127
10361 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10362 (gimple_call_set_nothrow): New.
10363 * gimple.c (gimple_build_call_from_tree): Call it.
10364 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10365
10366 PR c++/44127
10367 * gimplify.c (gimplify_seq_add_stmt): No longer static.
10368 * gimple.h: Declare it.
10369 * gimple.c (gimple_build_eh_filter): No ops.
10370
10371 2010-05-14 Jan Hubicka <jh@suse.cz>
10372
10373 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10374 nodes already in queue.
10375 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10376 re-enqueueing node.
10377
10378 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10379
10380 PR debug/44136
10381 * cfgexpand.c (expand_debug_expr): If non-memory op0
10382 has BLKmode, return NULL.
10383
10384 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
10385
10386 * config.gcc: Add support for --with-cpu option for bdver1.
10387 * config/i386/i386.h (TARGET_BDVER1): New macro.
10388 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10389 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10390 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10391 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10392 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10393 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10394 (processor_type): Add PROCESSOR_BDVER1.
10395 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10396 processor_type in config/i386/i386.h.
10397 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10398 movaps <reg, reg> instead of movapd <reg, reg> when replacing
10399 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10400 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10401 to emit packed xor instead of packed double/packed integer
10402 xor for SSE and AVX when moving a zero value.
10403 * config/i386/sse.md: Add check for
10404 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10405 movapd/movdqa for SSE and AVX.
10406 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10407 single logical operations i.e and, or and xor instead of packed double
10408 logical operations for SSE and AVX.
10409 * config/i386/i386-c.c (ix86_target_macros_internal):
10410 Add PROCESSOR_BDVER1.
10411 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10412 (has_fma4, has_xop): New.
10413 * config/i386/i386.c (bdver1_cost): New variable.
10414 (m_BDVER1): New macro.
10415 (m_AMD_MULTIPLE): Add m_BDVER1.
10416 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10417 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10418 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10419 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10420 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10421 x86_tune_sse_partial_reg_dependency,
10422 x86_tune_sse_unaligned_load_optimal,
10423 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10424 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10425 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10426 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10427 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10428 Enable/disable for bdver1.
10429 (processor_target_table): Add bdver1_cost.
10430 (cpu_names): Add bdver1.
10431 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10432 processor_alias_table.
10433 (ix86_expand_vector_move_misalign): Change.
10434 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10435 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10436 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10437 of movupd/movdqu for SSE and AVX.
10438 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10439 (ix86_tune_adjust_cost): Add code for bdver1.
10440 (standard_sse_constant_opcode): Add check for
10441 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10442 of packed double xor for SSE and AVX.
10443
10444 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
10445
10446 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10447 result to unsigned.
10448
10449 2010-05-14 Tristan Gingold <gingold@adacore.com>
10450
10451 * toplev.c (default_debug_hooks): Remove this variable.
10452 (process_options): Remove assignments to default_debug_hooks.
10453
10454 2010-05-14 Martin Jambor <mjambor@suse.cz>
10455
10456 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10457 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10458 * langhooks.h (struct lang_hooks_for_decls): Removed field
10459 fold_obj_type_ref.
10460 * tree.c (free_lang_data): Remove assignment to
10461 lang_hooks.fold_obj_type_ref.
10462 * tree.def (OBJ_TYPE_REF): Update comment.
10463
10464 2010-05-14 Richard Guenther <rguenther@suse.de>
10465
10466 PR tree-optimization/44124
10467 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10468
10469 2010-05-14 Alan Modra <amodra@gmail.com>
10470
10471 PR target/44075
10472 * config/rs6000/rs6000.c (struct machine_function): Reorder
10473 fields for better packing. Add lr_save_state.
10474 (rs6000_ra_ever_killed): Return lr_save_state if set.
10475 (rs6000_emit_eh_reg_restore): Set lr_save_state.
10476
10477 2010-05-13 Jan Hubicka <jh@suse.cz>
10478
10479 * varpool.c (decide_is_variable_needed): Drop code checking
10480 TREE_SYMBOL_REFERENCED.
10481
10482 2010-05-13 Jan Hubicka <jh@suse.cz>
10483
10484 * final.c (output_addr_const): Do not call mark_decl_referenced.
10485 * cgraphunit.c (process_function_and_variable_attributes): Use
10486 mark_needed_node dirrectly.
10487 (assemble_thunk): Do not call mark_decl_referenced.
10488
10489 2010-05-13 Anatoly Sokolov <aesok@post.ru>
10490
10491 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10492
10493 2010-05-13 Jeff Law <law@redhat.com>
10494
10495 * ira-conflicts.c (print_allocno_conflicts): New function broken out
10496 from...
10497 (print_conflicts): Call print_allocno_conflicts.
10498
10499 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10500
10501 PR debug/44104
10502 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10503 if it is NULL.
10504
10505 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
10506
10507 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10508 t-mingw-w64 or t-mingw-w32 for multilib configuration.
10509 * config/i386/t-mingw-w32: New.
10510 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10511
10512 2010-05-13 Martin Jambor <mjambor@suse.cz>
10513
10514 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10515 gimple-fold.c).
10516 * gimple-fold.c (get_base_binfo_for_type): New function.
10517 (gimple_get_relevant_ref_binfo): Likewise.
10518 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10519 (gimple_fold_obj_type_ref): Likewise.
10520 (fold_gimple_call): Simplify condition for folding virtual calls
10521 and call gimple_fold_obj_type_ref.
10522 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
10523 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10524
10525 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
10526
10527 * config/rs6000/rs6000-protos.h
10528 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
10529 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
10530 (rs6000_debug_mode_dependent_address)
10531 (rs6000_mode_dependent_address_ptr): Likewise.
10532
10533 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10534
10535 PR debug/43983
10536 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
10537 by SRA.
10538 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
10539 * tree-sra.c (create_access_replacement): Call unshare_expr before
10540 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
10541 * dwarf2out.c: Include tree-flow.h.
10542 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
10543 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10544 Handle DW_OP_bit_piece.
10545 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
10546 construct_piece_list, adjust_piece_list): New functions.
10547 (add_var_loc_to_decl): Handle SRA optimized variables.
10548 Adjust for var_loc_note to loc field renaming.
10549 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
10550 in VAR_LOCATION note.
10551 (new_loc_descr_op_bit_piece): New function.
10552 (dw_sra_loc_expr): New function.
10553 (dw_loc_list): Use it. Don't handle the last range after the
10554 loop, handle it inside of the loop. Adjust for var_loc_note
10555 to loc field renaming.
10556 (add_location_or_const_value_attribute): Only special case
10557 single entry loc lists if loc is NOTE_P. Adjust for
10558 var_loc_note to loc field renaming.
10559 (dwarf2out_var_location): Don't set newloc->var_loc_note
10560 and newloc->next here.
10561
10562 2010-05-12 Jan Hubicka <jh@suse.cz>
10563
10564 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
10565 flag.
10566 * cgraph.h (cgraph_only_called_directly_p,
10567 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
10568 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
10569 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
10570 (assemble
10571 * ipa.c (cgraph_remove_unreachable_nodes): Use
10572 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
10573 flags.
10574 * tree-inline.c (copy_bb): Check address_taken flag.
10575 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
10576 externally_visible flag.
10577
10578 2010-05-12 Jason Merrill <jason@redhat.com>
10579
10580 PR bootstrap/44048
10581 PR target/44099
10582 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
10583 * sdbout.c (plain_type_1): Likewise.
10584 * dwarf2out.c (is_base_type): Likewise.
10585 (gen_type_die_with_usage): Likewise. Generate
10586 DW_TAG_unspecified_type for any LANG_TYPE.
10587
10588 2010-05-12 Jan Hubicka <jh@suse.cz>
10589
10590 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10591 indrect edges too.
10592 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10593 (cgraph_clone_edge): Update.
10594 (cgraph_node_remove_callees): Remove indirect calls too.
10595 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10596 (cgraph_create_indirect_edge): Update prototype.
10597 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10598 is_proper_for_analysis.
10599 (add_new_function, visited_nodes, function_insertion_hook_holder,
10600 get_local_reference_vars_info, mark_address_taken, mark_address,
10601 mark_load, mark_store, check_asm_memory_clobber, check_call,
10602 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10603 (ipa_init): Do not initialize visited_nodes;
10604 function_insertion_hook_holder.
10605 (analyze_variable): Rewrite.
10606 (analyze_function): Rewrite.
10607 (copy_local_bitmap): Remove.
10608 (duplicate_node_dat): Do not duplicate local info.
10609 (generate_summary): Simplify to only walk cgraph.
10610 (write_node_summary_p, ipa_reference_write_summary,
10611 ipa_reference_read_summary): Remove.
10612 (propagate): Do not remove function insertion;
10613 generate summary.
10614 (pass_ipa_reference): NULLify summary handling fields.
10615 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10616 (input_edge): Input ecf_flags.
10617 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10618 (update_indirect_edges_after_inlining): Ignore edges with unknown
10619 param.
10620
10621 2010-05-12 Sriraman Tallam <tmsriram@google.com>
10622
10623 * implicit-zee.c: New file.
10624 * tree-pass.h (pass_implicit_zee): Declare.
10625 * passes.c (init_optimization_passes): Add zee pass.
10626 * common.opt (fzee): New flag.
10627 * timevar.def (TV_ZEE): Define.
10628 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10629 and beyond.
10630 * Makefile.in (implicit-zee.o): Add new build file.
10631
10632 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10633 Nathan Froyd <froydnj@codesourcery.com>
10634
10635 * c-common.c (sync_resolve_params): Remove write-only variable.
10636
10637 2010-05-12 Anatoly Sokolov <aesok@post.ru>
10638
10639 * target.h (struct gcc_target): Add mode_dependent_address_p field.
10640 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10641 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10642 * targhooks.c (default_mode_dependent_address_p): New function.
10643 * targhooks.h (default_mode_dependent_address_p): Declare function.
10644 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10645 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10646 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10647 target hook. Change return type to bool.
10648 * recog.h (mode_dependent_address_p): Change return type to bool.
10649
10650 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10651 Nathan Froyd <froydnj@codesourcery.com>
10652
10653 * tree-mudflap.c (build_function_type_0, build_function_type_1,
10654 build_function_type_2, build_function_type_3): Remove.
10655 (mudflap_init): Use build_function_type_list.
10656
10657 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10658 Nathan Froyd <froydnj@codesourcery.com>
10659
10660 * coverage.c (build_fn_info_value): Call build_constructor instead of
10661 build_constructor_from_list.
10662 (build_ctr_info_value): Likewise.
10663 (build_gcov_info): Likewise.
10664
10665 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
10666
10667 * tree.c (build_constructor): Compute TREE_CONSTANT for the
10668 resultant constructor.
10669 (build_constructor_single): Don't set TREE_CONSTANT.
10670 (build_constructor_from_list): Don't compute TREE_CONSTANT.
10671
10672 2010-05-12 Jan Hubicka <jh@suse.cz>
10673
10674 * cgraph.h (struct varpool_node): Add aux.
10675 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
10676 * varpool.c (varpool_remove_node): Do not remove initializer.
10677 (varpool_reset_queue): Export.
10678 (varpool_finalize_decl): Volatile vars are forced to be output.
10679 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
10680 replaced decl.
10681 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
10682 process_references, varpool_can_remove_if_no_refs): New functions.
10683 (cgraph_remove_unreachable_nodes): Handle variables too.
10684
10685 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
10686
10687 PR target/44088
10688 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
10689
10690 2010-05-12 Jakub Jelinek <jakub@redhat.com>
10691
10692 PR middle-end/44085
10693 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
10694 change value of ORT_TASK.
10695 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
10696 (omp_notice_threadprivate_variable): New function.
10697 (omp_notice_variable): Call it for threadprivate variables.
10698 If enclosing ctx is a task, print enclosing task rather than
10699 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
10700 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
10701 if task has untied clause.
10702
10703 PR debug/42278
10704 * dwarf2out.c (base_type_die): Don't add name attribute here.
10705 (modified_type_die): Instead of sizetype use
10706 its underlying original type. If a DW_TAG_base_type doesn't
10707 have name added, add __unknown__.
10708 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
10709 always call force_type_die instead.
10710
10711 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
10712
10713 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
10714 for __stack_chk_guard.
10715
10716 2010-05-11 Jakub Jelinek <jakub@redhat.com>
10717
10718 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
10719 don't call start_source_file debug hook here...
10720 (finish_options): ... but here, after outputting predefined and
10721 command line defines and undefs.
10722
10723 PR middle-end/44071
10724 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
10725 no fallthru edge.
10726 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
10727 optimizing away empty bb with no successors, move over its
10728 footer chain to fallthru predecessor.
10729 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
10730 (rtl_split_edge): For asm goto call patch_jump_insn even if
10731 splitting fallthru edge.
10732
10733 PR c++/44059
10734 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
10735 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
10736 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10737 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
10738 on DW.ref.* decls.
10739
10740 PR c++/44062
10741 * c-parser.c (c_parser_expression): Mark LHS of a comma
10742 expression as read if it is a decl, handled component or
10743 COMPOUND_EXPR with that on the RHS.
10744 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
10745 if it is a decl or handled component.
10746
10747 2010-05-11 Jan Hubicka <jh@suse.cz>
10748
10749 * lto-symtab.c (lto_symtab_free): New function.
10750 * lto-streamer.h (lto_symtab_free): Declare.
10751
10752 2010-05-11 Jan Hubicka <jh@suse.cz>
10753
10754 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
10755 that if function is needed it is reachable.
10756 (lto_output_node): See if it the function is reachable or referenced.
10757 (output_cgraph): Update call of lto_output_node.
10758 * lto-streamer.h (reachable_from_other_partition_p): Declare.
10759
10760 2010-05-11 Jan Hubicka <jh@suse.cz>
10761
10762 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
10763 Mark as used.
10764
10765 2010-05-11 Jan Hubicka <jh@suse.cz>
10766
10767 PR tree-optimize/44063
10768 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
10769 queue.
10770 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
10771 limits.
10772 (estimate_function_body_sizes): Compute sizes even when disregarding.
10773
10774 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
10775
10776 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
10777
10778 2010-05-11 Jan Hubicka <jh@suse.cz>
10779
10780 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
10781 into every boundary.
10782
10783 2010-05-11 Jan Hubicka <jh@suse.cz>
10784
10785 * matrix-reorg.c (matrix_reorg): Rebuild edges.
10786
10787 2010-05-11 Jan Hubicka <jh@suse.cz>
10788
10789 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
10790 lto_streamer_cache_delete): Put nodes into heap.
10791 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
10792 heap.
10793
10794 2010-05-11 Jan Hubicka <jh@suse.cz>
10795
10796 * cgraphbuild.c (cgraph_rebuild_references): New.
10797 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
10798 out extern inlines.
10799 * cgraph.h (cgraph_rebuild_references): Declare.
10800 * tree-inline.c (tree_function_versioning): Use it.
10801 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
10802
10803 2010-05-11 Jan Hubicka <jh@suse.cz>
10804
10805 * cgraph.c: Include ipa-utils.h
10806 (cgraph_create_virtual_clone): Update references.
10807 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
10808
10809 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
10810
10811 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
10812 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
10813 cache size.
10814
10815 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
10816
10817 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
10818
10819 2010-05-11 Jakub Jelinek <jakub@redhat.com>
10820
10821 * gcc.c (execute): For -### don't quote arguments that
10822 contain just alphanumerics and _/-. characters.
10823 * doc/invoke.texi: Document that change for -###.
10824
10825 PR debug/44023
10826 * df-problems.c (struct dead_debug): Add to_rescan field.
10827 (dead_debug_init): Clear to_rescan field.
10828 (dead_debug_finish): Rescan all debug insns in to_rescan
10829 bitmap and free the bitmap.
10830 (dead_debug_insert_before): Instead of rescanning debug insns
10831 immediately queue their rescanning until dead_debug_finish.
10832 (df_note_bb_compute): After dead_debug_add do continue instead
10833 of break.
10834
10835 2010-05-10 Jakub Jelinek <jakub@redhat.com>
10836
10837 PR debug/44028
10838 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
10839 clear also INSN_REG_USE_LIST.
10840
10841 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10842
10843 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
10844
10845 2010-05-10 Jan Hubicka <jh@suse.cz>
10846
10847 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
10848 commited change.
10849
10850 2010-05-10 Jan Hubicka <jh@suse.cz>
10851
10852 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
10853 Allocate encoders.
10854 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
10855 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
10856 (lto_streamer_cache_create): Init alloc pool.
10857 (lto_streamer_cache_delete): Free alloc pool.
10858 * lto-streamer.h: Include alloc pool.
10859 (lto_streamer_cache_d): Use alloc pool.
10860 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
10861
10862 2010-05-10 Jan Hubicka <jh@suse.cz>
10863
10864 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
10865 * cgraphbuild.c: Include except.h
10866 (record_type_list, record_eh_tables): New function.
10867 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
10868
10869 2010-05-10 Jan Hubicka <jh@suse.cz>
10870
10871 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
10872 __frame_dummy_init_array_entry, force_to_data): Attribute as used
10873 rather than unused.
10874
10875 2010-05-10 Michael Matz <matz@suse.de>
10876
10877 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
10878 (can_reassociate_p): Use FLOAT_TYPE_P.
10879 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
10880 (vect_force_simple_reduction): ... this.
10881 * tree-parloops.c (gather_scalar_reductions): Use
10882 vect_force_simple_reduction.
10883 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
10884 vect_is_simple_reduction, add modify argument, if true rewrite
10885 "a-b" into "a+(-b)".
10886 (vect_is_simple_reduction, vect_force_simple_reduction): New
10887 functions.
10888 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10889
10890 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
10891 Vladimir Makarov <vmakarov@redhat.com>
10892
10893 PR rtl-optimization/44012
10894 * ira-build.c (remove_unnecessary_allocnos): Nullify
10895 regno_allocno_map of the removed allocno.
10896
10897 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10898
10899 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10900 to /dev/null.
10901 * configure: Regenerate.
10902
10903 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10904
10905 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10906 unused.
10907 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10908 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10909 support in Sun ld.
10910 * configure: Regenerate.
10911
10912 2010-05-10 Richard Guenther <rguenther@suse.de>
10913
10914 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10915 marked if the entry identifier is marked.
10916
10917 2010-05-10 Richard Guenther <rguenther@suse.de>
10918
10919 * c-common.c (struct c_common_attributes): Add fnspec attribute.
10920 (handle_fnspec_attribute): New function.
10921 * gimple.h (gimple_call_return_flags): Declare.
10922 (gimple_call_arg_flags): Likewise.
10923 * gimple.c (gimple_call_arg_flags): New function.
10924 (gimple_call_return_flags): Likewise.
10925 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10926 New argument flags.
10927 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10928 return value flags.
10929 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
10930 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
10931 main work to ...
10932 (make_heapvar_for): ... this new function.
10933 (handle_rhs_call): Handle fnspec attribute argument specifiers.
10934 (handle_lhs_call): Likewise.
10935 (find_func_aliases): Adjust.
10936
10937 2010-05-10 Richard Guenther <rguenther@suse.de>
10938
10939 PR tree-optimization/44050
10940 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
10941
10942 2010-05-10 Wei Guozhi <carrot@google.com>
10943
10944 PR target/42879
10945 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
10946
10947 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10948
10949 PR c/10676
10950 * c-typeck.c (lookup_field): Take a type directly. Update
10951 recursive calls.
10952 (build_component_ref): Update call to lookup_field.
10953 (set_init_label): Use lookup_field to find initialized field.
10954 Handle returned list of fields like a sequence of designators.
10955
10956 2010-05-09 Richard Guenther <rguenther@suse.de>
10957
10958 PR middle-end/44024
10959 * fold-const.c (tree_single_nonzero_warnv_p): Properly
10960 handle &FUNCTION_DECL.
10961
10962 2010-05-09 Joseph Myers <joseph@codesourcery.com>
10963
10964 PR c/4784
10965 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
10966 structures and unions recursively.
10967 (detect_field_duplicates): Move duplicate detection with a hash to
10968 detect_field_duplicates_hash. Always use a hash if anonymous
10969 structures or unions are present.
10970 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
10971 give errors.
10972
10973 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
10974
10975 PR target/44046
10976 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
10977 detect Atom, Core 2 and Core i7.
10978
10979 2010-05-09 Richard Guenther <rguenther@suse.de>
10980
10981 * gcc.c (store_arg): Handle temporary file deletion for
10982 joined arguments.
10983
10984 2010-05-09 Richard Guenther <rguenther@suse.de>
10985
10986 PR middle-end/44043
10987 * ipa-inline.c (estimate_function_body_sizes): Return after
10988 disregarding inline limits.
10989
10990 2010-05-09 Richard Guenther <rguenther@suse.de>
10991
10992 * gcc.c (store_arg): Revert last change.
10993
10994 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
10995
10996 PR middle-end/28685
10997 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10998 (optimize_ops_list): Call it.
10999
11000 2010-05-08 Richard Guenther <rguenther@suse.de>
11001
11002 PR tree-optimization/44030
11003 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
11004 NECESSARY flag if we propagate from a inserted expression.
11005
11006 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
11007
11008 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
11009 domain types as equal if they are both PLACEHOLDER_EXPRs.
11010
11011 2010-05-08 Richard Guenther <rguenther@suse.de>
11012
11013 * lto-wrapper.c (run_gcc): Remove linker output from
11014 command line for LTRANS invocation.
11015
11016 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11017
11018 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11019 lto-macho as lto_binary_reader.
11020 * target.h (struct gcc_target): New hooks lto_start and lto_end.
11021 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
11022 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
11023 in lto_start and lto_end calls.
11024 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
11025 magic numbers.
11026 (scan_prog_file): Update is_elf_or_coff call.
11027 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
11028
11029 * collect2.c (main): Fix enum comparison.
11030
11031 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
11032 Add prototypes.
11033 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
11034 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
11035 and TARGET_ASM_LTO_END.
11036 * darwin.c: Include obstack.h and lto-streamer.h.
11037 (lto_section_names_offset, lto_section_names_obstack,
11038 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
11039 global variables.
11040 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
11041 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
11042 to a temporary file.
11043 (darwin_asm_lto_end): New function. Restore asm_out_file.
11044 (darwin_asm_named_section): For LTO sections, replace the name with
11045 the offset of the section name in a string table, and build this
11046 table.
11047 (darwin_file_start): Initialize global vars for LTO support.
11048 (darwin_file_end): If output to asm_out_file was redirected, append it
11049 to the proper asm_out_file here. Add the section names section.
11050
11051 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11052
11053 * c-pragma.c (pending_weak_d, pending_weak): New.
11054 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
11055 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
11056 handle_pragma_weak): Update the uses of pending_weaks.
11057
11058 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11059
11060 PR documentation/44016
11061 * doc/standards.texi (Standards): Link to unversioned
11062 cxx0x_status.html page.
11063
11064 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
11065
11066 PR target/43708
11067 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
11068 in addition to TREE_USED, to avoid "set but unused" warnings.
11069
11070 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11071
11072 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
11073 (is_loop_prefetching_profitable): Do not insert prefetches
11074 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
11075 times the prefetch ahead distance.
11076
11077 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11078
11079 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
11080 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
11081 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
11082 the unroll_factor.
11083
11084 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11085
11086 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
11087 a diagnostic info when the insn-to-mem ratio is too small.
11088
11089 2010-05-07 Richard Guenther <rguenther@suse.de>
11090
11091 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
11092 the linker plugin.
11093 (store_arg): Queue temp_filename for deletion instead of
11094 the whole argument.
11095
11096 2010-05-07 Richard Guenther <rguenther@suse.de>
11097
11098 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
11099 (run_gcc): Handle LTRANS phase invocation.
11100 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
11101
11102 2010-05-07 Jakub Jelinek <jakub@redhat.com>
11103
11104 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
11105 this is also meaningful on PARM_DECLs and RESULT_DECLs.
11106
11107 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11108
11109 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
11110
11111 2010-05-07 Richard Guenther <rguenther@suse.de>
11112
11113 PR tree-optimization/44020
11114 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
11115 code when PRE is not yet initialized.
11116
11117 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11118
11119 * config/mips/dbxmdebug.h: Remove.
11120 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
11121
11122 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
11123
11124 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
11125 with null pointer and also warn about ordered comparison of zero with
11126 pointer if -Wextra.
11127
11128 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11129
11130 * graphite-blocking.c
11131 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
11132 * graphite-clast-to-gimple.c
11133 (clast_to_gcc_expression): Same.
11134 (precision_for_value): Same.
11135 (precision_for_interval): Same.
11136 (gcc_type_for_interval): Same.
11137 (graphite_create_new_guard): Same.
11138 (compute_bounds_for_level): Same.
11139 (graphite_create_new_loop_guard): Same.
11140 * graphite-interchange.c
11141 (build_linearized_memory_access): Same.
11142 (pdr_stride_in_loop): Same.
11143 (memory_strides_in_loop_1): Same.
11144 (memory_strides_in_loop): Same.
11145 (extend_scattering): Same.
11146 (psct_scattering_dim_for_loop_depth): Same.
11147 (pbb_number_of_iterations): Same.
11148 * graphite-poly.h
11149 (debug_iteration_domains): Same.
11150 * graphite-ppl.c
11151 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11152 (ppl_set_inhomogeneous_gmp): Same.
11153 (ppl_strip_loop): Same.
11154 (ppl_lexico_compare_linear_expressions): Same.
11155 (ppl_read_polyhedron_matrix): Same.
11156 (ppl_max_for_le_pointset): Same.
11157 * graphite-ppl.h
11158 (ppl_read_polyhedron_matrix): Same.
11159 (tree_int_to_gmp): Same.
11160 (gmp_cst_to_tree): Same.
11161 (ppl_set_inhomogeneous): Same.
11162 (ppl_set_inhomogeneous_tree): Same.
11163 (ppl_set_coef): Same.
11164 (ppl_set_coef_tree): Same.
11165 * graphite-sese-to-poly.c
11166 (build_pbb_scattering_polyhedrons): Same.
11167 (build_scop_scattering): Same.
11168 (scan_tree_for_params_right_scev): Same.
11169 (scan_tree_for_params): Same.
11170 (find_params_in_bb): Same.
11171 (find_scop_parameters): Same.
11172 (add_upper_bounds_from_estimated_nit): Same.
11173 (build_loop_iteration_domains): Same.
11174 (add_condition_to_domain): Same.
11175 (pdr_add_memory_accesses): Same.
11176
11177 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11178
11179 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
11180 CLooG's value_* macros to their respective mpz_* counterparts.
11181 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
11182 (graphite_create_new_loop_guard): Same.
11183 * graphite-interchange.c (build_linearized_memory_access): Same.
11184 (pdr_stride_in_loop): Same.
11185 (memory_strides_in_loop_1): Same.
11186 (1st_interchange_profitable_p): Same.
11187 * graphite-poly.c (extend_scattering): Same.
11188 (psct_scattering_dim_for_loop_depth): Same.
11189 (pbb_number_of_iterations): Same.
11190 (pbb_number_of_iterations_at_time): Same.
11191 * graphite-poly.h (new_1st_loop): Same.
11192 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
11193 (oppose_constraint): Same.
11194 (insert_constraint_into_matrix): Same.
11195 (ppl_set_inhomogeneous_gmp): Same.
11196 (ppl_set_coef_gmp): Same.
11197 (ppl_strip_loop): Same.
11198 (ppl_lexico_compare_linear_expressions): Same.
11199 (ppl_max_for_le_pointset): Same.
11200 (ppl_min_for_le_pointset): Same.
11201 (ppl_build_realtion): Same.
11202 * graphite-ppl.h (gmp_cst_to_tree): Same.
11203 (ppl_set_inhomogeneous): Same.
11204 (ppl_set_inhomogeneous_tree): Same.
11205 (ppl_set_coef): Same.
11206 (ppl_set_coef_tree): Same.
11207 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11208 (build_scop_scattering): Same.
11209 (add_value_to_dim): Same.
11210 (scan_tree_for_params_right_scev): Same.
11211 (scan_tree_for_params_int): Same.
11212 (scan_tree_for_params): Same.
11213 (find_params_in_bb): Same.
11214 (find_scop_parameters): Same.
11215 (add_upper_bounds_from_estimated_nit): Same.
11216 (build_loop_iteration_domains): Same.
11217 (create_linear_expr_from_tree): Same.
11218 (add_condition_to_domain): Same.
11219 (pdr_add_memory_accesses): Same.
11220
11221 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
11222 Jason Merrill <jason@redhat.com>
11223
11224 * c-common.c (c_common_reswords): Add nullptr.
11225 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
11226 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
11227 (gen_type_die_with_usage): Likewise.
11228 * dbxout.c (dbxout_type): Likewise.
11229 * sdbout.c (plain_type_1): Likewise.
11230
11231 2010-05-06 Jason Merrill <jason@redhat.com>
11232
11233 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
11234 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
11235 ret appropriately.
11236 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
11237
11238 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
11239 stripping WITH_SIZE_EXPR.
11240 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
11241 change.
11242
11243 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11244
11245 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
11246 list of obsolete configurations.
11247 Disabled check for obsolete configurations.
11248 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
11249 Removed support for previous versions.
11250 * config/mips/iris.h: Removed.
11251 * config/mips/iris5.h: Removed.
11252 * config/mips/iris6.h: Merged old iris.h contents.
11253 (TARGET_IRIX): Removed.
11254 (DRIVER_SELF_SPECS): Removed mabi=32.
11255 (IDENT_ASM_OP): Removed undef.
11256 (STARTFILE_SPEC): Removed mabi=32.
11257 (ENDFILE_SPEC): Likewise.
11258 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
11259 (MACHINE_TYPE): Update for IRIX 6.5.
11260 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
11261 TARGET_IRIX by TARGET_IRIX6.
11262 (mips_file_start): Likewise.
11263 (mips_output_external): Remove IRIX 5/6 O32 support.
11264 (mips_output_function_prologue): Likewise.
11265 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
11266 TARGET_IRIX6.
11267 (TARGET_CPU_CPP_BUILTINS): Likewise.
11268 (TARGET_IRIX): Removed.
11269 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
11270 (MULTILIB_DIRNAMES): Removed 32.
11271 (MULTILIB_OSDIRNAMES): Removed ../lib.
11272 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
11273 (Specific, mips-sgi-irix5): Document removal.
11274 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
11275 Remove references to older IRIX 6 releases and the O32 ABI.
11276
11277 2010-05-06 Jakub Jelinek <jakub@redhat.com>
11278
11279 PR bootstrap/43994
11280 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
11281 instead of DF_REF_REAL_REG.
11282
11283 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
11284
11285 PR target/43888
11286 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
11287 handling to still return true for x64 targets.
11288
11289 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11290
11291 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
11292
11293 2010-05-06 Jan Hubicka <jh@suse.cz>
11294
11295 PR tree-optimization/43791
11296 * ipa-inline.c (update_caller_keys): Remove bogus
11297 disregard_inline_limits check.
11298
11299 2010-05-06 Michael Matz <matz@suse.de>
11300
11301 PR tree-optimization/43984
11302 * tree-ssa-pre.c (inserted_phi_names): Remove.
11303 (inserted_exprs): Change to bitmap.
11304 (create_expression_by_pieces): Set bits, don't append to vector.
11305 (insert_into_preds_of_block): Don't handle inserted_phi_names.
11306 (eliminate): Don't look at inserted_phi_names, remove deleted
11307 insns from inserted_exprs.
11308 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11309 (init_pre, fini_pre): Allocate and free bitmaps.
11310 (execute_pre): Insert insns on edges before elimination.
11311
11312 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11313
11314 * tree.c (initializer_zerop): Handle STRING_CST.
11315
11316 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
11317
11318 PR 40989
11319 * doc/invoke.texi (Wimplicit): Document as C only.
11320 * opts.c (common_handle_option): Add argument kind.
11321 (handle_option): Rename as read_cmdline_option. Factor out code to...
11322 (handle_option): ... here. New.
11323 (handle_options): Rename as read_cmdline_options.
11324 (decode_options): Update call.
11325 (set_option): Use option index instead of option pointer. Classify
11326 diagnostics correctly.
11327 (enable_warning_as_error): Call handle_option.
11328 * opts.h (set_option): Update declaration.
11329 (handle_option): Declare.
11330 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11331 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11332 * c-opts.c (set_Wimplicit): Delete.
11333 (c_family_lang_mask): New static constant.
11334 (c_common_handle_option): Add argument kind. Use handle_option
11335 instead of set_Wimplicit.
11336 (c_common_post_options): warn_implicit and warn_implicit_int
11337 are disabled by default.
11338 * c-common.c (warn_implicit): Do not define here.
11339 * c-common.h (warn_implicit): Do not declare here.
11340 (c_common_handle_option): Update declaration.
11341 * lto-opts.c (lto_reissue_options): Update call to set_option.
11342
11343 2010-05-06 Richard Guenther <rguenther@suse.de>
11344
11345 PR tree-optimization/43571
11346 * domwalk.c (walk_dominator_tree): Walk the dominator
11347 sons in more optimal order.
11348
11349 2010-05-06 Richard Guenther <rguenther@suse.de>
11350
11351 PR tree-optimization/43934
11352 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11353 (stmt_cost): Likewise.
11354 (extract_true_false_args_from_phi): New helper.
11355 (determine_max_movement): For PHI nodes verify we can hoist them
11356 and compute their cost.
11357 (determine_invariantness_stmt): Handle PHI nodes.
11358 (move_computations_stmt): Likewise. Hoist PHI nodes in
11359 if-converted form using COND_EXPRs.
11360 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11361 (tree_ssa_lim): Likewise.
11362 * tree-flow.h (tree_ssa_lim): Adjust prototype.
11363 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11364
11365 2010-05-06 Richard Guenther <rguenther@suse.de>
11366
11367 PR tree-optimization/43987
11368 * tree-ssa-structalias.c (could_have_pointers): For possibly
11369 address-taken variables force pointers to be recorded.
11370 (create_variable_info_for_1): Likewise.
11371 (push_fields_onto_fieldstack): Pass in wheter all fields
11372 must have pointers.
11373 (find_func_aliases): Query types instead of vars whether
11374 they contain pointers where appropriate.
11375
11376 2010-05-06 Jan Hubicka <jh@suse.cz>
11377
11378 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11379 (record_reference, mark_address, mark_load, mark_store): Record
11380 references.
11381 (record_references_in_initializer): Update call of record_references.
11382 (rebuild_cgraph_edges): Remove all references before rebuiding.
11383 * cgraph.c (cgraph_create_node): Clear ref list.
11384 (cgraph_remove_node): Remove references.
11385 (dump_cgraph_node): Dump references.
11386 (cgraph_clone_node): Clone references.
11387 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11388 (struct cgraph_node, varpool_node): Add ref_lst.
11389 * ipa-ref.c: New file.
11390 * ipa-ref.h: New file.
11391 * ipa-ref-inline.h: New file.
11392 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11393 (referenced_from_other_partition_p): New function.
11394 (lto_output_varpool_node): Take set arugment; call
11395 referenced_from_other_partition.
11396 (lto_output_ref): New.
11397 (add_references): New.
11398 (output_refs): New.
11399 (output_cgraph): Compute boundary based on references; output refs.
11400 (output_varpool): Accept cgraph_node_set argument.
11401 (input_ref): New.
11402 (input_refs): New.
11403 (input_cgraph): Call input_refs.
11404 * lto-section-in.c (lto_section_name): Add refs.
11405 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11406 (ipa-ref.o): New file.
11407 * varpool.c (varpool_node): Clear ipa ref list.
11408 (varpool_remove_node): Remove references.
11409 (dump_varpool_node): Dump references.
11410 (varpool_assemble_decl): Only compile finalized ones.
11411 (varpool_extra_name_alias): Initialize ref list.
11412 * lto-streamer.c (lto-get_section_name): Add .refs section.
11413 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11414 (referenced_from_other_partition_p): Declared.
11415
11416 2010-05-06 Ira Rosen <irar@il.ibm.com>
11417
11418 PR tree-optimization/43901
11419 * tree-vect-stmts.c (vectorizable_call): Assert that vector
11420 type is not NULL if it's transformation phase, and return
11421 FALSE if it's analysis.
11422 (vectorizable_conversion, vectorizable_operation,
11423 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11424
11425 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11426
11427 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11428 Delete.
11429 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11430 New define.
11431 * config/mips/mips-protos.h
11432 (mips_small_register_classes_for_mode_p): Delete prototype.
11433
11434 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
11435
11436 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11437 * config/arm/arm.c (multiple_operation_profitable_p,
11438 compute_offset_order): New static functions.
11439 (load_multiple_sequence, store_multiple_sequence): Use them.
11440 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
11441 memory offsets, not register numbers.
11442 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11443
11444 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
11445
11446 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11447 (get_pending_sizes, put_pending_size, put_pending_sizes):
11448 Update the uses of pending_sizes.
11449 * c-decl.c (store_parm_decls): Likewise.
11450 * c-tree.h (struct c_arg_info): Likewise.
11451 * tree.h: Update the prototype for get_pending_sizes and
11452 put_pending_sizes.
11453
11454 2010-05-05 Jason Merrill <jason@redhat.com>
11455
11456 PR debug/43370
11457 * c-common.c (handle_aligned_attribute): Respect
11458 ATTR_FLAG_TYPE_IN_PLACE.
11459
11460 PR testsuite/43758
11461 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11462 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11463 (TARGET_INITIALIZER): Use it.
11464 * c-common.c (attribute_takes_identifier_p): Call it.
11465 * c-common.h: Update prototype.
11466 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11467 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11468
11469 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11470
11471 PR debug/43950
11472 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11473 DW_ID_down_case for Fortran compilation units.
11474
11475 2010-05-05 Jan Hubicka <jh@suse.cz>
11476
11477 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11478 handle aliases.
11479
11480 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
11481
11482 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11483 a variable-sized RESULT_DECL.
11484
11485 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
11486
11487 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11488
11489 2010-05-05 Jason Merrill <jason@redhat.com>
11490
11491 PR c++/43787
11492 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11493 returns GS_OK.
11494 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11495
11496 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
11497 Jakub Jelinek <jakub@redhat.com>
11498
11499 PR debug/43478
11500 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11501 (dead_debug_init, dead_debug_finish): New functions.
11502 (dead_debug_add, dead_debug_insert_before): Likewise.
11503 (df_note_bb_compute): Initialize a dead_debug object, add dead
11504 debug uses to it, insert debug bind insns before death insns,
11505 reset debug insns that refer to pending uses at the end.
11506 * rtl.h (make_debug_expr_from_rtl): New prototype.
11507 * varasm.c (make_debug_expr_from_rtl): New function.
11508
11509 2010-05-05 Jan Hubicka <jh@suse.cz>
11510
11511 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11512 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11513 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11514 lto_varpool_encoder_deref, lto_varpool_encoder_size,
11515 lto_varpool_encoder_encode_initializer_p,
11516 lto_set_varpool_encoder_encode_initializer): New functions.
11517 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11518 call output_varpool.
11519 (input_varpool_node): Do not always set analyzed.
11520 (input_cgraph_1): Return vector of cgraph nodes.
11521 (input_varpool_1): Return vector of varpools.
11522 (input_cgraph): Free the vectors.
11523 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11524 output only initializers needed.
11525 (lto_output): Only call output_cgraph.
11526 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
11527 * lto-section-out.c (lto_new_out_decl_state): Initialize
11528 state->varpool_node_encoder.
11529 * lto-streamer.h (lto_varpool_encoder_d): New.
11530 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
11531 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
11532 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
11533 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
11534 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
11535 Declare.
11536 (output_varpool, input_varpool): Remove declarations.
11537
11538 2010-05-05 Jan Hubicka <jh@suse.cz>
11539
11540 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
11541 with body can prevail.
11542
11543 2010-05-05 Jan Hubicka <jh@suse.cz>
11544
11545 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
11546 size.
11547
11548 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11549
11550 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
11551
11552 * gengtype.h (erro_at_line): Constify pos argument.
11553
11554 * gengtype.c: Include hashtab.h.
11555 (enum gc_used): Document GC_MAYBE_POINTED_TO.
11556 (error_at_line): Constify pos argument.
11557 (do_typedef): Initialize p->opt field.
11558 (get_file_gtfilename): Fix comment typo.
11559 (struct walk_type_data): Constify line field.
11560 (get_output_file_for_structure): New function.
11561 (write_local_func_for_structure): Constify orig_s argument.
11562 Use get_output_file_for_structure.
11563 (write_func_for_structure): Use get_output_file_for_structure.
11564 (INDENT): New define.
11565 (dump_pair, dump_type, dump_type_list, dump_typekind)
11566 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
11567 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
11568 functions.
11569 (seen_types): New variable.
11570 (main): New variable do_dump. Process "-d" command line option.
11571 Call dump_everything if dump requested.
11572
11573 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11574
11575 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
11576 in a temporary instead of invoking the macro multiple times.
11577 (track_expr_p): Likewise.
11578
11579 2010-05-04 Neil Vachharajani <nvachhar@google.com>
11580
11581 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
11582 per new semantics.
11583 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
11584 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
11585 conditions for printing notes.
11586 * common.opt (-Wcoverage-mismatch): Allow negative, default to
11587 true, update documentation.
11588 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11589
11590 2010-05-04 Jakub Jelinek <jakub@redhat.com>
11591
11592 PR c/43981
11593 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11594 on dimen.
11595
11596 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11597
11598 PR target/43799
11599 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11600 (*sse_prologue_save_insn1): Likewise.
11601 (SSE prologue save splitter): Likewise.
11602
11603 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
11604
11605 * tree.c (free_lang_data_in_one_sizepos): New inline function.
11606 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11607 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11608 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11609 all decls. Call it on DECL_FIELD_OFFSET of fields.
11610 (find_decls_types_r): Follow DECL_VALUE_EXPR.
11611 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11612
11613 2010-05-04 Martin Jambor <mjambor@suse.cz>
11614
11615 * tree-sra.c (build_access_from_expr_1): The first parameter type
11616 changed to simple tree.
11617 (build_access_from_expr): Likewise, gsi parameter was eliminated.
11618 (scan_assign_result): Renamed to assignment_mod_result, enum elements
11619 renamed as well.
11620 (build_accesses_from_assign): Removed all parameters except for a
11621 simple gimple statement. Now returns a simple bool.
11622 (scan_function): All non-analysis parts moved to separate functions
11623 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
11624 parameters and updated both callers.
11625 (sra_modify_expr): Removed parameter data.
11626 (sra_modify_function_body): New function.
11627 (perform_intra_sra): Call sra_modify_function_body to modify the
11628 function body.
11629 (replace_removed_params_ssa_names): Parameter data changed into
11630 adjustments vector.
11631 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
11632 changed the parameter dont_convert to convert with the opposite
11633 meaning.
11634 (sra_ipa_modify_assign): Parameter data changed into adjustments
11635 vector, return value changed to bool.
11636 (ipa_sra_modify_function_body): New function.
11637 (sra_ipa_reset_debug_stmts): Updated a comment.
11638 (modify_function): Use ipa_sra_modify_function_body to modify function
11639 body.
11640
11641 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11642
11643 PR middle-end/43671
11644 * alias.c (true_dependence): Handle the same VALUE in x and mem.
11645 (canon_true_dependence): Likewise.
11646 (write_dependence_p): Likewise.
11647
11648 2010-05-04 Jan Hubicka <jh@suse.cz>
11649
11650 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11651 * cgraphbuild.c: Include ipa-utils.h
11652 (record_reference_ctx): New struct.
11653 (record_reference): Simplify to work on initializers; not statements.
11654 (mark_address, mark_load, mark_store): New.
11655 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11656 walk PHI nodes too.
11657 (record_references_in_initializer): Update use of record_reference.
11658 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11659 walk PHI nodes too.
11660
11661 2010-05-04 Jan Hubicka <jh@suse.cz>
11662
11663 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
11664 node will be removed anyway.
11665 (lto_varpool_replace_node): Allow also unanalyzed nodes;
11666 relink aliases of node into prevailing node.
11667 * varpool.c (varpool_remove_node): Remove aliases properly;
11668 when removing node, remove all its aliases too; remove DECL_INITIAL
11669 of removed node; ggc_free the varpool node.
11670
11671 2010-05-04 Richard Guenther <rguenther@suse.de>
11672
11673 PR tree-optimization/43879
11674 * tree-ssa-structalias.c (alias_get_name): Use
11675 DECL_ASSEMBLER_NAME if available.
11676 (create_function_info_for): Return the varinfo node.
11677 (ipa_pta_execute): Associate same-body aliases and extra names
11678 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
11679
11680 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
11681
11682 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
11683
11684 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
11685
11686 PR bootstrap/43964
11687 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
11688 only if HONOR_REG_ALLOC_ORDER is not defined.
11689
11690 2010-05-04 Richard Guenther <rguenther@suse.de>
11691
11692 PR tree-optimization/43949
11693 * tree-vrp.c (extract_range_from_binary_expr): Only handle
11694 TRUNC_MOD_EXPR.
11695
11696 2010-04-26 Jason Merrill <jason@redhat.com>
11697
11698 * c.opt (-fstrict-enums): New.
11699 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
11700
11701 2010-05-03 David Ung <davidu@mips.com>
11702 James E. Wilson <wilson@codesourcery.com>
11703
11704 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
11705 emit the trap instruction before the divide for TUNE_74K.
11706
11707 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
11708
11709 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
11710 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
11711 based on the above, for new target hook.
11712
11713 * hooks.c (hook_bool_mode_true): New generic hook.
11714 * hooks.h (hook_bool_mode_true): Add prototype.
11715
11716 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
11717 target hook.
11718 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
11719 target hook, set to hook_bool_mode_false.
11720 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
11721 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
11722 with targetm.small_register_classes_for_mode_p.
11723 (find_reusable_reload): Likewise.
11724 (combine_reloads): Likewise.
11725 * reload1.c (reload_as_needed): Likewise.
11726 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
11727 * ifcvt.c (noce_process_if_block, check_cond_move_block,
11728 dead_or_predicable): Likewise.
11729 * regmove.c (optimize_reg_copy_1): Likewise.
11730 * calls.c (prepare_call_address): Likewise.
11731 (precompute_register_parameters): Likewise.
11732
11733 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
11734 hook definition.
11735 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
11736 implementation of the hook that considers all register classes
11737 small except for SH64.
11738 (sh_override_options): Use the new hook.
11739 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
11740 Add prototype.
11741
11742 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
11743 hook definition.
11744 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
11745 implementation of the hook that considers all register classes
11746 small for THUMB1.
11747 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
11748 Add prototype.
11749
11750 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
11751 hook definition.
11752 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
11753 implementation of the hook that considers all register classes
11754 small for MIPS16.
11755 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
11756 Add prototype.
11757
11758 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
11759 hook definition.
11760 * config/m32c/m32c.h: Likewise.
11761 * config/pdp11/pdp11.h: Likewise.
11762 * config/avr/avr.h: Likewise.
11763 * config/xtensa/xtensa.h: Likewise.
11764 * config/m68hc11/m68hc11.h: Likewise.
11765 * config/mn10300/mn10300.h: Likewise.
11766 * config/mcore/mcore.h: Likewise.
11767 * config/h8300/h8300.h: Likewise.
11768 * config/bfin/bfin.h: Likewise.
11769
11770 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
11771 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
11772
11773 2010-05-03 Anatoly Sokolov <aesok@post.ru>
11774
11775 * double-int.h (tree_to_double_int): Remove macro.
11776 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
11777 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11778 (tree_to_double_int): New function.
11779 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
11780 Move ...
11781 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11782
11783 2010-05-03 Richard Guenther <rguenther@suse.de>
11784
11785 PR tree-optimization/43971
11786 * tree-ssa-structalias.c (get_constraint_for_1): Fix
11787 constraints in the !flag_delete_null_pointer_checks case.
11788
11789 2010-05-03 Jakub Jelinek <jakub@redhat.com>
11790
11791 PR debug/43972
11792 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
11793 result mode matches original rtl mode.
11794
11795 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
11796
11797 PR target/43888
11798 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
11799
11800 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11801
11802 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
11803 when processing flag options.
11804
11805 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11806
11807 * gcov-iov.c (main): Change format string placeholder
11808 from %#08x to 0x%08x.
11809 * genchecksum.c (dosum): Change format string placeholder
11810 from %#02x to 0x%02x.
11811
11812 2010-05-02 Richard Guenther <rguenther@suse.de>
11813
11814 PR tree-optimization/43879
11815 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
11816
11817 2010-05-02 Bruno Haible <bruno@clisp.org>
11818
11819 * doc/extend.texi (Function Attributes): Fix a typo.
11820
11821 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11822
11823 Revert:
11824 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
11825 placeholder from 0x%x to %#x.
11826 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11827 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11828 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11829 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11830 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11831 * config/i386/i386.c (ix86_target_string): Ditto.
11832 * config/i386/i386.c (output_pic_addr_const): Ditto.
11833 (print_operand): Ditto.
11834
11835 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11836
11837 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
11838 placeholder from 0x%x to %#x.
11839 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
11840 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
11841 (ASM_OUTPUT_DEBUG_DATA): Ditto.
11842 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
11843 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
11844 * optc-gen.awk: Ditto.
11845 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
11846 (HOST_WIDE_INT_PRINT_HEX): Ditto.
11847 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
11848 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11849
11850 2010-05-01 Anatoly Sokolov <aesok@post.ru>
11851
11852 * target.h (struct calls): Add function_value_regno_p field.
11853 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11854 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
11855 * targhooks.c (default_function_value_regno_p): New function.
11856 * targhooks.h (default_function_value_regno_p): Declare function.
11857 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
11858 * builtins.c. (apply_result_size): (Ditto.).
11859 * combine.c. (likely_spilled_retval_p): (Ditto.).
11860 * mode-switching.c. Include 'target.h'.
11861 (create_pre_exit): Use function_value_regno_p hook.
11862 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
11863 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
11864 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
11865
11866 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
11867 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
11868 (ix86_function_value_regno_p): Declare as static, change argument
11869 type to const unsigned int.
11870 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
11871
11872 2010-05-01 Richard Guenther <rguenther@suse.de>
11873
11874 PR tree-optimization/43949
11875 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
11876 types.
11877 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
11878
11879 2010-05-01 Anatoly Sokolov <aesok@post.ru>
11880
11881 * rtl.h (CONST_DOUBLE_P): Define.
11882 (rtx_to_double_int): Declare.
11883 * emit-rtl.c (rtx_to_double_int): New function.
11884 * dwarf2out.c (insert_double): New function.
11885 (loc_descriptor, add_const_value_attribute): Clean up, use
11886 rtx_to_double_int and insert_double functions.
11887
11888 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
11889
11890 * doc/extend.texi (Inline): Add missing return keyword to examples.
11891 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11892 "command-line".
11893
11894 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
11895
11896 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11897 the variable part of the offset as well. Use highest_pow2_factor for
11898 all alignment checks.
11899
11900 2010-04-30 Richard Guenther <rguenther@suse.de>
11901
11902 PR tree-optimization/43879
11903 * tree-ssa-structalias.c (type_could_have_pointers): Functions
11904 can have pointers.
11905
11906 2010-04-30 Jan Hubicka <jh@suse.cz>
11907
11908 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11909 varpool.
11910 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11911
11912 2010-04-30 Jan Hubicka <jh@suse.cz>
11913
11914 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11915 New.
11916 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11917 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11918 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11919 cgraph_node_set_needs_ltrans_p): Remove.
11920
11921 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11922
11923 * sdbout.c: Include vec.h, do not include varray.h.
11924 (deferred_global_decls, sdbout_global_decl,
11925 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11926 * toplev.c: Do not include varray.h.
11927 (dump_memory_report): Do not dump VARRAY statistics.
11928 * gengtype.c (open_base_file): Ignore varray.h.
11929 * Makefile.in: Update for abovementioned changes.
11930 Remove all traces of varray.c and varray.h.
11931 * varray.c: Remove file.
11932 * varray.h: Remove file.
11933
11934 2010-04-30 Jan Hubicka <jh@suse.cz>
11935
11936 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
11937 references.
11938
11939 2010-04-30 Jan Hubicka <jh@suse.cz>
11940
11941 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
11942 needed.
11943
11944 2010-04-30 Richard Guenther <rguenther@suse.de>
11945
11946 * tree-ssa-structalias.c (get_constraint_for_1): Generate
11947 constraints for CONSTRUCTOR.
11948
11949 2010-04-30 Richard Guenther <rguenther@suse.de>
11950
11951 PR lto/43946
11952 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
11953 first after all lowering passes.
11954
11955 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11956
11957 * toplev.c: Include varray.h for statistics dumping.
11958 * tree.h: Do not declare varray_head_tag.
11959 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
11960 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
11961 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
11962 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
11963 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
11964 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
11965 c-common.c, c-common.h, reg-stack.c, basic-block.h,
11966 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
11967 include varray.h.
11968 * Makefile.in: Update for abovementioned changes.
11969
11970 2010-04-30 Jakub Jelinek <jakub@redhat.com>
11971
11972 PR debug/43942
11973 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
11974
11975 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
11976
11977 * config/picochip/picochip.c (picochip_legitimize_address): Define.
11978 Use this function to do machine-specific conversion.
11979 (picochip_legitimize_reload_address): Likewise.
11980 (picochip_legitimate_address_p): Check valid base register only if
11981 strict.
11982 (picochip_check_conditional_copy): Check for modw only if opnd is
11983 register.
11984 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
11985 to call the function in c.
11986 * config/picochip/picochip-protos.h
11987 (picochip_legitimize_reload_address): Define.
11988 * config/picochip/picochip.md (supported_compare1): Define.
11989
11990 2010-04-30 Jan Hubicka <jh@suse.cz>
11991
11992 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11993 (cgraph_global_info): Remove inlined.
11994 (LTO_cgraph_tag_names): Remove.
11995 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11996 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11997 simplify cgraph tags and document.
11998 (lto_output_node): Use only LTO_cgraph_unavail_node and
11999 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
12000 for_functions_valid, global info, process and output flags.
12001 (input_overwrite_node): Initialize estimated stack size and
12002 estimated growth. Do not read flags we no longer store.
12003 (input_node): Likewise do not read info no longer stored.
12004 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
12005 flag.
12006
12007 2010-04-30 Richard Guenther <rguenther@suse.de>
12008
12009 PR tree-optimization/43879
12010 * tree-ssa-structalias.c (get_constraint_for_1): Properly
12011 handle non-zero initializers.
12012
12013 2010-04-30 Richard Guenther <rguenther@suse.de>
12014
12015 * builtins.c (fold_builtin_1): Delete free (0).
12016
12017 2010-04-29 Jan Hubicka <jh@suse.cz>
12018
12019 * gengtype.c (open_base_files): Add lto-streamer.h
12020 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
12021 (pass_ipa_cp): GGC collect.
12022 * toplev. (compile_file): Do not output symbols.
12023 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
12024 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
12025 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
12026 * lto-section-in.c: Include ggc.h
12027 (lto_new_in_decl_state): Alloc in GGC.
12028 (lto_delete_in_decl_state): Likewise.
12029 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
12030 Collect.
12031
12032 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12033
12034 PR target/42895
12035 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
12036 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
12037 (HONOR_REG_ALLOC_ORDER): Describe new macro.
12038 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
12039 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
12040 account only if HONOR_REG_ALLOC_ORDER is not defined.
12041 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
12042 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
12043
12044 2010-04-29 Jon Grant <04@jguk.org>
12045
12046 * collect2.c (vflag): Change type from int to bool.
12047 (debug): Likewise.
12048 (helpflag): New global bool.
12049 (main): Set vflag and debug with boolean, not integer truth values.
12050 Accept new "--help" option and output usage text if found.
12051 * collect2.h (vflag): Update prototype.
12052 (debug): Likewise.
12053
12054 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12055
12056 PR bootstrap/43936
12057 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
12058
12059 2010-04-29 Richard Guenther <rguenther@suse.de>
12060
12061 PR bootstrap/43935
12062 * plugin.h (invoke_plugin_callbacks): Annotate arguments
12063 with ATTRIBUTE_UNUSED.
12064
12065 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12066
12067 PR target/43921
12068 * config/i386/i386.c (get_some_local_dynamic_name): Replace
12069 INSN_P with NONDEBUG_INSN_P.
12070 (distance_non_agu_define): Likewise.
12071 (distance_agu_use): Likewise.
12072
12073 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12074
12075 From Dominique d'Humieres <dominiq@lps.ens.fr>
12076 PR bootstrap/43858
12077 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
12078 test_set.
12079
12080 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
12081
12082 * plugin.h (invoke_plugin_callbacks): New inline function.
12083 * plugin.c (flag_plugin_added): New global flag.
12084 (add_new_plugin): Initialize above flag.
12085 (invoke_plugin_callbacks): Rename to ...
12086 (invoke_plugin_callbacks_full): ... this.
12087
12088 2010-04-28 Jan Hubicka <jh@suse.cz>
12089
12090 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
12091 (lto_varpool_replace_node): New.
12092 (lto_symtab_resolve_symbols): Resolve varpool nodes.
12093 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
12094 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
12095 * cgraph.h (varpool_node_ptr): New type.
12096 (varpool_node_ptr): New vector.
12097 (varpool_node_set_def): New structure.
12098 (varpool_node_set): New type.
12099 (varpool_node_set): New vector.
12100 (varpool_node_set_element_def): New structure.
12101 (varpool_node_set_element, const_varpool_node_set_element): New types.
12102 (varpool_node_set_iterator): New type.
12103 (varpool_node): Add prev pointers, add used_from_other_partition,
12104 in_other_partition.
12105 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
12106 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
12107 varpool_get_node, varpool_remove_node): Declare.
12108 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
12109 varpool_node_set_size): New inlines.
12110 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
12111 * tree-pass.h (varpool_node_set_def): Forward declare.
12112 (ipa_opt_pass_d): Summary writting takes vnode sets too.
12113 (ipa_write_optimization_summaries): Update prototype.
12114 * ipa-cp.c (ipcp_write_summary): Update.
12115 * ipa-reference.c (ipa_reference_write_summary): Update.
12116 * lto-cgraph.c (lto_output_varpool_node): New static function.
12117 (output_varpool): New function.
12118 (input_varpool_node): New static function.
12119 (input_varpool_1): New function.
12120 (input_cgraph): Input varpool.
12121 * ipa-pure-const.c (pure_const_write_summary): Update.
12122 * lto-streamer-out.c (lto_output): Update, output varpool too.
12123 (write_global_stream): Kill WPA hack.
12124 (produce_asm_for_decls): Update.
12125 (output_alias_pair_p): Handle variables.
12126 (output_unreferenced_globals): Output only needed partition of varpool.
12127 * ipa-inline.c (inline_write_summary): Update.
12128 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
12129 cgraph.
12130 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
12131 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
12132 varpool_node_set_new, varpool_node_set_add,
12133 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
12134 debug_varpool_node_set): New functions.
12135 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
12136 (execute_one_pass): Process new decls too.
12137 (ipa_write_summaries_2): Pass around vsets.
12138 (ipa_write_summaries_1): Likewise.
12139 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
12140 to add.
12141 (ipa_write_optimization_summaries_1): Pass around vsets.
12142 (ipa_write_optimization_summaries): Likewise.
12143 * varpool.c (varpool_get_node): New.
12144 (varpool_node): Update doubly linked lists.
12145 (varpool_remove_node): New.
12146 (dump_varpool_node): More dumping.
12147 (varpool_enqueue_needed_node): Update doubly linked lists.
12148 (decide_is_variable_needed): Kill ltrans hack.
12149 (varpool_finalize_decl): Kill lto hack.
12150 (varpool_assemble_decl): Skip decls in other partitions.
12151 (varpool_assemble_pending_decls): Update doubly linkes lists.
12152 (varpool_empty_needed_queue): Likewise.
12153 (varpool_extra_name_alias): Likewise.
12154 * lto-streamer.c (lto_get_section_name): Add vars section.
12155 * lto-streamer.h (lto_section_type): Update.
12156 (output_varpool, input_varpool): Declare.
12157
12158 2010-04-28 Mike Stump <mikestump@comcast.net>
12159
12160 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
12161
12162 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12163
12164 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
12165 record or union type with RECORD_OR_UNION_TYPE_P predicate.
12166 (lto_input_ts_type_tree_pointers): Likewise.
12167 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
12168 (lto_output_ts_type_tree_pointers): Likewise.
12169
12170 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12171
12172 Uniquization of constants at the Tree level
12173 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
12174 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
12175 bit to the end.
12176 (tree_output_constant_def): Declare.
12177 * gimplify.c (gimplify_init_constructor): When using block copy, first
12178 uniquize the constant constructor on the RHS.
12179 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
12180 DECL_IN_CONSTANT_POOL flag.
12181 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
12182 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
12183 constant pool.
12184 (assemble_variable): Deal with symbols belonging to the tree constant
12185 pool.
12186 (get_constant_section): Add ALIGN parameter and simplify.
12187 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
12188 (assemble_constant_contents): Use the expression of the VAR_DECL.
12189 (output_constant_def_contents): Use the alignment of the VAR_DECL.
12190 (tree_output_constant_def): New global function.
12191 (mark_constant): Use the expression of the VAR_DECL.
12192 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
12193 its expression.
12194 (output_object_block): Likewise and assemble the expression.
12195
12196 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12197
12198 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
12199 hash_tree, eq_tree): New tree hash table.
12200 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
12201 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
12202 lto_orig_address_remove): Reimplement.
12203
12204 2010-04-28 Xinliang David Li <davidxl@google.com>
12205
12206 PR c/42643
12207 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
12208 (compute_uninit_opnds_pos): New function.
12209 (is_non_loop_exit_postdominating): New function.
12210 (compute_control_dep_chain): New function.
12211 (find_pdom): New function.
12212 (convert_control_dep_chain_into_preds): New function.
12213 (find_predicates): New function.
12214 (find_control_equiv_block): New function.
12215 (collect_phi_def_edges): New function.
12216 (find_def_preds): New function.
12217 (find_dom): New function.
12218 (dump_predicates): New function.
12219 (get_cmp_code): New function.
12220 (is_value_included_in): New function.
12221 (find_matching_predicate_in_rest_chains): New function.
12222 (use_pred_not_overlap_with_undef_path_pred): New function.
12223 (is_use_properly_guarded): New function.
12224 (normalize_cond_1): New function.
12225 (is_and_or_or): New function.
12226 (normalize_cond): New function.
12227 (is_gcond_subset_of): New function.
12228 (is_subset_of_any): New function.
12229 (is_or_set_subset_of): New function.
12230 (is_and_set_subset_of): New function.
12231 (is_norm_cond_subset_of): New function.
12232 (is_pred_expr_subset_of): New function.
12233 (is_pred_chain_subset_of): New function.
12234 (is_included_in): New function.
12235 (is_superset_of): New function.
12236 (find_uninit_use): New function.
12237 (warn_uninitialized_phi): New function.
12238 (compute_possibly_undefined_names): New function.
12239 (ssa_undefined_value_p): New function.
12240 (execute_late_warn_uninitialized): New function.
12241 * tree-ssa.c (ssa_undefined_value_p): Removed.
12242 (warn_uninit): Changed to extern.
12243 (warn_uninitialized_phi): Removed.
12244 (warn_uninitialized_vars): Changed to extern.
12245 (execute_late_warn_uninitialized): Removed
12246 * tree-flow.h: Add new prototypes.
12247 * timevar.def: Add new time variable.
12248 * Makefile.in: Add new build file.
12249
12250 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
12251
12252 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12253 type if available.
12254
12255 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12256
12257 PR target/22224
12258 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
12259
12260 2010-04-28 Martin Jambor <mjambor@suse.cz>
12261
12262 * cgraph.h (struct cgraph_node): New field indirect_calls.
12263 (struct cgraph_indirect_call_info): New type.
12264 (struct cgraph_edge): Removed field indirect_call. New fields
12265 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
12266 (cgraph_create_indirect_edge): Declare.
12267 (cgraph_make_edge_direct): Likewise.
12268 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
12269 * ipa-prop.h (struct ipa_param_call_note): Removed.
12270 (struct ipa_node_params): Removed field param_calls.
12271 (ipa_create_all_structures_for_iinln): Declare.
12272 * cgraph.c: Described indirect edges and uids in initial comment.
12273 (cgraph_add_edge_to_call_site_hash): New function.
12274 (cgraph_edge): Search also among the indirect edges, use
12275 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
12276 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
12277 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
12278 site hash.
12279 (initialize_inline_failed): Assign a reason to indirect edges.
12280 (cgraph_create_edge_1): New function.
12281 (cgraph_create_edge): Moved some functionality to
12282 cgraph_create_edge_1.
12283 (cgraph_create_indirect_edge): New function.
12284 (cgraph_edge_remove_callee): Add an assert checking for
12285 non-indirectness.
12286 (cgraph_edge_remove_caller): Special-case indirect edges.
12287 (cgraph_remove_edge): Likewise.
12288 (cgraph_set_edge_callee): New function.
12289 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
12290 (cgraph_make_edge_direct): New function.
12291 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
12292 the declaration of the call statement matches.
12293 (cgraph_node_remove_callees): Special-case indirect edges.
12294 (cgraph_clone_edge): Likewise.
12295 (cgraph_clone_node): Clone also the indirect edges.
12296 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
12297 indirect_call, dump count of indirect_calls edges.
12298 * ipa-prop.c (iinlining_processed_edges): New variable.
12299 (ipa_note_param_call): Create indirect edges instead of
12300 creating notes. New parameter node.
12301 (ipa_analyze_call_uses): New parameter node, pass it on to
12302 ipa_note_param_call.
12303 (ipa_analyze_stmt_uses): Likewise.
12304 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12305 (print_edge_addition_message): Work on edges rather than on notes.
12306 (update_call_notes_after_inlining): Likewise, renamed to
12307 update_indirect_edges_after_inlining.
12308 (ipa_create_all_structures_for_iinln): New function.
12309 (ipa_free_node_params_substructures): Do not free notes.
12310 (ipa_edge_duplication_hook): Propagate bits within
12311 iinlining_processed_edges bitmap.
12312 (ipa_node_duplication_hook): Do not duplicate notes.
12313 (free_all_ipa_structures_after_ipa_cp): Renamed to
12314 ipa_free_all_structures_after_ipa_cp.
12315 (free_all_ipa_structures_after_iinln): Renamed to
12316 ipa_free_all_structures_after_iinln.
12317 (ipa_write_param_call_note): Removed.
12318 (ipa_read_param_call_note): Removed.
12319 (ipa_write_indirect_edge_info): New function.
12320 (ipa_read_indirect_edge_info): Likewise.
12321 (ipa_write_node_info): Do not stream notes, do stream information
12322 in indirect edges.
12323 (ipa_read_node_info): Likewise.
12324 (lto_ipa_fixup_call_notes): Removed.
12325 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12326 * ipa-inline.c (pass_ipa_inline): Likewise.
12327 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12328 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12329 * tree-inline.c (copy_bb): Removed an unnecessary double check for
12330 is_gimple_call.
12331 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12332 edges.
12333 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12334 (output_cgraph): Stream also indirect edges.
12335 (lto_output_edge): Added capability to stream indirect edges.
12336 (input_edge): Likewise.
12337 (input_cgraph_1): Likewise.
12338 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12339 of indirect edges.
12340
12341 2010-04-28 Richard Guenther <rguenther@suse.de>
12342
12343 PR tree-optimization/43879
12344 PR tree-optimization/43909
12345 * tree-ssa-structalias.c (struct variable_info): Add
12346 only_restrict_pointers flag.
12347 (new_var_info): Initialize it. Increment stats.total_vars here.
12348 (create_function_info_for): Do not increment stats.total_vars here.
12349 (get_function_part_constraint): Fix build with C++.
12350 (insert_into_field_list): Remove.
12351 (push_fields_onto_fieldstack): Properly merge fields.
12352 (create_variable_info_for): Split and simplify.
12353 (create_variable_info_for_1): New piece.
12354 (intra_create_variable_infos): Properly make restrict constraints
12355 from parameters.
12356
12357 2010-04-28 Richard Guenther <rguenther@suse.de>
12358
12359 PR c++/43880
12360 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12361
12362 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
12363 Jan Hubicka <hubicka@ucw.cz>
12364
12365 * doc/invoke.texi (-Wsuggest-attribute=const,
12366 -Wsuggest-attribute=pure): Document.
12367 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12368 (function_always_visible_to_compiler_p,
12369 suggest_attribute, warn_function_pure, warn_function_const):
12370 New functions.
12371 (check_call): Improve debug info.
12372 (analyze_function): Do not check availability.
12373 (add_new_function): Check availability.
12374 (propagate): Output warnings.
12375 (skip_function_for_local_pure_const): New function.
12376 (local_pure_const): Use it; output warnings.
12377 * common.opt (Wsuggest-attribute=const,
12378 Wsuggest-attribute=pure): New.
12379
12380 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12381
12382 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12383 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12384 or DW_CFA_def_cfa_offset{,_sf}.
12385
12386 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12387
12388 * tree.h: Fix truncated long macros.
12389
12390 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
12391
12392 * collect2.c (TARGET_64BIT): Redefine to target's default.
12393 * tlink.c: Likewise.
12394 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12395 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12396 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12397 for underscoring __USER_LABEL_PREFIX__.
12398 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12399 (SUB_LINK_ENTRY32): New.
12400 (SUB_LINK_ENTRY64): New.
12401 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12402 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12403 (SUB_LINK_ENTRY64): New.
12404 (SUB_LINK_ENTRY): New.
12405 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12406 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12407 x64 target is choosen.
12408 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12409 * configure: Regenerated.
12410 * configure.ac (leading-mingw64-underscores): Option added.
12411
12412 2010-04-27 Jan Hubicka <jh@suse.cz>
12413
12414 * doc/invoke.texi (-fipa-profile): Document.
12415 * opts.c (decode_options): Enable ipa-profile at -O1.
12416 * timevar.def (TV_IPA_PROFILE): Define.
12417 * common.opt (fipa-profile): Add.
12418 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12419 flag for clones.
12420 (cgraph_propagate_frequency): Handle only local ones.
12421 * tree-pass.h (pass_ipa_profile): Declare.
12422 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12423 (pass_ipa_profile): Use TV_IPA_PROFILE.
12424 * ipa.c (ipa_profile): New function.
12425 (gate_ipa_profile): Likewise.
12426 (pass_ipa_profile): New global variable.
12427 * passes.c (pass_ipa_profile): New.
12428
12429 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
12430
12431 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12432
12433 2010-04-27 Martin Jambor <mjambor@suse.cz>
12434
12435 PR middle-end/43812
12436 * ipa.c (dissolve_same_comdat_group_list): New function.
12437 (function_and_variable_visibility): Call
12438 dissolve_same_comdat_group_list when comdat group contains external or
12439 newly local nodes.
12440 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12441 lists are circular and that they contain only DECL_ONE_ONLY nodes.
12442
12443 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12444
12445 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12446 (const_hash_1) <VECTOR_CST>: New case.
12447 (compare_constant) <VECTOR_CST>: Likewise.
12448 <ADDR_EXPR>: Deal with LABEL_REFs.
12449 (copy_constant) <VECTOR_CST>: New case.
12450
12451 2010-04-27 Jan Hubicka <jh@suse.cz>
12452
12453 * cgraph.c (cgraph_propagate_frequency): New function.
12454 * cgraph.h (cgraph_propagate_frequency): Declare.
12455 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12456 cgraph_propagate_frequency.
12457
12458 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12459
12460 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12461
12462 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
12463
12464 PR target/40657
12465 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12466 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12467 here to determine which regs to push and how much stack to reserve.
12468
12469 2010-04-27 Jie Zhang <jie@codesourcery.com>
12470
12471 * doc/gimple.texi (gimple_statement_with_ops): Remove
12472 addresses_taken field.
12473 (gimple_statement_with_memory_ops): Likewise.
12474
12475 2010-04-27 Jan Hubicka <jh@suse.cz>
12476
12477 * tree-inline.c (eni_inlining_weights): Remove.
12478 (estimate_num_insns): Special case more builtins.
12479
12480 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
12481
12482 PR c/32207
12483 * c-typeck.c (build_binary_op): Move forward check for comparison
12484 pointer with null pointer constant and adjust the diagnostic message.
12485
12486 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
12487
12488 PR lto/42776
12489 * configure.ac (gcc_cv_as_section_has_align): Set if installed
12490 binutils supports extended .section directive needed by LTO, or
12491 warn if older binutils found.
12492 (LTO_BINARY_READER): New AC_SUBST'd variable.
12493 (LTO_USE_LIBELF): Likewise.
12494 * gcc/config.gcc (lto_binary_reader): New target-specific configure
12495 variable.
12496 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12497 (LTO_USE_LIBELF): Likewise.
12498 * configure: Regenerate.
12499
12500 * collect2.c (is_elf): Rename from this ...
12501 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12502 object files in addition to ELF-formatted ones.
12503 (scan_prog_file): Caller updated. Also allow for LTO info marker
12504 symbol to be prefixed or not by an extra underscore.
12505
12506 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12507 * config/i386/winnt.c: Also #include lto-streamer.h
12508 (i386_pe_asm_named_section): Specify 1-byte section alignment for
12509 LTO named sections.
12510 (i386_pe_asm_output_aligned_decl_common): Add comment.
12511 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12512
12513 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
12514
12515 PR target/43889
12516 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12517 Add missing earlyclobber for second alternative.
12518
12519 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
12520
12521 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
12522 bits for artificial defs at the top of the block.
12523 * fwprop.c (single_def_use_enter_block): Don't call it.
12524
12525 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
12526
12527 PR 43715
12528 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
12529 instead of "$gcc_cv_objdump -T".
12530 Use "-undefined dynamic_lookup" on darwin.
12531 * gcc/configure: Regenerate.
12532
12533 2010-04-26 Jakub Jelinek <jakub@redhat.com>
12534
12535 PR c/43893
12536 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
12537
12538 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12539
12540 * c-parser.c (struct c_token): Move location field up.
12541 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
12542 (struct c_declspecs): Convert typespec_word, storage_class, and
12543 default_int_p into bitfields.
12544 (struct c_declarator): Move loc field up.
12545
12546 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12547
12548 * cfgloop.h (struct loop): Move can_be_parallel field up.
12549 * ipa-prop.h (struct ip_node_params): Move bitfields up.
12550 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
12551 down.
12552 (struct iv_cand): Convert pos field into a bitfield.
12553 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
12554 field up.
12555 (struct _stmt_vec_info): Shuffle fields for better packing.
12556
12557 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12558
12559 * varasm.c (IN_NAMED_SECTION): Remove guard.
12560 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
12561 (IN_NAMED_SECTION_P): ...this.
12562 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
12563 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12564
12565 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12566
12567 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
12568 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
12569 of shadowing it. Fix comments.
12570
12571 2010-04-26 Jan Hubicka <jh@suse.cz>
12572
12573 * cgraph.c (cgraph_create_node): Set node frequency to normal.
12574 (cgraph_clone_node): Copy function frequency.
12575 * cgraph.h (node_frequency): New enum
12576 (struct cgraph_node): Add.
12577 * final.c (rest_of_clean_state): Update.
12578 * lto-cgraph.c (lto_output_node): Output node frequency.
12579 (input_overwrite_node): Input node frequency.
12580 * tre-ssa-loop-ivopts (computation_cost): Update.
12581 * lto-streamer-out.c (output_function): Do not output function
12582 frequency.
12583 * predict.c (maybe_hot_frequency_p): Update and handle functions
12584 executed once.
12585 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
12586 attribute lookup.
12587 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12588 (compute_function_frequency): Set noreturn functions to be executed
12589 once.
12590 (choose_function_section): Update.
12591 * lto-streamer-in.c (input_function): Do not input function frequency.
12592 * function.c (allocate_struct_function): Do not initialize function
12593 frequency.
12594 * function.h (function_frequency): Remove.
12595 (struct function): Remove function frequency.
12596 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12597 (try_update): Update.
12598 * tree-inline.c (initialize_cfun): Do not update function frequency.
12599 * passes.c (pass_init_dump_file): Update.
12600 * i386.c (ix86_compute_frame_layout): Update.
12601 (ix86_pad_returns): Update.
12602
12603 2010-04-26 Jie Zhang <jie@codesourcery.com>
12604
12605 PR tree-optimization/43833
12606 * tree-vrp.c (range_int_cst_p): New.
12607 (range_int_cst_singleton_p): New.
12608 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12609 when both operands are constants. Use range_int_cst_p in
12610 BIT_IOR_EXPR case.
12611
12612 2010-04-26 Jan Hubicka <jh@suse.cz>
12613
12614 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12615
12616 2010-04-26 Richard Guenther <rguenther@suse.de>
12617
12618 PR lto/43080
12619 * gimple.c (gimple_decl_printable_name): Deal gracefully
12620 with a NULL DECL_NAME.
12621
12622 2010-04-26 Richard Guenther <rguenther@suse.de>
12623
12624 PR lto/42425
12625 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12626 if emitting debug information and it is either a function
12627 or a namespace decl.
12628
12629 2010-04-26 Ira Rosen <irar@il.ibm.com>
12630
12631 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12632 determine if the statement is vectorizable, and a macro to access it.
12633 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12634 Skip statements that can't be vectorized. If the analysis fails,
12635 mark the statement as unvectorizable if vectorizing basic block.
12636 (vect_compute_data_refs_alignment): Likewise.
12637 (vect_verify_datarefs_alignment): Skip statements marked as
12638 unvectorizable. Add print.
12639 (vect_analyze_group_access): Skip statements that can't be
12640 vectorized. If the analysis fails, mark the statement as
12641 unvectorizable if vectorizing basic block.
12642 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12643 * tree-vect-stmts.c (vectorizable_store): Fix the number of
12644 generated stmts for SLP.
12645 (new_stmt_vec_info): Initialize the new field.
12646 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12647 statements marked as unvectorizable.
12648
12649 2010-04-25 Joseph Myers <joseph@codesourcery.com>
12650
12651 * c-common.c (flag_isoc1x): New.
12652 (flag_isoc99): Update comment.
12653 * c-common.h (flag_isoc1x): New.
12654 (flag_isoc99): Update comment.
12655 * c-cppbuiltin.c (builtin_define_float_constants): Also define
12656 __<type>_DECIMAL_DIG__.
12657 * c-opts.c (set_std_c1x): New.
12658 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
12659 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
12660 * c.opt (-std=c1x, -std=gnu1x): New options.
12661 * doc/cpp.texi: Mention -std=c1x.
12662 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
12663 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
12664 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
12665 * doc/standards.texi: Mention C1X.
12666 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
12667 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
12668 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
12669 Define for C1X.
12670
12671 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
12672
12673 * config/i386/gmon-sol2.c (_mcleanup): Change format string
12674 placeholder from 0x%x to %#x.
12675 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12676 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12677 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12678 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12679 * config/i386/i386.c (ix86_target_string): Ditto.
12680 (output_pic_addr_const): Ditto.
12681 (print_operand): Ditto.
12682
12683 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
12684
12685 * combine.c (find_split_point): Add third argument. Use it
12686 to find nested multiply-accumulate instructions. Adjust calls.
12687 (try_combine): Adjust call to find_split_point.
12688
12689 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
12690
12691 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
12692
12693 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
12694
12695 PR tree-optimization/41442
12696 * fold-const.c (merge_truthop_with_opposite_arm): New function.
12697 (fold_binary_loc): Call it.
12698
12699 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12700
12701 * toplev.c (general_init): Set default for fdiagnostics-show-option.
12702 * opts.c (common_handle_option): Allow disabling it.
12703 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
12704
12705 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
12706
12707 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
12708 between modes if both types are integral.
12709
12710 2010-04-23 Richard Guenther <rguenther@suse.de>
12711
12712 PR tree-optimization/43572
12713 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
12714
12715 2010-04-23 Richard Guenther <rguenther@suse.de>
12716
12717 PR lto/43455
12718 * tree-inline.c (tree_can_inline_p): Also check compatibility
12719 of return types.
12720
12721 2010-04-23 Martin Jambor <mjambor@suse.cz>
12722
12723 PR tree-optimization/43846
12724 * tree-sra.c (struct access): New flag grp_assignment_read.
12725 (build_accesses_from_assign): Set grp_assignment_read.
12726 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
12727 (enum mark_read_status): New type.
12728 (analyze_access_subtree): Propagate grp_assignment_read, create
12729 accesses also if both direct_read and root->grp_assignment_read.
12730
12731 2010-04-23 Martin Jambor <mjambor@suse.cz>
12732
12733 PR middle-end/43835
12734 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
12735 function does not have type attributes.
12736
12737 2010-04-23 Richard Guenther <rguenther@suse.de>
12738
12739 PR lto/42653
12740 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
12741 of FUNCTION_DECLs.
12742
12743 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12744
12745 * sese.h (create_if_region_on_edge): Remove.
12746
12747 * sese.c (create_if_region_on_edge): Make static.
12748
12749 * tree-inline.c: Do not include ggc.h.
12750
12751 * expr.c: Do not include ggc.h.
12752
12753 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
12754 dependencies.
12755
12756 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
12757
12758 PR target/43744
12759 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12760 in the middle of insns for casesi_worker_2.
12761
12762 2010-04-22 David Edelsohn <edelsohn@gnu.org>
12763
12764 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
12765
12766 2010-04-22 Ira Rosen <irar@il.ibm.com>
12767
12768 PR tree-optimization/43842
12769 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12770 loop unrolling in update of exit phis. Fix comment.
12771 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
12772 least two reduction statements in the loop before starting SLP
12773 analysis.
12774
12775 2010-04-22 Nick Clifton <nickc@redhat.com>
12776
12777 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
12778
12779 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
12780
12781 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
12782 to simplify a + ~a.
12783
12784 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12785
12786 * tree-parloops.c (loop_parallel_p): New argument
12787 parloop_obstack. Pass it down.
12788 (parallelize_loops): New variable parloop_obstack. Initialize it,
12789 pass it down, free it.
12790
12791 * tree-loop-linear.c (linear_transform_loops): Pass down
12792 lambda_obstack.
12793
12794 * tree-data-ref.h (lambda_compute_access_matrices): New argument
12795 of type struct obstack *.
12796
12797 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
12798 scratch_obstack. Initialize it, pass down, free it.
12799
12800 * lambda.h (lambda_loop_new): Remove.
12801 (lambda_matrix_new, lambda_matrix_inverse)
12802 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
12803 argument of type struct obstack *.
12804
12805 * lambda-trans.c (lambda_trans_matrix_new): New argument
12806 lambda_obstack. Pass it down, use obstack allocation for ret.
12807 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
12808 it down.
12809
12810 * lambda-mat.c (lambda_matrix_get_column)
12811 (lambda_matrix_project_to_null): Remove.
12812 (lambda_matrix_new): New argument lambda_obstack. Use obstack
12813 allocation for mat.
12814 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
12815 lambda_obstack.
12816
12817 * lambda-code.c (lambda_loop_new): New function.
12818 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
12819 (lambda_compute_auxillary_space, lambda_compute_target_space)
12820 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
12821 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
12822 (build_access_matrix): New argument lambda_obstack. Use obstack
12823 allocation for am.
12824 (lambda_compute_step_signs, lambda_compute_access_matrices): New
12825 argument lambda_obstack. Pass it down.
12826
12827 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12828
12829 * optabs.h (expand_widening_mult): Declare.
12830
12831 2010-04-22 Richard Guenther <rguenther@suse.de>
12832
12833 PR tree-optimization/43845
12834 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
12835 lookup the CALL_EXPR function and arguments.
12836
12837 2010-04-22 Nick Clifton <nickc@redhat.com>
12838
12839 * config/stormy16/stormy16.c
12840 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
12841 * config/stormy16/stormy16.h: Tidy up formatting.
12842 (DONT_USE_BUILTIN_SETJMP): Remove definition.
12843 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
12844 (ineqbranchsi): Delete pattern.
12845 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
12846 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
12847 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12848 stormy16-lib2-ucmpsi2.c.
12849
12850 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12851
12852 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
12853 df_simulate_find_noclobber_defs as appropriate. Keep track of an
12854 extra set merge_set_noclobber, and use it to relax the final test
12855 slightly.
12856 * df.h (df_simulate_find_noclobber_defs): Declare.
12857 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
12858 conditional defs.
12859 (df_simulate_find_noclobber_defs): New function.
12860
12861 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
12862
12863 * config/i386/i386.md: Use {} around multi-line preparation statements.
12864
12865 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12866
12867 * c-tree.h (push_init_level, pop_init_level, set_init_index)
12868 (process_init_element): New argument of type struct obstack *.
12869
12870 * c-typeck.c (push_init_level, pop_init_level, set_designator)
12871 (set_init_index, set_init_label, set_nonincremental_init)
12872 (set_nonincremental_init_from_string, find_init_member)
12873 (output_init_element, output_pending_init_elements)
12874 (process_init_element): New argument braced_init_obstack. Pass it
12875 down.
12876 (push_range_stack, add_pending_init): New argument
12877 braced_init_obstack. Use obstack allocation.
12878
12879 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
12880 braced_init_obstack. Pass it down.
12881 (c_parser_braced_init): New variables ret, braced_init_obstack.
12882 Initialize obstack, pass it down and finally free it.
12883
12884 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12885
12886 PR middle-end/29274
12887 * tree-pass.h (pass_optimize_widening_mul): Declare.
12888 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12889 gate_optimize_widening_mul): New static functions.
12890 (pass_optimize_widening_mul): New.
12891 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12892 <case MULT_EXPR>: Remove support for widening multiplies.
12893 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12894 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12895 simplify_gen_unary rather than directly building extensions.
12896 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12897 WIDEN_MULT_EXPR.
12898 * expmed.c (expand_widening_mult): New function.
12899 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12900
12901 2010-04-21 Jan Hubicka <jh@suse.cz>
12902
12903 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12904 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12905 * lto-wpa-fixup.c: Remove.
12906 * Makefile.in (lto-wpa-fixup.o): Remove.
12907 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12908 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12909 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12910
12911 2010-04-21 Jan Hubicka <jh@suse.cz>
12912
12913 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12914 add write_optimization_summary, read_optimization_summary.
12915 (ipa_write_summaries_of_cgraph_node_set): Remove.
12916 (ipa_write_optimization_summaries): Declare.
12917 (ipa_read_optimization_summaries): Declare.
12918 * ipa-cp.c (pass_ipa_cp): Update.
12919 * ipa-reference.c (pass_ipa_reference): Update.
12920 * ipa-pure-const.c (pass_ipa_pure_const): Update.
12921 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12922 Update.
12923 * ipa-inline.c (pass_ipa_inline): Update.
12924 * ipa.c (pass_ipa_whole_program): Update.
12925 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12926 * passes.c (ipa_write_summaries_1): Do not test wpa.
12927 (ipa_write_optimization_summaries_1): New.
12928 (ipa_write_optimization_summaries): New.
12929 (ipa_read_summaries): Do not test ltrans.
12930 (ipa_read_optimization_summaries_1): New.
12931 (ipa_read_optimization_summaries): New.
12932
12933 2010-04-21 Jan Hubicka <jh@suse.cz>
12934
12935 * lto-cgraph.c (lto_output_node): Do not output comdat groups
12936 for boundary nodes.
12937 (output_cgraph): Do not arrange comdat groups for boundary nodes.
12938
12939 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12940
12941 PR debug/40040
12942 * dwarf2out.c (add_name_and_src_coords_attributes): Add
12943 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
12944
12945 2010-04-21 Jan Hubicka <jh@suse.cz>
12946
12947 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
12948
12949 2010-04-21 Jan Hubicka <jh@suse.cz>
12950
12951 * varpool.c (decide_is_variable_needed): Variable is always needed
12952 during ltrans.
12953
12954 2010-04-21 Jan Hubicka <jh@suse.cz>
12955
12956 * opts.c (decode_options): Enable pure-const pass for whopr.
12957
12958 2010-04-21 Jan Hubicka <jh@suse.cz>
12959
12960 * cgraph.c (dump_cgraph_node): Dump also assembler name.
12961 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
12962 at WPA dumping.
12963 (cgraph_decide_inlining): Do not expect callee to be removed in all
12964 cases.
12965
12966 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
12967
12968 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
12969
12970 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12971
12972 * config/i386/i386.md (x86_shrd): Add athlon_decode and
12973 amdfam10_decode attributes.
12974
12975 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12976
12977 PR middle-end/43570
12978 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
12979 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
12980 (lower_copyprivate_clauses): Use private var in outer
12981 context instead of original var. Make sure the types
12982 are correct for VLAs.
12983
12984 2010-04-21 Richard Guenther <rguenther@suse.de>
12985
12986 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
12987 to non-pointer objects.
12988
12989 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12990
12991 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
12992 last chain entry if it starts with the still current label.
12993 (add_location_or_const_value_attribute): Check that
12994 loc_list->first->next is NULL instead of comparing ->first with ->last.
12995 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12996 to add_var_loc_to_decl.
12997
12998 * dwarf2out.c (output_call_frame_info): For dw_cie_version
12999 >= 4 add also address size and segment size fields into CIE header.
13000
13001 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
13002 long as address size is the same as sizeof (void *) and
13003 segment size is 0.
13004 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
13005 address size or segment size is unexpected, return DW_EH_PE_omit.
13006 (classify_object_over_fdes): If get_cie_encoding returned
13007 DW_EH_PE_omit, return -1.
13008 (init_object): If classify_object_over_fdes returned -1,
13009 pretend there were no FDEs at all.
13010
13011 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
13012
13013 * config/i386/i386.md (bswap<mode>2): Macroize expander from
13014 bswap{si,di}2 using SWI48 mode iterator.
13015 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
13016 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
13017 set modrm attribute of bswap insn to 0 and remove length attribute.
13018 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
13019 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
13020 set mode attribute to <MODE> and remove length attribute.
13021
13022 2010-04-20 James E. Wilson <wilson@codesourcery.com>
13023
13024 PR rtl-optimization/43520
13025 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
13026 zero available registers.
13027
13028 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13029
13030 * builtins.c (fold_builtin_cproj): Fold more cases.
13031
13032 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13033
13034 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
13035 (fold_builtin_1): Fold builtin cproj.
13036 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
13037 Use ATTR_CONST_NOTHROW_LIST.
13038
13039 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
13040
13041 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
13042 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
13043 ffsi2_no_cmove for !TARGET_CMOVE.
13044 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
13045 (ffssi2): Remove expander.
13046 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
13047 mode iterator.
13048 (ctz<mode>2): Ditto from ctz{si,di}2.
13049 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
13050 mode iterator.
13051 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
13052 mode iterator.
13053
13054 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13055
13056 * dwarf2out.c (AT_linkage_name): Define.
13057 (clone_as_declaration): Handle DW_AT_linkage_name.
13058 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
13059 of DW_AT_MIPS_linkage_name.
13060 (move_linkage_attr): Likewise.
13061 (dwarf2out_finish): Likewise.
13062
13063 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
13064
13065 PR middle-end/41952
13066 * fold-const.c (fold_comparison): New folding rule.
13067
13068 2010-04-20 Anatoly Sokolov <aesok@post.ru>
13069
13070 * double-int.h (double_int_setbit): Declare.
13071 * double-int.c (double_int_setbit): New function.
13072 * rtl.h (immed_double_int_const): Declare.
13073 * emit-rtl.c (immed_double_int_const): New function.
13074 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
13075 and immed_double_int_const functions.
13076 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
13077 expand_copysign_bit): (Ditto.).
13078 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
13079 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
13080 * dojump.c (prefer_and_bit_test): (Ditto.).
13081 * expr.c (convert_modes, reduce_to_bit_field_precision,
13082 const_vector_from_tree): (Ditto.).
13083 * expmed.c (mask_rtx, lshift_value): (Ditto.).
13084
13085 2010-04-20 Jan Hubicka <jh@suse.cz>
13086
13087 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
13088 (dump_cgraph_node): Dump new flags.
13089 * cgraph.h (struct cgraph_node): Add flags
13090 reachable_from_other_partition and in_other_partition.
13091 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
13092 other partition can not be removed.
13093 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
13094 the other partition must be output; silence sanity checking on
13095 leaking functions bodies from other paritition.
13096 * lto-cgraph.c (reachable_from_other_partition_p): New function.
13097 (lto_output_node): Output new flags; do not sanity check that inline
13098 clones are output; drop lto_forced_extern_inline_p code; do not mock
13099 visibility flags at partition boundaries.
13100 (add_node_to): New function.
13101 (output_cgraph): Use it to sort functions so masters appear before
13102 clones.
13103 (input_overwrite_node): Input new flags.
13104 * passes.c (ipa_write_summaries): Do not call
13105 lto_new_extern_inline_states.
13106 * lto-section-out.c (forced_extern_inline,
13107 lto_new_extern_inline_states lto_delete_extern_inline_states,
13108 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
13109 * lto-streamer.h (lto_new_extern_inline_states,
13110 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
13111 lto_forced_extern_inline_p): Kill.
13112
13113 2010-04-20 Richard Guenther <rguenther@suse.de>
13114
13115 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
13116 from vars that can have pointers.
13117 (process_constraint): Dump useless constraints.
13118
13119 2010-04-20 Richard Guenther <rguenther@suse.de>
13120
13121 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
13122 (dump_sa_points_to_info): Remove asserts.
13123 (init_base_vars): nothing_id isn't an escape point nor does it
13124 have pointers.
13125
13126 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13127
13128 * tree.h (TYPE_REF_IS_RVALUE): Define.
13129 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
13130 should_move_die_to_comdat, prune_unused_types_walk): Handle
13131 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
13132 (modified_type_die, gen_reference_type_die): Emit
13133 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
13134 if TYPE_REF_IS_RVALUE and -gdwarf-4.
13135
13136 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13137
13138 PR target/43635
13139 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
13140 calls for -fpic -m31 if they have been sibcall optimized.
13141
13142 2010-04-19 James E. Wilson <wilson@codesourcery.com>
13143
13144 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
13145 ar.lc fixed and call-used.
13146
13147 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
13148
13149 2010-04-19 Jan Hubicka <jh@suse.cz>
13150
13151 * opts.c (decode_options): Disable whpr incompatible passes.
13152 * lto/lto.c (lto_1_to_1_map): Skip clones.
13153 (read_cgraph_and_symbols): Do not mark everything as needed.
13154 (do_whole_program_analysis): Do map only after optimizing;
13155 set proper cgraph_state; use passmanager.
13156
13157 2010-04-19 DJ Delorie <dj@redhat.com>
13158
13159 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
13160 POINTER_PLUS_EXPR and fix them.
13161
13162 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
13163
13164 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
13165 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
13166 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
13167 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
13168 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
13169 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
13170 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
13171 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
13172 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
13173 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
13174 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
13175
13176 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
13177
13178 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
13179 (check_cond_move_block): Likewise.
13180 (cond_move_process_if_block): Likewise.
13181 (noce_find_if_block): Improve formatting.
13182 (find_if_header): Pass 0 to memset and tweak conditions.
13183 (cond_exec_find_if_block): Fix long lines and tweak conditions.
13184
13185 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13186
13187 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
13188 for -gdwarf-4.
13189
13190 PR middle-end/43337
13191 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
13192 with non-local decl doesn't need chain.
13193
13194 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
13195
13196 * ira-color.c (allocno_reload_assign): Avoid accumulating
13197 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
13198
13199 2010-04-19 Martin Jambor <mjambor@suse.cz>
13200
13201 * gimple.h (create_tmp_reg): Declare.
13202 * gimplify.c (create_tmp_reg): New function.
13203 (gimplify_return_expr): Use create_tmp_reg.
13204 (gimplify_omp_atomic): Likewise.
13205 (gimple_regimplify_operands): Likewise.
13206 * tree-dfa.c (make_rename_temp): Likewise.
13207 * tree-predcom.c (predcom_tmp_var): Likewise.
13208 (reassociate_to_the_same_stmt): Likewise.
13209 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
13210 (get_replaced_param_substitute): Likewise.
13211 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13212 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
13213 * tree-ssa-pre.c (get_representative_for): Likewise.
13214 (create_expression_by_pieces): Likewise.
13215 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13216 (create_tailcall_accumulator): Likewise.
13217
13218 2010-04-19 Martin Jambor <mjambor@suse.cz>
13219
13220 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
13221 new_stmt.
13222 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
13223
13224 2010-04-19 Richard Guenther <rguenther@suse.de>
13225
13226 PR tree-optimization/43796
13227 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
13228 from SCEV in the lattice.
13229 (vrp_visit_phi_node): Dump change.
13230
13231 2010-04-19 Richard Guenther <rguenther@suse.de>
13232
13233 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
13234 * configure: Re-generated.
13235
13236 2010-04-19 Richard Guenther <rguenther@suse.de>
13237
13238 PR tree-optimization/43783
13239 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
13240 constant ARRAY_REF operands two and three if possible.
13241
13242 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
13243
13244 PR target/43766
13245 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
13246
13247 2010-04-19 Jie Zhang <jie@codesourcery.com>
13248
13249 PR target/43662
13250 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
13251
13252 2010-04-19 Ira Rosen <irar@il.ibm.com>
13253
13254 PR tree-optimization/37027
13255 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
13256 and macro to access it.
13257 (vectorizable_reduction): Add argument.
13258 (vect_get_slp_defs): Likewise.
13259 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
13260 statements for possible use in SLP.
13261 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
13262 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
13263 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
13264 add new argument.
13265 (vectorizable_reduction): Likewise.
13266 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
13267 vect_get_slp_defs.
13268 (vectorizable_type_demotion, vectorizable_type_promotion,
13269 vectorizable_store): Likewise.
13270 (vect_analyze_stmt): Update call to vectorizable_reduction.
13271 (vect_transform_stmt): Likewise.
13272 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
13273 (vect_build_slp_tree): Fix indentation. Check that there are no loads
13274 from different interleaving chains in same node.
13275 (vect_slp_rearrange_stmts): New function.
13276 (vect_supported_load_permutation_p): Allow load permutations for
13277 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
13278 inside SLP nodes if necessary.
13279 (vect_analyze_slp_instance): Handle reductions.
13280 (vect_analyze_slp): Try to build SLP instances originating from groups
13281 of reductions.
13282 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
13283 (vect_get_constant_vectors): Create initial vectors for reductions
13284 according to reduction code. Add new argument.
13285 (vect_get_slp_defs): Add new argument, pass it to
13286 vect_get_constant_vectors.
13287 (vect_schedule_slp_instance): Remove SLP tree root statements.
13288
13289 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13290
13291 * tree.h (ENUM_IS_SCOPED): Define.
13292 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
13293 for ENUM_IS_SCOPED enums.
13294
13295 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
13296
13297 * fold-const.c (fold_comparison): Use ssizetype.
13298 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13299 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
13300 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
13301 * tree-object-size.c (compute_object_sizes): Use size_type_node.
13302
13303 * tree.h (initialize_sizetypes): Remove parameter.
13304 (build_common_tree_nodes): Remove second parameter.
13305 * stor-layout.c (initialize_sizetypes): Remove parameter.
13306 Always create an unsigned type.
13307 (set_sizetype): Assert that the passed type is unsigned and simplify.
13308 * tree.c (build_common_tree_nodes): Remove second parameter.
13309 Adjust call to initialize_sizetypes.
13310 * c-decl.c (c_init_decl_processing): Remove second argument in call to
13311 build_common_tree_nodes.
13312
13313 2010-04-18 Matthias Klose <doko@ubuntu.com>
13314
13315 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13316
13317 2010-04-18 Ira Rosen <irar@il.ibm.com>
13318
13319 PR tree-optimization/43771
13320 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13321 load permutation doesn't have gaps.
13322
13323 2010-04-18 Jan Hubicka <jh@suse.cz>
13324
13325 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13326 (sse_prologue_save_insn expander): Use new pattern.
13327 (sse_prologue_save_insn1): New pattern and splitter.
13328 (sse_prologue_save_insn): Update to deal also with 64bit aligned
13329 blocks.
13330 * i386.c (setup_incoming_varargs_64): Do not compute jump
13331 destination here.
13332 (ix86_gimplify_va_arg): Update alignment needed.
13333 (ix86_local_alignment): Do not align all local arrays to 128bit.
13334
13335 2010-04-17 Jan Hubicka <jh@suse.cz>
13336
13337 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13338
13339 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13340
13341 * arm.md (negdi2): Remove redundant code to force values into a
13342 register.
13343
13344 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13345
13346 * arm/bpabi.S: Add EABI alignment attributes to objects.
13347 * arm/bpabi-v6m.S: Likewise.
13348 * arm/crti.asm: Likewise.
13349 * arm/crtn.asm: Likewise.
13350 * arm/lib1funcs.asm: Likewise.
13351 * arm/libunwind.S: Likewise.
13352
13353 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13354
13355 * arm-protos.h (tune_params): New structure.
13356 * arm.c (current_tune): New variable.
13357 (arm_constant_limit): Delete.
13358 (struct processors): Add pointer to the tune parameters.
13359 (arm_slowmul_tune): New tuning option.
13360 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13361 (all_cores): Adjust to pick up the tuning model.
13362 (arm_constant_limit): New function.
13363 (arm_override_options): Select the appropriate tuning model. Delete
13364 initialization of arm_const_limit.
13365 (arm_split_constant): Use the new constant-limit model.
13366 (arm_rtx_costs): Pick up the current tuning model.
13367 * arm.md (is_strongarm, is_xscale): Delete.
13368 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13369 for Xscale variant architectures.
13370 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13371
13372 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13373
13374 * config/arm/arm.c (arm_gen_constant): Remove unused variable
13375 can_shift.
13376 (arm_rtx_costs_1): Remove unused variable extra_cost.
13377 (arm_unwind_emit_set): Use variable offset.
13378 (thumb1_output_casesi): Remove unused variable flags.
13379
13380 2010-04-16 Jeff Law <law@redhat.com>
13381
13382 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13383 needing assignment rather than doing a two-phase assignment. Remove
13384 unused variable 'm'.
13385
13386 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13387
13388 PR bootstrap/43767
13389 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13390
13391 2010-04-16 Doug Kwan <dougkwan@google.com>
13392
13393 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13394 (next_operand_entry_id): New static variable.
13395 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13396 (add_to_ops_vec): Assigned unique ID to operand entry.
13397 (struct oecount_s): New field ID.
13398 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13399 (undistribute_ops_list): Assign unique IDs to oecounts.
13400 (init_reassoc): reset next_operand_entry_id.
13401
13402 2010-04-16 Doug Kwan <dougkwan@google.com>
13403
13404 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13405 missing left parenthesis.
13406
13407 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
13408
13409 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13410 *btdi_rex64 using SWI48 mode iterator.
13411 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13412 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13413 *jcc_btdi_mask_rex64.
13414
13415 2010-04-16 Anatoly Sokolov <aesok@post.ru>
13416
13417 * double-int.h (tree_to_double_int): Convert to macro.
13418 * double-int.c (tree_to_double_int): Remove.
13419
13420 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13421
13422 PR debug/43762
13423 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13424 with want_address 2 and in case a single element list might be
13425 possible, call it again with want_address 0.
13426
13427 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13428
13429 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13430 case 'W' print operands for HI mode.
13431 * config/h8300/h8300.h (Y0, Y2) : New constraints.
13432 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13433 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13434 * config/h8300/predicate.md (bit_register_indirect_operand): New.
13435
13436 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13437
13438 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13439 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13440 #xx:3 and #xx:4 mode.
13441
13442 * config/h8300/h8300.md (inverted load with HImode dest): Add
13443 support for H8300SX.
13444
13445 * config/h8300/predicate.md (bit_operand): Allow immediate values that
13446 satisfy 'U' constraint.
13447
13448 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13449
13450 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13451 * configure: Regenerate.
13452 * config.in: Regenerate.
13453 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13454 works.
13455
13456 2010-04-16 Richard Guenther <rguenther@suse.de>
13457
13458 * tree.h (struct tree_decl_minimal): Move pt_uid ...
13459 (struct tree_decl_common): ... here.
13460 (DECL_PT_UID): Adjust.
13461 (SET_DECL_PT_UID): Likewise.
13462 (DECL_PT_UID_SET_P): Likewise.
13463
13464 2010-04-16 Richard Guenther <rguenther@suse.de>
13465
13466 PR tree-optimization/43572
13467 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13468 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13469 * tree-flow.h (is_call_clobbered): Remove.
13470 * tree-flow-inline.h (is_call_clobbered): Likewise.
13471 * tree-dfa.c (dump_variable): Do not dump call clobber state.
13472 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13473 (execute_return_slot_opt): Adjust.
13474 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13475 check for call clobbered vars here.
13476 (find_tail_calls): Move tailcall verification to the
13477 proper place.
13478
13479 2010-04-16 Diego Novillo <dnovillo@google.com>
13480
13481 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13482
13483 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13484
13485 PR target/40603
13486 * config/arm/arm.md (cbranchqi4): New pattern.
13487 * config/arm/predicates.md (const0_operand,
13488 cbranchqi4_comparison_operator): New predicates.
13489
13490 2010-04-16 Richard Guenther <rguenther@suse.de>
13491
13492 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13493 (dump_gimple_stmt): Likewise.
13494
13495 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13496
13497 * recog.h (struct recog_data): New field is_operator.
13498 (struct insn_operand_data): New field is_operator.
13499 * recog.c (extract_insn): Set recog_data.is_operator.
13500 * genoutput.c (output_operand_data): Emit code to set the
13501 is_operator field.
13502 * reload.c (find_reloads): Use it rather than testing for an
13503 empty constraint string.
13504
13505 PR target/41514
13506 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13507 If the previous insn is a cbranchsi4_insn with the same arguments,
13508 omit the compare instruction.
13509
13510 * config/arm/arm.md (addsi3_cbranch): If destination is a high
13511 register, inputs must be low registers and we need a low register
13512 scratch. Handle alternative 2 like alternative 3.
13513
13514 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13515
13516 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13517 don't call get_addr on both. If one expression is a VALUE and
13518 the other a REG, check VALUE's locs if the REG isn't among them.
13519
13520 2010-04-16 Christian Bruel <christian.bruel@st.com>
13521
13522 * config/sh/sh.h (sh_frame_pointer_required): New function.
13523 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
13524 (flag_omit_frame_pointer) Set.
13525 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
13526 (rounded_frame_size): Adjust size with outgoing_args_size.
13527 (sh_set_return_address): Must return from stack pointer.
13528 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
13529 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
13530 (ACCUMULATE_OUTGOING_ARGS): Define.
13531 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
13532 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
13533
13534 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13535
13536 PR target/43471
13537 * config/sh/sh.c (sh_legitimize_reload_address): Use
13538 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
13539 Remove a unneeded check for offset_base.
13540
13541 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
13542
13543 * configure: Regenerated.
13544
13545 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13546
13547 * config/s390/s390.c (s390_call_save_register_used): Switch back
13548 to HARD_REGNO_NREGS.
13549
13550 2010-04-15 Richard Guenther <rguenther@suse.de>
13551
13552 * alias.c (alias_set_subset_of): Handle alias-set zero
13553 child properly.
13554
13555 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
13556 Julian Brown <julian@codesourcery.com>
13557
13558 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
13559 alternatives according to use of high and low regs.
13560 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13561 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
13562 optimizing for size on Thumb-2.
13563
13564 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
13565
13566 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
13567
13568 2010-04-15 Richard Guenther <rguenther@suse.de>
13569
13570 * tree-ssa-structalias.c (struct variable_info): Add
13571 is_fn_info flag.
13572 (new_var_info): Initialize it.
13573 (dump_constraints): Support printing last added constraints.
13574 (debug_constraints): Adjust.
13575 (dump_constraint_graph): Likewise.
13576 (make_heapvar_for): Check for NULL cfun.
13577 (get_function_part_constraint): New function.
13578 (get_fi_for_callee): Likewise.
13579 (find_func_aliases): Properly implement IPA PTA constraints.
13580 (process_ipa_clobber): New function.
13581 (find_func_clobbers): Likewise.
13582 (insert_into_field_list_sorted): Remove.
13583 (create_function_info_for): Properly allocate vars for IPA mode.
13584 Do not use insert_into_field_list_sorted.
13585 (create_variable_info_for): Properly generate constraints for
13586 global vars in IPA mode.
13587 (dump_solution_for_var): Always dump the solution.
13588 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13589 (find_what_var_points_to): Adjust.
13590 (pt_solution_set): Change.
13591 (pt_solution_ior_into): New function.
13592 (pt_solution_empty_p): Export.
13593 (pt_solution_includes_global): Adjust.
13594 (pt_solution_includes_1): Likewise.
13595 (pt_solutions_intersect_1): Likewise.
13596 (dump_sa_points_to_info): Check some invariants.
13597 (solve_constraints): Move constraint dumping ...
13598 (compute_points_to_sets): ... here.
13599 (ipa_pta_execute): ... and here.
13600 (compute_may_aliases): Do not re-compute points-to info
13601 locally if IPA info is available.
13602 (ipa_escaped_pt): New global var.
13603 (ipa_pta_execute): Properly implement IPA PTA.
13604 * tree-into-ssa.c (dump_decl_set): Support dumping
13605 decls not in referenced-vars.
13606 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13607 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13608 (dump_points_to_solution): Likewise.
13609 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13610 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13611 (remap_gimple_stmt): Reset call clobber/use information if necessary.
13612 (copy_decl_to_var): Copy DECL_PT_UID.
13613 (copy_result_decl_to_var): Likewise.
13614 * tree.c (make_node_stat): Initialize DECL_PT_UID.
13615 (copy_node_stat): Copy it.
13616 * tree.h (DECL_PT_UID): New macro.
13617 (SET_DECL_PT_UID): Likewise.
13618 (DECL_PT_UID_SET_P): Likewise.
13619 (struct tree_decl_minimal): Add pt_uid member.
13620 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13621 (pt_solution_empty_p): Declare.
13622 (pt_solution_set): Adjust.
13623 (ipa_escaped_pt): Declare.
13624 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13625 * gimple-pretty-print.c (pp_points_to_solution): New function.
13626 (dump_gimple_call): Dump call clobber/use information.
13627 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13628 * tree-pass.h (TDF_ALIAS): New dump option.
13629 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13630 * doc/invoke.texi (-fipa-pta): Update documentation.
13631
13632 2010-04-15 Richard Guenther <rguenther@suse.de>
13633
13634 * Makefile.in (OBJS-common): Add gimple-fold.o.
13635 (gimple-fold.o): New rule.
13636 * tree.h (maybe_fold_offset_to_reference,
13637 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13638 prototypes ...
13639 * gimple.h: ... here.
13640 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13641 may_propagate_address_into_dereference): Move prototypes ...
13642 * gimple.h: ... here.
13643 * tree-ssa-ccp.c (get_symbol_constant_value,
13644 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13645 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13646 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13647 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13648 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13649 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13650 gimplify_and_update_call_from_tree): Move ...
13651 * gimple-fold.c: ... here. New file.
13652 (ccp_fold_builtin): Rename to ...
13653 (gimple_fold_builtin): ... this.
13654 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13655
13656 2010-04-15 Richard Guenther <rguenther@suse.de>
13657
13658 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
13659 fit_double_type, force_fit_type_double, add_double_with_sign,
13660 neg_double, mul_double_with_sign, lshift_double, rshift_double,
13661 lrotate_double, rrotate_double, div_and_round_double): Move ...
13662 * double-int.c: ... here.
13663 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
13664 add_double, neg_double, mul_double_with_sign, mul_double,
13665 lshift_double, rshift_double, lrotate_double, rrotate_double,
13666 div_and_round_double): Move prototypes ...
13667 * double-int.h: ... here.
13668
13669 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
13670
13671 PR target/43742
13672 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
13673 matching constraints to ensure inputs match the output.
13674
13675 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13676
13677 PR target/43742
13678 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
13679 in an input-only operand.
13680
13681 2010-04-15 Anatoly Sokolov <aesok@post.ru>
13682
13683 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
13684 (double_int_not, double_int_lshift, double_int_rshift): Declare.
13685 (double_int_negative_p): Convert to static inline function.
13686 * double-int.c (double_int_lshift, double_int_lshift): New functions.
13687 (double_int_negative_p): Remove.
13688 * tree.h (lshift_double, rshift_double):
13689 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
13690 * fold-const.c (fold_convert_const_int_from_real,
13691 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
13692 (lshift_double): Change type of arith argument to bool.
13693 (rshift_double): Change type of arith argument to bool. Correct
13694 comment.
13695 * expmed.c (mask_rtx, lshift_value): (Ditto.).
13696
13697 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
13698
13699 PR target/21803
13700 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
13701 at the start and end of the then/else blocks, and omit them from the
13702 conversion.
13703 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
13704 argument; all callers changed. Pass zero to old_insns_match_p instead.
13705 (flow_find_head_matching_sequence): New function.
13706 (old_insns_match_p): Check REG_EH_REGION notes for calls.
13707 * basic-block.h (flow_find_cross_jump,
13708 flow_find_head_matching_sequence): Declare functions.
13709
13710 2010-04-14 Jason Merrill <jason@redhat.com>
13711
13712 PR c++/36625
13713 * c-common.c (attribute_takes_identifier_p): New fn.
13714 * c-common.h: Declare it.
13715
13716 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13717
13718 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
13719 splitter condition.
13720 (*udivmod<mode>4): Ditto.
13721
13722 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13723
13724 * config/i386/i386.md (maxmin_int): Rename code attribute from
13725 maxminiprefix and update all users.
13726 (maxmin_float): Ditto from maxminfprefix.
13727 (logic): Ditto from logicprefix.
13728 (absneg_mnemonic): Ditto from absnegprefix.
13729 * config/i386/mmx.md: Update all users of maxminiprefix,
13730 maxminfprefix and logicprefix for rename.
13731 * config/i386/sse.md: Ditto.
13732 * config/i386/sync.md (sync_<code><mode>): Update for
13733 logicprefix rename.
13734
13735 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13736
13737 PR 42966
13738 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
13739 warnings converted to errors.
13740
13741 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13742
13743 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
13744 used insn_type variable.
13745 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
13746 to avoid set-but-not-used warning.
13747
13748 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13749
13750 * df-core.c (df_ref_debug): Change format string placeholder
13751 from 0x%x to %#x.
13752 * dwarf2asm.c (dw2_asm_output_data_raw,
13753 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
13754 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
13755 * dwarf2out.c (output_cfi, output_cfi_directive,
13756 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
13757 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
13758 Ditto.
13759 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
13760 * print-rtl.c (print_rtx): Ditto.
13761
13762 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13763
13764 PR middle-end/42694
13765 * builtins.c (expand_builtin_pow_root): New function to expand pow
13766 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
13767 series of sqrt and cbrt calls under -ffast-math.
13768 (expand_builtin_pow): Call it.
13769
13770 2010-04-14 Michael Matz <matz@suse.de>
13771
13772 PR tree-optimization/42963
13773 * tree-cfg.c (touched_switch_bbs): New static variable.
13774 (group_case_labels_stmt): New function broken out from ...
13775 (group_case_labels): ... here, use the above.
13776 (start_recording_case_labels): Allocate touched_switch_bbs.
13777 (end_recording_case_labels): Deallocate it, call
13778 group_case_labels_stmt.
13779 (gimple_redirect_edge_and_branch): Remember index of affected BB.
13780
13781 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13782
13783 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
13784 from insn template.
13785
13786 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13787
13788 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
13789
13790 2010-04-13 Jan Hubicka <jh@suse.cz>
13791
13792 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
13793 of optimized out static functions.
13794 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
13795 cost computation. Also sanity check for overflows.
13796 (update_caller_keys): Update cgraph_edge_badness call; properly
13797 update fibheap and sanity check that it is up to date.
13798 (add_new_edges_to_heap): Update cgraph_edge_badness.
13799 (cgraph_decide_inlining_of_small_function): Likewise;
13800 add sanity checking that badness in heap is up to date;
13801 improve dumping of reason; Update badness of calls to the
13802 offline copy of function currently inlined; dump badness
13803 of functions not inlined because of unit growth limits.
13804
13805 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
13806
13807 PR middle-end/32628
13808 * c-common.c (pointer_int_sum): Disregard overflow that occured only
13809 because of sign-extension change when converting to sizetype here...
13810 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
13811
13812 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
13813 the folding to constants. Remove redundant final conversion.
13814 (fold_binary) <associate>: Do not associate if the re-association of
13815 constants alone overflows.
13816 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
13817 to the end of the list.
13818 (multiple_of_p) <COND_EXPR>: New case.
13819
13820 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13821
13822 * opt-functions.awk (opt_sanitized_name): New.
13823 (opt_enum): New.
13824 * optc-gen.awk: Use it
13825 * opth-gen.awk: Use it.
13826
13827 2010-04-13 Martin Jambor <mjambor@suse.cz>
13828
13829 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
13830 (sra_modify_assign): Delete stmts loading dead data even if racc has no
13831 children. Call replace_uses_with_default_def_ssa_name to handle
13832 SSA_NAES on lhs.
13833
13834 2010-04-13 Michael Matz <matz@suse.de>
13835
13836 PR middle-end/43730
13837 * builtins.c (expand_builtin_interclass_mathfn): Also create
13838 a register if the predicate doesn't match.
13839
13840 2010-04-13 Diego Novillo <dnovillo@google.com>
13841
13842 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
13843 * c-pch.c: Include timevar.h.
13844 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
13845 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
13846 * ggc-common.c: Include timevar.h.
13847 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
13848 * timevar.def (TV_PCH_SAVE): Define.
13849 (TV_PCH_CPP_SAVE): Define.
13850 (TV_PCH_PTR_REALLOC): Define.
13851 (TV_PCH_PTR_SORT): Define.
13852 (TV_PCH_RESTORE): Define.
13853 (TV_PCH_CPP_RESTORE): Define.
13854
13855 2010-04-13 Michael Matz <matz@suse.de>
13856
13857 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
13858 into MINUS_EXPRs.
13859 (can_reassociate_p): New function.
13860 (break_up_subtract_bb, reassociate_bb): Use it.
13861
13862 2010-04-13 Richard Guenther <rguenther@suse.de>
13863
13864 PR bootstrap/43737
13865 * builtins.c (c_readstr): Fix assert.
13866
13867 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
13868
13869 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
13870 when generating cltd insn.
13871
13872 (*ashl<mode>3_1): Remove special handling for register operand 2.
13873 (*ashlsi3_1_zext): Ditto.
13874 (*ashlhi3_1): Ditto.
13875 (*ashlhi3_1_lea): Ditto.
13876 (*ashlqi3_1): Ditto.
13877 (*ashlqi3_1_lea): Ditto.
13878 (*<shiftrt_insn><mode>3_1): Ditto.
13879 (*<shiftrt_insn>si3_1_zext): Ditto.
13880 (*<shiftrt_insn>qi3_1_slp): Ditto.
13881 (*<rotate_insn><mode>3_1): Ditto.
13882 (*<rotate_insn>si3_1_zext): Ditto.
13883 (*<rotate_insn>qi3_1_slp): Ditto.
13884
13885 2010-04-13 Richard Guenther <rguenther@suse.de>
13886
13887 * tree-ssa-structalias.c (callused_id): Remove.
13888 (call_stmt_vars): New.
13889 (get_call_vi): Likewise.
13890 (lookup_call_use_vi): Likewise.
13891 (lookup_call_clobber_vi): Likewise.
13892 (get_call_use_vi): Likewise.
13893 (get_call_clobber_vi): Likewise.
13894 (make_transitive_closure_constraints): Likewise.
13895 (handle_const_call): Adjust to do per-call call-used handling.
13896 (handle_pure_call): Likewise.
13897 (find_what_var_points_to): Remove general callused handling.
13898 (init_base_vars): Likewise.
13899 (init_alias_vars): Initialize call_stmt_vars.
13900 (compute_points_to_sets): Process call-used and call-clobbered
13901 vars for call statements.
13902 (delete_points_to_sets): Free call_stmt_vars.
13903
13904 2010-04-13 Richard Guenther <rguenther@suse.de>
13905
13906 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13907 Only add RW dependence for dependence distance zero.
13908 Adjust maximal vectorization factor according to dependences.
13909 Move alignment handling ...
13910 (vect_find_same_alignment_drs): ... here. New function.
13911 (vect_analyze_data_ref_dependences): Adjust.
13912 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13913 (vect_analyze_data_refs): Adjust minimal vectorization factor
13914 according to data references.
13915 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13916 dependences before determining the vectorization factor.
13917 Analyze alignment after determining the vectorization factor.
13918 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13919 dependences before alignment.
13920 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13921 Adjust prototype.
13922 (vect_analyze_data_refs): Likewise.
13923 (MAX_VECTORIZATION_FACTOR): New define.
13924
13925 2010-04-13 Duncan Sands <baldrick@free.fr>
13926
13927 * except.h (lang_eh_type_covers): Remove.
13928 * except.c (lang_eh_type_covers): Likewise.
13929
13930 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13931 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13932
13933 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
13934 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
13935 UNITS_PER_LONG where it is ABI relevant.
13936 (s390_return_addr_rtx): Likewise.
13937 (s390_back_chain_rtx): Likewise.
13938 (s390_frame_area): Likewise.
13939 (s390_frame_info): Likewise.
13940 (s390_initial_elimination_offset): Likewise.
13941 (save_gprs): Likewise.
13942 (s390_emit_prologue): Likewise.
13943 (s390_emit_epilogue): Likewise.
13944 (s390_function_arg_advance): Likewise.
13945 (s390_function_arg): Likewise.
13946 (s390_va_start): Likewise.
13947 (s390_gimplify_va_arg): Likewise.
13948 (s390_function_profiler): Likewise.
13949 (s390_optimize_prologue): Likewise.
13950 (s390_rtx_costs): Likewise.
13951 (s390_secondary_reload): Likewise.
13952 (s390_promote_function_mode): Likewise.
13953 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
13954 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
13955 registers available.
13956 (s390_unwind_word_mode): New function.
13957 (s390_function_value): Split 64 bit values into register pair if
13958 used as return value.
13959 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
13960 function call parameters. Handle parallels.
13961 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
13962 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
13963 (DWARF_CIE_DATA_ALIGNMENT): New macro.
13964 (s390_expand_setmem): Remove unused variable src_addr.
13965 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
13966 deal with 64 bit registers.
13967 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
13968 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
13969 (UNITS_PER_LONG): New macro.
13970 * libjava/include/s390-signal.h: Define extended ucontext
13971 structure containing the upper halfs of the 64 bit registers.
13972
13973 2010-04-13 Simon Baldwin <simonb@google.com>
13974
13975 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
13976
13977 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
13978
13979 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
13980 rvalue on the RHS if the LHS is of a non-renamable type.
13981 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
13982
13983 2010-04-13 Matthias Klose <doko@ubuntu.com>
13984
13985 * gcc.c (cc1_options): Handle -iplugindir before processing
13986 the cc1 spec. Only add -iplugindir once.
13987 (cpp_unique_options): Add -iplugindir option if -fplugin* options
13988 found.
13989 * common.opt (iplugindir): Remove `Separate' property, initialize.
13990 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13991 option.
13992 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13993 (distclean): Remove plugin dir.
13994 * doc/invoke.texi: Document -iplugindir.
13995
13996 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
13997
13998 * doc/plugins.texi (Loading Plugins): Document short
13999 -fplugin=foo option.
14000 (Plugin API): Mention default_plugin_dir_name function.
14001
14002 * gcc.c (find_file_spec_function): Add new declaration.
14003 (static_spec_func): Use it for "find-file".
14004 (find_file_spec_function): Add new function.
14005 (cc1_options): Add -iplugindir option if -fplugin* options found.
14006
14007 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
14008
14009 * plugin.c (add_new_plugin): Updated comment, and handle short
14010 plugin name.
14011 (default_plugin_dir_name): Added new function.
14012
14013 * common.opt (iplugindir): New option to set the plugin directory.
14014
14015 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
14016
14017 * config/i386/i386.md (any_rotate): New code iterator.
14018 (rotate_insn): New code attribute.
14019 (rotate): Ditto.
14020 (SWIM124): New mode iterator.
14021 (<rotate_insn>ti3): New expander.
14022 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
14023 any_rotate code iterator.
14024 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
14025 using any_rotate code iterator and SWIM124 mode iterator.
14026 (ix86_rotlti3): New insn_and_split pattern.
14027 (ix86_rotrti3): Ditto.
14028 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
14029 ix86_rotl{di,ti}3 patterns.
14030 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
14031 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
14032 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
14033 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
14034 code iterator and SWI mode iterator.
14035 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
14036 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
14037 code iterator.
14038 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
14039 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
14040 (bswap rotatert splitter): Add splitter.
14041 (bswap splitter): Macroize splitter using any_rotate code iterator.
14042 Add insn predicate to split only for TARGET_USE_XCHGB or when
14043 optimizing function for size.
14044
14045 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14046
14047 * config/pa/pa.c (emit_move_sequence): Remove use of
14048 deleted variable flag_argument_noalias.
14049
14050 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14051
14052 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
14053 configurations.
14054 Add to unsupported targets list.
14055 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
14056 sparc*-sun-solaris2.[567]* from target lists.
14057 * configure: Regenerate.
14058 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
14059 removal.
14060 Remove Solaris 7 patch references.
14061 (Specific, sparc-sun-solaris2.7): Removed.
14062 (sparc-sun-solaris2*): Update Solaris 7 example.
14063 (sparc64-*-solaris2*): Likewise.
14064
14065 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14066
14067 * config.build (alpha*-dec-osf4*): Remove.
14068 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
14069 of obsolete configurations.
14070 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
14071 support.
14072 * config/alpha/t-osf4: Renamed to ...
14073 * config/alpha/t-osf5: ... this.
14074 * config/alpha/osf.h: Renamed to ...
14075 * config/alpha/osf5.h: ... this.
14076 Merged old osf5.h contents.
14077 Update comments.
14078 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
14079 (EXTRA_SPECS): Removed.
14080 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
14081 reflect removal of Tru64 UNIX V4.0/V5.0 support.
14082 Document that.
14083
14084 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14085
14086 * doc/contrib.texi (Contributors, Rainer Orth): Update.
14087
14088 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
14089
14090 PR/43702
14091 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
14092 __thiscall convention.
14093
14094 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14095
14096 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
14097 orig_base.
14098 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
14099
14100 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14101
14102 * function.c (assign_parms_initialize_all): Add unused attribute
14103 to fntype.
14104
14105 2010-04-12 Richard Guenther <rguenther@suse.de>
14106
14107 * gsstruct.def (GSS_CALL): New.
14108 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
14109 * gimple.h: Include tree-ssa-alias.h.
14110 (struct gimple_statement_call): New.
14111 (union gimple_statement_struct_d): Add gimple_call member.
14112 (gimple_call_reset_alias_info): Declare.
14113 (gimple_call_use_set): New function.
14114 (gimple_call_clobber_set): Likewise.
14115 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
14116 * gimple.c (gimple_call_reset_alias_info): New function.
14117 (gimple_build_call_1): Call it.
14118 * lto-streamer-in.c (input_gimple_stmt): Likewise.
14119 * tree-inline.c (remap_gimple_stmt): Likewise.
14120 (expand_call_inline): Remove callused handling.
14121 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
14122 * tree-dfa.c (dump_variable): Likewise.
14123 * tree-parloops.c (parallelize_loops): Likewise.
14124 * tree-ssa.c (init_tree_ssa): Likewise.
14125 (delete_tree_ssa): Likewise.
14126 * tree-flow-inline.h (is_call_used): Remove.
14127 * tree-flow.h (struct gimple_df): Remove callused member.
14128 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
14129 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
14130 (ref_maybe_used_by_call_p_1): Simplify.
14131 (call_may_clobber_ref_p_1): Likewise.
14132 * tree-ssa-structalias.c (compute_points_to_sets): Set
14133 the call stmt used and clobbered sets.
14134 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
14135 (find_tail_calls): Verify the tail call.
14136
14137 2010-04-12 Richard Guenther <rguenther@suse.de>
14138
14139 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
14140 single-iteration always-inline inlining.
14141 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
14142 (cgraph_decide_inlining): Do not handle always-inline specially.
14143 (try_inline): Remove always-inline cycle detection special case.
14144 Do not recurse on always-inlines.
14145 (cgraph_early_inlining): Do not iterate if not optimizing.
14146 (cgraph_gate_early_inlining): remove.
14147 (pass_early_inline): Run unconditionally.
14148 (gate_cgraph_decide_inlining): New function.
14149 (pass_ipa_inline): Use it. Do not run the IPA inliner if
14150 not inlining or optimizing.
14151 (cgraph_decide_inlining_of_small_functions): Also consider
14152 always-inline functions.
14153 (cgraph_default_inline_p): Return true for nodes which should
14154 disregard inline limits.
14155 (estimate_function_body_sizes): Assume zero size and time for
14156 nodes which are marked as disregarding inline limits.
14157 (cgraph_decide_recursive_inlining): Do not perform recursive
14158 inlining on always-inline nodes.
14159
14160 2010-04-12 Jakub Jelinek <jakub@redhat.com>
14161
14162 PR bootstrap/43699
14163 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
14164 for exprs satisfying handled_component_p.
14165
14166 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
14167
14168 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
14169 non-constant aggregate elements.
14170
14171 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
14172 is a real initialization.
14173
14174 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
14175
14176 PR c/36774
14177 * c-decl.c (start_function): Move forward check for nested function.
14178
14179 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
14180
14181 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
14182 * config/sh/sh.c: Include reload.h.
14183 (sh_legitimize_reload_address): New.
14184 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
14185 sh_legitimize_reload_address.
14186
14187 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14188
14189 * config/sh/sh.md (*movqi_pop): New insn pattern.
14190 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
14191
14192 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14193
14194 * config/i386/i386.md (any_shiftrt): New code iterator.
14195 (shiftrt_insn): New code attribute.
14196 (shiftrt): Ditto.
14197 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
14198 using any_shiftrt code iterator.
14199 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
14200 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
14201 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
14202 pattern from corresponding peephole2 patterns.
14203 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
14204 using any_shiftrt code iterator.
14205 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
14206 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
14207 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
14208 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
14209 *{ashr,lshr}<mode>3_cmp_zext.
14210 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
14211
14212 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14213
14214 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
14215 scratch register.
14216 (*lshr<mode>3_cconly): Ditto.
14217
14218 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14219
14220 * config/i386/i386.md (lshr<mode>3): Macroize expander from
14221 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14222 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14223 pattern from *lshr{di,ti}3_1 and corresponding splitters using
14224 DWI mode iterator.
14225 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14226 from corresponding peephole2 patterns.
14227 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
14228 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
14229 and *lshrdi3_1_rex64 using SWI mode iterator.
14230 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
14231 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
14232 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
14233 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
14234 and *lshrdi3_cmp_rex64 using SWI mode iterator.
14235 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
14236 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
14237 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
14238 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
14239 SWI mode iterator.
14240
14241 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
14242
14243 * config/i386/i386.md (ashr<mode>3): Macroize expander from
14244 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14245 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14246 pattern from *ashr{di,ti}3_1 and corresponding splitters using
14247 DWI mode iterator.
14248 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14249 from corresponding peephole2 patterns.
14250 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
14251 (ashrsi3_cvt): Rename from ashrsi3_31.
14252 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
14253 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
14254 and x86_64_shift_adj_3 using SWI48 mode iterator.
14255 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
14256 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
14257 and *ashrdi3_1_rex64 using SWI mode iterator.
14258 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
14259 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
14260 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
14261 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
14262 and *ashrdi3_cmp_rex64 using SWI mode iterator.
14263 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
14264 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
14265 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
14266 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
14267 SWI mode iterator.
14268 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
14269 * config/i386/i386.c (ix86_split_ashr): Update for renamed
14270 x86_shift<mode>_adj_3 expanders.
14271
14272 2010-04-10 Wei Guozhi <carrot@google.com>
14273
14274 PR target/42601
14275 * config/arm/arm.c (arm_pic_static_addr): New function.
14276 (legitimize_pic_address): Call arm_pic_static_addr when it detects
14277 a static symbol.
14278 (arm_output_addr_const_extra): Output expression for new pattern.
14279 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
14280
14281 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
14282
14283 * ira-costs.c (record_reg_classes): Ignore alternatives that are
14284 not enabled.
14285
14286 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
14287 * web.c: Include "insn-config.h" and "recog.h".
14288 (union_match_dups): New function.
14289 (web_main): Call it.
14290 (union_defs): Don't try to recognize match_dups.
14291
14292 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
14293 if doing so would replace the entire pattern.
14294
14295 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14296
14297 PR target/43707
14298 PR target/43709
14299 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
14300 and splitter pattern. Change splitter operand 1 predicate to
14301 nonmemory_operand.
14302
14303 2010-04-09 Martin Jambor <mjambor@suse.cz>
14304
14305 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14306 lattices are addresses of CONST_DECLs with the same initial value.
14307 (ipcp_print_all_lattices): Print values of CONST_DECLs.
14308 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14309
14310 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
14311 Bernd Schmidt <bernds@codesourcery.com>
14312
14313 * loop-invariant.c (replace_uses): New static function.
14314 (move_invariant_reg): Use it to ensure we can replace the uses.
14315
14316 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14317
14318 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14319 function template.
14320 (picochip_override_options): Enable section anchors only above -O1.
14321 (picochip_reorg): Fixed a couple of build warnings.
14322
14323 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14324
14325 * configure.ac (plugin -rdynamic test): Log result.
14326 * configure: Regenerate.
14327 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14328 (RDYNAMIC_SPEC): Define.
14329 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14330
14331 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14332
14333 * configure.ac: Determine Sun ld version numbers.
14334 (comdat_group): Restrict GNU ld version checks to gld.
14335 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14336 (enable_comdat): Support --enable-comdat.
14337 * configure: Regenerate.
14338 * doc/install.texi (Configuration): Document --enable-comdat.
14339
14340 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14341
14342 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
14343 * config/sol2-gld.h: ... here.
14344 * config.gcc (sparc*-*-solaris2*): Reflect this.
14345 (i[34567]86-*-solaris2*): Use it.
14346
14347 2010-04-09 Steve Ellcey <sje@cup.hp.com>
14348
14349 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14350 setup_clocks_p.
14351 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14352
14353 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14354
14355 PR 42965
14356 * diagnostic.c (diagnostic_initialize): Initialize
14357 some_warnings_are_errors.
14358 (diagnostic_finish): New.
14359 (diagnostic_action_after_output): Call it before exiting.
14360 (diagnostic_report_diagnostic): Do not print message here. Set
14361 some_warnings_are_errors.
14362 * diagnostic.h (diagnostic_context): Delete
14363 issue_warnings_are_errors_message. Add some_warnings_are_errors.
14364 (diagnostic_finish): Declare.
14365 * toplev.c (toplev_main): Call it before exit.
14366
14367 2010-04-09 Jason Merrill <jason@redhat.com>
14368
14369 PR c++/42623
14370 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14371 for incomplete type.
14372
14373 PR c++/41788
14374 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14375 based on a warning flag.
14376
14377 2010-04-09 Richard Guenther <rguenther@suse.de>
14378
14379 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14380
14381 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
14382
14383 PR bootstrap/43684
14384 * varasm.c (default_assemble_visibility): Wrap vars that are
14385 set, but unused, by targets without GAS.
14386 * config/rs6000/rs6000.c (paired_emit_vector_compare):
14387 Remove set, but unused, vars.
14388 (rs6000_legitimize_tls_address): Likewise.
14389 (altivec_expand_dst_builtin): Likewise.
14390 * config/darwin.c (machopic_classify_symbol): Likewise.
14391 (machopic_indirection_name): Likewise.
14392
14393 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14394
14395 * config/i386/i386.md (DWI): New mode iterator.
14396 (S): New mode attribute.
14397 (shift_operand): Ditto.
14398 (shift_immediate_operand): Ditto.
14399 (ashl_input_operand): Ditto.
14400 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14401 using SDWIM mode iterator.
14402 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
14403 pattern from *ashl{di,ti}3_1 and corresponding splitters using
14404 DWI mode iterator.
14405 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14406 from corresponding peephole2 patterns.
14407 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14408 and x86_64_shift_adj_1 using SWI48 mode iterator.
14409 (x86_shift<mode>_adj_2): Ditto.
14410 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14411 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14412 using SWI48 mode iterator.
14413 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14414 *ashldi3_cmp_rex64 using SWI mode iterator.
14415 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14416 *ashldi3_cconly_rex64 using SWI mode iterator.
14417 * config/i386/i386.c (ix86_split_ashl): Update for renamed
14418 x86_shift<mode>_adj_{1,2}.
14419 (ix86_split_ashr): Ditto.
14420 (ix86_split_lshr): Ditto.
14421
14422 2010-04-09 Richard Guenther <rguenther@suse.de>
14423
14424 * target.h (builtin_conversion): Pass in input and output types.
14425 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14426 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14427 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14428 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14429
14430 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14431 Handle AVX modes.
14432 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14433
14434 2010-04-09 Richard Guenther <rguenther@suse.de>
14435
14436 PR target/43152
14437 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14438
14439 2010-04-09 Richard Guenther <rguenther@suse.de>
14440
14441 * tree-vectorizer.h (struct _stmt_vec_info): Document
14442 that vectype is the type of the LHS.
14443 (supportable_widening_operation, supportable_narrowing_operation):
14444 Get both input and output vector types as arguments.
14445 (vect_is_simple_use_1): Declare.
14446 (get_same_sized_vectype): Likewise.
14447 * tree-vect-loop.c (vect_determine_vectorization_factor):
14448 Set STMT_VINFO_VECTYPE to the vector type of the def.
14449 (vectorizable_reduction): Adjust.
14450 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14451 Adjust. Specify the output vector type.
14452 (vect_pattern_recog_1): Adjust.
14453 * tree-vect-stmts.c (get_same_sized_vectype): New function.
14454 (vectorizable_call): Adjust.
14455 (vectorizable_conversion): Likewise.
14456 (vectorizable_operation): Likewise.
14457 (vectorizable_type_demotion): Likewise.
14458 (vectorizable_type_promotion): Likewise.
14459 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14460 the def.
14461 (vect_is_simple_use_1): New function.
14462 (supportable_widening_operation): Get both input and output
14463 vector types.
14464 (supportable_narrowing_operation): Likewise.
14465 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14466
14467 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
14468
14469 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14470 __thiscall and _thiscall as predefined macros.
14471 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14472 thiscall attribute handling.
14473 (ix86_comp_type_attributes): Likewise.
14474 (ix86_function_regparm): Likewise.
14475 (ix86_return_pops_args): Likewise.
14476 (init_cumulative_args): Likewise.
14477 (find_drap_reg): Likewise.
14478 (ix86_static_chain): Likewise.
14479 (x86_this_parameter): Likewise.
14480 (x86_output_mi_thunk): Likewise.
14481 (ix86_attribute_table): Add description for thiscall attribute.
14482 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14483 * doc/extend.texi: Add documentation for thiscall.
14484
14485 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14486
14487 PR c++/28584
14488 * c.opt (Wint-to-pointer-cast): Available in C++.
14489 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14490
14491 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
14492
14493 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14494 * calls.c (expand_call): Pass the function type to aggregate_value_p.
14495 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14496 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
14497 function type instead. Reorder and simplify checks.
14498
14499 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14500
14501 2010-04-08 Jing Yu <jingyu@google.com>
14502 Zdenek Dvorak <ook@ucw.cz>
14503
14504 PR tree-optimization/42720
14505 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14506 loop unswitch conditions here from ...
14507 (tree_unswitch_single_loop): ... here.
14508
14509 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14510
14511 * tree-if-conv.c: Fix comments and simplify logic.
14512
14513 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14514
14515 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14516 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
14517 (main_tree_if_conversion): Update call to tree_if_conversion.
14518
14519 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14520
14521 PR 42485
14522 * doc/invoke.texi (-b,-V): Delete.
14523 * doc/tm.texi: Do not mention -b.
14524 * gcc.c (display_help): Delete -b and -V.
14525 (process_command): Delete -b and -V.
14526 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
14527
14528 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
14529 Wolfgang Gellerich <gellerich@de.ibm.com>
14530
14531 Implement target hook for loop unrolling
14532 * target.h (loop_unroll_adjust): Add a new target hook function.
14533 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
14534 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
14535 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
14536 (s390_loop_unroll_adjust): Implement the new target hook for s390.
14537 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
14538 target hook.
14539 (decide_unroll_stupid): Likewise.
14540
14541 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14542
14543 PR target/43643
14544 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
14545
14546 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14547
14548 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
14549 (Specific, *-*-solaris2*): Likewise.
14550 Don't prefer Sun as over GNU as.
14551
14552 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
14553
14554 * config/s390/s390.c (override_options): Adjust the z10 defaults
14555 for max-unroll-times, max-completely-peeled-insns
14556 and max-completely-peel-times.
14557
14558 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14559
14560 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
14561 instructions for z10.
14562 (s390_expand_setmem): Likewise.
14563 (s390_expand_cmpmem): Likewise.
14564
14565 2010-04-08 Richard Guenther <rguenther@suse.de>
14566
14567 PR tree-optimization/43679
14568 * tree-ssa-pre.c (eliminate): Only propagate copies.
14569
14570 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14571
14572 PR bootstrap/43681
14573 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
14574 set but not used variable warning.
14575
14576 2010-04-08 Wei Guozhi <carrot@google.com>
14577
14578 PR target/41653
14579 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
14580 (arm_size_rtx_costs): Call the new function when optimized for size.
14581
14582 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14583
14584 PR debug/43670
14585 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
14586 op0 is not a MEM, just return NULL instead of assertion
14587 failure.
14588 (discover_nonconstant_array_refs): Don't walk debug stmts.
14589
14590 2010-04-08 Doug Kwan <dougkwan@google.com>
14591
14592 * configure.ac: Recognize gold and do not use its version number
14593 to test ld features.
14594 * configure: Regenerate.
14595
14596 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
14597
14598 PR middle-end/40815
14599 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14600 (negate_value): Move code to push elements to broken_up_substracts ...
14601 (eliminate_plus_minus_pair): ... here. Push operands that have no
14602 negative pair to plus_negates.
14603 (repropagate_negates, init_reassoc, fini_reassoc): Update.
14604
14605 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14606
14607 * doc/install.texi (Configuration): Move description of
14608 --enable-lto, --with-libelf*, --enable-gold from Java section to
14609 general section.
14610
14611 * doc/generic.texi (Working with declarations)
14612 (Function Properties, C and C++ Trees): Fix typos.
14613 * doc/sourcebuild.texi (Top Level): Likewise.
14614
14615 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14616
14617 PR c/18624
14618 * tree.h (DECL_READ_P): Define.
14619 (struct tree_decl_common): Add decl_read_flag.
14620 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14621 a set but not used warning.
14622 (merge_decls): Merge DECL_READ_P flag.
14623 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14624 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14625 * c-common.c (handle_used_attribute, handle_unused_attribute):
14626 Likewise.
14627 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14628 New prototypes.
14629 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14630 New functions.
14631 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14632 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14633 c_parser_binary_expression, c_parser_cast_expression,
14634 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14635 Call default_function_array_read_conversion instead of
14636 default_function_array_conversion where needed.
14637 (c_parser_unary_expression, c_parser_conditional_expression,
14638 c_parser_postfix_expression_after_primary, c_parser_initelt):
14639 Likewise. Call mark_exp_read where needed.
14640 (c_parser_statement_after_labels, c_parser_asm_operands,
14641 c_parser_typeof_specifier, c_parser_sizeof_expression,
14642 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14643 where needed.
14644 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14645 New.
14646 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14647 (warn_unused_but_set_parameter): Default to warn_unused
14648 && extra_warnings.
14649 * doc/invoke.texi: Document -Wunused-but-set-variable and
14650 -Wunused-but-set-parameter.
14651
14652 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14653 used count variable.
14654 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14655 when operandN variables aren't used in the body of the expander
14656 or splitter.
14657 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
14658 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
14659 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
14660 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
14661 FOR_EACH_IMM_USE_ON_STMT): Likewise.
14662 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
14663 * tree.c (PROCESS_ARG): Likewise.
14664
14665 2010-04-07 Simon Baldwin <simonb@google.com>
14666
14667 * diagnostic.h (diagnostic_override_option_index): New macro to
14668 set a diagnostic's option_index.
14669 * c-tree.h (c_cpp_error): Add warning reason argument.
14670 * opts.c (_warning_as_error_callback): New.
14671 (register_warning_as_error_callback): Store callback for
14672 warnings enabled via enable_warning_as_error.
14673 (enable_warning_as_error): Call callback, minor code tidy.
14674 * opts.h (register_warning_as_error_callback): Declare.
14675 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
14676 response to -Werror=.
14677 (c_common_init_options): Register warning_as_error_callback in opts.c.
14678 * common.opt: Add -Wno-cpp option.
14679 * c-common.c (struct reason_option_codes_t): Map cpp warning
14680 reason codes to gcc option indexes.
14681 * (c_option_controlling_cpp_error): New function, lookup the gcc
14682 option index for a cpp warning reason code.
14683 * (c_cpp_error): Add warning reason argument, call
14684 c_option_controlling_cpp_error for diagnostic_override_option_index.
14685 * doc/invoke.texi: Document -Wno-cpp.
14686
14687 2010-04-07 Richard Guenther <rguenther@suse.de>
14688
14689 * ipa-reference.c (mark_load): Use get_base_address.
14690 (mark_store): Likewise.
14691
14692 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
14693 inserting GIMPLE_NOPs into the IL.
14694 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14695 Explicitly strip handled components and indirect references.
14696
14697 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
14698 folding address expressions.
14699 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
14700 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
14701 operand_equal_p to compare decls.
14702 (ptr_deref_may_alias_decl_p): Likewise.
14703 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
14704 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
14705 Handle reversed comparison ops.
14706 * tree-sra.c (asm_visit_addr): Use get_base_address.
14707 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
14708 * ipa-reference.c (mark_address): Use get_base_address.
14709
14710 2010-04-07 Richard Guenther <rguenther@suse.de>
14711
14712 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
14713 Propagate constants everywhere.
14714
14715 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14716
14717 PR debug/43516
14718 * tree.c (MAX_INT_CACHED_PREC): Define.
14719 (nonstandard_integer_type_cache): New array.
14720 (build_nonstandard_integer_type): Cache results for precision
14721 <= MAX_INT_CACHED_PREC.
14722
14723 2010-04-07 Richard Guenther <rguenther@suse.de>
14724
14725 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
14726 -fargument-noalias-global, -fargument-noalias-anything): Remove.
14727 * common.opt: Likewise.
14728 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
14729 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
14730 (nonoverlapping_memrefs_p): Likewise.
14731 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14732 * opts.c (common_handle_option): Handle OPT_fargument_alias,
14733 OPT_fargument_noalias, OPT_fargument_noalias_anything and
14734 OPT_fargument_noalias_global for backward compatibility.
14735
14736 2010-04-07 Richard Guenther <rguenther@suse.de>
14737
14738 PR tree-optimization/43270
14739 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
14740 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
14741 * tree-ssa-pre.c (phi_translate_1): Adjust.
14742 (fully_constant_expression): Split out vn_reference handling to ...
14743 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
14744 Fold reads from constant strings.
14745 (vn_reference_lookup): Handle fully constant references.
14746 (vn_reference_lookup_pieces): Likewise.
14747 * Makefile.in (expmed.o-warn): Add -Wno-error.
14748
14749 2010-04-07 Martin Jambor <mjambor@suse.cz>
14750
14751 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
14752
14753 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
14754
14755 PR driver/41594
14756 * gcc.c: Add -static-libstdc++ to list of recognized options.
14757
14758 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14759
14760 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
14761
14762 2010-04-07 Richard Guenther <rguenther@suse.de>
14763
14764 PR middle-end/42617
14765 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
14766 bases build simple mem attributes to retain points-to information.
14767
14768 2010-04-07 Richard Guenther <rguenther@suse.de>
14769
14770 PR middle-end/42617
14771 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
14772 preserve points-to related information.
14773
14774 2010-04-07 Richard Guenther <rguenther@suse.de>
14775
14776 PR middle-end/42617
14777 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
14778 discard plain indirect references.
14779 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
14780 * tree.c (tree_nop_conversion): Likewise.
14781
14782 2010-04-07 Dodji Seketeli <dodji@redhat.com>
14783
14784 PR debug/43628
14785 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
14786
14787 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
14788
14789 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
14790 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
14791
14792 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14793
14794 * tree-if-conv.c: Fix indentation and comments.
14795
14796 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14797
14798 * tree-if-conv.c: Sort static functions in topological order.
14799
14800 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14801
14802 * tree-if-conv.c: Fix indentation and comments.
14803
14804 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14805
14806 PR middle-end/43519
14807 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
14808 lang_hooks.types.type_for_size instead of
14809 build_nonstandard_integer_type.
14810 When converting an unsigned type to signed, double its precision.
14811 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
14812 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
14813 (graphite_create_new_loop_guard): When ub + 1 wraps around,
14814 use lb <= ub.
14815
14816 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14817
14818 PR middle-end/43519
14819 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14820 POINTER_PLUS_EXPR for pointer types.
14821
14822 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14823
14824 PR middle-end/43519
14825 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
14826 * graphite-clast-to-gimple.c: Include langhooks.h.
14827 (max_signed_precision_type): New.
14828 (max_precision_type): Takes two types as arguments.
14829 (precision_for_value): New.
14830 (precision_for_interval): New.
14831 (gcc_type_for_interval): New.
14832 (gcc_type_for_value): New.
14833 (gcc_type_for_clast_term): New.
14834 (gcc_type_for_clast_red): New.
14835 (gcc_type_for_clast_bin): New.
14836 (gcc_type_for_clast_expr): Split up into several functions.
14837 (gcc_type_for_clast_eq): Rewritten.
14838 (compute_bounds_for_level): New.
14839 (compute_type_for_level_1): New.
14840 (compute_type_for_level): New.
14841 (gcc_type_for_cloog_iv): Removed.
14842 (gcc_type_for_iv_of_clast_loop): Rewritten.
14843 (graphite_create_new_loop): Compute the lower and upper bound types
14844 with gcc_type_for_clast_expr.
14845 (graphite_create_new_loop_guard): Same.
14846 (find_cloog_iv_in_expr): Removed.
14847 (compute_cloog_iv_types_1): Removed.
14848 (compute_cloog_iv_types): Removed.
14849 (gloog): Do not call compute_cloog_iv_types.
14850 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
14851 GBB_CLOOG_IV_TYPES.
14852 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
14853 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
14854 (GBB_CLOOG_IV_TYPES): Removed.
14855
14856 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14857
14858 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
14859 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
14860 (detect_commutative_reduction): Same.
14861
14862 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14863
14864 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
14865 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
14866 argument.
14867 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
14868 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
14869 (rewrite_commutative_reductions_out_of_ssa): Same.
14870 * passes.c (execute_function_todo): Call verify_ssa for every pass
14871 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
14872 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
14873 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
14874 with an extra argument.
14875 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
14876 verify_ssa only when the extra argument is true.
14877 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
14878 with an extra argument.
14879 (tree_transform_and_unroll_loop): Same.
14880
14881 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14882
14883 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
14884 for all the passes of the LNO having LOOP_CLOSED_SSA.
14885 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
14886 * tree-loop-distribution.c (pass_loop_distribution): Same.
14887 * tree-pass.h (TODO_verify_loops): Removed.
14888 * tree-ssa-loop.c (pass_tree_loop_init): Same.
14889 (pass_lim): Same.
14890 (pass_tree_unswitch): Same.
14891 (pass_predcom): Same.
14892 (pass_vectorize): Same.
14893 (pass_linear_transform): Same.
14894 (pass_graphite_transforms): Same.
14895 (pass_iv_canon): Same.
14896 (pass_complete_unroll): Same.
14897 (pass_complete_unrolli): Same.
14898 (pass_parallelize_loops): Same.
14899 (pass_loop_prefetch): Same.
14900 (pass_iv_optimize): Same.
14901
14902 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
14903
14904 PR middle-end/32824
14905 * passes.c (init_optimization_passes): Move pass_lim before
14906 pass_copy_prop and pass_dce_loop.
14907
14908 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14909
14910 PR target/43667
14911 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14912 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14913 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14914 MULTI_* defines for 4 argument vpermil2p* builtins.
14915
14916 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14917
14918 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14919 * config/i386/i386.c (x86_maybe_negate_const_int): New.
14920 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14921 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14922 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14923 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14924 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14925 Use x86_maybe_negate_const_int to output insn mnemonic.
14926 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
14927 check from instruction predicate. Update comments.
14928 * config/i386/sync.md (sync_add<mode>): Use
14929 x86_maybe_negate_const_int to output insn mnemonic.
14930
14931 2010-04-06 Jan Hubicka <jh@suse.cz>
14932
14933 PR tree-optimization/42906
14934 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
14935 IGNORE_SELF argument. Set visited_control_parents for fully
14936 processed BBs.
14937 (find_obviously_necessary_stmts): Update call of
14938 mark_control_dependent_edges_necessary.
14939 (propagate_necessity): Likewise. Handle PHI edges more curefully.
14940
14941 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14942
14943 * config/i386/i386.md: Remove comment about 'e' and 'E'
14944 operand modifier.
14945
14946 2010-04-06 Richard Guenther <rguenther@suse.de>
14947
14948 PR tree-optimization/43627
14949 * tree-vrp.c (extract_range_from_unary_expr): Widenings
14950 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
14951 not varying.
14952
14953 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14954
14955 * BASE-VER: Change to 4.6.0.
14956
14957 PR target/43638
14958 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
14959 handling.
14960
14961 2010-04-06 Richard Guenther <rguenther@suse.de>
14962
14963 PR middle-end/43661
14964 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
14965
14966 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14967
14968 * doc/invoke.texi (Optimize Options): Document that LTO
14969 won't remove object access purely due to incompatible
14970 declarations.
14971
14972 2010-04-04 Matthias Klose <doko@ubuntu.com>
14973
14974 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
14975 Initialize variable.
14976
14977 2010-04-03 Richard Guenther <rguenther@suse.de>
14978
14979 PR middle-end/42509
14980 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
14981 require a non-NULL MEM_OFFSET.
14982
14983 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
14984
14985 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
14986 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
14987 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
14988 config/alpha/predicates.md, config/arm/arm.md,
14989 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14990 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14991 config/darwin9.h, config/darwin.c, config/darwin.h,
14992 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14993 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14994 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14995 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14996 config/mips/mips.md, config/mn10300/mn10300.c,
14997 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14998 config/rs6000/aix.h, config/rs6000/dfp.md,
14999 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
15000 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
15001 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
15002 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
15003 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
15004 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
15005 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
15006 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
15007 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
15008 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
15009 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
15010 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
15011 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
15012 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
15013 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
15014 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
15015 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
15016 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
15017 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
15018 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
15019 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
15020 opt-functions.awk, opth-gen.awk, params.def, passes.c,
15021 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
15022 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
15023 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
15024 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
15025 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
15026 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15027 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
15028 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
15029 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
15030 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15031 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
15032 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
15033 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
15034 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
15035
15036 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15037
15038 PR other/43620
15039 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
15040 * aclocal.m4: Regenerate.
15041
15042 2010-04-02 Richard Guenther <rguenther@suse.de>
15043
15044 PR tree-optimization/43629
15045 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
15046 if we have seen a constant value.
15047
15048 2010-04-02 Joseph Myers <joseph@codesourcery.com>
15049
15050 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
15051
15052 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
15053
15054 PR target/43469
15055 * arm.c (legitimize_tls_address): Adjust call to
15056 gen_tls_load_dot_plus_four.
15057 (arm_note_pic_base): New function.
15058 (arm_cannot_copy_insn_p): Use it.
15059 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
15060 constraint.
15061
15062 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15063
15064 PR bootstrap/43531
15065
15066 Revert:
15067 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15068
15069 * Makefile.in ($(out_object_file)): Depend on
15070 gt-$(basename $(notdir $(out_file))).h.
15071
15072 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
15073
15074 * config.gcc (lm32-*-rtems*): Add t-lm32.
15075
15076 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
15077
15078 * config.gcc: Add lm32-*-rtems*.
15079 * config/lm32/rtems.h: New file.
15080
15081 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
15082
15083 PR target/42609
15084 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
15085
15086 2010-04-01 Jakub Jelinek <jakub@redhat.com>
15087
15088 * dwarf2out.c (output_compilation_unit_header): For
15089 -gdwarf-4 use version 4 instead of version 3.
15090 (output_line_info): For version 4 and above emit additional
15091 maximum ops per insn header field.
15092 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
15093
15094 * dwarf2out.c (is_c_family, is_java): Remove.
15095 (lower_bound_default): New function.
15096 (add_bound_info, gen_descr_array_type_die): Use it.
15097
15098 2010-04-01 Dodji Seketeli <dodji@redhat.com>
15099
15100 PR debug/43325
15101 * dwarf2out.c (gen_variable_die): Allow debug info for variable
15102 re-declaration when it happens in a function.
15103
15104 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
15105
15106 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
15107 (cgraph_remove_function_insertion_hook): Same.
15108 (cgraph_call_function_insertion_hooks): Same.
15109
15110 2010-04-01 Richard Guenther <rguenther@suse.de>
15111
15112 PR middle-end/43614
15113 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
15114 and TREE_THIS_VOLATILE.
15115 (copy_ref_info): Likewise.
15116 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
15117 * tree.c (build6_stat): Ignore side-effects of all but arg5
15118 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
15119 TARGET_MEM_REF.
15120
15121 2010-04-01 Richard Guenther <rguenther@suse.de>
15122
15123 PR tree-optimization/43607
15124 * ipa-type-escape.c (check_call): Do not access non-existing
15125 arguments.
15126
15127 2010-04-01 Richard Guenther <rguenther@suse.de>
15128
15129 PR middle-end/43602
15130 Revert
15131 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15132 Jack Howarth <howarth@bromo.med.uc.edu>
15133
15134 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15135 variables TLS.
15136
15137 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15138
15139 * doc/install.texi (Prerequisites): Document libelf usability on
15140 IRIX 5/6 and Solaris 2.
15141 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
15142 Update GNU as, GNU ld requirements.
15143 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
15144 Document Sun Studio compiler download.
15145 Update and simplify as, ld recommendations.
15146 (Specific, *-*-solaris2.7): Note obsoletion, removal.
15147
15148 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15149
15150 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
15151 with_tune_32 to pentium4.
15152
15153 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
15154
15155 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
15156
15157 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15158
15159 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
15160 obsoletion, removal.
15161 Update IDO URL.
15162 Document GNU as requirement.
15163 Update configure requirements.
15164 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
15165 Recomment IRIX 6.5.18+.
15166 Document IDF/IDL requirement.
15167 Document GNU as requirement.
15168 Document GNU ld bootstrap failure.
15169 Remove freeware.sgi.com reference.
15170
15171 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15172
15173 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
15174 UNIX V4.0, V5.0 obsoletion, removal.
15175 Remove --with-gc=simple reference.
15176 Update VM requirements during bootstrap.
15177 Remove -oldas bootstrap description.
15178 Update binutils reference.
15179 Remove comparison failure note.
15180
15181 2010-03-31 Richard Guenther <rguenther@suse.de>
15182 Zdenek Dvorak <ook@ucw.cz>
15183 Sebastian Pop <sebastian.pop@amd.com>
15184
15185 PR middle-end/43464
15186 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
15187 with multiple arguments.
15188 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
15189
15190 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15191
15192 * graphite-dependences.c (print_pddr): Call print_pdr with an
15193 extra argument.
15194 * graphite-poly.c (debug_pdr): Add an extra argument for the
15195 verbosity level.
15196 (print_pdr): Same.
15197 (print_pbb_domain): Same.
15198 (print_pbb): Same.
15199 (print_scop_context): Same.
15200 (print_scop): Same.
15201 (print_cloog): Same.
15202 (debug_pbb_domain): Same.
15203 (debug_pbb): Same.
15204 (print_pdrs): Same.
15205 (debug_pdrs): Same.
15206 (debug_scop_context): Same.
15207 (debug_scop): Same.
15208 (debug_cloog): Same.
15209 (print_scop_params): Same.
15210 (debug_scop_params): Same.
15211 (print_iteration_domain): Same.
15212 (print_iteration_domains): Same.
15213 (debug_iteration_domain): Same.
15214 (debug_iteration_domains): Same.
15215 (print_scattering_function): Same.
15216 (print_scattering_functions): Same.
15217 (debug_scattering_function): Same.
15218 (debug_scattering_functions): Same.
15219 * graphite-poly.h (debug_pdr): Update declaration.
15220 (print_pdr): Same.
15221 (print_pbb_domain): Same.
15222 (print_pbb): Same.
15223 (print_scop_context): Same.
15224 (print_scop): Same.
15225 (print_cloog): Same.
15226 (debug_pbb_domain): Same.
15227 (debug_pbb): Same.
15228 (print_pdrs): Same.
15229 (debug_pdrs): Same.
15230 (debug_scop_context): Same.
15231 (debug_scop): Same.
15232 (debug_cloog): Same.
15233 (print_scop_params): Same.
15234 (debug_scop_params): Same.
15235 (print_iteration_domain): Same.
15236 (print_iteration_domains): Same.
15237 (debug_iteration_domain): Same.
15238 (debug_iteration_domains): Same.
15239 (print_scattering_function): Same.
15240 (print_scattering_functions): Same.
15241 (debug_scattering_function): Same.
15242 (debug_scattering_functions): Same.
15243
15244 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15245
15246 * graphite-poly.c (print_scattering_function_1): New.
15247 (print_scattering_function): Call it.
15248 (print_scop_params): Remove spaces at the end of lines.
15249 (print_cloog): New.
15250 (debug_cloog): New.
15251 * graphite-poly.h (print_cloog): Declared.
15252 (debug_cloog): Declared.
15253
15254 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15255
15256 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
15257 in loop->header.
15258 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
15259 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
15260 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
15261 to switch between adding the IV bump in loop->latch or in loop->header.
15262
15263 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15264
15265 * graphite-poly.c (print_scattering_function): Pretty print following
15266 the scoplib format.
15267 (print_pdr): Same.
15268 (print_pbb_domain): Same.
15269 (dump_gbb_cases): Same.
15270 (dump_gbb_conditions): Same.
15271 (print_pdrs): Same.
15272 (print_pbb): Same.
15273 (print_scop_params): Same.
15274 (print_scop_context): Same.
15275 (print_scop): Same.
15276 (print_pbb_body): New.
15277 (lst_indent_to): New.
15278 (print_lst): Start new lines with a #.
15279 * graphite-poly.h (pbb_bb): New.
15280 (pbb_index): Use pbb_bb.
15281 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
15282 disjuncts.
15283 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
15284
15285 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15286
15287 * dwarf2out.c (size_of_die): For -gdwarf-4 use
15288 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
15289 and 0 instead of 1 for dw_val_class_flag.
15290 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
15291 dw_val_class_range_list, dw_val_class_loc_list,
15292 dw_val_class_lineptr and dw_val_class_macptr, use
15293 DW_FORM_flag_present for dw_val_class_flag and
15294 DW_FORM_exprloc for dw_val_class_loc.
15295 (output_die): For -gdwarf-4 print dw_val_class_loc
15296 size as uleb128 instead of 1 or 2 bytes and don't print
15297 anything for dw_val_class_flag.
15298
15299 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
15300 instead of cselib_lookup following by tweaking locs->setting_insn.
15301
15302 PR bootstrap/43596
15303 * cselib.c (cselib_process_insn): Clear cselib_current_insn
15304 even before returning from label, setjmp call or volatile asm
15305 handling.
15306
15307 2010-03-31 Richard Guenther <rguenther@suse.de>
15308
15309 PR middle-end/43600
15310 * cgraphunit.c (cgraph_output_in_order): Do not allocate
15311 temporary data on stack.
15312
15313 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15314
15315 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15316 (PUSHSECTION_ASM_OP): Remove.
15317 (POPSECTION_ASM_OP): Remove.
15318 (PUSHSECTION_FORMAT): Remove.
15319 * config/sol2.h (PUSHSECTION_FORMAT): Define.
15320 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15321 * config/sol2.c (solaris_output_init_fini): Use it.
15322
15323 2010-03-31 Jie Zhang <jie@codesourcery.com>
15324
15325 PR 43574
15326 * opt-functions.awk (var_type_struct): Use signed char type
15327 for simple variables.
15328
15329 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15330
15331 * config/sol2.c: Include output.h.
15332 (solaris_assemble_visibility): New function.
15333 * config/t-sol2 (sol2.o): Add output.h dependency.
15334 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15335 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15336 Redefine.
15337
15338 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15339
15340 PR target/43580
15341 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15342 V2SImode or XFmode on PRE_DEC.
15343
15344 PR debug/43557
15345 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15346 BLKmode.
15347
15348 2010-03-31 Jie Zhang <jie@codesourcery.com>
15349
15350 PR 43562
15351 * reload.h (caller_save_initialized_p): Declare.
15352 * toplev.c (backend_init_target): Don't call
15353 init_caller_save but set caller_save_initialized_p to false.
15354 * caller-save.c (caller_save_initialized_p): Define.
15355 (init_caller_save): Check caller_save_initialized_p.
15356 * ira.c (ira): Call init_caller_save if flag_caller_saves.
15357
15358 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15359
15360 PR target/39048
15361 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15362 and soft-fp/t-softfp to tmake_file.
15363 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15364 (LIBGCC2_TF_CEXT): Define.
15365 (TF_SIZE): Define.
15366
15367 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
15368
15369 PR debug/42977
15370 * cselib.c (n_useless_values): Document handling of debug locs.
15371 (n_useless_debug_values, n_debug_values): New variables.
15372 (new_elt_loc_list): Don't add to debug values, keep count.
15373 (promote_debug_loc): New.
15374 (cselib_reset_table): Zero new variables.
15375 (entry_and_rtx_equal_p): Promote debug locs.
15376 (discard_useless_locs): Increment n_useless_debug_values for
15377 debug values.
15378 (remove_useless_values): Adjust n_useless_values and n_debug_values
15379 with n_useless_debug_values.
15380 (add_mem_for_addr): Promote debug locs.
15381 (cselib_lookup_mem): Likewise.
15382 (cselib_lookup_addr): Renamed to...
15383 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
15384 (cselib_log_lookup): ... this. Turn into...
15385 (cselib_lookup_addr): ... new wrapper.
15386 (cselib_lookup_from_insn): New.
15387 (cselib_invalidate_regno): Increment n_useless_debug_values for
15388 debug values.
15389 (cselib_invalidate_mem): Likewise.
15390 (cselib_process_insn): Take n_deleted and n_debug_values into
15391 account to guard remove_useless_value call.
15392 (cselib_finish): Zero n_useless_debug_values.
15393 * cselib.h (cselib_lookup_from_insn): Declare.
15394 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15395 (sched_analyze_2): Likewise.
15396
15397 2010-03-30 Jakub Jelinek <jakub@redhat.com>
15398
15399 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15400 functions.
15401 (adjust_mems): Replace narrowing SUBREG of expression containing
15402 just PLUS, MINUS, MULT and ASHIFT of registers and constants
15403 with operations in the narrower mode.
15404
15405 PR debug/43593
15406 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15407 regs_invalidated_by_call instead all call_used_reg_set registers.
15408
15409 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
15410
15411 PR middle-end/43430
15412 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15413 pointer comparisons with types_compatible_p.
15414 * tree-vect-stmts.c (vectorizable_call): Same.
15415 (vectorizable_condition): Same.
15416
15417 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15418
15419 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15420 stack check if the mask would be zero.
15421
15422 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15423 Jack Howarth <howarth@bromo.med.uc.edu>
15424
15425 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15426 variables TLS.
15427
15428 2010-03-30 Joseph Myers <joseph@codesourcery.com>
15429
15430 PR other/25232
15431 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
15432 and __unordtf2.
15433 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15434 Include ___unordxf2 and ___unordtf2.
15435 * config/i386/libgcc-glibc.ver: Do not define inheritance from
15436 GCC_4.4.0 here.
15437
15438 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
15439
15440 * config/lm32/t-lm32: New file.
15441 * config.gcc: Use the above file when targetting lm32.
15442
15443 2010-03-28 Duncan Sands <baldrick@free.fr>
15444
15445 * Makefile.in (PLUGIN_HEADERS): Add except.h.
15446
15447 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15448
15449 PR middle-end/43431
15450 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15451 Improve vectorization cost model diagnostic.
15452
15453 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15454
15455 PR middle-end/43436
15456 * tree-vect-data-refs.c (vect_analyze_data_refs): When
15457 compute_data_dependences_for_loop returns false, early exit
15458 and output an extra diagnostic for the failed data reference
15459 analysis.
15460
15461 2010-03-29 Richard Guenther <rguenther@suse.de>
15462
15463 PR tree-optimization/43560
15464 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15465 (can_sm_ref_p): Treat stores to readonly locations as trapping.
15466
15467 2010-03-29 Jie Zhang <jie@codesourcery.com>
15468
15469 PR 43564
15470 * toplev.c (process_options): Set optimization_default_node
15471 and optimization_current_node.
15472 * opts.c (decode_options): Don't set optimization_default_node
15473 and optimization_current_node.
15474
15475 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
15476
15477 * config/rtems.h: Abandon -qrtems_debug.
15478
15479 2010-03-28 Jan Hubicka <jh@suse.cz>
15480
15481 PR tree-optimization/43505
15482 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15483 map should not be copied.
15484
15485 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15486
15487 PR middle-end/41674
15488 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15489 cdtors, set DECL_PRESERVE_P.
15490 * ipa.c (cgraph_externally_visible_p): Return true if declaration
15491 should be preseved.
15492
15493 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
15494
15495 PR tree-optimization/43528
15496 * stor-layout.c (place_field): Check that constant fits into
15497 unsigned HWI when skipping calculation of MS bitfield layout.
15498
15499 2010-03-27 Jan Hubicka <jh@suse.cz>
15500
15501 PR middle-end/43391
15502 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15503 notice_global_symbol work.
15504
15505 2010-03-27 Jakub Jelinek <jakub@redhat.com>
15506
15507 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15508 instead of dwarf2out_decl.
15509 (struct var_loc_node): Remove section_label field.
15510 (dwarf2out_function_decl): New function.
15511 (dwarf2out_var_location): Don't set section_label field.
15512 (dwarf2out_begin_function): Don't empty decl_loc_table here.
15513
15514 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15515
15516 PR tree-optimization/43544
15517 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15518 First argument for builtin vectorized function hook is now a
15519 tree to be able to distinguish between machine specific and
15520 standard builtins.
15521 * targhooks.c (default_builtin_vectorized_function): Ditto.
15522 * targhooks.h (default_builtin_vectorized_function): Ditto.
15523 * target.h (struct gcc_target): Ditto.
15524 * tree-vect-stmts.c (vectorizable_function): Ditto.
15525 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
15526 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15527 Ditto.
15528
15529 2010-03-26 Joseph Myers <joseph@codesourcery.com>
15530
15531 PR c/43381
15532 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
15533 nested binding iff it is a FUNCTION_DECL.
15534 (store_parm_decls_newstyle): Pass nested=true to bind for
15535 FUNCTION_DECLs amongst parameters.
15536
15537 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15538
15539 * var-tracking.c (vt_expand_loc_callback): Don't run
15540 cselib_expand_value_rtx_cb in dummy mode if
15541 cselib_dummy_expand_value_rtx_cb returned false.
15542
15543 * var-tracking.c (emit_note_insn_var_location): For one part
15544 notes with offset 0, don't add EXPR_LIST around the location.
15545 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
15546 add_location_or_const_value_attribute): Adjust for that change.
15547
15548 PR debug/43540
15549 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
15550 into first operand and location into second.
15551 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
15552 dw_cfi_oprnd_loc for DW_CFA_expression.
15553 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
15554 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
15555 assume first argument is regnum and second argument is location.
15556
15557 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15558
15559 PR target/42113
15560 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
15561 of scratch register to DImode. Split to DImode comparison operator.
15562 Use SImode subreg of scratch register in the multiplication.
15563 (*cmp_sadd_sidi): Ditto.
15564 (*cmp_ssub_si): Ditto.
15565 (*cmp_ssub_sidi): Ditto.
15566
15567 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15568
15569 PR target/43524
15570 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
15571 Remove invalid assert and wrong comment.
15572
15573 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15574
15575 PR debug/43516
15576 * flags.h (final_insns_dump_p): New extern.
15577 * final.c (final_insns_dump_p): New variable.
15578 (rest_of_clean_state): Set it before -fdump-final-insns=
15579 dumping, clear afterwards.
15580 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
15581 MEM_ALIAS_SET on MEMs.
15582
15583 2010-03-26 David S. Miller <davem@davemloft.net>
15584
15585 * configure.ac: Fix sparc GOTDATA_OP bug check.
15586 * configure: Rebuild.
15587
15588 2010-03-26 Alan Modra <amodra@gmail.com>
15589
15590 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15591
15592 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15593
15594 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15595 TLS_SECTION_ASM_FLAG.
15596
15597 2010-03-25 Jakub Jelinek <jakub@redhat.com>
15598
15599 PR bootstrap/43511
15600 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15601 Clear first_function_block_is_cold.
15602
15603 PR c/43385
15604 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15605 argument if the argument is truth_value_p.
15606
15607 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15608
15609 * config/rs6000/constraints.md: Update copyright year for my changes.
15610
15611 PR target/43484
15612 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15613 used in reg+reg addressing, swap registers.
15614
15615 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15616
15617 PR debug/43293
15618 * target.h (struct gcc_target): Add code_end hook.
15619 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15620 if not yet defined.
15621 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15622 * toplev.c (compile_file): Call targetm.asm_out.code_end
15623 hook before unwind info/debug info output.
15624 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15625 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15626 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15627 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15628 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15629 * config/i386/i386.c (ix86_file_end): Renamed to...
15630 (ix86_code_end): ... this. Make static. Don't call
15631 file_end_indicate_exec_stack. Emit unwind info using
15632 final_start_function/final_end_function.
15633 (darwin_x86_file_end): Remove.
15634 (TARGET_ASM_CODE_END): Define.
15635 * config/i386/i386.h (TARGET_ASM_FILE_END,
15636 NEED_INDICATE_EXEC_STACK): Don't define.
15637 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15638 (TARGET_ASM_FILE_END): Define to darwin_file_end.
15639 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15640 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15641
15642 PR target/43498
15643 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15644 at the beginning and final_end_function at the end.
15645 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15646
15647 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15648
15649 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15650 and Sun as TLS syntax.
15651 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15652 * configure: Regenerate.
15653 * config.in: Regenerate.
15654 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15655 (default_elf_asm_named_section): Use it.
15656 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
15657 (i386_output_dwarf_dtprel): Likewise.
15658 (output_addr_const_extra): Likewise.
15659 (output_pic_addr_const): Lowercase @GOTTPOFF.
15660 (output_addr_const_extra): Likewise.
15661 (output_pic_addr_const): Lowercase @GOTNTPOFF.
15662 (output_addr_const_extra): Likewise.
15663 (output_pic_addr_const): Lowercase @INDNTPOFF.
15664 (output_addr_const_extra): Likewise.
15665 (output_pic_addr_const): Lowercase @NTPOFF.
15666 (output_addr_const_extra): Likewise.
15667 (output_pic_addr_const): Lowercase @TPOFF.
15668 (output_addr_const_extra): Likewise.
15669 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
15670 (*tls_global_dynamic_64): Likewise.
15671 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
15672 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
15673
15674 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
15675 (ASM_OUTPUT_TLS_COMMON): Use it.
15676 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
15677
15678 PR target/38118
15679 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
15680 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15681 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
15682 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
15683 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15684 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
15685
15686 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15687
15688 * config/i386/i386.c (override_options): Don't accept
15689 -mtls-dialect=sun any longer.
15690 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
15691 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
15692 (*tls_local_dynamic_base_32_sun): Likewise.
15693 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15694
15695 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15696
15697 PR debug/43508
15698 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15699 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
15700
15701 PR debug/43479
15702 * ira.c (adjust_cleared_regs): New function.
15703 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
15704
15705 PR debug/19192
15706 PR debug/43479
15707 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
15708 from gimple_block.
15709 * expr.c (expand_expr_real): Restore previous
15710 curr_insn_source_location and curr_insn_block after
15711 expand_expr_real_1 call.
15712 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
15713 instead of expand_expr_real_1.
15714
15715 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
15716
15717 PR rtl-optimization/43413
15718 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
15719 hard regs too.
15720
15721 2010-03-22 James E. Wilson <wilson@codesourcery.com>
15722
15723 PR target/43348
15724 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
15725 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
15726
15727 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
15728
15729 * config/i386/i386.c (ix86_target_string): Add -mfma.
15730 Fix a typo in comment.
15731
15732 2010-03-22 Mike Stump <mikestump@comcast.net>
15733
15734 PR target/23071
15735 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
15736 Don't overly align based upon packed packed fields.
15737
15738 2010-03-22 Jason Merrill <jason@redhat.com>
15739
15740 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
15741 Use () rather than [], and move before the element type.
15742
15743 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15744
15745 * doc/configfiles.texi (Configuration Files): Removed
15746 fixinc/Makefile*, intl/Makefile.*.
15747 * doc/makefile.texi: Fixed markup. Abstract from version
15748 control system used.
15749 (Makefile): Removed obsolete gcc/java/parse.y example.
15750 * doc/sourcebuild.texi: Likewise.
15751 (Top Level): Added config, gnattools, libdecnumber, libgcc,
15752 libgomp, libssp. Removed fastjar.
15753 (Miscellaneous Docs): Clarify location.
15754 Added COPYING3, COPYING3.LIB.
15755 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
15756
15757 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15758
15759 PR target/38085
15760 * config/i386/i386.c (x86_function_profiler)
15761 [!NO_PROFILE_COUNTERS]: Fix typo.
15762 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
15763 instead of callq.
15764
15765 2010-03-22 Janis Johnson <janis187@us.ibm.com>
15766 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15767
15768 * doc/sourcebuild.texi (Test Directives): Split into six
15769 subsections, with most of the current text in new subsections
15770 Directives, Selectors, and Final Actions.
15771 (Directives): Split list of test directives into multiple
15772 subsubsections.
15773 (Selectors): Describe use and syntax of selectors.
15774 (Effective-Target Keywords): Describe all existing keywords.
15775 (Add Options): Describe features for dg-add-options.
15776 (Require Support): Describe variants of dg-require-support.
15777 (Final Actions): Describe commands to use in dg-final.
15778
15779 2010-03-22 Michael Matz <matz@suse.de>
15780
15781 PR middle-end/43475
15782 * recog.c (validate_replace_rtx_group): Replace also in
15783 REG_EQUAL and REG_EQUIV notes.
15784
15785 2010-03-22 Richard Guenther <rguenther@suse.de>
15786
15787 PR tree-optimization/43390
15788 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
15789 sure vector extracts are type correct.
15790
15791 2010-03-22 Richard Guenther <rguenther@suse.de>
15792
15793 PR middle-end/40106
15794 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
15795 x * sqrt (x) even when optimizing for size if the target
15796 has native support for sqrt.
15797
15798 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15799
15800 * varasm.c (make_decl_rtl_for_debug): Also clear
15801 flag_mudflap for the duration of make_decl_rtl call.
15802
15803 PR debug/43443
15804 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
15805 locs from preserved VALUEs.
15806
15807 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15808
15809 PR middle-end/42718
15810 * pa.md (movmemsi): Set align to one if zero.
15811 (movmemdi): Likewise.
15812
15813 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
15814
15815 PR target/42321
15816 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
15817 with their corresponding prologue pushes.
15818
15819 2010-03-20 Andrew Pinski <pinskia@gmail.com>
15820
15821 PR target/43156
15822 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
15823 at the begining or end.
15824 (spu_expand_epilogue): Likewise.
15825
15826 2010-03-20 Richard Guenther <rguenther@suse.de>
15827
15828 PR rtl-optimization/43438
15829 * combine.c (make_extraction): Properly zero-/sign-extend an
15830 extraction of the low part of a CONST_INT. Also handle
15831 CONST_DOUBLE.
15832
15833 2010-03-19 Mike Stump <mikestump@comcast.net>
15834
15835 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
15836 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
15837 (override_options): Use SUBTARGET32_DEFAULT_CPU.
15838
15839 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15840
15841 PR c/43211
15842 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
15843 an error.
15844
15845 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
15846
15847 PR rtl-optimization/42258
15848 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
15849 use that may match DEF.
15850
15851 PR target/40697
15852 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
15853 the cost of loading the constant rather than assuming
15854 COSTS_N_INSNS (1).
15855 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
15856 outer code is AND, do the same tests as the andsi3 expander and
15857 return COSTS_N_INSNS (1) if and is cheap.
15858
15859 * optabs.c (avoid_expensive_constant): Fix formatting.
15860
15861 2010-03-19 Michael Matz <matz@suse.de>
15862
15863 PR c++/43116
15864 * attribs.c (decl_attributes): When rebuilding a function pointer
15865 type use the same qualifiers as the original pointer type.
15866
15867 2010-03-19 Martin Jambor <mjambor@suse.cz>
15868
15869 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
15870 and is_gimple_ip_invariant_address.
15871
15872 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15873
15874 Revert
15875 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15876
15877 * config/arm/arm.c (arm_override_options): Turn off
15878 flag_dwarf2_cfi_asm for AAPCS variants.
15879
15880 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15881
15882 PR target/43399
15883 * config/arm/arm.c (emit_multi_reg_push): Update comments.
15884 Use PRE_MODIFY instead of PRE_DEC.
15885 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
15886 (vfp_emit_fstmd): Likewise.
15887
15888 2010-03-19 Michael Matz <matz@suse.de>
15889
15890 PR target/43305
15891 * builtins.c (expand_builtin_interclass_mathfn,
15892 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15893 if that fails.
15894
15895 2010-03-19 Richard Guenther <rguenther@suse.de>
15896
15897 PR tree-optimization/43415
15898 * tree-ssa-pre.c (phi_translate): Split out worker to ...
15899 (phi_translate_1): ... this.
15900 (phi_translate): Move all caching here. Cache all NARY
15901 and REFERENCE translations.
15902
15903 2010-03-19 David S. Miller <davem@davemloft.net>
15904
15905 With help from Eric Botcazou.
15906 * config/sparc/sparc.c: Include dwarf2out.h.
15907 (emit_pic_helper): Delete.
15908 (pic_helper_symbol_name): Delete.
15909 (pic_helper_emitted_p): Delete.
15910 (pic_helper_needed): New.
15911 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15912 (get_pc_thunk_name): New.
15913 (load_pic_register): Remove 'delay_pic_helper' arg. Use
15914 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15915 Set pic_helper_needed to true. Don't call emit_pic_helper.
15916 (sparc_expand_prologue): Update load_pic_register call.
15917 (sparc_output_mi_thunk): Likewise.
15918 (sparc_file_end): Emit a hidden comdat symbol for the PIC
15919 thunk if possible. Output CFI information as needed.
15920
15921 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15922 Jack Howarth <howarth@bromo.med.uc.edu>
15923
15924 PR target/36399
15925 * config/i386/i386.h: Fix ABI on darwin x86-32.
15926
15927 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
15928
15929 * tree.h: Declare make_decl_rtl_for_debug.
15930 * varasm.c (make_decl_rtl_for_debug): New.
15931 * dwarf2out.c (rtl_for_decl_location): Call it.
15932 * cfgexpand.c (expand_debug_expr): Call it.
15933
15934 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15935
15936 PR bootstrap/43399
15937 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
15938 mem_mode.
15939
15940 PR bootstrap/43403
15941 * var-tracking.c (vt_init_cfa_base): Do nothing if
15942 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
15943
15944 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
15945
15946 PR debug/42873
15947 * var-tracking.c (canonicalize_vars_star): New.
15948 (dataflow_post_merge_adjust): Use it.
15949
15950 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15951
15952 PR debug/43058
15953 * var-tracking.c (non_suitable_const): New function.
15954 (add_uses): For DEBUG_INSNs with constants, don't record any
15955 value, instead just the constant value itself.
15956 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
15957 is not VAR_LOC_UNKNOWN_P, set var to the constant.
15958 (emit_notes_in_bb): Likewise.
15959 (emit_note_insn_var_location): For onepart variables if
15960 cur_loc is a VOIDmode constant, use DECL_MODE.
15961
15962 2010-03-18 Martin Jambor <mjambor@suse.cz>
15963
15964 PR middle-end/42450
15965 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
15966 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
15967 all non-clones. Moved call redirection...
15968 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
15969 (cgraph_materialize_all_clones): Dispose of all
15970 combined_args_to_skip bitmaps.
15971 (verify_cgraph_node): Do not check for edges pointing to wrong
15972 nodes in inline clones.
15973 * tree-inline.c (copy_bb): Call
15974 cgraph_redirect_edge_call_stmt_to_callee.
15975 * ipa.c (cgraph_remove_unreachable_nodes): Call
15976 cgraph_node_remove_callees even when there are used clones.
15977
15978 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15979
15980 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
15981
15982 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
15983
15984 PR target/43383
15985 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
15986 for 32bit.
15987
15988 2010-03-18 Michael Matz <matz@suse.de>
15989
15990 PR middle-end/43419
15991 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15992 into sqrt(x) if we need to preserve signed zeros.
15993
15994 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
15995 Eric Botcazou <ebotcazou@adacore.com>
15996
15997 PR rtl-optimization/43360
15998 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15999 note if we don't know its invariant status.
16000
16001 2010-03-18 Michael Matz <matz@suse.de>
16002
16003 PR tree-optimization/43402
16004 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
16005 PHI chains of ssa names registered for update.
16006
16007 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
16008
16009 PR target/42427
16010 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
16011 non-offsettable and pre_modify update addressing.
16012 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
16013 and "2" alternatives "#".
16014 (*movdd_softfloat32): Make all alternatives "#";
16015 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
16016 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
16017 (*movdf_softfloat32): Make all alternatives "#";
16018 (movdi): Use the new DIFD mode iterator to create a common splitter
16019 for movdi, movdf and movdd patterns.
16020
16021 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
16022
16023 * common.opt (dumpdir): Remove redundant tab.
16024
16025 2010-03-17 Martin Jambor <mjambor@suse.cz>
16026
16027 PR tree-optimization/43347
16028 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
16029 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
16030
16031 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
16032
16033 PR rtl-optimization/42216
16034 * regrename.c (create_new_chain): New function, broken out from...
16035 (scan_rtx_reg): ... here. Call it. Handle the case where we are
16036 appending a use to an empty chain.
16037 (build_def_use): Remove previous changes that convert OP_INOUT to
16038 OP_OUT operands; instead detect the case where an OP_INOUT operand
16039 uses a previously untracked register and create an empty chain for it.
16040
16041 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16042
16043 * doc/extend.texi (Function Attributes): Rewrite unfinished
16044 sentence in ms_abi documentation.
16045
16046 2010-03-17 Alan Modra <amodra@gmail.com>
16047
16048 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
16049 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
16050 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
16051 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
16052
16053 2010-03-16 Richard Henderson <rth@redhat.com>
16054
16055 PR middle-end/43365
16056 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
16057 (lower_try_finally): Save and restore eh_seq around the expansion
16058 of the try-finally.
16059
16060 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16061
16062 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
16063 statements before splitting block.
16064
16065 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16066
16067 * doc/sourcebuild.texi (Testsuites): Fix markup.
16068 Use pathnames relative to gcc/testsuite.
16069 (Test Directives): Move description of how timeout is determined.
16070 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
16071 (C Tests): Correct gcc.misc-tests directory.
16072 Framework tests now live in gcc.test-framework.
16073
16074 2010-03-16 Richard Guenther <rguenther@suse.de>
16075
16076 PR middle-end/43379
16077 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
16078 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
16079
16080 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16081 Alexandre Oliva <aoliva@redhat.com>
16082
16083 PR tree-optimization/42917
16084 * lambda-code.c (remove_iv): Skip debug statements.
16085 (lambda_loopnest_to_gcc_loopnest): Likewise.
16086 (not_interesting_stmt): Debug statements are not interesting.
16087
16088 2010-03-16 Jakub Jelinek <jakub@redhat.com>
16089
16090 PR debug/43051
16091 PR debug/43092
16092 * cselib.c (cselib_preserve_constants,
16093 cfa_base_preserved_val): New static variables.
16094 (preserve_only_constants): New function.
16095 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
16096 clear its REG_VALUES. If cselib_preserve_constants, don't
16097 empty the whole hash table, but preserve there VALUEs with constants,
16098 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
16099 (cselib_preserve_cfa_base_value): New function.
16100 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
16101 (cselib_init): Change argument to int bitfield. Set
16102 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
16103 is in it.
16104 (cselib_finish): Clear cselib_preserve_constants and
16105 cfa_base_preserved_val.
16106 * cselib.h (enum cselib_record_what): New enum.
16107 (cselib_init): Change argument to int.
16108 (cselib_preserve_cfa_base_value): New prototype.
16109 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
16110 * dse.c (dse_step1): Likewise.
16111 * cfgcleanup.c (thread_jump): Likewise.
16112 * sched-deps.c (sched_analyze): Likewise.
16113 * gcse.c (local_cprop_pass): Likewise.
16114 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
16115 If FN is non-NULL, call the callback always and whenever it returns
16116 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
16117 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
16118 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
16119 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
16120 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
16121 * var-tracking.c: Include recog.h.
16122 (bb_stack_adjust_offset): Remove.
16123 (vt_stack_adjustments): Don't call it, instead just gather the
16124 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
16125 (adjust_stack_reference): Remove.
16126 (compute_cfa_pointer): New function.
16127 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
16128 (struct adjust_mem_data): New type.
16129 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
16130 functions.
16131 (get_address_mode): New function.
16132 (replace_expr_with_values): Use it.
16133 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
16134 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
16135 (adjust_sets): Remove.
16136 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
16137 Use get_address_mode.
16138 (get_adjusted_src): Remove.
16139 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
16140 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
16141 (add_with_sets): Don't call adjust_sets.
16142 (fp_setter, vt_init_cfa_base): New functions.
16143 (vt_initialize): Change return type to bool. Move most of pool etc.
16144 initialization to the beginning of the function from end. Pass
16145 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
16146 If !frame_pointer_needed, call vt_stack_adjustment before mos
16147 vector is filled, call vt_init_cfa_base if argp/framep has been
16148 eliminated to sp. If frame_pointer_needed and argp/framep has
16149 been eliminated to hard frame pointer, set
16150 hard_frame_pointer_adjustment and call vt_init_cfa_base after
16151 encountering fp setter in the prologue. For MO_ADJUST, call
16152 log_op_type before pusing the op into mos vector, not afterwards.
16153 Call adjust_insn before cselib_process_insn/add_with_sets,
16154 call cancel_changes (0) afterwards.
16155 (variable_tracking_main_1): Adjust for vt_initialize calling
16156 vt_stack_adjustments and returning whether it succeeded or not.
16157
16158 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
16159
16160 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
16161 debug statements.
16162
16163 2010-03-15 Jakub Jelinek <jakub@redhat.com>
16164
16165 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
16166 has been set.
16167 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
16168 drap_reg has not been set.
16169
16170 2010-03-15 Michael Matz <matz@suse.de>
16171
16172 PR middle-end/43300
16173 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
16174 use it to expand block copies.
16175 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
16176 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
16177 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
16178
16179 2010-03-15 Richard Guenther <rguenther@suse.de>
16180
16181 PR tree-optimization/43367
16182 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
16183 elimination check.
16184
16185 2010-03-15 Richard Guenther <rguenther@suse.de>
16186
16187 PR tree-optimization/43317
16188 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
16189
16190 2010-03-15 Martin Jambor <mjambor@suse.cz>
16191
16192 PR tree-optimization/43141
16193 * tree-sra.c (create_abstract_origin): New function.
16194 (modify_function): Call create_abstract_origin.
16195
16196 2010-03-15 Chris Demetriou <cgd@google.com>
16197
16198 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
16199 wasn't copied.
16200
16201 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16202
16203 PR middle-end/43354
16204 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
16205 call insert_out_of_ssa_copy for default definitions.
16206
16207 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16208
16209 * graphite-clast-to-gimple.c (my_long_long): Defined.
16210 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
16211 * graphite-sese-to-poly.c (my_long_long): Defined.
16212 (scop_ivs_can_be_represented): Use it.
16213
16214 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16215
16216 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
16217 graphite-max-bbs-per-function, and loop-block-tile-size.
16218 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
16219 with "maximum".
16220 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
16221
16222 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16223
16224 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
16225 forward declaration.
16226 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
16227 (add_upper_bounds_from_estimated_nit): New.
16228 (build_loop_iteration_domains): Use it.
16229
16230 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16231
16232 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
16233
16234 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16235
16236 PR middle-end/43306
16237 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
16238 should be an INTEGER_CST. Also handle CASE_CONVERT.
16239
16240 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16241
16242 * graphite.c (graphite_initialize): To bound the number of bbs per
16243 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
16244 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
16245 * doc/invoke.texi: Document it.
16246
16247 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16248
16249 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
16250 * graphite-sese-to-poly.h (build_poly_scop): Same.
16251
16252 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16253
16254 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
16255 the number of parameters in the scop. Use as an upper bound
16256 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
16257 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
16258 * doc/invoke.texi: Document it.
16259
16260 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
16261
16262 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
16263 * doc/c-tree.texi: Remove.
16264 * doc/generic.texi: Merge c-tree.texi here.
16265 * doc/gccint.texi (Trees): Remove menu entry.
16266 (c-tree.texi): Remove @include.
16267 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
16268 * doc/languages.texi (Reading RTL): Ditto.
16269
16270 2010-03-12 Steve Ellcey <sje@cup.hp.com>
16271
16272 PR target/42869
16273 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
16274
16275 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16276
16277 PR middle-end/42431
16278 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
16279 code added to work around reload clobbering CONST insns.
16280
16281 2010-03-12 Jakub Jelinek <jakub@redhat.com>
16282
16283 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
16284 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
16285 (cselib_preserve_only_values): Remove retain argument, don't
16286 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
16287 * cselib.h (cselib_preserve_only_values): Remove retain argument.
16288 * var-tracking.c (micro_operation): Move insn field before union.
16289 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
16290 (struct variable_tracking_info_def): Remove n_mos field, change
16291 mos into a vector of micro_operations.
16292 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
16293 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
16294 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
16295 changing into a vector.
16296 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
16297 come before all other uops generated by add_stores.
16298 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
16299 argument removal.
16300 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
16301 a vector. Run just one pass over the bbs instead of separate counting
16302 and computation phase.
16303 (vt_finalize): Free VTI (bb)->mos vector instead of array.
16304
16305 PR debug/43329
16306 * tree-inline.c (remap_decls): Put old_var rather than origin_var
16307 into *nonlocalized_list vector.
16308 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16309 even if origin is non-NULL.
16310 (gen_variable_die): Likewise.
16311 (process_scope_var): Don't change origin.
16312 (gen_decl_die): Likewise.
16313 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16314 before adding new edges instead of after it, fix moving over
16315 debug stmts.
16316
16317 2010-03-11 David S. Miller <davem@davemloft.net>
16318
16319 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16320 of four.
16321 * configure: Rebuild.
16322
16323 2010-03-11 Martin Jambor <mjambor@suse.cz>
16324
16325 PR tree-optimization/43257
16326 * tree.c (assign_assembler_name_if_neeeded): New function.
16327 (free_lang_data_in_cgraph): Assembler name assignment moved to the
16328 above new function.
16329 * tree.h (assign_assembler_name_if_neeeded): Declare.
16330 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16331 the function if needed.
16332
16333 2010-03-11 Chris Demetriou <cgd@google.com>
16334
16335 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16336 include/stdint-gcc.h, and include/stdint.h world-readable.
16337
16338 2010-03-11 Richard Guenther <rguenther@suse.de>
16339
16340 PR tree-optimization/43255
16341 * tree-vrp.c (process_assert_insertions_for): Do not insert
16342 asserts for trivial conditions.
16343
16344 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16345
16346 PR tree-optimization/43280
16347 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16348 generation. Move calculation of size out of the if branch.
16349 (find_bswap): Modify compare number generation.
16350
16351 2010-03-11 Richard Guenther <rguenther@suse.de>
16352
16353 PR lto/43200
16354 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16355 (input_gimple_stmt): Fixup handled component types during
16356 operand read. Also fix up decls in ADDR_EXPRs.
16357
16358 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
16359
16360 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16361 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16362
16363 2010-03-10 Jan Hubicka <jh@suse.cz>
16364
16365 PR c/43288
16366 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16367 * varasm.c (get_variable_section): Don't do that here...
16368 (make_decl_rtl): ... and here.
16369 (do_assemble_alias): Produce decl RTL.
16370 (assemble_alias): Likewise.
16371
16372 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16373
16374 PR debug/43290
16375 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16376 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16377 of fde->vdrap_reg.
16378 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16379 (based_loc_descr): Only express drap or vdrap regno based expressions
16380 using DW_OP_fbreg when not optimizing.
16381 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16382 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16383 REG_CFA_SET_VDRAP note.
16384
16385 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
16386
16387 PR tree-optimization/43236
16388 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16389 error in calculation of base address in reverse iteration case.
16390 (generate_builtin): Take number of latch executions if the statement
16391 is in the latch.
16392
16393 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
16394
16395 PR middle-end/42859
16396 * tree-eh.c: Include pointer-set.h.
16397 (lower_eh_dispatch): Filter out duplicate case labels and
16398 remove the unneeded edge when the label is unused. Return
16399 true when some edges are removed.
16400 (execute_lower_eh_dispatch): When any lowering resulted in
16401 removing an edge, also delete unreachable blocks.
16402
16403 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16404
16405 PR bootstrap/43287
16406 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16407 UNSPEC_MACHOPIC_OFFSET.
16408
16409 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
16410
16411 PR target/43294
16412 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16413 (m68k_delegitimize_address): New function.
16414
16415 2010-03-09 Jakub Jelinek <jakub@redhat.com>
16416
16417 PR debug/43299
16418 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16419
16420 PR debug/43299
16421 * var-tracking.c (adjust_sets): New function.
16422 (count_with_sets, add_with_sets): Use it.
16423 (get_adjusted_src): New inline function.
16424 (add_stores): Use it.
16425
16426 PR debug/43304
16427 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16428 call cselib_dummy_expand_value_rtx_cb instead of
16429 cselib_expand_value_rtx_cb.
16430
16431 PR debug/43293
16432 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16433 * config/i386/i386.c: Include debug.h and dwarf2out.h.
16434 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16435 and .cfi_endproc around the pic thunks.
16436 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16437 all queued unwind info register saves are saved before the call.
16438 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16439 considered as sp-=4 for unwind info and the pop as sp+=4 which
16440 also clobbers dest, but doesn't actually restore it.
16441
16442 PR debug/43290
16443 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16444 RTX_FRAME_RELATED_P.
16445
16446 2010-03-09 Jie Zhang <jie@codesourcery.com>
16447
16448 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16449 whitespaces in output template.
16450
16451 2010-03-09 Jie Zhang <jie@codesourcery.com>
16452
16453 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16454 out array boundary.
16455
16456 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16457
16458 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16459 builtins.exp in a separate job.
16460
16461 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16462
16463 * graphite-sese-to-poly.c (add_param_constraints): Use
16464 lower_bound_in_type and upper_bound_in_type.
16465
16466 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16467
16468 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16469 instead of unsigned_type_node.
16470
16471 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16472 Reza Yazdani <reza.yazdani@amd.com>
16473
16474 PR middle-end/43065
16475 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16476 on pointer type parameters.
16477
16478 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16479
16480 PR middle-end/42644
16481 PR middle-end/42130
16482 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16483 handle conversions from pointer to integers.
16484 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16485 induction variable, to be able to work with code generated by CLooG.
16486 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16487 (build_poly_scop): Bail out if we cannot codegen a loop.
16488
16489 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16490
16491 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16492 code generation with gloog_error.
16493
16494 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16495
16496 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16497 Call fold_convert on all the returned values.
16498 (expand_scalar_variables_expr): Pass to
16499 expand_scalar_variables_ssa_name the type of the resulting expression.
16500
16501 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16502
16503 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16504 ppl_min_for_le_pointset.
16505 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16506 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16507
16508 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16509
16510 * graphite-dependences.c (map_into_dep_poly): Removed.
16511 (dependence_polyhedron_1): Use combine_context_id_scat.
16512
16513 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16514
16515 * graphite-poly.h (struct poly_scattering): Add layout documentation.
16516 (struct poly_bb): Same.
16517 (combine_context_id_scat): New.
16518
16519 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16520
16521 PR middle-end/42326
16522 * sese.c (name_defined_in_loop_p): Return false for default
16523 definitions.
16524
16525 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16526
16527 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
16528 and clean up the logic.
16529
16530 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16531
16532 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
16533 early return.
16534
16535 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16536
16537 * var-tracking.c (remove_cselib_value_chains): Define only for
16538 ENABLE_CHECKING.
16539 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
16540 delete_slot_part, emit_notes_for_differences_1): Don't call
16541 remove_cselib_value_chains here.
16542 (set_slot_part, emit_notes_for_differences_2): Don't call
16543 add_cselib_value_chains here.
16544 (preserved_values): New vector.
16545 (preserve_value): New function.
16546 (add_uses, add_stores, vt_add_function_parameters): Use it
16547 instead of cselib_preserve_value.
16548 (changed_values_stack): New vector.
16549 (check_changed_vars_0): New function.
16550 (check_changed_vars_1, check_changed_vars_2): Use it.
16551 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
16552 changed_values_stack VALUEs.
16553 (vt_emit_notes): For all preserved_values call
16554 add_cselib_value_chains. If ENABLE_CHECKING call
16555 remove_cselib_value_chains before verifying value_chains is empty.
16556 Initialize and free changed_values_stack.
16557 (vt_initialize): Initialize preserved_values.
16558 (vt_finalize): Free preserved_values.
16559
16560 2010-03-08 Richard Guenther <rguenther@suse.de>
16561
16562 PR tree-optimization/43269
16563 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
16564 region detection.
16565
16566 2010-03-08 Martin Jambor <mjambor@suse.cz>
16567
16568 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
16569 (ipa_is_param_called): Removed.
16570 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
16571 (ipa_print_node_params): Do not print the called flag.
16572 (ipa_write_node_info): Do not stream the called flag.
16573 (ipa_read_node_info): Likewise.
16574
16575 2010-03-07 Jakub Jelinek <jakub@redhat.com>
16576
16577 PR debug/43176
16578 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
16579 * cselib.c (struct expand_value_data): Add dummy field.
16580 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
16581 dummy to false.
16582 (cselib_dummy_expand_value_rtx_cb): New function.
16583 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
16584 any rtl.
16585 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
16586 * var-tracking.c: Include pointer-set.h.
16587 (variable): Change n_var_parts to char from int. Add
16588 cur_loc_changed and in_changed_variables fields.
16589 (variable_canonicalize): Remove.
16590 (shared_var_p): New inline function.
16591 (unshare_variable): Maintain cur_loc_changed and
16592 in_changed_variables fields. If var was in changed_variables,
16593 replace it there with new_var. Just copy cur_loc instead of
16594 resetting it to something else.
16595 (variable_union): Don't recompute cur_loc. Use shared_var_p.
16596 (dataflow_set_union): Don't call variable_canonicalize.
16597 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16598 of their DEBUG_EXPR_TREE_DECLs.
16599 (canonicalize_loc_order_check): Verify that cur_loc is NULL
16600 and in_changed_variables and cur_loc_changed is false.
16601 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16602 and cur_loc_changed. Don't update cur_loc here.
16603 (variable_merge_over_src): Don't call variable_canonicalize.
16604 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
16605 removing loc that is equal to cur_loc, clear cur_loc,
16606 set cur_loc_changed and ensure variable_was_changed is called.
16607 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
16608 compare pointers in cur_loc check, if it is equal to loc,
16609 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
16610 (variable_different_p): Remove compare_current_location argument,
16611 don't compare cur_loc.
16612 (dataflow_set_different_1): Adjust variable_different_p caller.
16613 (variable_was_changed): If dv had some var in changed_variables
16614 already, reset in_changed_variables flag for it and propagate
16615 cur_loc_changed over to the new variable. On empty var
16616 always set cur_loc_changed. Set in_changed_variables on whatever
16617 var is added to changed_variables.
16618 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16619 Use shared_var_p. When removing loc that is equal to cur_loc,
16620 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
16621 end, don't set it to something else, just call variable_was_changed.
16622 (delete_slot_part): Use shared_var_p. When cur_loc equals to
16623 loc being removed, clear cur_loc and set cur_loc_changed.
16624 Set cur_loc_changed if all locations have been removed.
16625 (struct expand_loc_callback_data): New type.
16626 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16627 allocated. Always create SUBREGs if simplify_subreg failed.
16628 Prefer to use cur_loc, when that fails and still in
16629 changed_variables (and seen first time) recompute it. Set
16630 cur_loc_changed of variables which had to change cur_loc and
16631 compute elcd->cur_loc_changed if any of the subexpressions used
16632 had to change cur_loc.
16633 (vt_expand_loc): Adjust to pass arguments in
16634 expand_loc_callback_data structure.
16635 (vt_expand_loc_dummy): New function.
16636 (emitted_notes): New variable.
16637 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16638 that weren't used for any other decl in current
16639 emit_notes_for_changes call call vt_expand_loc_dummy to update
16640 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
16641 first loc_chain location if NULL before. Always use just
16642 cur_loc instead of first loc_chain location. When cur_loc_changed
16643 is false, when not --enable-checking=rtl just don't emit any note.
16644 When rtl checking, compute the note and assert it is the same
16645 as previous note. Clear cur_loc_changed and in_changed_variables
16646 at the end before removing from changed_variables.
16647 (check_changed_vars_3): New function.
16648 (emit_notes_for_changes): Traverse changed_vars to call
16649 check_changed_vars_3 on each changed var.
16650 (emit_notes_for_differences_1): Clear cur_loc_changed and
16651 in_changed_variables. Recompute cur_loc of new_var.
16652 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16653 (vt_emit_notes): Initialize and destroy emitted_notes.
16654
16655 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
16656
16657 PR rtl-optimization/42220
16658 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
16659 Use verify_reg_tracked to determine if we should use OP_OUT rather
16660 than OP_INOUT.
16661 (build_def_use): If we see an in-out operand for a register that we
16662 know nothing about, treat is an output if possible, fail the block if
16663 not.
16664
16665 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16666
16667 PR debug/42897
16668 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
16669 permanently.
16670
16671 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16672
16673 PR debug/42897
16674 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
16675 uses of relevant DEFs that are dead outside the loop too.
16676
16677 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16678
16679 * var-tracking.c (dataflow_set_merge): Swap src and src2.
16680 Reverted:
16681 2010-01-13 Jakub Jelinek <jakub@redhat.com>
16682 PR debug/41371
16683 * var-tracking.c (values_to_unmark): New variable.
16684 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16685 values_to_unmark vector. Moved body to...
16686 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
16687 instead queue it into values_to_unmark vector.
16688 (vt_find_locations): Free values_to_unmark vector.
16689
16690 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
16691
16692 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
16693 (site.exp): Export them when plugins are enabled.
16694
16695 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
16696
16697 PR middle-end/42326
16698 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
16699 that contain scevs.
16700 (chrec_fold_multiply): Same.
16701
16702 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
16703
16704 PR c/43248
16705 * c-decl.c (build_compound_literal): Return early if init is
16706 an error_mark_node.
16707
16708 2010-03-04 Martin Jambor <mjambor@suse.cz>
16709
16710 PR tree-optimization/43164
16711 PR tree-optimization/43191
16712 * tree-sra.c (type_consists_of_records_p): Reject records with
16713 zero-size bit-fields at the end.
16714
16715 2010-03-04 Mike Stump <mikestump@comcast.net>
16716
16717 * Makefile.in (TAGS): Remove *.y.
16718
16719 2010-03-04 Richard Guenther <rguenther@suse.de>
16720
16721 PR tree-optimization/40761
16722 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
16723 in reverse order.
16724 (my_rev_post_order_compute): New function.
16725 (init_pre): Call it.
16726
16727 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
16728
16729 PR middle-end/43209
16730 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
16731 decrease the cost of an IV candidate when the cost is infinite.
16732
16733 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16734
16735 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
16736 Use '3DNow!' for the extension of that name, ensure normal space
16737 after the string.
16738 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
16739
16740 2010-03-03 Jeff Law <law@redhat.com>
16741
16742 * PR middle-end/32693
16743 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
16744 than gen_rtx_SUBREG.
16745 (extract_bit_field_1): Likewise.
16746
16747 2010-03-03 Janis Johnson <janis187@us.ibm.com>
16748
16749 * doc/sourcebuild.texi (Test directives): Document that arguments
16750 include-opts and exclude-opts are now optional for dg-skip-if,
16751 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
16752
16753 2010-03-03 Jason Merrill <jason@redhat.com>
16754
16755 PR c++/12909
16756 * cgraph.h (varpool_node): Add extra_name field.
16757 * varpool.c (varpool_extra_name_alias): New.
16758 (varpool_assemble_decl): Emit extra name aliases.
16759 (varpool_mark_needed_node): Look past an extra name alias.
16760 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
16761 * lto-streamer-in.c (lto_input_tree): Read it.
16762 * lto-streamer-out.c (output_unreferenced_globals): Write it.
16763
16764 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
16765
16766 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
16767 (sparc*-*-solaris2*): ...this.
16768
16769 2010-03-03 Jakub Jelinek <jakub@redhat.com>
16770
16771 PR debug/43229
16772 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
16773 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
16774 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
16775 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
16776
16777 PR debug/43237
16778 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
16779 fallthrough to default handling, just with want_address 0 instead of 2.
16780 For single element lists, add_AT_loc directly, otherwise create an
16781 artificial variable DIE and stick location list to it.
16782
16783 PR debug/43177
16784 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
16785 (VAL_EXPR_HAS_REVERSE): Define.
16786 (reverse_op): New function.
16787 (add_stores): For reversible operations add an extra MO_VAL_USE.
16788
16789 2010-03-02 Jason Merrill <jason@redhat.com>
16790
16791 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
16792
16793 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
16794
16795 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
16796 (sparc64-*-linux*): Likewise.
16797 (sparc64-*-solaris2*): Include assembler files before linker ones.
16798 (sparc-*-solaris2*): Simplify and reorder to match previous case.
16799 * config/sparc/gas.h: Delete.
16800 * config/sparc/sol2-64.h: Add copyright notice.
16801 * config/sparc/sol2-gas-bi.h: Likewise.
16802 * config/sparc/sol2-gld.h: Likewise.
16803 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
16804 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
16805 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
16806 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
16807 (sparc_elf_asm_named_section): Rename into...
16808 (sparc_solaris_elf_asm_named_section): ...this. Always define.
16809
16810 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
16811
16812 * config/alpha/alpha.c (override_options): Fix -mtune error message.
16813
16814 2010-03-02 Jeff Law <law@redhat.com>
16815
16816 PR middle-end/42431
16817 * reload1.c (rtx_p, substitute_stack): Declare.
16818 (substitute): Record addresses of changed rtxs.
16819 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
16820 Restore the original rtx when complete.
16821 (reload): Free subsitute_stack when complete.
16822
16823 2010-03-02 Janis Johnson <janis187@us.ibm.com>
16824
16825 * doc/gccint.texi (menu): Add Testsuites as a chapter.
16826 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
16827 new chapter.
16828 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
16829 LTO Testing, gcov Testing, profopt Testing, compat Testing,
16830 Torture Tests): Change from subsection to section.
16831
16832 2010-03-02 Jakub Jelinek <jakub@redhat.com>
16833 Steven Bosscher <steven@gcc.gnu.org>
16834
16835 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
16836 instead of bb.
16837
16838 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
16839
16840 PR middle-end/42640
16841 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
16842 the assignment from the new induction variable to the assignment
16843 of the value from the original loop PHI function.
16844
16845 2010-03-01 Janis Johnson <janis187@us.ibm.com>
16846 Daniel Jacobowitz <dan@codesourcery.com>
16847
16848 * doc/sourcebuild.texi (Test directives): Clarify options to
16849 dg-skip-if.
16850
16851 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16852
16853 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
16854 Disable cfi directives unless GCC and gas agree on using read-only
16855 .eh_frame sections for 64-bit.
16856 * configure: Regenerate.
16857
16858 2010-03-01 Richard Guenther <rguenther@suse.de>
16859
16860 PR tree-optimization/43220
16861 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
16862 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
16863
16864 2010-03-01 Richard Guenther <rguenther@suse.de>
16865 Martin Jambor <mjambor@suse.cz>
16866
16867 PR middle-end/41250
16868 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
16869 gimplified parameters.
16870
16871 2010-03-01 Christian Bruel <christian.bruel@st.com>
16872
16873 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
16874
16875 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16876
16877 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
16878
16879 2010-03-01 Richard Guenther <rguenther@suse.de>
16880
16881 PR middle-end/43213
16882 * expr.c (expand_assignment): Use the alias-oracle to tell
16883 if the rhs aliases the result decl.
16884
16885 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16886
16887 PR pch/14940
16888 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16889 to sol_gt_pch_get_address.
16890 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16891 64-bit, SPARC and x86.
16892 (sol_gt_pch_get_address): New function.
16893
16894 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
16895
16896 * toplev.h (inform_n, error_n): Declare.
16897 * diagnostic.c (inform_n, error_n): New function.
16898
16899 2010-03-01 Jakub Jelinek <jakub@redhat.com>
16900
16901 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16902 has no rtl yet when processing local_decls, queue it and recheck
16903 if deferred stack allocation hasn't assigned it rtl.
16904
16905 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
16906
16907 * config/sh/sh.c (unspec_bbr_uid): New.
16908 (gen_block_redirect): Use it instead of INSN_UID.
16909 (gen_far_branch): Likewise.
16910
16911 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
16912
16913 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16914 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16915
16916 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16917
16918 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16919 (Warning Options): -Wno-conversion-null is valid for
16920 Objective-C++ as well.
16921 * doc/tm.texi (Named Address Spaces): Likewise.
16922 * doc/plugins.texi (Plugins): Replace TABs with spaces.
16923 * doc/tree-ssa.texi (Tree SSA): Likewise.
16924
16925 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16926
16927 PR bootstrap/43202
16928 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16929 by default. Don't set the default arch for
16930 i[34567]86-*-darwin*|x86_64-*-darwin*.
16931
16932 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16933
16934 PR bootstrap/43202
16935 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
16936 default. Set the default 32bit/64bit archs with $with_arch
16937 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
16938
16939 2010-02-27 Richard Guenther <rguenther@suse.de>
16940
16941 PR tree-optimization/43186
16942 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
16943 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
16944 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
16945 unroller iterations.
16946
16947 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16948
16949 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
16950 required and i[34567]86-*-* targets don't support 64bit ISA.
16951
16952 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
16953
16954 PR ada/43096
16955 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16956 the same alias set.
16957
16958 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16959
16960 * config.gcc: Set the default arch at least to Prescott for
16961 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
16962 if SSE math is enabled.
16963
16964 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16965
16966 * diagnostic.c (diagnostic_initialize): Update.
16967 (diagnostic_report_diagnostic): Test inhibit_notes_p for
16968 informative notes.
16969 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
16970 (diagnostic_inhibit_notes): New.
16971 * toplev.c (process_options): inhibit notes with -fcompare-debug.
16972
16973 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16974
16975 PR c/20631
16976 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
16977 * doc/standards.texi: Likewise.
16978 * doc/extend.texi: Likewise.
16979 * doc/trouble.texi: Likewise.
16980 * doc/cppopts.texi: Likewise.
16981 * doc/install.texi: Likewise.
16982 * c.opt (std=c90,std=gnu90): New options.
16983 * c-opts.c (c_common_handle_option): Handle them.
16984
16985 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
16986
16987 PR c/24577
16988 * c-decl.c (undeclared_variable): Use an informative note.
16989
16990 2010-02-26 Richard Guenther <rguenther@suse.de>
16991
16992 PR tree-optimization/43186
16993 * gimple.h (gimple_fold): Remove.
16994 * gimple.c (gimple_fold): Remove. Inline into single user ...
16995 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16996 Try harder for conditions.
16997
16998 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16999
17000 PR debug/43190
17001 * function.c (used_types_insert): Don't skip through named pointer
17002 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
17003 and it is different from the main variant's type.
17004
17005 2010-02-26 Nick Clifton <nickc@redhat.com>
17006
17007 * config/rx/rx.md (sminsi3): Remove bogus alternative.
17008
17009 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
17010
17011 * config.gcc: Support --with-fpmath=sse for x86.
17012
17013 * config/i386/ssemath.h: New.
17014
17015 * doc/install.texi (--with-fpmath=sse): Documented.
17016
17017 2010-02-26 Richard Guenther <rguenther@suse.de>
17018
17019 PR tree-optimization/43188
17020 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
17021 vector types of over-aligned element type.
17022
17023 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
17024
17025 PR target/43175
17026 * config/i386/i386.c (expand_vec_perm_blend): Use correct
17027 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
17028
17029 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
17030
17031 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
17032
17033 2010-02-26 Jakub Jelinek <jakub@redhat.com>
17034
17035 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
17036 * var-tracking.c: Include diagnostic.h.
17037 (debug_dv): New function.
17038 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
17039
17040 PR debug/43160
17041 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
17042 (add_value_chain, add_value_chains, remove_value_chain,
17043 remove_value_chains): Handle DEBUG_EXPRs.
17044 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
17045
17046 PR debug/43161
17047 * regcprop.c (struct queued_debug_insn_change): New type.
17048 (struct value_data_entry): Add debug_insn_changes field.
17049 (struct value_data): Add n_debug_insn_changes field.
17050 (debug_insn_changes_pool): New variable.
17051 (free_debug_insn_changes, apply_debug_insn_changes,
17052 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
17053 (kill_value_one_regno): Call free_debug_insn_changes if needed.
17054 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
17055 fields.
17056 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
17057 changes for them.
17058 (copyprop_hardreg_forward_1): Don't call apply_change_group for
17059 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
17060 changes, call cprop_find_used_regs via note_stores.
17061 (copyprop_hardreg_forward): When copying vd from predecessor
17062 which has any queued DEBUG_INSN changes, make sure the pointers are
17063 cleared. At the end call df_analyze and then if there are any
17064 DEBUG_INSN changes queued at the end of some basic block for still
17065 live registers, apply them.
17066 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
17067
17068 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
17069
17070 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
17071 (arm*-*-*): Ditto.
17072
17073 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
17074
17075 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
17076 targets. Set the default with_cpu/with_arch from arch/cpu.
17077 Allow x86-64 and native for with_cpu/with_arch.
17078
17079 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
17080
17081 * ebitmap.c: Change calls to verify_popcount with calls to
17082 sbitmap_verify_popcount.
17083 (ebitmap_clear_bit): Fixed map->cacheindex test and
17084 map>cache update when bit clearing results in an empty
17085 element.
17086
17087 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17088
17089 PR target/43154
17090 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
17091 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
17092 and support both V2DF and V2DI modes.
17093 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
17094 support both V2DF and V2DI modes.
17095 (general): Delete trailing whitespace from a few patterns.
17096
17097 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17098 V2DF/V2DI interleave high/low builtins.
17099
17100 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
17101 new VSX builtins.
17102
17103 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
17104 interleave high/low functions.
17105
17106 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
17107
17108 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
17109 #pragma extern_prefix.
17110
17111 2010-02-25 Jakub Jelinek <jakub@redhat.com>
17112
17113 PR debug/43166
17114 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
17115 BLKmode, assert op0 is a MEM and just adjust its mode.
17116
17117 PR debug/43165
17118 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
17119 if bitpos isn't multiple of mode's bitsize.
17120
17121 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17122
17123 * c.opt (-ftemplate-depth=): New.
17124 (-ftemplate-depth-): Deprecate.
17125 * optc-gen.awk: Handle -ftemplate-depth=.
17126 * opth-gen.awk: Likewise.
17127 * c-opts.c (c_common_handle_option): Likewise.
17128 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
17129
17130 2010-02-24 Jason Merrill <jason@redhat.com>
17131
17132 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
17133
17134 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17135
17136 * cfg.c (alloc_aux_for_block): Remove inline.
17137 (alloc_aux_for_edge): Likewise.
17138
17139 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17140
17141 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
17142
17143 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17144
17145 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
17146 * config/i386/sol2-gas.h: New file.
17147 * config.gcc (i[34567]86-*-solaris2*): Use it.
17148
17149 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17150
17151 PR c/43128
17152 * c-typeck.c (ep_convert_and_check): New.
17153 (build_conditional_expr): Use it.
17154 (build_binary_op): Likewise.
17155
17156 2010-02-24 Jakub Jelinek <jakub@redhat.com>
17157
17158 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
17159
17160 PR debug/43150
17161 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
17162 bounds even for -O+.
17163 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
17164 expr needs to have DECL_NAME set.
17165
17166 2010-02-24 Nick Clifton <nickc@redhat.com>
17167
17168 * config/mep/mep.c: Include gimple.h.
17169 (mep_function_uses_sp): Delete unused function.
17170 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
17171 parameters. Use unsigned integers to count args. Return a
17172 NULL_RTX instead of an error_mark_node. Toidy up formatting.
17173
17174 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17175
17176 PR target/43107
17177 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
17178 greater or equal to nelt instead of 2 * nelt.
17179 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
17180 with nelt - 1.
17181
17182 2010-02-23 Jason Merrill <jason@redhat.com>
17183
17184 PR debug/42800
17185 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
17186 in cfun->local_decls even if they have register types.
17187
17188 PR c++/42837
17189 * stor-layout.c (place_field): Don't warn about unnecessary
17190 DECL_PACKED if the type is packed.
17191
17192 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17193
17194 PR target/43139
17195 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
17196 GOTOFF relocs, even when the base reg isn't pic pointer.
17197
17198 2010-02-23 Michael Matz <matz@suse.de>
17199
17200 PR debug/43077
17201 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
17202 (expand_gimple_basic_block): Generate and use debug temps if there
17203 are debug uses left after the last real use of TERed ssa names.
17204 Unlink debug immediate uses when they are expanded.
17205
17206 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
17207
17208 PR 43123
17209 * config/i386/i386.c (override_options): Reorganise to provide
17210 better error messages.
17211
17212 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17213
17214 PR middle-end/43083
17215 * graphite-scop-detection.c (create_single_exit_edge): Move
17216 the call to find_single_exit_edge to....
17217 (create_sese_edges): ...here. Don't handle multiple edges
17218 exiting the function.
17219 (build_graphite_scops): Don't handle multiple edges
17220 exiting the function.
17221
17222 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17223
17224 PR middle-end/43097
17225 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
17226 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
17227
17228 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17229
17230 PR middle-end/43026
17231 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
17232
17233 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
17234
17235 PR c++/43126
17236 * c-typeck.c (convert_arguments): Print declaration location.
17237 * c-common.c (validate_nargs): Rename as
17238 builtin_function_validate_nargs.
17239 (check_builtin_function_arguments): Update.
17240
17241 2010-02-22 Richard Guenther <rguenther@suse.de>
17242
17243 PR lto/43045
17244 * tree-inline.c (declare_return_variable): Use the type of
17245 the call stmt lhs if available.
17246
17247 2010-02-22 Duncan Sands <baldrick@free.fr>
17248
17249 * passes.c (register_pass): Always consider all pass lists when
17250 ref_pass_instance_number is zero.
17251
17252 2010-02-22 Richard Guenther <rguenther@suse.de>
17253
17254 PR tree-optimization/42749
17255 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
17256 parameter. Do arithmetic in the original type.
17257 (update_accumulator_with_ops): Likewise.
17258 (adjust_accumulator_values): Adjust.
17259
17260 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17261
17262 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
17263 (QI to BLKmode splitter): New splitter.
17264
17265 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
17266
17267 * config/i386/i386.c (initial_ix86_tune_features): Turn on
17268 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
17269
17270 2010-02-22 Richard Guenther <rguenther@suse.de>
17271
17272 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
17273
17274 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
17275
17276 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
17277 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
17278 ($(T)crti.o, $(T)crtn.o): Remove rules.
17279
17280 2010-02-21 Tobias Burnus <burnus@net-b.de>
17281
17282 PR fortran/35259
17283 * doc/invoke.texi (-fassociative-math): Document that this
17284 option is automatically enabled for Fortran.
17285
17286 2010-02-20 David S. Miller <davem@davemloft.net>
17287
17288 * configure.ac: Test if linker and assembler properly support
17289 GOTDATA_OP relocations.
17290 * configure: Rebuild.
17291 * config.in: Likewise.
17292 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
17293 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
17294 (movsi_high_pic): Likewise.
17295 (movdi_lo_sum_pic): Likewise.
17296 (movdi_high_pic): Likewise.
17297 (movsi_pic_gotdata_op): New pattern.
17298 (movdi_pic_gotdata_op): Likewise.
17299 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
17300 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
17301
17302 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
17303
17304 PR target/43067
17305 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17306 attribute to ssemul.
17307 (xop_mulv2div2di3_high): Ditto.
17308
17309 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17310
17311 PR c++/35669
17312 * c.opt (Wconversion-null): New option.
17313 * doc/invoke.texi (Wconversion-null): Document.
17314
17315 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17316
17317 * common.opt (Wlarger-than-): Add Undocumented.
17318
17319 2010-02-19 Mike Stump <mikestump@comcast.net>
17320
17321 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17322
17323 2010-02-19 Jason Merrill <jason@redhat.com>
17324
17325 PR target/40332
17326 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17327 * configure: Likewise.
17328
17329 2010-02-20 Alan Modra <amodra@gmail.com>
17330
17331 PR middle-end/42344
17332 * cgraph.h (cgraph_make_decl_local): Declare.
17333 * cgraph.c (cgraph_make_decl_local): New function.
17334 (cgraph_make_node_local): Use it.
17335 * cgraphunit.c (cgraph_function_versioning): Likewise.
17336 * ipa.c (function_and_variable_visibility): Likewise.
17337
17338 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17339
17340 PR bootstrap/43121
17341 * except.c (sjlj_emit_function_enter): Don't call
17342 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17343 directly.
17344 * rtl.h (add_reg_br_prob_note): Remove prototype.
17345
17346 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
17347
17348 PR 41779
17349 * c-common.c (conversion_warning): Remove widening conversions
17350 before checking the conversion of integers to reals.
17351
17352 2010-02-19 Mike Stump <mikestump@comcast.net>
17353
17354 PR middle-end/43125
17355 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17356
17357 PR objc/43061
17358 * cgraphunit.c (process_function_and_variable_attributes): Check
17359 DECL_PRESERVE_P instead of looking up attribute "used".
17360 * ipa-pure-const.c (check_decl): Likewise.
17361 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17362 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17363 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17364 instead of attribute "used".
17365 * config/sol2-c.c (solaris_pragma_init): Likewise.
17366 (solaris_pragma_fini): Likewise.
17367
17368 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17369
17370 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17371 Use XCNEW instead of xcalloc.
17372 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17373 XNEW instead of xmalloc.
17374 (get_fields): Use XNEWVEC instead of xmalloc.
17375
17376 PR debug/43084
17377 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17378 populate vars array.
17379 (create_new_general_access): For debug stmts just reset value.
17380 (get_stmt_accesses): For accesses within debug stmts just record them
17381 using add_access_to_acc_sites instead of preventing the peeling or
17382 counting them as accesses.
17383
17384 PR middle-end/42233
17385 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17386
17387 2010-02-19 Richard Guenther <rguenther@suse.de>
17388
17389 PR tree-optimization/42916
17390 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17391 instructions.
17392
17393 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
17394
17395 * configure.ac: Replace all uses of changequote in macro arguments
17396 with proper quoting.
17397
17398 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17399
17400 PR middle-end/42233
17401 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17402
17403 2010-02-19 Richard Guenther <rguenther@suse.de>
17404
17405 PR tree-optimization/42944
17406 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17407 test for aliasing with errno.
17408
17409 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17410
17411 PR middle-end/42233
17412 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17413 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17414 * dojump.c: Include output.h.
17415 (inv): New inline function.
17416 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17417 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17418 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17419 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17420 argument, pass it down to other calls.
17421 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
17422 add REG_BR_PROB note to the conditional jump.
17423 * cfgexpand.c (add_reg_br_prob_note): Removed.
17424 (expand_gimple_cond): Don't call it, add the probability
17425 as last argument to jumpif_1/jumpifnot_1.
17426 * Makefile.in (dojump.o): Depend on output.h.
17427 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17428 callers.
17429 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17430 * stmt.c (do_jump_if_equal): Likewise.
17431 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17432 * loop-unswitch.c (compare_and_jump_seq): Likewise.
17433 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17434 Likewise.
17435 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17436 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17437 jumpifnot_1 callers.
17438 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17439 callers.
17440 (store_expr): Adjust jumpifnot caller.
17441 (store_constructor): Adjust jumpif caller.
17442
17443 PR middle-end/42233
17444 * gimplify.c (gimple_boolify): For __builtin_expect call
17445 gimple_boolify also on its first argument.
17446
17447 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
17448
17449 * configure.ac (gnu-unique-object): Wrap regexps using [] in
17450 changequote block.
17451 (__stack_chk_fail): Ditto. Remove quadrigraphs.
17452 * configure: Regenerated.
17453
17454 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17455
17456 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17457 lang_hooks.types_compatible_p instead of comptypes.
17458
17459 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17460
17461 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17462 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17463 if __prefer_thumb__ is defined.
17464
17465 2010-02-18 Martin Jambor <mjambor@suse.cz>
17466
17467 PR tree-optimization/43066
17468 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17469 array with zero-sized element type.
17470
17471 2010-02-18 Jakub Jelinek <jakub@redhat.com>
17472
17473 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17474 rtx, allocate struct var_loc_node here and return it to the
17475 caller, and only if it is actually needed.
17476 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17477 move it earlier and return immediately if it returns NULL.
17478
17479 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
17480
17481 * config/sparc/gas.h: New file. Restore
17482 TARGET_ASM_NAMED_SECTION to its ELF default.
17483 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17484 check !HAVE_GNU_AS.
17485 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17486 Likewise. Add ATTRIBUTE_UNUSED to prototype.
17487 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17488 after sparc/sysv4.h.
17489
17490 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
17491
17492 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17493
17494 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
17495
17496 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17497 patterns from predicated pattern.
17498
17499 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
17500
17501 PR target/43103
17502 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17503 for insn mnemonic suffix.
17504
17505 2010-02-17 Richard Guenther <rguenther@suse.de>
17506
17507 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17508 to loop PHI nodes.
17509
17510 2010-02-17 Jakub Jelinek <jakub@redhat.com>
17511
17512 PR debug/42918
17513 * caller-save.c (save_call_clobbered_regs): If BB ends with
17514 a DEBUG_INSN, move any notes in between last real insn and the last
17515 DEBUG_INSN after the last DEBUG_INSN.
17516
17517 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
17518
17519 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17520 Fix return type. Fix argument type. Explain meaning of return value.
17521
17522 2010-02-16 Richard Guenther <rguenther@suse.de>
17523
17524 PR tree-optimization/41043
17525 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
17526 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
17527 statements ...
17528 (vrp_visit_phi_node): ... but only for loop PHI nodes.
17529
17530 2010-02-16 Ira Rosen <irar@il.ibm.com>
17531
17532 PR tree-optimization/43074
17533 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
17534 * tree-vect-loop.c (vect_analyze_loop_operations): Add
17535 vectorizable cycles in hybrid SLP check.
17536 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
17537
17538 2010-02-16 Richard Guenther <rguenther@suse.de>
17539
17540 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
17541 (true_dependence): If memrefs_conflict_p computes must-alias
17542 trust it. Move TBAA check after offset-based disambiguation.
17543 (canon_true_dependence): Likewise.
17544
17545 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
17546
17547 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
17548 * doc/invoke.texi: Document it.
17549 * var-tracking.c: Include toplev.h and params.h.
17550 (vt_find_locations): Return bool indicating success. Compute
17551 hash sizes unconditionally. Check new parameter, report.
17552 (variable_tracking_main_1): Check vt_find_locations results and
17553 retry. Renamed from...
17554 (variable_tracking_main): ... this. New wrapper to preserve
17555 flag_var_tracking_assignments.
17556 * Makefile.in (var-tracking.o): Adjust dependencies.
17557
17558 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
17559 Jakub Jelinek <jakub@redhat.com>
17560
17561 PR target/42854
17562 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
17563 if weak_import attribute is present.
17564 * config/darwin.c (machopic_select_section): Likewise.
17565
17566 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
17567
17568 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
17569 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
17570 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
17571 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
17572
17573 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
17574 types.
17575
17576 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17577 Fix argument types.
17578
17579 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
17580 Rewrite text to refer to the names.
17581
17582 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
17583
17584 * config/i386/i386-builtin-types.def
17585 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
17586 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17587 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17588 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17589 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17590 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17591 IX86_BUILTIN_VPERMIL2PS256.
17592 (MULTI_ARG_4_DF2_DI_I): Defined.
17593 (MULTI_ARG_4_DF2_DI_I1): Defined.
17594 (MULTI_ARG_4_SF2_SI_I): Defined.
17595 (MULTI_ARG_4_SF2_SI_I1): Defined.
17596 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17597 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17598 __builtin_ia32_vpermil2ps256.
17599 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17600 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17601 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
17602 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17603 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17604 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
17605 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17606 CODE_FOR_xop_vpermil2v8sf3.
17607 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17608 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17609 * config/i386/xopintrin.h (_mm_permute2_pd): New.
17610 (_mm256_permute2_pd): New.
17611 (_mm_permute2_ps): New.
17612 (_mm256_permute2_ps): New.
17613
17614 2010-02-15 Nick Clifton <nickc@redhat.com>
17615
17616 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17617 boolean parameters. Use emit_jump_insn when emitting a pop
17618 instruction containing a return insn.
17619 (push): Use 'true' rather than '1' as second parameter to F.
17620 (h8300_expand_prologue): Likewise.
17621 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17622 (h8300_expand_epilogue): Likewise.
17623
17624 2010-02-15 Richard Guenther <rguenther@suse.de>
17625
17626 PR middle-end/43068
17627 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17628 if that is zero.
17629
17630 2010-02-15 Nick Clifton <nickc@redhat.com>
17631
17632 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17633 delta.
17634
17635 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
17636
17637 * intl.c (fake_ngettext): New function.
17638 * intl.h (fake_ngettext): Declare.
17639 (ngettext): Define macro.
17640 * collect2.c (notice_translated): New function.
17641 (main): Use notice_translated and ngettext.
17642 * collect2.h (notice_translated): Declare.
17643
17644 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
17645
17646 * reorg.c (delete_computation): Comment fixes.
17647 * caller-save.c (setup_save_areas): Idem.
17648 * sel-sched-dump.c (dump_lv_set): Idem.
17649 * rtl.def: Idem.
17650
17651 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17652
17653 * config/s390/s390.c (s390_sched_init): New function.
17654 (TARGET_SCHED_INIT): Target hook defined.
17655
17656 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
17657 Jack Howarth <howarth@bromo.med.uc.edu>
17658 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17659
17660 PR target/42982
17661 Partial revert of unintended change in fix for PR41605.
17662 * config/darwin.h: Fix typo.
17663 * config/darwin9.h: Same.
17664
17665 2010-02-11 Jakub Jelinek <jakub@redhat.com>
17666
17667 * c-pch.c (pch_init): Clear v.
17668
17669 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17670
17671 PR middle-end/42930
17672 * graphite-scop-detection.c (graphite_can_represent_scev): Call
17673 graphite_can_represent_init for MULT_EXPR.
17674
17675 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17676
17677 PR middle-end/42914
17678 PR middle-end/42530
17679 * graphite-sese-to-poly.c (remove_phi): New.
17680 (translate_scalar_reduction_to_array): Call remove_phi.
17681
17682 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17683
17684 PR middle-end/42771
17685 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
17686 * graphite-clast-to-gimple.h (gloog): Update declaration.
17687 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
17688 * graphite-poly.h (struct poly_bb): Add missing comments.
17689 (struct scop): Add poly_scop_p field.
17690 (POLY_SCOP_P): New.
17691 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
17692 * graphite.c (graphite_transform_loops): Build the polyhedral
17693 representation for each scop before code generation.
17694 * sese.c (rename_variables_in_operand): Removed.
17695 (rename_variables_in_expr): Return the renamed expression.
17696 (rename_sese_parameters): New.
17697 * sese.h (rename_sese_parameters): Declared.
17698
17699 2010-02-11 Richard Guenther <rguenther@suse.de>
17700
17701 PR tree-optimization/42998
17702 * tree-ssa-pre.c (create_expression_by_pieces): Treat
17703 POINTER_PLUS_EXPR properly.
17704
17705 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17706 Changpeng Fang <changpeng.fang@amd.com>
17707
17708 PR middle-end/40886
17709 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
17710 the cost of an IV candidate when the IV is used in a test against zero.
17711
17712 * gcc.dg/tree-ssa/ivopts-3.c: New.
17713
17714 2010-02-11 Richard Guenther <rguenther@suse.de>
17715
17716 PR lto/41664
17717 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
17718 pointer-vs-decl case by swapping refs. Handle some cases
17719 of pointer-vs-decl disambiguations more conservatively.
17720 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
17721 to false after expanding.
17722
17723 2010-02-11 Richard Guenther <rguenther@suse.de>
17724
17725 PR driver/43021
17726 * gcc.c (process_command): Handle LTO file@offset case more
17727 appropriately.
17728
17729 2010-02-11 Jakub Jelinek <jakub@redhat.com>
17730
17731 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
17732 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
17733 of DEBUG_INSNs.
17734 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
17735
17736 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
17737 if MEM's mode size isn't DWARF2_ADDR_SIZE.
17738 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
17739 Optimize eq/ne comparisons when both arguments are known to be
17740 zero-extended.
17741 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
17742 Don't mask operands unnecessarily if they are known to be already
17743 zero-extended.
17744
17745 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
17746
17747 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
17748 instead of loop.
17749
17750 2010-02-10 Richard Guenther <rguenther@suse.de>
17751
17752 PR tree-optimization/43017
17753 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
17754 for wrapping signed arithmetic.
17755
17756 2010-02-10 Jakub Jelinek <jakub@redhat.com>
17757
17758 PR debug/43010
17759 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
17760 if no debug info should be emitted for it.
17761
17762 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
17763
17764 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
17765 note when flag_exceptions is set.
17766
17767 2010-02-10 Duncan Sands <baldrick@free.fr>
17768
17769 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
17770
17771 2010-02-10 Richard Guenther <rguenther@suse.de>
17772
17773 PR c/43007
17774 * tree.c (get_unwidened): Handle constants.
17775 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
17776
17777 2010-02-10 Martin Jambor <mjambor@suse.cz>
17778
17779 PR lto/42985
17780 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
17781 check for variable argument counts independently.
17782
17783 2010-02-10 Christian Bruel <christian.bruel@st.com>
17784
17785 PR target/42841
17786 * config/sh/sh.c (find_barrier): Increase length for non delayed
17787 conditional branches.
17788
17789 2010-02-10 Christian Bruel <christian.bruel@st.com>
17790
17791 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
17792
17793 2010-02-10 Jakub Jelinek <jakub@redhat.com>
17794
17795 * builtins.c (set_builtin_user_assembler_name): Also handle
17796 ffs if int is smaller than word.
17797
17798 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
17799
17800 PR middle-end/42973
17801 * ira-conflicts.c (get_dup): Remove.
17802 (process_reg_shuffles): Add new parameter. Use it as an
17803 additional guard for copy generation.
17804 (add_insn_allocno_copies): Rewrite.
17805
17806 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
17807
17808 * common.opt (fsched2-use-traces): Preserved for backward
17809 compatibility.
17810 * doc/invoke.texi: Remove the documentation about option
17811 -fsched2-use-traces.
17812 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
17813 flag_sched2_use_traces.
17814 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
17815 the backward compatibility flag section.
17816
17817 2010-02-09 Richard Guenther <rguenther@suse.de>
17818
17819 PR tree-optimization/43008
17820 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
17821 make HEAP variables initialized from global memory if they
17822 are not known builtin functions.
17823 (find_func_aliases): Adjust.
17824
17825 2010-02-09 Richard Guenther <rguenther@suse.de>
17826
17827 PR tree-optimization/43000
17828 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
17829 arithmetic manually.
17830
17831 2010-02-08 Jakub Jelinek <jakub@redhat.com>
17832
17833 PR tree-optimization/42931
17834 * tree-loop-linear.c (try_interchange_loops): Don't call
17835 double_int_mul if estimated_loop_iterations failed.
17836
17837 2010-02-08 Martin Jambor <mjambor@suse.cz>
17838
17839 PR middle-end/42898
17840 * tree-sra.c (build_accesses_from_assign): Do not mark in
17841 should_scalarize_away_bitmap if stmt has volatile ops.
17842 (sra_modify_assign): Do not process assigns piecemeal if if stmt
17843 has volatile ops.
17844
17845 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
17846
17847 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
17848
17849 2010-02-07 Adam Nemet <adambnmet@gmail.com>
17850
17851 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
17852 before the pattern.
17853
17854 2010-02-07 Andrew Pinski <pinskia@gmail.com>
17855
17856 PR middle-end/42946
17857 * df-core.c (df_finish_pass): Change type of saved_flags to int.
17858
17859 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
17860
17861 PR middle-end/42988
17862 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
17863 to unknown_dependence.
17864 (graphite_legal_transform_dr): Handle the unknown_dependence.
17865 (graphite_carried_dependence_level_k): Same.
17866
17867 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
17868
17869 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
17870
17871 2010-02-07 Richard Guenther <rguenther@suse.de>
17872
17873 PR middle-end/42991
17874 * expr.c (get_inner_reference): Always initialize *pbitsize.
17875
17876 2010-02-07 Richard Guenther <rguenther@suse.de>
17877
17878 PR middle-end/42956
17879 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
17880 new ARRAY_REFs on variable size element or minimal index arrays.
17881 Complete.
17882 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
17883 gimple_fold_indirect_ref.
17884
17885 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
17886
17887 PR target/42957
17888 * arm.c (arm_override_options): Just return if the user has specified
17889 an invalid fpu name.
17890
17891 2010-02-03 Jason Merrill <jason@redhat.com>
17892
17893 PR c++/42870
17894 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17895 i386_pe_maybe_record_exported_symbol.
17896
17897 2010-02-05 Steve Ellcey <sje@cup.hp.com>
17898
17899 PR target/42924
17900 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17901 (pa_delegitimize_address): New function.
17902
17903 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
17904
17905 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17906 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17907
17908 2010-02-05 Richard Guenther <rguenther@suse.de>
17909
17910 PR lto/42762
17911 * lto-streamer-in.c (get_resolution): Deal with references
17912 to undefined functions.
17913
17914 2010-02-05 Richard Guenther <rguenther@suse.de>
17915
17916 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17917 (fold_const_aggregate_ref): Likewise.
17918 (ccp_fold_stmt): Substitute loads.
17919 (maybe_fold_reference): Verify types before substituting.
17920 Unshare properly.
17921 (fold_gimple_assign): Unshare properly.
17922 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17923
17924 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
17925
17926 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17927 for rs6000_gen_cell_microcode.
17928
17929 2010-02-04 Richard Guenther <rguenther@suse.de>
17930
17931 PR rtl-optimization/42952
17932 * dse.c (const_or_frame_p): Remove MEM handling.
17933
17934 2010-02-04 Nick Clifton <nickc@redhat.com>
17935
17936 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17937 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17938 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
17939 (mn10300_asm_output_mi_thunk): New function.
17940 (mn10300_can_output_mu_thunk): New function.
17941 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
17942 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
17943 (FUNCTION_ARG): Delete incorrect comment.
17944
17945 2010-02-03 Jason Merrill <jason@redhat.com>
17946
17947 PR c++/40138
17948 * fold-const.c (operand_equal_p): Handle erroneous types.
17949
17950 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17951
17952 * config/h8300/h8300.md (can_delay): Fix attibute condition.
17953
17954 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
17955
17956 PR rtl-optimization/42941
17957 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
17958 of xmalloc.
17959
17960 2010-02-03 Jason Merrill <jason@redhat.com>
17961
17962 PR c++/35652
17963 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
17964
17965 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
17966
17967 PR debug/42896
17968 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
17969 (cselib_reset_table): Renamed from...
17970 (cselib_reset_table_with_next_value): ... this.
17971 (cselib_get_next_uid): Renamed from...
17972 (cselib_get_next_unknown_value): ... this.
17973 * cselib.c (next_uid): Renamed from...
17974 (next_unknown_value): ... this.
17975 (cselib_clear_table): Adjust.
17976 (cselib_reset_table): Adjust. Renamed from...
17977 (cselib_reset_table_with_next_value): ... this.
17978 (cselib_get_next_uid): Adjust. Renamed from...
17979 (cselib_get_next_unknown_value): ... this.
17980 (get_value_hash): Use hash.
17981 (cselib_hash_rtx): Likewise.
17982 (new_cselib_val): Adjust. Set and dump uid.
17983 (cselib_lookup_mem): Pass next_uid as hash.
17984 (cselib_subst_to_values): Likewise.
17985 (cselib_log_lookup): Dump uid.
17986 (cselib_lookup): Pass next_uid as hash. Adjust.
17987 (cselib_process_insn): Adjust.
17988 (cselib_init): Initialize next_uid.
17989 (cselib_finish): Adjust.
17990 (dump_cselib_table): Likewise.
17991 * dse.c (canon_address): Dump value uid.
17992 * print-rtl.c (print_rtx): Print value uid.
17993 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17994 (dvuid): New type.
17995 (dv_uid): New function, sort of renamed from...
17996 (dv_htab_hash): ... this, reimplemented in terms of it and...
17997 (dv_uid2hash): ... this. New.
17998 (variable_htab_eq): Drop excess assertions.
17999 (tie_break_pointers): Removed.
18000 (canon_value_cmp): Compare uids.
18001 (variable_post_merge_New_vals): Print uids.
18002 (vt_add_function_parameters): Adjust.
18003 (vt_initialize): Reset table. Adjust.
18004
18005 2010-02-03 Richard Guenther <rguenther@suse.de>
18006
18007 PR tree-optimization/42944
18008 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
18009 (call_may_clobber_ref_p_1): Likewise. Properly handle
18010 malloc and calloc clobbering errno.
18011
18012 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
18013
18014 * doc/invoke.texi: Fix name of sched1 dump.
18015
18016 * opts.c (decode_options): Set flag_tree_switch_conversion
18017 only conditionally on optimize >= 2.
18018
18019 * gcse.c: Assorted comment fixes in pass description.
18020
18021 2010-02-03 Anthony Green <green@moxielogic.com>
18022
18023 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
18024 nop padding in order to maintain alignment of storage location of
18025 target function address.
18026 (moxie_trampoline_init): Store target function address at newly
18027 aligned location.
18028 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
18029 to 32.
18030 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
18031
18032 2010-02-03 Richard Guenther <rguenther@suse.de>
18033
18034 PR middle-end/42927
18035 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
18036
18037 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18038
18039 * config.gcc: Reenable check for obsolete targets.
18040 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
18041 mips-sgi-irix6.[0-4]*.
18042
18043 2010-02-02 Nick Clifton <nickc@redhat.com>
18044
18045 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
18046 constant size of 4 as being the same as 0.
18047 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
18048 can take values in the range 0..4.
18049
18050 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
18051
18052 PR java/41991
18053 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
18054 as _darwin10_Unwind_FindEnclosingFunction().
18055 * libgcc-libsystem.ver: New.
18056
18057 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
18058
18059 PR target/41399
18060 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
18061 implicitly set registers.
18062
18063 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
18064
18065 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
18066 (arm_override_options): Allow automatic selection of the thread
18067 pointer register if thumb2.
18068 (legitimize_pic_address): Improve code sequences for Thumb2.
18069 (arm_call_tls_get_addr): Likewise.
18070 (legitimize_tls_address): Likewise.
18071 * arm.md (pic_load_addr_arm): Delete. Replace with ...
18072 (pic_load_addr_32bit): ... this. New named pattern.
18073 * thumb2.md (pic_load_addr_thumb2): Delete.
18074 (pic_load_dot_plus_four): Delete.
18075 (tls_load_dot_plus_four): New named pattern.
18076
18077 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18078
18079 PR libgomp/29986
18080 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
18081 Document fix for TLS bug.
18082
18083 2010-01-31 Richard Guenther <rguenther@suse.de>
18084
18085 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
18086 conservatively correct.
18087
18088 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18089
18090 PR target/42850
18091 Revert:
18092 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18093
18094 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18095
18096 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18097
18098 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
18099
18100 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
18101
18102 * config.gcc: Adjust order of makefile fragments for mingw targets.
18103
18104 2010-01-31 Richard Guenther <rguenther@suse.de>
18105
18106 PR middle-end/42898
18107 * gimplify.c (gimplify_init_constructor): For volatile LHS
18108 initialize a temporary.
18109
18110 2010-01-31 Matthias Klose <doko@ubuntu.com>
18111
18112 * configure.ac: Fix __stack_chk_fail check for cross builds configured
18113 --with-headers
18114 * configure: Regenerate.
18115
18116 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
18117
18118 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18119 the same alias set and their sizes different constantness.
18120 (aliasing_component_refs_p): Revert 2009-10-24 change.
18121
18122 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18123
18124 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
18125 unused.
18126
18127 2010-01-29 Richard Guenther <rguenther@suse.de>
18128
18129 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
18130 Assert we successfully updated the call.
18131
18132 2010-01-29 Jakub Jelinek <jakub@redhat.com>
18133
18134 PR rtl-optimization/42889
18135 * df.h (df_set_bb_dirty_nonlr): New prototype.
18136 * df-core.c (df_set_bb_dirty_nonlr): New function.
18137 * df-scan.c (df_insn_rescan): Call it instead of
18138 df_set_bb_dirty for DEBUG_INSNs.
18139
18140 2010-01-29 Richard Guenther <rguenther@suse.de>
18141
18142 PR middle-end/37448
18143 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
18144 quadratic behavior in most cases.
18145
18146 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
18147
18148 PR target/42891
18149 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
18150 in the call to gen_x86_movsicc_0_m1.
18151
18152 2010-01-28 Richard Guenther <rguenther@suse.de>
18153
18154 PR tree-optimization/42871
18155 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
18156
18157 2010-01-28 Richard Guenther <rguenther@suse.de>
18158
18159 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
18160 into call arguments.
18161
18162 2010-01-28 Richard Guenther <rguenther@suse.de>
18163
18164 PR middle-end/42883
18165 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
18166 the forwarder if the destination is an EH landing pad.
18167
18168 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
18169
18170 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
18171 block list passed to gimple_duplicate_sese_tail.
18172 (parallelize_loops): Avoid parallelization when the function
18173 has_nonlocal_label.
18174 Avoid parallelization when the preheader is IRREDUCIBLE.
18175 Try to optimize when estimated_loop_iterations_int is unresolved.
18176 Add the loop's location to the dump file.
18177 * tree-cfg.c (add_phi_args_after_redirect): Remove.
18178 (gimple_duplicate_sese_tail): Remove the check for the latch.
18179 Redirect nexits to the exit block.
18180 Remove handling of the incoming edges to the latch.
18181 Redirect the backedge from the copied latch to the exit bb.
18182
18183 2010-01-28 Michael Matz <matz@suse.de>
18184
18185 PR target/42881
18186 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
18187 Wrap force_reg into a sequence, emit it before user.
18188
18189 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
18190
18191 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
18192 (arm_rev): New.
18193 (arm_legacy_rev): Likewise.
18194 (thumb_legacy_rev): Likewise.
18195
18196 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18197
18198 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
18199 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
18200 on MEM's address failed, try avoid_constant_pool_reference and
18201 recurse if it returned something different.
18202 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
18203 address, try avoid_constant_pool_reference and recurse if it
18204 returned something different.
18205 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
18206 address and avoid_constant_pool_reference returned something
18207 different, don't set have_address.
18208
18209 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
18210
18211 PR debug/42861
18212 * var-tracking.c (val_store): Add modified argument, obey it.
18213 Adjust callers.
18214 (count_uses): Move down logging of main.
18215 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
18216 don't need resolution.
18217 (emit_notes_in_bb): Likewise.
18218
18219 2010-01-27 Richard Guenther <rguenther@suse.de>
18220
18221 PR middle-end/42878
18222 * tree-inline.c (remap_decl): Delay remapping of SSA name
18223 default definitions until we need them.
18224
18225 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18226
18227 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18228 (rs6000_delegitimize_address): New function.
18229
18230 * config/s390/s390.c (s390_delegitimize_address): Call
18231 delegitimize_mem_from_attrs.
18232
18233 PR middle-end/42874
18234 * tree-inline.c (cannot_copy_type_1): Removed.
18235 (copy_forbidden): Don't forbid copying of functions containing
18236 records/unions with variable length fields.
18237
18238 2010-01-27 Christian Bruel <christian.bruel@st.com>
18239
18240 Revert:
18241 PR target/42841
18242 * config/sh/sh.c (find_barrier): Increase length for non delayed
18243 conditional branches.
18244
18245 2010-01-27 Matthias Klose <doko@ubuntu.com>
18246
18247 * configure.ac (gnu-unique-object): Fix ldd version check.
18248 * configure: Regenerate.
18249
18250 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18251
18252 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
18253 HAVE_GNU_AS value.
18254 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
18255 Test for HAVE_GNU_AS value.
18256
18257 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18258
18259 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
18260 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
18261 INT64_TYPE): Define.
18262 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
18263 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18264 INT_LEAST64_TYPE): Define.
18265 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
18266 UINT_LEAST64_TYPE): Define.
18267 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
18268 INT_FAST64_TYPE): Define.
18269 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18270 UINT_FAST64_TYPE): Define.
18271 (INTMAX_TYPE, UINTMAX_TYPE): Define.
18272 (INTPTR_TYPE, UINTPTR_TYPE): Define.
18273 (SIG_ATOMIC_TYPE): Define.
18274
18275 2010-01-26 Richard Guenther <rguenther@suse.de>
18276
18277 * df-scan.c (df_scan_set_bb_info): Remove assert.
18278 (df_insn_rescan_debug_internal): Merge asserts.
18279 (df_install_ref): Likewise.
18280 (df_mark_reg): Use bitmap_set_range.
18281 (df_hard_reg_used_p): Remove assert.
18282 (df_hard_reg_used_count): Likewise.
18283
18284 2010-01-26 Richard Guenther <rguenther@suse.de>
18285
18286 PR rtl-optimization/42685
18287 * web.c (web_main): Ignore DEBUG_INSNs.
18288
18289 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
18290
18291 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
18292
18293 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
18294 Fix types of fndecl and arglist parameters.
18295
18296 2010-01-26 Richard Guenther <rguenther@suse.de>
18297
18298 PR middle-end/42806
18299 * tree-eh.c (unsplit_eh): Skip debug insns.
18300
18301 2010-01-26 Richard Guenther <rguenther@suse.de>
18302
18303 PR tree-optimization/42250
18304 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18305
18306 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18307
18308 PR fortran/42866
18309 * omp-low.c (expand_omp_sections): Only use single_pred if
18310 l2_bb is single_pred_p.
18311
18312 2010-01-25 Christian Bruel <christian.bruel@st.com>
18313
18314 PR target/42841
18315 * config/sh/sh.c (find_barrier): Increase length for non delayed
18316 conditional branches.
18317 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18318
18319 2010-01-24 David S. Miller <davem@davemloft.net>
18320
18321 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18322 define if not using GAS.
18323 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18324 Likewise. Delete SECTION_MERGE code, which is only applicable
18325 when using GAS.
18326
18327 2010-01-24 Mark Mitchell <mark@codesourcery.com>
18328
18329 PR c++/42748
18330 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18331 mangling of va_list in system headers.
18332
18333 2010-01-23 Toon Moene <toon@moene.org>
18334
18335 * tree-predcom.c (combine_chains): Return NULL, not false.
18336
18337 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
18338
18339 * tree-loop-distribution.c (distribute_loop): Fix declaration and
18340 initialization of variable res to agree with return type.
18341
18342 2010-01-22 Steve Ellcey <sje@cup.hp.com>
18343
18344 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18345 * tree-sra.c: Add include of expr.h.
18346
18347 2010-01-22 Jakub Jelinek <jakub@redhat.com>
18348
18349 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18350 insert the debug stmt on the single non-EH edge from the stmt.
18351
18352 2010-01-22 Richard Henderson <rth@redhat.com>
18353
18354 PR tree-opt/42833
18355 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18356 the RHS until after generate_subtree_copies has insertted its
18357 code before the current statement.
18358
18359 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
18360
18361 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18362
18363 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18364
18365 2010-01-21 Martin Jambor <mjambor@suse.cz>
18366
18367 PR tree-optimization/42585
18368 * tree-sra.c (struct access): New field grp_total_scalarization.
18369 (dump_access): Dump the new field.
18370 (should_scalarize_away_bitmap): New variable.
18371 (cannot_scalarize_away_bitmap): Likewise.
18372 (sra_initialize): Allocate new bitmaps.
18373 (sra_deinitialize): Free new bitmaps.
18374 (create_access_1): New function.
18375 (create_access): Parts moved to create_access_1.
18376 (type_consists_of_records_p): New function.
18377 (completely_scalarize_record): Likewise.
18378 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18379 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18380 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18381 access.
18382 (analyze_all_variable_accesses): Completely scalarize small eligible
18383 records.
18384
18385 2010-01-21 Martin Jambor <mjambor@suse.cz>
18386
18387 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18388
18389 2010-01-21 Andrew Haley <aph@redhat.com>
18390
18391 * gcc.c (process_command): Move lang_specific_driver before
18392 setting cc_libexec_prefix.
18393
18394 2010-01-21 Richard Guenther <rguenther@suse.de>
18395
18396 PR middle-end/19988
18397 * fold-const.c (negate_expr_p): Pretend only negative
18398 real constants are easily negatable.
18399
18400 2010-01-20 Janis Johnson <janis187@us.ibm.com>
18401 Jason Merrill <jason@redhat.com>
18402
18403 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18404 (TYPE_TRANSPARENT_AGGR): this, for union and record.
18405 * calls.c (initialize argument_information): Handle it.
18406 * c-common.c (handle_transparent_union_attribute): Use new name.
18407 * c-decl.c (finish_struct): Ditto.
18408 * c-typeck.c (type_lists_compatible_p): Ditto.
18409 (convert_for_assignment): Use new name and also handle record.
18410 * function.c (aggregate_value_p): Handle it.
18411 (pass_by_reference): Ditto.
18412 (assign_parm_data_types): Ditto.
18413 * print-tree.c (print_node): Ditto.
18414 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18415 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18416 * tree.c (first_field): New fn.
18417
18418 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
18419
18420 PR target/42818
18421 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18422 even when linking statically, for now.
18423
18424 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18425
18426 PR debug/42715
18427 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18428 without a cselib val.
18429 (count_uses): Accept MO_VAL_SET with no val on stores.
18430 (add_stores): Likewise.
18431
18432 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18433
18434 * var-tracking.c (check_value_val): Add a compile time assertion.
18435 (dv_is_decl_p): Simplify.
18436 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18437 gcc_assert if ENABLE_CHECKING.
18438
18439 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18440
18441 PR debug/42782
18442 * var-tracking.c: Include tree-flow.h.
18443 (mem_dies_at_call): New.
18444 (dataflow_set_preserve_mem_locs): Use it.
18445 (dataflow_set_remove_mem_locs): Likewise.
18446 (dump_var): Renamed from dump_variable. Adjust all callers.
18447 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
18448 * Makefile.in (var-tracking.o): Adjust deps.
18449
18450 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
18451
18452 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18453
18454 2010-01-20 Richard Guenther <rguenther@suse.de>
18455
18456 PR tree-optimization/42717
18457 * tree-ssa-dce.c (get_live_post_dom): Remove.
18458 (forward_edge_to_pdom): Take an arbitrary edge to copy
18459 degenerate PHI args from.
18460 (remove_dead_stmt): Use the first post-dominator even if it
18461 does not contain live statements as redirection destination.
18462
18463 2010-01-20 Richard Guenther <rguenther@suse.de>
18464
18465 * tree-inline.c (estimate_num_insns): Handle EH builtins.
18466
18467 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18468
18469 * sel-sched.c (create_speculation_check): Remove set but not used
18470 variable twin.
18471 (try_transformation_cache): Remove set but not used variable ds.
18472 (calculate_privileged_insns): Remove set but not used variables
18473 cur_insn and min_spec_insn.
18474 (find_best_expr): Remove set but not used variable avail_n.
18475 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18476 variable e.
18477 * cgraphunit.c (assemble_thunk): Remove set but not used variable
18478 false_label.
18479 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18480 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18481 new_scop_exit_edge.
18482
18483 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
18484
18485 PR bootstrap/42786
18486 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18487 cpu types. Add support for *-sse3 cpu types.
18488 (x86_64-*-*): Ditto.
18489
18490 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18491
18492 PR middle-end/42803
18493 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18494 argument, call initializer_constant_valid_p_1 instead of
18495 initializer_constant_valid_p, pass CACHE to it, return NULL
18496 immediately if first call returns NULL.
18497 (initializer_constant_valid_p_1): New function.
18498 (initializer_constant_valid_p): Use it.
18499
18500 2010-01-20 Thomas Quinot <quinot@adacore.com>
18501
18502 * tree.def (PLACEHOLDER_EXPR): Fix comment.
18503
18504 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18505
18506 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18507 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18508 (loc_list_from_tree): Don't handle unsigned division. Handle
18509 signed modulo using DW_OP_{over,over,div,mul,minus}.
18510 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18511 modulo instead of signed.
18512
18513 2010-01-20 DJ Delorie <dj@redhat.com>
18514
18515 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18516 (Fpa): Pass it
18517 (h8300_emit_stack_adjustment): Propogate it.
18518 (push): Pass it.
18519 (h8300_expand_prologue): Likewise.
18520 (h8300_expand_epilogue): Likewise.
18521
18522 2010-01-19 Michael Matz <matz@suse.de>
18523
18524 PR tree-optimization/41783
18525 * tree-data-ref.c (toplevel): Include flags.h.
18526 (dump_data_dependence_relation): Also dump the inputs if the
18527 result will be unknown.
18528 (split_constant_offset_1): Look through some conversions.
18529 * tree-predcom.c (determine_roots_comp): Restart a new chain if
18530 the offset from last element is too large.
18531 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
18532 (reassociate_to_the_same_stmt): Handle vector registers.
18533 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
18534 (e.g. conversions).
18535 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
18536 wide_prolog_niters argument, emit widening instructions.
18537 (vect_do_peeling_for_alignment): Adjust caller, use widened
18538 variant of the iteration cound.
18539 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
18540
18541 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18542
18543 PR target/38697
18544 * config/arm/neon-testgen.m (emit_automatics): New parameter
18545 features. Adjust for Fixed_return_reg feature.
18546 (test_intrinsic): Call emit_automatics with new feature.
18547 * config/arm/neon.ml: Update copyright years.
18548 (features): New Fixed_return_reg feature.
18549 (ops): Update feature for Vget_low.
18550
18551 2010-01-19 Jakub Jelinek <jakub@redhat.com>
18552
18553 PR tree-optimization/42719
18554 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
18555 stmt uses.
18556
18557 PR debug/42728
18558 * fwprop.c (all_uses_available_at): Return false if def_set dest
18559 is a REG that is used in def_insn.
18560
18561 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
18562
18563 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
18564
18565 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
18566 Add argument names.
18567
18568 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
18569
18570 * target.h (struct gcc_target) <secondary_reload>: Change type
18571 of last argument to secondary_reload_info *.
18572
18573 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
18574
18575 PR target/42774
18576 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
18577 memory references with unaligned offsets. Remove CQImode handling.
18578 (unaligned_memory_operand): Return 1 for memory references with
18579 unaligned offsets. Remove CQImode handling.
18580
18581 2010-01-18 Richard Guenther <rguenther@suse.de>
18582
18583 PR middle-end/39954
18584 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
18585 builtin calls.
18586
18587 2010-01-18 Richard Guenther <rguenther@suse.de>
18588
18589 PR tree-optimization/42781
18590 * tree-ssa-structalias.c (find_what_var_points_to): Skip
18591 restrict processing only if the original variable was artificial.
18592
18593 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
18594
18595 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18596 find number of popped argument bytes.
18597
18598 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18599 Fix the text that describes the return value for invalid insns.
18600
18601 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
18602
18603 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18604 Clarify what 'cost of the -dependence' is. Fix quoting.
18605
18606 * toplev.c (default_get_pch_validity): Rename argument to "sz".
18607 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18608
18609 2010-01-17 Jakub Jelinek <jakub@redhat.com>
18610
18611 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18612 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18613
18614 2010-01-17 Richard Guenther <rguenther@suse.de>
18615
18616 PR middle-end/42248
18617 * function.c (split_complex_args): Take a VEC to modify.
18618 (assign_parms_augmented_arg_list): Build a VEC instead of
18619 a chain of PARM_DECLs.
18620 (assign_parms_unsplit_complex): Take a VEC of arguments.
18621 Do not fixup unmodified parms.
18622 (assign_parms): Deal with the VEC.
18623 (gimplify_parameters): Likewise.
18624
18625 2010-01-17 Richard Guenther <rguenther@suse.de>
18626
18627 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18628 node existence check.
18629 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18630 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18631 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18632 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18633 (gimple_execute_on_growing_pred): Likewise.
18634
18635 2010-01-17 Richard Guenther <rguenther@suse.de>
18636
18637 PR tree-optimization/42773
18638 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18639 (compute_antic_aux): Likewise.
18640 (compute_partial_antic_aux): Likewise.
18641
18642 2010-01-17 Jie Zhang <jie.zhang@analog.com>
18643
18644 PR debug/42767
18645 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18646 and US_TRUNCATE.
18647
18648 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
18649
18650 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18651 appearance.
18652
18653 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18654 Fix markup for strict argument.
18655
18656 (TARGET_SCHED_REORDER2): Fix argument types.
18657
18658 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
18659 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
18660
18661 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
18662 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
18663
18664 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18665 Add argument name.
18666
18667 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
18668 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
18669 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
18670 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
18671 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
18672
18673 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
18674
18675 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
18676
18677 (TARGET_ASM_RELOC_RW_MASK): Add return type.
18678 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
18679
18680 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
18681
18682 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
18683 Use prototype.
18684
18685 (TARGET_ASM_NAMED_SECTION): Fix argument list.
18686
18687 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
18688 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
18689
18690 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
18691
18692 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
18693
18694 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
18695 referring to it. Fix language.
18696
18697 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
18698
18699 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
18700
18701 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
18702
18703 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
18704
18705 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
18706 '@var{stream}. Remove stray 'and'.
18707
18708 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
18709
18710 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
18711
18712 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
18713
18714 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
18715 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
18716
18717 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
18718 Fix description of return value.
18719 Rename argument "sz" to "len."
18720
18721 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
18722 Clarify meaning of 'true' return value.
18723
18724 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
18725
18726 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
18727 rep_mode versus mode_rep.
18728
18729 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
18730
18731 (TARGET_BUILTIN_DECL): Fix name.
18732
18733 (TARGET_COMMUTATIVE_P): Fix type of first argument.
18734
18735 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
18736
18737 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
18738
18739 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
18740
18741 (TARGET_RELAXED_ORDERING): Use @deftypevr.
18742
18743 (TARGET_GET_DRAP_RTX): Note that this is a hook.
18744 Clarify language.
18745
18746 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
18747 Rename argument tm_fn to md_fn.
18748
18749 (TARGET_OPTION_PRINT): Fix argument list.
18750
18751 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
18752
18753 PR target/42664
18754 * config/i386/i386.c (ix86_fixup_binary_operands):
18755 Revert FMA4 fixup of operands.
18756
18757 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18758
18759 PR gcc/42525
18760 * Makefile.in (write_entries_to_file, install-plugin):
18761 Use \012 instead of \n with tr.
18762
18763 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
18764
18765 * configure.ac (HAVE_AS_REF): New C macro.
18766 * configure: Regenerate.
18767 * config.in: Likewise.
18768 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
18769 if HAVE_AS_REF.
18770 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
18771 if HAVE_AS_REF.
18772
18773 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
18774
18775 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
18776
18777 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
18778
18779 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
18780
18781 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
18782
18783 (TARGET_IN_SMALL_DATA_P): Fix argument type.
18784
18785 (TARGET_BINDS_LOCAL_P): Fix argument type.
18786
18787 (TARGET_ASM_FILE_END): Use prototype.
18788
18789 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
18790
18791 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
18792
18793 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
18794
18795 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
18796
18797 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
18798 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
18799
18800 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
18801 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
18802
18803 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
18804 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
18805 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
18806 (TARGET_ADDR_SPACE_CONVERT): Likewise.
18807
18808 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
18809
18810 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
18811
18812 (TARGET_INIT_BUILTINS): Use prototype.
18813
18814 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
18815 Put 'const char *' in braces. Fix parameter types.
18816 (TARGET_INVALID_CONVERSION): Fix parameter types.
18817 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
18818 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
18819
18820 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
18821 Fix argument type.
18822
18823 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
18824
18825 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
18826
18827 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
18828
18829 * doc/tm.texi (TARGET_HELP): Fix return type.
18830
18831 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
18832 in braces. Fix argument types.
18833
18834 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
18835
18836 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
18837
18838 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
18839
18840 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
18841 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
18842
18843 (TARGET_MANGLE_TYPE): Fix argument types.
18844
18845 (TARGET_IRA_COVER_CLASSES): Use prototype.
18846
18847 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
18848
18849 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
18850
18851 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
18852
18853 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
18854
18855 (TARGET_CALLEE_COPIES): Fix argument types.
18856
18857 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
18858
18859 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
18860
18861 (TARGET_FUNCTION_VALUE): Fix argument types.
18862
18863 (TARGET_RETURN_IN_MSB): Fix argument type.
18864
18865 (TARGET_RETURN_IN_MEMORY): Fix argument types.
18866
18867 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
18868
18869 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
18870
18871 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
18872 agree with return type.
18873
18874 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
18875
18876 2010-01-15 Jing Yu <jingyu@google.com>
18877
18878 PR rtl-optimization/42691
18879 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
18880 a pseudo to a constant and are merged, and adjust comments.
18881
18882 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
18883
18884 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
18885
18886 2010-01-15 Richard Guenther <rguenther@suse.de>
18887
18888 PR middle-end/42739
18889 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18890 labels of computed or non-local gotos to the destination.
18891 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18892 landing pad label is the first label.
18893
18894 2010-01-15 Richard Guenther <rguenther@suse.de>
18895
18896 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18897
18898 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18899
18900 PR target/42747
18901 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18902 to allow generation of the xssqrtdp instruction on power7.
18903 (sqrtdf2_fpr): Ditto.
18904
18905 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18906
18907 PR middle-end/42674
18908 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18909 functions with noreturn attribute.
18910
18911 PR c++/42608
18912 * varasm.c (declare_weak): Add weak attribute to decl if it
18913 doesn't have one already.
18914 (assemble_external): Only add decls to weak_decls if they also
18915 have weak attribute.
18916
18917 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
18918
18919 * var-tracking.c (var_reg_delete): Don't delete the association
18920 between REGs and values or one-part variables if the register
18921 isn't clobbered.
18922
18923 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18924
18925 PR debug/42657
18926 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18927 because its first operand is a non-localized variable.
18928
18929 2010-01-14 Martin Jambor <mjambor@suse.cz>
18930
18931 PR tree-optimization/42706
18932 * tree-sra.c (encountered_recursive_call): New variable.
18933 (encountered_unchangable_recursive_call): Likewise.
18934 (sra_initialize): Initialize both new variables.
18935 (callsite_has_enough_arguments_p): New function.
18936 (scan_function): Call decl and flags check only for IPA-SRA, check
18937 whether there is a recursive call and whether it has enough arguments.
18938 (all_callers_have_enough_arguments_p): New function.
18939 (convert_callers): Look for recursive calls only when
18940 encountered_recursive_call is set.
18941 (ipa_early_sra): Bail out either if
18942 !all_callers_have_enough_arguments_p or
18943 encountered_unchangable_recursive_call.
18944
18945 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18946
18947 * sel-sched.c: Add 2010 to copyright years.
18948 * sel-sched-ir.c: Likewise.
18949 * sel-sched-ir.h: Likewise.
18950
18951 2010-01-14 Martin Jambor <mjambor@suse.cz>
18952
18953 PR tree-optimization/42714
18954 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
18955 constructors specially.
18956
18957 2010-01-14 Andi Kleen <ak@linux.intel.com>
18958
18959 * config/i386/drivers-i386.c (detect_caches_intel):
18960 Add l2sizekb parameter and fill in.
18961 (host_detect_local_cpu): Add l2sizekb, fill in.
18962 Add Atom small cache heuristic.
18963
18964 2010-01-14 Andi Kleen <ak@linux.intel.com>
18965
18966 * config/i386/drivers-i386.c (detect_caches_cpuid4):
18967 Add level3 parameter and fill in.
18968 (detect_caches_intel): Handle level3 cache.
18969
18970 2010-01-14 Andi Kleen <ak@linux.intel.com>
18971
18972 * config/i386/drivers-i386.c (host_detect_local_cpu):
18973 Fix core duo detection.
18974
18975 2010-01-14 Andi Kleen <ak@linux.intel.com>
18976
18977 * config/i386/drivers-i386.c (host_detect_local_cpu):
18978 Fix Atom detection.
18979
18980 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18981
18982 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
18983 (rs6000_variable_issue_1): this. Use...
18984 (rs6000_variable_issue): here. Reimplement. Print debug info.
18985
18986 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18987
18988 * sel-sched-ir.c (sel_restore_other_notes): Rename to
18989 sel_restore_notes. Update all callers. Call reemit_notes
18990 for all insns.
18991
18992 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18993
18994 PR rtl-optimization/42246
18995 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18996 loops.
18997
18998 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18999
19000 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
19001 all successors is the same as number of successors in current region.
19002
19003 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19004
19005 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
19006 to rename is not separable. Otherwise check that its LHS is not NULL.
19007
19008 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19009
19010 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
19011
19012 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19013
19014 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
19015 available registers when failed to discover LHS register class.
19016 Fix indentation. Update comment.
19017
19018 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19019 Alexander Monakov <amonakov@ispras.ru>
19020
19021 PR rtl-optimization/42389
19022 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
19023 to can_issue_more.
19024 (advance_state_on_fence): Likewise.
19025 (sel_target_adjust_priority): Print debug output only when
19026 sched_verbose >= 4, not 2.
19027 (get_expr_cost): Do not issue all unique insns on the next cycle.
19028 (fill_insns): Initialize can_issue_more from the value saved
19029 with the fence.
19030 * sel-sched-ir.c (flist_add): New parameter issue_more.
19031 Init FENCE_ISSUE_MORE with it.
19032 (merge_fences): Likewise.
19033 (init_fences): Update call to flist_add.
19034 (add_to_fences, add_clean_fence_to_fences)
19035 (add_dirty_fence_to_fences): Likewise.
19036 (move_fence_to_fences): Update call to merge_fences.
19037 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
19038 sched groups.
19039 * sel-sched-ir.h (struct _fence): New field issue_more.
19040 (FENCE_ISSUE_MORE): New accessor macro.
19041
19042 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19043
19044 PR rtl-optimization/42388
19045 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
19046 that have no predecessors nor successors. Do not call move_bb_info
19047 for empty blocks outside of current region.
19048
19049 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19050
19051 PR rtl-optimization/42294
19052 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
19053 * sel-sched.c (move_exprs_to_boundary): Transitively add all
19054 originators' originators.
19055
19056 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19057
19058 PR rtl-optimization/39453
19059 PR rtl-optimization/42246
19060 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
19061 for pipelining_p.
19062 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
19063
19064 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19065 Alexander Monakov <amonakov@ispras.ru>
19066
19067 PR middle-end/42245
19068 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
19069 (maybe_tidy_empty_bb): ... here. Make static. Add new
19070 argument. Update all callers.
19071 (tidy_control_flow): ... and here. Recompute topological order
19072 of basic blocks in region if necessary.
19073 (sel_redirect_edge_and_branch): Change return type. Return true
19074 if topological order might have been invalidated.
19075 (purge_empty_blocks): Export and move from...
19076 * sel-sched.c (purge_empty_blocks): ... here.
19077 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
19078 (maybe_tidy_empty_bb): Delete prototype.
19079 (purge_empty_blocks): Declare.
19080
19081 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19082
19083 PR rtl-optimization/42249
19084 * sel-sched.c (try_replace_dest_reg): When chosen register
19085 and original register is the same, do not bail out early, but
19086 still check all original insns for validity of replacing destination
19087 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
19088 in this case.
19089
19090 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19091
19092 PR c/42721
19093 Port from no-undefined-overflow branch:
19094 2009-03-09 Richard Guenther <rguenther@suse.de>
19095
19096 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
19097
19098 2010-01-14 Richard Guenther <rguenther@suse.de>
19099
19100 PR lto/42665
19101 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
19102
19103 2010-01-14 Ira Rosen <irar@il.ibm.com>
19104
19105 PR tree-optimization/42709
19106 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
19107 as scalar type in creation of constant vector operand.
19108
19109 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19110
19111 PR testsuite/42414
19112 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
19113 (check-parallel-%): Match `testsuite' directory component only
19114 at the end.
19115
19116 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
19117
19118 PR translation/39521
19119 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
19120 strings with _().
19121
19122 2010-01-13 Richard Guenther <rguenther@suse.de>
19123
19124 PR tree-optimization/42730
19125 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
19126 offset zero.
19127
19128 2010-01-13 Steve Ellcey <sje@cup.hp.com>
19129
19130 PR target/pr42542
19131 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
19132 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
19133 them signed.
19134
19135 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
19136
19137 * config/bfin/libgcc-bfin.ver: Regenerate based on current
19138 libgcc-std.ver. Add entries for ___smulsi3_highpart and
19139 ___umulsi3_highpart.
19140
19141 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
19142 rather than schedule_insns if the pass is enabled.
19143
19144 2010-01-13 Martin Jambor <mjambor@suse.cz>
19145
19146 PR tree-optimization/42704
19147 * tree-sra.c (sra_modify_assign): Do not delete assignments to
19148 SSA_NAMEs.
19149
19150 2010-01-13 Martin Jambor <mjambor@suse.cz>
19151
19152 PR tree-optimization/42703
19153 * tree-sra.c (analyze_access_subtree): Check that we can build a
19154 reference to the original data within the aggregate.
19155
19156 2010-01-13 Richard Guenther <rguenther@suse.de>
19157
19158 PR tree-optimization/42705
19159 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
19160
19161 2010-01-13 Richard Guenther <rguenther@suse.de>
19162
19163 PR middle-end/42716
19164 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
19165
19166 2010-01-13 Jakub Jelinek <jakub@redhat.com>
19167
19168 PR debug/41371
19169 * var-tracking.c (values_to_unmark): New variable.
19170 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19171 values_to_unmark vector. Moved body to...
19172 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
19173 instead queue it into values_to_unmark vector.
19174 (vt_find_locations): Free values_to_unmark vector.
19175
19176 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
19177
19178 * config/s390/s390.c (override_options): Set
19179 default of max-pending-list-length to 256
19180
19181 2010-01-13 Richard Guenther <rguenther@suse.de>
19182
19183 PR lto/42678
19184 * tree-pass.h (PROP_gimple_lcx): New.
19185 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
19186 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
19187 before the final cleanup_eh.
19188 (dump_properties): Dump PROP_gimple_lcx.
19189 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
19190 (tree_lower_complex_O0): Remove.
19191 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
19192 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
19193 tree_lower_complex, schedule TODO_update_ssa.
19194 * lto-streamer-out.c (output_function): Stream the functions
19195 properties.
19196 * lto-streamer-in.c (input_function): Likewise.
19197 (lto_read_body): Do not override them here.
19198
19199 2010-01-12 Joseph Myers <joseph@codesourcery.com>
19200
19201 PR c/42708
19202 * c-typeck.c (build_c_cast): Fold value cast to union type before
19203 wrapping it in a CONSTRUCTOR.
19204
19205 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19206
19207 PR rtl-optimization/42699
19208 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
19209 involved.
19210
19211 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19212
19213 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19214 SUBTARGET_WARN_UNUSED_SPEC): Move ...
19215 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19216 SUBTARGET_WARN_UNUSED_SPEC): ... here
19217 * config/mips/iris5.h (LIBGCC_SPEC): Define.
19218
19219 2010-01-12 Julian Brown <julian@codesourcery.com>
19220
19221 * config/arm/neon-schedgen.ml (Utils): Don't try to
19222 open missing module.
19223 (find_with_result): New.
19224
19225 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19226
19227 PR debug/42662
19228 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
19229 sharing when canonicalizing ({lt,ge}u (plus a b) b).
19230
19231 PR tree-optimization/42645
19232 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
19233 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
19234 decl_map, set processing_debug_stmt to -1 and return name without
19235 any remapping.
19236
19237 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
19238
19239 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
19240 binutils version, and reword target configuration description.
19241
19242 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19243
19244 * config/avr/avr.h (LINKER_NAME): Remove.
19245
19246 2010-01-11 Janis Johnson <janis187@us.ibm.com>
19247
19248 PR target/42416
19249 * config/rs6000/rs6000.c (rs6000_override_options): On targets
19250 that support VSX, warn for -mno-altivec if vsx is not disabled,
19251 and disable vsx.
19252
19253 2010-01-11 Joseph Myers <joseph@codesourcery.com>
19254 Shujing Zhao <pearly.zhao@oracle.com>
19255
19256 PR translation/42469
19257 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
19258 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
19259 character between option name and help text.
19260 * c.opt (imultilib): Likewise.
19261
19262 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
19263
19264 * lto-streamer-out.c (output_unreferenced_globals): Output static
19265 variables.
19266
19267 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
19268
19269 PR rtl-optimization/42621
19270 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
19271 optimizing for size.
19272 (duplicate_computed_gotos): Remove now-redundant check.
19273
19274 2010-01-10 Steve Ellcey <sje@cup.hp.com>
19275
19276 PR target/37454
19277 * configure.ac: Save and restore LDFLAGS and LIBS
19278 * configure: Regenerate.
19279
19280 2010-01-10 Richard Guenther <rguenther@suse.de>
19281
19282 PR middle-end/42667
19283 * builtins.c (fold_builtin_strlen): Add type argument and
19284 convert the resulting length to it.
19285 (fold_builtin_1): Adjust.
19286
19287 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19288
19289 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
19290 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
19291 1 insn.
19292 (num_insns_constant_wide): Adjust for that change.
19293
19294 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19295
19296 PR debug/42631
19297 * web.c (union_defs): Add used argument, to combine uses of
19298 uninitialized regs.
19299 (entry_register): Adjust type and tests of used argument.
19300 (web_main): Widen used for new use. Pass it to union_defs.
19301 * df.h (union_defs): Adjust prototype.
19302
19303 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19304
19305 PR debug/42630
19306 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19307 uses in new incoming argument. Free body.
19308 (reset_debug_uses_in_loop): New.
19309 (analyze_insn_to_expand_var): Call the latter if the former found
19310 anything. Fix whitespace. Reject invalid dest overlaps before
19311 going through all insns in the loop.
19312
19313 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19314
19315 PR debug/42629
19316 * haifa-sched.c (dying_use_p): Debug insns don't count.
19317
19318 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19319
19320 PR middle-end/42363
19321 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19322 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19323 (verify_gimple_call): Reject LHS in noreturn calls.
19324
19325 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19326
19327 PR debug/42604
19328 PR debug/42395
19329 * tree-vect-loop-manip.c (adjust_info): New type.
19330 (adjust_vec): New pointer to vector.
19331 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19332 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19333 (slpeel_update_phis_for_duplicate_loop): Use them.
19334 (slpeel_update_phi_nodes_for_guard1): Likewise.
19335 (slpeel_update_phi_nodes_for_guard2): Likewise.
19336 (slpeel_tree_peel_loop_to_edge): Likewise.
19337 (vect_update_ivs_after_vectorizer): Likewise.
19338
19339 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19340
19341 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19342 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19343
19344 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19345
19346 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19347 bogus uninitialized warning.
19348
19349 2010-01-09 Richard Guenther <rguenther@suse.de>
19350
19351 PR middle-end/42512
19352 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19353 the evolution is compatible with the initial condition.
19354
19355 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19356
19357 * gcc.c (process_command): Update copyright notice dates.
19358 * gcov.c (print_version): Likewise.
19359 * gcov-dump.c (print_version): Likewise.
19360 * mips-tfile.c (main): Likewise.
19361 * mips-tdump.c (main): Likewise.
19362
19363 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19364
19365 PR target/41885
19366 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19367 (rotlhi3): Delete.
19368 (rotlhi3_8): Delete.
19369 (rotlsi3): Delete.
19370 (rotlsi3_8): Delete.
19371 (rotlsi3_16): Delete.
19372 (rotlsi3_24): Delete.
19373 (rotl<mode>3): New.
19374 (*rotw<mode>3): New.
19375 (*rotb<mode>3): New.
19376 * config/avr/avr.c (avr_rotate_bytes): New function.
19377 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19378
19379 2010-01-08 Steve Ellcey <sje@cup.hp.com>
19380
19381 PR target/37454
19382 * configure.ac: Modify -rdynamic check.
19383 * configure: Regenerate.
19384
19385 2010-01-08 DJ Delorie <dj@redhat.com>
19386
19387 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19388 register popping order.
19389
19390 2010-01-08 Richard Guenther <rguenther@suse.de>
19391
19392 PR lto/42528
19393 * c.opt (fsigned-char): Also let LTO handle this option.
19394 (funsigned-char): Likewise.
19395
19396 2010-01-07 Richard Guenther <rguenther@suse.de>
19397
19398 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19399 (gimple_op): Likewise.
19400 (gimple_op_ptr): Likewise.
19401 (gimple_assign_set_lhs): Remove gcc_assert.
19402 (gimple_assign_set_rhs1): Likewise.
19403 (gimple_assign_set_rhs2): Likewise.
19404 (gimple_call_set_lhs): Likewise.
19405 (gimple_call_set_fn): Likewise.
19406 (gimple_call_set_fndecl): Likewise.
19407 (gimple_call_fndecl): Likewise.
19408 (gimple_call_return_type): Likewise.
19409 (gimple_call_set_chain): Likewise.
19410 (gimple_call_num_args): Likewise.
19411 (gimple_call_set_arg): Likewise.
19412 (gimple_cond_set_code): Likewise.
19413 (gimple_cond_set_lhs): Likewise.
19414 (gimple_cond_set_rhs): Likewise.
19415 (gimple_cond_set_true_label): Likewise.
19416 (gimple_cond_set_false_label): Likewise.
19417 (gimple_label_set_label): Likewise.
19418 (gimple_goto_set_dest): Likewise.
19419 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19420 (gimple_debug_bind_get_value): Likewise.
19421 (gimple_debug_bind_get_value_ptr): Likewise.
19422 (gimple_debug_bind_set_var): Likewise.
19423 (gimple_debug_bind_set_value): Likewise.
19424 (gimple_debug_bind_reset_value): Likewise.
19425 (gimple_debug_bind_has_value_p): Likewise.
19426 (gimple_return_retval_ptr): Remove gcc_assert.
19427 (gimple_return_retval): Likewise.
19428 (gimple_return_set_retval): Likewise.
19429 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19430 (safe_referenced_var_iterator): Remove.
19431 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19432 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19433 (fill_referenced_var_vec): Remove.
19434 (first_readonly_imm_use): Remove redundant gcc_assert.
19435 (phi_arg_index_from_use): Combine gcc_asserts.
19436 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19437 (first_imm_use_stmt): Remove redundant gcc_assert.
19438 * tree-cfg.c (verify_gimple_call): Verify function and chain
19439 operands. Verify arguments.
19440 (verify_types_in_gimple_stmt): Verify condition code and labels.
19441
19442 2010-01-07 Richard Guenther <rguenther@suse.de>
19443
19444 PR tree-optimization/42641
19445 * sese.c (rename_map_elt_info): Use the SSA name version, do
19446 not hash pointers.
19447
19448 2010-01-07 Jakub Jelinek <jakub@redhat.com>
19449
19450 PR tree-optimization/42625
19451 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19452 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19453
19454 2010-01-07 Duncan Sands <baldrick@free.fr>
19455
19456 * Makefile.in (PLUGIN_HEADERS): Add version.h.
19457
19458 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
19459
19460 PR target/42511
19461 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19462 note itself is not function_invariant_p.
19463
19464 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
19465
19466 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19467 Do not add the DF_NOTE problem.
19468 * store-motion.c (execute_rtl_store_motion): Likewise.
19469
19470 2010-01-07 Martin Jambor <mjambor@suse.cz>
19471
19472 PR tree-optimization/42157
19473 * tree-sra.c (compare_access_positions): Stabilize sort if both
19474 accesses have integer types, return zero immediately if they are the
19475 same.
19476
19477 2010-01-06 Richard Henderson <rth@redhat.com>
19478
19479 PR middle-end/41883
19480 * haifa-sched.c (add_to_note_list): Merge into ...
19481 (concat_note_lists): ... here, and ...
19482 (unlink_other_notes, rm_other_notes): Merge into...
19483 (remove_notes): ... here. Create REG_SAVE_NOTEs for
19484 NOTE_INSN_EPILOGUE_BEG.
19485
19486 2010-01-06 Richard Guenther <rguenther@suse.de>
19487
19488 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19489 not inline regular functions into always-inline functions.
19490
19491 2010-01-06 Nick Clifton <nickc@redhat.com>
19492
19493 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19494 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19495 used together.
19496 (OVERRIDE_OPTIONS): Delete.
19497 (OPTIMIZATION_OPTIONS): Define.
19498 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19499 * config/rx/rx.c (rx_handle_option): Issue an error message if
19500 -mcpu=rx200 and -fpu are used together.
19501 (rx_set_optimization_options): New function. Issue an error
19502 message if an optimization attribute attempts to reset the FPU/
19503 math optimization pairing.
19504 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19505 * config/rx/rx.opt: Set the default to 32-bit doubles.
19506 * config/rx/t-rx: Add multilibs for -nofpu option.
19507 * doc/invoke.texi: Update documentation of RX options.
19508
19509 2010-01-06 Richard Guenther <rguenther@suse.de>
19510
19511 * tree-ssa-pre.c (name_to_id): New global.
19512 (alloc_expression_id): Simplify SSA name handling.
19513 (lookup_expression_id): Likewise.
19514 (init_pre): Zero name_to_id.
19515 (fini_pre): Free it.
19516
19517 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
19518
19519 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19520
19521 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
19522
19523 PR target/42542
19524 * config/i386/sse.md (smaxv2di3): New.
19525 (umaxv2di3): Likewise.
19526 (sminv2di3): Likewise.
19527 (uminv2di3): Likewise.
19528
19529 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
19530
19531 PR target/42564
19532 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
19533 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
19534 (legitimize_tls_address): Likewise.
19535 (sparc_tls_referenced_p): Likewise.
19536 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
19537 and adjust calls to legitimize_pic_address.
19538 (legitimate_constant_p) Use sparc_tls_referenced_p.
19539 (legitimate_pic_operand_p): Likewise.
19540 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
19541 (sparc_tls_symbol_ref_1): Delete.
19542 (sparc_tls_referenced_p): Make static, recognize specific patterns.
19543 (legitimize_tls_address): Make static, handle CONST patterns.
19544 (legitimize_pic_address): Make static, remove unused parameter and
19545 adjust recursive calls.
19546 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
19547 and adjust call to legitimize_pic_address.
19548 (sparc_output_mi_thunk): Likewise.
19549
19550 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
19551 H.J. Lu <hongjiu.lu@intel.com>
19552
19553 PR target/42542
19554 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
19555 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
19556 operands to make them signed.
19557
19558 Revert:
19559 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19560
19561 PR target/42542
19562 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19563 GTU to GT for V4SI and V2DI.
19564
19565 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19566 (umin<mode>3): Removed.
19567 (uminv8hi3): New.
19568 (uminv4si3): Likewise.
19569
19570 2010-01-05 Martin Jambor <mjambor@suse.cz>
19571
19572 PR tree-optimization/42462
19573 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
19574 current_function_decl to helper functions and macros.
19575
19576 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19577
19578 PR bootstrap/41771
19579 * flags.h: Don't include real.h.
19580 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
19581 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
19582 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
19583 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
19584 * dominance.c: Update copyright.
19585 * gimple.c (walk_gimple_op): Remove inline.
19586 * tree-ssa-reassoc.c: Include real.h.
19587 * Makefile.in (FLAGS_H): Remove $(REAL_H).
19588 (tree-ssa-reassoc.o): Depend on $(REAL_H).
19589
19590 2010-01-05 Nick Clifton <nickc@redhat.com>
19591
19592 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19593 register to push into the stack frame when the accumulator has to
19594 be saved during interrupts.
19595
19596 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
19597
19598 * doc/invoke.texi: Remove the documentation about option
19599 -Wunreachable-code.
19600 * common.opt (Wunreachable-code): Preserved for backward
19601 compatibility.
19602 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19603 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19604 the backward compatibility flag section.
19605
19606 2010-01-05 Richard Guenther <rguenther@suse.de>
19607
19608 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19609
19610 2010-01-05 Jakub Jelinek <jakub@redhat.com>
19611
19612 PR other/42611
19613 * cfgexpand.c (expand_one_var): Diagnose too large variables.
19614
19615 PR tree-optimization/42508
19616 * tree-sra.c (convert_callers): Check for recursive call
19617 by comparing cgraph nodes instead of decls.
19618 (modify_function): Call ipa_modify_formal_parameters also
19619 on all same_body aliases.
19620
19621 * cgraphunit.c (cgraph_materialize_all_clones): Compare
19622 cgraph nodes when checking for same_body aliases.
19623
19624 2010-01-05 Richard Guenther <rguenther@suse.de>
19625
19626 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19627 allocation and lookup.
19628 (get_or_alloc_expr_for_constant): Likewise.
19629 (phi_translate): Sink allocation.
19630
19631 2010-01-04 Richard Guenther <rguenther@suse.de>
19632
19633 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19634 a new entry only if needed.
19635 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19636 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19637 hashtable lookup.
19638 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19639 the result array.
19640 (phi_translate): Handle CONSTANTs early.
19641
19642 2010-01-04 Martin Jambor <mjambor@suse.cz>
19643
19644 PR tree-optimization/42398
19645 * tree-sra.c (struct access): Removed flag grp_different_types.
19646 (dump_access): Do not dump the removed flag.
19647 (sort_and_splice_var_accesses): Do not set the removed flag.
19648 (sra_modify_expr): Check for type compatibility directly.
19649
19650 2010-01-04 Martin Jambor <mjambor@suse.cz>
19651
19652 PR tree-optimization/42366
19653 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19654 edges with variable number of parameters.
19655 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
19656 flag instead of asserting it.
19657 (ipa_read_node_info): Read uses_analysis_done flag.
19658
19659 2010-01-04 Richard Guenther <rguenther@suse.de>
19660
19661 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
19662 iterative_hash_* as intended.
19663 (vn_reference_compute_hash): Likewise. Simplify hashing
19664 SSA names.
19665 (vn_reference_lookup_2): Likewise.
19666 (vn_nary_op_compute_hash): Likewise.
19667 (vn_phi_compute_hash): Likewise.
19668 (expressions_equal_p): Remove strange code.
19669 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
19670 (pre_expr_hash): Likewise. Simplify hashing SSA names.
19671 (bitmap_insert_into_set_1): Take value-id as parameter.
19672 (add_to_value): Pass it.
19673 (bitmap_insert_into_set): Likewise.
19674 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
19675
19676 2010-01-04 Jakub Jelinek <jakub@redhat.com>
19677
19678 PR driver/42442
19679 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
19680 (do_self_spec): For switches with SWITCH_IGNORE set set also
19681 SWITCH_IGNORE_PERMANENTLY.
19682 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
19683 of SWITCH_IGNORE.
19684
19685 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
19686
19687 * lto-streamer-out.c (output_unreferenced_globals): Output the full
19688 tree of an unreferenced global var.
19689
19690 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19691
19692 PR target/42542
19693 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19694 GTU to GT for V4SI and V2DI.
19695
19696 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19697 (umin<mode>3): Removed.
19698 (uminv8hi3): New.
19699 (uminv4si3): Likewise.
19700
19701 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19702
19703 PR lto/42581
19704 * collect2.c (main): Turn on trace in collect2 if -v is passed
19705 to gcc with LTO.
19706
19707 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
19708
19709 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
19710 description of expression operand.
19711
19712 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
19713
19714 * configure.ac: Add install-html to target_list for Make-hooks.
19715 * configure: Regenerate.
19716 * fortran/Make-lang.in (F95_HTMLFILES): New.
19717 (fortran.html): Use it.
19718 (fortran.install-html): New.
19719 * Makefile.in (install-html): Add lang.install-html.
19720 * java/Make-lang.in (JAVA_HTMLFILES): New.
19721 (java.html): Use it.
19722 (java.install-html): New.
19723 * objc/Make-lang.in (objc.install-html): New.
19724 * objcp/Make-lang.in (obj-c++.install-html): New.
19725 * cp/Make-lang.in (c++.install-html): New.
19726 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
19727 * lto/Make-lang.in (lto.install-html): New.
19728
19729 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
19730
19731 PR lto/42520
19732 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
19733
19734 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
19735
19736 PR rtl-optimization/41862
19737 * store-motion.c (store_killed_in_insn, compute_store_table,
19738 remove_reachable_equiv_notes, replace_store_insn,
19739 build_store_vectors): Ignore all DEBUG_INSNs.
19740
19741 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
19742
19743 PR lto/41564
19744 * common.opt: Add dumpdir.
19745
19746 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
19747 isn't specified.
19748 (option_map): Add --dumpdir.
19749
19750 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
19751
19752 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
19753
19754 * opts.c (decode_options): Try dump_dir_name first if
19755 dump_base_name isn't an absolute path.
19756 (common_handle_option): Handle OPT_dumpdir.
19757
19758 * toplev.c (dump_dir_name): New.
19759 (print_switch_values): Also ignore -dumpdir.
19760
19761 * toplev.h (dump_dir_name): New.
19762
19763 2010-01-03 Richard Guenther <rguenther@suse.de>
19764
19765 PR tree-optimization/42589
19766 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
19767 double-word expansion of bswap32.
19768
19769 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
19770
19771 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
19772 with BLOCK_FOR_INSN.
19773 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
19774 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
19775 noce_process_if_block): Likewise.
19776 * gcse.c (compute_local_properties, insert_expr_in_table,
19777 insert_set_in_table, canon_list_insert, find_avail_set,
19778 pre_insert_copy_insn): Likewise.
19779
19780 * basic-block.h (BLOCK_NUM): Move from here...
19781 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
19782
19783 2010-01-03 Richard Guenther <rguenther@suse.de>
19784
19785 PR tree-optimization/42438
19786 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
19787 contains_may_not_return_call flag.
19788 (BB_MAY_NOTRETURN): New.
19789 (valid_in_sets): Trapping nary operations are not valid
19790 in blocks that may not return.
19791 (insert_into_preds_of_block): Remove check for trapping expressions.
19792 (compute_avail): Compute also BB_MAY_NOTRETURN.
19793
19794 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
19795
19796 * doc/invoke.texi: Add 2010 to copyright years.
19797
19798 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
19799
19800 * config/sparc/sparc.c: Fix formatting nits.
19801
19802 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
19803 Alexander Monakov <amonakov@ispras.ru>
19804
19805 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
19806
19807 2010-01-02 Richard Guenther <rguenther@suse.de>
19808
19809 PR middle-end/42577
19810 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
19811 (simplify_switch_using_ranges): Mark to be removed edges
19812 as non-executable.
19813
19814 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19815
19816 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19817
19818 * collect2.c (scan_libraries): Add missing argument in call to
19819 scan_prog_file.
19820
19821 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
19822
19823 PR target/42448
19824 * config/alpha/predicates.md (aligned_memory_operand): Return false
19825 for CQImode.
19826 (unaligned_memory_operand): Return true for CQImode.
19827 * config/alpha/alpha.c (get_aligned_mem): Assert that location
19828 doesn not cross aligned SImode word boundary.
19829
19830 2010-01-02 Anatoly Sokolov <aesok@post.ru>
19831
19832 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
19833 Remove.
19834 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
19835 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
19836
19837 2010-01-02 Richard Guenther <rguenther@suse.de>
19838
19839 PR lto/41597
19840 * toplev.c (compile_file): Emit LTO marker properly. Change
19841 it to __gnu_lto_v1.
19842 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
19843
19844 2010-01-01 Richard Guenther <rguenther@suse.de>
19845
19846 PR debug/42455
19847 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
19848
19849 2010-01-01 Richard Guenther <rguenther@suse.de>
19850
19851 PR c/42570
19852 * c-decl.c (grokdeclarator): For zero-size arrays force
19853 structural equality checks as layout_type does.
19854
19855 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
19856
19857 * builtins.c: Update copyright to 2010.
19858
19859 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
19860
19861 PR lto/42531
19862 * lto-streamer-out.c (produce_asm): Revert the last change.
19863 (copy_function): Likewise.
19864
19865 * lto-streamer.c (lto_get_section_name): Skip any leading
19866 asterisk in name.
19867
19868 2010-01-01 Richard Guenther <rguenther@suse.de>
19869
19870 PR middle-end/42559
19871 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
19872 for LABEL_DECLs.
19873
19874 \f
19875 Copyright (C) 2010 Free Software Foundation, Inc.
19876
19877 Copying and distribution of this file, with or without modification,
19878 are permitted in any medium without royalty provided the copyright
19879 notice and this notice are preserved.
This page took 0.869391 seconds and 6 git commands to generate.