OSDN Git Service

* config/h8300/h8300.c (h8300_init_once): Default to
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-07-13  DJ Delorie  <dj@redhat.com>
2
3         * config/h8300/h8300.c (h8300_init_once): Default to
4         -fstrict_volatile_bitfields.
5
6         * config/sh/sh.c (sh_override_options): Default to
7         -fstrict_volatile_bitfields.
8
9         * config/rx/rx.c (rx_option_override): New.
10
11         * config/m32c/m32c.c (m32c_override_options): Default to
12         -fstrict_volatile_bitfields.
13
14 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
15
16         * tree.h (build_function_call_expr): Delete.
17         (build_call_expr_loc_array): New function.
18         (build_call_expr_loc_vec): New function.
19         * tree-flow.h (struct omp_region): Change type of ws_args field
20         to a VEC.
21         * builtins.c (build_function_call_expr): Delete.
22         (build_call_expr_loc_array): New function.
23         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
24         (build_call_expr): Likewise.
25         (build_call_expr_loc_vec): New function.
26         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
27         build_function_call_expr.
28         * expr.c (emutls_var_address): Likewise.
29         * varasm.c (emutls_common_1): Likewise.
30         * omp-low.c (expand_omp_atomic_mutex): Likewise.
31         (expand_omp_taskreg): Adjust for new type of region->ws_args.
32         (get_ws_args_for): Return a VEC instead of a tree.
33         (expand_parallel_call): Call build_call_expr_loc_vec instead of
34         build_function_call_expr.
35         * stor-layout.c (self_referential_size): Likewise.
36
37 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
38
39         PR testsuite/44701
40         * recog.c (constrain_operands): Allow side-effects in memory
41         operands if either < or > constraint is used, rather than if
42         both < and > is used.
43
44 2010-07-13  Richard Guenther  <rguenther@suse.de>
45
46         PR middle-end/44911
47         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
48         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
49         without name.
50
51 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
52
53         PR target/44761
54         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
55         to variable emited.
56         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
57         * config/sh/sh.md (symGOT_load): Likewise.
58         (symDTPOFF2reg): Likewise.
59         (symTPOFF2reg): Likewise.
60
61 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
62
63         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
64         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
65
66 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
67
68         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
69         explanation.
70         Find ucontext_t * on Solaris 11.
71         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
72         Handle new Solaris 11 __sighndlr patterns.
73
74 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
75
76         PR debug/44901
77         * vec.h (VEC_block_remove): Fix comment.
78         * tree-ssa-live.c (remove_unused_locals): Don't use
79         VEC_unordered_remove on local_decls, instead replace a single
80         vector element in each iteration if at least one element had
81         to be removed and VEC_truncate at the end.
82         * omp-low.c (expand_omp_taskreg): Likewise.
83
84 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
85
86         * c-decl.c (finish_function): Fix typo in comment.
87         
88 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
89
90         PR bootstrap/44921
91         * postreload.c (move2add_use_add3_insn): Silence gcc warning
92         on min_regno.
93
94 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
95
96         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
97         (simplify_stmt_using_ranges): Use it.
98
99 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
100
101         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
102         member.  Do not mark as GTY(()).
103         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
104         (spu_builtin_decls): New static variable.
105         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
106         (spu_init_builtins): Likewise.
107         (spu_builtin_mul_widen_even): Likewise.
108         (spu_builtin_mul_widen_odd): Likewise.
109         (spu_builtin_mask_for_load): Likewise.
110         (spu_builtin_vec_perm): Likewise.
111         * config/spu/spu-c.c: Include "target.h".
112         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
113         of using spu_builtins[].fndecl.
114
115 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
116
117         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
118         imply -minterlink-mips16.
119
120 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
121
122         * config/mips/mips.h (mips16_globals): Declare.
123         (SWITCHABLE_TARGET): Define.
124         * config/mips/mips.c: Include target-globals.h.
125         (mips16_globals): New variable.
126         (mips_set_mips16_mode): Use save_target_globals and
127         restore_target_globals instead of target_reinit.
128
129 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
130
131         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
132         to say that the function can be called more than once.
133         * target-globals.c (save_target_globals): Call init_reg_sets.
134
135 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
136
137         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
138         * bb-reorder.h: New file.
139         * bb-reorder.c (default_target_bb_reorder): New variable.
140         (this_target_bb_reorder): New conditional variable.
141         (uncond_jump_length): Redefine as a macro.
142         * target-globals.h (this_target_bb_reorder): Declare.
143         (target_globals): Add a bb_reorder field.
144         (restore_target_globals): Copy the bb_reorder field to
145         this_target_bb-reorder.
146         * target-globals.c: Include bb-reorder.h.
147         (default_target_globals): Initialize the bb_reorder field.
148         (save_target_globals): Likewise.
149
150 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
151
152         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
153         * gcse.h: New file.
154         * gcse.c: Include gcse.h.
155         (default_target_gcse): New variable.
156         (this_target_gcse): New conditional variable.
157         (can_copy): Redefine as a macro.
158         (can_copy_init_p): New macro.
159         (can_copy_p): Remove can_copy_init_p.
160         * target-globals.h (this_target_gcse): Declare.
161         (target_globals): Add a gcse field.
162         (restore_target_globals): Copy the gcse field to
163         this_target_gcse.
164         * target-globals.c: Include gcse.h.
165         (default_target_globals): Initialize the gcse field.
166         (save_target_globals): Likewise.
167
168 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
169
170         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
171         and x_ira_prohibited_mode_move_regs_initialized_p.
172         (ira_prohibited_mode_move_regs): Redefine as a macro.
173         * ira.c (ira_prohibited_mode_move_regs): Delete.
174         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
175
176 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
177
178         * reload.h (target_reload): Add x_cached_reg_save_code and
179         x_cached_reg_restore_code.
180         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
181         Redefine as macros.
182
183 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
184
185         * Makefile.in (target-globals.o): Depend on builtins.h.
186         * builtins.h: New file.
187         * builtins.c: Include builtins.h.
188         (default_target_builtins): New variable.
189         (this_target_builtins): New conditional variable.
190         (apply_args_mode, apply_result_mode): Redefine as macros.
191         * target-globals.h (this_target_builtins): Declare.
192         (target_globals): Add a builtins field.
193         (restore_target_globals): Copy the builtins field to
194         this_target_builtins.
195         * target-globals.c: Include builtins.h.
196         (default_target_globals): Initialize the builtins field.
197         (save_target_globals): Likewise.
198
199 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
200
201         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
202         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
203         from expmed.c.
204         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
205         (alg_hash, alg_hash_used_p): New macros.
206         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
207         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
208         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
209
210 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
211
212         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
213         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
214         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
215         (this_op_costs, costs_classes): Redefine as macros.
216         (record_reg_classes): Don't take op_costs as a parameter.
217         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
218         (scan_one_insn): Update call to record_operand_costs.
219
220 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
221
222         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
223         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
224         (target_ira_int): New structure.
225         (default_target_ira_int): Declare.
226         (this_target_ira_int): Declare as a variable or define as a macro.
227         (ira_reg_mode_hard_regset, ira_register_move_cost)
228         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
229         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
230         (prohibited_class_mode_regs, ira_important_classes_num)
231         (ira_important_classes, ira_reg_class_intersect)
232         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
233         (ira_reg_class_union): Redefine as macros.
234         * ira.h (target_ira): New structure.
235         (default_target_ira): Declare.
236         (this_target_ira): Declare as a variable or define as a macro.
237         (ira_available_class_regs, ira_hard_regno_cover_class)
238         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
239         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
240         (ira_class_hard_regs_num): Redefine as macros.
241         * ira.c (default_target_ira, default_target_ira_int): New variables.
242         (this_target_ira, this_target_ira_int): New conditional variables.
243         (ira_reg_mode_hard_regset, ira_memory_move_cost)
244         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
245         (ira_class_subset_p): Delete.
246         (no_unit_alloc_regs): Redefine as a macro.
247         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
248         (ira_class_hard_regs_num, ira_class_hard_reg_index)
249         (ira_available_class_regs): Delete.
250         (alloc_reg_class_subclasses): Redefine as a macro.
251         (ira_reg_class_cover_size, ira_reg_class_cover)
252         (ira_important_classes_num, ira_important_classes)
253         (ira_important_class_nums, ira_class_translate): Delete.
254         (cover_class_order): Document the variable's lifetime.
255         (reorder_important_classes): Don't set ira_important_class_nums.
256         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
257         (ira_reg_class_super_classes, ira_reg_class_union)
258         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
259         Delete.
260         (setup_reg_class_nregs): Don't set ira_max_regs.
261         (prohibited_class_mode_regs): Delete.
262         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
263         (target_globals): Add ira and ira_int fields.
264         (restore_target_globals): Copy the ira field to this_target_ira
265         and the ira_int field to this_target_ira_int.
266         * target-globals.c: Include ira-int.h.
267         (default_target_globals): Initialize the ira and ira_int fields.
268         (save_target_globals): Likewise.
269
270 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
271
272         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
273         * cfgloop.h (target_cfgloop): New structure.
274         (default_target_cfgloop): Declare.
275         (this_target_cfgloop): Declare as a variable or define as a macro.
276         (target_avail_regs, target_clobbered_regs, target_res_regs)
277         (target_reg_cost, target_spill_cost): Redefine as macros.
278         * cfgloopanal.c (default_target_cfgloop): New variable.
279         (this_target_cfgloop): New conditional variable.
280         (target_avail_regs, target_clobbered_regs, target_res_regs)
281         (target_reg_cost, target_spill_cost): Delete.
282         * target-globals.h (this_target_cfgloop): Declare.
283         (target_globals): Add a cfgloop field.
284         (restore_target_globals): Copy the cfgloop field to
285         this_target_cfgloop.
286         * target-globals.c: Include cfgloop.h.
287         (default_target_globals): Initialize the cfgloop field.
288         (save_target_globals): Likewise.
289
290 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
291
292         * regs.h (target_regs): Add x_direct_load, x_direct_store and
293         x_float_extend_from_mem.
294         (direct_load, direct_store, float_extend_from_mem): New macros.
295         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
296
297 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
298
299         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
300         (target-globals.o): Depend on $(LIBFUNCS_H).
301         * libfuncs.h: Include hashtab.h.
302         (libfunc_entry): Moved from optabs.c.
303         (target_libfuncs): New structure.
304         (default_target_libfuncs): Declare.
305         (this_target_libfuncs): Declare as a variable or define as a macro.
306         (libfunc_table): Redefine as a macro.
307         * optabs.c (default_target_libfuncs): New variable.
308         (this_target_libfuncs): New conditional variable.
309         (libfunc_table): Delete.
310         (libfunc_entry): Moved to optabs.h.
311         (libfunc_hash): Redefine as a macro.
312         (hash_libfunc, eq_libfunc): Fix comments.
313         (init_optabs): Use libfunc_hash to detect cases where the function
314         has already been called.  Clear the hash table instead of
315         recreating it.
316         * target-globals.h (this_target_libfuncs): Declare.
317         (target_globals): Add a libfuncs field.
318         (restore_target_globals): Copy the libfuncs field to
319         this_target_libfuncs.
320         * target-globals.c: Include libfuncs.h.
321         (default_target_globals): Initialize the libfuncs field.
322         (save_target_globals): Likewise.
323
324 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
325
326         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
327         in all dependency lists.
328
329 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
330
331         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
332         * optabs.h (target_optabs): New structure.
333         (default_target_optabs): Declare.
334         (this_target_optabs): Declare as a variable or define as a macro.
335         (optab_table, convert_optab_table, direct_optab_table): Redefine
336         as macros.
337         * optabs.c (default_target_optabs): New variable.
338         (this_target_optabs): New conditional variable.
339         (optab_table, convert_optab_table, direct_optab_table): Delete.
340         * target-globals.h (this_target_optabs): Declare.
341         (target_globals): Add a optabs field.
342         (restore_target_globals): Copy the optabs field to
343         this_target_optabs.
344         * target-globals.c: Include expr.h and optabs.h.
345         (default_target_globals): Initialize the optabs field.
346         (save_target_globals): Likewise.
347
348 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
349
350         * flags.h (target_flagstate): Add x_flag_excess_precision.
351         (flag_excess_precision): Redefine as a macro.
352         * toplev.c (flag_excess_precision): Delete.
353
354 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
355
356         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
357         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
358         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
359         (no_caller_save_reg_set): Redefine as a macro.
360         * reload.h (target_reload): Add x_caller_save_initialized_p and
361         x_regno_save_mode.
362         (caller_save_initialized_p): Redefine as a macro.
363         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
364         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
365         (regno_save_mode): Redefine as a macro.
366
367 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
368
369         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
370         * expmed.h: New file.
371         * expmed.c (default_target_costs): New variable.
372         (this_target_costs): New conditional variable.
373         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
374         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
375         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
376         * target-globals.h (this_target_expmed): Declare.
377         (target_globals): Add a expmed field.
378         (restore_target_globals): Copy the expmed field to
379         this_target_expmed.
380         * target-globals.c: Include expmed.h.
381         (default_target_globals): Initialize the expmed field.
382         (save_target_globals): Likewise.
383
384 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
385
386         * Makefile.in (target-globals.o): Depend on reload.h.
387         * reload.h (target_reload): New structure.
388         (default_target_reload): Declare.
389         (this_target_reload): Declare as a variable or define as a macro.
390         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
391         * reload1.c (default_target_reload): New variable
392         (this_target_reload): New conditional variable.
393         (indirect_symref_ok, double_reg_address_ok): Delete.
394         (spill_indirect_levels): Redefine as a macro.
395         * target-globals.h (this_target_reload): Declare.
396         (target_globals): Add a reload field.
397         (restore_target_globals): Copy the reload field to
398         this_target_reload.
399         * target-globals.c: Include hard-reg-set.h.
400         (default_target_globals): Initialize the reload field.
401         (save_target_globals): Likewise.
402
403 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
404
405         * rtl.h (target_rtl): Add x_static_reg_base_value.
406         * alias.c (static_reg_base_value): Redefine as a macro.
407
408 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
409
410         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
411         (GTFILES): Remove reginfo.c.
412         * rtl.h (target_rtl): Add x_top_of_stack.
413         (top_of_stack): New macro.
414         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
415         (top_of_stack): Delete.
416
417 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
418
419         * regs.h (target_regs): Add x_hard_regs_of_mode, x_contains_reg_of_mode,
420         x_move_cost, x_may_move_in_cost, x_may_move_out_cost and
421         x_last_mode_for_init_move_cost.
422         (have_regs_of_mode, contains_reg_of_mode, move_cost)
423         (may_move_in_cost, may_move_out_cost): Redefine as macros.
424         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
425         (may_move_in_cost, may_move_out_cost): Delete.
426         (last_mode_for_init_move_cost): Redefine as a macro.
427
428 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
429
430         * hard-reg-set.h (target_hard_regs): New structure.
431         (default_target_hard_regs): Declare.
432         (this_target_hard_regs): Declare as a variable or define as a macro.
433         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
434         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
435         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
436         (reg_class_size, reg_class_subclasses, reg_class_subunion)
437         (reg_class_superunion, reg_names): Redefine as macros.
438         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
439         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
440         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
441         (reg_class_contents, reg_class_size, reg_class_subclasses)
442         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
443         (default_target_hard_regs): New variable
444         (this_target_hard_regs, initial_call_really_used_regs)
445         (initial_reg_alloc_order): New conditional variables.
446         (initial_reg_names): New variable.
447         (init_reg_sets): Assert that initial_call_really_used_regs,
448         initial_reg_alloc_order and initial_reg_names
449         are all the same size as their variable counterparts.  Use them to
450         initialize those counterparts.
451         * target-globals.h (this_target_hard_regs): Declare.
452         (target_globals): Add a hard_regs field.
453         (restore_target_globals): Copy the hard_regs field to
454         this_target_hard_regs.
455         * target-globals.c: Include hard-reg-set.h.
456         (default_target_globals): Initialize the hard_regs field.
457         (save_target_globals): Likewise.
458
459 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
460
461         * Makefile.in (target-globals.o): Depend on $(RTL_H).
462         * rtl.h: (target_rtl): New structure.
463         (default_target_rtl): Declare.
464         (this_target_rtl): Declare as a variable or define as a macro.
465         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
466         Redefine as macros.
467         * emit-rtl.c (default_target_rtl): New variable.
468         (this_target_rtl): New conditional variable.
469         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
470         (return_address_pointer_rtx): Delete.
471         (initial_regno_reg_rtx): New macro.
472         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
473         (init_emit_regs): Likewise.
474         * target-globals.h (this_target_rtl): Declare.
475         (target_globals): Add a rtl field.
476         (restore_target_globals): Copy the rtl field to this_target_rtl.
477         * target-globals.c: Include rtl.h.
478         (default_target_globals): Initialize the rtl field.
479         (save_target_globals): Likewise.
480
481 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
482
483         * Makefile.in (target-globals.o): Depend on $(REGS_H).
484         * regs.h (target_reg_modes): New structure.
485         (default_target_reg_modes): Declare.
486         (this_target_reg_modes): Declare as a variable or define as a macro.
487         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
488         * reginfo.c (default_target_reg_modes): New variable.
489         (this_target_reg_modes): New conditional variable.
490         (hard_regno_nregs, reg_raw_mode): Delete.
491         * target-globals.h (this_target_regs): Declare.
492         (target_globals): Add a regs field.
493         (restore_target_globals): Copy the regs field to this_target_regs.
494         * target-globals.c: Include regs.h.
495         (default_target_globals): Initialize the regs field.
496         (save_target_globals): Likewise.
497
498 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
499
500         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
501         * doc/tm.texi: Regenerate.
502         * Makefile.in (OBJS-common): Add target-globals.o.
503         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
504         and target-globals.h.
505         (target-globals.o): New rule.
506         (GTFILES): Include $(srcdir)/target-globals.h.
507         * defaults.h (SWITCHABLE_TARGET): Define.
508         * gengtype.c (open_base_files): Add target-globals.h to the
509         list of includes.
510         * target-globals.h: New file.
511         * target-globals.c: Likewise.
512
513         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
514         * flags.h (target_flag_state): New structure.
515         (default_target_flag_state): Declare.
516         (this_target_flag_state): Declare as a variable or define as a macro.
517         (align_loops_log): Redefine as a macro.
518         (align_loops_max_skip, align_jumps_log): Likewise.
519         (align_jumps_max_skip, align_labels_log): Likewise.
520         (align_labels_max_skip, align_functions_log): Likewise.
521         * toplev.c (default_target_flag_state): New variable.
522         (this_target_flag_state): New conditional variable.
523         (align_loops_log): Delete.
524         (align_loops_max_skip, align_jumps_log): Likewise.
525         (align_jumps_max_skip, align_labels_log): Likewise.
526         (align_labels_max_skip, align_functions_log): Likewise.
527         * target-globals.h (this_target_flag_state): Declare.
528         (target_globals): Add a flag_state field.
529         (restore_target_globals): Copy the flag_state field to
530         this_target_flag_state.
531         * target-globals.c: Include flags.h.
532         (default_target_globals): Initialize the flag_state field.
533         (save_target_globals): Likewise.
534
535 2010-07-12  Jie Zhang  <jie@codesourcery.com>
536
537         * postreload.c (reg_symbol_ref[]): New.
538         (move2add_use_add2_insn): New.
539         (move2add_use_add3_insn): New.
540         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
541         (move2add_note_store): Likewise.
542
543 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
544
545         PR rtl-optimization/44752
546         * genautomata.c (main): Don't emit an empty file even if there
547         is no automaton.
548
549 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
550
551         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
552         ix86_solaris_return_in_memory.
553         * config/i386-protos.h: Reflect this.
554         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
555         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
556         Move ...
557         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
558
559 2010-07-12  Jie Zhang  <jie@codesourcery.com>
560
561         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
562         align the stack when it's going to be saved.
563
564 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
565
566         PR pch/14940
567         * config/host-solaris.c (mmap_fixed): New function.
568         (sol_gt_pch_get_address): Use it.
569         (sol_gt_pch_use_address): Likewise.
570
571 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
572
573         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
574         pentiumpro on Solaris 8 and 9/x86.
575         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
576         Document SSE/SSE2 support.
577         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
578
579 2010-07-12  Andi Kleen  <ak@linux.intel.com>
580
581         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
582         instead of gcc_assert to print better error message for multiple
583         prevailing defs.
584
585 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
586
587         * config/i386/i386.c (ix86_asm_output_function_label): Change format
588         string placeholder from 0x%x to %#x.
589         (ix86_code_end): Use putc to output '\n'.
590         (ix86_print_operand) <case ';'>: Use putc to output ';'.
591
592 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
593
594         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
595         in directive -export.
596
597 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
598
599         * reginfo.h (reg_classes_intersect_p): Change arguments type to
600         reg_class_t.
601         * rtl.h (reg_classes_intersect_p): Adjust prototype.
602
603         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
604         Remove macros.
605         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
606         rs6000_memory_move_cost): Remove
607         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
608         TARGET_MEMORY_MOVE_COST): Define.
609         (rs6000_register_move_cost): Make static. Change arguments type from
610         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
611         (rs6000_memory_move_cost): Make static. Change arguments type from
612         'enum reg_class' to reg_class_t.
613
614 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
615
616         PR middle-end/42505
617         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
618         lookup code into....
619         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
620         new functions.
621         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
622         * cfgloopanal.c (target_clobbered_regs): Define.
623         (init_set_costs): Initialize target_clobbered_regs.
624         (estimate_reg_pressure_cost): Add call_p argument.  When true,
625         adjust the number of available registers to exclude the
626         call-clobbered registers.
627         * cfgloop.h (target_clobbered_regs): Declare.
628         (estimate_reg_pressure_cost): Adjust declaration.
629         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
630         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
631         (determine_set_costs): Dump target_clobbered_regs.
632         (loop_body_includes_call): New function.
633         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
634         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
635         call_p flag through.
636         (best_gain_for_invariant): Likewise.
637         (find_invariants_to_move): Likewise.
638         (move_single_loop_invariants): Likewise, using already-computed
639         has_call field.
640
641 2010-07-10  Richard Guenther  <rguenther@suse.de>
642             Joern Rennecke  <joern.rennecke@embecosm.com>
643
644         PR debug/44832
645         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
646         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
647         unless they have DECL_IGNORED_P set.
648
649 2010-07-10  Richard Guenther  <rguenther@suse.de>
650
651         PR lto/44889
652         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
653         helper function.
654         (gimple_types_compatible_p): Similar to pointed-to
655         types allow and merge a mix of complete and incomplete aggregate.
656         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
657         (iterative_hash_gimple_type): Adjust for that.
658
659 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
660
661         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
662
663 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
664
665         PR objc/44140
666         * config/darwin.c (output_objc_section_asm_op): Save and restore
667         section when outputting ObjC section list.
668
669 2010-07-09  Jan Hubicka  <jh@suse.cz>
670
671         * lto-streamer-out.c (produce_symtab): Do not write alias
672         cgraph/varpool nodes.
673
674 2010-07-09  Jan Hubicka  <jh@suse.cz>
675
676         * tree-inline.c (declare_return_variable): Fix ICE while
677         inlining DECL_BY_VALUE function not in SSA form
678
679 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
680
681         PR tree-optimization/44576
682         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
683         New.  Pull out from is_loop_prefetching_profitable to implement
684         the trip count to ahead ratio heuristic.
685         (mem_ref_count_reasonable_p): New.  Pull out from
686         is_loop_prefetching_profitable to implement the instruction to
687         memory reference ratio heuristic.  Also consider not reasonable if
688         the memory reference count is above a threshold (to avoid
689         explosive compilation time.
690         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
691         is_loop_prefetching_profitable to implement the instruction to
692         prefetch ratio heuristic.
693         (is_loop_prefetching_profitable): Removed.
694         (loop_prefetch_arrays): Distribute the cost analysis across the
695         function to allow early exit of the prefetch analysis.
696         is_loop_prefetching_profitable is splitted into three functions,
697         with each one called as early as possible.
698         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
699         number of memory references in a loop is considered too many.
700
701 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
702
703         * reload.c (find_reloads): Don't clear badop if we have a winreg
704         alternative, but not win, and the class only has fixed regs.
705         * hard-reg-set.h (class_only_fixed_regs): Declare.
706         * reginfo.c (class_only_fixed_regs): New array.
707         (init_reg_sets_1): Initialize it.
708         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
709         discourage alternatives using the stack pointer.
710
711         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
712
713         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
714
715         * config/arm/arm.md (cbranchqi4): Fix array size.
716         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
717         calculating length.
718
719 2010-07-09  Richard Guenther  <rguenther@suse.de>
720
721         * gimple.c (struct type_fixup_s): New struct and VEC type.
722         (gimple_register_type_fixups): New static global.
723         (gimple_queue_type_fixup): New function.
724         (gimple_types_compatible_p): Queue type fixups instead of
725         applying them here.
726         (gimple_register_type): Apply queued fixups for the
727         canonical type.  Empty the type fixup queue.
728
729 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
730
731         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
732         * configure: Regenerate.
733         * config.in: Ditto.
734
735 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
736             Denys Vlasenko  <dvlasenk@redhat.com>
737             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
738
739         PR tree-optimization/28632
740         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
741         (extract_range_from_binary_expr): Further optimize
742         BIT_AND_EXPR and BIT_IOR_EXPR.
743
744 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
745
746         * tree-if-conv.c (fold_or_predicates): New.
747         (add_to_predicate_list): Call it.
748
749 2010-07-09  Richard Guenther  <rguenther@suse.de>
750
751         PR middle-end/44890
752         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
753         if base is a pointer.
754         * tree-cfg.c (verify_expr): Update MEM_REF checking.
755
756 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
757
758         PR target/44877
759         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
760         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
761         builtin mask for load/store builtins.
762
763 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
764
765         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
766         for "lock addl".
767         * configure: Regenerate.
768         * config/i386/i386.c (ix86_print_operand) <case ';'>:
769         Remove TARGET_MACHO.
770
771 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
772
773         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
774         default ISA flags.
775         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
776
777 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
778
779         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
780
781 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
782
783         * config/picochip/picochip.md (commsTestPort): Emit more
784         efficient sequence for tstport instruction.
785
786 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
787
788         * config/i386/i386.c (ix86_veclib_handler): Make static.
789
790 2010-07-09  Richard Guenther  <rguenther@suse.de>
791
792         PR tree-optimization/44852
793         * tree-ssa-alias.c: Include toplev.h for exact_log2.
794         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
795         in MEM_REF.
796         (indirect_refs_may_alias_p): Likewise.
797         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
798
799 2010-07-09  Richard Guenther  <rguenther@suse.de>
800
801         PR tree-optimization/44882
802         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
803         sets do conflict.
804         (vectorizable_load): Likewise.
805
806 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
807
808         PR target/40657
809         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
810         All callers changed.
811         Handle the case when we're called for the epilogue.
812         (thumb_unexpanded_epilogue): Use it.
813         (thumb1_expand_epilogue): Likewise.
814
815 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
816
817         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
818         both ranges are range_int_cst_p with non-negative minimum,
819         try harder to derive smaller range.
820
821 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
822
823         * genrecog.c: Include diagnostic-core.h before toplev.h.
824         * genoutput.c: Likewise.
825         * genextract.c: Likewise.
826         * genautomata.c: Likewise.
827         * genemit.c: Likewise.
828         * genpeep.c: Likewise.
829         * genattrtab.c: Likewise.
830         * genconditions.c: Likewise.
831         * genpreds.c: Likewise.
832
833 2010-07-08  Andi Kleen  <ak@linux.intel.com>
834
835         * lto-section-in.c (lto_section_name): Add missing comma.
836
837 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
838
839         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
840         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
841         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
842         (ia64_override_options): Rename to...
843         (ia64_option_override): ... this one. Make static.
844
845 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
846
847         PR middle-end/44843
848         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
849         pointed-to type of the offset in a MEM_REF to compute the alignment.
850
851 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
852
853         * final.c (final_scan_insn): Replace
854         TARGET_UNWIND_INFO macro check by unwind_emit
855         hook NULL check.
856         * targhooks.c (default_unwind_emit): Removed.
857         * targhooks.h (default_unwind_emit): Likewise.
858         * target.def (unwind_emit): Set default value to NULL.
859
860         * config/i386/i386-protos.h (ix86_asm_output_function_label):
861         New prototype.
862         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
863         for NULL fntype argument and allow 64-bit targets.
864         (ix86_asm_output_function_label): New function.
865         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
866         (ix86_handle_fndecl_attribute): Likewise.
867         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
868         * doc/doc/tm.texi: Regenerated.
869         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
870         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
871         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
872         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
873         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
874         * config/elfos.h: Likewise.
875         * config/i386/cygming.h: Likewise.
876         * config/netbsd-aout.h: Likewise.
877         * config/openbsd.h: Likewise.
878         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
879         by ix86_asm_output_function_label function call.
880         * varasm.c (assemble_start_function): Use
881         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
882
883 2010-07-08  Jan Hubicka  <jh@suse.cz>
884
885         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
886         New function.
887         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
888         Declare.
889         * ipa-cp.c (ipcp_estimate_growth): Use it.
890         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
891         Likewise.
892
893 2010-07-08  Jan Hubicka  <jh@suse.cz>
894
895         * tree-inline.c (declare_return_variable): Allocate annotation for new
896         temporary.
897
898 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
899
900         PR tree-optimization/44710
901         * tree-if-conv.c (parse_predicate): New.
902         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
903         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
904
905 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
906
907         * common.opt (ftree-loop-if-convert): New flag.
908         * doc/invoke.texi (ftree-loop-if-convert): Documented.
909         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
910         when flag_tree_loop_if_convert is set.
911
912 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
913
914         * config/i386/i386.c: Use short syntax for function calls
915         through function pointers.
916         * config/i386/i386.md: Ditto.
917
918 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
919
920         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
921
922 2010-07-08  Richard Guenther  <rguenther@suse.de>
923
924         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
925         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
926
927 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
928
929         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
930         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
931         (loc_list_from_tree): Likewise.
932         (output_loc_operands): Handle outputting DW_OP_const[48]u
933         with loc->dtprel set.
934         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
935
936 2010-07-08  Jan Hubicka  <jh@suse.cz>
937
938         * ipa.c: Include pointer-set.h
939         (cgraph_externally_visible_p): New attribute ALIASED;
940         when in LTO, hidden symbols are local unless they are aliased.
941         (function_and_variable_visibility): Compute aliased nodes;
942         handle LTO and hidden symbol on functions and vars.
943         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
944         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
945
946 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
947
948         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
949         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
950         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
951         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
952         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
953         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
954         (ix86_gen_probe_stack_range): Likewise.
955         (override_options): Set them.
956         (ix86_target_stack_probe): New function.
957         (ix86_compute_frame_layout): Force use of push instructions to
958         save registers if stack checking with probes is enabled.
959         (get_scratch_register_on_entry): New function.
960         (release_scratch_register_on_entry): Likewise.
961         (ix86_adjust_stack_and_probe): Likewise.
962         (output_adjust_stack_and_probe): Likewise.
963         (ix86_emit_probe_stack_range): Likewise.
964         (output_probe_stack_range): Likewise.
965         (ix86_expand_prologue): Emit stack checking code if static built-in
966         stack checking is enabled.
967         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
968         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
969         (output_adjust_stack_and_probe): Likewise.
970         (output_probe_stack_range): Likewise.
971         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
972         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
973         TARGET_STACK_PROBE.
974         (allocate_stack_worker_64): Likewise.
975         (allocate_stack): Likewise.
976         (adjust_stack_and_probe): New insn.
977         (probe_stack_range): Likewise.
978
979 2010-07-08  Richard Guenther  <rguenther@suse.de>
980
981         PR tree-optimization/44831
982         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
983         a MEM_REF preserving TBAA info of the original dereference.
984         Dereference the original pointer if the address is not invariant.
985         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
986         at least one invariant address that we are going to dereference.
987
988 2010-07-08  Richard Guenther  <rguenther@suse.de>
989
990         PR tree-optimization/44861
991         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
992         information when building MEM_REFs.
993         (vectorizable_load): Likewise.
994         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
995
996 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
997
998         * config/sol2-c.c: Do not include diagnostic-core.h.
999
1000 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1001
1002         PR bootstrap/44768
1003         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
1004         with respect to current_function_decl. Pass decl of the function.
1005         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
1006         * ipa-inline.c (compute_inline_parameters): Pass decl to
1007         estimated_stack_frame_size.
1008
1009 2010-07-08  Richard Guenther  <rguenther@suse.de>
1010
1011         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1012         New function.
1013         (valueize_refs): Call it.
1014
1015 2010-07-08  Richard Guenther  <rguenther@suse.de>
1016
1017         PR rtl-optimization/44838
1018         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
1019         SSA form do not use pointer equivalence.
1020
1021 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
1022
1023         * dwarf2out.c (AT_linkage_name): Delete.
1024         (add_linkage_attr): New function.
1025         (add_linkage_name): Call it to emit the linkage attribute.
1026         (dwarf2out_finish): Likewise.
1027         (move_linkage_attr): Explicitly accept both attribute variants.
1028
1029 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1030
1031         * toplev.h: Do not include diagnostic-core.h.
1032         Include diagnostic-core.h in every file that includes toplev.h.
1033         * c-tree.h: Do not include toplev.h.
1034         * pretty-print.h: Update comment.
1035         * Makefile.in: Update dependencies.
1036         * alias.c: Include diagnostic-core.h in every file that includes
1037         toplev.h.
1038         * attribs.c: Likewise.
1039         * auto-inc-dec.c: Likewise.
1040         * bb-reorder.c: Likewise.
1041         * bt-load.c: Likewise.
1042         * caller-save.c: Likewise.
1043         * calls.c: Likewise.
1044         * cfg.c: Likewise.
1045         * cfganal.c: Likewise.
1046         * cfgbuild.c: Likewise.
1047         * cfgcleanup.c: Likewise.
1048         * cfghooks.c: Likewise.
1049         * cfgloop.c: Likewise.
1050         * combine.c: Likewise.
1051         * config/alpha/alpha.c: Likewise.
1052         * config/arc/arc.c: Likewise.
1053         * config/arm/arm.c: Likewise.
1054         * config/arm/pe.c: Likewise.
1055         * config/avr/avr.c: Likewise.
1056         * config/bfin/bfin.c: Likewise.
1057         * config/cris/cris.c: Likewise.
1058         * config/crx/crx.c: Likewise.
1059         * config/darwin-c.c: Likewise.
1060         * config/darwin.c: Likewise.
1061         * config/fr30/fr30.c: Likewise.
1062         * config/frv/frv.c: Likewise.
1063         * config/h8300/h8300.c: Likewise.
1064         * config/host-darwin.c: Likewise.
1065         * config/i386/i386.c: Likewise.
1066         * config/i386/netware.c: Likewise.
1067         * config/i386/nwld.c: Likewise.
1068         * config/i386/winnt-cxx.c: Likewise.
1069         * config/i386/winnt-stubs.c: Likewise.
1070         * config/i386/winnt.c: Likewise.
1071         * config/ia64/ia64-c.c: Likewise.
1072         * config/ia64/ia64.c: Likewise.
1073         * config/iq2000/iq2000.c: Likewise.
1074         * config/lm32/lm32.c: Likewise.
1075         * config/m32c/m32c-pragma.c: Likewise.
1076         * config/m32c/m32c.c: Likewise.
1077         * config/m32r/m32r.c: Likewise.
1078         * config/m68hc11/m68hc11.c: Likewise.
1079         * config/m68k/m68k.c: Likewise.
1080         * config/mcore/mcore.c: Likewise.
1081         * config/mep/mep-pragma.c: Likewise.
1082         * config/mep/mep.c: Likewise.
1083         * config/mmix/mmix.c: Likewise.
1084         * config/mn10300/mn10300.c: Likewise.
1085         * config/moxie/moxie.c: Likewise.
1086         * config/pa/pa.c: Likewise.
1087         * config/pdp11/pdp11.c: Likewise.
1088         * config/picochip/picochip.c: Likewise.
1089         * config/rs6000/rs6000-c.c: Likewise.
1090         * config/rs6000/rs6000.c: Likewise.
1091         * config/rx/rx.c: Likewise.
1092         * config/s390/s390.c: Likewise.
1093         * config/score/score.c: Likewise.
1094         * config/score/score3.c: Likewise.
1095         * config/score/score7.c: Likewise.
1096         * config/sh/sh.c: Likewise.
1097         * config/sh/symbian-base.c: Likewise.
1098         * config/sh/symbian-c.c: Likewise.
1099         * config/sh/symbian-cxx.c: Likewise.
1100         * config/sol2-c.c: Likewise.
1101         * config/sol2.c: Likewise.
1102         * config/sparc/sparc.c: Likewise.
1103         * config/spu/spu.c: Likewise.
1104         * config/stormy16/stormy16.c: Likewise.
1105         * config/v850/v850-c.c: Likewise.
1106         * config/v850/v850.c: Likewise.
1107         * config/vax/vax.c: Likewise.
1108         * config/vxworks.c: Likewise.
1109         * config/xtensa/xtensa.c: Likewise.
1110         * convert.c: Likewise.
1111         * cse.c: Likewise.
1112         * cselib.c: Likewise.
1113         * dbgcnt.c: Likewise.
1114         * dbxout.c: Likewise.
1115         * ddg.c: Likewise.
1116         * dominance.c: Likewise.
1117         * emit-rtl.c: Likewise.
1118         * explow.c: Likewise.
1119         * expmed.c: Likewise.
1120         * fixed-value.c: Likewise.
1121         * fold-const.c: Likewise.
1122         * fwprop.c: Likewise.
1123         * gcse.c: Likewise.
1124         * ggc-common.c: Likewise.
1125         * ggc-page.c: Likewise.
1126         * ggc-zone.c: Likewise.
1127         * gimple-low.c: Likewise.
1128         * gimplify.c: Likewise.
1129         * graph.c: Likewise.
1130         * haifa-sched.c: Likewise.
1131         * ifcvt.c: Likewise.
1132         * implicit-zee.c: Likewise.
1133         * integrate.c: Likewise.
1134         * ira-build.c: Likewise.
1135         * ira-color.c: Likewise.
1136         * ira-conflicts.c: Likewise.
1137         * ira-costs.c: Likewise.
1138         * ira-lives.c: Likewise.
1139         * ira.c: Likewise.
1140         * lists.c: Likewise.
1141         * loop-doloop.c: Likewise.
1142         * loop-iv.c: Likewise.
1143         * lto-opts.c: Likewise.
1144         * lto-symtab.c: Likewise.
1145         * main.c: Likewise.
1146         * modulo-sched.c: Likewise.
1147         * optabs.c: Likewise.
1148         * params.c: Likewise.
1149         * plugin.c: Likewise.
1150         * postreload-gcse.c: Likewise.
1151         * postreload.c: Likewise.
1152         * predict.c: Likewise.
1153         * profile.c: Likewise.
1154         * real.c: Likewise.
1155         * regcprop.c: Likewise.
1156         * reginfo.c: Likewise.
1157         * regmove.c: Likewise.
1158         * reorg.c: Likewise.
1159         * resource.c: Likewise.
1160         * rtl.c: Likewise.
1161         * rtlanal.c: Likewise.
1162         * sched-deps.c: Likewise.
1163         * sched-ebb.c: Likewise.
1164         * sched-rgn.c: Likewise.
1165         * sdbout.c: Likewise.
1166         * sel-sched-dump.c: Likewise.
1167         * sel-sched-ir.c: Likewise.
1168         * simplify-rtx.c: Likewise.
1169         * stmt.c: Likewise.
1170         * stor-layout.c: Likewise.
1171         * store-motion.c: Likewise.
1172         * targhooks.c: Likewise.
1173         * tree-cfg.c: Likewise.
1174         * tree-cfgcleanup.c: Likewise.
1175         * tree-dump.c: Likewise.
1176         * tree-eh.c: Likewise.
1177         * tree-inline.c: Likewise.
1178         * tree-nomudflap.c: Likewise.
1179         * tree-object-size.c: Likewise.
1180         * tree-optimize.c: Likewise.
1181         * tree-outof-ssa.c: Likewise.
1182         * tree-phinodes.c: Likewise.
1183         * tree-profile.c: Likewise.
1184         * tree-ssa-ccp.c: Likewise.
1185         * tree-ssa-coalesce.c: Likewise.
1186         * tree-ssa-live.c: Likewise.
1187         * tree-ssa-loop-niter.c: Likewise.
1188         * tree-ssa-loop-prefetch.c: Likewise.
1189         * tree-ssa-loop.c: Likewise.
1190         * tree-ssa-structalias.c: Likewise.
1191         * tree-ssa-uninit.c: Likewise.
1192         * tree-ssa.c: Likewise.
1193         * tree-vect-data-refs.c: Likewise.
1194         * tree-vect-loop-manip.c: Likewise.
1195         * tree-vect-loop.c: Likewise.
1196         * tree-vect-patterns.c: Likewise.
1197         * tree-vect-stmts.c: Likewise.
1198         * tree-vrp.c: Likewise.
1199         * varasm.c: Likewise.
1200         * vec.c: Likewise.
1201         * web.c: Likewise.
1202         * xcoffout.c: Likewise.
1203
1204 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
1205
1206         * gengtype.c (write_field_root): New function.
1207         (write_root): Use it.
1208
1209 2010-07-07  Wei Guozhi  <carrot@google.com>
1210
1211         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1212         of lowest bits to lshift/compare): Add a missing line.
1213
1214 2010-07-07  Wei Guozhi  <carrot@google.com>
1215
1216         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1217         of lowest bits to lshift/compare): New.
1218
1219 2010-07-07  Tom Tromey  <tromey@redhat.com>
1220
1221         * doc/tm.texi: Update.
1222         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1223         Add @hook.
1224         * target.def (want_debug_pub_sections): New hook.
1225         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1226         * dwarf2out.c (add_pubname_string): Check
1227         targetm.want_debug_pub_sections.
1228         (add_pubname): Likewise.
1229         (add_pubtype): Likewise.
1230
1231 2010-07-07  Jie Zhang  <jie@codesourcery.com>
1232
1233         * genautomata.c (output_automata_list_min_issue_delay_code):
1234         Correctly decompress min_issue_delay.
1235
1236 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1237
1238         PR rtl-optimization/44404
1239         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1240         possible, use reg_overlap_mentioned_p instead.
1241
1242 2010-07-07  Duncan Sands  <baldrick@free.fr>
1243
1244         PR middle-end/41355
1245         * tree.c (build_function_type_skip_args): Copy the original type using
1246         build_distinct_type_copy rather than copy_node.
1247
1248 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1249
1250         PR target/44850
1251         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1252         revision 161876.
1253         (ix86_expand_prologue): Likewise.
1254         (ix86_handle_fndecl_attribute): Likewise.
1255         (ix86_asm_declare_function_name): Likewise.
1256         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1257         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1258         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1259         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1260         * doc/extend.texi: Likewise.
1261
1262 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1263
1264         PR target/44844
1265         * config/i386/i386.md (rdrand<mode>): Changed to expand to
1266         retry if the carry flag isn't valid.
1267         (rdrand<mode>_1): New.
1268
1269 2010-07-07  Richard Guenther  <rguenther@suse.de>
1270
1271         PR middle-end/44790
1272         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1273         for expanding the constant offset for MEM_REFs.
1274
1275 2010-07-07  Richard Guenther  <rguenther@suse.de>
1276
1277         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1278         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
1279         * gimple.h (is_gimple_operand): Remove.
1280         * gimple.c (is_gimple_operand): Likewise.
1281         (walk_gimple_op): Fix wi->val_only setting for calls.
1282         * tree-cfg.c (verify_gimple_call): Fix argument validation.
1283         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1284         invalid gimple calls.
1285
1286 2010-07-06  Jan Hubicka  <jh@suse.cz>
1287
1288         * lto-cgraph.c (output_cgraph): Add missing declaration.
1289
1290 2010-07-06  Jan Hubicka  <jh@suse.cz>
1291
1292         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1293         partition.
1294
1295 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
1296
1297         * doc/gimple.texi (GIMPLE_DEBUG): Document.
1298         * doc/rtl.texi (Debug Information): New node.
1299         (NOTE_INSN_VAR_LOCATION): Document.
1300         (debug_insn): Likewise.
1301         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1302
1303 2010-07-07  Jan Hubicka  <jh@suse.cz>
1304
1305         With parts by Richard Guenther.
1306
1307         PR middle-end/44813
1308         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1309         for functions passed by reference.
1310         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1311         in memory when passed by reference.
1312         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1313         beggining.
1314         * ipa-split.c (split_function): Cleanup way return value is passed;
1315         handle SSA DECL_BY_REFERENCE retvals.
1316         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1317         DECL_BY_REFERENCE is set.
1318         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1319         find_what_p_points_to): Handle RESULT_DECL.
1320         * tree-inline.c (declare_return_variable): Get new entry_block argument;
1321         when passing by reference ensure that RESULT_DECL is gimple_val.
1322         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1323         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1324
1325 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1326
1327         PR rtl-optimization/44787
1328         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1329         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1330
1331 2010-07-06  Jan Hubicka  <jh@suse.cz>
1332
1333         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1334         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1335         with body can prevail.
1336         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1337         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1338         * cgraph.c (cgraph_get_node_or_alias): New function.
1339         * cgraph.h (cgraph_get_node_or_alias): Declare.
1340
1341 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
1342
1343         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1344         support.
1345         (ix86_expand_prologue): Likewise.
1346         (ix86_handle_fndecl_attribute): Likewise.
1347         (ix86_asm_declare_function_name): New function for
1348         ASM_DECLARE_FUNCTION_NAME.
1349         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
1350         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
1351         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
1352         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
1353         * doc/extend.texi: Adjust documentation about ms_hook_prologue
1354         attribute.
1355
1356 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
1357
1358         * config/i386/i386.md (immediate_operand): New mode attribute.
1359
1360         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
1361         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
1362         using P mode iterator.
1363         (pro_epilogue_adjust_stack_di_2): Rename from
1364         pro_epilogue_adjust_stack_rex64_2.
1365
1366         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
1367
1368 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
1369
1370         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
1371         through gen_mov_insv_1 function pointer.
1372         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
1373         gen_truncxf<mode>2 through gen_truncxf function pointer.
1374         (remainder<mode>3): Ditto.
1375         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
1376         (allocate_stack): Call gen_allocate_stack_worker_64 or
1377         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
1378         function pointer.
1379         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
1380         function pointer.
1381
1382 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
1383
1384         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
1385         operand constraint instead of <r><i>m.
1386
1387 2010-07-06  Richard Guenther  <rguenther@suse.de>
1388
1389         PR middle-end/44828
1390         * convert.c (convert_to_integer): Watch out for overflowing
1391         MULT_EXPR as well.
1392
1393 2010-07-05  Jan Hubicka  <jh@suse.cz>
1394
1395         * lto-streamer.c (write_symbol_vec): Rename to ...
1396         (write_symbol) ... this one; write only symbol given and when
1397         present in cache. Sanity check that what is defined is present
1398         in cgraph/varpool with body/finalized decl.
1399         (write_symbols_of_kind): Remove.
1400         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
1401         pairs to produce symtab.
1402         (produce_asm_for_decls): Update call of produce_symtab; don't do so
1403         when doing WPA streaming.
1404
1405 2010-07-05  Jan Hubicka  <jh@suse.cz>
1406
1407         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
1408         function is still available to fold into.
1409
1410 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1411
1412         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
1413         * function.h (struct_function): Change type of local_decls field
1414         to a VEC.
1415         (add_local_decl): New function.
1416         (FOR_EACH_LOCAL_DECL): New macro.
1417         * cfgexpand.c (init_vars_expansion): Adjust for new type of
1418         cfun->local_decls.
1419         (estimated_stack_frame_size): Likewise.
1420         (expand_used_vars): Likewise.
1421         * cgraphbuild.c (build_cgraph_edges): Likewise.
1422         * function.c (instantiate_decls_1): Likewise.
1423         * ipa-struct-reorg.c (build_data_structure): Likewise.
1424         * ipa-type-escape.c (analyze_function): Likewise.
1425         * lto-streamer-in.c (input_function): Likewise.
1426         * lto-streamer-out.c (output_function): Likewise.
1427         * tree-ssa-live.c (remove_unused_locals): Likewise.
1428         * tree.c (free_lang_data_in_decl): Likewise.
1429         (find_decls_types_in_node): Likewise.
1430         * omp-low.c (remove_exit_barrier): Likewise.
1431         (expand_omp_taskreg): Likewise.
1432         (list2chain): Rename to...
1433         (vec2chain): ...this.  Adjust.
1434         * cgraphunit.c (assemble_thunk): Call add_local_decl.
1435         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1436         * gimple-low.c (record_vars_into): Likewise.
1437         * tree-inline.c (remap_decls): Likewise.
1438         (declare_return_variable): Likewise.
1439         (declare_inline_vars): Likewise.
1440         (copy_forbidden): Adjust for new type of cfun->local_decls.
1441         (add_local_variables): New function.
1442         (expand_call_inline): Call it.
1443         (tree_function_versioning): Likewise.
1444
1445 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1446
1447         AVX Programming Reference (June, 2010)
1448         * config/i386/cpuid.h (bit_F16C): New.
1449         (bit_RDRND): Likewise.
1450         (bit_FSGSBASE): Likewise.
1451
1452         * config/i386/i386-builtin-types.def: Add
1453         "DEF_FUNCTION_TYPE (UINT16)", function types for
1454         float16 <-> float conversions and
1455         "DEF_FUNCTION_TYPE (VOID, UINT64)".
1456
1457         * config/i386/i386-c.c (ix86_target_macros_internal): Support
1458         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1459         OPTION_MASK_ISA_F16C.
1460
1461         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1462         (OPTION_MASK_ISA_RDRND_SET): Likewise.
1463         (OPTION_MASK_ISA_F16C_SET): Likewise.
1464         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1465         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1466         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1467         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1468         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1469         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1470         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1471         (override_options): Handle them.
1472         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1473         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1474         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1475         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1476         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1477         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1478         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1479         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1480         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1481         (bdesc_args): Likewise.
1482         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1483         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1484         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
1485         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
1486         Handle non-memory store.
1487
1488         * config/i386/i386.h (TARGET_FSGSBASE): New.
1489         (TARGET_RDRND): Likewise.
1490         (TARGET_F12C): Likewise.
1491
1492         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
1493         (UNSPEC_VCVTPS2PH): Likewise.
1494         (UNSPECV_RDFSBASE): Likewise.
1495         (UNSPECV_RDGSBASE): Likewise.
1496         (UNSPECV_WRFSBASE): Likewise.
1497         (UNSPECV_WRGSBASE): Likewise.
1498         (UNSPECV_RDRAND): Likewise.
1499         (rdfsbase<mode>): Likewise.
1500         (rdgsbase<mode>): Likewise.
1501         (wrfsbase<mode>): Likewise.
1502         (wrgsbase<mode>): Likewise.
1503         (rdrand<mode>): Likewise.
1504
1505         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
1506
1507         * config/i386/immintrin.h (_rdrand_u16): New.
1508         (_rdrand_u32): Likewise.
1509         (_readfsbase_u32): Likewise.
1510         (_readfsbase_u64): Likewise.
1511         (_readgsbase_u32): Likewise.
1512         (_readgsbase_u64): Likewise.
1513         (_writefsbase_u32): Likewise.
1514         (_writefsbase_u64): Likewise.
1515         (_writegsbase_u32): Likewise.
1516         (_writegsbase_u64): Likewise.
1517         (_rdrand_u64): Likewise.
1518         (_cvtsh_ss): Likewise.
1519         (_mm_cvtph_ps): Likewise.
1520         (_mm256_cvtph_ps): Likewise.
1521         (_cvtss_sh): Likewise.
1522         (_mm_cvtps_ph): Likewise.
1523         (_mm256_cvtps_ph): Likewise.
1524
1525         * config/i386/sse.md (vcvtph2ps): New.
1526         (*vcvtph2ps_load): Likewise.
1527         (vcvtph2ps256): Likewise.
1528         (vcvtps2ph): Likewise.
1529         (*vcvtps2ph): Likewise.
1530         (*vcvtps2ph_store): Likewise.
1531         (vcvtps2ph256): Likewise.
1532
1533         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
1534
1535         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
1536
1537 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
1538
1539         PR bootstrap/44512
1540         * genenums.c (main): Output include of insn-constants.h
1541         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
1542
1543 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
1544
1545         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
1546         (override_options): Initialize it.
1547         (ix86_expand_prologue): Use it.
1548
1549 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
1550
1551         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
1552
1553 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
1554
1555         * double-int.h (fit_double_type): Remove declaration.
1556         * double-int.c (fit_double_type): Remove function.
1557         * tree.h (int_fits_type_p): Adjust prototype.
1558         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
1559         instead of fit_double_type.
1560         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
1561         instead of fit_double_type and build_int_cst_wide.
1562         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
1563         instead of fit_double_type and build_int_cst_wide.
1564         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
1565         of fit_double_type.
1566
1567 2010-07-05  Jan Hubicka  <jh@suse.cz>
1568
1569         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
1570         in_other_partition.
1571         * lto-cgraph.c (referenced_from_other_partition_p,
1572         reachable_from_other_partition_p): Use in_other_partition flags.
1573         (output_node, output_varpool_node): COMDAT nodes always have private
1574         copies and thus are never used from other partition.
1575
1576 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
1577
1578         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1579         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
1580         * config/ia64/ia64.c Include reload.h.
1581         (ia64_memory_move_cost): New function.
1582         (TARGET_MEMORY_MOVE_COST): Define.
1583         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
1584         memory_move_cost.
1585
1586 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
1587
1588         PR middle-end/42505
1589         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
1590         comments about cost model.
1591         (try_add_cand_for):  Add second strategy for choosing initial set
1592         based on original IVs, controlled by ORIGINALP argument.
1593         (get_initial_solution): Add ORIGINALP argument.
1594         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
1595         (find_optimal_iv_set): Try two different strategies for choosing
1596         the IV set, and return the one with lower cost.
1597
1598 2010-07-05  Richard Guenther  <rguenther@suse.de>
1599
1600         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
1601
1602 2010-07-05  Richard Guenther  <rguenther@suse.de>
1603
1604         * tree.c (reference_alias_ptr_type): New function.
1605         * tree.h (reference_alias_ptr_type): Declare.
1606         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
1607         allow non-TARGET_MEM_REF new refs.
1608         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
1609         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
1610         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
1611         (create_mem_ref): Get alias pointer type.  Adjust calls to
1612         create_mem_ref_raw.
1613         (maybe_fold_tmr): Likewise.
1614         * tree-flow.h (create_mem_ref): Adjust prototype.
1615
1616 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
1617
1618         PR c++/44808
1619         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
1620         *from_p is VAR_DECL.
1621
1622 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1623
1624         * tree.h (build_call_list): Remove.
1625         * tree.c (build_call_list): Remove.
1626
1627 2010-07-05  Richard Guenther  <rguenther@suse.de>
1628
1629         * double-int.h (double_int_sub): Declare.
1630         * double-int.c (double_int_sub): New function.
1631         * dwarf2out.c (field_byte_offset): Use it.
1632         * fixed-value.c (do_fixed_add): Likewise.
1633         (do_fixed_multiply): Likewise.
1634         (do_fixed_divide): Likewise.
1635         * tree-predcom.c (add_ref_to_chain): Likewise.
1636         (determine_roots_comp): Likewise.
1637         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
1638
1639 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1640
1641         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
1642         implementations.
1643
1644 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
1645
1646         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
1647         * arm-modes.def (CC_NOTB): Don't define.
1648         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
1649         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
1650         (LTUGEU): New code_iterator.
1651         (cnb, optab): New corresponding code_attrs.
1652         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
1653         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
1654         using LTUGEU.
1655         (addsi3_carryin_shift_<optab>): Likewise.
1656         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
1657         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
1658         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
1659         (subsi3_compare): Renamed from subsi3_compare0_c.
1660         Change CC_NOTB to CC.
1661         (arm_subsi3_insn): Allow constants for operand 0.
1662         (compare_scc peephole for eq case): New.
1663         (compare_scc splitters): Change CC_NOTB to CC.
1664
1665 2010-07-05  Richard Guenther  <rguenther@suse.de>
1666
1667         * tree-ssa-loop-im.c (for_each_index): Do not handle
1668         ALIGN_INDIRECT_REF.
1669         (gen_lsm_tmp_name): Likewise.
1670         * tree-dump.c (dequeue_and_dump): Likewise.
1671         * tree-pretty-print.c (dump_generic_node): Likewise.
1672         (op_code_prio): Likewise.
1673         (op_symbol_code): Likewise.
1674         * tree.c (staticp): Likewise.
1675         (build1_stat): Likewise.
1676         * tree.h (INDIRECT_REF_P): Likewise.
1677         * fold-const.c (maybe_lvalue_p): Likewise.
1678         (operand_equal_p): Likewise.
1679         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1680         (ao_ref_init_from_vn_reference): Likewise.
1681         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1682         (find_interesting_uses_address): Likewise.
1683         * dwarf2out.c (loc_list_from_tree): Likewise.
1684         * gimplify.c (gimplify_expr): Likewise.
1685         * tree-eh.c (tree_could_trap_p): Likewise.
1686         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1687         * cfgexpand.c (expand_debug_expr): Likewise.
1688         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1689         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1690         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1691         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
1692         * tree-ssa-operands.c (get_expr_operands): Likewise.
1693         * expr.c (safe_from_p): Likewise.
1694         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
1695         * tree-vect-data-refs.c (vect_setup_realignment): Build
1696         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
1697         * tree-vect-stmts.c (vectorizable_load): Likewise.
1698         * tree.def (ALIGN_INDIRECT_REF): Remove.
1699
1700 2010-07-05  Richard Guenther  <rguenther@suse.de>
1701
1702         PR tree-optimization/44784
1703         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
1704         for inserted stmts.
1705         (find_or_generate_expression): Fix SCCVN insertion check.
1706
1707 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
1708
1709         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
1710         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1711         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
1712         directives.
1713
1714 2010-07-05  Ira Rosen  <irar@il.ibm.com>
1715
1716         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
1717         statements that are not vectorized.
1718         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1719         in INSIDE_COST.
1720
1721 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
1722
1723         PR bootstrap/44820
1724         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1725
1726 2010-07-05  Richard Guenther  <rguenther@suse.de>
1727
1728         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1729         RESULT_DECLs properly.
1730
1731 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1732
1733         PR rtl-optimization/44695
1734         * config/i386/i386.md (extract_code): Removed.
1735         (<u>divmodqi4): Likewise.
1736         (divmodqi4): New.
1737         (udivmodqi4): Likewise.
1738         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1739         (udivmodhiqi3): Likewise.
1740
1741 2010-07-04  Jan Hubicka  <jh@suse.cz>
1742
1743         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1744
1745 2010-07-04  Jan Hubicka  <jh@suse.cz>
1746
1747         * cgraphunit.c (init_cgraph): Only initialize dump file if it
1748         is not already initialized.
1749
1750 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1751
1752         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1753         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1754         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1755         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1756         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1757         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1758         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
1759         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
1760         (sync_new_nand_optab): Redefine as macros.
1761         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
1762         Delete.
1763         (direct_optab_index): New enum.
1764         (direct_optab_d): New structure.
1765         (direct_optab): New typedef.
1766         (direct_optab_table): Declare.
1767         (direct_optab_handler, set_direct_optab_handler): New functions.
1768         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
1769         (sync_lock_release_optab): New macros.
1770         * optabs.c (direct_optab_table): New variable.
1771         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
1772         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
1773         cmpstr_optab and cmpstrn_optab.
1774         (emit_conditional_move): Likewise for movcc_optab.
1775         (can_conditionally_move_p): Likewise for movcc_gen_code.
1776         (init_insn_codes): Clear direct_optab_table.
1777         (init_optabs): Don't initialize the new "direct optabs" here.
1778         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
1779         vcond_gen_code.
1780         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
1781         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
1782         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
1783         (expand_sync_operation): Likewise other sync_*_optabs.
1784         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
1785         to sync_compare_and_swap_optab.
1786         (expand_sync_lock_test_and_set): Use direct_optab_handler for
1787         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
1788         to the names of both.
1789         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
1790         cmpstr_optab and cmpstrn_optab.
1791         (expand_builtin_lock_release): Likewise sync_lock_release.
1792         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
1793         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
1794         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
1795         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
1796         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
1797         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
1798         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
1799         (sync_lock_test_and_set, sync_lock_release): Delete.
1800         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
1801         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
1802         * genopinit.c (optabs): Use set_direct_optab_handler for the new
1803         macro optabs.
1804         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
1805         the "optab" local variable.  Use direct_optab_handler for optab and
1806         sync_compare_and_swap_optab.
1807         * reload1.c (reload_in_optab, reload_out_optab): Delete.
1808         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
1809         reload_in_optab and reload_out_optab.
1810         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1811         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
1812         * config/pa/pa.c (pa_secondary_reload): Likewise.
1813         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
1814         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
1815         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
1816         (VMSupportsCS8_builtin): Likewise.
1817
1818 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1819
1820         * optabs.h (optab_handlers): Change type of insn_code to int.
1821         (optab_handler, set_optab_handler, convert_optab_handler)
1822         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1823         CODE_FOR_nothing".
1824         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1825         (init_insn_codes): Zero both the above arrays.
1826         (init_optabs): Never call init_insn_codes first time around.
1827
1828 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1829
1830         * optabs.h (optab_handler, convert_optab_handler): Turn into
1831         inline functions that return an insn code.
1832         (set_optab_handler, set_convert_optab_handler): New functions.
1833         * builtins.c: Replace optab_handler(X)->insn_code with
1834         optab_handler or set_optab_handler thoughout.  Likewise
1835         convert_optab_handler(X)->insn_code with convert_optab_handler
1836         and set_convert_optab_handler.
1837         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1838         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1839         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1840         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1841         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1842         config/spu/spu.c: Likewise.
1843
1844 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1845
1846         PR target/44531
1847         * config.gcc (sh*-*-*): Use regular expressions instead of
1848         the 'i' modifier for sed substitutions.
1849
1850 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1851
1852         * gimple.c (gimple_body): Comments added.
1853
1854 2010-07-04  Richard Guenther  <rguenther@suse.de>
1855
1856         PR middle-end/44809
1857         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1858         of an INDIRECT_REF.
1859
1860 2010-07-04  Richard Guenther  <rguenther@suse.de>
1861
1862         PR tree-optimization/44479
1863         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1864         extra SSA name copy statements which preserves points-to
1865         information.
1866         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1867         Copy points-to information for all pointers.  Properly handle
1868         MEM_REFs.
1869         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
1870         copy statements.
1871         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1872         dependency.
1873
1874 2010-07-04  Richard Guenther  <rguenther@suse.de>
1875
1876         PR middle-end/44785
1877         * tree-inline.c (initialize_inlined_parameters): Do not
1878         re-use pointer-map slot over remap_type call.
1879
1880 2010-07-04  Richard Guenther  <rguenther@suse.de>
1881
1882         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1883
1884 2010-07-04  Richard Guenther  <rguenther@suse.de>
1885
1886         PR tree-optimization/44656
1887         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1888         again after value-replacing in the defintions lhs.
1889
1890 2010-07-04  Ira Rosen  <irar@il.ibm.com>
1891             Revital Eres  <eres@il.ibm.com>
1892
1893         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1894         Document new arguments.
1895         * doc/tm.texi: Regenerate.
1896         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1897         Handle unaligned store.
1898         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1899         * target.def (builtin_vectorization_cost): Add new arguments.
1900         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1901         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1902         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1903         (vect_vfa_segment_size): Fix indentation.
1904         * tree-vectorizer.h (struct _vect_peel_info): New.
1905         (struct _vect_peel_extended_info): New.
1906         (struct _loop_vec_info): Add new field for peeling hash table and a
1907         macro for its access.
1908         (VECT_MAX_COST): Define.
1909         (vect_get_load_cost): Declare.
1910         (vect_get_store_cost, vect_get_known_peeling_cost,
1911         vect_get_single_scalar_iteraion_cost): Likewise.
1912         (vect_supportable_dr_alignment): Add new argument.
1913         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1914         field.
1915         (destroy_loop_vec_info): Free peeling hash table.
1916         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1917         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1918         vect_analyze_slp. Fix indentation.
1919         (vect_get_single_scalar_iteraion_cost): New function.
1920         (vect_get_known_peeling_cost): Likewise.
1921         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1922         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1923         statement. Move outside cost calculation inside unknown peeling case.
1924         Call vect_get_known_peeling_cost for known amount of peeling.
1925         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1926         reference to the print message of forced alignment.
1927         (vect_verify_datarefs_alignment): Update call to
1928         vect_supportable_dr_alignment.
1929         (vect_get_data_access_cost): New function.
1930         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1931         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1932         vect_peeling_hash_choose_best_peeling): Likewise.
1933         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1934         to store all the accesses in the loop and find best possible access to
1935         align using peeling for known alignment case. For unknown alignment
1936         check if stores are preferred or if peeling is worthy.
1937         (vect_find_same_alignment_drs): Analyze pairs of loads too.
1938         (vect_supportable_dr_alignment): Add new argument and check aligned
1939         accesses according to it.
1940         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1941         (cost_for_stmt): Call vect_get_stmt_cost.
1942         (vect_model_simple_cost): Likewise.
1943         (vect_model_store_cost): Call vect_get_stmt_cost. Call
1944         vect_get_store_cost to calculate the cost of the statement.
1945         (vect_get_store_cost): New function.
1946         (vect_model_load_cost): Call vect_get_stmt_cost. Call
1947         vect_get_load_cost to calculate the cost of the statement.
1948         (vect_get_load_cost): New function.
1949         (vectorizable_store): Update call to vect_supportable_dr_alignment.
1950         (vectorizable_load): Likewise.
1951         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1952         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1953         arguments. Handle unaligned store.
1954         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1955         (rs6000_builtin_support_vector_misalignment): Return true for word and
1956         double word alignments for VSX.
1957         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1958         vect_supportable_dr_alignment and builtin_vectorization_cost.
1959
1960 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1961
1962         PR target/44597
1963         * config/pa/predicates.md (prefetch_cc_operand): Remove.
1964         (prefetch_nocc_operand): Likewise.
1965         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1966         (prefetch_20): New insn.
1967         (prefetch_cc): Remove.
1968         (prefetch_nocc): Likewise.
1969
1970 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1971
1972         * expr.c (vector_mode_valid_p): Move to c-common.c.
1973         * expr.h (vector_mode_valid_p): Do not declare here.
1974         * system.h: Poison GCC_EXPR_H in front-ends.
1975         * Makefile.in: Update dependencies.
1976
1977 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1978
1979         PR target/44705
1980         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1981
1982 2010-07-03  Jan Hubicka  <jh@suse.cz>
1983
1984         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1985         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1986         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1987         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1988         Likewise.
1989
1990         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1991         Update timevars.V
1992         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1993         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1994         TV_IPA_LTO_DECL_OUT): New.
1995         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1996
1997 2010-07-03  Jan Hubicka  <jh@suse.cz>
1998
1999         * ipa-inline.c (update_edge_key): Break out from ...
2000         update_callers_keys): ... here;
2001         (update_callee_keys): Update only the edges from caller to callee.
2002         (update_all_calle_keys): Do what update_calle_keys did.
2003         (decide_inlining_of_small_functions): Avoid recomputing of all
2004         callees when badness increase.
2005
2006 2010-07-03  Jie Zhang  <jie@codesourcery.com>
2007
2008         * config/arm/arm.c (arm_attr_length_move_neon): New.
2009         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
2010         * config/arm/neon.md (define_mode_attr V_slen): Remove.
2011         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
2012         to compute length attribute.
2013
2014 2010-07-03  Jie Zhang  <jie@codesourcery.com>
2015
2016         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
2017         as predicate for operand 1 and remove its constraint.
2018         * config/arm/predicates.md (vfp_register_operand): New.
2019         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
2020         (*push_fp_multi): Likewise.
2021
2022 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2023
2024         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
2025
2026 2010-07-03  Jan Hubicka  <jh@suse.cz>
2027
2028         * config/i386/i386.c (override_options): Revert accidental commit.
2029
2030 2010-07-02  Le-Chun Wu  <lcwu@google.com>
2031
2032         PR c++/44128
2033         * doc/invoke.texi: Update documentation of -Wshadow.
2034
2035 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
2036             Julian Brown  <julian@codesourcery.com>
2037             Sandra Loosemore <sandra@codesourcery.com>
2038
2039         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
2040         comparisons.  Adjust to take both operands.
2041         (arm_select_cc_mode): Handle DImode comparisons.
2042         (arm_gen_compare_reg): Generate a scratch register for DImode
2043         comparisons which require one.  Use xor for Thumb equality checks.
2044         (arm_const_double_by_immediates): New.
2045         (arm_print_operand): Allow 'Q' and 'R' for constants.
2046         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
2047         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
2048         arm_canonicalize_comparison.
2049         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
2050         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2051         prototype.
2052         (arm_const_double_by_immediates): Declare.
2053         * config/arm/constraints.md (Di): New constraint.
2054         * config/arm/predicates.md (arm_immediate_di_operand)
2055         (arm_di_operand, cmpdi_operand): New.
2056         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
2057         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
2058         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
2059         (cstoredi4): Handle non-Cirrus also.
2060
2061 2010-07-02  Julian Brown  <julian@codesourcery.com>
2062             Sandra Loosemore <sandra@codesourcery.com>
2063
2064         PR target/43703
2065         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
2066         (smax<mode>3): Disable for NEON float modes when
2067         flag_unsafe_math_optimizations is false.
2068         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
2069         (*mul<mode>3_neon)
2070         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
2071         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
2072         for NEON float modes when flag_unsafe_math_optimizations is false.
2073         (quad_halves_<code>v4sf): Only enable if
2074         flag_unsafe_math_optimizations is true.
2075         * doc/invoke.texi (ARM Options): Add note about floating point
2076         vectorization requiring -funsafe-math-optimizations.
2077
2078 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2079             Julian Brown  <julian@codesourcery.com>
2080
2081         * config/arm/neon.md (UNSPEC_VABA): Delete.
2082         (UNSPEC_VABAL): Delete.
2083         (UNSPEC_VABS): Delete.
2084         (UNSPEC_VMUL_N): Delete.
2085         (adddi3_neon): New.
2086         (subdi3_neon): New.
2087         (mul<mode>3add<mode>_neon): Make the pattern named.
2088         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
2089         (neon_vadd<mode>): Replace with define_expand, and move the remaining
2090         unspec parts...
2091         (neon_vadd<mode>_unspec): ...to this.
2092         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
2093         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
2094         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
2095         (neon_vaba<mode>): Rewrite in terms of vabd.
2096         (neon_vabal<mode>): Rewrite in terms of vabdl.
2097         (neon_vabs<mode>): Rewrite without unspec.
2098         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
2099         (*arm_subdi3): Likewise.
2100         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
2101         No_op attribute to disable assembly output checks.
2102         * config/arm/arm_neon.h: Regenerated.
2103         * doc/arm-neon-intrinsics.texi: Regenerated.
2104
2105 2010-07-02  Jan Hubicka  <jh@suse.cz>
2106
2107         * ipa-split.c (split_function): For aggregate values, set the return
2108         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
2109         *<retval> = fncall.part ().
2110         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
2111
2112 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2113
2114         * config/arm/neon.md (UNSPEC_VAND): Delete.
2115         (UNSPEC_VBIC): Delete.
2116         (UNSPEC_VCLZ): Delete.
2117         (UNSPEC_VCNT): Delete.
2118         (UNSPEC_VEOR): Delete.
2119         (UNSPEC_VORN): Delete.
2120         (UNSPEC_VORR): Delete.
2121         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
2122         core registers too.
2123         (anddi3_neon): Likewise.
2124         (orndi3_neon): Likewise.
2125         (bicdi3_neon): Likewise.
2126         (xordi3_neon): Likewise.
2127         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
2128         rid of unspec and handle unused operand.
2129         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
2130         * config/arm/predicates.md (imm_for_neon_logic_operand):
2131         Require TARGET_NEON.
2132         (imm_for_neon_inv_logic_operand): Likewise.
2133         * config/arm/arm.md (define_split for logical_binary_operator):
2134         Disable for NEON registers.
2135         (anddi3): Add new define_expand, and rename the insn.  Disable
2136         this insn for NEON, where anddi3_neon now applies.
2137         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2138         (iordi3): As for anddi3.
2139         (xordi3): Likewise.
2140         * config/arm/neon.ml (Vand): Split DImode variants and mark them
2141         as No_op to disable testing for exact instruction match.
2142         (Vorr): Likewise.
2143         (Veor): Likewise.
2144         (Vbic): Likewise.
2145         (Vorn): Likewise.
2146         * config/arm/arm_neon.h: Regenerated.
2147         * doc/arm-neon-intrinsics.texi: Regenerated.
2148
2149 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2150
2151         * expr.h (emit_stack_probe): Declare.
2152         * explow.c (emit_stack_probe): Make global.
2153         (anti_adjust_stack_and_probe): Fix comments.
2154         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2155         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2156         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2157         * config/sparc/sparc.c: Include except.h.
2158         (sparc_emit_probe_stack_range): New function.
2159         (output_probe_stack_range): Likewise.
2160         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2161         built-in stack checking is enabled.
2162         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2163         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2164         (probe_stack_range): New insn.
2165
2166 2010-07-02  Richard Guenther  <rguenther@suse.de>
2167
2168         PR target/43958
2169         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2170         for argument alignment.
2171
2172 2010-07-02  Jan Hubicka  <jh@suse.cz>
2173
2174         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2175         walk backwards from entry_bb to check only those basic block of header
2176         that might lead to execution of split part.
2177         (consider_split) ... here.
2178         (find_return_bb): Allow assignment in return BB.
2179         (find_retval): New.
2180         (split_function): Fix name of cloned function; take care of updating
2181         return value in return_bb containing move.
2182
2183 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
2184
2185         PR target/44771
2186         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2187         used variable insn.
2188
2189 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2190
2191         * implicit-zee.c (combine_reaching_defs): Fix long lines.
2192         (is_set_with_extension_DI): Delete.
2193         (struct zero_extend_info): New structure.
2194         (add_removable_zero_extend): New function.
2195         (find_removable_zero_extends): Use note_stores to find SETs.
2196         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2197
2198 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
2199
2200         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2201         is_miss_rate_acceptable. Pull total_positions computation
2202         out of the loops.  Early return if miss_positions exceeds
2203         the acceptable threshold.
2204         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2205         is_miss_rate_acceptable after renaming of compute_miss_rate.
2206
2207 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
2208
2209         PR middle-end/44576
2210         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2211         of 1000) for miss rate if the address diference is greater than or
2212         equal to the cache line size (the two reference will never hit the
2213         same cache line).
2214
2215 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
2216
2217         PR target/42835
2218         * config/arm/arm-modes.def (CC_NOTB): New mode.
2219         * config/arm/arm.c (get_arm_condition_code): Handle it.
2220         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2221         * config/arm/arm.md (subsi3_compare0_c): New pattern.
2222         (compare_scc): Now a define_and_split.  Add a number of extra
2223         splitters before it.
2224
2225         PR target/42172
2226         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2227         and ZERO_EXTEND.
2228         (arm_rtx_costs_1): Likewise.
2229         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2230         * config/arm/arm.md (is_arch6): New attribute.
2231         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2232         extendqisi2): Tighten the code somewhat, avoiding invalid
2233         RTL to occur in the expander patterns.
2234         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2235         (thumb1_zero_extendhisi2_v6): Delete.
2236         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2237         (thumb1_extendhisi2_v6): Delete.
2238         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2239         (thumb1_extendqisi2_v6): Delete.
2240         (zero_extendhisi2 for register input splitter): New.
2241         (zero_extendqisi2 for register input splitter): New.
2242         (thumb1_extendhisi2 for register input splitter): New.
2243         (extendhisi2 for register input splitter): New.
2244         (extendqisi2 for register input splitter): New.
2245         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2246         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2247         and add support for a register alternative requiring a split.
2248         (thumb1_zero_extendqisi2): Likewise.
2249         (arm_zero_extendqisi2): Likewise.
2250         (arm_extendhisi2): Likewise.
2251         (arm_extendqisi2): Likewise.
2252
2253 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2254
2255         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2256         instead of an unspec.
2257         (neon_expand_vector_init): Likewise.
2258         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2259         (UNSPEC_VDUP_LANE): Delete.
2260         (UNSPEC VDUP_N): Delete.
2261         (UNSPEC_VGET_HIGH): Delete.
2262         (UNSPEC_VGET_LANE): Delete.
2263         (UNSPEC_VGET_LOW): Delete.
2264         (UNSPEC_VMVN): Delete.
2265         (UNSPEC_VSET_LANE): Delete.
2266         (V_double_vector_mode): New.
2267         (vec_set<mode>_internal): Make code emitted match that for the
2268         corresponding intrinsics.
2269         (vec_setv2di_internal): Likewise.
2270         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2271         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2272         (neon_vset_lane<mode>): Combine double and quad patterns and
2273         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2274         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2275         (neon_vdup_n<mode>): Rewrite RTL without unspec.
2276         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2277         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2278         with neon_vdup_lanev2di, adjusting the pattern from the latter
2279         to be predicable for consistency.
2280         (neon_vdup_lane<mode>_internal): New.
2281         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2282         to avoid using an unspec.
2283         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2284         (neon_vdup_lanev2di): Turn into a define_expand.
2285         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2286         (neon_vget_high<mode>): Replace with....
2287         (neon_vget_highv16qi): New pattern using canonical RTL.
2288         (neon_vget_highv8hi): Likewise.
2289         (neon_vget_highv4si): Likewise.
2290         (neon_vget_highv4sf): Likewise.
2291         (neon_vget_highv2di): Likewise.
2292         (neon_vget_low<mode>): Replace with....
2293         (neon_vget_lowv16qi): New pattern using canonical RTL.
2294         (neon_vget_lowv8hi): Likewise.
2295         (neon_vget_lowv4si): Likewise.
2296         (neon_vget_lowv4sf): Likewise.
2297         (neon_vget_lowv2di): Likewise.
2298
2299         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2300         test for this emitting vmov.
2301         (Vset_lane): Likewise.
2302         (Vdup_n): Likewise.
2303         (Vmov_n): Likewise.
2304
2305         * doc/arm-neon-intrinsics.texi: Regenerated.
2306
2307 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2308
2309         * config/arm/neon.md (vec_extractv2di): Correct error in register
2310         numbering to reconcile with neon_vget_lanev2di.
2311
2312 2010-07-02  Richard Guenther  <rguenther@suse.de>
2313
2314         * tree-ssa-structalias.c (pt_solution_set_var): New function.
2315         * tree-ssa-alias.h (pt_solution_set_var): Declare.
2316         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2317         points-to information.
2318
2319 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
2320
2321         * config/s390/s390.c (override_options): Adopt prefetching
2322         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2323
2324 2010-07-02  Jan Hubicka  <jh@suse.cz>
2325
2326         * df-problems.c (df_kill_notes): Do not collect dead  notes.
2327         (df_set_note): Just call add_reg_note.
2328         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2329         df_create_unused_note): Do not deal with lists of old notes.
2330         (df_note_bb_compute): Likewise.
2331
2332 2010-07-02  Richard Guenther  <rguenther@suse.de>
2333
2334         * tree-ssa-structalias.c (find_func_aliases): Handle
2335         pointer alignment via BIT_AND_EXPR.
2336         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2337
2338 2010-07-02  Richard Guenther  <rguenther@suse.de>
2339
2340         * tree-data-ref.c (initialize_data_dependence_relation): Handle
2341         mismatching number of dimensions properly.
2342
2343 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2344
2345         PR target/44707
2346         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2347         (lo_sum (high ...) ...) patterns generated by earlier passes.
2348
2349 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2350
2351         * doc/install.texi (Prerequisites): Document Perl requirement on
2352         Solaris 2.
2353         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
2354
2355 2010-07-02  Richard Guenther  <rguenther@suse.de>
2356
2357         PR middle-end/44777
2358         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2359
2360 2010-07-02  Jan Hubicka  <jh@suse.cz>
2361
2362         PR middle-end/44706
2363         * predict.c (predict_paths_for_bb): Handle case when control dependence
2364         BB has only abnormal edges.
2365
2366 2010-07-02  Richard Guenther  <rguenther@suse.de>
2367
2368         PR tree-optimization/44748
2369         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
2370         the embedded conversion in MEM_REFs.
2371
2372 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
2373
2374         * reload.c: Include toplev.h.
2375         * recog.c:  Likewise.
2376         * Makefile.in: Adjust dependencies.
2377
2378 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
2379
2380         PR debug/44694
2381         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
2382         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
2383
2384 2010-07-01  Richard Guenther  <rguenther@suse.de>
2385
2386         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
2387         types for offsets.
2388
2389 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
2390
2391         PR target/44732
2392         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
2393         Fix argument types.
2394
2395 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
2396
2397         PR target/44727
2398         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2399         Make sure operand 0 dies.
2400
2401 2010-07-01  Richard Guenther  <rguenther@suse.de>
2402
2403         PR middle-end/42834
2404         PR middle-end/44468
2405         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
2406         * doc/generic.texi (References to storage): Document MEM_REF.
2407         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
2408         (print_call_name): Likewise.
2409         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
2410         (build_simple_mem_ref_loc): New function.
2411         (mem_ref_offset): Likewise.
2412         * tree.h (build_simple_mem_ref_loc): Declare.
2413         (build_simple_mem_ref): Define.
2414         (mem_ref_offset): Declare.
2415         * fold-const.c: Include tree-flow.h.
2416         (operand_equal_p): Handle MEM_REF.
2417         (build_fold_addr_expr_with_type_loc): Likewise.
2418         (fold_comparison): Likewise.
2419         (fold_unary_loc): Fold
2420         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2421         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2422         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2423         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2424         (ptr_deref_may_alias_ref_p_1): Likewise.
2425         (ao_ref_base_alias_set): Properly differentiate base object for
2426         offset and TBAA.
2427         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2428         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2429         (indirect_refs_may_alias_p): Likewise.
2430         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
2431         chasing code.
2432         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2433         (call_may_clobber_ref_p_1): Likewise.
2434         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2435         * expr.c (expand_assignment): Handle MEM_REF.
2436         (store_expr): Handle MEM_REFs from STRING_CSTs.
2437         (store_field): If expanding a MEM_REF of a non-addressable
2438         decl use bitfield operations.
2439         (get_inner_reference): Handle MEM_REF.
2440         (expand_expr_addr_expr_1): Likewise.
2441         (expand_expr_real_1): Likewise.
2442         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2443         * alias.c (ao_ref_from_mem): Handle MEM_REF.
2444         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
2445         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2446         (dr_analyze_indices): Likewise.
2447         (dr_analyze_alias): Likewise.
2448         (object_address_invariant_in_loop_p): Likewise.
2449         * gimplify.c (mark_addressable): Handle MEM_REF.
2450         (gimplify_cond_expr): Build MEM_REFs.
2451         (gimplify_modify_expr_to_memcpy): Likewise.
2452         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2453         (gimple_fold_indirect_ref): Adjust.
2454         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
2455         * tree.def (MEM_REF): New tree code.
2456         * tree-dfa.c: Include toplev.h.
2457         (get_ref_base_and_extent): Handle MEM_REF.
2458         (get_addr_base_and_unit_offset): New function.
2459         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2460         * gimple-fold.c (may_propagate_address_into_dereference): Handle
2461         MEM_REF.
2462         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2463         accesses if the array has just one dimension.  Remove always true
2464         parameter.  Do not require type compatibility here.
2465         (maybe_fold_offset_to_component_ref): Remove.
2466         (maybe_fold_stmt_indirect): Remove.
2467         (maybe_fold_reference): Remove INDIRECT_REF handling.
2468         Fold back to non-MEM_REF.
2469         (maybe_fold_offset_to_address): Simplify.  Deal with type
2470         mismatches here.
2471         (maybe_fold_reference): Likewise.
2472         (maybe_fold_stmt_addition): Likewise.  Also handle
2473         &ARRAY + I in addition to &ARRAY[0] + I.
2474         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2475         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2476         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2477         * tree-ssa.c (useless_type_conversion_p): Make most pointer
2478         conversions useless.
2479         (warn_uninitialized_var): Handle MEM_REF.
2480         (maybe_rewrite_mem_ref_base): New function.
2481         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2482         to SSA form.
2483         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2484         INDIRECT_REF handling.
2485         (copy_tree_body_r): Handle MEM_REF.
2486         * gimple.c (is_gimple_addressable): Adjust.
2487         (is_gimple_address): Likewise.
2488         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
2489         invariant base are invariant.
2490         (is_gimple_min_lval): Adjust.
2491         (is_gimple_mem_ref_addr): New function.
2492         (get_base_address): Handle MEM_REF.
2493         (count_ptr_derefs): Likewise.
2494         (get_base_loadstore): Likewise.
2495         * gimple.h (is_gimple_mem_ref_addr): Declare.
2496         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
2497         * tree-cfg.c (verify_address): New function, split out from ...
2498         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
2499         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
2500         INDIRECT_REFs.
2501         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
2502         INDIRECT_REF.  Allow conversions.
2503         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
2504         a register does not change its size.
2505         (verify_types_in_gimple_reference): Verify MEM_REF.
2506         (verify_gimple_assign_single): Disallow INDIRECT_REF.
2507         Handle MEM_REF.
2508         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
2509         New.
2510         (mark_address_taken): Handle MEM_REF.
2511         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
2512         (get_asm_expr_operands): Pass opf_not_non_addressable.
2513         (get_expr_operands): Handle opf_[not_]non_addressable.
2514         Handle MEM_REF.  Remove INDIRECT_REF handling.
2515         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
2516         (search_for_addr_array): Likewise.
2517         (check_array_bounds): Likewise.
2518         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
2519         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
2520         (ref_always_accessed_p): Likewise.
2521         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
2522         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
2523         Handle MEM_REF.
2524         * cgraphbuild.c (mark_load): Properly check for NULL result
2525         from get_base_address.
2526         (mark_store): Likewise.
2527         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
2528         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
2529         handling for MEM_REF.
2530         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
2531         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
2532         * builtins.c (stabilize_va_list_loc): Use the function ABI
2533         valist type if we couldn't canonicalize the argument type.
2534         Always dereference with the canonical va-list type.
2535         (maybe_emit_free_warning): Handle MEM_REF.
2536         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
2537         memmove to memcpy.
2538         * builtins.c (fold_builtin_memory_op): Use ref-all types
2539         for all memcpy foldings.
2540         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
2541         (build_outer_var_ref): Likewise.
2542         (scan_omp_1_op): Likewise.
2543         (lower_rec_input_clauses): Likewise.
2544         (lower_lastprivate_clauses): Likewise.
2545         (lower_reduction_clauses): Likewise.
2546         (lower_copyprivate_clauses): Likewise.
2547         (expand_omp_atomic_pipeline): Likewise.
2548         (expand_omp_atomic_mutex): Likewise.
2549         (create_task_copyfn): Likewise.
2550         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
2551         Remove old union trick.  Initialize constant offsets.
2552         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
2553         INDIRECT_REF.  Init base_alias_set properly.
2554         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
2555         (vn_reference_fold_indirect): Adjust for MEM_REFs.
2556         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
2557         for ARRAY_REFs.
2558         (may_insert): Remove.
2559         (visit_reference_op_load): Do not test may_insert.
2560         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
2561         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
2562         a field to store the constant offset this op applies.
2563         (run_scc_vn): Adjust prototype.
2564         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
2565         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
2566         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
2567         bother about volatile qualifiers on pointers.
2568         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
2569         * tree-ssa-loop-ivopts.c
2570         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
2571         (strip_offset_1): Likewise.
2572         (find_interesting_uses_address): Replace INDIRECT_REF handling with
2573         MEM_REF handling.
2574         (get_computation_cost_at): Likewise.
2575         * ipa-pure-const.c (check_op): Handle MEM_REF.
2576         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
2577         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
2578         and constants.
2579         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
2580         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
2581         (eliminate_local_variables_1): Likewise.
2582         (create_call_for_reduction_1): Likewise.
2583         (create_loads_for_reductions): Likewise.
2584         (create_loads_and_stores_for_name): Likewise.
2585         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
2586         (ssa_accessed_in_tree): Handle MEM_REF.
2587         (ssa_accessed_in_assign_rhs): Likewise.
2588         (update_type_size): Likewise.
2589         (analyze_accesses_for_call_stmt): Likewise.
2590         (analyze_accesses_for_assign_stmt): Likewise.
2591         (transform_access_sites): Likewise.
2592         (transform_allocation_sites): Likewise.
2593         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
2594         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2595         not handle INDIRECT_REF.
2596         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
2597         (cond_store_replacement): Likewise.
2598         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
2599         MEM_REF, no not handle INDIRECT_REFs.
2600         (insert_into_preds_of_block): Properly initialize avail.
2601         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
2602         for ARRAY_REFs.  Properly handle reference lookups that
2603         require a bit re-interpretation.
2604         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
2605         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
2606         (build_ref_for_offset_1): Remove.
2607         (build_ref_for_offset): Build MEM_REFs.
2608         (gate_intra_sra): Disable for now.
2609         (sra_ipa_modify_expr): Handle MEM_REF.
2610         (ipa_early_sra_gate): Disable for now.
2611         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
2612         MEM_REF handling.
2613         (disqualify_base_of_expr): Likewise.
2614         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
2615         MEM_REF handling.
2616         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
2617         Use mem_ref_offset.  Remove bogus folding.
2618         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
2619         (make_fancy_name_1): Add support for MEM_REF.
2620         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
2621         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
2622         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
2623         (compute_complex_ancestor_jump_func): Likewise.
2624         (ipa_analyze_virtual_call_uses): Likewise.
2625         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
2626         INDIRECT_REF folding with more generalized MEM_REF folding.
2627         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
2628         (forward_propagate_addr_into_variable_array_index): Also handle
2629         &ARRAY + I in addition to &ARRAY[0] + I.
2630         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
2631         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
2632         creates assignments with overlap.
2633         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
2634         (get_frame_field): Likewise.
2635         (get_nonlocal_debug_decl): Likewise.
2636         (convert_nonlocal_reference_op): Likewise.
2637         (struct nesting_info): Add mem_refs pointer-set.
2638         (create_nesting_tree): Allocate it.
2639         (convert_local_reference_op): Insert to be folded mem-refs.
2640         (fold_mem_refs): New function.
2641         (finalize_nesting_tree_1): Perform defered folding of mem-refs
2642         (free_nesting_tree): Free the pointer-set.
2643         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
2644         (vectorizable_load): Likewise.
2645         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
2646         (propagate_with_phi): Likewise.
2647         * tree-object-size.c (addr_object_size): Handle MEM_REFs
2648         instead of INDIRECT_REFs.
2649         (compute_object_offset): Handle MEM_REF.
2650         (plus_stmt_object_size): Handle MEM_REF.
2651         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
2652         for &MEM_REF.
2653         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
2654         (symbol_marked_for_renaming): Likewise.
2655         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
2656         (fold-const.o): Add $(TREE_FLOW_H).
2657         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
2658         (find_func_clobbers): Likewise.
2659         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
2660         (decompose_access): Likewise.
2661         (replace_field_acc): Likewise.
2662         (replace_field_access_stmt): Likewise.
2663         (insert_new_var_in_stmt): Likewise.
2664         (get_stmt_accesses): Likewise.
2665         (reorg_structs_drive): Disable.
2666         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
2667         (ix86_canonical_va_list_type): Likewise.
2668
2669 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
2670
2671         PR other/44566
2672         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
2673         * target.def (struct gcc_target): Replace enum reg_class with
2674         reg_class_t in hook argument / return types.
2675         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
2676         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
2677         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2678         * targhooks.h (default_branch_target_register_class): Likewise.
2679         (default_ira_cover_classes, default_secondary_reload): Likewise.
2680         (default_memory_move_cost, default_register_move_cost): Likewise.
2681         * targhooks.c (default_branch_target_register_class): Likewise.
2682         (default_ira_cover_classes, default_secondary_reload): Likewise.
2683         (default_memory_move_cost, default_register_move_cost): Likewise.
2684         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
2685         * bt-load.c (branch_target_load_optimize): Likewise.
2686         * ira.c (setup_cover_and_important_classes): Likewise.
2687         * ira-costs.c (copy_cost): Likewise.
2688         * reload1.c (emit_input_reload_insns): Likewise.
2689         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2690         * config/frv/frv.c (frv_secondary_reload): Likewise.
2691         * config/s390/s390.c (s390_secondary_reload): Likewise.
2692         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
2693         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
2694         (ix86_register_move_cost): Likewise.
2695         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
2696         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
2697         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
2698         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
2699         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
2700         (rs6000_ira_cover_classes): Likewise.
2701         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
2702         * config/picochip/picochip-protos.h (picochip_secondary_reload):
2703         Likewise.
2704         * config/pa/pa.c (pa_secondary_reload): Likewise.
2705         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
2706         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
2707         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
2708         * doc/tm.texi: Regenerate.
2709
2710 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
2711
2712         PR bootstrrap/44726
2713         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
2714         use.
2715         (build_alias_set_optimal_p): Likewise.
2716         (build_base_obj_set_for_drs): Likewise.
2717
2718 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
2719
2720         * target.def: Remove comment about licensing problems of function
2721         declarations.
2722
2723         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
2724         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2725         * doc/tm.texi: Regenerate.
2726
2727         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
2728         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2729
2730         * target.def (enum_va_list_p): Use DEFHOOK.
2731         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2732         Rename ptype to ptree.
2733         * doc/tm.texi: Regenerate.
2734
2735         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
2736         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2737         * doc/tm.texi: Regenerate.
2738
2739         * target.def (memory_move_cost): Use DEFHOOK.
2740         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2741         Rename regclass AKA class to rclass.
2742         * doc/tm.texi: Regenerate.
2743
2744         * target.def (pragma_parse): Use DEFHOOK.
2745         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2746         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2747         * doc/tm.texi: Regenerate.
2748
2749         * target.def (pass_by_reference): Use DEFHOOK.
2750         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2751         * doc/tm.texi: Regenerate.
2752
2753         * target.def (resolve_overloaded_builtin): Rename params to arglist.
2754         Use DEFHOOK.
2755         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2756         * doc/tm.texi: Regenerate.
2757
2758         * target.def (return_pops_args): Use DEFHOOK.
2759         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
2760         Rename stack-size to size.
2761         * doc/tm.texi: Regenerate.
2762
2763         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
2764         last-sched_cycle to last_clock, cur_cycle to clock.
2765         * doc/tm.texi.in: Use @hook.
2766         * doc/tm.texi: Regenerate.
2767
2768         * target.def (print_operand, print_operand_address): Update comment.
2769         (print_operand_punct_valid_p): Likewise.
2770
2771 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2772
2773         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
2774         to rtl.h.
2775         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
2776         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
2777         * rtl-error.h: New.
2778         * regrename.c: Do not include toplev.h. Include rtl-error.h.
2779         * rtl-error.c: Likewise.
2780         * reload.c: Likewise.
2781         * recog.c:  Likewise.
2782         * sel-sched.c: Likewise.
2783         * function.c: Likewise.
2784         * reg-stack.c: Likewise.
2785         * cfgrtl.c: Likewise.
2786         * reload1.c: Likewise.
2787         * final.c: Include rtl-error.
2788         * Makefile.in: Adjust dependencies.
2789
2790 2010-06-30  Jan Hubicka  <jh@suse.cz>
2791
2792         PR middle-end/PR44706
2793         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
2794         to return the value.
2795
2796 2010-06-30  Michael Matz  <matz@suse.de>
2797
2798         PR bootstrap/44699
2799         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
2800         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
2801         a gimple reg, attach the original VDEF to the last store in the
2802         sequence.
2803
2804 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
2805
2806         PR other/44034
2807         * config/darwin.c (darwin_override_options): Use renamed
2808         targetm.asm_out.emit_unwind_label.
2809
2810 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
2811
2812         PR tree-optimization/39799
2813         * tree-inline.c (remap_ssa_name): Initialize variable only if
2814         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2815
2816 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
2817
2818         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2819
2820 2010-06-30  Richard Guenther  <rguenther@suse.de>
2821
2822         PR target/44722
2823         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2824         against oscillation with reverse peephole2.
2825
2826 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2827
2828         PR target/44721
2829         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2830         Fix last commit.
2831
2832 2010-06-30  Nick Clifton  <nickc@redhat.com>
2833
2834         * config/rx/rx-modes.def: New file.
2835         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2836         (CC_REGNUM): Define.
2837         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2838         register.
2839         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2840         (SELECT_CC_MODE): Define.
2841         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
2842         (reg:CC CC_REG) instead of (cc0).
2843         (attr "cc"): Delete.
2844         (cbranchsi4): Do not split compare and branch here. Instead move
2845         it to...
2846         (cbranchsi4_<code>): ... here.  New patterns.
2847         (cmpsi): Call rx-compare_redundant to find out if it is necessary
2848         to emit the compare instruction.
2849         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2850         cc_status flags.
2851         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2852         FIRST_PSEUDO_REGNUM.
2853         (rx_expand_prologue, rx_expand_epilogue): Likewise.
2854         (rx_notice_update_cc): Delete.
2855         (rx_cc_modes_compatible): New function.
2856         (flags_needed_for_conditional): New function.
2857         (flags_from_mode): New function.
2858         (rx_compare_redundant): New function - scans backwards through
2859         insn list to find out if condition flags are already set correctly.
2860         (TARGET_CC_MODES_COMPATIBLE): Define.
2861         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2862
2863         * config/rx/rx.h (BRANCH_COST): Define.
2864         (REGISTER_MOVE_COST): Define.
2865         * config/rx/predicates (rx_source_operand): Allow all constant types.
2866         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2867         (tstsi4): New pattern.
2868         * config/rx/rx.c (rx_memory_move_cost): Define.
2869         (TARGET_MEMORY_MOVE_COST): Define.
2870
2871 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2872
2873         * tree.h (block_may_fallthru): Declare here.
2874         * tree-flow.h (block_may_fallthru): Do not declare here.
2875         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2876         bitmap.h
2877         * Makefile.in (c-typeck.o): Update dependencies.
2878
2879 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
2880
2881         PR debug/44694
2882         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2883         * cselib.c (cfa_base_preserved_regno): New static variable.
2884         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2885         of REGNO (cfa_base_preserved_val->locs->loc).
2886         (cselib_preserve_cfa_base_value): Add regno argument, set
2887         cfa_base_preserved_regno to it.
2888         (cselib_invalidate_regno): Allow removal of registers other than
2889         cfa_base_preserved_regno from cfa_base_preserved_val.
2890         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2891         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2892         of MEM addresses, if not on LHS.
2893         (reverse_op): Don't add reverse ops for cfa_base_rtx.
2894         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2895
2896 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
2897
2898         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2899         static variables.
2900         (peep2_buf_position): New static function.
2901         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2902         peephole2_optimize): Use it.
2903         (peep2_attempt, peep2_update_life): New static functions, broken out
2904         of peephole2_optimize.
2905         (peep2_fill_buffer): New static function.
2906         (peephole2_optimize): Change the main loop to try to fill the buffer
2907         with the maximum number of insns before matching them against
2908         peepholes.  Use a forward scan.  Remove special case for targets with
2909         conditional execution.
2910         * genrecog.c (change_state): Delete dead code.
2911         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2912         Rewrite so as not to expect the second insn to have had a peephole
2913         applied yet.
2914
2915 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2916
2917         * genhooks.c (emit_findices): Cast field precision to int.
2918         (emit_documentation): Likewise.
2919
2920 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
2921
2922         PR tree-optimization/43801
2923         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2924         if old_decl was DECL_ONE_ONLY.
2925
2926         PR debug/44668
2927         * dwarf2out.c (add_accessibility_attribute): New function.
2928         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2929         instead of adding DW_AT_accessibility manually.
2930         (gen_enumeration_type_die, gen_struct_or_union_type_die,
2931         gen_typedef_die): Use it.
2932
2933 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2934
2935         * vmsdbgout.c (full_name): Just output the file name if not native.
2936
2937 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2938
2939         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2940         (funcnam_table): New static table.
2941         (funcnum_table): New static table.
2942         (write_rtnbeg): Write value saved in funcnum_table.
2943         (write_rtnend): Write value saved in funcnum_table.
2944         (vmsdbgout_begin_function): Save current function info in
2945         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2946         (vmsdbgout_finish): Iterate over funcnum_table.
2947
2948 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2949
2950         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2951         (vmsdbgout_type_decl): Declare
2952         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2953         (FUNC_EPILOGUE_LABEL): New macro
2954         (vmsdbgout_begin_epilogue): New function.
2955         (vmsdbgout_type_decl): New function.
2956
2957 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2958
2959         * vmsdbg.h: Update copyright.
2960
2961 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2962
2963         * vmsdbg.h (DST_K_TBG): New DST constant.
2964         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2965         (write_modbeg): Cast module_language to avoid warning.
2966         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2967
2968 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2969
2970         PR other/44034
2971         * target.def, doc/tm.texi.in, genhooks.c: New files.
2972         * target.h: Instead of defining individual hook members,
2973         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2974         include target.def.
2975         * target-def.h: Instead of defining individual hook initializers,
2976         include target-hooks-def.h.
2977         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2978         targetm.live_on_entry -> targetm.extra_live_on_entry
2979         targetm.sched.md_finish ->targetm.sched.finish
2980         targetm.sched.md_init -> targetm.sched.init
2981         targetm.sched.md_init_global -> targetm.sched.init_global
2982         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2983         targetm.asm_out.except_table_label ->
2984           targetm.asm_out.emit_except_table_label
2985         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2986         targetm.target_help -> targetm.help
2987         targetm.vectorize.builtin_support_vector_misalignment ->
2988           targetm.vectorize.support_vector_misalignment
2989         targetm.file_start_app_off -> targetm.asm_file_start_app_off
2990         targetm.file_start_file_directive ->
2991          targetm.asm_file_start_file_directive
2992         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2993         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2994         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2995         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2996           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2997         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2998           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2999         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
3000         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
3001         * Makefile.in (TARGET_H): Depend on target.def.
3002         (TARGET_DEF_H): Depend on target-hooks-def.h.
3003         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
3004         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
3005         * doc/tm.texi: Regenerate.
3006
3007         * Makefile.in (s-tm-texi): Remove stray tab / rule.
3008
3009         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
3010         (targetm.sched.init): Likewise.
3011
3012 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3013
3014         PR bootstrap/44713
3015         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
3016         (function_arg_advance_32): Const-ify TYPE parameter.
3017         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
3018         (ix86_function_arg_advance): Change type of NAMED to bool.
3019         (function_arg_32): Const-ify CUM and TYPE parameters.
3020         (function_arg_64): Likewise.  Change type of NAMED to bool.
3021         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
3022         to bool.
3023         (ix86_function_arg): Change type of NAMED to bool.
3024         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
3025         last argument as a bool.
3026
3027 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
3028
3029         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
3030         (OVERRIDE_OPTIONS): Add note of obsolescence.
3031         Replace references with references to TARGET_OPTION_OVERRIDE.
3032         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
3033          the macro).
3034         * targhooks.c (default_target_option_override): New function.
3035         * targhooks.h (default_target_option_override): Declare.
3036         * target.h (struct gcc_target): Add override member to
3037         target_option member.
3038         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
3039         targetm.target_option.override call.
3040         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
3041         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
3042
3043 2010-06-29  Jan Hubicka  <jh@suse.cz>
3044
3045         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
3046
3047 2010-06-29  Jan Hubicka  <jh@suse.cz>
3048
3049         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
3050         unreachable.
3051         (rebuild_frequencies): New function.
3052         * predict.h (rebuild_frequencies): Declare.
3053         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
3054         entry block and edge reaching new_entry.
3055         (tree_function_versioning): When doing partial cloning, rebuild
3056         frequencies when done.
3057         * passes.c (execute_function_todo): Use rebild_frequencies.
3058
3059 2010-06-29  Richard Guenther  <rguenther@suse.de>
3060
3061         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
3062         * tree-flow.h (enum noalias_state): Remove.
3063         (struct var_ann_d): Remove noalias_state member.
3064
3065 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
3066
3067         PR target/43902
3068         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
3069         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
3070         (maddhidi4): Likewise.
3071
3072         Revert parts of the change for PR25130.
3073         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3074         MEM_ALIAS_SET.
3075
3076 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3077
3078         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
3079         targetm.calls.function_incoming_arg, and
3080         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
3081         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
3082         * target.h (struct gcc_target): Add function_arg_advance,
3083         function_arg, and function_incoming_arg fields.
3084         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
3085         (TARGET_FUNCTION_INCOMING_ARG): Define.
3086         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
3087         and TARGET_FUNCTION_INCOMING_ARG.
3088         * targhooks.h (default_function_arg_advance): Declare.
3089         (default_function_arg, default_function_incoming_arg): Declare.
3090         * targhooks.c (default_function_arg_advance): New function.
3091         (default_function_arg, default_function_incoming_arg): New function.
3092         * config/i386/i386.c (function_arg_advance): Rename to...
3093         (ix86_function_arg_advance): ...this.  Make static.
3094         (function_arg): Rename to...
3095         (ix86_function_arg): ...this.  Make static.
3096         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3097         (TARGET_FUNCTION_ARG): Define.
3098         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
3099         (FUNCTION_ARG): Delete.
3100         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
3101         (function_arg): Delete prototype.
3102
3103 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3104
3105         * reginfo.c (init_reg_sets_1): Adjust comments.
3106         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
3107         * calls.c (prepare_call_address): Likewise.
3108         (emit_call_1): Use targetm.calls.return_pops_args.
3109         (expand_call): Likewise.
3110         * function.c (assign_parms): Likewise.
3111         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
3112         * target.h (struct gcc_target) [struct calls]: Add
3113         return_pops_args field.
3114         * targhooks.h (default_return_pops_args): Declare.
3115         * targhooks.c (default_return_pops_args): Define.
3116         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
3117         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
3118         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
3119         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
3120         documentation.
3121         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
3122         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
3123         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
3124         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
3125         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
3126         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
3127         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
3128         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
3129         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
3130         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
3131         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
3132         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
3133         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3134         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3135         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3136         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3137         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3138         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3139         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3140         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3141         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3142         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3143         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3144         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3145         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3146         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3147         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3148         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3149         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3150         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3151         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3152         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3153         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3154         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3155         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3156         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3157         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3158         * config/i386/i386.c (ix86_return_pops_args): Make static.
3159         Constify arguments.
3160         (TARGET_RETURN_POPS_ARGS): Define.
3161         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3162         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
3163         (TARGET_RETURN_POPS_ARGS): Define.
3164         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3165         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
3166         (TARGET_RETURN_POPS_ARGS): Define.
3167
3168 2010-06-29  Richard Guenther  <rguenther@suse.de>
3169
3170         PR middle-end/44667
3171         * tree-inline.c (initialize_inlined_parameters): Make sure
3172         to remap the inlined parameter variable substitutions types.
3173
3174 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3175
3176         PR rtl-optimization/44659
3177         * combine.c (make_compound_operation) <SUBREG>: Do not return the
3178         result of force_to_mode if it partially re-expanded the compound.
3179
3180 2010-06-28  Jan Hubicka  <jh@suse.cz>
3181
3182         PR middle-end/44671
3183         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3184         RESULT_DECL.
3185
3186 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
3187
3188         * double-int.h (force_fit_type_double): Remove declaration.
3189         * double-int.c (force_fit_type_double): Move to tree.c.
3190         * tree.h (force_fit_type_double): Declare.
3191         * tree.h (force_fit_type_double): Moved from double-int.c. Use
3192         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3193         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3194         * convert.c (convert_to_pointer): Adjust call to
3195         force_fit_type_double.
3196         * tree-vrp.c (extract_range_from_assert,
3197         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3198         * fold-const.c: Update comment.
3199         (int_const_binop, fold_convert_const_int_from_int,
3200         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3201         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3202         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3203         round_up_loc): Adjust call to force_fit_type_double.
3204
3205 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3206
3207         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3208
3209 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3210
3211         * tree-sra.c (convert_callers): New parameter, change fndecls of
3212         recursive calls.
3213         (modify_function): Pass the old decl to convert_callers.
3214
3215 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3216
3217         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3218         ipa_check_create_node_params and ipa_initialize_node_params with
3219         checking asserts they are not necessary.
3220
3221 2010-06-28  Jan Hubicka  <jh@suse.cz>
3222
3223         PR tree-optimization/44687
3224         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3225
3226 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3227
3228         PR c++/44535
3229         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3230         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3231         instead of BINFO_BASE_BINFO.
3232
3233 2010-06-28  Michael Matz  <matz@suse.de>
3234
3235         PR middle-end/44592
3236         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3237         proper VDEF chain for intermediate stores in the sequence.
3238
3239 2010-06-28  Jan Hubicka  <jh@suse.cz>
3240
3241         PR tree-optimization/44357
3242         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3243         uninlinable functions.
3244
3245 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3246
3247         * config.gcc (powerpc*-*-*): Handle titan.
3248         * config/rs6000/rs6000.c (titan_cost): New costs.
3249         (rs6000_override_options): Add "titan" to processor_target_table.
3250         Add Titan to branch alignment logic.
3251         Correctly set rs6000_cost for titan.
3252         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
3253         * config/rs6000/titan.md: New file.
3254         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3255
3256 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3257
3258         * tree-browser.c (TB_history_stack): Convert to a VEC.
3259         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3260         (TB_history_prev): Likewise.
3261
3262 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3263
3264         * vec.h (vec_heap_free): Add parentheses around free.
3265
3266 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
3267
3268         * system.h: Poison GCC_EXCEPT_H for front-end files.
3269
3270         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3271         langhook.
3272         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3273         Define to NULL by default.
3274         * except.h: Define GCC_EXCEPT_H.
3275         (doing_eh): Remove prototype.
3276         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3277         (lang_protect_cleanup_actions): Remove.
3278         * except.c (lang_protect_cleanup_actions): Remove.
3279         (doing_eh): Remove.
3280         (gen_eh_region): Don't check doing_eh here.
3281         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3282         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3283         instead of lang_protect_cleanup_actions.
3284         * omp-low.c (maybe_catch_exception): Likewise.
3285         * Makefile.in: Update dependencies.
3286
3287 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
3288
3289         * cgraph.h (struct varpool_node): new used_from_object_file flag.
3290         (struct cgraph_local_info): new used_from_object_file flag.
3291         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3292         (cgraph_clone_node): initialize used_from_object_file.
3293         (cgraph_create_virtual_clone): initialize used_from_object_file.
3294         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3295         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3296         when compiling with -fwhole-program.
3297         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3298         internal resolver.
3299         * ipa.c (function_and_variable_visibility): Set externally_visible
3300         flag of varpool_node if used_from_object_file flag is set.
3301         (cgraph_externally_visible_p): check used_from_object_file flag.
3302         * doc/invoke.texi (-fwhole-program option): Change description of
3303         externally_visible attribute accordingly.
3304         * doc/extend.texi (externally_visible): Ditto.
3305
3306 2010-06-27  Jan Hubicka  <jh@suse.cz>
3307
3308         * params.def (max-inline-insns-auto): Default to 40.
3309         * doc/invoke.texi (max-inline-insns-auto): Document the change.
3310
3311 2010-06-27  Jan Hubicka  <jh@suse.cz>
3312
3313         PR middle-end/44671
3314         PR middle-end/44686
3315         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3316         signature change.
3317         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3318         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3319
3320 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
3321
3322         * target.h (struct gcc_target): Add register_move_cost field.
3323         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3324         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3325         * targhooks.c (default_register_move_cost): New function.
3326         * targhooks.h (default_register_move_cost): Declare function.
3327         * defaults.h (REGISTER_MOVE_COST): Delete.
3328         * ira-int.h (ira_register_move_cost): Update comment.
3329         * ira.c: (ira_register_move_cost): Update comment.
3330         * reload.h (register_move_cost): Declare.
3331         * reginfo.c (register_move_cost): New function.
3332         (move_cost): Update comment.
3333         (init_move_cost, memory_move_secondary_cost): Replace
3334         REGISTER_MOVE_COST with register_move_cost.
3335         * postreload.c (reload_cse_simplify_set): (Ditto.).
3336         * reload.c (find_valid_class, find_reloads): (Ditto.).
3337         * reload1.c (choose_reload_regs): (Ditto.).
3338         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3339         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3340         * doc/md.texi (can_create_pseudo_p): Update documentation.
3341
3342         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3343         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3344         * config/i386/i386.h (ix86_memory_move_cost): Make static.
3345         (TARGET_MEMORY_MOVE_COST): Define.
3346
3347         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3348         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3349         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
3350         (TARGET_MEMORY_MOVE_COST): Define.
3351
3352 2010-06-27  Richard Guenther  <rguenther@suse.de>
3353
3354         PR tree-optimization/44683
3355         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
3356         false edge from the inverted condition.
3357
3358 2010-06-27  Richard Guenther  <rguenther@suse.de>
3359
3360         PR middle-end/44684
3361         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
3362         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
3363         for register LHS.  Or non-store assignments.
3364
3365 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3366
3367         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
3368         (sparc_emit_set_const64): Likewise.  Remove disabled code.
3369         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
3370         (sparc_emit_set_const64): Likewise.
3371
3372 2010-06-26  Catherine Moore  <clm@codesourcery.com>
3373
3374         * config/mips/mips.md (alu_type): New attribute.
3375         (type): Infer type from alu_type.
3376         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
3377         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
3378         *subsi3_extended, negsi2, negdi2, *low<mode>,
3379         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
3380         xor<mode>3, *nor<mode>3,
3381         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
3382         *zero_extendhi_truncqi):  Set alu_type instead of type.
3383
3384 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
3385
3386         * config/alpha/alpha.c (alpha_need_linkage): Adjust
3387         splay_tree_new_ggc call.
3388         (alpha_use_linkage): Likewise.
3389
3390 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
3391
3392         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
3393         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
3394         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
3395         (static_specs): Remove switches_need_spaces.
3396         (process_command, do_self_spec): Hardcode handling "-o" instead of
3397         checking switches_need_spaces.
3398         * system.h (SWITCHES_NEED_SPACES): Poison.
3399
3400 2010-06-26  Richard Guenther  <rguenther@suse.de>
3401
3402         PR tree-optimization/44393
3403         * tree-loop-distribution.c (generate_loops_for_partition): Fix
3404         stmt removal and VOP renaming.
3405         (generate_memset_zero): Remove redundant stmt updating.
3406         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
3407         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
3408
3409 2010-06-26  Jan Hubicka  <jh@suse.cz>
3410
3411         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
3412         edges comming from header are equivalent.
3413         (visit_bb): Handle PHIs correctly.
3414         * tree-inline.c (copy_phis_for_bb): Be able to copy
3415         PHI from entry edge.
3416         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3417
3418 2010-06-26  Richard Guenther  <rguenther@suse.de>
3419
3420         PR middle-end/44674
3421         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3422         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
3423
3424 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
3425
3426         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3427         add_infile, alloc_switch): New.
3428         (process_command): Remove variable lang_n_infiles.  Process
3429         options in a single pass.  Use new functions for allocating
3430         infiles and switches arrays.  Properly skip operands of
3431         -Xpreprocessor and -Xassembler.
3432
3433 2010-06-26  Jan Hubicka  <jh@suse.cz>
3434
3435         PR middle-end/44671
3436         * cgraphunit.c (cgraph_function_versioning): Remove wrong
3437         cgraph_make_decl_local call; fix typo copying RTL data.
3438
3439 2010-06-25  DJ Delorie  <dj@redhat.com>
3440
3441         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3442         (m32c_output_aligned_common): Likewise.
3443         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3444         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3445         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3446         (m32c_register_pragmas): Register it.
3447         * config/m32c/m32c.c (m32c_get_pragma_address): New.
3448         (m32c_insert_attributes): Set #pragma address decls volatile.
3449         (pragma_entry_eq): New.
3450         (pragma_entry_hash): New.
3451         (m32c_note_pragma_address): New.
3452         (m32c_get_pragma_address): New.
3453         (m32c_output_aligned_common): New.
3454         * doc/extend.texi: Document the new pragma.
3455
3456         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3457         also.
3458         * config/m32c/predicates.md (m32c_any_operand): Check the code
3459         instead of memory_operand so as to allow matching volatile MEMs.
3460         (m32c_nonimmediate_operand): Likewise.
3461         (mra_operand): Allow volatiles.
3462
3463 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
3464
3465         PR debug/44610
3466         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3467         address if the offset is unknown.
3468
3469 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
3470
3471         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3472         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3473         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3474         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3475         to ia64_start_function. Invoke it.
3476         * config/ia64/ia64.c (ia64_start_function): Call new function
3477         dwarf2out_vms_debug_main_pointer.
3478
3479 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3480
3481         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3482         statements computing the true predicate.
3483
3484 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3485
3486         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
3487         to boolean_true_node.
3488         (reset_bb_predicate): New.
3489         (predicate_bbs): Call reset_bb_predicate.
3490
3491 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3492
3493         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
3494         (tree_if_conversion): Returns true when something has been changed.
3495         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
3496         changed something.
3497
3498 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3499
3500         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
3501         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
3502         * tree-if-conv.c: Include dbgcnt.h.
3503         (tree_if_conversion): Use if_conversion_tree to count the number of
3504         if-convertible loops.
3505
3506 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
3507
3508         * common.opt (fprefetch-loop-arrays): Re-define
3509         -fprefetch-loop-arrays as a tri-state option with the initial
3510         value of -1.
3511         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
3512         pass only when flag_prefetch_loop_arrays > 0.
3513         * toplev.c (process_options): Note that, with tri-states,
3514         flag_prefetch_loop_arrays>0 means prefetching is enabled.
3515         * config/i386/i386.c (override_options): Enable prefetching at -O3
3516         for a set of CPUs that sw prefetching is helpful.
3517         (software_prefetching_beneficial_p): New.  Return TRUE if software
3518         prefetching is beneficial for the given CPU.
3519
3520 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
3521
3522         PR rtl-optimization/44326
3523         * implicit-zee.c (find_removable_zero_extends): Replace
3524         INSN_P with NONDEBUG_INSN_P.
3525
3526 2010-06-25  Martin Jambor  <mjambor@suse.cz>
3527
3528         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
3529         (struct ipa_node_params): Removed the modification_analysis_done flag.
3530         (ipa_is_param_modified): Removed.
3531         (ipa_analyze_node): Declare.
3532         (ipa_compute_jump_functions): Remove declaration.
3533         (ipa_count_arguments): Likewise.
3534         (ipa_detect_param_modifications): Likewise.
3535         (ipa_analyze_params_uses): Likewise.
3536         * ipa-prop.c (struct param_analysis_info): New type.
3537         (visit_store_addr_for_mod_analysis): Removed.
3538         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
3539         moved down in the file.
3540         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
3541         (ipa_count_arguments): Made static.
3542         (mark_modified): New function.
3543         (is_parm_modified_before_call): New function.
3544         (compute_pass_through_member_ptrs): New parameter parms_info, call
3545         is_parm_modified_before_call instead of ipa_is_param_modified.
3546         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
3547         it to compute_pass_through_member_ptrs.
3548         (ipa_compute_jump_functions): New parameter parms_info, pass it to
3549         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
3550         on the callee if it is analyzed.  Made static.
3551         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
3552         is_parm_modified_before_call instead of ipa_is_param_modified.
3553         (ipa_analyze_call_uses): New parameter parms_info, pass it to
3554         ipa_analyze_indirect_call_uses.
3555         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
3556         ipa_analyze_call_uses.
3557         (ipa_analyze_params_uses): New parameter parms_info, pass it to
3558         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
3559         (ipa_analyze_node): New function.
3560         (ipa_print_node_params): Do not dump the modified flag.
3561         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
3562         it.  Do not stream the modified parameter flag.
3563         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
3564         it.  Do not stream the modified parameter flag.
3565         * ipa-cp.c (ipcp_analyze_node): Removed.
3566         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
3567         with only a call to ipa_analyze_node.
3568         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
3569         node with only a call to ipa_analyze_node.
3570
3571 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3572
3573         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
3574
3575 2010-06-25  Jan Hubicka  <jh@suse.cz>
3576
3577         * tree-pass.h (pass_split_functions): Declare.
3578         * opts.c (decode_options): Enable function splitting at -O2
3579         * timevar.def (TV_IPA_FNSPLIT): New macro.
3580         * ipa-split.c: New file.
3581         * common.opt (-fpartial-inlining): New flag.
3582         * Makefile.in (ipa-split.o): New object file.
3583         * passes.c (init_optimization_passes): Add ipa-split.
3584         * params.def (partial-inlining-entry-probability): New parameters.
3585         * doc/invoke.texi (-fpartial-inlining): New.
3586
3587 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3588
3589         PR 44665
3590         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
3591         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
3592         (gimplify_expr): Likewise.
3593
3594 2010-06-25  Martin Jambor  <mjambor@suse.cz>
3595
3596         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
3597         statements instead of bailing out on them.
3598         (ipa_analyze_indirect_call_uses): Do not require that loads from the
3599         parameter are in the same BB as the condition.  Update comments.
3600
3601 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
3602
3603         PR middle-end/43866
3604         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
3605         true or always false, return NULL_TREE.
3606         (tree_unswitch_single_loop): Optimize conditions even when reaching
3607         max-unswitch-level parameter.  If num > 0, optimize first all conditions
3608         using entry checks, then do still reachable block discovery and consider
3609         only conditions in still reachable basic blocks in the loop.
3610
3611         PR tree-optimization/44539
3612         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
3613         the call doesn't have LHS, but has VDEF.
3614
3615 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
3616
3617         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
3618         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
3619         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
3620         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
3621         * system.h (MODIFY_TARGET_NAME): Poison.
3622
3623 2010-06-25  Alan Modra  <amodra@gmail.com>
3624
3625         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
3626         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
3627         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3628         CMODEL_LARGE as default.
3629         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
3630         (offsettable_ok_by_alignment): Delete.
3631         (rs6000_emit_move): Remove mcmodel=medium optimization.
3632
3633 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
3634
3635         With large parts from Jim Wilson:
3636         PR target/43902
3637         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
3638         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3639         * optabs.c (optab_for_tree_code): Likewise.
3640         (expand_widen_pattern_expr): Likewise.
3641         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
3642         out of execute_optimize_widening_mul.
3643         (convert_plusminus_to_widen): New function.
3644         (execute_optimize_widening_mul): Use the two new functions.
3645         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
3646         Remove code to generate widening multiply-accumulate.  Add support
3647         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3648         * gimple-pretty-print.c (dump_ternary_rhs): New function.
3649         (dump_gimple_assign): Call it when appropriate.
3650         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
3651         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
3652         (expand_gimple_stmt_1): Likewise.
3653         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
3654         WIDEN_MULT_MINUS_EXPR.
3655         * tree-ssa-operands.c (get_expr_operands): Likewise.
3656         * tree-inline.c (estimate_operator_cost): Likewise.
3657         * gimple.c (extract_ops_from_tree_1): Renamed from
3658         extract_ops_from_tree.  Add new arg for a third operand; fill it.
3659         (gimple_build_assign_stat): Support operations with three operands.
3660         (gimple_build_assign_with_ops_stat): Likewise.
3661         (gimple_assign_set_rhs_from_tree): Likewise.
3662         (gimple_assign_set_rhs_with_ops_1): Renamed from
3663         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
3664         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
3665         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
3666         WIDEN_MULT_MINUS_EXPR.
3667         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
3668         (extract_ops_from_tree_1): Adjust declaration.
3669         (gimple_assign_set_rhs_with_ops_1): Likewise.
3670         (gimple_build_assign_with_ops): Pass NULL for last operand.
3671         (gimple_build_assign_with_ops3): New macro.
3672         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
3673         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
3674         functions.
3675         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
3676         (verify_gimple_assign): Call it.
3677         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
3678         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
3679         functions for dealing with three-operand statements.
3680         * tree.c (commutative_ternary_tree_code): New function.
3681         * tree.h (commutative_ternary_tree_code): Declare it.
3682         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
3683         ternary statements.
3684         (gimple_assign_nonzero_warnv_p): Likewise.
3685         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
3686         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
3687         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
3688         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
3689         (struct hashtable_expr): New member ternary in the union.
3690         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
3691         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
3692         (iterative_hash_hashable_expr): Likewise.
3693         (print_expr_hash_elt): Handle EXPR_TERNARY.
3694         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
3695         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
3696         statements.  Handle GIMPLE_TERNARY_RHS.
3697
3698 2010-06-25  Jan Hubicka  <jh@suse.cz>
3699
3700         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
3701
3702 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
3703
3704         PR c/44517
3705         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
3706         parameters are not good.
3707         (c_parser_parameter_declaration): Error unknown type name if the type
3708         name can't start declaration specifiers.
3709
3710 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
3711
3712         * gcc.c (translate_options): Don't mention +e in comment.
3713         (process_command): Don't handle +e specially.
3714
3715 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
3716
3717         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3718
3719         * ira-build.c (merge_hard_reg_conflicts): New function.
3720         (create_cap_allocno, copy_info_to_removed_store_destinations,
3721         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3722         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3723         (remove_unnecessary_allocnos, remove_low_level_allocnos)
3724         copy_nifo_to_removed_store_destination): Use them.
3725         * ira-lives.c (make_hard_regno_born): New function, split out of
3726         make_regno_born.
3727         (make_allocno_born): Likewise.
3728         (make_hard_regno_dead): New function, split out of make_regno_dead.
3729         (make_allocno_dead): Likewise.
3730         (inc_register_pressure): New function, split out of set_allocno_live.
3731         (dec_register_pressure): New function, split out of clear_allocno_live.
3732         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3733         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
3734         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3735         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
3736         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3737         mark_pseudo_regno_live.
3738         (process_bb_node_lives): Use mark_pseudo_regno_live,
3739         make_hard_regno_born and make_allocno_dead.
3740         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3741         set_allocno_live, clear_allocno_live): Delete functions.
3742
3743         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3744         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3745         functions.
3746         (ira_flattening): Use ira_parent_allocno.
3747         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3748         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3749
3750         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3751         statement.
3752
3753         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3754         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3755         minmax_set_iter_cond, minmax_set_iter_next,
3756         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3757         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3758         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
3759         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
3760         uses changed.
3761
3762         * ira-int.h (struct live_range, live_range_t): Renamed from struct
3763         ira_allocno_live_range and allocno_live_range_t; all uses changed.
3764         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
3765         All uses changed.
3766
3767 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
3768
3769         * thumb2.md (thumb2_tlobits_cbranch): Delete.
3770         (peephole2 to convert zero_extract/compare of single bit to
3771          lshift/compare): New.
3772
3773 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
3774
3775         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
3776         recursive call and call to 'int_const_binop'.
3777         (build_range_check, fold_cond_expr_with_comparison, unextend,
3778         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
3779         multiple_of_p): Adjust call to const_binop.
3780
3781 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
3782
3783         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
3784         determine size of XFmode operand.
3785         (XFmode extended DFmode push splitter): Ditto.
3786         (XFmode extended SFmode push splitter): Ditto.
3787
3788 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3789
3790         PR target/44588
3791         * config/i386/i386.md (extract_code): New.
3792         (<u>divmodqi4): Likewise.
3793         (divmodhiqi3): Likewise.
3794         (udivmodhiqi3): Likewise.
3795         (<u>divqi3): Remvoved.
3796
3797 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
3798
3799         PR middle-end/44492
3800         * recog.h (struct recog_data): Add is_asm field.
3801         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
3802         present in constraints of inline-asm operand and memory operand
3803         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
3804         (extract_insn): Initialize recog_data.is_asm.
3805         * doc/md.texi (Constraints): Document operand side-effect rules.
3806
3807 2010-06-24  Andi Kleen  <ak@linux.intel.com>
3808
3809         * c-parser.c (c_parser_conditional_expression): Call
3810         warn_for_omitted_condop.
3811         * doc/invoke.texi: Document omitted condop warning.
3812
3813 2010-06-24  Nick Clifton<nickc@redhat.com>
3814
3815         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
3816         insn in the sequence is a jump insn before setting its label.
3817
3818 2010-06-24  Alan Modra  <amodra@gmail.com>
3819
3820         * collect2.c (main): Match exactly --version and --help.
3821
3822 2010-06-24  DJ Delorie  <dj@redhat.com>
3823
3824         * config/m32c/m32c-pragma.c: Don't include rtl.h.
3825
3826 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
3827
3828         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
3829         using X87MODEF mode iterator.
3830         (pushsf splitter): Macroize splitter using P mode iterator.
3831         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3832         mode iterator.
3833
3834         (*movxf_internal): Rename from *movxf_integer.
3835         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3836         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3837         (*movdf_internal): Rename from *movdf_integer.
3838         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3839         (*movsf_internal): Rename from *movdf_1.
3840
3841 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
3842
3843         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3844         (const_gimple_seq_node): Removed typedefs.
3845
3846         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3847         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3848
3849 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3850
3851         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3852         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3853         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3854         and CODE_FOR_vec_extract_lo_v4df.
3855
3856         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3857         Changed to define_insn_and_split.
3858         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3859         (vec_extract_lo_v16hi): Likewise.
3860         (vec_extract_lo_v32qi): Likewise.
3861         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3862         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3863
3864 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
3865
3866         PR target/44640
3867         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3868         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3869         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3870         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3871         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3872
3873         PR target/44640
3874         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3875
3876         PR other/44644
3877         * df-core.c (struct df): Rename to df_d.
3878         * df.h (struct df): Likewise.
3879         * dse.h (struct df): Remove forward declaration.
3880         * recog.h (struct insn_data): Rename to:
3881         (struct_insn_data_d).  Adjusted all users.
3882
3883 2010-06-23  Arnaud Charlet  <charlet@adacore.com
3884
3885         PR ada/22220
3886         * doc/install.texi: Update requirements to build GNAT.
3887
3888 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
3889
3890         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3891         enum type.
3892         (m68k_sched_attr_opx_type): Remove unreachable return.
3893         (m68k_sched_attr_opy_type): Likewise.
3894         (m68k_sched_attr_size): Likewise.
3895         (sched_get_opxy_mem_type): Likewise.
3896         (m68k_sched_attr_op_mem): Likewise.
3897
3898 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3899
3900         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3901         new statement and adjust VDEF only if necessary.  Remove superfluous
3902         call to maybe_clean_or_replace_eh_stmt.
3903         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3904         copy the flags.
3905         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3906         * tree-inline.c (copy_bb): ...and not there.
3907
3908 2010-06-22  Cary Coutant  <ccoutant@google.com>
3909
3910         * dwarf2out.c (is_nested_in_subprogram): New function.
3911         (should_move_die_to_comdat): Use it.
3912         (copy_ancestor_tree): Don't mark DIEs here.
3913         (copy_decls_walk): Start walk from root of newly-added tree;
3914         mark DIEs here instead.
3915
3916 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3917
3918         * config/i386/i386.md (unit): Also check sseishft1.
3919
3920 2010-06-22  Jan Hubicka  <jh@suse.cz>
3921
3922         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3923         enabled.
3924
3925 2010-06-22  Jan Hubicka  <jh@suse.cz>
3926
3927         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3928         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3929         Return true if something changed.
3930         * df.h (df_confluence_function_n): Return bool.
3931         * df-core.c (df_worklist_propagate_forward,
3932         df_worklist_propagate_backward): Track changes and ages.
3933         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3934         track ages.
3935         * dse.c (dse_confluence_n): Return always true.
3936
3937 2010-06-22  Jan Hubicka  <jh@suse.cz>
3938
3939         * bitmap.c (bitmap_clear_bit): Micro optimize.
3940
3941 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
3942
3943         * config/i386/i386.md (SWI1248x): New mode iterator.
3944         (SWI48x): Ditto.
3945         (SWI12): Ditto.
3946         (SWI24): Ditto.
3947
3948         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3949         SWI1248x mode iterator.
3950         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3951         using SWI124 mode iterator.
3952         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3953         mode iterator.
3954         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
3955         *pushdi2_prologue_rex64 using P mode iterator.
3956         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3957         using SWI48 mode iterator.
3958         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3959         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3960         using SWI1248x mode iterator.
3961         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3962         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3963         SWI48 mode iterator.
3964         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3965         iterator.
3966         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3967         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3968         SWI12 mode iterator.
3969         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3970         SWI12 mode iterator.
3971         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3972         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3973         SWI24 mode iterator.
3974         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3975         SWI48 mode iterator.
3976         (mov<mode>_insn_1): New expander.
3977         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3978         using SWI48x mode iterator.
3979
3980         (*movoi_internal_avx): Rename from *movoi_internal.
3981         (*movti_internal_rex64): Rename from *movti_rex64.
3982         (*movti_internal_sse): Rename from *movti_sse.
3983         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3984         (*movdi_internal): Rename from *movdi_2.
3985         (*movsi_internal): Rename from *movsi_1.
3986         (*movhi_internal): Rename from *movhi_1.
3987         (*movqi_internal): Rename from *movqi_1.
3988
3989         (insv): Update the call to gen_movsi_insv_1 for rename.
3990         * config/i386/i386.c (promote_duplicated_reg): Ditto.
3991
3992 2010-06-22  Jan Hubicka  <jh@suse.cz>
3993
3994         * passes.c (execute_function_todo): Move call of statistics_fini_pass
3995         to ...
3996         (execute_todo) ... this one.
3997
3998 2010-06-22  Alan Modra  <amodra@gmail.com>
3999
4000         PR target/44364
4001         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4002         * caller-save.c (insert_restore, insert_save): Use non-validate
4003         form of adjust_address.
4004
4005 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4006
4007         PR target/39690
4008         * config/pa/pa.c (override_options): Disable
4009         -freorder-blocks-and-partition.
4010
4011 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4012
4013         PR target/44615
4014         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
4015
4016         * config/i386/i386.md (type): Add sseishft1
4017
4018         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
4019         (ppro_insn_load): Likewise.
4020         (ppro_insn_store): Likewise.
4021         (ppro_insn_both): Likewise.
4022
4023         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
4024         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
4025         for type.
4026         (*vec_extractv2di_1_avx): Likewise.
4027         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
4028         type.  Remove atom_unit.
4029         (*vec_extractv2di_1_sse2): Likewise.
4030
4031 2010-06-21  DJ Delorie  <dj@redhat.com>
4032
4033         * diagnostic.h (diagnostic_classification_change_t): New.
4034         (diagnostic_context): Add history and push/pop list.
4035         (diagnostic_push_diagnostics): Declare.
4036         (diagnostic_pop_diagnostics): Declare.
4037         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
4038         from pragmas in a history chain instead of the global table.
4039         (diagnostic_push_diagnostics): New.
4040         (diagnostic_pop_diagnostics): New.
4041         (diagnostic_report_diagnostic): Scan history chain to find state
4042         of diagnostics as of the diagnostic location.
4043         * opts.c (set_option): Pass UNKNOWN_LOCATION to
4044         diagnostic_classify_diagnostic.
4045         (enable_warning_as_error): Likewise.
4046         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
4047         use in the history chain.
4048         * doc/extend.texi: Document pragma GCC diagnostic changes.
4049
4050 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
4051
4052         * dwarf2out.c (add_linkage_name): New function.  Don't add
4053         anything to DW_TAG_member DIEs.
4054         (add_name_and_src_coords_attributes): Use it.
4055         (gen_variable_die): Call it for C++ static data members if
4056         specification is DW_TAG_member.
4057
4058         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
4059         C++ char16_t and char32_t.
4060
4061         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
4062         * genattrtab.c: Include vecprim.h.
4063         (cached_attrs, cached_attr_count, attrs_seen_once,
4064         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
4065         attrs_cached_after): New variables.
4066         (find_attrs_to_cache): New function.
4067         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
4068         (write_test_expr): Add attrs_cached argument, return it too,
4069         attempt to cache non-const attributes used more than once in
4070         a single case handling.
4071         (write_attr_get): Use find_attrs_to_cache, for caching candidates
4072         emit cached_* variables.  Adjust write_attr_set callers.
4073         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
4074         to find attributes that should be cached in this block.  Adjust
4075         write_test_expr callers.
4076         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
4077         callers.
4078         (make_automaton_attrs): Adjust write_test_expr caller.
4079
4080         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
4081         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
4082         (make_automaton_attrs): If find_tune_attr returns non-NULL,
4083         write separate internal_dfa_insn_code_* and insn_default_latency_*
4084         functions for each attribute's value and emit init_sched_attrs
4085         function and function pointers.
4086         * genattr.c (const_attrs, reservations): New variables.
4087         (gen_attr): Add const attributes to const_attrs vector.
4088         (check_tune_attr, find_tune_attr): New functions.
4089         (main): Add reservations to reservations vector.  If find_tune_attr
4090         returns true, add prototype for init_sched_attrs and make
4091         internal_dfa_insn_code and insn_default_latency function pointers,
4092         otherwise define init_sched_attrs as dummy macro.
4093         * cfgexpand.c: Include insn-attr.h.
4094         (gimple_expand_cfg): Call init_sched_attrs.
4095
4096         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
4097
4098         PR target/44575
4099         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
4100         va_arg from a set of register save slots into a temporary,
4101         if the container is bigger than type size, do the copying
4102         using smaller mode or using memcpy.
4103
4104         PR bootstrap/44426
4105         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
4106         prototype.
4107         (sel_print_to_dot): Remove macro.
4108         (sel_print): Likewise.  New prototype.
4109         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
4110         (sel_print): New function.
4111
4112 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4113
4114         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
4115         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
4116
4117 2010-06-21  Nick Clifton  <nickc@redhat.com>
4118
4119         * config/rx/rx.h (PTRDIFF_TYPE): Define.
4120         (SMALL_REGISTER_CLASS): Define (to zero).
4121         (PRINT_OPERAND): Delete.
4122         (PRINT_OPERAND_ADDRESS): Delete.
4123         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
4124         (rx_print_operand_address): Delete prototype.
4125         * config/rx/rx.c (rx_print_operand): Make static.
4126         Allow %H and %L to handle CONST_DOUBLEs.
4127         (rx_print_operand_address): Make static.
4128         (rx_gen_move_template): Rename local variable 'template' to
4129         out_template.
4130         (rx_function_arg): Do not pass unknown sized objects in registers.
4131         (TARGET_PRINT_OPERAND): Define.
4132         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4133
4134 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4135
4136         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4137
4138 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
4139
4140         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4141         stack-alignment for simple leaf-functions.
4142
4143 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
4144
4145         * doc/install.texi: Document bootstrap-lto.
4146
4147 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
4148
4149         PR debug/44248
4150         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4151         (input_function): Drop them here, if VTA is disabled.
4152
4153 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
4154
4155         PR target/44546
4156         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4157         New predicate.
4158         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4159         ix86_swapped_fp_comparsion_operator instead of
4160         ix86_fp_comparison_operator.
4161
4162         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4163         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4164         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4165         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4166         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4167         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4168
4169 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4170
4171         PR other/32998
4172         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4173         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4174         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4175         (decode_cmdline_option): Update for this return value.  Set
4176         orig_option_with_args_text field.  Set arg field for unknown
4177         options.  Make static.
4178         (decode_cmdline_options_to_array): New.
4179         (prune_options): Update handling of find_opt return value.
4180         * opts.c (read_cmdline_option): Take decoded option.  Return void.
4181         (read_cmdline_options): Take decoded options.
4182         (decode_options): Add parameters for decoded options.  Use
4183         decode_cmdline_options_to_array.  Use decoded options for -O
4184         scan.  Use integral_argument for -O parameters.  Update call to
4185         read_cmdline_options.
4186         (enable_warning_as_error): Update handling of find_opt return value.
4187         * opts.h: Update comment on unknown options.
4188         (struct cl_decoded_option): Update comments on opt_index and arg.
4189         Add orig_option_with_args_text.
4190         (decode_cmdline_option): Remove.
4191         (decode_cmdline_options_to_array): Declare.
4192         (decode_options): Update prototype.
4193         * toplev.c (save_argv): Remove.
4194         (save_decoded_options, save_decoded_options_count): New.
4195         (read_integral_parameter): Remove.
4196         (print_switch_values): Use decoded options.
4197         (toplev_main): Don't set save_argv.  Update call to decode_options.
4198         * toplev.h (read_integral_parameter): Remove.
4199         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4200
4201 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
4202
4203         PR target/44072
4204         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4205         immediate.
4206         * constraints.md (Pw, Px): New constraints.
4207         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4208
4209 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
4210
4211         * config/i386/sse.md (fma4modesuffixf4): Removed.
4212         (ssemodesuffixf2s): Likewise.
4213         (ssemodesuffixf4): Likewise.
4214         (ssemodesuffixf2c): Likewise.
4215         (ssescalarmodesuffix2s): Likewise.
4216         (avxmodesuffixf2c): Likewise.
4217         (ssemodesuffix): New.
4218         (ssescalarmodesuffix): Likewise.
4219         Update patterns with ssemodesuffix and ssescalarmodesuffix.
4220
4221 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
4222
4223         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4224
4225 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4226
4227         * stor-layout.c (debug_rli): Remove unused local variables.
4228
4229 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
4230
4231         PR rtl-optimization/40900
4232         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
4233         original expression for later reuse.
4234         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4235         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4236
4237 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
4238
4239         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4240         double_int_fits_in_uhwi_p): Implement as static inline.
4241         (double_int_xor): New inline function.
4242         (double_int_lrotate, double_int_rrotate, double_int_max,
4243         double_int_umax, double_int_smax, double_int_min, double_int_umin,
4244         double_int_smin): Declare.
4245         (lrotate_double, rrotate_double): Remove declaration.
4246         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4247         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4248         (double_int_lrotate, double_int_rrotate, double_int_max,
4249         double_int_umax, double_int_smax, double_int_min, double_int_umin,
4250         double_int_smin): New function.
4251         * fold-const.c (int_const_binop): Clean up, use double_int_*
4252         functions.
4253         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4254         double_int_* and immed_double_int_const functions.
4255
4256 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4257
4258         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4259         * function.c (types_used_by_cur_var_decl): Likewise.
4260         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4261
4262 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4263
4264         * tree.h (record_layout_info): Change type of pending_statics field
4265         to a VEC.
4266         * stor-layout.c (start_record_layout): Store NULL into
4267         pending_statics.
4268         (debug_rli): Call debug_vec_tree instead of debug_tree.
4269         (place_field): Likewise.
4270         (finish_record_layout): Likewise.
4271
4272 2010-06-18  Alan Modra  <amodra@gmail.com>
4273
4274         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4275
4276 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4277
4278         PR target/43740
4279         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4280         for SET source operand from SET destination operand.
4281
4282 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
4283
4284         PR rtl-optimization/39871
4285         * reload1.c (init_eliminable_invariants): For flag_pic, disable
4286         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4287         (function_invariant_p): Rule out a plus of frame or arg pointer with
4288         a SYMBOL_REF.
4289         * ira.c (find_reg_equiv_invariant_const): Likewise.
4290
4291 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
4292
4293         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4294         print_operand_address and puts to output the operand for CONST.
4295
4296 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
4297
4298         PR debug/44572
4299         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4300         hook.
4301
4302 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4303
4304         * v850-protos.h (print_operand): Delete.
4305         (print_operand_address): Delete.
4306         * v850.h (PRINT_OPERAND): Delete.
4307         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4308         (PRINT_OPERAND_ADDRESS): Delete.
4309         * v850.c (print_operand_address): Rename to...
4310         (v850_print_operand_address): ...this.  Make static. Call
4311         v850_print_operand.
4312         (print_operand): Rename to...
4313         (v850_print_operand): ...this.  Make static.  Call
4314         v850_print_operand_address.
4315         (v850_print_operand_punct_valid_p): New function.
4316         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4317         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4318
4319 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4320
4321         * config/sh/sh-protos.h (print_operand): Delete.
4322         (print_operand_address): Delete.
4323         * config/sh/sh.h (PRINT_OPERAND): Delete.
4324         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4325         (PRINT_OPERAND_ADDRESS): Delete.
4326         * config/sh/sh.c (sh_print_operand_address): Make static.
4327         (sh_print_operand): Make static.  Call sh_print_operand_address
4328         and sh_print_operand.
4329         (sh_print_operand_punct_valid_p): New function.
4330         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4331         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4332
4333 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4334
4335         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4336         (mcore_print_operand_address): Delete.
4337         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4338         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4339         (PRINT_OPERAND_ADDRESS): Delete.
4340         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4341         (mcore_print_operand): Make static.
4342         (mcore_print_operand_punct_valid_p): New function.
4343         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4344         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4345
4346 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4347
4348         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4349         (print_operand_address): Delete.
4350         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
4351         (PRINT_OPERAND_ADDRESS): Delete.
4352         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
4353         static.
4354         (m68hc11_print_operand): Make static.
4355         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4356
4357 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4358
4359         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
4360         (m32r_print_operand_address): Delete.
4361         * config/m32r/m32r.h (m32r_punct_chars): Delete.
4362         (PRINT_OPERAND): Delete.
4363         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4364         (PRINT_OPERAND_ADDRESS): Delete.
4365         * config/m32r/m32r.c (m32r_punct_chars): Make static.
4366         (m32r_print_operand_address): Make static.
4367         (m32r_print_operand): Make static.
4368         (m32r_print_operand_punct_valid_p): New function.
4369         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4370         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4371
4372 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4373
4374         * config/iq2000/iq2000-protos.h (print_operand): Delete.
4375         (print_operand_address): Delete.
4376         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
4377         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4378         (PRINT_OPERAND_ADDRESS): Delete.
4379         (iq2000_print_operand_punct): Delete.
4380         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
4381         (iq2000_print_operand_address): Make static.
4382         (iq2000_print_operand): Make static.
4383         (iq2000_print_operand_punct_valid_p): New function.
4384         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4385         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4386
4387 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4388
4389         * config/frv/frv-protos.h (frv_print_operand): Delete.
4390         (frv_print_operand_address): Delete.
4391         * config/frv/frv.h (PRINT_OPERAND): Delete.
4392         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4393         (PRINT_OPERAND_ADDRESS): Delete.
4394         * config/frv/frv.c (frv_print_operand_address): Make static.
4395         (frv_print_operand): Make static.
4396         (frv_print_operand_punct_valid_p): New function.
4397         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4398         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4399
4400 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4401
4402         * tree.h (vec_member): Declare.
4403         * tree.c (vec_member): Define.
4404
4405 2010-06-17  Richard Guenther  <rguenther@suse.de>
4406
4407         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
4408         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
4409
4410 2010-06-17  Richard Guenther  <rguenther@suse.de>
4411
4412         * tree-inline.c (declare_return_variable): Remove bogus code.
4413
4414 2010-06-17  Richard Guenther  <rguenther@suse.de>
4415
4416         * gimplify.c (gimplify_bind_expr): Always promote complex
4417         and vector variables to registers if possible.
4418
4419 2010-06-17  Richard Guenther  <rguenther@suse.de>
4420
4421         * expr.c (get_inner_reference): Use double_int for bit_offset
4422         calculation.
4423
4424 2010-06-16  DJ Delorie  <dj@redhat.com>
4425
4426         * common.opt (-fstrict-volatile-bitfields): new.
4427         * doc/invoke.texi: Document it.
4428         * fold-const.c (optimize_bit_field_compare): For volatile
4429         bitfields, use the field's type to determine the mode, not the
4430         field's size.
4431         * expr.c (expand_assignment): Likewise.
4432         (get_inner_reference): Likewise.
4433         (expand_expr_real_1): Likewise.
4434         * expmed.c (store_fixed_bit_field): Likewise.
4435         (extract_bit_field_1): Likewise.
4436         (extract_fixed_bit_field): Likewise.
4437
4438 2010-06-16  Richard Guenther  <rguenther@suse.de>
4439
4440         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4441
4442 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
4443
4444         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4445         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4446         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4447         * debug.c: Likewise.
4448         * sdbout.c: Likewise.
4449         * vmsdbgout.c: Likewise.
4450         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4451         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4452         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4453         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4454         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4455         * dwarf2out.c (dw_fde_struct): New fields
4456         dw_fde_vms_{end,begin}_prologue.
4457         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4458         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4459         (dwarf2out_vms_end_prologue): New function.
4460         (dwarf2out_vms_begin_epilogue): New function.
4461         (dw_val_struct): New value dw_val_class_vms_delta.
4462         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4463         begin_epilogue for VMS.
4464         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4465         new static functions.
4466         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4467         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4468         static functions.
4469         (print_die): New case dw_val_class_vms_delta.
4470         (attr_checksum): Likewise.
4471         (same_dw_val_p: Likewise.
4472         (size_of_die): Likewise.
4473         (value_format): Likewise.
4474         (output_die): Likewise.
4475         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4476         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4477         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4478         dwarf2out_cfi_begin_epilogue
4479         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4480
4481 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
4482
4483         * config/cris/cris-protos.h (cris_print_operand): Delete.
4484         (cris_print_operand_address): Delete.
4485         * config/cris/cris.h (PRINT_OPERAND): Delete.
4486         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4487         (PRINT_OPERAND_ADDRESS): Delete.
4488         * config/cris/cris.c (cris_print_operand_address): Make static.
4489         (cris_print_operand): Make static.
4490         (cris_print_operand_punct_valid_p): New function.
4491         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4492         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4493
4494 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
4495
4496         * config/arm/arm-protos.h (arm_print_operand): Delete.
4497         (arm_print_operand_address): Delete.
4498         * config/arm/arm.h (PRINT_OPERAND): Delete.
4499         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4500         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
4501         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
4502         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
4503         (arm_print_operand): Make static.
4504         (arm_print_operand_punct_valid_p): New function.
4505         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4506         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4507
4508 2010-06-16  Nick Clifton  <nickc@redhat.com>
4509
4510         * config/rx/constraints.md (NEGint4): New constraint.
4511         * config/rx/rx.md (attr cc): Add set_zsc.
4512         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
4513         initialised.
4514         (cmpsf): Likewise.
4515         (call_internal): Clobber the cc0 register.
4516         (call_value_internal): Likewise.
4517         (cstoresi4): Likewise.
4518         (movsieq): Likewise.
4519         (movsine): Likewise.
4520         (addsi3): Add alternative to handle small negative constants.
4521         (sunsi3): Likewise.
4522         (addsi3): Do not set the O bit in the cc0 register.
4523         (adddi3): Likewise.
4524         (subsi3): Likewise.
4525         (subdi3): Likewise.
4526         (andsi3): Reorder alternatives to prefer shorter forms.
4527         (mulsi3): Likewise.
4528         (iorsi3): Likewise.
4529         (negsi2): Note that the cc0 flags are set.
4530         (rotlsi3): Note that only the Z and S bits are set in cc0.
4531         (lshrsi3): Likewise.
4532         (ashlsi3): Likewise.
4533         (subsf3): Use %Q for the MEM operand.
4534         (fix_truncsfsi2): Likewise.
4535         (floatsisf2): Likewise.
4536         (bitset): Remove early clobber from destination.
4537         (bitset_in_memory): Likewise.
4538         (lrintsf2): Clobber the cc0 register.
4539         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
4540         (rx_print_operand): Handle %N.
4541
4542 2010-06-16  Jan Hubicka  <jh@suse.cz>
4543
4544         * df-core.c (df_compact_blocks): Free problem_temps vector.
4545
4546 2010-06-16  Martin Jambor  <mjambor@suse.cz>
4547
4548         PR tree-optimization/43905
4549         * tree-sra.c: Include tree-inline.h.
4550         (create_abstract_origin): Removed.
4551         (modify_function): Version the call graph node instead of creating
4552         abstract origins and dealing with same_body aliases.
4553         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
4554         function is versionable.
4555         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
4556
4557 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
4558
4559         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
4560         (CHOOSE_DYNAMIC_LINKER): Update.
4561
4562 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
4563
4564         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
4565         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
4566         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
4567         *prefetch_3dnow_rex.
4568
4569 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
4570
4571         * target.h (struct asm_out):Add declare_constant_name field.
4572         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4573         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
4574         * output.h (default_asm_declare_constant_name): Declare.
4575         (assemble_label): Update prototype.
4576         * varasm.c (assemble_constant_contents): Use
4577         targetm.asm_out.declare_constant_name target hook.
4578         (assemble_label): Add 'file' argument.
4579         (default_asm_declare_constant_name): New function.
4580         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
4581         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
4582         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
4583
4584         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
4585         * config/darwin.c (darwin_asm_declare_constant_name): New function.
4586         (machopic_output_indirection): Update assemble_label argument list.
4587         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
4588         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4589
4590 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
4591
4592         PR middle-end/44391
4593         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4594         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
4595
4596 2010-06-15  Richard Guenther  <rguenther@suse.de>
4597
4598         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
4599
4600 2010-06-15  Paul Brook  <paul@codesourcery.com>
4601
4602         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
4603         hard-float ABI.
4604
4605 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
4606
4607         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
4608         don't get a vector type for output.
4609
4610 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
4611
4612         PR fortran/44536
4613         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
4614         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
4615         (LANG_HOOKS_DECLS): Add it.
4616         * gimplify.c (omp_notice_variable): Call
4617         lang_hooks.decls.omp_report_decl.
4618
4619 2010-06-15  Martin Jambor  <mjambor@suse.cz>
4620
4621         PR lto/44464
4622         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
4623         on the newly dead SSA name.
4624
4625 2010-06-15  Alan Modra  <amodra@gmail.com>
4626
4627         * doc/invoke.texi: Add mcmodel to powerpc options.
4628         * configure.ac: Add HAVE_LD_LARGE_TOC test.
4629         * configure: Regenerate.
4630         * config.in: Regenerate.
4631         * config/rs6000/linux64.opt (mcmodel): New.
4632         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
4633         (TARGET_CMODEL, SET_CMODEL): Define.
4634         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
4635         select CMODEL_MEDIUM default.
4636         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
4637         (TARGET_CMODEL): Define default.
4638         * config/rs6000/rs6000.c (cmodel): New variable.
4639         (rs6000_explicit_options): Add cmodel field.
4640         (rs6000_handle_option): Handle -mcmodel.
4641         (create_TOC_reference): Add largetoc_reg param.  Generate high,
4642         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
4643         (rs6000_delegitimize_address): Recognise new toc reference rtl
4644         and minimal-toc rtl.
4645         (rs6000_legitimize_reload_address): Handle new toc references.
4646         (print_operand_address): Handle legitimate_constant_pool_address_p
4647         match before lo_sum.
4648         (rs6000_eliminate_indexed_memrefs): Tidy.
4649         (rs6000_emit_move): Tweak threshold for inlining constants.
4650         Keep rs6000_emit_allocate_stack large stack frame offsets
4651         loaded into r0 inline.
4652         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
4653         (tocrel_base, tocrel_offset): New variables.
4654         (toc_relative_expr_p): Set them here.
4655         (print_operand_address): Skip over any offset on constant pool address.
4656         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
4657         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
4658         (offsettable_ok_by_alignment): New function.
4659         (rs6000_emit_move): Address suitably aligned local symbol_refs
4660         relative to the toc pointer for -mcmodel=medium.
4661         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
4662         strict param.  Allow lo_sum version of addressing.  Verify reg
4663         used for -mminimal-toc and -mcmodel != small.  Update all callers.
4664         * config/rs6000/constraints.md: Update for above change.
4665         * config/rs6000/predicates.md: Likewise.
4666         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
4667         code.
4668         (tls_gd): Split for -mcmodel=medium/large.
4669         (tls_gd_high, tls_gd_low): New.
4670         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
4671         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
4672         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
4673         (largetoc_high, largetoc_low): New.
4674         (cmptf_internal2): Add clobber.
4675         * config/rs6000/rs6000-protos.h: Update.
4676
4677 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
4678
4679         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
4680         true if no prefetch is going to be generated for a given group.
4681         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
4682         estimate the prefetch_count.
4683         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
4684         prefetch count by considering the unroll_factor and prefetch_mod
4685         for is_loop_prefetching_profitable.
4686
4687 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
4688
4689         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
4690         anything if the argument is not a MEM.
4691
4692 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
4693
4694         PR debug/43650
4695         PR debug/44181
4696         PR debug/44247
4697         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
4698         debug stmts.
4699         (canonicalize_loop_ivs): Likewise.
4700
4701 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
4702
4703         PR debug/43656
4704         * haifa-sched.c (setup_insn_reg_pressure_info,
4705         update_register_pressure): Reject debug insns.
4706         (ready_sort): Don't setup reg pressure for debug insns.
4707         (schedule_insn): Don't update reg pressure for debug insns.
4708
4709 2010-06-14  Richard Guenther  <rguenther@suse.de>
4710
4711         * lto-streamer.c (cached_bp): Remove.
4712         (bitpack_delete): Likewise.
4713         (bitpack_create): Likewise.
4714         (bp_get_next_word): Likewise.
4715         (bp_pack_value, bp_unpack_value): Move ...
4716         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
4717         Re-implement.
4718         (struct bitpack_d): Likewise.
4719         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4720         New inline functions.
4721         * lto-streamer-out.c (lto_output_bitpack): Remove.
4722         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
4723         (pack_value_fields): Adjust.
4724         (lto_write_tree): Likewise.
4725         (output_gimple_stmt): Likewise.
4726         (output_function): Likewise.
4727         * lto-streamer-in.c (input_gimple_stmt): Adjust.
4728         (input_function): Likewise.
4729         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
4730         (lto_input_bitpack): Remove.
4731         (lto_materialize_tree): Adjust.
4732         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4733         * lto-cgraph.c (lto_output_edge): Adjust.
4734         (lto_output_node): Likewise.
4735         (lto_output_varpool_node): Likewise.
4736         (lto_output_ref): Likewise.
4737         (input_node): Likewise.
4738         (input_varpool_node): Likewise.
4739         (input_ref): Likewise.
4740         (input_edge): Likewise.
4741         (output_node_opt_summary): Likewise.
4742         (input_node_opt_summary): Likewise.
4743         * ipa-pure-const.c (pure_const_write_summary): Likewise.
4744         (pure_const_read_summary): Likewise.
4745         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4746         (ipa_read_indirect_edge_info): Likewise.
4747         (ipa_write_node_info): Likewise.
4748         (ipa_read_node_info): Likewise.
4749
4750 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4751
4752         PR target/44534
4753         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4754         (vec_extract_lo_v16hi): Likewise.
4755         (vec_extract_lo_v32qi): Likewise.
4756
4757 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4758
4759         PR bootstrap/44426
4760         * tree.h (build_call_expr): Don't define as vararg macro, instead
4761         add a prototype.
4762         * builtins.c (build_call_nofold): Remove.
4763         (expand_builtin_int_roundingfn, expand_builtin_pow,
4764         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
4765         expand_builtin_memset_args, expand_builtin_strcmp,
4766         expand_builtin_strncmp, expand_builtin_memory_chk): Use
4767         build_call_nofold_loc instead of build_call_nofold.
4768         (build_call_expr): New function.
4769
4770         PR tree-optimization/44508
4771         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
4772         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
4773         don't eliminate trivially dead stmts.
4774         * tree-vrp.c (vrp_finalize): Pass false as last argument
4775         to substitute_and_fold.
4776         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
4777         to substitute_and_fold.
4778         * tree-ssa-ccp.c (ccp_finalize): Likewise.
4779
4780         PR bootstrap/44509
4781         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
4782
4783 2010-06-14  Ira Rosen  <irar@il.ibm.com>
4784
4785         PR tree-optimization/44507
4786         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
4787         to build initial vector for BIT_AND_EXPR.
4788         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4789
4790 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4791
4792         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
4793         adjust z10prop set_attr.
4794
4795 2010-06-13  Jan Hubicka  <jh@suse.cz>
4796
4797         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4798         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
4799         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
4800         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
4801         datastructure checks into checking asserts.
4802         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
4803         * tree-ssa-sccvn.c (VN_INFO): Likewise.
4804         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
4805         df_ref_create_structure): Likewise.
4806         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
4807         pool_free): Use gcc_checking_assert.
4808         * alias.c (get_alias_set): Likewise.
4809         * var-tracking.c (variable_htab_free, shared_hash_copy,
4810         canonicalize_values_mark, variable_merge_over_cur): Likewise.
4811         * lto-streamer.c (bp_unpack_value): Likewise.
4812
4813 2010-06-13  Richard Guenther  <rguenther@suse.de>
4814
4815         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
4816         Do not stream but initialize TYPE_CANONICAL to NULL.
4817         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4818         * gimple.c (gimple_types_compatible_p): Disregard
4819         TYPE_STRUCTURAL_EQUALITY_P.
4820         (gimple_register_type): Use TYPE_CANONICAL as cache.
4821         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4822         before registering common types.
4823         * config/i386/i386.c (ix86_function_arg_boundary): Do not
4824         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4825         * tree.h (TYPE_CANONICAL): Clarify documentation.
4826
4827 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
4828
4829         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4830         LIBCALL_VALUE): Remove macros.
4831         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4832         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4833         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4834         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4835         (ia64_function_value): Make static. Handle receiving the function
4836         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4837
4838 2010-06-12  Jan Hubicka  <jh@suse.cz>
4839
4840         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4841         at correct place.
4842
4843 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
4844
4845         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4846
4847 2010-06-12  Jan Hubicka  <jh@suse.cz>
4848
4849         * df-core.c (df_clear_bb_info): New function.
4850         (df_set_blocks): bb_info is always allocated.
4851         (df_get_bb_info): Use block_info_elt_size.
4852         (df_set_bb_info): Likewise.
4853         (df_compact_blocks): Update for new block_info.
4854         (grow_bb_info): New function.
4855         * df-problems.c (df_grow_bb_info): Move to df-core.c
4856         (df_rd_set_bb_info): Remove.
4857         (df_rd_free_bb_info): Do not free block pool.
4858         (df_rd_alloc): Do not create pool, use check for
4859         obstack presence instead of NULL pointer for new blocks.
4860         (df_rd_free): DO not free alloc pool; clear block_info.
4861         (problem_RD): Add size of block info structure.
4862         (df_lr_set_bb_info): Remove.
4863         (df_lr_free_bb_info): Do not free block pool.
4864         (df_lr_alloc): Do not create pool, use check for
4865         obstack presence instead of NULL pointer for new blocks.
4866         (df_lr_free): DO not free alloc pool; clear block_info.
4867         (problem_LR): Add size of block info structure.
4868         (df_live_set_bb_info): Remove.
4869         (df_live_free_bb_info): Do not free block pool.
4870         (df_live_alloc): Do not create pool, use check for
4871         obstack presence instead of NULL pointer for new blocks.
4872         (df_live_free): DO not free alloc pool; clear block_info.
4873         (problem_LIVE): Add size of block info structure.
4874         (problem_CHAIN): Add size of block info structure.
4875         (df_byte_lr_set_bb_info): Remove.
4876         (df_byte_lr_free_bb_info): Do not free block pool.
4877         (df_byte_lr_alloc): Do not create pool, use check for
4878         obstack presence instead of NULL pointer for new blocks.
4879         (df_byte_lr_free): DO not free alloc pool; clear block_info.
4880         (problem_BYTE_LR): Add size of block info structure.
4881         (problem_NOTE): Add size of block info structure.
4882         (df_byte_MD_set_bb_info): Remove.
4883         (df_byte_MD_free_bb_info): Do not free block pool.
4884         (df_byte_MD_alloc): Do not create pool, use check for
4885         obstack presence instead of NULL pointer for new blocks.
4886         (df_byte_MD_free): DO not free alloc pool; clear block_info.
4887         (problem_BD): Add size of block info structure.
4888         * df-scan.c (df_scan_free_internal): Free block pool.
4889         (df_scan_set_bb_info): Remove.
4890         (df_scan_free_bb_info): Check for artificial_defs instead
4891         of bb_info being non-NULL.
4892         (df_scan_alloc): DO not create df_scan_block pool.
4893         (problem_SCAN): Set size of block info.
4894         (df_bb_refs_record): Do not allocate bb_info.
4895         * df.h (df_problem): Add block_info_elt_size.
4896         (struct dataflow): Change block_info to void *.
4897         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4898         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4899         in-line structures.
4900
4901 2010-06-12  Jan Hubicka  <jh@suse.cz>
4902
4903         PR tree-optimize/44485
4904         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4905         containing use of return value of noreturn function.
4906
4907 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
4908
4909         * targhooks.c (default_function_value): Don't use
4910         FUNCTION_OUTGOING_VALUE.
4911         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4912         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4913
4914 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
4915
4916         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4917         Add crtfastmath.o to extra_parts.
4918         * config/mips/crtfastmath.c: New.
4919         * config/mips/linux.h (ENDFILE_SPEC): New.
4920
4921 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
4922
4923         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4924         old_type in parameter.
4925         (gcc_type_for_value): Update call to gcc_type_for_interval.
4926         (compute_type_for_level_1): Renamed compute_type_for_level.
4927         Update call to gcc_type_for_interval.
4928
4929 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
4930
4931         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4932         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4933
4934 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
4935
4936         * opts-common.c: Include options.h.
4937         (integral_argument): Move from opts.c.
4938         (decode_cmdline_option): New.  Based on read_cmdline_option.
4939         * opts.c (integral_argument): Move to opts-common.c.
4940         (read_cmdline_option): Move most contents to
4941         decode_cmdline_option.  Use %qs in diagnostics.
4942         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4943         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4944         decode_cmdline_option): New.
4945
4946 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4947
4948         PR target/44481
4949         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4950         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4951         (partiysi2_cmp): Ditto.
4952         (*partiyhi2_cmp): Ditto.
4953         (*parityqi2_cmp): Remove.
4954
4955 2010-06-11  Jan Hubicka  <jh@suse.cz>
4956
4957         * bitmap.h (bmp_iter_next_bit): New.
4958         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4959
4960 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
4961             Eric Botcazou  <ebotcazou@adacore.com>
4962
4963         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4964         computed cost.
4965
4966 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4967
4968         * config/i386/i386.md (unspec): New define_c_enum.
4969         (unspecv): Ditto.
4970
4971 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4972
4973         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4974
4975 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
4976
4977         PR middle-end/44483
4978         * tree-if-conv.c (bb_predicate_s): New struct.
4979         (bb_predicate_p): New.
4980         (bb_has_predicate): New.
4981         (bb_predicate): New.
4982         (set_bb_predicate): New.
4983         (bb_predicate_gimplified_stmts): New.
4984         (set_bb_predicate_gimplified_stmts): New.
4985         (add_bb_predicate_gimplified_stmts): New.
4986         (init_bb_predicate): New.
4987         (free_bb_predicate): New.
4988         (is_predicated): Use bb_predicate.
4989         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4990         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
4991         before processing their successors.
4992         (clean_predicate_lists): Removed.
4993         (find_phi_replacement_condition): Use bb_predicate.
4994         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
4995         computations.
4996         (insert_gimplified_predicates): New.
4997         (combine_blocks): Call insert_gimplified_predicates.
4998         (tree_if_conversion): Call free_bb_predicate instead of
4999         clean_predicate_lists.
5000
5001 2010-10-11  Paul Brook  <paul@codesourcery.com>
5002
5003         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
5004         * config/arm/arm.c (all_architectures): Change v7e-m default to
5005         cortexm4.
5006         * config/arm/arm-cores.def: Add cortex-m4.
5007         * config/arm/arm-tune.md: Regenerate.
5008
5009 2010-06-11  Jan Hubicka  <jh@suse.cz>
5010
5011         * ipa-pure-const.c (special_builtlin_state): New function.
5012         (check_call): Use it instead of special casign BUILT_IN_RETURN.
5013         (propagate_pure_const): Use it.
5014
5015 2010-06-11  Jan Hubicka  <jh@suse.cz>
5016
5017         * df-problems.c (df_live_scratch): Convert to bitmap_head.
5018         (df_live_alloc): Initialize df_live_scratch when initializing
5019         problem_data.
5020         (df_live_transfer_function): Update uses of df_live_scratch.
5021         (df_live_free): Free problem_data; clear df_live_scratch before
5022         releasing the obstack.
5023         (df_md_free): Free problem data.
5024
5025 2010-06-11  Jan Hubicka  <jh@suse.cz>
5026
5027         * doc/invoke.texi (Wsuggest-attribute): Document.
5028         (Wmissing-noreturn): Remove.
5029         * ipa-pure-const.c (warn_function_noreturn): New function.
5030         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
5031         warn_missing_noreturn.
5032         * common.opt (Wsuggest-attribute=noreturn): New.
5033         * tree-flow.h (warn_function_noreturn): Declare.
5034         * tree-cfg.c (execute_warn_function_noreturn): Use
5035         warn_function_noreturn.
5036         (gate_warn_function_noreturn): New.
5037         (pass_warn_function_noreturn): Update.
5038
5039 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5040
5041         * c-typeck.c (handle_warn_cast_qual): Add loc
5042         parameter. Improve warning message.
5043         (build_c_cast): Pass location to handle_warn_cast_qual.
5044
5045 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
5046
5047         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
5048         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
5049         insn mnemonic.
5050         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
5051
5052 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
5053
5054         Fix bootstap on mips
5055         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
5056         be naming typedefs.
5057
5058 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
5059
5060         * system.h (helper_const_non_const_cast): New inline for
5061         gcc version <= 4.0.
5062         (CONST_CAST2): For gcc version <= 4.0 use
5063         new helper to do const/non-const casting.
5064
5065 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5066
5067         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
5068         * Makefile.in (OBJS-common): Include insn-enums.o.
5069         (insn-enums.o): New rule.
5070         (simple_generated_c): Add insn-enums.c.
5071         (build/genenums.o): New rule.
5072         (genprogmd): Add "enums".
5073         * genconstants.c (print_enum_type): Declare a C string array
5074         for each enum.
5075         * genenums.c: New file.
5076         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
5077         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
5078         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
5079
5080 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5081
5082         * doc/md.texi (define_enum_attr): Document.
5083         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
5084         * read-md.h (lookup_enum_type): Declare.
5085         * read-md.c (lookup_enum_type): New function.
5086         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
5087         * genattrtab.c (attr_desc): Add an enum_name field.
5088         (evaluate_eq_attr): Take the associated attribute as argument.
5089         Get the enum prefix from the enum_name field, if defined.
5090         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
5091         (simplify_test_exp): Pass attr to evaluate_eq_attr.
5092         (add_attr_value): New function, split out from...
5093         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
5094         (write_test_expr): Pass attr to evaluate_eq_attr.
5095         (write_attr_get): Use the enum_name as the enum tag, if defined.
5096         (write_attr_valueq): Use the enum_name as a prefix, if defined.
5097         (find_attr): Initialize enum_name.
5098         (main): Handle DEFINE_ENUM_ATTR.
5099         * gensupport.c (process_rtx): Likewise.
5100         * config/mips/mips.h (mips_tune_attr): Delete.
5101         * config/mips/mips.md (cpu): Use define_attr_enum.
5102
5103 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5104
5105         * doc/md.texi (define_c_enum, define_enum): Document.
5106         * read-md.h (md_constant): Add a parent_enum field.
5107         (enum_value, enum_type): New structures.
5108         (upcase_string, traverse_enum_types): Declare.
5109         * read-md.c (enum_types): New variable.
5110         (upcase_string, add_constant): New functions.
5111         (handle_constants): Don't create the hash table here.
5112         Use add_constant.
5113         (traverse_md_constants): Don't check for a null md_constants.
5114         (decimal_string, handle_enum, traverse_enum_types): New functions.
5115         (read_md_files): Initialize md_constants and md_enums.
5116         * genconstants.c (print_md_constant): Ignore info argument.
5117         Only print constants that belong to no enum.
5118         (print_enum_type): New function.
5119         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
5120         for each defined enum type.
5121         * config/mips/mips.md (processor): New define_enum.
5122         (unspec): New define_c_enum.
5123         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
5124         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
5125         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
5126         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
5127         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5128         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5129         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5130         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5131         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5132         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5133         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5134         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5135         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5136         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5137         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5138         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5139         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5140         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5141         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5142         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5143         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5144         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5145         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5146         (UNSPEC_RDDSP): Move to mips-dsp.md.
5147         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5148         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5149         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5150         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5151         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5152         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5153         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5154         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5155         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5156         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5157         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5158         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5159         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5160         Moved to mips-dspr2.md.
5161         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5162         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5163         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5164         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5165         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5166         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5167         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5168         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5169         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5170         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5171         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5172         UNSPEC_LOONGSON_PSADBH)
5173         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5174         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5175         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5176         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5177         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5178         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5179         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5180         (cpu): Update comment.
5181         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5182         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5183         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5184         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5185         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5186         UNSPEC_LOONGSON_PCMPEQ)
5187         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5188         UNSPEC_LOONGSON_PINSR_0)
5189         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5190         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5191         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5192         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5193         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5194         UNSPEC_LOONGSON_PSADBH)
5195         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5196         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5197         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5198         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5199         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5200         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5201         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5202         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5203         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5204         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5205         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5206         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5207         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5208         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5209         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5210         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5211         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5212         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5213         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5214         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5215         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5216         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5217         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5218         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5219         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5220         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5221         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5222         (UNSPEC_RDDSP): Moved from mips.md.
5223         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5224         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5225         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5226         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5227         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5228         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5229         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5230         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5231         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5232         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5233         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5234         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5235         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5236         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5237         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5238         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5239         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5240         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5241         (UNSPEC_SCC): Moved from mips.md.
5242         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5243         "processor_type" to "processor".
5244         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5245         * config/mips/mips.h (processor_type): Delete.
5246         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5247         "processor_type" to "processor".
5248
5249 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5250
5251         * configure.ac (tm_include_list): Add insn-constants.h.
5252         * configure: Regenerate.
5253         * Makefile.in (GTM_H): Move insn-constants.h here from...
5254         (TM_H): ...here.
5255         * mkconfig.sh: Remove special handling for insn-constants.h.
5256
5257 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5258
5259         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5260         (BUILD_MD): ...this new variable.
5261         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5262         that include the old contents of simple_generated_h and
5263         simple_generated_c.
5264         (simple_generated_h, simple_generated_c): Include them.  Add
5265         insn-constants.h.
5266         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5267         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5268         Remove these dependencies from the main rule and include
5269         insn-conditions.md in the command line only if it appears
5270         in the dependency list.
5271         (insn-constants.h, s-constants): Delete.
5272         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5273         or gensupport.h.
5274         (build/genmddeps.o): Likewise.
5275         (genprogrtl): New variable that contains everything from genprogmd
5276         except mddeps and constants.
5277         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
5278         depend on $(BUILD_MD)
5279         (genprog): New variable.  Make these programs depend on
5280         $(BUILD_ERRORS).
5281         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5282         (main): Use read_md_files instead of init_rtx_reader_args.
5283         * genconstants.c: As for genmddeps.c.
5284         * read-md.h (read_skip_construct): Declare.
5285         * read-md.c (read_skip_construct): New function.
5286         (handle_file): Allow a null handle_directive, skipping the
5287         construct if so.
5288         (parse_include): Update the comment accordingly.
5289
5290 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5291
5292         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5293         * genmddeps.c: Include read-md.h.
5294         (main): Call init_rtx_reader_args instead of init_md_reader_args.
5295         * genattr.c (main): Likewise.
5296         * genattrtab.c (main): Likewise.
5297         * genautomata.c (main): Likewise.
5298         * gencodes.c (main): Likewise.
5299         * genconditions.c (main): Likewise.
5300         * genconfig.c (main): Likewise.
5301         * genconstants.c (main): Likewise.
5302         * genemit.c (main): Likewise.
5303         * genextract.c (main): Likewise.
5304         * genflags.c (main): Likewise.
5305         * genopinit.c (main): Likewise.
5306         * genoutput.c (main): Likewise.
5307         * genpeep.c (main): Likewise.
5308         * genrecog.c (main): Likewise.
5309         * genpreds.c (main): Likewise.
5310         * gensupport.h (in_fname): Move to read-md.h.
5311         (init_md_reader_args_cb): Rename to...
5312         (init_rtx_reader_args_cb): ...this and return a bool.
5313         (init_md_reader_args): Rename to...
5314         (init_rtx_reader_args): ...this and return a bool.
5315         (include_callback): Move to read-md.h.
5316         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5317         (file_name_list, first_dir_md_include): Move to read-md.c
5318         (first_bracket_include): Delete unused variable.
5319         (last_dir_md_include): Move to read-md.c.
5320         (process_include): Delete, moving code to read-md.c:handle_include.
5321         (process_rtx): Don't handle INCLUDE.
5322         (save_string): Delete.
5323         (rtx_handle_directive): New function.
5324         (init_md_reader_args_cb): Rename to...
5325         (init_rtx_reader_args_cb): ...this and return a boolean success value.
5326         Use read_md_args.
5327         (init_md_reader_args): Rename to...
5328         (init_rtx_reader_args): ...this and return a boolean success value.
5329         * rtl.def (INCLUDE): Delete.
5330         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
5331         argument.
5332         * read-rtl.c (read_conditions): Don't gobble ')' here.
5333         (read_mapping): Likewise.
5334         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
5335         Handle top-level non-rtx constructs here rather than in read_rtx_1.
5336         Store the whole queue in *X.  Remove call to init_md_reader.
5337         (read_rtx_1): Rename to...
5338         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
5339         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
5340         here.
5341         (read_nested_rtx): New function.  Handle (nil) here rather than
5342         in read_rtx_code.
5343         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
5344         gobble ')' here.
5345         * read-md.h (directive_handler_t): New type.
5346         (in_fname, include_callback): Moved from read-md.h.
5347         (read_constants, init_md_reader): Delete.
5348         (read_md_files): Declare.
5349         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
5350         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
5351         from gensupport.c.
5352         (read_constants): Rename to...
5353         (handle_constants): ...this.  Don't gobble ')' here.
5354         (handle_include, handle_file, handle_toplevel_file)
5355         (parse_include): New functions, mostly taken from gensupport.c.
5356         (init_md_reader): Subsume into...
5357         (read_md_files): ...this new function.
5358
5359 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5360
5361         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
5362         (unread_char): Decrement read_md_lineno after putting back '\n'.
5363         * read-md.c (fatal_with_file_and_line): Push back any characters
5364         that we decide not to add to the context.
5365         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
5366         fatal_expected_char in cases where '/' ends a line (for example).
5367         (read_name): Don't increment read_md_lineno here.
5368         (read_escape): Likewise.
5369         (read_quoted_string): Likewise.
5370         (read_braced_string): Likewise.
5371
5372 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5373
5374         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
5375         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
5376         * genconstants.c: Include read-md.h.
5377         * read-rtl.c (md_constants): Move to read-md.c.
5378         (md_name): Move to read-md.h.
5379         (initialize_iterators): Use leading_string_hash instead of def_hash
5380         and leading_string_eq_p instead of def_name_eq_p.
5381         (read_name): Move to read-md.c.
5382         (def_hash, def_name_eq_p): Delete.
5383         (read_constants, traverse_md_constants): Move to read-md.c.
5384         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
5385         * read-md.h: Include hashtab.h.
5386         (md_name): Moved from read-rtl.c.
5387         (md_constant): Moved from read-md.h.
5388         (leading_string_hash, leading_string_eq_p, read_name)
5389         (read_constants, traverse_md_constants): Declare.
5390         * read-md.c (md_constants): Moved from read-rtl.c.
5391         (leading_string_hash, leading_string_eq_p): New functions.
5392         (read_name, read_constants, traverse_md_constants): Moved from
5393         read-rtl.c.
5394
5395 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5396
5397         * read-rtl.c (md_name): New structure.
5398         (read_name): Take an md_name instead of a buffer pointer.
5399         Use the "string" field instead of strcpy when expanding constants.
5400         (read_constants): Remove the tmp_char argument.  Update the calls
5401         to read_name, using two local name buffers instead of the tmp_char
5402         argument.  Merge the constant-creation code.
5403         (read_conditions): Remove the tmp_char argument.  Update the calls
5404         to read_name, using a local name buffer instead of the tmp_char
5405         argument.
5406         (read_mapping): Replace tmp_char variable with a local name buffer.
5407         Update the calls to read_name.
5408         (read_rtx_1): Likewise.  Update the calls to read_constants and
5409         read_conditions.
5410
5411 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5412
5413         * Makefile.in (build/read-md.o): Depend on errors.h.
5414         * read-md.h (error_with_line): Declare.
5415         * read-md.c: Include errors.h.
5416         (message_with_line_1): New function, extracted from...
5417         (message_with_line): ...here.
5418         (error_with_line): New function.
5419         * genattrtab.c: If a call to message_with_line is followed by
5420         "have_error = 1;", replace both statements with a call to
5421         error_with_line.
5422         * genoutput.c: Likewise.
5423         * genpreds.c: Likewise.
5424         * genrecog.c: If a call to message_with_line is followed by
5425         "error_count++;", replace both statements with a call to
5426         error_with_line.
5427         (errorcount): Delete.
5428         (main): Don't check it.
5429         * gensupport.c: If a call to message_with_line is followed by
5430         "errors = 1;", replace both statements with a call to error_with_line.
5431         (errors): Delete.
5432         (process_define_cond_exec): Check have_error instead of errors.
5433         (init_md_reader_args_cb): Likewise.  Don't set errors.
5434
5435 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5436
5437         * read-md.h (read_md_file): Declare.
5438         (read_char, unread_char): New functions.
5439         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5440         (read_quoted_string, read_string): Remove FILE * argument.
5441         * read-md.c (read_md_file): New variable.
5442         (read_md_filename, read_md_lineno): Update comments and remove
5443         unnecessary initialization.
5444         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5445         (read_escape, read_quoted_string, read_braced_string, read_string):
5446         Remove FILE * argument.  Update calls accordingly, using read_char
5447         and unread_char instead of getc and ungetc.
5448         * rtl.h (read_rtx): Remove FILE * argument.
5449         * read-rtl.c (iterator_group): Remove FILE * argument from
5450         "find_builtin".
5451         (iterator_traverse_data): Remove "infile" field.
5452         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5453         (add_mapping, read_name, read_constants, read_conditions)
5454         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5455         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5456         Remove file arguments from all calls, using read_char and unread_char
5457         instead of getc and ungetc.
5458         * gensupport.c (process_include): Preserve read_md_file around
5459         the include.  Set read_md_file to the handle of the included file.
5460         Update call to read_rtx.
5461         (init_md_reader_args_cb): Set read_md_file to the handle of the file
5462         and remove local FILE *.  Update calls to read_rtx.
5463
5464 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5465
5466         * read-md.h (read_rtx_lineno): Rename to...
5467         (read_md_lineno): ...this.
5468         (read_rtx_filename): Rename to...
5469         (read_md_filename): ...this.
5470         (copy_rtx_ptr_loc): Rename to...
5471         (copy_md_ptr_loc): ...this.
5472         (print_rtx_ptr_loc): Rename to...
5473         (print_md_ptr_loc): ...this.
5474         * read-md.c: Likewise.  Update references after renaming.
5475         (string_obstack): Replace RTL with MD in comment.
5476         (set_rtx_ptr_loc): Rename to...
5477         (set_md_ptr_loc): ...this.
5478         (get_rtx_ptr_loc): Rename to...
5479         (get_md_ptr_loc): ...this.
5480         * genconditions.c: Update references after renaming.
5481         * genemit.c: Likewise.
5482         * genoutput.c: Likewise.
5483         * genpreds.c: Likewise.
5484         * gensupport.c: Likewise.
5485         * read-rtl.c: Likewise.
5486
5487 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5488
5489         * Makefile.in (READ_MD_H): New variable.
5490         (BUILD_RTL): Add build/read-md.o.
5491         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
5492         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5493         (build/genattrtab.o, build/genconditions.o build/genemit.o)
5494         (build/genextract.o, build/genflags.o, build/genoutput.o)
5495         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
5496         (build/read-md.o): New rule.
5497         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
5498         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
5499         * coretypes.h: ...here.
5500         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
5501         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
5502         * genattr.c: Include read-md.h.
5503         * genattrtab.c: Likewise.
5504         * genconditions.c: Likewise.
5505         * genemit.c: Likewise.
5506         * genextract.c: Likewise.
5507         * genflags.c: Likewise.
5508         * genoutput.c: Likewise.
5509         * genpreds.c: Likewise.
5510         * genrecog.c: Likewise.
5511         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
5512         (join_c_conditions, print_c_condition, read_rtx_filename)
5513         (read_rtx_lineno): Move to read-md.h.
5514         * read-rtl.c: Include read-md.h.
5515         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
5516         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
5517         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
5518         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
5519         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
5520         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
5521         (read_braced_string, read_string): Move to read-md.c.
5522         (read_rtx): Move some initialization to init_md_reader and call
5523         init_md_reader here.
5524         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
5525         Move to read-md.h.
5526         * gensupport.c: Include read-md.h.
5527         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
5528         * read-md.h, read-md.c: New files.
5529
5530 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
5531
5532         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5533         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5534         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
5535         * config/moxie/moxie.c (moxie_function_value): Make static.
5536         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
5537         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5538
5539 2010-06-10  Martin Jambor  <mjambor@suse.cz>
5540
5541         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
5542         * dbgcnt.def (tree_sra): New counter.
5543         * tree-sra.c: Include dbgcnt.h.
5544         (gate_intra_sra): Check tree_sra debug counter.
5545
5546 2010-06-10  Martin Jambor  <mjambor@suse.cz>
5547
5548         PR tree-optimization/44258
5549         * tree-sra.c (build_access_subtree): Return false iff there is a
5550         partial overlap.
5551         (build_access_trees): Likewise.
5552         (analyze_all_variable_accesses): Disqualify candidates if
5553         build_access_trees returns true for them.
5554
5555 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
5556
5557         PR debug/41371
5558         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
5559         tail-recurse into canonical node.  Fast-forward over
5560         non-canonical VALUEs.
5561
5562 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
5563
5564         PR boostrap/44470
5565         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
5566         (*addsi_1_zext) <TYPE_LEA>: Likewise.
5567         (add lea splitter): Likewise.
5568         (add_zext lea splitter): Likewise.
5569
5570 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
5571
5572         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
5573
5574 2010-06-10  Jan Hubicka  <jh@suse.cz>
5575
5576         * df-problems.c (df_live_problem_data): Add live_bitmaps.
5577         (df_live_alloc): Initialize problem data and live_osbtacks.
5578         (df_live_finalize): Remove obstack, problem data; do not
5579         clear all bitmaps.
5580         (df_live_top_dump, df_live_bottom_dump): Do not dump old
5581         data when not allocated.
5582         (df_live_verify_solution_start): Do not allocate problem data.
5583         (df_live_verify_solution_end): Check if out is allocated.
5584         (struct df_md_problem_data): New structure.
5585         (df_md_alloc): Allocate problem data.
5586         (df_md_free): Free problem data; do not clear bitmaps.
5587
5588 2010-06-10  Jan Beulich  <jbeulich@novell.com>
5589
5590         PR bootstrap/37304
5591         * configure.ac: Replace $() with ${} when intending to expand
5592         variables rather than invoking commands.
5593         * configure: Re-generate.
5594
5595 2010-06-10  Jan Hubicka  <jh@suse.cz>
5596
5597         PR rtl-optimization/44460
5598         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5599         TYPE_NEEDS_CONSTRUCTING sanity check.
5600
5601 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
5602
5603         * doc/include/fdl.texi: Move to GFDL version 1.3.
5604
5605         * doc/cpp.texi: Move to GFDL version 1.3.
5606         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
5607         * doc/gccint.texi: Move to GFDL version 1.3.
5608         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
5609         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
5610         * doc/invoke.texi: Move to GFDL version 1.3.
5611
5612 2010-06-09  Jan Hubicka  <jh@suse.cz>
5613
5614         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
5615         Break out from ...
5616         (propagate) ... here; swap the order.
5617
5618 2010-06-09  Jan Hubicka  <jh@suse.cz>
5619
5620         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
5621         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
5622         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
5623         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
5624
5625 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
5626
5627         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
5628         Do not the gather memory reference in the outer loop if the step
5629         is not a constant.
5630
5631 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
5632
5633         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
5634         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
5635         8 to 4.  Minor change of the related comments.
5636
5637 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5638
5639         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
5640         the scev analysis when the variable is not used outside the loop
5641         in a close phi node: call compute_overall_effect_of_inner_loop.
5642
5643 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5644
5645         * graphite-sese-to-poly.c (single_pred_cond): Renamed
5646         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
5647         (build_sese_conditions_before): Renamed call to single_pred_cond.
5648         (build_sese_conditions_after): Same.
5649
5650 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5651
5652         * graphite-poly.h: Fix comments and indentation.
5653         * graphite-sese-to-poly.c: Same.
5654         (build_sese_conditions_before): Compute stmt and gbb only when needed.
5655         * tree-chrec.c: Fix comments and indentation.
5656         (tree-ssa-loop-niter.c): Same.
5657
5658 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
5659
5660         PR rtl-optimization/42461
5661         * dce.c (deletable_insn_p): Return true for const or pure calls again.
5662         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
5663
5664 2010-06-09  Jan Hubicka  <jh@suse.cz>
5665
5666         * bitmap.c (bitmap_and): Walk array forward.
5667         (bitmap_and_compl_into): Likewise.
5668         (bitmap_xor): Likewise.
5669         (bitmap_xor_into):  Likewise.
5670         (bitmap_equal_p): Likewise.
5671         (bitmap_intersect_p): Likewise.
5672         (bitmap_intersect_compl_p): Likewise.
5673         (bitmap_ior_and_into): Likewise.
5674         (bitmap_elt_copy): Likewise.
5675         (bitmap_and_compl): Likewise.
5676         (bitmap_elt_ior): Likewise.
5677
5678 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
5679
5680         * opts-common.c (prune_options): Ensure replacement argv array
5681         is correctly terminated by a NULL entry.
5682
5683 2010-06-09  Jan Hubicka  <jh@suse.cz>
5684
5685         * cgraph.h (varpool_first_static_initializer,
5686         varpool_next_static_initializer): Make checking only when
5687         checking enabled.
5688         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
5689         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
5690         gcc_assert to gcc_checking_assert.
5691         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
5692         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
5693         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
5694         op_iter_init_phiuse, op_iter_init_phidef,
5695         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
5696         gcc_checking_assert.
5697         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
5698         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
5699         partition_is_global, live_on_entry, live_on_exit,
5700         live_merge_and_clear): Likewise.
5701         * system.h (gcc_checking_assert): New macro.
5702         * gimple.h (set_bb_seq): Use gcc_checking_assert.
5703
5704 2010-06-09  Jason Merrill  <jason@redhat.com>
5705
5706         * Makefile.in (TAGS): Collect tags info from c-family.
5707
5708 2010-06-09  Jan Hubicka  <jh@suse.cz>
5709
5710         * gimple.h (gcc_gimple_checking_assert): New macro.
5711         (gimple_set_def_ops, gimple_set_use_ops,
5712         gimple_set_vuse, gimple_set_vdef,
5713         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
5714         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
5715         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
5716         gimple_asm_output_op, gimple_asm_output_op_ptr,
5717         gimple_asm_set_output_op, gimple_asm_clobber_op,
5718         gimple_asm_set_clobber_op, gimple_asm_label_op,
5719         gimple_asm_set_label_op, gimple_try_set_kind,
5720         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5721         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5722         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5723         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5724         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5725         gimple_omp_for_set_initial, gimple_omp_for_final,
5726         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5727         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5728         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5729         conditional with ENABLE_GIMPLE_CHECKING.
5730         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5731
5732 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
5733
5734         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5735         (get_computation_cost_at): Use it.
5736         (determine_use_iv_cost_condition): Likewise.
5737         (determine_iv_cost): Likewise.
5738
5739 2010-06-09  Richard Guenther  <rguenther@suse.de>
5740
5741         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5742         replace constants.
5743
5744 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
5745
5746         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5747
5748 2010-06-09  Martin Jambor  <mjambor@suse.cz>
5749
5750         PR tree-optimization/44423
5751         * tree-sra.c (dump_access): Dump also grp_assignment_read.
5752         (analyze_access_subtree): Pass negative allow_replacements to children
5753         if the current type is scalar.
5754
5755 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5756
5757         PR testsuite/42843
5758         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
5759         * doc/plugins.texi (Plugin license check): Update information
5760         on type of plugin_is_GPL_compatible.
5761         * Makefile.in (PLUGINCC): Define as $(COMPILER).
5762         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
5763
5764 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
5765
5766         * config/arm/arm.c (thumb2_reorg): New function.
5767         (arm_reorg): Call it.
5768         * config/arm/thumb2.md (define_peephole2 for flag clobbering
5769         arithmetic operations): Delete.
5770
5771 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
5772
5773         PR target/44067
5774         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
5775         e500v2 target.
5776
5777 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5778
5779         PR plugins/44459
5780         * gcc-plugin.h: Encapsulate all declarations in extern "C".
5781
5782 2010-06-08  Jan Hubicka  <jh@suse.cz>
5783
5784         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
5785         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
5786
5787 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
5788
5789         PR tree-optimization/39874
5790         PR middle-end/28685
5791         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
5792         Declare.
5793         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
5794         same_bool_result_p): New.
5795         (and_var_with_comparison, and_var_with_comparison_1,
5796         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
5797         (or_var_with_comparison, or_var_with_comparison_1,
5798         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
5799         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
5800         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
5801         of combine_comparisons.
5802         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
5803
5804 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
5805
5806         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5807         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5808         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
5809         pdp11_function_value_regno_p): New functions.
5810         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5811         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5812
5813 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
5814
5815         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
5816         Thumb-2 in the MINUS case.
5817
5818 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5819
5820         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5821
5822         * doc/gty.texi (GTY Options): Document typed GC allocation and
5823         variable_size GTY option.
5824
5825         * ggc-internal.h: New.
5826
5827         * ggc.h: Update copyright year.
5828         (digit_string): Move to stringpool.c.
5829         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5830         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5831         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5832         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5833         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5834         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5835         (ggc_force_collect, ggc_get_size, ggc_statistics)
5836         (ggc_print_common_statistics): Move to ggc-internal.h.
5837         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5838         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5839         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5840         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5841         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5842         (ggc_alloc_zone_pass_stat): Remove.
5843         (ggc_internal_alloc_stat, ggc_internal_alloc)
5844         (ggc_internal_cleared_alloc_stat): New.
5845         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5846         (ggc_internal_vec_alloc_stat)
5847         (ggc_internal_cleared_vec_alloc_stat)
5848         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5849         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5850         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5851         (ggc_cleared_alloc_ptr_array_two_args): New.
5852         (htab_create_ggc, splay_tree_new_ggc): Redefine.
5853         (ggc_splay_alloc): Change the type of the first argument to
5854         enum gt_types_enum.
5855         (ggc_alloc_string): Make macro.
5856         (ggc_alloc_string_stat): New.
5857         (ggc_strdup): Redefine.
5858         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5859         (ggc_alloc_rtvec_sized): New.
5860         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5861         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5862         (ggc_internal_cleared_alloc_zone_stat)
5863         (ggc_internal_zone_alloc_stat)
5864         (ggc_internal_zone_cleared_alloc_stat)
5865         (ggc_internal_zone_vec_alloc_stat)
5866         (ggc_alloc_zone_rtx_def_stat)
5867         (ggc_alloc_zone_tree_node_stat)
5868         (ggc_alloc_zone_cleared_tree_node_stat)
5869         (ggc_alloc_cleared_gimple_statement_d_stat): New.
5870
5871         * ggc-common.c: Include ggc-internal.h.
5872         (ggc_internal_cleared_alloc_stat): Rename from
5873         ggc_alloc_cleared_stat.
5874         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5875         (ggc_calloc): Remove.
5876         (ggc_cleared_alloc_htab_ignore_args): New.
5877         (ggc_cleared_alloc_ptr_array_two_args): New.
5878         (ggc_splay_alloc): Add obj_type parameter.
5879         (init_ggc_heuristics): Formatting fixes.
5880
5881         * ggc-none.c: Update copyright year.
5882         (ggc_alloc_stat): Rename to ggc_alloc_stat.
5883         (ggc_alloc_cleared_stat): Rename to
5884         ggc_internal_cleared_alloc_stat.
5885         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5886
5887         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
5888         Remove references to ggc_alloc in comments.
5889         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5890         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5891         (new_ggc_zone, destroy_ggc_zone): Remove.
5892         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5893
5894         * ggc-zone.c: Include ggc-internal.h.  Remove references to
5895         ggc_alloc in comments.
5896         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5897         (ggc_internal_alloc_zone_pass_stat): New.
5898         (ggc_internal_cleared_alloc_zone_stat): New.
5899         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5900         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5901         (new_ggc_zone, destroy_ggc_zone): Remove.
5902
5903         * stringpool.c: Update copyright year.  Include ggc-internal.h
5904         (digit_vector): Make static.
5905         (digit_string): Moved from ggc.h.
5906         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5907         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5908
5909         * Makefile.in (GGC_INTERNAL_H): New.
5910         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5911         $(GGC_INTERNAL_H) to dependencies.
5912
5913         * gentype.c: Update copyright year.
5914         (walk_type): Accept variable_size GTY option.
5915         (USED_BY_TYPED_GC_P): New macro.
5916         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
5917         whitespace at the end of strings.
5918         (get_type_specifier, variable_size_p): New functions.
5919         (alloc_quantity, alloc_zone): New enums.
5920         (write_typed_alloc_def): New function.
5921         (write_typed_struct_alloc_def): Likewise.
5922         (write_typed_typed_typedef_alloc_def): Likewise.
5923         (write_typed_alloc_defns): Likewise.
5924         (output_typename, write_splay_tree_allocator_def): Likewise.
5925         (write_splay_tree_allocators): Likewise.
5926         (main): Call write_typed_alloc_defns and
5927         write_splay_tree_allocators.
5928
5929         * lto-streamer.h (lto_file_decl_data_ptr): New.
5930
5931         * passes.c (order): Define using cgraph_node_ptr.
5932
5933         * strinpool.c (struct string_pool_data): Declare nested_ptr using
5934         ht_identifier_ptr.
5935
5936         * gimple.h (union gimple_statement_d): Likewise.
5937
5938         * rtl.h (struct rtx_def): Likewise.
5939         (struct rtvec_def): Likewise.
5940
5941         * tree.h (union tree_node): Likewise.
5942
5943         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5944
5945         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5946
5947         * tree-scalar-evolution.c (scev_initialize): Likewise.
5948
5949         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5950
5951         * dwarf2asm.c (dw2_force_const_mem): Likewise.
5952
5953         * omp-low.c (lower_omp_critical): Likewise.
5954
5955         * bitmap.h (struct bitmap_head_def): Update comment to not
5956         reference ggc_alloc.
5957
5958         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5959
5960         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5961
5962         * ipa-prop.c (duplicate_ggc_array): Rename to
5963         duplicate_ipa_jump_func_array.  Use typed GC allocation.
5964         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5965
5966         * gimple.c (gimple_alloc_stat): Use
5967         ggc_alloc_cleared_gimple_statement_d_stat.
5968
5969         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5970
5971         * tree.c (make_node_stat): Use
5972         ggc_alloc_zone_cleared_tree_node_stat.
5973         (make_tree_vec_stat): Likewise.
5974         (build_vl_exp_stat): Likewise.
5975         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5976         (make_tree_binfo_stat): Likewise.
5977         (tree_cons_stat): Likewise.
5978
5979         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5980         (shallow_copy_rtx_stat): Likewise.
5981         (make_node_stat): Likewise.
5982
5983         * lto-symtab.c: Fix comment.
5984
5985         * tree-cfg.c (create_bb): Update comment to not reference
5986         ggc_alloc_cleared.
5987         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5988
5989         * varpool.c (varpool_node): Use typed GC allocation.
5990         (varpool_extra_name_alias): Likewise.
5991
5992         * varasm.c (emutls_decl): Likewise.
5993         (get_unnamed_section): Likewise.
5994         (get_noswitch_section): Likewise.
5995         (get_section): Likewise.
5996         (get_block_for_section): Likewise.
5997         (build_constant_desc): Likewise.
5998         (create_constant_pool): Likewise.
5999         (force_const_mem): Likewise.
6000
6001         * tree.c (build_vl_exp_stat): Likewise.
6002         (build_real): Likewise.
6003         (build_string): Likewise.
6004         (decl_debug_expr_insert): Likewise.
6005         (decl_value_expr_insert): Likewise.
6006         (type_hash_add): Likewise.
6007         (build_omp_clause): Likewise.
6008
6009         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
6010
6011         * tree-ssa.c (init_tree_ssa): Likewise.
6012
6013         * tree-ssa-structalias.c (heapvar_insert): Likewise.
6014
6015         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6016
6017         * tree-ssa-loop-niter.c (record_estimate): Likewise.
6018
6019         * tree-ssa-alias.c (get_ptr_info): Likewise.
6020
6021         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6022
6023         * tree-phinodes.c (allocate_phi_node): Likewise.
6024
6025         * tree-iterator.c (tsi_link_before): Likewise.
6026         (tsi_link_after): Likewise.
6027
6028         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6029
6030         * tree-dfa.c (create_var_ann): Likewise.
6031
6032         * tree-cfg.c (create_bb): Likewise.
6033
6034         * toplev.c (alloc_for_identifier_to_locale): Likewise.
6035         (general_init): Likewise.
6036
6037         * stringpool.c (stringpool_ggc_alloc): Likewise.
6038         (gt_pch_save_stringpool): Likewise.
6039
6040         * sese.c (if_region_set_false_region): Likewise.
6041
6042         * passes.c (do_per_function_toporder): Likewise.
6043
6044         * optabs.c (set_optab_libfunc): Likewise.
6045         (set_conv_libfunc): Likewise.
6046
6047         * lto-symtab.c (lto_symtab_register_decl): Likewise.
6048
6049         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6050         (input_eh_region): Likewise.
6051         (input_eh_lp): Likewise.
6052         (make_new_block): Likewise.
6053         (unpack_ts_real_cst_value_fields): Likewise.
6054
6055         * lto-section-in.c (lto_new_in_decl_state): Likewise.
6056
6057         * lto-cgraph.c (input_node_opt_summary): Likewise.
6058
6059         * loop-init.c (loop_optimizer_init): Likewise.
6060
6061         * lambda.h (lambda_vector_new): Likewise.
6062
6063         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
6064
6065         * ira.c (update_equiv_regs): Likewise.
6066
6067         * ipa.c (cgraph_node_set_new): Likewise.
6068         (cgraph_node_set_add): Likewise.
6069         (varpool_node_set_new): Likewise.
6070         (varpool_node_set_add): Likewise.
6071
6072         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
6073         (duplicate_ipa_jump_func_array): Likewise.
6074         (ipa_read_node_info): Likewise.
6075
6076         * ipa-cp.c (ipcp_create_replace_map): Likewise.
6077
6078         * integrate.c (get_hard_reg_initial_val): Likewise.
6079
6080         * gimple.c (gimple_alloc_stat): Likewise.
6081         (gimple_build_omp_for): Likewise.
6082         (gimple_seq_alloc): Likewise.
6083         (gimple_copy): Likewise.
6084
6085         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
6086         (gsi_insert_after_without_update): Likewise.
6087
6088         * function.c (add_frame_space): Likewise.
6089         (insert_temp_slot_address): Likewise.
6090         (assign_stack_temp_for_type): Likewise.
6091         (allocate_struct_function): Likewise.
6092         (types_used_by_var_decl_insert): Likewise.
6093
6094         * except.c (init_eh_for_function): Likewise.
6095         (gen_eh_region): Likewise.
6096         (gen_eh_region_catch): Likewise.
6097         (gen_eh_landing_pad): Likewise.
6098         (add_call_site): Likewise.
6099
6100         * emit-rtl.c (get_mem_attrs): Likewise.
6101         (get_reg_attrs): Likewise.
6102         (start_sequence): Likewise.
6103         (init_emit): Likewise.
6104
6105         * dwarf2out.c (new_cfi): Likewise.
6106         (queue_reg_save): Likewise.
6107         (dwarf2out_frame_init): Likewise.
6108         (new_loc_descr): Likewise.
6109         (find_AT_string): Likewise.
6110         (new_die): Likewise.
6111         (add_var_loc_to_decl): Likewise.
6112         (clone_die): Likewise.
6113         (clone_as_declaration): Likewise.
6114         (break_out_comdat_types): Likewise.
6115         (new_loc_list): Likewise.
6116         (loc_descriptor): Likewise.
6117         (add_loc_descr_to_each): Likewise.
6118         (add_const_value_attribute): Likewise.
6119         (tree_add_const_value_attribute): Likewise.
6120         (add_comp_dir_attribute): Likewise.
6121         (add_name_and_src_coords_attributes): Likewise.
6122         (lookup_filename): Likewise.
6123         (store_vcall_insn): Likewise.
6124         (dwarf2out_init): Likewise.
6125
6126         * dbxout.c (dbxout_init): Likewise.
6127
6128         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6129
6130         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6131
6132         * config/score/score7.c (score7_output_external): Likewise.
6133
6134         * config/score/score3.c (score3_output_external): Likewise.
6135
6136         * config/s390/s390.c (s390_init_machine_status): Likewise.
6137
6138         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6139         (rs6000_init_machine_status): Likewise.
6140         (output_toc): Likewise.
6141
6142         * config/pa/pa.c (pa_init_machine_status): Likewise.
6143         (get_deferred_plabel): Likewise.
6144
6145         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6146
6147         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6148
6149         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6150
6151         * config/mep/mep.c (mep_init_machine_status): Likewise.
6152         (mep_note_pragma_flag): Likewise.
6153
6154         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6155
6156         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6157
6158         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6159
6160         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6161         (i386_pe_maybe_record_exported_symbol): Likewise.
6162
6163         * config/i386/i386.c (get_dllimport_decl): Likewise.
6164         (ix86_init_machine_status): Likewise.
6165         (assign_386_stack_local): Likewise.
6166
6167         * config/frv/frv.c (frv_init_machine_status): Likewise.
6168
6169         * config/darwin.c (machopic_indirection_name): Likewise.
6170
6171         * config/cris/cris.c (cris_init_machine_status): Likewise.
6172
6173         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6174
6175         * config/avr/avr.c (avr_init_machine_status): Likewise.
6176
6177         * config/arm/arm.c (arm_init_machine_status): Likewise.
6178
6179         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6180         (alpha_need_linkage): Likewise.
6181         (alpha_use_linkage): Likewise.
6182
6183         * cgraph.c (cgraph_allocate_node): Likewise.
6184         (cgraph_create_edge_1): Likewise.
6185         (cgraph_create_indirect_edge): Likewise.
6186         (cgraph_add_asm_node): Likewise.
6187
6188         * cfgrtl.c (init_rtl_bb_info): Likewise.
6189
6190         * cfgloop.c (alloc_loop): Likewise.
6191         (rescan_loop_exit): Likewise.
6192
6193         * cfg.c (init_flow): Likewise.
6194         (alloc_block): Likewise.
6195         (unchecked_make_edge): Likewise.
6196
6197         * c-parser.c (c_parse_init): Likewise.
6198         (c_parse_file): Likewise.
6199
6200         * c-decl.c (bind): Likewise.
6201         (record_inline_static): Likewise.
6202         (push_scope): Likewise.
6203         (make_label): Likewise.
6204         (lookup_label_for_goto): Likewise.
6205         (finish_struct): Likewise.
6206         (finish_enum): Likewise.
6207         (c_push_function_context): Likewise.
6208
6209         * bitmap.c (bitmap_element_allocate): Likewise.
6210         (bitmap_gc_alloc_stat): Likewise.
6211
6212         * alias.c (record_alias_subset): Likewise.
6213         (init_alias_analysis): Likewise.
6214
6215 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
6216
6217         * fold-const.c (fold_comparison): Remove redundant parenthesis.
6218         * tree-inline.c (expand_call_inline): Pass translated return value of
6219         cgraph_inline_failed_string to diagnostic function.
6220
6221 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
6222             Shujing Zhao  <pearly.zhao@oracle.com>
6223
6224         PR c/37724
6225         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6226         implicit bad conversions is initialization.
6227         (error_init): Use gmsgid instead of msgid for argument name and change
6228         the call for error.
6229         (pedwarn_init): Use gmsgid instead of msgid for argument name and
6230         change the call for pedwarn.
6231         (warning_init): Use gmsgid instead of msgid for argument name and
6232         change the call for warning.
6233
6234 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
6235
6236         * config/mips/mips-protos.h (mips_print_operand): Delete.
6237         (mips_print_operand_address): Delete.
6238         * config/mips/mips.h (mips_print_operand_punct): Delete.
6239         (PRINT_OPERAND): Delete.
6240         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6241         (PRINT_OPERAND_ADDRESS): Delete.
6242         * config/mips/mips.c (mips_print_operand_punct): Make static.
6243         (mips_print_operand_address): Make static.
6244         (mips_print_operand): Make static.  Call
6245         mips_print_operand_punct_valid_p.
6246         (mips_print_operand_punct_valid_p): New function.
6247         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6248         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6249
6250 2010-06-07  Jan Hubicka  <jh@suse.cz>
6251
6252         PR middle-end/44454
6253         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6254         are allocated.
6255
6256 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
6257
6258         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6259         name of RECORD.
6260
6261 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6262
6263         * doc/sourcebuild.texi (Effective-Target Keywords, Other
6264         attributes): Document gas.
6265
6266 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
6267
6268         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6269         <TYPE_LEA>: Split instruction.
6270         <default>: Remove alternative 2 handling.
6271         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6272         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6273         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6274
6275         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6276         (ashift_zext lea splitter): Use DImode for multiplication.
6277
6278         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6279         to generate addition.
6280
6281 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
6282
6283         * common.opt (fira-verbose): Use Var.
6284         (fpcc-struct-return): Use Init instead of VarExists.
6285         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6286         toplev.c.
6287         * flags.h (flag_signed_char, flag_short_enums,
6288         flag_pcc_struct_return, flag_ira_verbose,
6289         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6290         * toplev.c (flag_detailed_statistics, flag_signed_char,
6291         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6292         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6293         * toplev.h (flag_crossjumping, flag_if_conversion,
6294         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6295         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6296         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6297         flag_cprop_registers, time_report, flag_ira_loop_pressure,
6298         flag_ira_coalesce, flag_ira_move_spills,
6299         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6300
6301 2010-06-07  Jan Hubicka  <jh@suse.cz>
6302
6303         * df-core.c (df_analyze_problem): Do verification after allocation.
6304
6305         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6306         (df_lr_alloc): Initialize problem data; move bitmaps to
6307         lr_bitmaps obstack.
6308         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6309         (df_lr_verify_solution_start): Do not initialize problem data;
6310         allocate bitmaps in lr_bitmaps.
6311         (df_lr_verify_solution_end): Do not free problem data.
6312
6313 2010-06-07  Jan Hubicka  <jh@suse.cz>
6314
6315         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6316         if caller is noreturn.
6317         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6318         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6319         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6320         * ipa-pure-const.c (check_decl): Add IPA parameter.
6321         (state_from_flags): New function.
6322         (better_state, worse_state): New functions.
6323         (check_call): When in IPA mode, do not care about callees.
6324         (check_load, check_store): Update.
6325         (check_ipa_load, check_ipa_store): New.
6326         (check_stmt): When in IPA mode, use IPA checkers.
6327         (analyze_function): Use state_from_flags.
6328         (propagate): Check indirect edges and references.
6329
6330 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
6331
6332         PR rtl-optimization/44404
6333         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6334         of count_occurrences to see if it's safe to modify mem_insn.
6335
6336 2010-06-07  Richard Guenther  <rguenther@suse.de>
6337
6338         * gimplify.c (gimplify_cleanup_point_expr): For empty body
6339         and EH-only cleanup drop the cleanup instead of inserting it
6340         unconditionally.
6341
6342 2010-06-07  Ira Rosen  <irar@il.ibm.com>
6343
6344         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6345         documentation.
6346         * targhooks.c (default_builtin_vectorization_cost): New function.
6347         * targhooks.h (default_builtin_vectorization_cost): Declare.
6348         * target.h (enum vect_cost_for_stmt): Define.
6349         (builtin_vectorization_cost): Change argument and comment.
6350         * tree-vectorizer.h: Remove cost model macros.
6351         * tree-vect-loop.c: Include target.h.
6352         (vect_get_cost): New function.
6353         (vect_estimate_min_profitable_iters): Replace cost model macros with
6354         calls to vect_get_cost.
6355         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
6356         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
6357         default implementation.
6358         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
6359         calls to target hook builtin_vectorization_cost.
6360         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6361         Likewise.
6362         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
6363         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
6364         implementation to return costs.
6365         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6366         * config/spu/spu.h: Remove vectorizer cost model macros.
6367         * config/i386/i386.h: Likewise.
6368         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
6369         a call to target hook builtin_vectorization_cost.
6370
6371 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
6372
6373         PR target/44319
6374         * config/i386/i386.c (override_options): Turn zee pass on for level 2
6375         and above and defer till target is known.
6376         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
6377         turn off otherwise.
6378
6379 2010-05-25  Jan Hubicka  <jh@suse.cz>
6380
6381         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
6382         (df_compact_blocks): Likewise.
6383         * df.h (struct df): Turn hardware_regs_used,
6384         regular_block_artificial_uses, eh_block_artificial_uses,
6385         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
6386         bitmap_head.
6387         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
6388         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
6389         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
6390         df_scan_blocks, df_insn_delete, df_insn_rescan,
6391         df_insn_rescan_debug_internal, df_insn_rescan_all,
6392         df_process_deferred_rescans, df_process_deferred_rescans,
6393         df_notes_rescan, df_get_call_refs, df_get_call_refs,
6394         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
6395         df_record_entry_block_defs, df_record_exit_block_uses,
6396         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
6397         df_scan_verify): Update.
6398
6399 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
6400
6401         PR c++/44188
6402         * c-common.c (is_typedef_decl): Move this definition ...
6403         * tree.c (is_typedef_decl): ... here.
6404         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6405         * c-common.h (is_typedef_decl): Move this declaration ...
6406         * tree.h (is_typedef_decl): ... here.
6407         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6408         * dwarf2out.c (is_naming_typedef_decl): New function.
6409         (gen_tagged_type_die): Split out of ...
6410         (gen_type_die_with_usage): ... this function. When an anonymous
6411         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6412         is emitted for the typedef.
6413         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6414         anonymous tagged types.
6415
6416 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6417
6418         PR c/20000
6419         * c-decl.c (grokdeclarator): Delete warning.
6420
6421 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6422
6423         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6424         newly built CALL_EXPR.
6425         * tree-profile.c (tree_profiling): Don't profile functions produced
6426         for built-in stuff.
6427
6428 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
6429
6430         PR bootstrap/44427
6431         PR bootstrap/44428
6432         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6433         endianness-independent.
6434
6435 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
6436
6437         * c-common.c: Move to c-family/.
6438         * c-common.def: Likewise.
6439         * c-common.h: Likewise.
6440         * c-cppbuiltin.c: Likewise.
6441         * c-dump.c: Likewise.
6442         * c-format.c: Likewise.
6443         * c-format.h : Likewise.
6444         * c-gimplify.c: Likewise.
6445         * c-lex.c: Likewise.
6446         * c-omp.c: Likewise.
6447         * c.opt: Likewise.
6448         * c-opts.c: Likewise.
6449         * c-pch.c: Likewise.
6450         * c-ppoutput.c: Likewise.
6451         * c-pragma.c: Likewise.
6452         * c-pragma.h: Likewise.
6453         * c-pretty-print.c: Likewise.
6454         * c-pretty-print.h: Likewise.
6455         * c-semantics.c: Likewise.
6456         * stub-objc.c: Likewise.
6457
6458         * gengtype.c (get_file_langdir): Special-case files in c-family/.
6459         (get_output_file_with_visibility): Fix name for c-common.h.
6460         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6461
6462         * c-tree.h: Update include path for moved files.
6463         * c-lang.c: Likewise.
6464         * c-lang.h: Likewise.
6465         * c-parser.c: Likewise.
6466         * c-convert.c: Likewise.
6467         * c-decl.c: Likewise.
6468         * c-objc-common.c: Likewise.
6469         * configure.ac: Make sure c-family/ exists in the build directory.
6470         * configure: Regenerate.
6471         * Makefile.in: Update paths for moved files.  Regroup files per
6472         location and update dependencies.  Move generated_files down after
6473         ALL_GTFILES_H.
6474
6475         * config/spu/spu-c.c: Update paths for moved files.
6476         * config/mep/mep-pragma.c: Likewise.
6477         * config/darwin-c.c: Likewise.
6478         * config/i386/msformat-c.c: Likewise.
6479         * config/i386/i386-c.c: Likewise.
6480         * config/avr/avr-c.c: Likewise.
6481         * config/sol2-c.c: Likewise.
6482         * config/ia64/ia64-c.c: Likewise.
6483         * config/rs6000/rs6000-c.c: Likewise.
6484         * config/arm/arm.c: Likewise.
6485         * config/arm/arm-c.c: Likewise.
6486         * config/h8300/h8300.c: Likewise.
6487         * config/v850/v850-c.c: Likewise.
6488
6489         * config/t-darwin: Fix dependencies for moved files.
6490         * config/t-sol2: Fix dependencies for moved files.
6491         * config/mep/t-mep: Fix dependencies for moved files.
6492         * config/ia64/t-ia64: Fix dependencies for moved files.
6493         * config/rs6000/t-rs6000: Fix dependencies for moved files.
6494         * config/v850/t-v850: Fix dependencies for moved files.
6495         * config/v850/t-v850e: Fix dependencies for moved files.
6496
6497         * config/m32c/m32c-pragma.c
6498
6499         * po/exgettext: Look in c-family/ also.
6500
6501 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
6502
6503         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
6504         (mark_control_dependent_edges_necessary): Call it instead of marking
6505         the last statement manually.
6506         (propagate_necessity): Likewise.
6507
6508 2010-06-05  Jan Hubicka  <jh@suse.cz>
6509
6510         * basic-block.h (compute_dominance_frontiers): Updated.
6511         (compute_idf): Likewise.
6512
6513         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
6514         for dominance frontiers.
6515         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
6516         (insert_updated_phi_nodes_for): Likewise.
6517         (update_ssa): Likewise.
6518         * cfganal.c (compute_dominance_frontiers_1): Likewise.
6519         (compute_dominance_frontiers): Likewise.
6520         (compute_idf): Likewise.
6521         * df-problems.c (df_md_local_compute): Likewise.
6522
6523 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
6524
6525         * target.h (struct gcc_target): Add memory_move_cost field.
6526         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
6527         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
6528         * targhooks.c (default_memory_move_cost): New function.
6529         * targhooks.h (default_memory_move_cost): Declare function.
6530         * reload.h (memory_move_cost): Declare.
6531         (memory_move_secondary_cost): Change type of 'in' argument to bool.
6532         * reginfo.c (memory_move_cost): New function.
6533         (memory_move_secondary_cost): Change type of 'in' argument to bool.
6534         * ira.h (ira_memory_move_cost): Update comment.
6535         * ira.c: (ira_memory_move_cost): Update comment.
6536         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
6537         with memory_move_cost.
6538         * postreload.c (reload_cse_simplify_set): (Ditto.).
6539         * reload1.c (choose_reload_regs): (Ditto.).
6540         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
6541         (MEMORY_MOVE_COST):  Revise documentation.
6542
6543         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6544         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6545         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
6546         type of 'in' argument to bool.
6547         (TARGET_MEMORY_MOVE_COST): Define.
6548
6549 2010-06-05  Jan Hubicka  <jh@suse.cz>
6550
6551         * ipa-pure-const.c (propagate): Fix typo in handling of functions
6552         that cannot return.  Be more careful when merging the results with
6553         previously known ones.
6554
6555 2010-06-05  Matthias Klose  <doko@ubuntu.com>
6556
6557         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
6558         function to add the -iplugindir option.
6559         (find_plugindir_spec_function): Add new declaration and function.
6560         (static_spec_func): Use it for "find-plugindir".
6561
6562 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
6563
6564         PR c++/44361
6565         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
6566         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
6567         statement expression.
6568
6569 2010-06-05  Jan Hubicka  <jh@suse.cz>
6570
6571         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
6572         (df_rd_problem_data): Convert sparse_invalidated_by_call,
6573         dense_invalidated_by_call to bitmap head.
6574         (df_rd_alloc, df_rd_bb_local_compute_process_def,
6575         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
6576         df_rd_start_dump, df_lr_verify_transfer_functions,
6577         df_live_verify_transfer_functions, df_chain_create_bb,
6578         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
6579         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
6580         df_simulate_one_insn_forwards, df_md_alloc,
6581         df_md_bb_local_compute_process_def,
6582         df_md_bb_local_compute_process_def, df_md_local_compute,
6583         df_md_transfer_function df_md_free): Update.
6584
6585 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
6586
6587         PR c/44322
6588         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
6589         target type for ADDR_EXPR; require no changes to qualifiers except
6590         for function types.
6591         * c-tree.h (c_build_type_variant): Remove.
6592
6593 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
6594
6595         * genautomata.c (get_excl_set): Do work per element, not per char.
6596         (check_presence_pattern_sets): Similar.
6597         (check_absence_pattern_sets): Similar.
6598
6599 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
6600
6601         * genautomata.c (curr_state_pass_num): Delete.
6602         (min_issue_delay_pass_states): Delete.
6603         (min_issue_delay): Delete.
6604         (initiate_min_issue_delay_pass_states): Delete.
6605         (output_min_issue_delay_table): Compute min_issue_delay_vect
6606         using a breadth-first search variant.
6607         (output_tables): Don't call initiate_min_issue_delay_pass_states.
6608
6609 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6610
6611         PR boostrap/44421
6612         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
6613         (df_byte_lr_bb_local_compute): Likewise.
6614
6615 2010-06-03  Jason Merrill  <jason@redhat.com>
6616
6617         Implement noexcept operator (5.3.7)
6618         * c-common.c (c_common_reswords): Add noexcept.
6619         * c-common.h (enum rid): Add RID_NOEXCEPT.
6620
6621 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
6622
6623         * config/darwin-driver.c (darwin_default_min_version): Use
6624         GCC-specific formats in diagnostics.
6625         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
6626         diagnostics.
6627         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
6628         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
6629         eval_spec_function, handle_braces, process_brace_body, main,
6630         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
6631         getenv_spec_function, compare_version_strings,
6632         version_compare_spec_function): Use GCC-specific formats in
6633         diagnostics.
6634
6635 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6636
6637         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
6638         that operand 0 and operand 1 are equal.
6639         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
6640         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
6641         and operand 1 are equal.
6642         <default>: Ditto.  Remove ??? comment.
6643         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
6644         and operand 1 are equal.
6645         <default>: Ditto.  Remove ??? comment.
6646         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
6647         are equal.
6648         (*add<mode>_4) <default>: Ditto.
6649         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
6650
6651 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
6652
6653         * config/i386/i386-protos.h (ix86_print_operand): Declare.
6654         * config/i386/i386.c (ix86_print_operand): Make non-static.
6655         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
6656         * output.h (output_operand): Declare.
6657         * final.c (output_operand): Make non-static.
6658
6659 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
6660
6661         PR rtl-optimization/44013
6662         * sched-deps.c (add_dependence_list_and_free): Don't free lists
6663         when processing debug insns.
6664
6665         PR debug/41371
6666         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
6667         recursing.  Check that recursion is bounded.  Rename inner var
6668         to avoid hiding incoming argument.
6669
6670 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6671
6672         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
6673         operands[2] == 255.
6674         (*addqi_3): Ditto.
6675         (*addqi_4): Ditto.
6676         (*addqi_5): Ditto.
6677         (*addqi_ext_1_rex64): Ditto.
6678         (*addqi_ext_1): Ditto.
6679
6680         (*addqi_4): Check for incdec_operand in QImode.
6681
6682         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
6683         using SWI mode iterator.
6684         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
6685         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
6686         mode iterator.
6687         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
6688         using SWI mode iterator.
6689
6690 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6691
6692         PR c/25880
6693         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
6694         * c-format.c (gcc_diag_flag_specs): Add hash.
6695         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
6696         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
6697         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
6698         pp_c_cv_qualifiers. Handle qualifiers spelling here.
6699         (pp_c_type_qualifier_list): Call the function above.
6700         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
6701         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
6702         (WARN_FOR_QUALIFIERS): New macro.
6703         (convert_for_assignment): Use it.
6704
6705 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
6706
6707         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
6708
6709 2010-06-04  Jan Hubicka  <jh@suse.cz>
6710
6711         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
6712         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
6713         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
6714         DF_BYTE_LR_OUT): Update for embedded bitmaps.
6715         * fwprop.c (single_def_use_enter_block): Likewise.
6716         * ddg.c (create_ddg_dep_from_intra_loop_link,
6717         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6718         * loop-iv.c (latch_dominating_def): Likewise.
6719         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6720         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6721         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6722         df_rd_transfer_function, df_rd_top_dump,
6723         df_rd_bottom_dump): Update.
6724         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6725         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6726         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6727         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6728         df_lr_verify_solution_start, df_lr_verify_solution_end,
6729         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6730         df_live_free_bb_info, df_live_alloc, df_live_reset,
6731         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6732         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6733         df_live_verify_solution_start, df_live_verify_solution_end,
6734         df_live_verify_transfer_functions, df_chain_create_bb,
6735         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6736         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6737         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6738         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6739         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6740         df_byte_lr_transfer_function, df_byte_lr_top_dump,
6741         df_byte_lr_bottom_dump, df_create_unused_note,
6742         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6743         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6744         df_md_transfer_function, df_md_init, df_md_confluence_0,
6745         df_md_confluence_n,
6746         df_md_top_dump, df_md_bottom_dump): Update.
6747         (struct df_lr_problem_data): Embedd bitmap headers.
6748
6749 2010-06-04  Jan Hubicka  <jh@suse.cz>
6750
6751         * dce.c (dce_process_block): Do not re-scan already marked
6752         instructions.
6753
6754 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
6755
6756         PR rtl-optimization/39871
6757         PR rtl-optimization/40615
6758         PR rtl-optimization/42500
6759         PR rtl-optimization/42502
6760         * ira.c (init_reg_equiv_memory_loc: New function.
6761         (ira): Call it twice.
6762         * reload.h (calculate_elim_costs_all_insns): Declare.
6763         * ira-costs.c: Include "reload.h".
6764         (regno_equiv_gains): New static variable.
6765         (init_costs): Allocate it.
6766         (finish_costs): Free it.
6767         (ira_costs): Call calculate_elim_costs_all_insns.
6768         (find_costs_and_classes): Take estimated elimination costs
6769         into account.
6770         (ira_adjust_equiv_reg_cost): New function.
6771         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
6772         * reload1.c (init_eliminable_invariants, free_reg_equiv,
6773         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
6774         (elim_bb): New static variable.
6775         (reload): Move code out of here into init_eliminable_invariants and
6776         free_reg_equiv.  Call them.
6777         (calculate_elim_costs_all_insns): New function.
6778         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
6779         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
6780         but call note_reg_elim_costly if we turned a valid memory address
6781         into an invalid one.
6782         * Makefile.in (ira-costs.o): Depend on reload.h.
6783
6784 2010-06-04  Julian Brown  <julian@codesourcery.com>
6785
6786         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
6787         for pool ranges.
6788
6789 2010-06-04  Richard Guenther  <rguenther@suse.de>
6790
6791         PR lto/41584
6792         * cgraph.h (struct varpool_node): Add lto_file_data field.
6793         * lto-cgraph.c (input_varpool_node): Initialize it.
6794
6795 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6796
6797         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
6798         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
6799         predicate in "type" attribute calculation.
6800         (*addsi_1_zext): Ditto.
6801         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
6802         (*addsi_2_zext): Ditto.
6803         (*add<mode>_3): Ditto.
6804         (*addsi_3_zext): Ditto.
6805         (*add<mode>_5): Ditto.
6806
6807 2010-06-03  Jan Hubicka  <jh@suse.cz>
6808
6809         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
6810         of bitmap_bit_p.
6811         * cfganal.c (compute_dominance_frontiers_1): Likewise.
6812
6813 2010-06-03  Jan Hubicka  <jh@suse.cz>
6814
6815         * df-problems.c (df_create_unused_note, df_note_bb_compute):
6816         micro-optimize the checks when to add new note.
6817
6818 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
6819
6820         * final.c (output_asm_insn): Call
6821         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
6822         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
6823         (output_address): Call targetm.asm_out.print_operand_address.
6824         Update comments.
6825         * target.h (struct gcc_target): Add print_operand,
6826         print_operand_address, and print_operand_punct_valid_p fields.
6827         * targhooks.h (default_print_operand): Declare.
6828         (default_print_operand_address): Declare.
6829         (default_print_operand_punct_valid_p): Declare.
6830         * targhooks.c (default_print_operand): Define.
6831         (default_print_operand_address): Define.
6832         (default_print_operand_punct_valid_p): Define.
6833         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6834         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6835         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6836         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6837         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6838         * vmsdbgout.c (addr_const_to_string): Update comment.
6839         * config/i386/i386.c (print_operand): Rename to...
6840         (ix86_print_operand): ...this.  Make static.
6841         (print_operand_address): Rename to...
6842         (ix86_print_operand_address): ...this.  Make static.  Call
6843         ix86_print_operand instead of PRINT_OPERAND.
6844         (ix86_print_operand_punct_valid_p): New function.
6845         (TARGET_PRINT_OPERAND): Define.
6846         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6847         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6848         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6849         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6850         (PRINT_OPERAND): Delete.
6851         (PRINT_OPERAND_ADDRESS): Delete.
6852         * config/i386/i386-protos.h (print_operand): Delete prototype.
6853         (print_operand_address): Delete prototype.
6854
6855 2010-06-03  Richard Guenther  <rguenther@suse.de>
6856
6857         PR tree-optimization/44403
6858         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6859         Preserve pointer qualifiers.
6860         (vect_create_data_ref_ptr): Likewise.
6861
6862 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
6863
6864         PR c++/44294
6865         * defaults.h (MAX_FIXED_MODE_SIZE): New.
6866
6867         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6868
6869 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
6870
6871         PR debug/44375
6872         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6873         return false if merging the bbs would lead to goto_locus
6874         location being lost from the IL.
6875
6876 2010-06-03  Jan Hubicka  <jh@suse.cz>
6877             Jakub Jelinek  <jakub@redhat.com>
6878
6879         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6880         set->regs[i] is NULL or has just one entry.
6881
6882 2010-06-03  Jan Hubicka  <jh@suse.cz>
6883
6884         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6885         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6886
6887 2010-06-03  Paul Brook  <paul@codesourcery.com>
6888
6889         * config/arm/arm.c (FL_TUNE): Define.
6890         (arm_default_cpu, arm_cpu_select): Remove.
6891         (all_cores): Populate core field.
6892         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6893         (arm_find_cpu): New function.
6894         (arm_handle_option): Lookup cpu/architecture names.
6895         (arm_override_options): Cleanup mcpu/march/mtune handling.
6896         (arm_file_start): Ditto.
6897
6898 2010-06-03  Alan Modra  <amodra@gmail.com>
6899
6900         PR target/44169
6901         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6902         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6903         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
6904         (rs6000_emit_load_toc_table): Likewise.
6905
6906 2010-06-02  Jan Hubicka  <jh@suse.cz>
6907
6908         * passes.c (init_optimization_passes): Put ipa reference
6909         after ipa pure-const.
6910
6911 2010-06-02  Jan Hubicka  <jh@suse.cz>
6912
6913         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6914         calls_read_all and calls_write_all.
6915         (get_reference_optimization_summary): Fix formatting.
6916         (is_proper_for_analysis): Check that decl is not readonly.
6917         (propagate_bits): Check CONST/PURE/noreturn flags.
6918         (ipa_init): Move all_module_statics to optimization_summary_obstack.
6919         (analyze_function): Ignore indirect edges.
6920         (copy_global_bitmap): For all module statics, do nothing.
6921         (generate_summary): Do not print calls_read_all/calls_write_all.
6922         (read_write_all_from_decl): Take node as argument; check
6923         cgraph_node_cannot_return.
6924         (propagate): Reorganize read_all/write_all computation;
6925         check indirect edges; check ecf flags; use all_module_statics
6926         in the results; do not free all_module_statics.
6927         (stream_out_bitmap): Handle all_module_statics.
6928         (ipa_reference_write_optimization_summary): Likewise; use
6929         varpool/cgraph encoders to get boundaries.
6930         (ipa_reference_read_optimization_summary): Read in all_module_statics;
6931         use it when possible.
6932
6933 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6934
6935         PR target/44218
6936         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6937         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6938
6939         * doc/extend.texi (powerpc builtins): Document vec_recip,
6940         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6941
6942         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6943         (rs6000_emit_swrsqrt): Ditto.
6944         (rs6000_emit_swdivsf): Delete.
6945         (rs6000_emit_swdivdf): Ditto.
6946         (rs6000_emit_swrsqrtsf): Ditto.
6947
6948         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6949         describe the reciprocal estimate support for each type.
6950         (recip_options): Map -mrecip=<opt> into option bits.
6951         (gen_2arg_fn_t): New typedef for binary rtx gen function.
6952         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6953         reciprocal estimate instructions.
6954         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6955         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6956         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
6957         cost information if -mdebug=cost or -mdebug=reg.
6958         (rs6000_override_options): Set -mrecip-precision for power6, and
6959         power7 machines.  If -mvsx or -mdfp, enable various options that
6960         came in previous instruction set ISAs, unless the option was
6961         explicitly disabled by the command line option.  Parse
6962         -mrecip=<opt> options.
6963         (rs6000_builtin_vectorized_function): Add support for vectorizing
6964         the reciprocal estimate builtins and expansions.
6965         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6966         (bdesc_2arg): Add reciprocal estimate builtins.
6967         (bdesc_1arg): Add reciprocal square root estimate builtins.
6968         (rs6000_expand_builtin): Rewrite to use a switch statement,
6969         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
6970         (rs6000_init_builtins): Create declarations for reciprocal
6971         estimate builtins.
6972         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6973         sized, prefer traditional floating point registers, if integer
6974         vector types, prefer altivec registers.  Don't actually look at
6975         the memory address any more.
6976         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6977         builtins.
6978         (rs6000_load_constant_and_splat): New helper function to load up
6979         the constant for reciprocal estimate instructions.
6980         (rs6000_emit_madd): New helper function for generating
6981         multiply/add type instructions, based on the current switches.
6982         (rs6000_emit_msub): Ditto.
6983         (rs6000_emit_mnsub): Ditto.
6984         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6985         replace a divide with a reciprocal estimate and fixup, adding
6986         support for machines with high precision and vectors.
6987         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6988         low precision machines.
6989         (rs6000_emit_swdiv): New common function to be called to replace a
6990         division with reciprocal estimate and fixup.
6991         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
6992         for double and vector types.  Add support for high precision machines.
6993
6994         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6995         the reciprocal estimate instructions can be generated.
6996         (TARGET_FRE): Ditto.
6997         (TARGET_FRSQRTES): Ditto.
6998         (TARGET_FRSQRTE): Ditto.
6999         (RS6000_RECIP_*): New macros for reciprocal estimate support.
7000
7001         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
7002         square root estimate on vectors.
7003         (re<mode>2): New insn for reciprocal division estimate on vectors.
7004
7005         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
7006         New builtin.
7007         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
7008         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
7009         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
7010         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
7011         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
7012         (RS6000_BUILTIN_RSQRT): Ditto.
7013         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
7014         floating point builtin.
7015
7016         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7017         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
7018         __RECIP_PRECISION__ based on the command line switches.
7019         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
7020
7021         * config/rs6000/rs6000.opt (-mrecip): Document add support for
7022         replacing division instructions with reciprocal estimate and fixup.
7023         (-mrecip=<opt>): New option.
7024         (-mrecip-precision): Ditto.
7025
7026         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
7027         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
7028         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
7029         precision scalar.
7030
7031         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
7032         (UNSPEC_VREFP): Ditto.
7033         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
7034         conterparts with regard to support of -mno-fused-madd and -ffast-math.
7035         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
7036         reciprocal estimate instructions to be generated.
7037         (altivec_vrefp): Ditto.
7038
7039         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
7040         estimate support.
7041         (rreg): New mode attribute for reciprocal estimate support.
7042         (recip<mode>3): New insn for division using reciprocal estimate
7043         and fixup builtins.
7044         (divide define_split): New define_split to convert floating point
7045         division to use reciprocal estimate if the user used the
7046         appropriate options and the split is run when we can add new
7047         pseudo registers for the fixup.
7048         (rsqrt<mode>2): New insn for reciprocal square root support.
7049         (recipsf3): Move into recip<mode>3.
7050         (recipdf3): Ditto.
7051         (fres): Use TARGET_FRES.
7052         (rsqrtsf2): Move into rsqrt<mode>2.
7053         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
7054         (copysignsf3): Add support for VSX.
7055         (fred): Use TARGET_FRE.
7056         (fred_fpr): Ditto.
7057         (rsqrtdf_internal1): New function for frsqrte instruciton.
7058
7059         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
7060         (vec_rsqrt): Ditto.
7061
7062 2010-06-03  Richard Guenther  <rguenther@suse.de>
7063
7064         PR middle-end/44291
7065         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
7066         (set_user_assembler_libfunc): Likewise.
7067
7068 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7069
7070         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
7071         defaults.h.
7072         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
7073         to defaults.h
7074         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
7075         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
7076         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
7077         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
7078         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
7079         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
7080         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
7081         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
7082         * defaults.h: Updated for above mentioned changes.
7083
7084 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
7085
7086         * c-common.c: Remove header include of tm_p.h.
7087         * Makefile.in (c-common.o): Remove TM_P_H dependency.
7088
7089 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
7090
7091         * tree.h (struct tree_decl_map): New type.
7092         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
7093         (tree_decl_map_hash): New prototype.
7094         (debug_expr_for_decl, value_expr_for_decl): Change into
7095         tree_decl_map hashtab from tree_map.
7096         (init_ttree): Adjust initialization.
7097         (tree_decl_map_hash): New function.
7098         (decl_debug_expr_lookup, decl_debug_expr_insert,
7099         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
7100
7101 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7102
7103         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
7104         linker emulations.
7105         * configure: Regenerate.
7106         * config.in: Regenerate.
7107
7108         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
7109         (X86_64_EMULATION): Define.
7110         (TARGET_LD_EMULATION): Use them.
7111
7112         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
7113         (SPARC64_EMULATION): Define.
7114         (LINK_ARCH_SPEC): Use them.
7115
7116 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7117
7118         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
7119         smallest_mode_for_size for computing the precision types of new
7120         graphite IVs.  Do not call lang_hooks.types.type_for_size.
7121
7122 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7123
7124         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
7125         information.
7126         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
7127
7128 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7129
7130         PR middle-end/44363
7131         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
7132         return false instead.
7133
7134 2010-06-02  Jan Hubicka  <jh@suse.cz>
7135
7136         PR middle-end/44295
7137         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7138         create new cgraph node to check callee.
7139
7140 2010-06-02  Richard Guenther  <rguenther@suse.de>
7141
7142         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7143
7144 2010-06-02  Richard Guenther  <rguenther@suse.de>
7145
7146         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7147         (lto_wrapper_cleanup): ... this.  Do not exit.
7148         (fatal): Adjust.  Exit here.
7149         (fatal_perror): Likewise.
7150         (fatal_signal): New function.
7151         (main): Set up signal handlers to cleanup temporary files.
7152         * Makefile.in (lto-wrapper.o): Adjust dependencies.
7153
7154 2010-06-02  Richard Guenther  <rguenther@suse.de>
7155
7156         PR tree-optimization/44377
7157         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7158
7159 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7160
7161         * config/s390/2097.md (z10_fhex): Remove insn reservation.
7162         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7163         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7164         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7165         instruction.
7166         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7167
7168 2010-06-02  Jan Hubicka  <jh@suse.cz>
7169
7170         * bitmap.c (bitmap_descriptor): Add search_iter.
7171         (bitmap_find_bit): Increment it.
7172         (print_statistics): Print it.
7173
7174 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
7175
7176         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7177         instead of gimple_build_call_vec.  Delete unnecessary local variable.
7178
7179 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7180
7181         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7182         change from yesterday.
7183
7184 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7185
7186         * c-ada-spec.c: Clean up redundant includes.
7187
7188 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
7189
7190         * gimplify.c: Do not include except.h and optabs.h.
7191         (gimplify_body): Do not initialize RTL profiling.
7192         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7193         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7194         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7195         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7196         langhooks.h.
7197
7198         * tree-pretty-print.h: Include pretty-print.h.
7199         * gimple-pretty-print.h: Include pretty-print.h.
7200
7201         * tree-pretty-print.c: Do not include diagnostic.h.
7202         * tree-vrp.c: Likewise.
7203         * tree-tailcall.c: Likewise
7204         * tree-scalar-evolution.c: Likewise
7205         * tree-ssa-dse.c: Likewise
7206         * tree-chrec.c: Likewise
7207         * tree-ssa-sccvn.c: Likewise
7208         * tree-ssa-copyrename.c: Likewise
7209         * tree-nomudflap.c: Likewise
7210         * tree-call-cdce.c: Likewise
7211         * tree-stdarg.c: Likewise
7212         * tree-ssa-math-opts.c: Likewise
7213         * tree-nrv.c: Likewise
7214         * tree-ssa-sink.c: Likewise
7215         * tree-browser.c: Likewise
7216         * tree-ssa-loop-ivcanon.c: Likewise
7217         * tree-ssa-loop.c: Likewise
7218         * tree-parloops.c: Likewise
7219         * tree-ssa-address.c: Likewise
7220         * tree-ssa-ifcombine.c: Likewise
7221         * tree-if-conv.c: Likewise
7222         * tree-data-ref.c: Likewise
7223         * tree-affine.c: Likewise
7224         * tree-ssa-phiopt.c: Likewise
7225         * tree-ssa-coalesce.c: Likewise
7226         * tree-ssa-pre.c: Likewise
7227         * tree-ssa-live.c: Likewise
7228         * tree-predcom.c: Likewise
7229         * tree-ssa-forwprop.c: Likewise
7230         * tree-ssa-dce.c: Likewise
7231         * tree-ssa-ter.c: Likewise
7232         * tree-ssa-loop-prefetch.c: Likewise
7233         * tree-optimize.c: Likewise
7234         * tree-ssa-phiprop.c: Likewise
7235         * tree-object-size.c: Likewise
7236         * tree-outof-ssa.c: Likewise
7237         * tree-ssa-structalias.c: Likewise
7238         * tree-switch-conversion.c: Likewise
7239         * tree-ssa-reassoc.c: Likewise
7240         * tree-ssa-operands.c: Likewise
7241         * tree-vectorizer.c: Likewise
7242         * tree-vect-data-refs.c: Likewise
7243         * tree-vect-generic.c: Likewise
7244         * tree-vect-stmts.c: Likewise
7245         * tree-vect-patterns.c: Likewise
7246         * tree-vect-slp.c: Likewise
7247         * tree-vect-loop.c: Likewise
7248         * tree-ssa-loop-ivopts.c: Likewise
7249         * tree-ssa-loop-im.c: Likewise
7250         * tree-ssa-loop-niter.c: Likewise
7251         * tree-ssa-loop-unswitch.c: Likewise
7252         * tree-ssa-loop-manip.c: Likewise
7253         * tree-ssa-loop-ch.c: Likewise
7254         * tree-dump.c: Likewise
7255         * tree-complex.c: Likewise
7256
7257         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7258         * tree-ssa-uninit.c: Likewise
7259         * tree-ssa-threadupdate.c: Likewise
7260         * tree-ssa-uncprop.c: Likewise
7261         * tree-ssa-ccp.c: Likewise
7262         * tree-ssa-dom.c: Likewise
7263         * tree-ssa-propagate.c: Likewise
7264         * tree-ssa-alias.c: Likewise
7265         * tree-dfa.c: Likewise
7266         * tree-cfgcleanup.c: Likewise
7267         * tree-sra.c: Likewise
7268         * tree-ssa-copy.c: Likewise
7269         * tree-ssa.c: Likewise
7270         * tree-profile.c: Likewise
7271         * tree-cfg.c: Likewise
7272         * tree-ssa-threadedge.c: Likewise
7273         * tree-vect-loop-manip.c: Likewise
7274
7275         * tree-inline.c: Do not include diagnostic.h and expr.h.
7276         Include rtl.h.
7277         (copy_decl_for_dup_finish): Do not use NULL_RTX.
7278
7279         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7280         * tree-loop-distribution.c: Likewise.
7281
7282 2010-06-01  Jan Hubicka  <jh@suse.cz>
7283
7284         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7285
7286 2010-06-01  Jan Hubicka  <jh@suse.cz>
7287
7288         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7289         remove return value.
7290         (split_bbs_on_noreturn_calls) .... here.
7291         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7292         * tree-flow.h (fixup_noreturn_call): New.
7293
7294 2010-06-01  Jan Hubicka  <jh@suse.cz>
7295
7296         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7297
7298 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
7299
7300         * tree.h (build_nt_call_list): Delete.
7301         * tree.c (build_nt_call_list): Delete.
7302
7303 2010-06-01  Jan Hubicka  <jh@suse.cz>
7304
7305         * fwprop.c: Make emit-rtl.h include last.
7306         * rtlanal.c: Include emit-rtl.h.
7307         * genautomata.c: Output emit-rtl include into insn-automata.c
7308         * df-scan.c: Include emit-rtl.h.
7309         * haifa-sched.c: Indlude emit-rtl.h.
7310         * mode-switching.c: Indlude emit-rtl.h.
7311         * graph.c: Indlude emit-rtl.h.
7312         * sel-sched.c: Include emit-rtl.h.
7313         * sel-sched-ir.c: Include emit-rtl.h.
7314         * ira-build.c: Include emit-rtl.h.
7315         * emit-rtl.c: (first_insn, last_insn): Remove defines.
7316         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7317         Move to emit-rtl.h.
7318         (set_new_first_and_last_insn, get_last_insn_anywhere,
7319         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7320         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7321         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7322         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7323         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7324         Use accessor functions.
7325         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7326          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7327         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7328         mem_expr_equal_p): Move here from rtl.h.
7329         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7330         Move here from emit-rtl.c; make inline.
7331         * cfglayout.h: Include emit-rtl.h.
7332         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7333          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7334         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7335         mem_expr_equal_p, get_insns, set_first-insn,
7336         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7337         * reg-stack.c: Include emit-rtl.h.
7338         * dce.c: Likewise.
7339
7340 2010-06-01  Jan Hubicka  <jh@suse.cz>
7341
7342         * cgraph.h (tree_function_versioning): Update prototype.
7343         (cgraph_function_versioning): Update prototype.
7344         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7345         bitmap.
7346         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7347         (cgraph_materialize_clone, save_inline_function_body): Update use of
7348         tree_function_versioning.
7349         * tree-inline.c (copy_bb): Look for previous copied block to link
7350         after; fix debug output.
7351         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
7352         (copy_body): Likewise.
7353         (expand_call_inline): Update use of copy_body.
7354         (tree_function_versioning): Update use of copy body; accept
7355         blocks_to_copy and new_entry.
7356
7357 2010-06-01  Jan Hubicka  <jh@suse.cz>
7358
7359         * gegenrtl.c: Remove unnecesary prototypes.
7360         (gendecl): Remove.
7361         (gendef): Produce static inline.
7362         (gencode): Remove.
7363         (main): Do not decode parameters; generate header only.
7364         * Makefile.in (genrtl.c): Remove.
7365
7366 2010-06-01  Jan Hubicka  <jh@suse.cz>
7367
7368         * tree-switch-conversion.c (build_one_array): Make it readonly.
7369
7370 2010-06-01  Richard Guenther  <rguenther@suse.de>
7371
7372         * optabs.c (init_optabs): Guard all accesses to reinit.
7373         * ipa-pure-const.c (propagate): Fix another typo.
7374         * opts.c (common_handle_option): Split assignment to bool.
7375         * c-opts.c (c_common_handle_option): Likewise.
7376
7377 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
7378             Matthew Gingell  <gingell@adacore.com>
7379
7380         * doc/invoke.texi: Mention -fdump-ada-spec.
7381         * tree-dump.c (dump_files): Add ada-spec.
7382         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
7383         * tree-pass.h (tree_dump_index): Add TDI_ada.
7384         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
7385         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
7386         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
7387         * c-decl.c: Include c-ada-spec.h.
7388         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
7389         functions.
7390         (c_write_global_declarations): Add handling of -fdump-ada-spec.
7391         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
7392         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
7393         * c-ada-spec.h, c-ada-spec.c: New files.
7394
7395 2010-06-01  Richard Guenther  <rguenther@suse.de>
7396
7397         PR lto/43853
7398         * ipa-pure-const.c (get_function_state): Hand back varying state
7399         if we do not have one.
7400         (has_function_state): New function.
7401         (duplicate_node_data): Adjust.
7402         (remove_node_data): Likewise.
7403         (pure_const_write_summary): Likewise.
7404         (propagate): Likewise.  Fix typo.
7405
7406 2010-06-01  Jan Hubicka  <jh@suse.cz>
7407
7408         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
7409         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
7410         (execute_all_ipa_transforms): Do not play with the states.
7411
7412 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
7413
7414         * config/arm/t-linux-androideabi: New.
7415         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7416
7417 2010-06-01  Jan Hubicka  <jh@suse.cz>
7418
7419         * tree-inline.c (estimate_num_insns): For stdarg functions look
7420         into call statement to count cost of argument passing.
7421
7422 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
7423
7424         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7425         argument for fprintf.
7426         (ix86_output_addr_diff_elt): Likewise.
7427         (x86_function_profiler): Likewise.
7428         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7429         (LPREFIX): Likewise.
7430         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7431
7432 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
7433
7434         PR target/44338
7435         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7436         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7437         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7438         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7439         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7440         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7441         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7442         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7443         TARGET_FUSED_MADD.
7444
7445 2010-05-31  Jan Hubicka  <jh@suse.cz>
7446
7447         * tree.h (tree_range_check_failed): Declare noreturn.
7448
7449 2010-05-31  Jan Hubicka  <jh@suse.cz>
7450
7451         * gimple.c (gimple_call_builtin_p): New function.
7452         * gimple.h (gimple_call_builtin_p): Declare.
7453         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7454         to exit.
7455         (execute_warn_function_return): BUILT_IN_RETURN is return.
7456         (split_critical_edges): Return edges are not critical.
7457         (is_ctrl_altering_stmt): Builtin_in_return is altering.
7458         (gimple_verify_flow_info): Handle built_in_return.
7459         (execute_warn_function_return): Handle built_in_return.
7460         * ipa-pure-const.c (check_call): Ignore builtin_return.
7461
7462 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
7463
7464         PR middle-end/44337
7465         * expr.c (expand_assignment): Don't store anything for out-of-bounds
7466         array accesses with non-MEM.
7467
7468         PR tree-optimization/44182
7469         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7470         newly needs to end a bb is followed by debug stmts, instead return
7471         true from the function at the end.
7472         (maybe_move_debug_stmts_to_successors): New function.
7473         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7474
7475 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
7476
7477         PR target/44161
7478         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7479
7480 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
7481
7482         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7483         for nested functions in non-optimized compilation.
7484
7485 2010-05-31  Richard Guenther  <rguenther@suse.de>
7486
7487         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
7488
7489 2010-05-30  Jan Hubicka  <jh@suse.cz>
7490
7491         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
7492
7493 2010-05-30  Richard Guenther  <rguenther@suse.de>
7494
7495         PR lto/42975
7496         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
7497         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
7498         no longer needed.
7499
7500 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
7501
7502         * config/darwin.c (output_objc_section_asm_op): Add comment.
7503         (name_needs_quotes): Add '_' to list of valid comment chars.
7504         (machopic_output_function_base_name): Remove unneeded quotes.
7505         (darwin_encode_section_info): Adjust asm whitespace.
7506         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
7507         (ASM_OUTPUT_LOCAL): Ditto.
7508         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
7509         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
7510         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
7511
7512 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
7513
7514         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
7515         RS6000_OUTPUT_BASENAME unconditionally.
7516         (rs6000_output_function_epilogue): Likewise.
7517
7518 2010-05-30  Jan Hubicka  <jh@suse.cz>
7519
7520         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
7521         nodes.
7522
7523 2010-05-30  Richard Guenther  <rguenther@suse.de>
7524
7525         * tree-cfg.c (verify_gimple_assign_single): Implement
7526         verification for COND_EXPR rhs.
7527
7528 2010-05-30  Jan Hubicka  <jh@suse.cz>
7529
7530         * cgraph.h (cgraph_dump_file): Declare.
7531         * cgraphunit.c (cgraph_dump_file): Export.
7532         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
7533
7534 2010-05-30  Jan Hubicka  <jh@suse.cz>
7535
7536         * dwarf2out.c (reference_to_unused,
7537         premark_types_used_by_global_vars_helper): Avoid creation of new
7538         varpool nodes.
7539
7540 2010-05-30  Jan Hubicka  <jh@suse.cz>
7541
7542         * cgraph.h (cgraph_node_cannot_return,
7543         cgraph_edge_cannot_lead_to_return): New functions.
7544         * cgraph.c (cgraph_node_cannot_return,
7545         cgraph_edge_cannot_lead_to_return): Use them.
7546         * ipa-pure-const.c (pure_const_names): New static var.
7547         (check_call): Handle calls not leading to return.
7548         (pure_const_read_summary): Dump info read.
7549         (propagate): Dump info about propagation process; ignore side effects
7550         of functions not leading to exit; fix handling of pure functions.
7551
7552 2010-05-30  Jan Hubicka  <jh@suse.cz>
7553
7554         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
7555         for tail call epilogues.
7556
7557 2010-05-30  Jan Hubicka  <jh@suse.cz>
7558
7559         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
7560         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
7561         dump files.
7562
7563 2010-05-29  Jan Hubicka  <jh@suse.cz>
7564
7565         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
7566         node; remove references in node we no longer keep in cgrpah but need
7567         body of.
7568
7569 2010-05-29  Jan Hubicka  <jh@suse.cz>
7570
7571         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
7572
7573 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7574
7575         PR target/44165
7576         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
7577
7578 2010-05-29  Jan Hubicka  <jh@suse.cz>
7579
7580         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
7581         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
7582         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
7583         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
7584         debug_names_replaced_by, debug_update_ssa): Likewise.
7585         * sbitmap.c (debug_sbitmap): Likewise.
7586         * genrecog.c (debug_decision, debug_decision_list): Likewise.
7587         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
7588         debug_tree_chain): Likewise.
7589         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
7590         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
7591         * optabs.c  (debug_optab_libfuncs): Likewise.
7592         (verify_loop_closed_ssa): Likewise.
7593         * value-prof.c (verify_histograms): Likewise.
7594         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
7595         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
7596         * cfghooks.c (verify_flow_info): Likewise.
7597         * fold-const.c (debug_fold_checksum): Likewise.
7598         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
7599         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
7600         Likewise.
7601         * omega.c (debug_omega_problem): Likewise.
7602         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
7603         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
7604         * dominance.c (verify_dominators, debug_dominance_info,
7605         debug_dominance_tree): Likewise.
7606         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
7607         * df_regno_debug, df_ref_debug,
7608         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
7609         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
7610         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
7611         * sel-sched.c (debug_state): Likewise.
7612         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
7613         Likewise.
7614         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
7615         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
7616         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
7617         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
7618         Likewise.
7619         * c-pretty-print.c (debug_c_tree): Likewise.
7620         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
7621         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
7622         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
7623         * ebitmap.c (debug_ebitmap): Likewise.
7624         * function.c (debug_find_var_in_block_tree): Likewise.
7625         * print-rtl.c (debug_rtx): Likewise.
7626         (debug_rtx_count): Likewise.
7627         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
7628         * stor-layout.c (debug_rli): Likewise.
7629         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
7630         * tree-data-ref.c (debug_data_references,
7631         debug_data_dependence_relations, debug_data_reference,
7632         debug_data_dependence_relation, debug_rdg_vertex,
7633         debug_rdg_component, debug_rdg): Likewise.
7634         * tree-affine.c (debug_aff): Likewise.
7635         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
7636         Likewise.
7637         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
7638         * emit-rtl.c (verify_rtl_sharing): Likewise.
7639         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
7640         debug_value_expressions): Likewise.
7641         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
7642         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
7643         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
7644         * cfglayout.c (verify_insn_chain): Likewise.
7645         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
7646         debug_clast_stmt, debug_generated_program): Likewise.
7647         * ggc-page.c (debug_print_page_list): Likewise.
7648         * tree-ssa-ter.c (debug_ter): Likewise.
7649         * graphite-dependences.c (debug_pddr): Likewise.
7650         * sched-deps.c (debug_ds): Likewise.
7651         * tree-ssa.c (verify_ssa): Likewise.
7652         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
7653         debug_scattering_functions, debug_iteration_domains, debug_pdr,
7654         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
7655         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
7656         * tree-inline.c (debug_find_tree): Likewise.
7657         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
7658         debug_ppl_powerset_matrix): Likewise.
7659         * var-tracking.c (debug_dv): Likewise.
7660         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
7661         * cfgloop.c (verify_loop_structure): Likewise.
7662         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
7663         * c-common.c (verify_sequence_points): Likewise.
7664         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
7665         debug_candidates, debug_rgn_dependencies): Likewise.
7666         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
7667         * debug_constraint_graph, debug_solution_for_var,
7668         debug_sa_points_to_info): Likewise.
7669         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
7670         Likewie.
7671         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
7672         debug_loops, debug_loop, debug_loop_num): Likewise.
7673         * passes.c (debug_pass): Likewise.
7674         (dump_properties): Likewise; add cfglayout property.
7675         (debug_properties): Likewise.
7676         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
7677         * varpool.c (debug_varpool): Likewise.
7678         * regcprop.c (debug_value_data): Likewise.
7679         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
7680         debug_immediate_uses_for): Likewise.
7681
7682 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7683
7684         PR bootstrap/44315
7685         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
7686         Filter out insn-flags.h.
7687
7688 2010-05-29  Jan Hubicka  <jh@suse.cz>
7689
7690         * cgraph.h (struct varpool_node_set_def,
7691         struct cgraph_node_set_def): Remove unused AUX pointer.
7692         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
7693         VEC_empty macro.
7694
7695 2010-05-29  Jan Hubicka  <jh@suse.cz>
7696
7697         PR middle-end/44324
7698         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
7699
7700 2010-05-29  Richard Guenther  <rguenther@suse.de>
7701
7702         * lto-streamer.c (cached_bp): New global variable.
7703         (bitpack_create): Return the cached bitpack, if available.
7704         (bitpack_delete): Clear and cache the bitpack, if appropriate.
7705         (bp_pack_value): Remove redundant asserts.
7706
7707 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
7708
7709         PR middle-end/44306
7710         * tree-if-conv.c (is_true_predicate): New.
7711         (is_predicated): Use is_true_predicate.
7712         (add_to_predicate_list): Same.  Do not use unshare_expr.
7713         (add_to_dst_predicate_list): Same.
7714
7715 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
7716
7717         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7718         field on edges.
7719         (predicate_bbs): Same.
7720         (clean_predicate_lists): Same.
7721         (find_phi_replacement_condition): Do not AND the predicate from
7722         edge->aux.
7723
7724 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7725
7726         PR bootstrap/44315
7727         * Makefile.in (build/gencondmd.o): Add a missing `\'.
7728
7729 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7730
7731         PR target/44261
7732         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7733         (negdf2): Adjust expander pattern and use negdf2_slow.
7734         (negsf2): Likewise.
7735
7736 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
7737
7738         * basic-block.h (struct control_flow_graph): Move last_label_uid field
7739         up.
7740         * df.h (struct df_base_ref): Move regno field up.
7741         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7742         * expr.h (struct separate_ops): Move location field up.
7743         * optabs.h (struct optab_d): Move libcall_basename field down.
7744         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7745         * config/i386/i386.h (struct machine_function): Convert call_abi field
7746         into a bitfield.  Move cfa field to the end of the structure.
7747
7748 2010-05-29  Jan Hubicka  <jh@suse.cz>
7749
7750         * varpool.c (varpool_get_node): Fix lookup.
7751
7752 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7753
7754         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
7755         RTL specific prototypes with #ifdef RTX_CODE.
7756         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7757         * config/spu/t-spu-elf: Fix dependencies.
7758
7759         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
7760
7761 2010-05-29  Mike Stump  <mikestump@comcast.net>
7762
7763         PR bootstrap/44315
7764         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
7765         TM_H when building to avoid dependency loops.
7766
7767 2010-05-29  Jan Hubicka  <jh@suse.cz>
7768
7769         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
7770         refs and body; not the whole node for masters of materialized clones.
7771
7772 2010-05-29  Mike Stump  <mikestump@comcast.net>
7773
7774         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
7775
7776 2010-05-29  Jan Hubicka  <jh@suse.cz>
7777
7778         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
7779         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
7780         use of clone_function_name.
7781         * cgraph.h (cgraph_create_virtual_clone,
7782         cgraph_function_versioning): update prototypes.
7783         (clone_function_name): Declare.
7784         * ipa-cp.c (ipcp_insert_stage): Update call of
7785         cgraph_create_virtual_clone.
7786         * omp-low.c (create_omp_child_function_name): Use
7787         cgraph_create_virtual_clone.
7788         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
7789         (cgraph_function_versioning): Take SUFFIX argument; produce new name
7790         and make decl local.
7791
7792 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7793
7794         * vec.h: Include statistics.h
7795         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
7796         with VEC_H.
7797
7798 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7799
7800         * c-lex.c: Do not include c-tree.h.
7801         * c-pretty-print.c: Likewise.
7802         * c-opts.c: Likewise.
7803         * c-gimplify.c: Likewise.
7804         * c-common.c: Likewise.
7805         * c-dump.c: Likewise.  Include c-common.h.
7806
7807 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7808
7809         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
7810         before including diagnostic-core.h.
7811         (c_cpp_error): New prototype moved from c-tree.h.
7812         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
7813         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
7814         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
7815         (c_cpp_error): Prototype moved to c-common.h.
7816         * Makefile.in: Update dependency for C_COMMON_H.
7817
7818 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7819
7820         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7821         * c-common.c (c_register_addr_space): Remove here.
7822         * c-decl.c (c_register_addr_space): Re-add here.
7823
7824 2010-05-28  Mike Stump  <mikestump@comcast.net>
7825
7826         * config/darwin-c.c: Remove c-tree.h include.
7827
7828 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7829
7830         * gcc.c: Include diagnostic.h.
7831         (error_count): Remove.  All users changed to use errorcount.
7832         (programname): Remove.  All users changed to use progname.
7833         (fancy_abort, internal_error, fatal_error, error, warning, inform,
7834         fnotice): Remove.
7835         (execute): Don't include "Internal error" and bug reporting
7836         information in argument of internal_error call.
7837         (process_command): Don't increment error_count after calling
7838         perror_with_name.
7839         (input_filename): Rename to gcc_input_filename.  All users
7840         changed.
7841         (main): Call diagnostic_initialize.  Register delete_temp_files
7842         with atexit.  Use seen_error to test for errors.
7843         * gcc.h: Include diagnostic-core.h.
7844         (fatal_error, error, warning): Remove.
7845         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7846         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7847         (gcc.o): Update dependencies.
7848
7849 2010-05-28  Jeff Law  <law@redhat.com>
7850
7851         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7852         functions.
7853         * ira.h (ira_bad_reload_regno): Declare
7854         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7855
7856         * ira-color.c (update_curr_costs): Free updated hard reg costs.
7857         (ira_reassign_conflict_allocnos): Remove bogus asserts.
7858         (allocno_reload_assign): Likewise.
7859
7860 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
7861
7862         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7863         build1_stat.
7864
7865 2010-05-28  Richard Guenther  <rguenther@suse.de>
7866
7867         PR lto/44312
7868         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7869         Stream fixed-point constants mode.
7870         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7871         and TYPE_PRECISION.
7872         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7873         Stream fixed-point constants mode.
7874         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7875         and TYPE_PRECISION.
7876
7877 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7878
7879         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7880         only place it was called from.
7881         (number_of_latch_executions): Do not return chrec_dont_know when the
7882         may_be_zero is a runtime condition: instead, return a COND_EXPR
7883         including the may_be_zero condition.
7884         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7885         of nb_iterations.
7886         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7887         COND_EXPRs.
7888
7889 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7890
7891         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7892         generate COND_EXPRs for degenerate_phi_result.
7893
7894 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7895
7896         PR middle-end/44293
7897         * tree-if-conv.c (if_convertible_loop_p): Check the
7898         if-convertibility of phi nodes in non predicated BBs.
7899
7900 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7901
7902         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7903
7904 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7905
7906         PR driver/15303
7907         * gcc.c (inform, warning, inform): New functions.
7908         (fatal_ice): Rename to internal_error; change cmsgid parameter to
7909         gmsgid.  All callers changed.
7910         (notice): Rename to fnotice; add parameter fp.  All callers changed.
7911         (fatal_error): Rename to fatal_signal.  All users changed.
7912         (fatal): Rename to fatal_error; change cmsgid parameter to
7913         gmsgid.  All callers changed.
7914         (process_command): Use warning instead of error for warnings.
7915         (end_going_arg): Don't use _() around argument of error.
7916         (do_spec_1): Use inform for message from %n specs.  Use warning
7917         instead of error for warnings.
7918         (main): Use inform for comparison messages.  Use warning for
7919         message about unused linker input.
7920         (error): Increment error_count.  Print "error: ".
7921         * gcc.h (fatal): Change to fatal_error.
7922         (warning): Declare.
7923         * config/darwin-driver.c (darwin_default_min_version): Use warning
7924         instead of fprintf for warnings.
7925         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7926
7927 2010-05-28  Julian Brown  <julian@codesourcery.com>
7928
7929         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7930         (*thumb2_addsi3_compare0_scratch): New.
7931         * config/arm/constraints.md (Pv): New.
7932         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7933         for ARM mode only.
7934         (*addsi3_compare0_scratch): Likewise.
7935
7936 2010-05-28  Jan Hubicka  <jh@suse.cz>
7937
7938         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7939         check.
7940         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7941         only on local statics.
7942
7943 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
7944
7945         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7946
7947 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7948
7949         PR bootstrap/44314
7950         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7951         (OPTION_GLIBC): Define.
7952
7953 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
7954
7955         PR debug/41048
7956         * dwarf2out.c (double_int_type_size_in_bits): New function.
7957         (round_up_to_align): Change first argument and return value to
7958         double_int.
7959         (field_byte_offset): Work internally on double_ints.
7960
7961         PR target/43636
7962         * builtins.c (expand_movstr): Use a temporary pseudo instead
7963         of target even when target is not NULL and not const0_rtx, but
7964         fails movstr predicate.
7965         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7966
7967 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7968
7969         * final.c (rest_of_clean_state): Use %m in errors instead of
7970         strerror (errno).
7971         * gengtype.c (read_input_list, close_output_files): Use xstrerror
7972         instead of strerror.
7973         * toplev.c (process_options): Use %m in errors instead of strerror
7974         (errno).
7975         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7976         (errno).
7977
7978 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
7979
7980         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7981         (ix86_canonical_va_list_type): Make static.  Add declaration.
7982         (ix86_enum_va_list): Make static.  Reindent.
7983         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7984         (ix86_canonical_va_list_type): Ditto.
7985         (ix86_enum_va_list): Ditto.
7986
7987 2010-05-28  Richard Guenther  <rguenther@suse.de>
7988
7989         * lto-wrapper.c (run_gcc): With -save-temps generate a
7990         user-visible ltrans filename.  Fixup ltrans unit numbering.
7991
7992 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
7993
7994         * c-common.c (c_common_nodes_and_builtins): Replace use
7995         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7996         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7997         to ix86_enum_va_list.
7998         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7999         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
8000         (TARGET_ENUM_VA_LIST_P): Add hook description.
8001         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
8002         * target.h (gcc_target): Add enum_va_list hook.
8003
8004         PR bootstrap/44299
8005         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
8006         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
8007         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
8008
8009 2010-05-28  Alan Modra  <amodra@gmail.com>
8010
8011         PR target/44266
8012         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8013         emit_library_call machinery to set up __tls_get_addr calls.
8014
8015 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8016
8017         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
8018
8019 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
8020
8021         Revert fix for PR c++/44188
8022         * c-common.c (is_typedef_decl): Revert the moving of  this
8023         definition ...
8024         * tree.c (is_typedef_decl): ... here.
8025         (typdef_variant_p): Revert the moving of this  definition
8026         here from gcc/cp/tree.c.
8027         * c-common.h (is_typedef_decl): Revert the moving of this
8028         declaration ...
8029         * tree.h (is_typedef_decl): ... here.
8030         (typedef_variant_p): Revert the moving of this  declaration here
8031         from gcc/cp/cp-tree.h
8032         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
8033         (gen_tagged_type_die): Revert the splitting out of ...
8034         (gen_type_die_with_usage): ... this function. Revert the anonymous
8035         tagged type handling.
8036         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
8037         typedefs naming anonymous tagged types.
8038
8039 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
8040
8041         * config/rs6000/rs6000-modes.def (PSImode): Delete.
8042
8043 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
8044
8045         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
8046         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
8047         throughout.
8048         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
8049         "xer" to "ca".
8050         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
8051         XER_REGS to CA_REGS throughout.
8052         * config/rs6000/rs6000.h: Same.
8053         (ADDITIONAL_REGISTER_NAMES): Add "xer".
8054         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
8055         that mode_iterator "P" is the size for arithmetic carries as well.
8056         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
8057
8058 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
8059
8060         PR bootstrap/44255
8061         * combine.c (struct rtx_subst_pair): Define unconditionally.
8062         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
8063         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
8064         Call make_compound_operation on pair->to.
8065         (propagate_for_debug): Don't call make_compound_operation here.
8066         Always use simplify_replace_fn_rtx.
8067
8068 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
8069
8070         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
8071         * config/xtensa/xtensa.c (override_options): Check
8072           TARGET_FORCE_NO_PIC and set flag_pic.
8073         * config/xtensa/xtensa.opt: Document -mforce-no-pic
8074
8075 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
8076
8077         PR bootstrap/44299
8078         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
8079         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
8080
8081 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
8082
8083         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
8084         toplev.h.
8085         * diagnostic.c: Don't include toplev.h.
8086         (progname): Define.  Moved from toplev.c.
8087         (seen_error): New function.
8088         * diagnostic.h: Include diagnostic-core.h.
8089         (diagnostic_t, emit_diagnostic): Don't declare here.
8090         * toplev.c (progname): Move to toplev.c.
8091         (emit_debug_global_declarations, compile_file, finalize,
8092         do_compile, toplev_main): Use seen_error.
8093         * toplev.h: Include diagnostic-core.h.
8094         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
8095         internal_error, warning, warning_at, error, error_n, error_at,
8096         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
8097         verbatim, fnotice, progname): Move to diagnostic-core.h.
8098         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
8099         (expand_builtin_expect): Use seen_error.
8100         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
8101         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
8102         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
8103         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
8104         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
8105         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
8106         errorcount for errors.
8107         * c-opts.c (c_common_finish): Use seen_error.
8108         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8109         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
8110         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
8111         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
8112         (get_coverage_counts): Use seen_error.
8113         * dwarf2out.c (dwarf2out_finish): Use seen_error.
8114         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
8115         gimplify_body): Use seen_error.
8116         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
8117         * ipa-pure-const.c (gate_pure_const): Use seen_error.
8118         * ipa-reference.c (gate_reference): Use seen_error.
8119         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
8120         * lambda-code.c: Include diagnostic-core.h instead of
8121         diagnostic.h.
8122         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8123         * lto-compress.c: Include diagnostic-core.h instead of
8124         diagnostic.h.
8125         * lto-section-in.c: Include diagnostic-core.h instead of
8126         diagnostic.h.
8127         * lto-streamer-out.c: Include diagnostic-core.h instead of
8128         diagnostic.h.
8129         * lto-streamer.c: Include diagnostic-core.h instead of
8130         diagnostic.h.
8131         (gate_lto_out): Use seen_error.
8132         * matrix-reorg.c: Include diagnostic-core.h instead of
8133         diagnostic.h.
8134         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8135         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8136         (gate_expand_omp, lower_omp_1): Use seen_error.
8137         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8138         (rest_of_decl_compilation, rest_of_type_compilation,
8139         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8140         * tree-cfg.c (label_to_block_fn): Use seen_error.
8141         * tree-inline.c (optimize_inline_calls): Use seen_error.
8142         * tree-mudflap.c (mudflap_finish_file): Use
8143         seen_error.
8144         * tree-optimize.c (gate_all_optimizations,
8145         gate_all_early_local_passes, gate_all_early_optimizations): Use
8146         seen_error.
8147         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8148         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8149         (varpool_remove_unreferenced_decls,
8150         varpool_assemble_pending_decls): Use seen_error.
8151         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8152         (TOPLEV_H, DIAGNOSTIC_H): Update.
8153         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8154         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8155         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8156         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8157         coverage.o, lambda-code.o): Update dependencies.
8158
8159 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
8160
8161         PR c++/44188
8162         * c-common.c (is_typedef_decl): Move this definition ...
8163         * tree.c (is_typedef_decl): ... here.
8164         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8165         * c-common.h (is_typedef_decl): Move this declaration ...
8166         * tree.h (is_typedef_decl): ... here.
8167         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8168         * dwarf2out.c (is_naming_typedef_decl): New function.
8169         (gen_tagged_type_die): Split out of ...
8170         (gen_type_die_with_usage): ... this function. When an anonymous
8171         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8172         is emitted for the typedef.
8173         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8174         anonymous tagged types.
8175
8176 2010-05-27  Jason Merrill  <jason@redhat.com>
8177
8178         * print-tree.c (debug_vec_tree): New fn.
8179         (print_vec_tree): New fn.
8180         * tree.h: Declare them.
8181         * gdbinit.in (pvt): New command.
8182
8183         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8184
8185         * gdbinit.in (pdd): New command.
8186
8187 2010-05-27  Jan Hubicka  <jh@suse.cz>
8188
8189         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8190         (update_caller_keys): Return early if there are no callers;
8191         only update fibheap when decresing the key.
8192         (update_callee_keys): Avoid recursion.
8193         (decide_inlining_of_small_functions): When badness does not match;
8194         re-insert into fibheap.
8195
8196 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
8197
8198         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8199         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8200         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8201         (ALL_HOST_OBJS): Now a union of the above two.
8202         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8203         all files in ALL_HOST_FRONTEND_OBJS.
8204         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8205
8206         * c-common.c: Pretend to be a backend file by undefining
8207         IN_GCC_FRONTEND (still need rtl.h here).
8208
8209 2010-05-27  Jan Hubicka  <jh@suse.cz>
8210
8211         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8212         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8213
8214 2010-05-27  Jan Hubicka  <jh@suse.cz>
8215
8216         * sched-ebb.c: Rename struct deps to struct deps_desc.
8217         * ddg.c: Likewise.
8218         * sel-sched-ir.c: Likewise.
8219         * sched-deps.c: Likewise.
8220         * sched-int.h: Likewise.
8221         * sched-rgn.c: Likewise.
8222
8223 2010-05-27  Jon Beniston  <jon@beniston.com>
8224
8225         PR 43726
8226         * config/lm32/lm32.h: Remove definition of
8227         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8228
8229 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8230
8231         PR lto/44230
8232         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8233
8234 2010-05-27  Richard Guenther  <rguenther@suse.de>
8235
8236         PR tree-optimization/44284
8237         * tree-vect-stmts.c (vectorizable_assignment): Handle
8238         sign-changing conversions as simple copy.
8239
8240 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8241
8242         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8243         Bionic C library.
8244         (__gthread_active_p): Check for pthread_create if compiling against
8245         Bionic C library.
8246
8247 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8248
8249         Support compilation for Android platform.  Reimplement -mandroid.
8250
8251         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8252         (*android*): Set ANDROID_DEFAULT.
8253         (arm*-*-linux*): Include linux-android.h.
8254         (arm*-*-eabi*): Don't include previous -mandroid implementation.
8255         * config/arm/eabi.h: Remove, move Android-specific parts ...
8256         * config/linux-android.h: ... here.  New file.
8257         * config/arm/eabi.opt: Rename to ...
8258         * config/linux-android.opt: ... this.
8259         (mandroid): Allow -mno-android option.  Initialize based on
8260         ANDROID_DEFAULT.
8261         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8262         Move logic to corresponding LINUX_TARGET_* macros.
8263         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8264         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8265         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8266         Android definitions.
8267         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8268         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8269         Document.
8270
8271 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8272
8273         Add support for Bionic C library
8274
8275         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8276         macro.
8277         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8278         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8279
8280         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8281         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8282         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8283         to support multiple C libraries.  Handle Bionic.
8284         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8285         (BIONIC_DYNAMIC_LINKER64): Define.
8286         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8287         Update.
8288         (TARGET_HAS_SINCOS): Enable for Bionic.
8289
8290         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
8291         the last option specified on command line take effect.
8292         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8293         (mbionic): New.
8294         (mglibc, muclibc): Update.
8295
8296         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8297         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8298         DEFAULT_LIBC.
8299
8300         * doc/invoke.texi (-mglibc, -muclibc): Update.
8301         (-mbionic): Document.
8302
8303 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8304
8305         * c-common.h (c_register_addr_space): Add prototype.
8306         (ADDR_SPACE_KEYWORD): Remove.
8307         * c-common.c (c_register_addr_space): New function.
8308         (c_addr_space_name): Reimplement.
8309         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8310
8311         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8312         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8313
8314         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8315         Remove TARGET_ADDR_SPACE_KEYWORDS.
8316
8317 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
8318
8319         * input.c: New file.
8320         * input.h (main_input_filename): Move declaration to toplev.h.
8321         * toplev.c (input_location, line_table): Move to input.c
8322         * toplev.h (main_input_filename): Move declaration from input.h.
8323         * tree.c (expand_location): Move to input.c.
8324         * Makefile.in (OBJS-common): Add input.o.
8325         (input.o): Add dependencies.
8326
8327 2010-05-27  Richard Guenther  <rguenther@suse.de>
8328
8329         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8330         for non-existant files.
8331         (fork_execute): Mark args_name file as deleted.
8332
8333 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
8334
8335         PR bootstrp/44287
8336         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8337         (narrow_signed_type): Likewise.
8338
8339 2010-05-26  Jan Hubicka  <jh@suse.cz>
8340
8341         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8342         edge only when checking is enabled; check using former_clone_of;
8343         check inline clones too.
8344         (cgraph_materialize_clone): Record former_clone_of pointer.
8345         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8346         combining redirections; dump args_to_skip bitmap
8347         (cgraph_materialize_all_clones): Do no redirection here.
8348         * ipa-inline.c (inline_transform): Do redirection here.
8349         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
8350         cheking only).
8351
8352 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8353
8354         * config/avr/avr-c.c: Do not include regs.h.
8355         Include cpplib.h for cpp_define and tree.h for c-common.h.
8356         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
8357         * config/avr/t-avr: Fix dependencies for avr-c.o.
8358
8359 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8360
8361         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
8362         string instead of SYMBOL_REF rtx.
8363         * rtl.h (set_stack_check_libfunc): Move prototype from here...
8364         * libfuncs.h: ...to here.  Adjust for explow.c change.
8365
8366 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
8367
8368         * pretty-print.c: Don't include ggc.h.
8369         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
8370         (identifier_to_locale): Use them for allocation.
8371         * pretty-print.h (identifier_to_locale_alloc,
8372         identifier_to_locale_free): Declare.
8373         * toplev.c (alloc_for_identifier_to_locale): New.
8374         (general_init): Set identifier_to_locale_alloc and
8375         identifier_to_locale_free.
8376         * Makefile.in (pretty-print.o): Update dependencies.
8377
8378 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8379
8380         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
8381         pointer types if they have different alignment or mode.
8382
8383 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
8384
8385         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8386         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8387         * config/sparc/sparc-protos.h (function_value): Remove declaration.
8388         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
8389         sparc_function_value_regno_p): New functions.
8390         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8391         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8392         (function_value): Rename to...
8393         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
8394         argument to 'outgoing'.
8395         (function_arg_record_value, function_arg_union_value,
8396         function_arg_vector_value): Update comment.
8397
8398 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8399
8400         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
8401         (fde_needed_for_eh_p): New predicate.
8402         (output_call_frame_info): Use it throughout to decide whether FDEs
8403         are needed for EH purpose.
8404         (dwarf2out_begin_prologue): Reorder assignments.
8405
8406 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8407
8408         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
8409         special case loop->header.
8410         (is_predicated): New.
8411         (if_convertible_loop_p): Call it.
8412
8413 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8414
8415         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8416         iterator in parameter.  Do not generate code during the analysis.
8417         (tree_if_convert_cond_stmt): Removed.
8418         (tree_if_convert_stmt): Removed.
8419         (predicate_bbs): New.
8420         (if_convertible_loop_p): Call predicate_bbs.
8421         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8422         now contains all the analysis part.
8423
8424 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8425
8426         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8427         statements in the analysis part.
8428         (tree_if_convert_stmt): Update comment.
8429         (remove_conditions_and_labels): New.
8430         (combine_blocks): Call remove_conditions_and_labels.
8431         (tree_if_conversion): Update comment.
8432
8433 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8434
8435         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8436         than 2 predecessors or more than 2 successors.
8437
8438 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8439
8440         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8441         of loops in which the data dependence analysis fails.
8442
8443 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8444
8445         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8446         CDI_POST_DOMINATORS.
8447         (tree_if_conversion): Same.
8448
8449 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8450
8451         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8452
8453 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8454
8455         * tree-if-conv.c: Update copyright years.  Fix comments.
8456         Fix indentation.
8457
8458 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
8459
8460         * builtin-types.def (BT_INT128): New primitive type.
8461         (BT_UINT128): Likewise.
8462         * c-common.c (c_common_r): Add __int128 keyword.
8463         (c_common_type_for_size): Handle __int128.
8464         (c_common_type_for_mode): Likewise.
8465         (c_common_signed_or_unsigned_type): Likewise.
8466         (c_common_nodes_and_builtins): Add builtin type
8467         if target supports 128-bit integer scalar.
8468         * c-common.h (enum rid): Add RID_INT128.
8469         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8470         if target supports 128-bit integer scalar.
8471         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8472         (finish_declspecs): Likewise.
8473         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8474         (c_token_starts_declspecs): Likewise.
8475         (c_parser_declspecs): Likewise.
8476         (c_parser_attributes): Likewise.
8477         (c_parser_objc_selector): Likewise.
8478         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8479         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8480         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8481         * tree.c (make_or_reuse_type): Likewise.
8482         (make_unsigned_type): Likewise.
8483         (build_common_tree_nodes_2): Likewise.
8484         * tree.h (enum integer_type_kind): Add itk_int128 and
8485         itk_unsigned_int128.
8486         (int128_integer_type_node): New define.
8487         (int128_unsigned_type_node): New define.
8488         * doc/extend.texi: Add documentation about __int128 type.
8489
8490 2010-05-26  Richard Guenther  <rguenther@suse.de>
8491
8492         * tree-ssa-sccvn.c (copy_nary): Adjust.
8493         (copy_phis): Rename to ...
8494         (copy_phi): ... this.  Adjust.
8495         (copy_references): Rename to ...
8496         (copy_reference): ... this.  Adjust.
8497         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
8498         result into the valid table.
8499
8500 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8501
8502         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
8503         insn-config.h, insn-codes.h, recog.h, and optabs.h.
8504
8505 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8506
8507         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
8508
8509 2010-05-26  Richard Guenther  <rguenther@suse.de>
8510
8511         * opts.c (common_handle_option): Handle OPT_Ofast.
8512
8513 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
8514
8515         * diagnostic.c: Don't include opts.h.
8516         (permissive_error_option): Define.
8517         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
8518         for classify_diagnostic.  Don't use memset for
8519         classify_diagnostic.  Initialize new and recently added fields.
8520         (diagnostic_classify_diagnostic): Use context->n_opts instead of
8521         N_OPTS.
8522         (diagnostic_report_diagnostic): Pass context parameter to
8523         diagnostic_report_warnings_p.  Use option_enabled and option_name
8524         hooks from context.
8525         (emit_diagnostic): Use permissive_error_option.
8526         (permerror): Likewise.
8527         * diagnostic.h: Don't include options.h.
8528         (struct diagnostic_context): Add n_opts, opt_permissive,
8529         inhibit_warnings, warn_system_headers, option_enabled and
8530         option_name fields.  Change classify_diagnostic to a pointer.
8531         * opts-diagnostic.h: New file.
8532         * opts.c: Include opts-diagnostic.h.
8533         (common_handle_option): Set global_dc fields for -Wfatal-errors,
8534         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
8535         (option_name): New function.
8536         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
8537         (c_common_handle_option): Set global_dc->permissive for
8538         -fpermissive.
8539         * c-common.c (c_cpp_error): Save and restore
8540         global_dc->warn_system_headers, not variable warn_system_headers.
8541         * toplev.c: Include opts-diagnostic.h.
8542         (general_init): Update call to diagnostic_initialize.  Set
8543         global_dc->show_column, global_dc->option_enabled and
8544         global_dc->option_name.
8545         (process_options): Don't set global_dc fields here.
8546         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
8547         (diagnostic.o, opts.o, toplev.o): Update dependencies.
8548
8549 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
8550
8551         * config/picochip/picochip.md (movsi): Split a movsi from a
8552         const after reload.
8553
8554 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8555
8556         * ggc-zone.c: Update copyright year.
8557         (poison_region): Mark memory for Valgrind as undefined before
8558         memset () call and inaccessible afterwards.
8559         (ggc_pch_total_size): Change type of i to int.
8560
8561 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8562
8563         * ggc-common.c (ggc_free_overhead): Allow empty slot.
8564
8565 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8566
8567         * ggc-common.c: Update copyright year.
8568         (ggc_rlimit_bound): Remove prototype.  Compile only if
8569         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
8570         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
8571         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
8572         (ggc_min_heapsize_heuristic): Likewise.
8573
8574 2010-05-26  Richard Guenther  <rguenther@suse.de>
8575
8576         PR rtl-optimization/44164
8577         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
8578         no-common access-path disambiguation.
8579         (indirect_ref_may_alias_decl_p): Adjust.
8580         (indirect_refs_may_alias_p): Likewise.
8581         (refs_may_alias_p_1): Likewise.
8582
8583 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8584
8585         * c-typeck.c: Do not include expr.h.
8586
8587 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8588
8589         * rtl.h (decl_default_tls_model): Move prototype from here...
8590         * output.h: ...to here.
8591         * c-decl.c: Do not include rtl.h.
8592         * c-pragma.c: Likewise.
8593         * c-parser.c: Likewise.
8594         * c-gimplify.c: Likewise.  And also not hard-reg-set.
8595         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
8596         FIXME note for it.  Add a FIXME note for expr.h.
8597         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
8598         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
8599         defined.
8600
8601 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
8602
8603         PR target/44199
8604         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
8605         or total_size is larger than red zone size for non-V4 ABI, emit a
8606         stack_tie resp. frame_tie insn before stack pointer restore.
8607         * config/rs6000/rs6000.md (frame_tie): New insn.
8608
8609 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8610
8611         * function.h (struct function): Add can_throw_non_call_exceptions bit.
8612         * lto-streamer-in.c (input_function): Stream it in.
8613         * lto-streamer-out.c (output_function): Stream it out.
8614         * function.c (allocate_struct_function): Set it.
8615         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
8616         for flag_non_call_exceptions.
8617         * cfgbuild.c (control_flow_insn_p): Likewise.
8618         (make_edges): Likewise.
8619         * cfgexpand.c (expand_stack_alignment): Likewise.
8620         * combine.c (distribute_notes): Likewise.
8621         * cse.c (cse_extended_basic_block): Likewise.
8622         * except.c (insn_could_throw_p): Likewise.
8623         * gcse.c (simple_mem): Likewise.
8624         * ipa-pure-const.c (check_call): Likewise.
8625         (check_stmt ): Likewise.
8626         * lower-subreg.c (lower-subreg.c): Likewise.
8627         * optabs.c (emit_libcall_block): Likewise.
8628         (prepare_cmp_insn): Likewise.
8629         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
8630         * postreload.c (rest_of_handle_postreload): Likewise.
8631         * reload1.c (reload_as_needed): Likewise.
8632         (emit_input_reload_insns): Likewise.
8633         (emit_output_reload_insns): Likewise.
8634         (fixup_abnormal_edges): Likewise.
8635         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
8636         * store-motion.c (find_moveable_store): Likewise.
8637         * tree-eh.c (stmt_could_throw_p): Likewise.
8638         (tree_could_throw_p): Likewise.
8639         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8640         * config/arm/arm.c (arm_expand_prologue): Likewise.
8641         (thumb1_expand_prologue): Likewise.
8642         * config/rx/rx.md (cbranchsf4): Likewise.
8643         (cmpsf): Likewise.
8644         * config/s390/s390.c (s390_emit_prologue): Likewise.
8645         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
8646         (inline_forbidden_into_p): New predicate.
8647         (expand_call_inline): Use it to forbid inlining.
8648         (tree_can_inline_p): Likewise.
8649
8650 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8651
8652         * config/i386/i386-c.c: Do not include rtl.h.
8653         * config/i386/t-i386: Update dependencies.
8654
8655 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8656
8657         * attribs.c: Do not include rtl.h.
8658         * Makefile.in: Update dependencies.
8659
8660 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
8661
8662         * double-int.h (double_int_and): New.
8663         * combine.c (try_combine): Clean up, use double_int_* and
8664         immed_double_int_const functions.
8665
8666 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8667
8668         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
8669         stderr to /dev/null instead of grep -q.
8670         * configure: Regenerate.
8671
8672 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8673
8674         * Makefile.in (EXCEPT_H): Fix typo.
8675
8676 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
8677
8678         * ira-build.c (update_conflict_hard_reg_costs): New.
8679         (ira_build): Call update_conflict_hard_reg_costs.
8680
8681 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
8682
8683         PR debug/41371
8684         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
8685         ENABLE_CHECKING.
8686         (intersect_loc_chains): Walk the s2var's loc_chain together
8687         with s1node chain as long as the locations are equal, don't
8688         call find_loc_in_1pdv in that case.
8689
8690         PR debug/42801
8691         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
8692         (copy_bind_expr): ... instead of here.
8693         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
8694         if the block hasn't been remapped.
8695         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
8696         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
8697
8698 2010-05-25  Richard Guenther  <rguenther@suse.de>
8699
8700         PR middle-end/44069
8701         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
8702         out-of-bounds array accesses.
8703
8704 2010-05-25  Richard Guenther  <rguenther@suse.de>
8705
8706         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
8707         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
8708         (run_gcc): Re-organize to make cleanup easier.
8709
8710 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8711
8712         * config/s390/s390.c (optimization_options): Fix and move the
8713         flag_prefetch_loop_arrays override ...
8714         (override_options): ... here.
8715
8716 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
8717
8718         * diagnostic.c: Don't include plugin.h.
8719         (diagnostic_report_diagnostic): Don't handle plugins specially
8720         here.  Pass context to internal_error callback.
8721         * diagnostic.h (struct diagnostic_context): Add context parameter
8722         to internal_error callback.
8723         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8724         * plugin.h (struct diagnostic_context): Declare.
8725         (warn_if_plugins, plugins_internal_error_function): Declare.
8726         * toplev.c (general_init): Set global_dc->internal_error.
8727         * Makefile.in (diagnostic.o): Update dependencies.
8728
8729 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
8730
8731         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8732         * config/rs6000/t-darwin64: New.
8733         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8734         build crt2.
8735
8736 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
8737
8738         PR 44203
8739         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8740         match the original (and intended) behaviour before r159557.  This
8741         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8742         in two ways.
8743
8744 2010-05-25  Richard Guenther  <rguenther@suse.de>
8745
8746         * doc/invoke.texi: Document -Ofast.
8747         * target.h (struct gcc_target): Add handle_ofast.
8748         * target-def.h (TARGET_HANDLE_OFAST): Add.
8749         (TARGET_INITIALIZER): Adjust.
8750         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
8751         * common.opt (Ofast): Add.
8752
8753 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
8754
8755         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8756         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8757
8758 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
8759
8760         PR target/43610
8761         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
8762         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
8763         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
8764         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
8765
8766 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
8767
8768         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
8769         DW_OP_minus with negated offset instead of DW_OP_plus.
8770         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
8771
8772 2010-05-25  Wei Guozhi  <carrot@google.com>
8773
8774         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
8775         tst instruction and a new alternative.
8776         * config/arm/constraints.md (Pu): New constraint.
8777
8778 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
8779
8780         * function.c (assign_stack_local_1): Initialize variable
8781         to avoid warning when bootstrapping at -O3.
8782
8783 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
8784
8785         * configure.ac (all_lang_makefiles): Remove everything related to it.
8786         * configure: Regenerate.
8787         * Makefile.in: Fix reference to ada Make-lang.in.
8788         Remove support for LANG_MAKEFILES.
8789
8790 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
8791             Sandra Loosemore  <sandra@codesourcery.com>
8792
8793         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
8794         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
8795         description.  Add arm_neon_fp16_ok.
8796         (Add Options): Add arm_neon and arm_neon_fp16.
8797
8798 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
8799
8800         * diagnostic.c: Don't include flags.h.
8801         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
8802         context parameters.  Check flags in the context passed as a parameter.
8803         (diagnostic_build_prefix): Add context parameter.  Check
8804         show_column flag in context.
8805         (diagnostic_action_after_output): Check fatal_errors flag in context.
8806         (diagnostic_report_current_module): Check show_column flag in context.
8807         (default_diagnostic_starter): Update call to
8808         diagnostic_build_prefix.
8809         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
8810         (emit_diagnostic): Pass context to permissive_error_kind.
8811         (permerror): Pass context to permissive_error_kind.
8812         * diagnostic.h (struct diagnostic_context): Add show_column,
8813         pedantic_errors, permissive and fatal_errors fields.
8814         (diagnostic_build_prefix): Update prototype.
8815         * langhooks.c
8816         * toplev.c (process_options): Set flags in global_dc from
8817         flag_show_column, flag_pedantic_errors, flag_permissive,
8818         flag_fatal_errors.
8819         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8820         to diagnostic_build_prefix.
8821         * Makefile.in (diagnostic.o): Update dependencies.
8822
8823 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8824
8825         * config/i386/ia32intrin.h (__crc32q): Define only if
8826         __SSE4_2__ is defined.
8827
8828 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
8829
8830         PR target/44132
8831         PR middle-end/43602
8832         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8833         DECL_VISIBILITY_SPECIFIED.
8834         (emutls_decl): Set DECL_PRESERVE_P and copy
8835         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8836         (emutls_finalize_control_var): New callback.
8837         (emutls_finish): Finalize emutls control variables.
8838         * toplev.c (compile_file): Move the call to emutls_finish ()
8839         before varpool_assemble_pending_decls ().
8840
8841 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
8842
8843         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8844         added to the preprocessor condition.
8845
8846 2010-05-24  Paul Brook  <paul@codesourcery.com>
8847
8848         * gengtype-lex.l: Add HARD_REG_SET.
8849         * expr.c (expand_expr_real_1): Record writes to hard registers.
8850         * function.c (rtl_data): Add asm_clobbers.
8851         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8852         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8853         Use crtl->asm_clobbers.
8854
8855 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8856
8857         * doc/makefile.texi (Makefile): Mention stages 'profile'
8858         and 'feedback' for profiledbootstrap.
8859
8860 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8861
8862         PR target/44245
8863         * config/i386/i386.c (def_builtin): Properly check
8864         OPTION_MASK_ISA_64BIT.
8865
8866 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
8867
8868         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8869         typedefs with different but compatible types.  Allow duplicate
8870         typedefs with the same type except for pedantic non-C1X, but give
8871         warning for variably modified types.
8872         * c-typeck.c (tagged_types_tu_compatible_p,
8873         function_types_compatible_p, type_lists_compatible_p,
8874         comptypes_internal): Add parameter different_types_p; set
8875         *different_types_p for different but compatible types.  All
8876         callers changed.
8877         (comptypes_check_different_types): New.
8878         * c-tree.h (comptypes_check_different_types): Declare.
8879
8880 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
8881
8882         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
8883         * jump.c: Include basic-block.h.
8884         * profile.c: Likewise.
8885         * tree-profile.c: Likewise.
8886         * coverage.c: Likewise.
8887         * basic-block.h (optimize_function_for_size_p): Move to function.h.
8888         (optimize_function_for_speed_p): Likewise.
8889         * function.h (optimize_function_for_size_p,
8890         optimize_function_for_speed_p): Moved here from basic-block.h.
8891         * Makefile.in: Update dependencies.
8892
8893 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8894
8895         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8896         before calling make; allow override through $MAKE.
8897         * doc/invoke.texi (Optimize Options): Document override.
8898
8899 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
8900
8901         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8902         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8903         (rs6000_mode_dependent_address_ptr): Make static.
8904         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8905         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8906         Remove.
8907
8908 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
8909
8910         PR target/43869
8911         * config/i386/i386.c: Make sure that the correct regparm is passed.
8912
8913 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
8914
8915         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8916         * sbitmap.c: ...to here to internalize sbitmap element access.
8917         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8918         Explain why basic-block.h is included.
8919         * function.h: Include tm.h for CUMULATIVE_ARGS.
8920         * Makefile.in: Update dependencies.
8921
8922 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
8923
8924         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8925         New core types.
8926         * sbitmap.h (struct sbitmap_def): Do not typedef here.
8927         * sbitmap.c: Include sbitmap.h.
8928         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8929         hard-reg-set.h.  Split everything related to regsets out from here...
8930         * regset.h: ...to here.  New file.
8931         * df.h: Include regset.h and sbitmap.h.
8932         * tree-flow.h: Likewise.
8933         * cfgloop.h: Likewise.
8934         * except.h: Do not include sbitmap.h.  Include hashtab.h.
8935         * cgraph.h: Include vec.h and function.h.
8936         * reload.h (struct insn_chain): Change types of live_throughout
8937         and dead_or_set from regset_head to bitmap_head.
8938         (compute_use_by_pseudos): Be defined also if regset.h is not included.
8939         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8940         spilled_regs from regset_head to bitmap_head to avoid dependency
8941         in regset.h.
8942         * sel-sched-ir.h: Include regset.h.
8943         * reload.c: Include df.h before reload.h.
8944         * caller-save.c: Likewise.
8945         * reload1.c: Likewise.
8946         * ira.c: Likewise.
8947         (mark_elimination): Update type of r to bitmap, consistent with
8948         DF_LR_IN.
8949         * dominance.c: Include bitmap.h.
8950         * modulo-sched.c: Include df.h.
8951         * cfganal.c: Include bitmap.h and sbitmap.h.
8952         * cfgbuild.c: Include sbitmap.h.
8953         * lcm.c: Include sbitmap.h.
8954         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8955         * domwalk.c: Include sbitmap.h, exclude ggc.h.
8956         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8957         * cselib.c: Include bitmap.h.
8958         * tree-optimize.c: Include regset.h.
8959         * stmt.c: Include bitmap.h.
8960         * Makefile.in: Update dependencies.
8961
8962 2010-05-22  Jan Hubicka  <jh@suse.cz>
8963
8964         * cgraph.h (struct varpool_node): Add same_comdat_group.
8965         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8966         pointer.
8967         (output_varpool): Update call of lto_output_varpool_node.
8968         (input_varpool): Read same_comdat_group pointer.
8969         (input_varpool_1): Fixup same_comdat_group pointer.
8970         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8971         group is needed, all are.
8972         * varpool.c (varpool_remove_node): Remove node from same comdat group
8973         linklist too.
8974         (varpool_analyze_pending_decls): Walk same comdat groups.
8975
8976 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
8977
8978         * rtl.h (union rtunion_def): Remove rt_bit member.
8979         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8980         * print-rtl (print_rtx): Do not print the member.
8981         * gengtype.c (adjust_field_rtx_def): Do not handle it.
8982         * gengenrtl.c (type_from_format): Likewise.
8983         (accessor_from_format): Likewise.
8984
8985 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
8986
8987         * dbgcnt.c: Include toplev.h instead of errors.h.
8988         * ira-emit.c: Don't include errors.h.
8989         * ira.c: Include toplev.h instead of errors.h.
8990         * lto-compress.c: Include toplev.h instead of errors.h.
8991         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8992         ira.o, dbgcnt.o): Update dependencies.
8993
8994 2010-05-22  Richard Guenther  <rguenther@suse.de>
8995
8996         * gimple.c (gimple_types_compatible_p): Check type qualifications
8997         before merging pointer to complete and pointer to incomplete type.
8998         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8999         we use our own resolution algorithm.  The gold linker plugin
9000         doesn't do the job we want it to do here.
9001
9002 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
9003
9004         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9005         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9006         (sparc_mode_dependent_address_p): New function.
9007
9008 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9009
9010         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
9011
9012         * timevar.c: Do not include any core headers.
9013         (timevar_print): De-i18n-ize.
9014         (print_time): Likewise.
9015         * timevar.h (timevar_push, timevar_pop): Make inline functions.
9016
9017 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
9018
9019         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
9020         langhooks-def.h.
9021         (diagnostic_initialize): Initialize x_data not last_function.
9022         (diagnostic_report_current_function): Move to tree-diagnostic.c.
9023         (default_diagnostic_starter): Call
9024         diagnostic_report_current_module not
9025         diagnostic_report_current_function.
9026         (diagnostic_report_diagnostic): Initialize x_data not
9027         abstract_origin.
9028         (verbatim): Likewise.
9029         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
9030         x_data.
9031         (struct diagnostic_context): Change last_function to x_data.
9032         (diagnostic_auxiliary_data): Replace with
9033         diagnostic_context_auxiliary_data and
9034         diagnostic_info_auxiliary_data.
9035         (diagnostic_last_function_changed, diagnostic_set_last_function,
9036         diagnostic_report_current_function): Move to tree-diagnostic.h.
9037         (print_declaration, dump_generic_node, print_generic_stmt,
9038         print_generic_stmt_indented, print_generic_expr,
9039         print_generic_decl, debug_c_tree, dump_omp_clauses,
9040         print_call_name, debug_generic_expr, debug_generic_stmt,
9041         debug_tree_chain, default_tree_printer): Move to
9042         tree-pretty-print.h.
9043         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
9044         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
9045         gimple-pretty-print.h.
9046         * pretty-print.c: Don't include tree.h
9047         (pp_base_format): Don't handle %K here.
9048         (pp_base_tree_identifier): Move to tree-pretty-print.c.
9049         * pretty-print.h (text_info): Change abstract_origin to x_data.
9050         (pp_tree_identifier, pp_unsupported_tree,
9051         pp_base_tree_identifier): Move to tree-pretty-print.h.
9052         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
9053         tree-pretty-print.h: New files.
9054         * tree-pretty-print.c: Include tree-pretty-print.h.
9055         (percent_K_format): New.  Moved from pretty-print.c.
9056         (pp_base_tree_identifier): Move from pretty-print.c.
9057         * c-objc-common.c: Include tree-pretty-print.h.
9058         (c_tree_printer): Handle %K here.
9059         * langhooks.c: Include tree-diagnostic.h.
9060         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
9061         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
9062         (default_tree_printer): Handle %K using percent_K_format.
9063         (general_init): Use default_tree_diagnostic_starter.
9064         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
9065         (free_lang_data): Use default_tree_diagnostic_starter.
9066         * c-pretty-print.c: Include tree-pretty-print.h.
9067         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9068         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9069         * dwarf2out.c: Include tree-pretty-print.h.
9070         * except.c: Include tree-pretty-print.h.
9071         * gimple-pretty-print.c: Include tree-pretty-print.h and
9072         gimple-pretty-print.h.
9073         * gimplify.c: Include tree-pretty-print.h.
9074         * graphite-poly.c: Include tree-pretty-print.h and
9075         gimple-pretty-print.h.
9076         * ipa-cp.c: Include tree-pretty-print.h.
9077         * ipa-inline.c: Include gimple-pretty-print.h.
9078         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9079         * ipa-pure-const.c: Include gimple-pretty-print.h.
9080         * ipa-struct-reorg.c: Include tree-pretty-print.h and
9081         gimple-pretty-print.h.
9082         * ipa-type-escape.c: Include tree-pretty-print.h.
9083         * print-rtl.c: Include tree-pretty-print.h.
9084         * print-tree.c: Include gimple-pretty-print.h.
9085         * sese.c: Include tree-pretty-print.h.
9086         * tree-affine.c: Include tree-pretty-print.h.
9087         * tree-browser.c: Include tree-pretty-print.h.
9088         * tree-call-cdce.c: Include gimple-pretty-print.h.
9089         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9090         * tree-chrec.c: Include tree-pretty-print.h.
9091         * tree-data-ref.c: Include tree-pretty-print.h and
9092         gimple-pretty-print.h.
9093         * tree-dfa.c: Include tree-pretty-print.h.
9094         * tree-if-conv.c: Include tree-pretty-print.h and
9095         gimple-pretty-print.h.
9096         * tree-inline.c: Include tree-pretty-print.h.
9097         * tree-into-ssa.c: Include tree-pretty-print.h and
9098         gimple-pretty-print.h.
9099         * tree-nrv.c: Include tree-pretty-print.h.
9100         * tree-object-size.c: Include tree-pretty-print.h and
9101         gimple-pretty-print.h.
9102         * tree-outof-ssa.c: Include tree-pretty-print.h and
9103         gimple-pretty-print.h.
9104         * tree-parloops.c: Include tree-pretty-print.h and
9105         gimple-pretty-print.h.
9106         * tree-predcom.c: Include tree-pretty-print.h and
9107         gimple-pretty-print.h.
9108         * tree-scalar-evolution.c: Include tree-pretty-print.h and
9109         gimple-pretty-print.h.
9110         * tree-sra.c: Include tree-pretty-print.h.
9111         * tree-ssa-address.c: Include tree-pretty-print.h.
9112         * tree-ssa-alias.c: Include tree-pretty-print.h.
9113         * tree-ssa-ccp.c: Include tree-pretty-print.h and
9114         gimple-pretty-print.h.
9115         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
9116         * tree-ssa-copy.c: Include tree-pretty-print.h and
9117         gimple-pretty-print.h.
9118         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
9119         * tree-ssa-dce.c: Include tree-pretty-print.h and
9120         gimple-pretty-print.h.
9121         * tree-ssa-dom.c: Include tree-pretty-print.h and
9122         gimple-pretty-print.h.
9123         * tree-ssa-dse.c: Include gimple-pretty-print.h.
9124         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
9125         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
9126         * tree-ssa-live.c: Include tree-pretty-print.h and
9127         gimple-pretty-print.h.
9128         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
9129         gimple-pretty-print.h.
9130         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
9131         gimple-pretty-print.h.
9132         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
9133         gimple-pretty-print.h.
9134         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9135         gimple-pretty-print.h.
9136         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9137         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9138         * tree-ssa-operands.c: Include tree-pretty-print.h and
9139         gimple-pretty-print.h.
9140         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9141         gimple-pretty-print.h.
9142         * tree-ssa-pre.c: Include tree-pretty-print.h and
9143         gimple-pretty-print.h.
9144         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9145         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9146         gimple-pretty-print.h.
9147         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9148         gimple-pretty-print.h.
9149         * tree-ssa-sink.c: Include gimple-pretty-print.h.
9150         * tree-ssa-ter.c: Include tree-pretty-print.h and
9151         gimple-pretty-print.h.
9152         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9153         * tree-ssa.c: Include tree-pretty-print.h and
9154         gimple-pretty-print.h.
9155         * tree-stdarg.c: Include gimple-pretty-print.h.
9156         * tree-switch-conversion.c: Include gimple-pretty-print.h.
9157         * tree-tailcall.c: Include tree-pretty-print.h and
9158         gimple-pretty-print.h.
9159         * tree-vect-data-refs.c: Include tree-pretty-print.h and
9160         gimple-pretty-print.h.
9161         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9162         gimple-pretty-print.h.
9163         * tree-vect-loop.c: Include tree-pretty-print.h and
9164         gimple-pretty-print.h.
9165         * tree-vect-patterns.c: Include gimple-pretty-print.h.
9166         * tree-vect-slp.c: Include tree-pretty-print.h and
9167         gimple-pretty-print.h.
9168         * tree-vect-stmts.c: Include tree-pretty-print.h and
9169         gimple-pretty-print.h.
9170         * tree-vectorizer.c: Include tree-pretty-print.h.
9171         * tree-vrp.c: Include tree-pretty-print.h and
9172         gimple-pretty-print.h.
9173         * value-prof.c: Include tree-pretty-print.h and
9174         gimple-pretty-print.h.
9175         * var-tracking.c: Include tree-pretty-print.h.
9176         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9177         (tree-diagnostic.o): New dependencies.
9178         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9179         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9180         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9181         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9182         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9183         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9184         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9185         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9186         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9187         tree-ssa-address.o, tree-ssa-loop-niter.o,
9188         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9189         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9190         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9191         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9192         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9193         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9194         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9195         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9196         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9197         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9198         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9199         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9200         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9201         tree-switch-conversion.o, var-tracking.o, value-prof.o,
9202         cfgexpand.o, pretty-print.o): Update dependencies.
9203
9204 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
9205
9206         * tree-ssa-structalias.c: Remove tm_p.h from include.
9207
9208 2010-05-21  Jeff Law  <law@redhat.com>
9209
9210         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9211
9212 2010-05-21  Jason Merrill  <jason@redhat.com>
9213
9214         * tree-eh.c (cleanup_is_dead_in): New.
9215         (lower_try_finally): Don't generate a dead cleanup region.
9216         (lower_cleanup): Likewise.
9217
9218 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
9219
9220         PR debug/44223
9221         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9222         unchain each use from the cyclic next_regno_use chain first.
9223
9224 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9225
9226         * real: Do not include gmp.h, mpfr.h, and mpc.h.
9227         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9228         (real_value_negate, real_value_abs): New prototypes.
9229         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9230         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9231         new include file for interface between MPFR and REAL_VALUE_TYPE.
9232         * real.c: Include realmpfr.h.
9233         (real_arithmetic2): Remove legacy function.
9234         (real_value_negate): New.
9235         (real_value_abs): New.
9236         (mfpr_from_real, real_from_mpfr): Move from here...
9237         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9238         * builtins.c: Include realmpfr.h.
9239         * fold-const.c: Include realmpfr.h.
9240         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9241         (fold_negate_const): Likewise.
9242         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9243         * toplev.c: Include realmpfr.h.
9244         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9245         and real_value_negate.
9246         * fixed-value.c (check_real_for_fixed_mode): Likewise.
9247         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9248         (vfp3_const_double_index): Likewise.
9249         (arm_print_operand): Likewise.
9250         * Makefile.in: Update dependencies.
9251
9252 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9253
9254         * config/s390/s390.c (override_options): Increase the default
9255         of max-completely-peel-times.
9256
9257 2010-05-21  Julian Brown  <julian@codesourcery.com>
9258             Mark Mitchell  <mark@codesourcery.com>
9259
9260         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9261         sibling calls for Thumb-1.
9262         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9263         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9264         Thumb-2.
9265         (*call_insn, *call_value_insn): Don't use for Thumb-2.
9266         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9267         for Thumb-2.
9268         (return): New expander.
9269         (*arm_return): New name for ARM return insn.
9270         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9271
9272 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
9273
9274         * config.gcc (sparc64-*-rtems*): New target.
9275
9276 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
9277
9278         * tree.c (build_function_decl_skip_args): Fix grammar.
9279         (build_function_type_list_1): Fix typos, adjust formatting.
9280
9281 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9282
9283         * tree.h: Include real.h and fixed-value.h as basic datatypes.
9284         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9285         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9286         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9287         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9288         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9289         tree-pretty-print.c, tree-loop-distribution.c,
9290         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9291         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9292         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9293         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9294         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9295         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9296         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9297         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9298         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9299         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9300         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9301         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9302         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9303         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9304         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9305         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9306         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9307         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9308         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9309         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9310         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9311         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9312         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9313         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9314         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9315         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9316         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9317         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9318         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9319         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9320         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9321         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9322         config/score/score7.c, config/score/score.c, config/arm/arm.c,
9323         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9324         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9325         config/bfin/bfin.c: Clean up redundant includes.
9326         * Makefile.in: Update accordingly.
9327
9328 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
9329
9330         PR middle-end/44204
9331         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9332         statement has no arguments.
9333
9334 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
9335
9336         PR/44139
9337         * varasm.c (emutls_decl): Merge attributes to new decl.
9338
9339 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9340
9341         PR middle-end/44101
9342         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9343         around the uniquized constructor if its type requires a conversion.
9344
9345 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
9346
9347         PR debug/44205
9348         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9349         at -O0 goto_locus of any of the incoming edges differs from
9350         goto_locus of outgoing edge, or gimple_location of any of the
9351         labels differs.
9352
9353 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
9354
9355         * ira.c (ira_non_ordered_class_hard_regs): Define.
9356         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
9357         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
9358         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
9359         cost of unaligned hard regs when allocating multi-reg pseudos.
9360
9361 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
9362
9363         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
9364         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
9365         for TARGET_NO_FLOAT.
9366         * config/mips/mips.c (mips_file_start): Expand conditional expression
9367         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
9368         (mips_override_options): Move -mno-float override -msoft-float and
9369         -mhard-float.
9370         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
9371         Condition(TARGET_SUPPORTS_NO_FLOAT).
9372         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
9373         __mips_no_float here.
9374         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
9375         (TARGET_SUPPORTS_NO_FLOAT): Define.
9376         * config/mips/sdemtk.opt: Delete.
9377
9378 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
9379
9380         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
9381
9382 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
9383
9384         PR target/43733
9385         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
9386         * configure: Regenerate.
9387         * config.in: Regenerate.
9388         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
9389         instead of sahf only for 64bit targets.
9390
9391 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
9392
9393         PR debug/44178
9394         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
9395         setup_ref_regs for DEBUG_INSNs.
9396
9397 2010-05-20  Jan Hubicka  <jh@suse.cz>
9398
9399         PR middle-end/44197
9400         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
9401
9402 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9403
9404         PR bootstrap/43870
9405         * df-scan.c (df_ref_compare): Stabilize sort.
9406
9407 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
9408
9409         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
9410         argument.  Don't use DW_OP_piece if offset is non-zero,
9411         put offset into second DW_OP_bit_piece argument.
9412         (dw_sra_loc_expr): Adjust callers.  For memory expressions
9413         compute offset.
9414
9415 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
9416
9417         PR target/44202
9418         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9419         settings for 16-bit-constant "addo" alternative.
9420
9421 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
9422
9423         * config/mips/mips-dsp.md (add<DSPV:mode>3,
9424         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9425
9426         PR target/43764
9427         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
9428         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9429         Use it.
9430
9431 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
9432
9433         * diagnostic.c (FLOAT, FFS): Don't undefine.
9434         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9435         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9436         include ordering.
9437
9438 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
9439
9440         * combine.c (propagate_for_debug): Call make_compound_operation
9441         on the source value.
9442         (try_combine): When implementing a split chosen by find_split_point,
9443         either copy i2src or set it to null.  Assert that i2src is not null
9444         before substituting into CALL_INSN_FUNCTION_USAGE.
9445
9446 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
9447
9448         * double-int.h (double_int_ior): New function.
9449         * tree.h (build_int_cst_wide_type): Remove.
9450         * tree.c (build_int_cst_wide_type): Remove.
9451         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9452         of build_int_cst_wide_type.
9453         * stor-layout.c (set_sizetype): (Ditto.).
9454         * dojump.c (do_jump): Use build_int_cstu instead of
9455         build_int_cst_wide_type.
9456
9457 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9458
9459         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9460         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9461         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9462         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9463         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
9464         propagate the 'data' argument to copy_tree_r.
9465         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9466         Propagate 'data' argument to walk_tree.
9467         (copy_if_shared): New function.
9468         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9469         (unmark_visited): New function.
9470         (unshare_body): Call copy_if_shared instead of doing it manually.
9471         (unvisit_body): Call unmark_visited instead of doing it manually.
9472
9473 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
9474
9475         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9476         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
9477         * hooks.c: Likewise.
9478         * target-def.h (TARGET_FOLD_BUILTIN): Define to
9479         hook_tree_tree_int_treep_bool_null.
9480         * target.h (struct gcc_target): Update signature of fold_builtin
9481         field.
9482         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9483         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9484         instead of the call expression.
9485         (fold_builtin_call_array): Pass n and argarray directly.
9486         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
9487         consing a list.
9488         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
9489         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
9490         `i' and use it in place of `arity'.
9491         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
9492         Dereference `args' directly.
9493         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
9494
9495 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9496
9497         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9498         3dnow, sse3, sse2.
9499         (Directives): Document optional dg-require-effective-target
9500         selector.
9501
9502 2010-05-19  Richard Guenther  <rguenther@suse.de>
9503
9504         PR lto/44196
9505         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
9506
9507 2010-05-19  Richard Guenther  <rguenther@suse.de>
9508
9509         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
9510         * common.opt (fwhopr=): New.
9511         * opts.c (common_handle_option): Handle OPT_fwhopr.
9512         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
9513         * collect2.c (main): Match -fwhopr*.
9514         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
9515         Execute ltrans stage in parallel when jobs is bigger than 1.
9516
9517 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9518
9519         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9520         pentiumpro on Solaris 8/x86 with Sun as.
9521         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
9522         hidden alias bug.
9523         (gcc_cv_as_ix86_quad): Check for .quad directive.
9524         * configure: Regenerate.
9525         * config.in: Regenerate.
9526         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
9527
9528 2010-05-19  Martin Jambor  <mjambor@suse.cz>
9529
9530         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
9531         also for indirect edges.  Actual printing moved...
9532         (ipa_print_node_jump_functions_for_edge): ...here.
9533         (ipa_compute_jump_functions): Renamed to
9534         ipa_compute_jump_functions_for_edge and made static.
9535         (ipa_compute_jump_functions): New function.
9536         (make_edge_direct_to_target): Check if the number of arguments on
9537         the newly direct edge is the same as the number of parametrs of
9538         the callee.
9539         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
9540         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
9541         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9542         analysis functions unconditionally, call the new
9543         ipa_analyze_params_uses on the node instead of every edge.
9544
9545 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
9546
9547         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
9548         to tree.
9549         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
9550         also checks for a constant int vs.  non-constant but
9551         loop-invariant steps.
9552         (find_or_create_group): Change the sort algorithm to only consider
9553         steps that are constant ints.
9554         (idx_analyze_ref): Adopt code to handle a tree instead of a
9555         HOST_WIDE_INT for step.
9556         (gather_memory_references_ref): Handle tree instead of int and be
9557         prepared to see a NULL_TREE.
9558         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
9559         prefetches if the step cannot be calculated at compile time.
9560         (issue_prefetch_ref): Issue prefetches for non-constant but
9561         loop-invariant steps.
9562
9563 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9564
9565         Revert:
9566         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9567
9568         * tree.h (build_call_list): Remove.
9569         * tree.c (build_call_list): Remove.
9570
9571 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9572
9573         * tree.h (build_call_list): Remove.
9574         * tree.c (build_call_list): Remove.
9575
9576 2010-05-18  Jan Hubicka  <jh@suse.cz>
9577
9578         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
9579
9580 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
9581
9582         PR rtl-optimization/43332
9583         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
9584
9585 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
9586
9587         * tree.h (build_int_cstu): Implement as static inline.
9588         * tree.c (build_int_cstu): Remove function.
9589         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
9590         sign extended.
9591
9592 2010-05-18  Richard Guenther  <rguenther@suse.de>
9593
9594         PR lto/44143
9595         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
9596         (debug): Initialize from -save-temps.
9597         (collect_execute): Print command-line when verbose.
9598         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
9599         for ltrans invocation.  Produce -dumpbase flag again.
9600         (process_args): Remove.
9601         (main): Simplify.
9602         * collect2.c (maybe_run_lto_and_relink): Only pass object
9603         files to lto-wrapper.
9604         * gcc.c (LINK_COMMAND_SPEC): Likewise.
9605
9606 2010-05-18  Jan Hubicka  <jh@suse.cz>
9607
9608         * opts.c (decode_options): Do not disable whopr at ipa_cp.
9609         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
9610
9611 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
9612
9613         PR lto/44184
9614         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
9615         in a GIMPLE_ASM.
9616         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
9617         in a GIMPLE_ASM.
9618
9619 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
9620
9621         PR debug/41371
9622         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
9623         rtx_equal_p inline.
9624
9625 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
9626
9627         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
9628         lto-macho as lto_binary_reader.
9629
9630         * darwin.c (darwin_asm_named_section): Do not add assembler comment
9631         after .section directive; just print it before the directive instead.
9632
9633 2010-05-17  Jan Hubicka  <jh@suse.cz>
9634
9635         * cgraph.c (cgraph_create_virtual_clone): Only check
9636         versionable_function_p when not in wpa and checking is enabled.
9637         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
9638         there are no more functions to materialize.
9639
9640 2010-05-17  Jan Hubicka  <jh@suse.cz>
9641
9642         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
9643         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
9644         New functions.
9645         (output_cgraph): Call output_cgraph_opt_summary.
9646         (input_cgrpah): Call input_cgraph_opt_summary.
9647         (output_cgraph_opt_summary_p, output_node_opt_summary,
9648         input_node_opt_summary, input_cgraph_opt_section): New functions.
9649         * lto-section-in.c (lto_section_name): Add cgraphopt.
9650         * tree-inline.c (tree_function_versioning): Handle parm_num.
9651         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
9652         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
9653
9654 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
9655
9656         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
9657         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
9658         the insn to prefetch ratio heuristic to loops with known trip count.
9659
9660 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
9661
9662         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
9663         (schedule_prefetches): Do not generate a prefetch if the unroll factor
9664         is far from what is required by the prefetch.
9665
9666 2010-05-17  Jan Hubicka  <jh@suse.cz>
9667
9668         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
9669         (ipcp_estimate_growth): Likewise.
9670         (ipcp_const_param_count): Likewise.
9671         (ipcp_insert_stage): Likewise.
9672         * ipa-prop.c (visit_load_for_mod_analysis): New function.
9673         (visit_store_addr_for_mod_analysis): Set used flag.
9674         (ipa_detect_param_modifications): Set used flag for SSE params;
9675         update use of walk_stmt_load_store_addr_ops.
9676         (ipa_print_node_params): Print used flag.
9677         (ipa_write_node_info): Stream used flag.
9678         (ipa_read_node_info): Likewise.
9679         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
9680         (ipa_is_param_used): New function.
9681         (lto_ipa_fixup_call_notes): Remove unused declaration.
9682
9683 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9684
9685         PR target/44074
9686         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
9687         * configure: Regenerate.
9688         * config.in: Regenerate.
9689         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
9690         !HAVE_AS_IX86_REP_LOCK_PREFIX.
9691         Don't emit whitespace.
9692         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
9693         (*rep_movsi): Likewise.
9694         (*rep_movsi_rex64): Likewise.
9695         (*rep_movqi): Likewise.
9696         (*rep_movqi_rex64): Likewise.
9697         (*rep_stosdi_rex64): Likewise.
9698         (*rep_stossi): Likewise.
9699         (*rep_stossi_rex64): Likewise.
9700         (*rep_stosqi): Likewise.
9701         (*rep_stosqi_rex64): Likewise.
9702         (*cmpstrnqi_nz_1): Use {%;} after repz.
9703         (*cmpstrnqi_nz_rex_1): Likewise.
9704         (*cmpstrnqi_1): Likewise.
9705         (*cmpstrnqi_rex_1): Likewise.
9706         (*strlenqi_1): Use {%;} after repnz.
9707         (*strlenqi_rex_1): Likewise.
9708         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
9709         (*sync_compare_and_swap<mode>): Likewise.
9710         (sync_double_compare_and_swap<mode>): Likewise.
9711         (*sync_double_compare_and_swapdi_pic): Likewise.
9712         (sync_old_add<mode>): Likewise.
9713         (sync_add<mode>): Likewise.
9714         (sync_sub<mode>): Likewise.
9715         (sync_<code><mode>): Likewise.
9716
9717 2010-05-17  Martin Jambor  <mjambor@suse.cz>
9718
9719         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9720         otr_token and polymorphic.
9721         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9722         (cgraph_clone_edge): Copy the above fields.
9723         * tree.c (get_binfo_at_offset): New function.
9724         * tree.h (get_binfo_at_offset): Declare.
9725         * ipa-prop.h (enum jump_func_type): Added known_type jump function
9726         type, reordered items, updated comments.
9727         (union jump_func_value): Added base_type field, reordered fields.
9728         (enum ipa_lattice_type): Moved down in the file.
9729         (struct ipa_param_descriptor): New field polymorphic.
9730         (ipa_is_param_polymorphic): New function.
9731         * ipa-prop.c: Include gimple.h and gimple-fold.h.
9732         (ipa_print_node_jump_functions): Print known type jump functions.
9733         (compute_complex_pass_through): Renamed to...
9734         (compute_complex_assign_jump_func): this.
9735         (compute_complex_ancestor_jump_func): New function.
9736         (compute_known_type_jump_func): Likewise.
9737         (compute_scalar_jump_functions): Create known type and complex ancestor
9738         jump functions.
9739         (ipa_note_param_call): New parameter polymorphic, set the corresponding
9740         flag in the call note accordingly.
9741         (ipa_analyze_call_uses): Renamed to...
9742         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
9743         variable var only in the block where it is used.
9744         (ipa_analyze_virtual_call_uses): New function.
9745         (ipa_analyze_call_uses): Likewise.
9746         (combine_known_type_and_ancestor_jfs): Likewise.
9747         (update_jump_functions_after_inlining): Implemented handling of a
9748         number of new jump function types combination.
9749         (print_edge_addition_message): Removed.
9750         (make_edge_direct_to_target): New function.
9751         (try_make_edge_direct_simple_call): Likewise.
9752         (try_make_edge_direct_virtual_call): Likewise.
9753         (update_call_notes_after_inlining): Renamed to...
9754         (update_indirect_edges_after_inlining): this.  Moved edge creation for
9755         indirect calls to try_make_edge_direct_simple_call, also calls
9756         try_make_edge_direct_virtual_call for virtual calls.
9757         (ipa_print_node_params): Changed the header message.
9758         (ipa_write_jump_function): Stream also known type jump functions.
9759         (ipa_read_jump_function): Likewise.
9760         (ipa_write_indirect_edge_info): Stream new fields in
9761         cgraph_indirect_call_info.
9762         (ipa_read_indirect_edge_info): Likewise.
9763         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
9764         GIMPLE_FOLD_H.
9765
9766 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9767
9768         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
9769
9770 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
9771
9772         * tree.h (CALL_EXPR_ARGS): Delete.
9773         (call_expr_arglist): Delete.
9774         * tree.c (call_expr_arglist): Delete.
9775         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
9776         targetm.fold_builtin.
9777         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
9778         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
9779         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
9780         arglist parameter.  Use CALL_EXPR_ARG.
9781         (picochip_expand_builtin_3op): Likewise.
9782         (picochip_expand_builtin_2opvoid): Likewise.
9783         (picochip_expand_array_get): Likewise.
9784         (picochip_expand_array_put): Likewise.
9785         (picochip_expand_array_testport): Likewise.
9786         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
9787         rather than arglist.
9788         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
9789         CALL_EXPR_ARGS.
9790         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
9791         than TREE_VALUE and TREE_CHAIN.
9792         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9793         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
9794         the arglist.
9795
9796 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
9797
9798         PR bootstrap/42347
9799         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
9800         to have no fallthru edge.
9801
9802         PR middle-end/44102
9803         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
9804         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
9805         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
9806         add BARRIER after previous bb if needed.
9807
9808 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
9809
9810         * tree.c (build_function_type_list_1): Remove bogus assert condition.
9811
9812 2010-05-17  Alan Modra  <amodra@gmail.com>
9813
9814         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
9815         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
9816         with copy_reg rtx param.
9817         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9818         Correct cases where code for ABI_V4 did not initialise the reg
9819         used to access frame.  Also leave frame_reg_rtx as sp for large
9820         frames that save no regs.
9821
9822 2010-05-17  Martin Jambor  <mjambor@suse.cz>
9823
9824         PR middle-end/44133
9825         * tree-sra.c (create_access_replacement): New parameter rename, mark
9826         the replaement for renaming only when it is true.
9827         (get_access_replacement): Pass true in the rename parameter of
9828         create_access_replacement.
9829         (get_unrenamed_access_replacement): New function.
9830         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9831         replacement declaration from it.
9832
9833 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
9834
9835         * function.c (try_fit_stack_local, add_frame_space): New static
9836         functions.
9837         (assign_stack_local_1): Use them.  Look for opportunities to use
9838         space previously wasted on alignment.
9839         * function.h (struct frame_space): New.
9840         (struct rtl_data): Add FRAME_SPACE_LIST member.
9841         * reload1.c (something_was_spilled): New static variable.
9842         (alter_reg): Set it.
9843         (reload): Test it in addition to testing if the frame size changed.
9844
9845 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
9846
9847         * config/s390/s390.c: Define sane prefetch settings and activate
9848         flag_prefetch_loop_arrays on -O3.
9849         * config/s390/s390.h: Declare that read can use write prefetch.
9850
9851 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
9852
9853         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9854         build.
9855
9856 2010-05-16  Jan Hubicka  <jh@suse.cz>
9857
9858         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9859         function body; do not check stdarg field of struct function.
9860
9861 2010-05-16  Jan Hubicka  <jh@suse.cz>
9862
9863         * cgraph.c (dump_cgraph_node): Dump versionable flag.
9864         * cgraph.h (cgraph_local_info): Add versionable flag.
9865         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9866         (ipcp_versionable_function_p): Use it.
9867         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9868         versionable flag.
9869
9870 2010-05-16  Jan Hubicka  <jh@suse.cz>
9871
9872         * cgraph.c (cgraph_clone_node): Take decl argument and insert
9873         clone into hash when it is different from orig.
9874         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9875         * cgraph.h (cgraph_clone_node): Update prototype.
9876         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9877         (lto_cgraph_encoder_delete): Delete body map.
9878         (lto_cgraph_encoder_size): Move to header.
9879         (lto_cgraph_encoder_encode_body_p,
9880         lto_set_cgraph_encoder_encode_body): New.
9881         (lto_output_node): Do not take written_decls argument; output clone_of
9882         pointer.
9883         (add_node_to): Add include_body_argument; call
9884         lto_set_cgraph_encoder_encode_body on master of the clone.
9885         (add_references): Update use of add_node_to.
9886         (compute_ltrans_boundary): Likewise.
9887         (output_cgraph): Do not create written_decls bitmap.
9888         (input_node): Take nodes argument; stream in clone_of correctly.
9889         (input_cgraph_1): Update use of input_node.
9890         * lto-streamer-out.c (lto_output): Use encoder info to decide
9891         what bodies to output.
9892         * ipa-inline.c (cgraph_clone_inlined_nodes,
9893         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9894         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9895         (lto_cgraph_encoder_size): Define here.
9896         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9897         Declare.
9898
9899 2010-05-16  Richard Guenther  <rguenther@suse.de>
9900
9901         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9902         -fipa-type-escape.
9903         * ipa-type-escape.c (gate_type_escape_vars): Run when
9904         -fipa-struct-reorg runs.
9905         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9906         * common.opt (fipa-type-escape): Remove.
9907
9908 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9909
9910         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9911         (decode_options): Likewise.
9912         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9913
9914 2010-05-16  Jan Hubicka  <jh@suse.cz>
9915
9916         * ipa.c (function_and_variable_visibility): Also bring local all
9917         aliases.
9918
9919 2010-05-16  Richard Guenther  <rguenther@suse.de>
9920
9921         * alias.c (nonoverlapping_memrefs_p): Remove use of
9922         IPA type-escape information.
9923
9924 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
9925
9926         * c-common.c (c_common_reswords): Add _Static_assert for C.
9927         * c-parser.c (c_token_starts_declaration,
9928         c_parser_next_token_starts_declaration,
9929         c_parser_static_assert_declaration_no_semi,
9930         c_parser_static_assert_declaration): New.
9931         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9932         Handle static assertions if static_assert_ok.
9933         (c_parser_external_declaration, c_parser_declaration_or_fndef,
9934         c_parser_compound_statement_nostart, c_parser_label,
9935         c_parser_for_statement, c_parser_objc_methodprotolist,
9936         c_parser_omp_for_loop): All callers of
9937         c_parser_declaration_or_fndef changed.
9938         (c_parser_struct_declaration): Handle static assertions.
9939         (c_parser_compound_statement_nostart): Use
9940         c_parser_next_token_starts_declaration and
9941         c_token_starts_declaration to detect start of declarations.
9942         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9943         Likewise.
9944
9945 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
9946
9947         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9948         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9949         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9950         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9951         (mmix_function_outgoing_value): Rename to...
9952         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9953         (mmix_function_value_regno_p): Make static.
9954         (mmix_libcall_value): New function.
9955         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9956         mmix_function_value_regno_p): Remove declaration.
9957
9958 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9959
9960         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9961         BUILT_IN_ALLOCA if stack checking is enabled.
9962
9963 2010-05-16  Richard Guenther  <rguenther@suse.de>
9964
9965         * var-tracking.c (vars_copy_1): Inline ...
9966         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9967         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
9968         (variable_merge_over_cur): Adjust.  Merge asserts.
9969         (variable_merge_over_src): Likewise.
9970         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9971         (variable_post_merge_new_vals): Merge asserts.
9972         (variable_post_merge_perm_vals): Likewise.
9973         (find_mem_expr_in_1pdv): Likewise.
9974         (dataflow_set_different_value): Remove.
9975         (onepart_variable_different_p): Merge asserts.
9976         (variable_different_p): Likewise.
9977         (dataflow_set_different_1): Inline ...
9978         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9979         (emit_notes_for_differences_1): Merge asserts.
9980
9981 2010-05-16  Richard Guenther  <rguenther@suse.de>
9982
9983         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9984         * optabs.c (libfunc_decl_hash): Likewise.
9985         * varasm.c (emutls_decl): Likewise.
9986
9987 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
9988
9989         * c-decl.c: Don't include gimple.h.
9990         (merge_decls): Do not copy gimple_body.
9991
9992 2010-05-15  Jason Merrill  <jason@redhat.com>
9993
9994         * c.opt: Add -fnothrow-opt.
9995
9996 2010-05-15  Jan Hubicka  <jh@suse.cz>
9997
9998         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9999         analyzed.
10000         * passes.c (ipa_write_summaries): Write all analyzed nodes.
10001
10002 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
10003
10004         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
10005         * Makefile.in: Add it.
10006         Fix all other Makefile dependencies for changes below.
10007         * tree.h: Include it instead of defining VEC primitives here.
10008         * gimple.h: Likewise.
10009         * rtl.h: Likewise.
10010         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
10011         * except.h: Include vecir.h, break dependence on tree.h.
10012
10013         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
10014         Move from here...
10015         * tree-iterator.c: ...to here.
10016         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
10017
10018         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
10019         tm_p.h.
10020         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
10021         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
10022         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
10023         tree-mudflap.h, and target.h.
10024         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
10025         predict.h, tree-inline.h, gimple.h, and langhooks.h.
10026         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
10027         Add FIXME for why gimple.h is still included (should be unnecessary
10028         since GCC 4.5 gimplification unit-at-a-time).
10029         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
10030         * c-pragma.c: Add FIXME for why function.h needs to be included just
10031         for cfun, at front-end level.
10032         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
10033         Do not include ggc.h, but include vecprim.h for VEC(char).
10034         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
10035         Explain why target.h is included.
10036         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
10037         Explain why gimple.h is included.
10038         * c-ppoutput.c: Do not include tm.h.
10039         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
10040         * c-parses.c: Explain why rtl.h is included, and that this (and only
10041         this) is also why tm.h must be included.
10042         Do not include except.h.
10043         * c-lang.c: Do not include ggc.h.
10044
10045 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
10046
10047         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
10048
10049 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
10050
10051         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
10052         unions by default if those structs and unions have no tags.  Do
10053         not condition anonymous struct and unions handling on flag_iso.
10054         Allow anonymous structs and unions for C1X.
10055         (finish_struct): Do not diagnose lack of named fields when
10056         anonymous structs and unions present for C1X.  Accept flexible
10057         array members in structure with anonymous structs or unions but no
10058         directly named fields.
10059         * doc/extend.texi (Unnamed Fields): Update.
10060
10061 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
10062
10063         * gimple.h (compare_field_offset): Rename into...
10064         (gimple_compare_field_offset): ...this.
10065         * gimple.c (compare_field_offset): Rename into...
10066         (gimple_compare_field_offset): ...this.  Compare the full access if
10067         the offset is self-referential.
10068         (gimple_types_compatible_p): Adjust for above renaming.
10069         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
10070         DECL_NONADDRESSABLE_P flag of fields before merging them.
10071
10072 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
10073
10074         * tree.h (ctor_to_list): Delete.
10075         * tree.c (ctor_to_list): Delete.
10076
10077 2010-05-15  Jan Hubicka  <jh@suse.cz>
10078
10079         * ipa-reference.c: Include toplev.h
10080         (is_proper_for_analysis): Only add to all_module_statics
10081         if it is allocated.
10082         (write_node_summary_p, stream_out_bitmap,
10083         ipa_reference_write_optimization_summary,
10084         ipa_reference_read_optimization_summary): New.
10085         (struct ipa_opt_pass_d pass_ipa_reference): Add
10086         optimization summary streaming.
10087         * lto-cgraph.c (referenced_from_this_partition_p,
10088         reachable_from_this_partition_p): New functions.
10089         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10090         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
10091         * opts.c (decode_options): Enable ipa_reference.
10092         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
10093         * lto-streamer.h (referenced_from_this_partition_p,
10094         reachable_from_this_partition_p): Declare.
10095
10096 2010-05-15  Richard Guenther  <rguenther@suse.de>
10097
10098         PR tree-optimization/44038
10099         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
10100         taking the address of a V_C_E of a constant.
10101
10102 2010-05-14  Jan Hubicka  <jh@suse.cz>
10103
10104         * tree.h (memory_identifier_string): Remove.
10105         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
10106         (ipa_reference_global_vars_info_d): Remove statics_not_read and
10107         statics_not_written.
10108         (ipa_reference_optimization_summary_d): New structure.
10109         (ipa_reference_optimization_summary_t): New type and vector.
10110         (ipa_reference_vars_info_d): Embedd structures instead of using
10111         pointers.
10112         (reference_vars_to_consider): Remove out of GGC space.
10113         (module_statics_escape): Remove.
10114         (global_info_obstack): Rename to ...
10115         (optimization_summary_obstack): ... this one.
10116         (initialization_status_t): Remove.
10117         (memory_identifier_string): Remove.
10118         (get_reference_vars_info): Fix indenting.
10119         (set_reference_vars_info): Likewise.
10120         (get_reference_optimization_summary): New.
10121         (set_reference_optimization_summary): New.
10122         (get_global_reference_vars_info): Remove.
10123         (ipa_reference_get_read_global): Remove.
10124         (ipa_reference_get_written_global): Remove.
10125         (ipa_reference_get_not_read_global): Update.
10126         (ipa_reference_get_not_written_global): Update.
10127         (is_proper_for_analysis): Outlaw addressable.
10128         (propagate_bits): Update for new datastructures.
10129         (analyze_variable): Remove.
10130         (init_function_info): Update for new datastructures.
10131         (clean_function_local_data): Remove.
10132         (clean_function): Remove.
10133         (copy_global_bitmap): Use optimizations_summary_obstack.
10134         (duplicate_node_data): Duplicate optimization summary only.
10135         (remove_node_data): Remove optimization summary only.
10136         (generate_summary): Do not analyze variables; do not compute
10137         module_statics_escape; do not prune solutions by it.
10138         (read_write_all_from_decl): Fix typos in comments.
10139         (propagate): Doscover readonly and nonaddressable first;
10140         update for new datastructures; share global bitmaps.
10141         * ipa-reference.h (ipa_reference_get_read_global,
10142         ipa_reference_get_written_global): Remove.
10143         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10144         * Makefile.in: Remove ipa-refereference from GT files.
10145
10146 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
10147
10148         PR debug/44112
10149         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10150         for all SYMBOL_REF_DECLs.
10151
10152 2010-05-14  Jan Hubicka  <jh@suse.cz>
10153
10154         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10155         (varpool_all_refs_explicit_p): New inline function.
10156         * ipa-reference.c: Update comment.
10157         (module_statics_written): Remove.
10158         (get_static_decl): Remove.
10159         (ipa_init): Do not initialize module_statics_written.
10160         (analyze_function): Likewise.
10161         (generate_summary): Likewise; do not compute module_statics_readonly
10162         and do not update variable flags.
10163         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10164         * ipa.c: Inlucde flags.h
10165         (cgraph_local_node_p): New.
10166         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10167         promote functions to local.
10168         (ipa_discover_readonly_nonaddressable_vars): New function.
10169         (function_and_variable_visibility): Use cgraph_local_node_p.
10170         * varpool.c (varpool_finalize_decl): Set force_output for
10171         DECL_PRESERVE_P vars.
10172
10173 2010-05-14  Jan Hubicka  <jh@suse.cz>
10174
10175         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10176
10177 2010-05-14  Richard Guenther  <rguenther@suse.de>
10178
10179         PR tree-optimization/44119
10180         * tree-ssa-pre.c (eliminate): Properly mark replacement of
10181         a PHI node necessary.
10182
10183 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
10184
10185         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10186
10187 2010-05-14  Jason Merrill  <jason@redhat.com>
10188
10189         PR c++/44127
10190         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10191         (gimple_call_set_nothrow): New.
10192         * gimple.c (gimple_build_call_from_tree): Call it.
10193         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10194
10195         PR c++/44127
10196         * gimplify.c (gimplify_seq_add_stmt): No longer static.
10197         * gimple.h: Declare it.
10198         * gimple.c (gimple_build_eh_filter): No ops.
10199
10200 2010-05-14  Jan Hubicka  <jh@suse.cz>
10201
10202         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10203         nodes already in queue.
10204         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10205         re-enqueueing node.
10206
10207 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
10208
10209         PR debug/44136
10210         * cfgexpand.c (expand_debug_expr): If non-memory op0
10211         has BLKmode, return NULL.
10212
10213 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
10214
10215         * config.gcc: Add support for --with-cpu option for bdver1.
10216         * config/i386/i386.h (TARGET_BDVER1): New macro.
10217         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10218         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10219         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10220         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10221         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10222         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10223         (processor_type): Add PROCESSOR_BDVER1.
10224         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10225         processor_type in config/i386/i386.h.
10226         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10227         movaps <reg, reg> instead of movapd <reg, reg> when replacing
10228         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10229         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10230         to emit packed xor instead of packed double/packed integer
10231         xor for SSE and AVX when moving a zero value.
10232         * config/i386/sse.md: Add check for
10233         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10234         movapd/movdqa for SSE and AVX.
10235         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10236         single logical operations i.e and, or and xor instead of packed double
10237         logical operations for SSE and AVX.
10238         * config/i386/i386-c.c (ix86_target_macros_internal):
10239         Add PROCESSOR_BDVER1.
10240         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10241         (has_fma4, has_xop): New.
10242         * config/i386/i386.c (bdver1_cost): New variable.
10243         (m_BDVER1): New macro.
10244         (m_AMD_MULTIPLE): Add m_BDVER1.
10245         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10246         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10247         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10248         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10249         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10250         x86_tune_sse_partial_reg_dependency,
10251         x86_tune_sse_unaligned_load_optimal,
10252         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10253         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10254         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10255         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10256         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10257         Enable/disable for bdver1.
10258         (processor_target_table): Add bdver1_cost.
10259         (cpu_names): Add bdver1.
10260         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10261          processor_alias_table.
10262         (ix86_expand_vector_move_misalign): Change.
10263         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10264         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10265         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10266         of movupd/movdqu for SSE and AVX.
10267         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10268         (ix86_tune_adjust_cost): Add code for bdver1.
10269         (standard_sse_constant_opcode): Add check for
10270         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10271         of packed double xor for SSE and AVX.
10272
10273 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
10274
10275         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10276         result to unsigned.
10277
10278 2010-05-14  Tristan Gingold  <gingold@adacore.com>
10279
10280         * toplev.c (default_debug_hooks): Remove this variable.
10281         (process_options): Remove assignments to default_debug_hooks.
10282
10283 2010-05-14  Martin Jambor  <mjambor@suse.cz>
10284
10285         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10286         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10287         * langhooks.h (struct lang_hooks_for_decls): Removed field
10288         fold_obj_type_ref.
10289         * tree.c (free_lang_data): Remove assignment to
10290         lang_hooks.fold_obj_type_ref.
10291         * tree.def (OBJ_TYPE_REF): Update comment.
10292
10293 2010-05-14  Richard Guenther  <rguenther@suse.de>
10294
10295         PR tree-optimization/44124
10296         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10297
10298 2010-05-14  Alan Modra  <amodra@gmail.com>
10299
10300         PR target/44075
10301         * config/rs6000/rs6000.c (struct machine_function): Reorder
10302         fields for better packing.  Add lr_save_state.
10303         (rs6000_ra_ever_killed): Return lr_save_state if set.
10304         (rs6000_emit_eh_reg_restore): Set lr_save_state.
10305
10306 2010-05-13  Jan Hubicka  <jh@suse.cz>
10307
10308         * varpool.c (decide_is_variable_needed): Drop code checking
10309         TREE_SYMBOL_REFERENCED.
10310
10311 2010-05-13  Jan Hubicka  <jh@suse.cz>
10312
10313         * final.c (output_addr_const): Do not call mark_decl_referenced.
10314         * cgraphunit.c (process_function_and_variable_attributes): Use
10315         mark_needed_node dirrectly.
10316         (assemble_thunk): Do not call mark_decl_referenced.
10317
10318 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
10319
10320         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10321
10322 2010-05-13  Jeff Law  <law@redhat.com>
10323
10324         * ira-conflicts.c (print_allocno_conflicts): New function broken out
10325         from...
10326         (print_conflicts): Call print_allocno_conflicts.
10327
10328 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
10329
10330         PR debug/44104
10331         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10332         if it is NULL.
10333
10334 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
10335
10336         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10337         t-mingw-w64 or t-mingw-w32 for multilib configuration.
10338         * config/i386/t-mingw-w32: New.
10339         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10340
10341 2010-05-13  Martin Jambor  <mjambor@suse.cz>
10342
10343         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10344         gimple-fold.c).
10345         * gimple-fold.c (get_base_binfo_for_type): New function.
10346         (gimple_get_relevant_ref_binfo): Likewise.
10347         (gimple_fold_obj_type_ref_known_binfo): Likewise.
10348         (gimple_fold_obj_type_ref): Likewise.
10349         (fold_gimple_call): Simplify condition for folding virtual calls
10350         and call gimple_fold_obj_type_ref.
10351         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
10352         (gimple_fold_obj_type_ref_known_binfo): Likewise.
10353
10354 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
10355
10356         * config/rs6000/rs6000-protos.h
10357         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
10358         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
10359         (rs6000_debug_mode_dependent_address)
10360         (rs6000_mode_dependent_address_ptr): Likewise.
10361
10362 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
10363
10364         PR debug/43983
10365         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
10366         by SRA.
10367         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
10368         * tree-sra.c (create_access_replacement): Call unshare_expr before
10369         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
10370         * dwarf2out.c: Include tree-flow.h.
10371         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
10372         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10373         Handle DW_OP_bit_piece.
10374         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
10375         construct_piece_list, adjust_piece_list): New functions.
10376         (add_var_loc_to_decl): Handle SRA optimized variables.
10377         Adjust for var_loc_note to loc field renaming.
10378         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
10379         in VAR_LOCATION note.
10380         (new_loc_descr_op_bit_piece): New function.
10381         (dw_sra_loc_expr): New function.
10382         (dw_loc_list): Use it.  Don't handle the last range after the
10383         loop, handle it inside of the loop.  Adjust for var_loc_note
10384         to loc field renaming.
10385         (add_location_or_const_value_attribute): Only special case
10386         single entry loc lists if loc is NOTE_P.  Adjust for
10387         var_loc_note to loc field renaming.
10388         (dwarf2out_var_location): Don't set newloc->var_loc_note
10389         and newloc->next here.
10390
10391 2010-05-12  Jan Hubicka  <jh@suse.cz>
10392
10393         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
10394         flag.
10395         * cgraph.h (cgraph_only_called_directly_p,
10396         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
10397         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
10398         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
10399         (assemble
10400         * ipa.c (cgraph_remove_unreachable_nodes): Use
10401         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
10402         flags.
10403         * tree-inline.c (copy_bb): Check address_taken flag.
10404         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
10405         externally_visible flag.
10406
10407 2010-05-12  Jason Merrill  <jason@redhat.com>
10408
10409         PR bootstrap/44048
10410         PR target/44099
10411         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
10412         * sdbout.c (plain_type_1): Likewise.
10413         * dwarf2out.c (is_base_type): Likewise.
10414         (gen_type_die_with_usage): Likewise.  Generate
10415         DW_TAG_unspecified_type for any LANG_TYPE.
10416
10417 2010-05-12  Jan Hubicka  <jh@suse.cz>
10418
10419         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10420         indrect edges too.
10421         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10422         (cgraph_clone_edge): Update.
10423         (cgraph_node_remove_callees): Remove indirect calls too.
10424         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10425         (cgraph_create_indirect_edge): Update prototype.
10426         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10427         is_proper_for_analysis.
10428         (add_new_function, visited_nodes, function_insertion_hook_holder,
10429         get_local_reference_vars_info, mark_address_taken, mark_address,
10430         mark_load, mark_store, check_asm_memory_clobber, check_call,
10431         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10432         (ipa_init): Do not initialize visited_nodes;
10433         function_insertion_hook_holder.
10434         (analyze_variable): Rewrite.
10435         (analyze_function): Rewrite.
10436         (copy_local_bitmap): Remove.
10437         (duplicate_node_dat): Do not duplicate local info.
10438         (generate_summary): Simplify to only walk cgraph.
10439         (write_node_summary_p, ipa_reference_write_summary,
10440         ipa_reference_read_summary): Remove.
10441         (propagate): Do not remove function insertion;
10442         generate summary.
10443         (pass_ipa_reference): NULLify summary handling fields.
10444         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10445         (input_edge): Input ecf_flags.
10446         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10447         (update_indirect_edges_after_inlining): Ignore edges with unknown
10448         param.
10449
10450 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
10451
10452         * implicit-zee.c: New file.
10453         * tree-pass.h (pass_implicit_zee): Declare.
10454         * passes.c (init_optimization_passes): Add zee pass.
10455         * common.opt (fzee): New flag.
10456         * timevar.def (TV_ZEE): Define.
10457         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10458         and beyond.
10459         * Makefile.in (implicit-zee.o): Add new build file.
10460
10461 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10462             Nathan Froyd  <froydnj@codesourcery.com>
10463
10464         * c-common.c (sync_resolve_params): Remove write-only variable.
10465
10466 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
10467
10468         * target.h (struct gcc_target): Add mode_dependent_address_p field.
10469         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10470         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10471         * targhooks.c (default_mode_dependent_address_p): New function.
10472         * targhooks.h (default_mode_dependent_address_p): Declare function.
10473         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10474         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10475         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10476         target hook. Change return type to bool.
10477         * recog.h (mode_dependent_address_p): Change return type to bool.
10478
10479 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10480             Nathan Froyd  <froydnj@codesourcery.com>
10481
10482         * tree-mudflap.c (build_function_type_0, build_function_type_1,
10483         build_function_type_2, build_function_type_3): Remove.
10484         (mudflap_init): Use build_function_type_list.
10485
10486 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10487             Nathan Froyd  <froydnj@codesourcery.com>
10488
10489         * coverage.c (build_fn_info_value): Call build_constructor instead of
10490         build_constructor_from_list.
10491         (build_ctr_info_value): Likewise.
10492         (build_gcov_info): Likewise.
10493
10494 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
10495
10496         * tree.c (build_constructor): Compute TREE_CONSTANT for the
10497         resultant constructor.
10498         (build_constructor_single): Don't set TREE_CONSTANT.
10499         (build_constructor_from_list): Don't compute TREE_CONSTANT.
10500
10501 2010-05-12  Jan Hubicka  <jh@suse.cz>
10502
10503         * cgraph.h (struct varpool_node): Add aux.
10504         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
10505         * varpool.c (varpool_remove_node): Do not remove initializer.
10506         (varpool_reset_queue): Export.
10507         (varpool_finalize_decl): Volatile vars are forced to be output.
10508         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
10509         replaced decl.
10510         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
10511         process_references, varpool_can_remove_if_no_refs): New functions.
10512         (cgraph_remove_unreachable_nodes): Handle variables too.
10513
10514 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
10515
10516         PR target/44088
10517         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
10518
10519 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
10520
10521         PR middle-end/44085
10522         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
10523         change value of ORT_TASK.
10524         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
10525         (omp_notice_threadprivate_variable): New function.
10526         (omp_notice_variable): Call it for threadprivate variables.
10527         If enclosing ctx is a task, print enclosing task rather than
10528         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
10529         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
10530         if task has untied clause.
10531
10532         PR debug/42278
10533         * dwarf2out.c (base_type_die): Don't add name attribute here.
10534         (modified_type_die): Instead of sizetype use
10535         its underlying original type.  If a DW_TAG_base_type doesn't
10536         have name added, add __unknown__.
10537         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
10538         always call force_type_die instead.
10539
10540 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
10541
10542         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
10543         for __stack_chk_guard.
10544
10545 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
10546
10547         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
10548         don't call start_source_file debug hook here...
10549         (finish_options): ... but here, after outputting predefined and
10550         command line defines and undefs.
10551
10552         PR middle-end/44071
10553         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
10554         no fallthru edge.
10555         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
10556         optimizing away empty bb with no successors, move over its
10557         footer chain to fallthru predecessor.
10558         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
10559         (rtl_split_edge): For asm goto call patch_jump_insn even if
10560         splitting fallthru edge.
10561
10562         PR c++/44059
10563         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
10564         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
10565         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10566         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
10567         on DW.ref.* decls.
10568
10569         PR c++/44062
10570         * c-parser.c (c_parser_expression): Mark LHS of a comma
10571         expression as read if it is a decl, handled component or
10572         COMPOUND_EXPR with that on the RHS.
10573         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
10574         if it is a decl or handled component.
10575
10576 2010-05-11  Jan Hubicka  <jh@suse.cz>
10577
10578         * lto-symtab.c (lto_symtab_free): New function.
10579         * lto-streamer.h (lto_symtab_free): Declare.
10580
10581 2010-05-11  Jan Hubicka  <jh@suse.cz>
10582
10583         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
10584         that if function is needed it is reachable.
10585         (lto_output_node): See if it the function is reachable or referenced.
10586         (output_cgraph): Update call of lto_output_node.
10587         * lto-streamer.h (reachable_from_other_partition_p): Declare.
10588
10589 2010-05-11  Jan Hubicka  <jh@suse.cz>
10590
10591         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
10592         Mark as used.
10593
10594 2010-05-11  Jan Hubicka  <jh@suse.cz>
10595
10596         PR tree-optimize/44063
10597         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
10598         queue.
10599         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
10600         limits.
10601         (estimate_function_body_sizes): Compute sizes even when disregarding.
10602
10603 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
10604
10605         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
10606
10607 2010-05-11  Jan Hubicka  <jh@suse.cz>
10608
10609         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
10610         into every boundary.
10611
10612 2010-05-11  Jan Hubicka  <jh@suse.cz>
10613
10614         * matrix-reorg.c (matrix_reorg): Rebuild edges.
10615
10616 2010-05-11  Jan Hubicka  <jh@suse.cz>
10617
10618         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
10619         lto_streamer_cache_delete): Put nodes into heap.
10620         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
10621         heap.
10622
10623 2010-05-11  Jan Hubicka  <jh@suse.cz>
10624
10625         * cgraphbuild.c (cgraph_rebuild_references): New.
10626         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
10627         out extern inlines.
10628         * cgraph.h (cgraph_rebuild_references): Declare.
10629         * tree-inline.c (tree_function_versioning): Use it.
10630         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
10631
10632 2010-05-11  Jan Hubicka  <jh@suse.cz>
10633
10634         * cgraph.c: Include ipa-utils.h
10635         (cgraph_create_virtual_clone): Update references.
10636         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
10637
10638 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
10639
10640         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
10641         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
10642         cache size.
10643
10644 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
10645
10646         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
10647
10648 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
10649
10650         * gcc.c (execute): For -### don't quote arguments that
10651         contain just alphanumerics and _/-. characters.
10652         * doc/invoke.texi: Document that change for -###.
10653
10654         PR debug/44023
10655         * df-problems.c (struct dead_debug): Add to_rescan field.
10656         (dead_debug_init): Clear to_rescan field.
10657         (dead_debug_finish): Rescan all debug insns in to_rescan
10658         bitmap and free the bitmap.
10659         (dead_debug_insert_before): Instead of rescanning debug insns
10660         immediately queue their rescanning until dead_debug_finish.
10661         (df_note_bb_compute): After dead_debug_add do continue instead
10662         of break.
10663
10664 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
10665
10666         PR debug/44028
10667         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
10668         clear also INSN_REG_USE_LIST.
10669
10670 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10671
10672         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
10673
10674 2010-05-10  Jan Hubicka  <jh@suse.cz>
10675
10676         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
10677         commited change.
10678
10679 2010-05-10  Jan Hubicka  <jh@suse.cz>
10680
10681         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
10682         Allocate encoders.
10683         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
10684         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
10685         (lto_streamer_cache_create): Init alloc pool.
10686         (lto_streamer_cache_delete): Free alloc pool.
10687         * lto-streamer.h: Include alloc pool.
10688         (lto_streamer_cache_d): Use alloc pool.
10689         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
10690
10691 2010-05-10  Jan Hubicka  <jh@suse.cz>
10692
10693         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
10694         * cgraphbuild.c: Include except.h
10695         (record_type_list, record_eh_tables): New function.
10696         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
10697
10698 2010-05-10  Jan Hubicka  <jh@suse.cz>
10699
10700         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
10701         __frame_dummy_init_array_entry, force_to_data): Attribute as used
10702         rather than unused.
10703
10704 2010-05-10  Michael Matz  <matz@suse.de>
10705
10706         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
10707         (can_reassociate_p): Use FLOAT_TYPE_P.
10708         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
10709         (vect_force_simple_reduction): ... this.
10710         * tree-parloops.c (gather_scalar_reductions): Use
10711         vect_force_simple_reduction.
10712         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
10713         vect_is_simple_reduction, add modify argument, if true rewrite
10714         "a-b" into "a+(-b)".
10715         (vect_is_simple_reduction, vect_force_simple_reduction): New
10716         functions.
10717         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10718
10719 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10720             Vladimir Makarov  <vmakarov@redhat.com>
10721
10722         PR rtl-optimization/44012
10723         * ira-build.c (remove_unnecessary_allocnos): Nullify
10724         regno_allocno_map of the removed allocno.
10725
10726 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10727
10728         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10729         to /dev/null.
10730         * configure: Regenerate.
10731
10732 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10733
10734         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10735         unused.
10736         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10737         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10738         support in Sun ld.
10739         * configure: Regenerate.
10740
10741 2010-05-10  Richard Guenther  <rguenther@suse.de>
10742
10743         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10744         marked if the entry identifier is marked.
10745
10746 2010-05-10  Richard Guenther  <rguenther@suse.de>
10747
10748         * c-common.c (struct c_common_attributes): Add fnspec attribute.
10749         (handle_fnspec_attribute): New function.
10750         * gimple.h (gimple_call_return_flags): Declare.
10751         (gimple_call_arg_flags): Likewise.
10752         * gimple.c (gimple_call_arg_flags): New function.
10753         (gimple_call_return_flags): Likewise.
10754         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10755         New argument flags.
10756         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10757         return value flags.
10758         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
10759         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
10760         main work to ...
10761         (make_heapvar_for): ... this new function.
10762         (handle_rhs_call): Handle fnspec attribute argument specifiers.
10763         (handle_lhs_call): Likewise.
10764         (find_func_aliases): Adjust.
10765
10766 2010-05-10  Richard Guenther  <rguenther@suse.de>
10767
10768         PR tree-optimization/44050
10769         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
10770
10771 2010-05-10  Wei Guozhi  <carrot@google.com>
10772
10773         PR target/42879
10774         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
10775
10776 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
10777
10778         PR c/10676
10779         * c-typeck.c (lookup_field): Take a type directly.  Update
10780         recursive calls.
10781         (build_component_ref): Update call to lookup_field.
10782         (set_init_label): Use lookup_field to find initialized field.
10783         Handle returned list of fields like a sequence of designators.
10784
10785 2010-05-09  Richard Guenther  <rguenther@suse.de>
10786
10787         PR middle-end/44024
10788         * fold-const.c (tree_single_nonzero_warnv_p): Properly
10789         handle &FUNCTION_DECL.
10790
10791 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
10792
10793         PR c/4784
10794         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
10795         structures and unions recursively.
10796         (detect_field_duplicates): Move duplicate detection with a hash to
10797         detect_field_duplicates_hash.  Always use a hash if anonymous
10798         structures or unions are present.
10799         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
10800         give errors.
10801
10802 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
10803
10804         PR target/44046
10805         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
10806         detect Atom, Core 2 and Core i7.
10807
10808 2010-05-09  Richard Guenther  <rguenther@suse.de>
10809
10810         * gcc.c (store_arg): Handle temporary file deletion for
10811         joined arguments.
10812
10813 2010-05-09  Richard Guenther  <rguenther@suse.de>
10814
10815         PR middle-end/44043
10816         * ipa-inline.c (estimate_function_body_sizes): Return after
10817         disregarding inline limits.
10818
10819 2010-05-09  Richard Guenther  <rguenther@suse.de>
10820
10821         * gcc.c (store_arg): Revert last change.
10822
10823 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
10824
10825         PR middle-end/28685
10826         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10827         (optimize_ops_list): Call it.
10828
10829 2010-05-08  Richard Guenther  <rguenther@suse.de>
10830
10831         PR tree-optimization/44030
10832         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
10833         NECESSARY flag if we propagate from a inserted expression.
10834
10835 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10836
10837         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10838         domain types as equal if they are both PLACEHOLDER_EXPRs.
10839
10840 2010-05-08  Richard Guenther  <rguenther@suse.de>
10841
10842         * lto-wrapper.c (run_gcc): Remove linker output from
10843         command line for LTRANS invocation.
10844
10845 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
10846
10847         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10848         lto-macho as lto_binary_reader.
10849         * target.h (struct gcc_target): New hooks lto_start and lto_end.
10850         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10851         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10852         in lto_start and lto_end calls.
10853         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
10854         magic numbers.
10855         (scan_prog_file): Update is_elf_or_coff call.
10856         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10857
10858         * collect2.c (main): Fix enum comparison.
10859
10860         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10861         Add prototypes.
10862         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10863         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
10864         and TARGET_ASM_LTO_END.
10865         * darwin.c: Include obstack.h and lto-streamer.h.
10866         (lto_section_names_offset, lto_section_names_obstack,
10867         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10868         global variables.
10869         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10870         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
10871         to a temporary file.
10872         (darwin_asm_lto_end): New function.  Restore asm_out_file.
10873         (darwin_asm_named_section): For LTO sections, replace the name with
10874         the offset of the section name in a string table, and build this
10875         table.
10876         (darwin_file_start): Initialize global vars for LTO support.
10877         (darwin_file_end): If output to asm_out_file was redirected, append it
10878         to the proper asm_out_file here.  Add the section names section.
10879
10880 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
10881
10882         * c-pragma.c (pending_weak_d, pending_weak): New.
10883         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10884         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10885         handle_pragma_weak): Update the uses of pending_weaks.
10886
10887 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10888
10889         PR documentation/44016
10890         * doc/standards.texi (Standards): Link to unversioned
10891         cxx0x_status.html page.
10892
10893 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
10894
10895         PR target/43708
10896         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10897         in addition to TREE_USED, to avoid "set but unused" warnings.
10898
10899 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10900
10901         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10902         (is_loop_prefetching_profitable): Do not insert prefetches
10903         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10904         times the prefetch ahead distance.
10905
10906 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10907
10908         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10909         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10910         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10911         the unroll_factor.
10912
10913 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10914
10915         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10916         a diagnostic info when the insn-to-mem ratio is too small.
10917
10918 2010-05-07  Richard Guenther  <rguenther@suse.de>
10919
10920         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10921         the linker plugin.
10922         (store_arg): Queue temp_filename for deletion instead of
10923         the whole argument.
10924
10925 2010-05-07  Richard Guenther  <rguenther@suse.de>
10926
10927         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10928         (run_gcc): Handle LTRANS phase invocation.
10929         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10930
10931 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
10932
10933         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10934         this is also meaningful on PARM_DECLs and RESULT_DECLs.
10935
10936 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10937
10938         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10939
10940 2010-05-07  Richard Guenther  <rguenther@suse.de>
10941
10942         PR tree-optimization/44020
10943         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10944         code when PRE is not yet initialized.
10945
10946 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10947
10948         * config/mips/dbxmdebug.h: Remove.
10949         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10950
10951 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
10952
10953         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10954         with null pointer and also warn about ordered comparison of zero with
10955         pointer if -Wextra.
10956
10957 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10958
10959         * graphite-blocking.c
10960         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10961         * graphite-clast-to-gimple.c
10962         (clast_to_gcc_expression): Same.
10963         (precision_for_value): Same.
10964         (precision_for_interval): Same.
10965         (gcc_type_for_interval): Same.
10966         (graphite_create_new_guard): Same.
10967         (compute_bounds_for_level): Same.
10968         (graphite_create_new_loop_guard): Same.
10969         * graphite-interchange.c
10970         (build_linearized_memory_access): Same.
10971         (pdr_stride_in_loop): Same.
10972         (memory_strides_in_loop_1): Same.
10973         (memory_strides_in_loop): Same.
10974         (extend_scattering): Same.
10975         (psct_scattering_dim_for_loop_depth): Same.
10976         (pbb_number_of_iterations): Same.
10977         * graphite-poly.h
10978         (debug_iteration_domains): Same.
10979         * graphite-ppl.c
10980         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10981         (ppl_set_inhomogeneous_gmp): Same.
10982         (ppl_strip_loop): Same.
10983         (ppl_lexico_compare_linear_expressions): Same.
10984         (ppl_read_polyhedron_matrix): Same.
10985         (ppl_max_for_le_pointset): Same.
10986         * graphite-ppl.h
10987         (ppl_read_polyhedron_matrix): Same.
10988         (tree_int_to_gmp): Same.
10989         (gmp_cst_to_tree): Same.
10990         (ppl_set_inhomogeneous): Same.
10991         (ppl_set_inhomogeneous_tree): Same.
10992         (ppl_set_coef): Same.
10993         (ppl_set_coef_tree): Same.
10994         * graphite-sese-to-poly.c
10995         (build_pbb_scattering_polyhedrons): Same.
10996         (build_scop_scattering): Same.
10997         (scan_tree_for_params_right_scev): Same.
10998         (scan_tree_for_params): Same.
10999         (find_params_in_bb): Same.
11000         (find_scop_parameters): Same.
11001         (add_upper_bounds_from_estimated_nit): Same.
11002         (build_loop_iteration_domains): Same.
11003         (add_condition_to_domain): Same.
11004         (pdr_add_memory_accesses): Same.
11005
11006 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11007
11008         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
11009         CLooG's value_* macros to their respective mpz_* counterparts.
11010         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
11011         (graphite_create_new_loop_guard): Same.
11012         * graphite-interchange.c (build_linearized_memory_access): Same.
11013         (pdr_stride_in_loop): Same.
11014         (memory_strides_in_loop_1): Same.
11015         (1st_interchange_profitable_p): Same.
11016         * graphite-poly.c (extend_scattering): Same.
11017         (psct_scattering_dim_for_loop_depth): Same.
11018         (pbb_number_of_iterations): Same.
11019         (pbb_number_of_iterations_at_time): Same.
11020         * graphite-poly.h (new_1st_loop): Same.
11021         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
11022         (oppose_constraint): Same.
11023         (insert_constraint_into_matrix): Same.
11024         (ppl_set_inhomogeneous_gmp): Same.
11025         (ppl_set_coef_gmp): Same.
11026         (ppl_strip_loop): Same.
11027         (ppl_lexico_compare_linear_expressions): Same.
11028         (ppl_max_for_le_pointset): Same.
11029         (ppl_min_for_le_pointset): Same.
11030         (ppl_build_realtion): Same.
11031         * graphite-ppl.h (gmp_cst_to_tree): Same.
11032         (ppl_set_inhomogeneous): Same.
11033         (ppl_set_inhomogeneous_tree): Same.
11034         (ppl_set_coef): Same.
11035         (ppl_set_coef_tree): Same.
11036         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11037         (build_scop_scattering): Same.
11038         (add_value_to_dim): Same.
11039         (scan_tree_for_params_right_scev): Same.
11040         (scan_tree_for_params_int): Same.
11041         (scan_tree_for_params): Same.
11042         (find_params_in_bb): Same.
11043         (find_scop_parameters): Same.
11044         (add_upper_bounds_from_estimated_nit): Same.
11045         (build_loop_iteration_domains): Same.
11046         (create_linear_expr_from_tree): Same.
11047         (add_condition_to_domain): Same.
11048         (pdr_add_memory_accesses): Same.
11049
11050 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
11051             Jason Merrill  <jason@redhat.com>
11052
11053         * c-common.c (c_common_reswords): Add nullptr.
11054         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
11055         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
11056         (gen_type_die_with_usage): Likewise.
11057         * dbxout.c (dbxout_type): Likewise.
11058         * sdbout.c (plain_type_1): Likewise.
11059
11060 2010-05-06  Jason Merrill  <jason@redhat.com>
11061
11062         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
11063         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
11064         ret appropriately.
11065         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
11066
11067         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
11068         stripping WITH_SIZE_EXPR.
11069         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
11070         change.
11071
11072 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11073
11074         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
11075         list of obsolete configurations.
11076         Disabled check for obsolete configurations.
11077         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
11078         Removed support for previous versions.
11079         * config/mips/iris.h: Removed.
11080         * config/mips/iris5.h: Removed.
11081         * config/mips/iris6.h: Merged old iris.h contents.
11082         (TARGET_IRIX): Removed.
11083         (DRIVER_SELF_SPECS): Removed mabi=32.
11084         (IDENT_ASM_OP): Removed undef.
11085         (STARTFILE_SPEC): Removed mabi=32.
11086         (ENDFILE_SPEC): Likewise.
11087         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
11088         (MACHINE_TYPE): Update for IRIX 6.5.
11089         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
11090         TARGET_IRIX by TARGET_IRIX6.
11091         (mips_file_start): Likewise.
11092         (mips_output_external): Remove IRIX 5/6 O32 support.
11093         (mips_output_function_prologue): Likewise.
11094         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
11095         TARGET_IRIX6.
11096         (TARGET_CPU_CPP_BUILTINS): Likewise.
11097         (TARGET_IRIX): Removed.
11098         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
11099         (MULTILIB_DIRNAMES): Removed 32.
11100         (MULTILIB_OSDIRNAMES): Removed ../lib.
11101         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
11102         (Specific, mips-sgi-irix5): Document removal.
11103         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
11104         Remove references to older IRIX 6 releases and the O32 ABI.
11105
11106 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
11107
11108         PR bootstrap/43994
11109         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
11110         instead of DF_REF_REAL_REG.
11111
11112 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
11113
11114         PR target/43888
11115         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
11116         handling to still return true for x64 targets.
11117
11118 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11119
11120         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
11121
11122 2010-05-06  Jan Hubicka  <jh@suse.cz>
11123
11124         PR tree-optimization/43791
11125         * ipa-inline.c (update_caller_keys): Remove bogus
11126         disregard_inline_limits check.
11127
11128 2010-05-06  Michael Matz  <matz@suse.de>
11129
11130         PR tree-optimization/43984
11131         * tree-ssa-pre.c (inserted_phi_names): Remove.
11132         (inserted_exprs): Change to bitmap.
11133         (create_expression_by_pieces): Set bits, don't append to vector.
11134         (insert_into_preds_of_block): Don't handle inserted_phi_names.
11135         (eliminate): Don't look at inserted_phi_names, remove deleted
11136         insns from inserted_exprs.
11137         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11138         (init_pre, fini_pre): Allocate and free bitmaps.
11139         (execute_pre): Insert insns on edges before elimination.
11140
11141 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11142
11143         * tree.c (initializer_zerop): Handle STRING_CST.
11144
11145 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11146
11147         PR 40989
11148         * doc/invoke.texi (Wimplicit): Document as C only.
11149         * opts.c (common_handle_option): Add argument kind.
11150         (handle_option): Rename as read_cmdline_option. Factor out code to...
11151         (handle_option): ... here. New.
11152         (handle_options): Rename as read_cmdline_options.
11153         (decode_options): Update call.
11154         (set_option): Use option index instead of option pointer. Classify
11155         diagnostics correctly.
11156         (enable_warning_as_error): Call handle_option.
11157         * opts.h (set_option): Update declaration.
11158         (handle_option): Declare.
11159         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11160         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11161         * c-opts.c (set_Wimplicit): Delete.
11162         (c_family_lang_mask): New static constant.
11163         (c_common_handle_option): Add argument kind. Use handle_option
11164         instead of set_Wimplicit.
11165         (c_common_post_options): warn_implicit and warn_implicit_int
11166         are disabled by default.
11167         * c-common.c (warn_implicit): Do not define here.
11168         * c-common.h (warn_implicit): Do not declare here.
11169         (c_common_handle_option): Update declaration.
11170         * lto-opts.c (lto_reissue_options): Update call to set_option.
11171
11172 2010-05-06  Richard Guenther  <rguenther@suse.de>
11173
11174         PR tree-optimization/43571
11175         * domwalk.c (walk_dominator_tree): Walk the dominator
11176         sons in more optimal order.
11177
11178 2010-05-06  Richard Guenther  <rguenther@suse.de>
11179
11180         PR tree-optimization/43934
11181         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11182         (stmt_cost): Likewise.
11183         (extract_true_false_args_from_phi): New helper.
11184         (determine_max_movement): For PHI nodes verify we can hoist them
11185         and compute their cost.
11186         (determine_invariantness_stmt): Handle PHI nodes.
11187         (move_computations_stmt): Likewise.  Hoist PHI nodes in
11188         if-converted form using COND_EXPRs.
11189         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11190         (tree_ssa_lim): Likewise.
11191         * tree-flow.h (tree_ssa_lim): Adjust prototype.
11192         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11193
11194 2010-05-06  Richard Guenther  <rguenther@suse.de>
11195
11196         PR tree-optimization/43987
11197         * tree-ssa-structalias.c (could_have_pointers): For possibly
11198         address-taken variables force pointers to be recorded.
11199         (create_variable_info_for_1): Likewise.
11200         (push_fields_onto_fieldstack): Pass in wheter all fields
11201         must have pointers.
11202         (find_func_aliases): Query types instead of vars whether
11203         they contain pointers where appropriate.
11204
11205 2010-05-06  Jan Hubicka  <jh@suse.cz>
11206
11207         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11208         (record_reference, mark_address, mark_load, mark_store): Record
11209         references.
11210         (record_references_in_initializer): Update call of record_references.
11211         (rebuild_cgraph_edges): Remove all references before rebuiding.
11212         * cgraph.c (cgraph_create_node): Clear ref list.
11213         (cgraph_remove_node): Remove references.
11214         (dump_cgraph_node): Dump references.
11215         (cgraph_clone_node): Clone references.
11216         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11217         (struct cgraph_node, varpool_node): Add ref_lst.
11218         * ipa-ref.c: New file.
11219         * ipa-ref.h: New file.
11220         * ipa-ref-inline.h: New file.
11221         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11222         (referenced_from_other_partition_p): New function.
11223         (lto_output_varpool_node): Take set arugment; call
11224         referenced_from_other_partition.
11225         (lto_output_ref): New.
11226         (add_references): New.
11227         (output_refs): New.
11228         (output_cgraph): Compute boundary based on references; output refs.
11229         (output_varpool): Accept cgraph_node_set argument.
11230         (input_ref): New.
11231         (input_refs): New.
11232         (input_cgraph): Call input_refs.
11233         * lto-section-in.c (lto_section_name): Add refs.
11234         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11235         (ipa-ref.o): New file.
11236         * varpool.c (varpool_node): Clear ipa ref list.
11237         (varpool_remove_node): Remove references.
11238         (dump_varpool_node): Dump references.
11239         (varpool_assemble_decl): Only compile finalized ones.
11240         (varpool_extra_name_alias): Initialize ref list.
11241         * lto-streamer.c (lto-get_section_name): Add .refs section.
11242         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11243         (referenced_from_other_partition_p): Declared.
11244
11245 2010-05-06  Ira Rosen  <irar@il.ibm.com>
11246
11247         PR tree-optimization/43901
11248         * tree-vect-stmts.c (vectorizable_call): Assert that vector
11249         type is not NULL if it's transformation phase, and return
11250         FALSE if it's analysis.
11251         (vectorizable_conversion, vectorizable_operation,
11252         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11253
11254 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
11255
11256         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11257         Delete.
11258         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11259         New define.
11260         * config/mips/mips-protos.h
11261         (mips_small_register_classes_for_mode_p): Delete prototype.
11262
11263 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
11264
11265         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11266         * config/arm/arm.c (multiple_operation_profitable_p,
11267         compute_offset_order): New static functions.
11268         (load_multiple_sequence, store_multiple_sequence): Use them.
11269         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
11270         memory offsets, not register numbers.
11271         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11272
11273 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
11274
11275         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11276         (get_pending_sizes, put_pending_size, put_pending_sizes):
11277         Update the uses of pending_sizes.
11278         * c-decl.c (store_parm_decls): Likewise.
11279         * c-tree.h (struct c_arg_info): Likewise.
11280         * tree.h: Update the prototype for get_pending_sizes and
11281         put_pending_sizes.
11282
11283 2010-05-05  Jason Merrill  <jason@redhat.com>
11284
11285         PR debug/43370
11286         * c-common.c (handle_aligned_attribute): Respect
11287         ATTR_FLAG_TYPE_IN_PLACE.
11288
11289         PR testsuite/43758
11290         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11291         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11292         (TARGET_INITIALIZER): Use it.
11293         * c-common.c (attribute_takes_identifier_p): Call it.
11294         * c-common.h: Update prototype.
11295         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11296         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11297
11298 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
11299
11300         PR debug/43950
11301         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11302         DW_ID_down_case for Fortran compilation units.
11303
11304 2010-05-05  Jan Hubicka  <jh@suse.cz>
11305
11306         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11307         handle aliases.
11308
11309 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
11310
11311         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11312         a variable-sized RESULT_DECL.
11313
11314 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
11315
11316         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11317
11318 2010-05-05  Jason Merrill  <jason@redhat.com>
11319
11320         PR c++/43787
11321         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11322         returns GS_OK.
11323         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11324
11325 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
11326             Jakub Jelinek  <jakub@redhat.com>
11327
11328         PR debug/43478
11329         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11330         (dead_debug_init, dead_debug_finish): New functions.
11331         (dead_debug_add, dead_debug_insert_before): Likewise.
11332         (df_note_bb_compute): Initialize a dead_debug object, add dead
11333         debug uses to it, insert debug bind insns before death insns,
11334         reset debug insns that refer to pending uses at the end.
11335         * rtl.h (make_debug_expr_from_rtl): New prototype.
11336         * varasm.c (make_debug_expr_from_rtl): New function.
11337
11338 2010-05-05  Jan Hubicka  <jh@suse.cz>
11339
11340         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11341         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11342         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11343         lto_varpool_encoder_deref, lto_varpool_encoder_size,
11344         lto_varpool_encoder_encode_initializer_p,
11345         lto_set_varpool_encoder_encode_initializer): New functions.
11346         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11347         call output_varpool.
11348         (input_varpool_node): Do not always set analyzed.
11349         (input_cgraph_1): Return vector of cgraph nodes.
11350         (input_varpool_1): Return vector of varpools.
11351         (input_cgraph): Free the vectors.
11352         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11353         output only initializers needed.
11354         (lto_output): Only call output_cgraph.
11355         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
11356         * lto-section-out.c (lto_new_out_decl_state): Initialize
11357         state->varpool_node_encoder.
11358         * lto-streamer.h (lto_varpool_encoder_d): New.
11359         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
11360         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
11361         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
11362         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
11363         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
11364         Declare.
11365         (output_varpool, input_varpool): Remove declarations.
11366
11367 2010-05-05  Jan Hubicka  <jh@suse.cz>
11368
11369         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
11370         with body can prevail.
11371
11372 2010-05-05  Jan Hubicka  <jh@suse.cz>
11373
11374         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
11375         size.
11376
11377 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11378
11379         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
11380
11381         * gengtype.h (erro_at_line): Constify pos argument.
11382
11383         * gengtype.c: Include hashtab.h.
11384         (enum gc_used): Document GC_MAYBE_POINTED_TO.
11385         (error_at_line): Constify pos argument.
11386         (do_typedef): Initialize p->opt field.
11387         (get_file_gtfilename): Fix comment typo.
11388         (struct walk_type_data): Constify line field.
11389         (get_output_file_for_structure): New function.
11390         (write_local_func_for_structure): Constify orig_s argument.
11391         Use get_output_file_for_structure.
11392         (write_func_for_structure): Use get_output_file_for_structure.
11393         (INDENT): New define.
11394         (dump_pair, dump_type, dump_type_list, dump_typekind)
11395         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
11396         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
11397         functions.
11398         (seen_types): New variable.
11399         (main): New variable do_dump.  Process "-d" command line option.
11400         Call dump_everything if dump requested.
11401
11402 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
11403
11404         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
11405         in a temporary instead of invoking the macro multiple times.
11406         (track_expr_p): Likewise.
11407
11408 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
11409
11410         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
11411         per new semantics.
11412         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
11413         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
11414         conditions for printing notes.
11415         * common.opt (-Wcoverage-mismatch): Allow negative, default to
11416         true, update documentation.
11417         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11418
11419 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
11420
11421         PR c/43981
11422         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11423         on dimen.
11424
11425 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11426
11427         PR target/43799
11428         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11429         (*sse_prologue_save_insn1): Likewise.
11430         (SSE prologue save splitter): Likewise.
11431
11432 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11433
11434         * tree.c (free_lang_data_in_one_sizepos): New inline function.
11435         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11436         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11437         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11438         all decls.  Call it on DECL_FIELD_OFFSET of fields.
11439         (find_decls_types_r): Follow DECL_VALUE_EXPR.
11440         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11441
11442 2010-05-04  Martin Jambor  <mjambor@suse.cz>
11443
11444         * tree-sra.c (build_access_from_expr_1): The first parameter type
11445         changed to simple tree.
11446         (build_access_from_expr): Likewise, gsi parameter was eliminated.
11447         (scan_assign_result): Renamed to assignment_mod_result, enum elements
11448         renamed as well.
11449         (build_accesses_from_assign): Removed all parameters except for a
11450         simple gimple statement.  Now returns a simple bool.
11451         (scan_function): All non-analysis parts moved to separate functions
11452         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
11453         parameters and updated both callers.
11454         (sra_modify_expr): Removed parameter data.
11455         (sra_modify_function_body): New function.
11456         (perform_intra_sra): Call sra_modify_function_body to modify the
11457         function body.
11458         (replace_removed_params_ssa_names): Parameter data changed into
11459         adjustments vector.
11460         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
11461         changed the parameter dont_convert to convert with the opposite
11462         meaning.
11463         (sra_ipa_modify_assign): Parameter data changed into adjustments
11464         vector, return value changed to bool.
11465         (ipa_sra_modify_function_body): New function.
11466         (sra_ipa_reset_debug_stmts): Updated a comment.
11467         (modify_function): Use ipa_sra_modify_function_body to modify function
11468         body.
11469
11470 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11471
11472         PR middle-end/43671
11473         * alias.c (true_dependence): Handle the same VALUE in x and mem.
11474         (canon_true_dependence): Likewise.
11475         (write_dependence_p): Likewise.
11476
11477 2010-05-04  Jan Hubicka  <jh@suse.cz>
11478
11479         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11480         * cgraphbuild.c: Include ipa-utils.h
11481         (record_reference_ctx): New struct.
11482         (record_reference): Simplify to work on initializers; not statements.
11483         (mark_address, mark_load, mark_store): New.
11484         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11485         walk PHI nodes too.
11486         (record_references_in_initializer): Update use of record_reference.
11487         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11488         walk PHI nodes too.
11489
11490 2010-05-04  Jan Hubicka  <jh@suse.cz>
11491
11492         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
11493         node will be removed anyway.
11494         (lto_varpool_replace_node): Allow also unanalyzed nodes;
11495         relink aliases of node into prevailing node.
11496         * varpool.c (varpool_remove_node): Remove aliases properly;
11497         when removing node, remove all its aliases too; remove DECL_INITIAL
11498         of removed node; ggc_free the varpool node.
11499
11500 2010-05-04  Richard Guenther  <rguenther@suse.de>
11501
11502         PR tree-optimization/43879
11503         * tree-ssa-structalias.c (alias_get_name): Use
11504         DECL_ASSEMBLER_NAME if available.
11505         (create_function_info_for): Return the varinfo node.
11506         (ipa_pta_execute): Associate same-body aliases and extra names
11507         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
11508
11509 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11510
11511         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
11512
11513 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
11514
11515         PR bootstrap/43964
11516         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
11517         only if HONOR_REG_ALLOC_ORDER is not defined.
11518
11519 2010-05-04  Richard Guenther  <rguenther@suse.de>
11520
11521         PR tree-optimization/43949
11522         * tree-vrp.c (extract_range_from_binary_expr): Only handle
11523         TRUNC_MOD_EXPR.
11524
11525 2010-04-26  Jason Merrill  <jason@redhat.com>
11526
11527         * c.opt (-fstrict-enums): New.
11528         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
11529
11530 2010-05-03  David Ung  <davidu@mips.com>
11531             James E. Wilson  <wilson@codesourcery.com>
11532
11533         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
11534         emit the trap instruction before the divide for TUNE_74K.
11535
11536 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
11537
11538         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
11539         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
11540         based on the above, for new target hook.
11541
11542         * hooks.c (hook_bool_mode_true): New generic hook.
11543         * hooks.h (hook_bool_mode_true): Add prototype.
11544
11545         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
11546         target hook.
11547         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
11548         target hook, set to hook_bool_mode_false.
11549         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
11550         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
11551         with targetm.small_register_classes_for_mode_p.
11552         (find_reusable_reload): Likewise.
11553         (combine_reloads): Likewise.
11554         * reload1.c (reload_as_needed): Likewise.
11555         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
11556         * ifcvt.c (noce_process_if_block, check_cond_move_block,
11557         dead_or_predicable): Likewise.
11558         * regmove.c (optimize_reg_copy_1): Likewise.
11559         * calls.c (prepare_call_address): Likewise.
11560         (precompute_register_parameters): Likewise.
11561
11562         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
11563         hook definition.
11564         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
11565         implementation of the hook that considers all register classes
11566         small except for SH64.
11567         (sh_override_options): Use the new hook.
11568         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
11569         Add prototype.
11570
11571         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
11572         hook definition.
11573         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
11574         implementation of the hook that considers all register classes
11575         small for THUMB1.
11576         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
11577         Add prototype.
11578
11579         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
11580         hook definition.
11581         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
11582         implementation of the hook that considers all register classes
11583         small for MIPS16.
11584         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
11585         Add prototype.
11586
11587         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
11588         hook definition.
11589         * config/m32c/m32c.h: Likewise.
11590         * config/pdp11/pdp11.h: Likewise.
11591         * config/avr/avr.h: Likewise.
11592         * config/xtensa/xtensa.h: Likewise.
11593         * config/m68hc11/m68hc11.h: Likewise.
11594         * config/mn10300/mn10300.h: Likewise.
11595         * config/mcore/mcore.h: Likewise.
11596         * config/h8300/h8300.h: Likewise.
11597         * config/bfin/bfin.h: Likewise.
11598
11599         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
11600         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
11601
11602 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
11603
11604         * double-int.h (tree_to_double_int): Remove macro.
11605         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
11606         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11607         (tree_to_double_int): New function.
11608         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
11609         Move ...
11610         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11611
11612 2010-05-03  Richard Guenther  <rguenther@suse.de>
11613
11614         PR tree-optimization/43971
11615         * tree-ssa-structalias.c (get_constraint_for_1): Fix
11616         constraints in the !flag_delete_null_pointer_checks case.
11617
11618 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
11619
11620         PR debug/43972
11621         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
11622         result mode matches original rtl mode.
11623
11624 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
11625
11626         PR target/43888
11627         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
11628
11629 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11630
11631         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
11632         when processing flag options.
11633
11634 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11635
11636         * gcov-iov.c (main): Change format string placeholder
11637         from %#08x to 0x%08x.
11638         * genchecksum.c (dosum): Change format string placeholder
11639         from %#02x to 0x%02x.
11640
11641 2010-05-02  Richard Guenther  <rguenther@suse.de>
11642
11643         PR tree-optimization/43879
11644         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
11645
11646 2010-05-02  Bruno Haible  <bruno@clisp.org>
11647
11648         * doc/extend.texi (Function Attributes): Fix a typo.
11649
11650 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11651
11652         Revert:
11653         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
11654         placeholder from 0x%x to %#x.
11655         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11656         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11657         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11658         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11659         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11660         * config/i386/i386.c (ix86_target_string): Ditto.
11661         * config/i386/i386.c (output_pic_addr_const): Ditto.
11662         (print_operand): Ditto.
11663
11664 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11665
11666         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
11667         placeholder from 0x%x to %#x.
11668         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
11669         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
11670         (ASM_OUTPUT_DEBUG_DATA): Ditto.
11671         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
11672         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
11673         * optc-gen.awk: Ditto.
11674         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
11675         (HOST_WIDE_INT_PRINT_HEX): Ditto.
11676         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
11677         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11678
11679 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
11680
11681         * target.h (struct calls): Add function_value_regno_p field.
11682         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11683         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
11684         * targhooks.c (default_function_value_regno_p): New function.
11685         * targhooks.h (default_function_value_regno_p): Declare function.
11686         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
11687         * builtins.c. (apply_result_size): (Ditto.).
11688         * combine.c. (likely_spilled_retval_p): (Ditto.).
11689         * mode-switching.c. Include 'target.h'.
11690         (create_pre_exit): Use function_value_regno_p hook.
11691         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
11692         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
11693         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
11694
11695         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
11696         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
11697         (ix86_function_value_regno_p): Declare as static, change argument
11698         type to const unsigned int.
11699         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
11700
11701 2010-05-01  Richard Guenther  <rguenther@suse.de>
11702
11703         PR tree-optimization/43949
11704         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
11705         types.
11706         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
11707
11708 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
11709
11710         * rtl.h (CONST_DOUBLE_P): Define.
11711         (rtx_to_double_int): Declare.
11712         * emit-rtl.c (rtx_to_double_int): New function.
11713         * dwarf2out.c (insert_double): New function.
11714         (loc_descriptor, add_const_value_attribute): Clean up, use
11715         rtx_to_double_int and insert_double functions.
11716
11717 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
11718
11719         * doc/extend.texi (Inline): Add missing return keyword to examples.
11720         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11721         "command-line".
11722
11723 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
11724
11725         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11726         the variable part of the offset as well.  Use highest_pow2_factor for
11727         all alignment checks.
11728
11729 2010-04-30  Richard Guenther  <rguenther@suse.de>
11730
11731         PR tree-optimization/43879
11732         * tree-ssa-structalias.c (type_could_have_pointers): Functions
11733         can have pointers.
11734
11735 2010-04-30  Jan Hubicka  <jh@suse.cz>
11736
11737         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11738         varpool.
11739         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11740
11741 2010-04-30  Jan Hubicka  <jh@suse.cz>
11742
11743         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11744         New.
11745         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11746         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11747         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11748         cgraph_node_set_needs_ltrans_p): Remove.
11749
11750 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
11751
11752         * sdbout.c: Include vec.h, do not include varray.h.
11753         (deferred_global_decls, sdbout_global_decl,
11754         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11755         * toplev.c: Do not include varray.h.
11756         (dump_memory_report): Do not dump VARRAY statistics.
11757         * gengtype.c (open_base_file): Ignore varray.h.
11758         * Makefile.in: Update for abovementioned changes.
11759         Remove all traces of varray.c and varray.h.
11760         * varray.c: Remove file.
11761         * varray.h: Remove file.
11762
11763 2010-04-30  Jan Hubicka  <jh@suse.cz>
11764
11765         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
11766         references.
11767
11768 2010-04-30  Jan Hubicka  <jh@suse.cz>
11769
11770         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
11771         needed.
11772
11773 2010-04-30  Richard Guenther  <rguenther@suse.de>
11774
11775         * tree-ssa-structalias.c (get_constraint_for_1): Generate
11776         constraints for CONSTRUCTOR.
11777
11778 2010-04-30  Richard Guenther  <rguenther@suse.de>
11779
11780         PR lto/43946
11781         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
11782         first after all lowering passes.
11783
11784 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
11785
11786         * toplev.c: Include varray.h for statistics dumping.
11787         * tree.h: Do not declare varray_head_tag.
11788         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
11789         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
11790         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
11791         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
11792         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
11793         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
11794         c-common.c, c-common.h, reg-stack.c, basic-block.h,
11795         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
11796         include varray.h.
11797         * Makefile.in: Update for abovementioned changes.
11798
11799 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
11800
11801         PR debug/43942
11802         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
11803
11804 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
11805
11806         * config/picochip/picochip.c (picochip_legitimize_address): Define.
11807         Use this function to do machine-specific conversion.
11808         (picochip_legitimize_reload_address): Likewise.
11809         (picochip_legitimate_address_p): Check valid base register only if
11810         strict.
11811         (picochip_check_conditional_copy): Check for modw only if opnd is
11812         register.
11813         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
11814         to call the function in c.
11815         * config/picochip/picochip-protos.h
11816         (picochip_legitimize_reload_address): Define.
11817         * config/picochip/picochip.md (supported_compare1): Define.
11818
11819 2010-04-30  Jan Hubicka  <jh@suse.cz>
11820
11821         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11822         (cgraph_global_info): Remove inlined.
11823         (LTO_cgraph_tag_names): Remove.
11824         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11825         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11826         simplify cgraph tags and document.
11827         (lto_output_node): Use only LTO_cgraph_unavail_node and
11828         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
11829         for_functions_valid, global info, process and output flags.
11830         (input_overwrite_node): Initialize estimated stack size and
11831         estimated growth.  Do not read flags we no longer store.
11832         (input_node): Likewise do not read info no longer stored.
11833         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11834         flag.
11835
11836 2010-04-30  Richard Guenther  <rguenther@suse.de>
11837
11838         PR tree-optimization/43879
11839         * tree-ssa-structalias.c (get_constraint_for_1): Properly
11840         handle non-zero initializers.
11841
11842 2010-04-30  Richard Guenther  <rguenther@suse.de>
11843
11844         * builtins.c (fold_builtin_1): Delete free (0).
11845
11846 2010-04-29  Jan Hubicka  <jh@suse.cz>
11847
11848         * gengtype.c (open_base_files): Add lto-streamer.h
11849         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11850         (pass_ipa_cp): GGC collect.
11851         * toplev. (compile_file): Do not output symbols.
11852         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11853         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11854         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11855         * lto-section-in.c: Include ggc.h
11856         (lto_new_in_decl_state): Alloc in GGC.
11857         (lto_delete_in_decl_state): Likewise.
11858         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11859         Collect.
11860
11861 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
11862
11863         PR target/42895
11864         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11865         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
11866         (HONOR_REG_ALLOC_ORDER): Describe new macro.
11867         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11868         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11869         account only if HONOR_REG_ALLOC_ORDER is not defined.
11870         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11871         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11872
11873 2010-04-29  Jon Grant  <04@jguk.org>
11874
11875         * collect2.c (vflag): Change type from int to bool.
11876         (debug): Likewise.
11877         (helpflag): New global bool.
11878         (main): Set vflag and debug with boolean, not integer truth values.
11879         Accept new "--help" option and output usage text if found.
11880         * collect2.h (vflag): Update prototype.
11881         (debug): Likewise.
11882
11883 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11884
11885         PR bootstrap/43936
11886         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11887
11888 2010-04-29  Richard Guenther  <rguenther@suse.de>
11889
11890         PR bootstrap/43935
11891         * plugin.h (invoke_plugin_callbacks): Annotate arguments
11892         with ATTRIBUTE_UNUSED.
11893
11894 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11895
11896         PR target/43921
11897         * config/i386/i386.c (get_some_local_dynamic_name): Replace
11898         INSN_P with NONDEBUG_INSN_P.
11899         (distance_non_agu_define): Likewise.
11900         (distance_agu_use): Likewise.
11901
11902 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
11903
11904         From Dominique d'Humieres  <dominiq@lps.ens.fr>
11905         PR bootstrap/43858
11906         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11907         test_set.
11908
11909 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
11910
11911         * plugin.h (invoke_plugin_callbacks): New inline function.
11912         * plugin.c (flag_plugin_added): New global flag.
11913         (add_new_plugin): Initialize above flag.
11914         (invoke_plugin_callbacks): Rename to ...
11915         (invoke_plugin_callbacks_full): ... this.
11916
11917 2010-04-28  Jan Hubicka  <jh@suse.cz>
11918
11919         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11920         (lto_varpool_replace_node): New.
11921         (lto_symtab_resolve_symbols): Resolve varpool nodes.
11922         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11923         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11924         * cgraph.h (varpool_node_ptr): New type.
11925         (varpool_node_ptr): New vector.
11926         (varpool_node_set_def): New structure.
11927         (varpool_node_set): New type.
11928         (varpool_node_set): New vector.
11929         (varpool_node_set_element_def): New structure.
11930         (varpool_node_set_element, const_varpool_node_set_element): New types.
11931         (varpool_node_set_iterator): New type.
11932         (varpool_node): Add prev pointers, add used_from_other_partition,
11933         in_other_partition.
11934         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11935         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11936         varpool_get_node, varpool_remove_node): Declare.
11937         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11938         varpool_node_set_size): New inlines.
11939         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11940         * tree-pass.h (varpool_node_set_def): Forward declare.
11941         (ipa_opt_pass_d): Summary writting takes vnode sets too.
11942         (ipa_write_optimization_summaries): Update prototype.
11943         * ipa-cp.c (ipcp_write_summary): Update.
11944         * ipa-reference.c (ipa_reference_write_summary): Update.
11945         * lto-cgraph.c (lto_output_varpool_node): New static function.
11946         (output_varpool): New function.
11947         (input_varpool_node): New static function.
11948         (input_varpool_1): New function.
11949         (input_cgraph): Input varpool.
11950         * ipa-pure-const.c (pure_const_write_summary): Update.
11951         * lto-streamer-out.c (lto_output): Update, output varpool too.
11952         (write_global_stream): Kill WPA hack.
11953         (produce_asm_for_decls): Update.
11954         (output_alias_pair_p): Handle variables.
11955         (output_unreferenced_globals): Output only needed partition of varpool.
11956         * ipa-inline.c (inline_write_summary): Update.
11957         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11958         cgraph.
11959         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11960         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11961         varpool_node_set_new, varpool_node_set_add,
11962         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11963         debug_varpool_node_set): New functions.
11964         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11965         (execute_one_pass): Process new decls too.
11966         (ipa_write_summaries_2): Pass around vsets.
11967         (ipa_write_summaries_1): Likewise.
11968         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11969         to add.
11970         (ipa_write_optimization_summaries_1): Pass around vsets.
11971         (ipa_write_optimization_summaries): Likewise.
11972         * varpool.c (varpool_get_node): New.
11973         (varpool_node): Update doubly linked lists.
11974         (varpool_remove_node): New.
11975         (dump_varpool_node): More dumping.
11976         (varpool_enqueue_needed_node): Update doubly linked lists.
11977         (decide_is_variable_needed): Kill ltrans hack.
11978         (varpool_finalize_decl): Kill lto hack.
11979         (varpool_assemble_decl): Skip decls in other partitions.
11980         (varpool_assemble_pending_decls): Update doubly linkes lists.
11981         (varpool_empty_needed_queue): Likewise.
11982         (varpool_extra_name_alias): Likewise.
11983         * lto-streamer.c (lto_get_section_name): Add vars section.
11984         * lto-streamer.h (lto_section_type): Update.
11985         (output_varpool, input_varpool): Declare.
11986
11987 2010-04-28  Mike Stump  <mikestump@comcast.net>
11988
11989         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11990
11991 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11992
11993         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11994         record or union type with RECORD_OR_UNION_TYPE_P predicate.
11995         (lto_input_ts_type_tree_pointers): Likewise.
11996         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11997         (lto_output_ts_type_tree_pointers): Likewise.
11998
11999 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12000
12001         Uniquization of constants at the Tree level
12002         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
12003         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
12004         bit to the end.
12005         (tree_output_constant_def): Declare.
12006         * gimplify.c (gimplify_init_constructor): When using block copy, first
12007         uniquize the constant constructor on the RHS.
12008         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
12009         DECL_IN_CONSTANT_POOL flag.
12010         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
12011         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
12012         constant pool.
12013         (assemble_variable): Deal with symbols belonging to the tree constant
12014         pool.
12015         (get_constant_section): Add ALIGN parameter and simplify.
12016         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
12017         (assemble_constant_contents): Use the expression of the VAR_DECL.
12018         (output_constant_def_contents): Use the alignment of the VAR_DECL.
12019         (tree_output_constant_def): New global function.
12020         (mark_constant): Use the expression of the VAR_DECL.
12021         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
12022         its expression.
12023         (output_object_block): Likewise and assemble the expression.
12024
12025 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
12026
12027         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
12028         hash_tree, eq_tree): New tree hash table.
12029         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
12030         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
12031         lto_orig_address_remove): Reimplement.
12032
12033 2010-04-28  Xinliang David Li  <davidxl@google.com>
12034
12035         PR c/42643
12036         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
12037         (compute_uninit_opnds_pos): New function.
12038         (is_non_loop_exit_postdominating): New function.
12039         (compute_control_dep_chain): New function.
12040         (find_pdom): New function.
12041         (convert_control_dep_chain_into_preds): New function.
12042         (find_predicates): New function.
12043         (find_control_equiv_block): New function.
12044         (collect_phi_def_edges): New function.
12045         (find_def_preds): New function.
12046         (find_dom): New function.
12047         (dump_predicates): New function.
12048         (get_cmp_code): New function.
12049         (is_value_included_in): New function.
12050         (find_matching_predicate_in_rest_chains): New function.
12051         (use_pred_not_overlap_with_undef_path_pred): New function.
12052         (is_use_properly_guarded): New function.
12053         (normalize_cond_1): New function.
12054         (is_and_or_or): New function.
12055         (normalize_cond): New function.
12056         (is_gcond_subset_of): New function.
12057         (is_subset_of_any): New function.
12058         (is_or_set_subset_of): New function.
12059         (is_and_set_subset_of): New function.
12060         (is_norm_cond_subset_of): New function.
12061         (is_pred_expr_subset_of): New function.
12062         (is_pred_chain_subset_of): New function.
12063         (is_included_in): New function.
12064         (is_superset_of): New function.
12065         (find_uninit_use): New function.
12066         (warn_uninitialized_phi): New function.
12067         (compute_possibly_undefined_names): New function.
12068         (ssa_undefined_value_p): New function.
12069         (execute_late_warn_uninitialized): New function.
12070         * tree-ssa.c (ssa_undefined_value_p): Removed.
12071         (warn_uninit): Changed to extern.
12072         (warn_uninitialized_phi): Removed.
12073         (warn_uninitialized_vars): Changed to extern.
12074         (execute_late_warn_uninitialized): Removed
12075         * tree-flow.h: Add new prototypes.
12076         * timevar.def: Add new time variable.
12077         * Makefile.in: Add new build file.
12078
12079 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
12080
12081         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12082         type if available.
12083
12084 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12085
12086         PR target/22224
12087         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
12088
12089 2010-04-28  Martin Jambor  <mjambor@suse.cz>
12090
12091         * cgraph.h (struct cgraph_node): New field indirect_calls.
12092         (struct cgraph_indirect_call_info): New type.
12093         (struct cgraph_edge): Removed field indirect_call. New fields
12094         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
12095         (cgraph_create_indirect_edge): Declare.
12096         (cgraph_make_edge_direct): Likewise.
12097         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
12098         * ipa-prop.h (struct ipa_param_call_note): Removed.
12099         (struct ipa_node_params): Removed field param_calls.
12100         (ipa_create_all_structures_for_iinln): Declare.
12101         * cgraph.c: Described indirect edges and uids in initial comment.
12102         (cgraph_add_edge_to_call_site_hash): New function.
12103         (cgraph_edge): Search also among the indirect edges, use
12104         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
12105         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
12106         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
12107         site hash.
12108         (initialize_inline_failed): Assign a reason to indirect edges.
12109         (cgraph_create_edge_1): New function.
12110         (cgraph_create_edge): Moved some functionality to
12111         cgraph_create_edge_1.
12112         (cgraph_create_indirect_edge): New function.
12113         (cgraph_edge_remove_callee): Add an assert checking for
12114         non-indirectness.
12115         (cgraph_edge_remove_caller): Special-case indirect edges.
12116         (cgraph_remove_edge): Likewise.
12117         (cgraph_set_edge_callee): New function.
12118         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
12119         (cgraph_make_edge_direct): New function.
12120         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
12121         the declaration of the call statement matches.
12122         (cgraph_node_remove_callees): Special-case indirect edges.
12123         (cgraph_clone_edge): Likewise.
12124         (cgraph_clone_node): Clone also the indirect edges.
12125         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
12126         indirect_call, dump count of indirect_calls edges.
12127         * ipa-prop.c (iinlining_processed_edges): New variable.
12128         (ipa_note_param_call): Create indirect edges instead of
12129         creating notes.  New parameter node.
12130         (ipa_analyze_call_uses): New parameter node, pass it on to
12131         ipa_note_param_call.
12132         (ipa_analyze_stmt_uses): Likewise.
12133         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12134         (print_edge_addition_message): Work on edges rather than on notes.
12135         (update_call_notes_after_inlining): Likewise, renamed to
12136         update_indirect_edges_after_inlining.
12137         (ipa_create_all_structures_for_iinln): New function.
12138         (ipa_free_node_params_substructures): Do not free notes.
12139         (ipa_edge_duplication_hook): Propagate bits within
12140         iinlining_processed_edges bitmap.
12141         (ipa_node_duplication_hook): Do not duplicate notes.
12142         (free_all_ipa_structures_after_ipa_cp): Renamed to
12143         ipa_free_all_structures_after_ipa_cp.
12144         (free_all_ipa_structures_after_iinln): Renamed to
12145         ipa_free_all_structures_after_iinln.
12146         (ipa_write_param_call_note): Removed.
12147         (ipa_read_param_call_note): Removed.
12148         (ipa_write_indirect_edge_info): New function.
12149         (ipa_read_indirect_edge_info): Likewise.
12150         (ipa_write_node_info): Do not stream notes, do stream information
12151         in indirect edges.
12152         (ipa_read_node_info): Likewise.
12153         (lto_ipa_fixup_call_notes): Removed.
12154         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12155         * ipa-inline.c (pass_ipa_inline): Likewise.
12156         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12157         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12158         * tree-inline.c (copy_bb): Removed an unnecessary double check for
12159         is_gimple_call.
12160         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12161         edges.
12162         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12163         (output_cgraph): Stream also indirect edges.
12164         (lto_output_edge): Added capability to stream indirect edges.
12165         (input_edge): Likewise.
12166         (input_cgraph_1): Likewise.
12167         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12168         of indirect edges.
12169
12170 2010-04-28  Richard Guenther  <rguenther@suse.de>
12171
12172         PR tree-optimization/43879
12173         PR tree-optimization/43909
12174         * tree-ssa-structalias.c (struct variable_info): Add
12175         only_restrict_pointers flag.
12176         (new_var_info): Initialize it.  Increment stats.total_vars here.
12177         (create_function_info_for): Do not increment stats.total_vars here.
12178         (get_function_part_constraint): Fix build with C++.
12179         (insert_into_field_list): Remove.
12180         (push_fields_onto_fieldstack): Properly merge fields.
12181         (create_variable_info_for): Split and simplify.
12182         (create_variable_info_for_1): New piece.
12183         (intra_create_variable_infos): Properly make restrict constraints
12184         from parameters.
12185
12186 2010-04-28  Richard Guenther  <rguenther@suse.de>
12187
12188         PR c++/43880
12189         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12190
12191 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12192             Jan Hubicka  <hubicka@ucw.cz>
12193
12194         * doc/invoke.texi (-Wsuggest-attribute=const,
12195         -Wsuggest-attribute=pure): Document.
12196         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12197         (function_always_visible_to_compiler_p,
12198         suggest_attribute, warn_function_pure, warn_function_const):
12199         New functions.
12200         (check_call): Improve debug info.
12201         (analyze_function): Do not check availability.
12202         (add_new_function): Check availability.
12203         (propagate): Output warnings.
12204         (skip_function_for_local_pure_const): New function.
12205         (local_pure_const): Use it; output warnings.
12206         * common.opt (Wsuggest-attribute=const,
12207         Wsuggest-attribute=pure): New.
12208
12209 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
12210
12211         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12212         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12213         or DW_CFA_def_cfa_offset{,_sf}.
12214
12215 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12216
12217         * tree.h: Fix truncated long macros.
12218
12219 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
12220
12221         * collect2.c (TARGET_64BIT): Redefine to target's default.
12222         * tlink.c: Likewise.
12223         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12224         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12225         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12226         for underscoring __USER_LABEL_PREFIX__.
12227         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12228         (SUB_LINK_ENTRY32): New.
12229         (SUB_LINK_ENTRY64): New.
12230         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12231         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12232         (SUB_LINK_ENTRY64): New.
12233         (SUB_LINK_ENTRY): New.
12234         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12235         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12236         x64 target is choosen.
12237         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12238         * configure: Regenerated.
12239         * configure.ac (leading-mingw64-underscores): Option added.
12240
12241 2010-04-27  Jan Hubicka  <jh@suse.cz>
12242
12243         * doc/invoke.texi (-fipa-profile): Document.
12244         * opts.c (decode_options): Enable ipa-profile at -O1.
12245         * timevar.def (TV_IPA_PROFILE): Define.
12246         * common.opt (fipa-profile): Add.
12247         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12248         flag for clones.
12249         (cgraph_propagate_frequency): Handle only local ones.
12250         * tree-pass.h (pass_ipa_profile): Declare.
12251         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12252         (pass_ipa_profile): Use TV_IPA_PROFILE.
12253         * ipa.c (ipa_profile): New function.
12254         (gate_ipa_profile): Likewise.
12255         (pass_ipa_profile): New global variable.
12256         * passes.c (pass_ipa_profile): New.
12257
12258 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
12259
12260         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12261
12262 2010-04-27  Martin Jambor  <mjambor@suse.cz>
12263
12264         PR middle-end/43812
12265         * ipa.c (dissolve_same_comdat_group_list): New function.
12266         (function_and_variable_visibility): Call
12267         dissolve_same_comdat_group_list when comdat group contains external or
12268         newly local nodes.
12269         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12270         lists are circular and that they contain only DECL_ONE_ONLY nodes.
12271
12272 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12273
12274         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12275         (const_hash_1) <VECTOR_CST>: New case.
12276         (compare_constant) <VECTOR_CST>: Likewise.
12277         <ADDR_EXPR>: Deal with LABEL_REFs.
12278         (copy_constant) <VECTOR_CST>: New case.
12279
12280 2010-04-27  Jan Hubicka  <jh@suse.cz>
12281
12282         * cgraph.c (cgraph_propagate_frequency): New function.
12283         * cgraph.h (cgraph_propagate_frequency): Declare.
12284         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12285         cgraph_propagate_frequency.
12286
12287 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
12288
12289         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12290
12291 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
12292
12293         PR target/40657
12294         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12295         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12296         here to determine which regs to push and how much stack to reserve.
12297
12298 2010-04-27  Jie Zhang  <jie@codesourcery.com>
12299
12300         * doc/gimple.texi (gimple_statement_with_ops): Remove
12301         addresses_taken field.
12302         (gimple_statement_with_memory_ops): Likewise.
12303
12304 2010-04-27  Jan Hubicka  <jh@suse.cz>
12305
12306         * tree-inline.c (eni_inlining_weights): Remove.
12307         (estimate_num_insns): Special case more builtins.
12308
12309 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
12310
12311         PR c/32207
12312         * c-typeck.c (build_binary_op): Move forward check for comparison
12313         pointer with null pointer constant and adjust the diagnostic message.
12314
12315 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
12316
12317         PR lto/42776
12318         * configure.ac (gcc_cv_as_section_has_align): Set if installed
12319         binutils supports extended .section directive needed by LTO, or
12320         warn if older binutils found.
12321         (LTO_BINARY_READER): New AC_SUBST'd variable.
12322         (LTO_USE_LIBELF): Likewise.
12323         * gcc/config.gcc (lto_binary_reader): New target-specific configure
12324         variable.
12325         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12326         (LTO_USE_LIBELF): Likewise.
12327         * configure: Regenerate.
12328
12329         * collect2.c (is_elf): Rename from this ...
12330         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12331          object files in addition to ELF-formatted ones.
12332         (scan_prog_file): Caller updated.  Also allow for LTO info marker
12333         symbol to be prefixed or not by an extra underscore.
12334
12335         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12336         * config/i386/winnt.c: Also #include lto-streamer.h
12337         (i386_pe_asm_named_section): Specify 1-byte section alignment for
12338         LTO named sections.
12339         (i386_pe_asm_output_aligned_decl_common): Add comment.
12340         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12341
12342 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
12343
12344         PR target/43889
12345         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12346         Add missing earlyclobber for second alternative.
12347
12348 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
12349
12350         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
12351         bits for artificial defs at the top of the block.
12352         * fwprop.c (single_def_use_enter_block): Don't call it.
12353
12354 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
12355
12356         PR 43715
12357         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
12358         instead of "$gcc_cv_objdump -T".
12359         Use "-undefined dynamic_lookup" on darwin.
12360         * gcc/configure: Regenerate.
12361
12362 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
12363
12364         PR c/43893
12365         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
12366
12367 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
12368
12369         * c-parser.c (struct c_token): Move location field up.
12370         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
12371         (struct c_declspecs): Convert typespec_word, storage_class, and
12372         default_int_p into bitfields.
12373         (struct c_declarator): Move loc field up.
12374
12375 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
12376
12377         * cfgloop.h (struct loop): Move can_be_parallel field up.
12378         * ipa-prop.h (struct ip_node_params): Move bitfields up.
12379         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
12380         down.
12381         (struct iv_cand): Convert pos field into a bitfield.
12382         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
12383         field up.
12384         (struct _stmt_vec_info): Shuffle fields for better packing.
12385
12386 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
12387
12388         * varasm.c (IN_NAMED_SECTION): Remove guard.
12389         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
12390         (IN_NAMED_SECTION_P): ...this.
12391         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
12392         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12393
12394 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
12395
12396         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
12397         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
12398         of shadowing it.  Fix comments.
12399
12400 2010-04-26  Jan Hubicka  <jh@suse.cz>
12401
12402         * cgraph.c (cgraph_create_node): Set node frequency to normal.
12403         (cgraph_clone_node): Copy function frequency.
12404         * cgraph.h (node_frequency): New enum
12405         (struct cgraph_node): Add.
12406         * final.c (rest_of_clean_state): Update.
12407         * lto-cgraph.c (lto_output_node): Output node frequency.
12408         (input_overwrite_node): Input node frequency.
12409         * tre-ssa-loop-ivopts (computation_cost): Update.
12410         * lto-streamer-out.c (output_function): Do not output function
12411         frequency.
12412         * predict.c (maybe_hot_frequency_p): Update and handle functions
12413         executed once.
12414         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
12415         attribute lookup.
12416         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12417         (compute_function_frequency): Set noreturn functions to be executed
12418         once.
12419         (choose_function_section): Update.
12420         * lto-streamer-in.c (input_function): Do not input function frequency.
12421         * function.c (allocate_struct_function): Do not initialize function
12422         frequency.
12423         * function.h (function_frequency): Remove.
12424         (struct function): Remove function frequency.
12425         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12426         (try_update): Update.
12427         * tree-inline.c (initialize_cfun): Do not update function frequency.
12428         * passes.c (pass_init_dump_file): Update.
12429         * i386.c (ix86_compute_frame_layout): Update.
12430         (ix86_pad_returns): Update.
12431
12432 2010-04-26  Jie Zhang  <jie@codesourcery.com>
12433
12434         PR tree-optimization/43833
12435         * tree-vrp.c (range_int_cst_p): New.
12436         (range_int_cst_singleton_p): New.
12437         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12438         when both operands are constants.  Use range_int_cst_p in
12439         BIT_IOR_EXPR case.
12440
12441 2010-04-26  Jan Hubicka  <jh@suse.cz>
12442
12443         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12444
12445 2010-04-26  Richard Guenther  <rguenther@suse.de>
12446
12447         PR lto/43080
12448         * gimple.c (gimple_decl_printable_name): Deal gracefully
12449         with a NULL DECL_NAME.
12450
12451 2010-04-26  Richard Guenther  <rguenther@suse.de>
12452
12453         PR lto/42425
12454         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12455         if emitting debug information and it is either a function
12456         or a namespace decl.
12457
12458 2010-04-26  Ira Rosen  <irar@il.ibm.com>
12459
12460         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12461         determine if the statement is vectorizable, and a macro to access it.
12462         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12463         Skip statements that can't be vectorized. If the analysis fails,
12464         mark the statement as unvectorizable if vectorizing basic block.
12465         (vect_compute_data_refs_alignment): Likewise.
12466         (vect_verify_datarefs_alignment): Skip statements marked as
12467         unvectorizable. Add print.
12468         (vect_analyze_group_access): Skip statements that can't be
12469         vectorized. If the analysis fails, mark the statement as
12470         unvectorizable if vectorizing basic block.
12471         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12472         * tree-vect-stmts.c (vectorizable_store): Fix the number of
12473         generated stmts for SLP.
12474         (new_stmt_vec_info): Initialize the new field.
12475         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12476         statements marked as unvectorizable.
12477
12478 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
12479
12480         * c-common.c (flag_isoc1x): New.
12481         (flag_isoc99): Update comment.
12482         * c-common.h (flag_isoc1x): New.
12483         (flag_isoc99): Update comment.
12484         * c-cppbuiltin.c (builtin_define_float_constants): Also define
12485         __<type>_DECIMAL_DIG__.
12486         * c-opts.c (set_std_c1x): New.
12487         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
12488         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
12489         * c.opt (-std=c1x, -std=gnu1x): New options.
12490         * doc/cpp.texi: Mention -std=c1x.
12491         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
12492         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
12493         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
12494         * doc/standards.texi: Mention C1X.
12495         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
12496         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
12497         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
12498         Define for C1X.
12499
12500 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
12501
12502         * config/i386/gmon-sol2.c (_mcleanup): Change format string
12503         placeholder from 0x%x to %#x.
12504         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12505         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12506         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12507         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12508         * config/i386/i386.c (ix86_target_string): Ditto.
12509         (output_pic_addr_const): Ditto.
12510         (print_operand): Ditto.
12511
12512 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
12513
12514         * combine.c (find_split_point): Add third argument.  Use it
12515         to find nested multiply-accumulate instructions.  Adjust calls.
12516         (try_combine): Adjust call to find_split_point.
12517
12518 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
12519
12520         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
12521
12522 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
12523
12524         PR tree-optimization/41442
12525         * fold-const.c (merge_truthop_with_opposite_arm): New function.
12526         (fold_binary_loc): Call it.
12527
12528 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12529
12530         * toplev.c (general_init): Set default for fdiagnostics-show-option.
12531         * opts.c (common_handle_option): Allow disabling it.
12532         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
12533
12534 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
12535
12536         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
12537         between modes if both types are integral.
12538
12539 2010-04-23  Richard Guenther  <rguenther@suse.de>
12540
12541         PR tree-optimization/43572
12542         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
12543
12544 2010-04-23  Richard Guenther  <rguenther@suse.de>
12545
12546         PR lto/43455
12547         * tree-inline.c (tree_can_inline_p): Also check compatibility
12548         of return types.
12549
12550 2010-04-23  Martin Jambor  <mjambor@suse.cz>
12551
12552         PR tree-optimization/43846
12553         * tree-sra.c (struct access): New flag grp_assignment_read.
12554         (build_accesses_from_assign): Set grp_assignment_read.
12555         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
12556         (enum mark_read_status): New type.
12557         (analyze_access_subtree): Propagate grp_assignment_read, create
12558         accesses also if both direct_read and root->grp_assignment_read.
12559
12560 2010-04-23  Martin Jambor  <mjambor@suse.cz>
12561
12562         PR middle-end/43835
12563         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
12564         function does not have type attributes.
12565
12566 2010-04-23  Richard Guenther  <rguenther@suse.de>
12567
12568         PR lto/42653
12569         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
12570         of FUNCTION_DECLs.
12571
12572 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12573
12574         * sese.h (create_if_region_on_edge): Remove.
12575
12576         * sese.c (create_if_region_on_edge): Make static.
12577
12578         * tree-inline.c: Do not include ggc.h.
12579
12580         * expr.c: Do not include ggc.h.
12581
12582         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
12583         dependencies.
12584
12585 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12586
12587         PR target/43744
12588         * config/sh/sh.c (find_barrier): Don't emit a constant pool
12589         in the middle of insns for casesi_worker_2.
12590
12591 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
12592
12593         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
12594
12595 2010-04-22  Ira Rosen  <irar@il.ibm.com>
12596
12597         PR tree-optimization/43842
12598         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12599         loop unrolling in update of exit phis. Fix comment.
12600         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
12601         least two reduction statements in the loop before starting SLP
12602         analysis.
12603
12604 2010-04-22  Nick Clifton  <nickc@redhat.com>
12605
12606         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
12607
12608 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
12609
12610         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
12611         to simplify a + ~a.
12612
12613 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12614
12615         * tree-parloops.c (loop_parallel_p): New argument
12616         parloop_obstack.  Pass it down.
12617         (parallelize_loops): New variable parloop_obstack.  Initialize it,
12618         pass it down, free it.
12619
12620         * tree-loop-linear.c (linear_transform_loops): Pass down
12621         lambda_obstack.
12622
12623         * tree-data-ref.h (lambda_compute_access_matrices): New argument
12624         of type struct obstack *.
12625
12626         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
12627         scratch_obstack.  Initialize it, pass down, free it.
12628
12629         * lambda.h (lambda_loop_new): Remove.
12630         (lambda_matrix_new, lambda_matrix_inverse)
12631         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
12632         argument of type struct obstack *.
12633
12634         * lambda-trans.c (lambda_trans_matrix_new): New argument
12635         lambda_obstack.  Pass it down, use obstack allocation for ret.
12636         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
12637         it down.
12638
12639         * lambda-mat.c (lambda_matrix_get_column)
12640         (lambda_matrix_project_to_null): Remove.
12641         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
12642         allocation for mat.
12643         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
12644         lambda_obstack.
12645
12646         * lambda-code.c (lambda_loop_new): New function.
12647         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
12648         (lambda_compute_auxillary_space, lambda_compute_target_space)
12649         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
12650         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
12651         (build_access_matrix): New argument lambda_obstack.  Use obstack
12652         allocation for am.
12653         (lambda_compute_step_signs, lambda_compute_access_matrices): New
12654         argument lambda_obstack.  Pass it down.
12655
12656 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12657
12658         * optabs.h (expand_widening_mult): Declare.
12659
12660 2010-04-22  Richard Guenther  <rguenther@suse.de>
12661
12662         PR tree-optimization/43845
12663         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
12664         lookup the CALL_EXPR function and arguments.
12665
12666 2010-04-22  Nick Clifton  <nickc@redhat.com>
12667
12668         * config/stormy16/stormy16.c
12669         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
12670         * config/stormy16/stormy16.h: Tidy up formatting.
12671         (DONT_USE_BUILTIN_SETJMP): Remove definition.
12672         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
12673         (ineqbranchsi): Delete pattern.
12674         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
12675         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
12676         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12677         stormy16-lib2-ucmpsi2.c.
12678
12679 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12680
12681         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
12682         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
12683         extra set merge_set_noclobber, and use it to relax the final test
12684         slightly.
12685         * df.h (df_simulate_find_noclobber_defs): Declare.
12686         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
12687         conditional defs.
12688         (df_simulate_find_noclobber_defs): New function.
12689
12690 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
12691
12692         * config/i386/i386.md: Use {} around multi-line preparation statements.
12693
12694 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12695
12696         * c-tree.h (push_init_level, pop_init_level, set_init_index)
12697         (process_init_element): New argument of type struct obstack *.
12698
12699         * c-typeck.c (push_init_level, pop_init_level, set_designator)
12700         (set_init_index, set_init_label, set_nonincremental_init)
12701         (set_nonincremental_init_from_string, find_init_member)
12702         (output_init_element, output_pending_init_elements)
12703         (process_init_element): New argument braced_init_obstack.  Pass it
12704         down.
12705         (push_range_stack, add_pending_init): New argument
12706         braced_init_obstack.  Use obstack allocation.
12707
12708         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
12709         braced_init_obstack.  Pass it down.
12710         (c_parser_braced_init): New variables ret, braced_init_obstack.
12711         Initialize obstack, pass it down and finally free it.
12712
12713 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12714
12715         PR middle-end/29274
12716         * tree-pass.h (pass_optimize_widening_mul): Declare.
12717         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12718         gate_optimize_widening_mul): New static functions.
12719         (pass_optimize_widening_mul): New.
12720         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12721         <case MULT_EXPR>: Remove support for widening multiplies.
12722         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12723         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12724         simplify_gen_unary rather than directly building extensions.
12725         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12726         WIDEN_MULT_EXPR.
12727         * expmed.c (expand_widening_mult): New function.
12728         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12729
12730 2010-04-21  Jan Hubicka  <jh@suse.cz>
12731
12732         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12733         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12734         * lto-wpa-fixup.c: Remove.
12735         * Makefile.in (lto-wpa-fixup.o): Remove.
12736         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12737         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12738         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12739
12740 2010-04-21  Jan Hubicka  <jh@suse.cz>
12741
12742         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12743         add write_optimization_summary, read_optimization_summary.
12744         (ipa_write_summaries_of_cgraph_node_set): Remove.
12745         (ipa_write_optimization_summaries): Declare.
12746         (ipa_read_optimization_summaries): Declare.
12747         * ipa-cp.c (pass_ipa_cp): Update.
12748         * ipa-reference.c (pass_ipa_reference): Update.
12749         * ipa-pure-const.c (pass_ipa_pure_const): Update.
12750         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12751         Update.
12752         * ipa-inline.c (pass_ipa_inline): Update.
12753         * ipa.c (pass_ipa_whole_program): Update.
12754         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12755         * passes.c (ipa_write_summaries_1): Do not test wpa.
12756         (ipa_write_optimization_summaries_1): New.
12757         (ipa_write_optimization_summaries): New.
12758         (ipa_read_summaries): Do not test ltrans.
12759         (ipa_read_optimization_summaries_1): New.
12760         (ipa_read_optimization_summaries): New.
12761
12762 2010-04-21  Jan Hubicka  <jh@suse.cz>
12763
12764         * lto-cgraph.c (lto_output_node): Do not output comdat groups
12765         for boundary nodes.
12766         (output_cgraph): Do not arrange comdat groups for boundary nodes.
12767
12768 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12769
12770         PR debug/40040
12771         * dwarf2out.c (add_name_and_src_coords_attributes): Add
12772         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
12773
12774 2010-04-21  Jan Hubicka  <jh@suse.cz>
12775
12776         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
12777
12778 2010-04-21  Jan Hubicka  <jh@suse.cz>
12779
12780         * varpool.c (decide_is_variable_needed): Variable is always needed
12781         during ltrans.
12782
12783 2010-04-21  Jan Hubicka  <jh@suse.cz>
12784
12785         * opts.c (decode_options): Enable pure-const pass for whopr.
12786
12787 2010-04-21  Jan Hubicka  <jh@suse.cz>
12788
12789         * cgraph.c (dump_cgraph_node): Dump also assembler name.
12790         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
12791         at WPA dumping.
12792         (cgraph_decide_inlining): Do not expect callee to be removed in all
12793         cases.
12794
12795 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
12796
12797         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
12798
12799 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
12800
12801         * config/i386/i386.md (x86_shrd): Add athlon_decode and
12802         amdfam10_decode attributes.
12803
12804 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12805
12806         PR middle-end/43570
12807         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
12808         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
12809         (lower_copyprivate_clauses): Use private var in outer
12810         context instead of original var.  Make sure the types
12811         are correct for VLAs.
12812
12813 2010-04-21  Richard Guenther  <rguenther@suse.de>
12814
12815         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
12816         to non-pointer objects.
12817
12818 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12819
12820         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
12821         last chain entry if it starts with the still current label.
12822         (add_location_or_const_value_attribute): Check that
12823         loc_list->first->next is NULL instead of comparing ->first with ->last.
12824         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12825         to add_var_loc_to_decl.
12826
12827         * dwarf2out.c (output_call_frame_info): For dw_cie_version
12828         >= 4 add also address size and segment size fields into CIE header.
12829
12830         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12831         long as address size is the same as sizeof (void *) and
12832         segment size is 0.
12833         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
12834         address size or segment size is unexpected, return DW_EH_PE_omit.
12835         (classify_object_over_fdes): If get_cie_encoding returned
12836         DW_EH_PE_omit, return -1.
12837         (init_object): If classify_object_over_fdes returned -1,
12838         pretend there were no FDEs at all.
12839
12840 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
12841
12842         * config/i386/i386.md (bswap<mode>2): Macroize expander from
12843         bswap{si,di}2 using SWI48 mode iterator.
12844         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12845         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
12846         set modrm attribute of bswap insn to 0 and remove length attribute.
12847         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12848         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
12849         set mode attribute to <MODE> and remove length attribute.
12850
12851 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
12852
12853         PR rtl-optimization/43520
12854         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12855         zero available registers.
12856
12857 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12858
12859         * builtins.c (fold_builtin_cproj): Fold more cases.
12860
12861 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12862
12863         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12864         (fold_builtin_1): Fold builtin cproj.
12865         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12866         Use ATTR_CONST_NOTHROW_LIST.
12867
12868 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
12869
12870         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12871         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
12872         ffsi2_no_cmove for !TARGET_CMOVE.
12873         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
12874         (ffssi2): Remove expander.
12875         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12876         mode iterator.
12877         (ctz<mode>2): Ditto from ctz{si,di}2.
12878         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12879         mode iterator.
12880         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12881         mode iterator.
12882
12883 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12884
12885         * dwarf2out.c (AT_linkage_name): Define.
12886         (clone_as_declaration): Handle DW_AT_linkage_name.
12887         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12888         of DW_AT_MIPS_linkage_name.
12889         (move_linkage_attr): Likewise.
12890         (dwarf2out_finish): Likewise.
12891
12892 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
12893
12894         PR middle-end/41952
12895         * fold-const.c (fold_comparison): New folding rule.
12896
12897 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
12898
12899         * double-int.h (double_int_setbit): Declare.
12900         * double-int.c (double_int_setbit): New function.
12901         * rtl.h (immed_double_int_const): Declare.
12902         * emit-rtl.c (immed_double_int_const): New function.
12903         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12904         and immed_double_int_const functions.
12905         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12906         expand_copysign_bit):  (Ditto.).
12907         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12908         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12909         * dojump.c (prefer_and_bit_test): (Ditto.).
12910         * expr.c (convert_modes, reduce_to_bit_field_precision,
12911         const_vector_from_tree): (Ditto.).
12912         * expmed.c (mask_rtx, lshift_value): (Ditto.).
12913
12914 2010-04-20  Jan Hubicka  <jh@suse.cz>
12915
12916         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12917         (dump_cgraph_node): Dump new flags.
12918         * cgraph.h (struct cgraph_node): Add flags
12919         reachable_from_other_partition and in_other_partition.
12920         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12921         other partition can not be removed.
12922         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12923         the other partition must be output; silence sanity checking on
12924         leaking functions bodies from other paritition.
12925         * lto-cgraph.c (reachable_from_other_partition_p): New function.
12926         (lto_output_node): Output new flags; do not sanity check that inline
12927         clones are output; drop lto_forced_extern_inline_p code; do not mock
12928         visibility flags at partition boundaries.
12929         (add_node_to): New function.
12930         (output_cgraph): Use it to sort functions so masters appear before
12931         clones.
12932         (input_overwrite_node): Input new flags.
12933         * passes.c (ipa_write_summaries): Do not call
12934         lto_new_extern_inline_states.
12935         * lto-section-out.c (forced_extern_inline,
12936         lto_new_extern_inline_states lto_delete_extern_inline_states,
12937         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12938         * lto-streamer.h (lto_new_extern_inline_states,
12939         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12940         lto_forced_extern_inline_p): Kill.
12941
12942 2010-04-20  Richard Guenther  <rguenther@suse.de>
12943
12944         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12945         from vars that can have pointers.
12946         (process_constraint): Dump useless constraints.
12947
12948 2010-04-20  Richard Guenther  <rguenther@suse.de>
12949
12950         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12951         (dump_sa_points_to_info): Remove asserts.
12952         (init_base_vars): nothing_id isn't an escape point nor does it
12953         have pointers.
12954
12955 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12956
12957         * tree.h (TYPE_REF_IS_RVALUE): Define.
12958         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12959         should_move_die_to_comdat, prune_unused_types_walk): Handle
12960         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12961         (modified_type_die, gen_reference_type_die): Emit
12962         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12963         if TYPE_REF_IS_RVALUE and -gdwarf-4.
12964
12965 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12966
12967         PR target/43635
12968         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12969         calls for -fpic -m31 if they have been sibcall optimized.
12970
12971 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
12972
12973         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12974         ar.lc fixed and call-used.
12975
12976         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12977
12978 2010-04-19  Jan Hubicka  <jh@suse.cz>
12979
12980         * opts.c (decode_options): Disable whpr incompatible passes.
12981         * lto/lto.c (lto_1_to_1_map): Skip clones.
12982         (read_cgraph_and_symbols): Do not mark everything as needed.
12983         (do_whole_program_analysis): Do map only after optimizing;
12984         set proper cgraph_state; use passmanager.
12985
12986 2010-04-19  DJ Delorie  <dj@redhat.com>
12987
12988         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12989         POINTER_PLUS_EXPR and fix them.
12990
12991 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
12992
12993         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12994         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12995         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12996         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12997         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12998         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12999         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
13000         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
13001         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
13002         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
13003         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
13004
13005 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
13006
13007         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
13008         (check_cond_move_block): Likewise.
13009         (cond_move_process_if_block): Likewise.
13010         (noce_find_if_block): Improve formatting.
13011         (find_if_header): Pass 0 to memset and tweak conditions.
13012         (cond_exec_find_if_block): Fix long lines and tweak conditions.
13013
13014 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
13015
13016         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
13017         for -gdwarf-4.
13018
13019         PR middle-end/43337
13020         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
13021         with non-local decl doesn't need chain.
13022
13023 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
13024
13025         * ira-color.c (allocno_reload_assign): Avoid accumulating
13026         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
13027
13028 2010-04-19  Martin Jambor  <mjambor@suse.cz>
13029
13030         * gimple.h (create_tmp_reg): Declare.
13031         * gimplify.c (create_tmp_reg): New function.
13032         (gimplify_return_expr): Use create_tmp_reg.
13033         (gimplify_omp_atomic): Likewise.
13034         (gimple_regimplify_operands): Likewise.
13035         * tree-dfa.c (make_rename_temp): Likewise.
13036         * tree-predcom.c (predcom_tmp_var): Likewise.
13037         (reassociate_to_the_same_stmt): Likewise.
13038         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
13039         (get_replaced_param_substitute): Likewise.
13040         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13041         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
13042         * tree-ssa-pre.c (get_representative_for): Likewise.
13043         (create_expression_by_pieces): Likewise.
13044         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13045         (create_tailcall_accumulator): Likewise.
13046
13047 2010-04-19  Martin Jambor  <mjambor@suse.cz>
13048
13049         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
13050         new_stmt.
13051         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
13052
13053 2010-04-19  Richard Guenther  <rguenther@suse.de>
13054
13055         PR tree-optimization/43796
13056         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
13057         from SCEV in the lattice.
13058         (vrp_visit_phi_node): Dump change.
13059
13060 2010-04-19  Richard Guenther  <rguenther@suse.de>
13061
13062         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
13063         * configure: Re-generated.
13064
13065 2010-04-19  Richard Guenther  <rguenther@suse.de>
13066
13067         PR tree-optimization/43783
13068         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
13069         constant ARRAY_REF operands two and three if possible.
13070
13071 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
13072
13073         PR target/43766
13074         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
13075
13076 2010-04-19  Jie Zhang  <jie@codesourcery.com>
13077
13078         PR target/43662
13079         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
13080
13081 2010-04-19  Ira Rosen  <irar@il.ibm.com>
13082
13083         PR tree-optimization/37027
13084         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
13085         and macro to access it.
13086         (vectorizable_reduction): Add argument.
13087         (vect_get_slp_defs): Likewise.
13088         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
13089         statements for possible use in SLP.
13090         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
13091         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
13092         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
13093         add new argument.
13094         (vectorizable_reduction): Likewise.
13095         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
13096         vect_get_slp_defs.
13097         (vectorizable_type_demotion, vectorizable_type_promotion,
13098         vectorizable_store): Likewise.
13099         (vect_analyze_stmt): Update call to vectorizable_reduction.
13100         (vect_transform_stmt): Likewise.
13101         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
13102         (vect_build_slp_tree): Fix indentation. Check that there are no loads
13103         from different interleaving chains in same node.
13104         (vect_slp_rearrange_stmts): New function.
13105         (vect_supported_load_permutation_p): Allow load permutations for
13106         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
13107         inside SLP nodes if necessary.
13108         (vect_analyze_slp_instance): Handle reductions.
13109         (vect_analyze_slp): Try to build SLP instances originating from groups
13110         of reductions.
13111         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
13112         (vect_get_constant_vectors): Create initial vectors for reductions
13113         according to reduction code. Add new argument.
13114         (vect_get_slp_defs): Add new argument, pass it to
13115         vect_get_constant_vectors.
13116         (vect_schedule_slp_instance): Remove SLP tree root statements.
13117
13118 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
13119
13120         * tree.h (ENUM_IS_SCOPED): Define.
13121         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
13122         for ENUM_IS_SCOPED enums.
13123
13124 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
13125
13126         * fold-const.c (fold_comparison): Use ssizetype.
13127         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13128         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
13129         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
13130         * tree-object-size.c (compute_object_sizes): Use size_type_node.
13131
13132         * tree.h (initialize_sizetypes): Remove parameter.
13133         (build_common_tree_nodes): Remove second parameter.
13134         * stor-layout.c (initialize_sizetypes): Remove parameter.
13135         Always create an unsigned type.
13136         (set_sizetype): Assert that the passed type is unsigned and simplify.
13137         * tree.c (build_common_tree_nodes): Remove second parameter.
13138         Adjust call to initialize_sizetypes.
13139         * c-decl.c (c_init_decl_processing): Remove second argument in call to
13140         build_common_tree_nodes.
13141
13142 2010-04-18  Matthias Klose  <doko@ubuntu.com>
13143
13144         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13145
13146 2010-04-18  Ira Rosen  <irar@il.ibm.com>
13147
13148         PR tree-optimization/43771
13149         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13150         load permutation doesn't have gaps.
13151
13152 2010-04-18  Jan Hubicka  <jh@suse.cz>
13153
13154         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13155         (sse_prologue_save_insn expander): Use new pattern.
13156         (sse_prologue_save_insn1): New pattern and splitter.
13157         (sse_prologue_save_insn): Update to deal also with 64bit aligned
13158         blocks.
13159         * i386.c (setup_incoming_varargs_64): Do not compute jump
13160         destination here.
13161         (ix86_gimplify_va_arg): Update alignment needed.
13162         (ix86_local_alignment): Do not align all local arrays to 128bit.
13163
13164 2010-04-17  Jan Hubicka  <jh@suse.cz>
13165
13166         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13167
13168 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13169
13170         * arm.md (negdi2): Remove redundant code to force values into a
13171         register.
13172
13173 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13174
13175         * arm/bpabi.S: Add EABI alignment attributes to objects.
13176         * arm/bpabi-v6m.S: Likewise.
13177         * arm/crti.asm: Likewise.
13178         * arm/crtn.asm: Likewise.
13179         * arm/lib1funcs.asm: Likewise.
13180         * arm/libunwind.S: Likewise.
13181
13182 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13183
13184         * arm-protos.h (tune_params): New structure.
13185         * arm.c (current_tune): New variable.
13186         (arm_constant_limit): Delete.
13187         (struct processors): Add pointer to the tune parameters.
13188         (arm_slowmul_tune): New tuning option.
13189         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13190         (all_cores): Adjust to pick up the tuning model.
13191         (arm_constant_limit): New function.
13192         (arm_override_options): Select the appropriate tuning model.  Delete
13193         initialization of arm_const_limit.
13194         (arm_split_constant): Use the new constant-limit model.
13195         (arm_rtx_costs): Pick up the current tuning model.
13196         * arm.md (is_strongarm, is_xscale): Delete.
13197         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13198         for Xscale variant architectures.
13199         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13200
13201 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13202
13203         * config/arm/arm.c (arm_gen_constant): Remove unused variable
13204         can_shift.
13205         (arm_rtx_costs_1): Remove unused variable extra_cost.
13206         (arm_unwind_emit_set): Use variable offset.
13207         (thumb1_output_casesi): Remove unused variable flags.
13208
13209 2010-04-16  Jeff Law  <law@redhat.com>
13210
13211         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13212         needing assignment rather than doing a two-phase assignment.  Remove
13213         unused variable 'm'.
13214
13215 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13216
13217         PR bootstrap/43767
13218         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13219
13220 2010-04-16  Doug Kwan  <dougkwan@google.com>
13221
13222         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13223         (next_operand_entry_id): New static variable.
13224         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13225         (add_to_ops_vec): Assigned unique ID to operand entry.
13226         (struct oecount_s): New field ID.
13227         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13228         (undistribute_ops_list): Assign unique IDs to oecounts.
13229         (init_reassoc): reset next_operand_entry_id.
13230
13231 2010-04-16  Doug Kwan  <dougkwan@google.com>
13232
13233         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13234         missing left parenthesis.
13235
13236 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
13237
13238         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13239         *btdi_rex64 using SWI48 mode iterator.
13240         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13241         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13242         *jcc_btdi_mask_rex64.
13243
13244 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
13245
13246         * double-int.h (tree_to_double_int): Convert to macro.
13247         * double-int.c (tree_to_double_int): Remove.
13248
13249 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13250
13251         PR debug/43762
13252         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13253         with want_address 2 and in case a single element list might be
13254         possible, call it again with want_address 0.
13255
13256 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13257
13258         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13259         case 'W' print operands for HI mode.
13260         * config/h8300/h8300.h (Y0, Y2) : New constraints.
13261         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13262         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13263         * config/h8300/predicate.md (bit_register_indirect_operand): New.
13264
13265         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13266
13267         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13268         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13269         #xx:3 and #xx:4 mode.
13270
13271         * config/h8300/h8300.md (inverted load with HImode dest): Add
13272         support for H8300SX.
13273
13274         * config/h8300/predicate.md (bit_operand): Allow immediate values that
13275         satisfy 'U' constraint.
13276
13277 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13278
13279         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13280         * configure: Regenerate.
13281         * config.in: Regenerate.
13282         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13283         works.
13284
13285 2010-04-16  Richard Guenther  <rguenther@suse.de>
13286
13287         * tree.h (struct tree_decl_minimal): Move pt_uid ...
13288         (struct tree_decl_common): ... here.
13289         (DECL_PT_UID): Adjust.
13290         (SET_DECL_PT_UID): Likewise.
13291         (DECL_PT_UID_SET_P): Likewise.
13292
13293 2010-04-16  Richard Guenther  <rguenther@suse.de>
13294
13295         PR tree-optimization/43572
13296         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13297         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13298         * tree-flow.h (is_call_clobbered): Remove.
13299         * tree-flow-inline.h (is_call_clobbered): Likewise.
13300         * tree-dfa.c (dump_variable): Do not dump call clobber state.
13301         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13302         (execute_return_slot_opt): Adjust.
13303         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13304         check for call clobbered vars here.
13305         (find_tail_calls): Move tailcall verification to the
13306         proper place.
13307
13308 2010-04-16  Diego Novillo  <dnovillo@google.com>
13309
13310         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13311
13312 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13313
13314         PR target/40603
13315         * config/arm/arm.md (cbranchqi4): New pattern.
13316         * config/arm/predicates.md (const0_operand,
13317         cbranchqi4_comparison_operator): New predicates.
13318
13319 2010-04-16  Richard Guenther  <rguenther@suse.de>
13320
13321         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13322         (dump_gimple_stmt): Likewise.
13323
13324 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13325
13326         * recog.h (struct recog_data): New field is_operator.
13327         (struct insn_operand_data): New field is_operator.
13328         * recog.c (extract_insn): Set recog_data.is_operator.
13329         * genoutput.c (output_operand_data): Emit code to set the
13330         is_operator field.
13331         * reload.c (find_reloads): Use it rather than testing for an
13332         empty constraint string.
13333
13334         PR target/41514
13335         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13336         If the previous insn is a cbranchsi4_insn with the same arguments,
13337         omit the compare instruction.
13338
13339         * config/arm/arm.md (addsi3_cbranch): If destination is a high
13340         register, inputs must be low registers and we need a low register
13341         scratch.  Handle alternative 2 like alternative 3.
13342
13343 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13344
13345         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13346         don't call get_addr on both.  If one expression is a VALUE and
13347         the other a REG, check VALUE's locs if the REG isn't among them.
13348
13349 2010-04-16  Christian Bruel  <christian.bruel@st.com>
13350
13351         * config/sh/sh.h (sh_frame_pointer_required): New function.
13352         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
13353         (flag_omit_frame_pointer) Set.
13354         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
13355         (rounded_frame_size): Adjust size with outgoing_args_size.
13356         (sh_set_return_address): Must return from stack pointer.
13357         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
13358         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
13359         (ACCUMULATE_OUTGOING_ARGS): Define.
13360         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
13361         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
13362
13363 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
13364
13365         PR target/43471
13366         * config/sh/sh.c (sh_legitimize_reload_address): Use
13367         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
13368         Remove a unneeded check for offset_base.
13369
13370 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
13371
13372         * configure: Regenerated.
13373
13374 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13375
13376         * config/s390/s390.c (s390_call_save_register_used): Switch back
13377         to HARD_REGNO_NREGS.
13378
13379 2010-04-15  Richard Guenther  <rguenther@suse.de>
13380
13381         * alias.c (alias_set_subset_of): Handle alias-set zero
13382         child properly.
13383
13384 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
13385             Julian Brown  <julian@codesourcery.com>
13386
13387         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
13388         alternatives according to use of high and low regs.
13389         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13390         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
13391         optimizing for size on Thumb-2.
13392
13393 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
13394
13395         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
13396
13397 2010-04-15  Richard Guenther  <rguenther@suse.de>
13398
13399         * tree-ssa-structalias.c (struct variable_info): Add
13400         is_fn_info flag.
13401         (new_var_info): Initialize it.
13402         (dump_constraints): Support printing last added constraints.
13403         (debug_constraints): Adjust.
13404         (dump_constraint_graph): Likewise.
13405         (make_heapvar_for): Check for NULL cfun.
13406         (get_function_part_constraint): New function.
13407         (get_fi_for_callee): Likewise.
13408         (find_func_aliases): Properly implement IPA PTA constraints.
13409         (process_ipa_clobber): New function.
13410         (find_func_clobbers): Likewise.
13411         (insert_into_field_list_sorted): Remove.
13412         (create_function_info_for): Properly allocate vars for IPA mode.
13413         Do not use insert_into_field_list_sorted.
13414         (create_variable_info_for): Properly generate constraints for
13415         global vars in IPA mode.
13416         (dump_solution_for_var): Always dump the solution.
13417         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13418         (find_what_var_points_to): Adjust.
13419         (pt_solution_set): Change.
13420         (pt_solution_ior_into): New function.
13421         (pt_solution_empty_p): Export.
13422         (pt_solution_includes_global): Adjust.
13423         (pt_solution_includes_1): Likewise.
13424         (pt_solutions_intersect_1): Likewise.
13425         (dump_sa_points_to_info): Check some invariants.
13426         (solve_constraints): Move constraint dumping ...
13427         (compute_points_to_sets): ... here.
13428         (ipa_pta_execute): ... and here.
13429         (compute_may_aliases): Do not re-compute points-to info
13430         locally if IPA info is available.
13431         (ipa_escaped_pt): New global var.
13432         (ipa_pta_execute): Properly implement IPA PTA.
13433         * tree-into-ssa.c (dump_decl_set): Support dumping
13434         decls not in referenced-vars.
13435         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13436         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13437         (dump_points_to_solution): Likewise.
13438         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13439         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13440         (remap_gimple_stmt): Reset call clobber/use information if necessary.
13441         (copy_decl_to_var): Copy DECL_PT_UID.
13442         (copy_result_decl_to_var): Likewise.
13443         * tree.c (make_node_stat): Initialize DECL_PT_UID.
13444         (copy_node_stat): Copy it.
13445         * tree.h (DECL_PT_UID): New macro.
13446         (SET_DECL_PT_UID): Likewise.
13447         (DECL_PT_UID_SET_P): Likewise.
13448         (struct tree_decl_minimal): Add pt_uid member.
13449         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13450         (pt_solution_empty_p): Declare.
13451         (pt_solution_set): Adjust.
13452         (ipa_escaped_pt): Declare.
13453         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13454         * gimple-pretty-print.c (pp_points_to_solution): New function.
13455         (dump_gimple_call): Dump call clobber/use information.
13456         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13457         * tree-pass.h (TDF_ALIAS): New dump option.
13458         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13459         * doc/invoke.texi (-fipa-pta): Update documentation.
13460
13461 2010-04-15  Richard Guenther  <rguenther@suse.de>
13462
13463         * Makefile.in (OBJS-common): Add gimple-fold.o.
13464         (gimple-fold.o): New rule.
13465         * tree.h (maybe_fold_offset_to_reference,
13466         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13467         prototypes ...
13468         * gimple.h: ... here.
13469         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13470         may_propagate_address_into_dereference): Move prototypes ...
13471         * gimple.h: ... here.
13472         * tree-ssa-ccp.c (get_symbol_constant_value,
13473         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13474         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13475         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13476         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13477         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13478         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13479         gimplify_and_update_call_from_tree): Move ...
13480         * gimple-fold.c: ... here.  New file.
13481         (ccp_fold_builtin): Rename to ...
13482         (gimple_fold_builtin): ... this.
13483         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13484
13485 2010-04-15  Richard Guenther  <rguenther@suse.de>
13486
13487         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
13488         fit_double_type, force_fit_type_double, add_double_with_sign,
13489         neg_double, mul_double_with_sign, lshift_double, rshift_double,
13490         lrotate_double, rrotate_double, div_and_round_double): Move ...
13491         * double-int.c: ... here.
13492         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
13493         add_double, neg_double, mul_double_with_sign, mul_double,
13494         lshift_double, rshift_double, lrotate_double, rrotate_double,
13495         div_and_round_double): Move prototypes ...
13496         * double-int.h: ... here.
13497
13498 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
13499
13500         PR target/43742
13501         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
13502         matching constraints to ensure inputs match the output.
13503
13504 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
13505
13506         PR target/43742
13507         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
13508         in an input-only operand.
13509
13510 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
13511
13512         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
13513         (double_int_not, double_int_lshift, double_int_rshift): Declare.
13514         (double_int_negative_p): Convert to static inline function.
13515         * double-int.c (double_int_lshift, double_int_lshift): New functions.
13516         (double_int_negative_p): Remove.
13517         * tree.h (lshift_double, rshift_double):
13518         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
13519         * fold-const.c (fold_convert_const_int_from_real,
13520         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
13521         (lshift_double): Change type of arith argument to bool.
13522         (rshift_double): Change type of arith argument to bool. Correct
13523         comment.
13524         * expmed.c (mask_rtx, lshift_value): (Ditto.).
13525
13526 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
13527
13528         PR target/21803
13529         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
13530         at the start and end of the then/else blocks, and omit them from the
13531         conversion.
13532         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
13533         argument; all callers changed.  Pass zero to old_insns_match_p instead.
13534         (flow_find_head_matching_sequence): New function.
13535         (old_insns_match_p): Check REG_EH_REGION notes for calls.
13536         * basic-block.h (flow_find_cross_jump,
13537         flow_find_head_matching_sequence): Declare functions.
13538
13539 2010-04-14  Jason Merrill  <jason@redhat.com>
13540
13541         PR c++/36625
13542         * c-common.c (attribute_takes_identifier_p): New fn.
13543         * c-common.h: Declare it.
13544
13545 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13546
13547         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
13548         splitter condition.
13549         (*udivmod<mode>4): Ditto.
13550
13551 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13552
13553         * config/i386/i386.md (maxmin_int): Rename code attribute from
13554         maxminiprefix and update all users.
13555         (maxmin_float): Ditto from maxminfprefix.
13556         (logic): Ditto from logicprefix.
13557         (absneg_mnemonic): Ditto from absnegprefix.
13558         * config/i386/mmx.md: Update all users of maxminiprefix,
13559         maxminfprefix and logicprefix for rename.
13560         * config/i386/sse.md: Ditto.
13561         * config/i386/sync.md (sync_<code><mode>): Update for
13562         logicprefix rename.
13563
13564 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13565
13566         PR 42966
13567         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
13568         warnings converted to errors.
13569
13570 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13571
13572         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
13573         used insn_type variable.
13574         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
13575         to avoid set-but-not-used warning.
13576
13577 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13578
13579         * df-core.c (df_ref_debug): Change format string placeholder
13580         from 0x%x to %#x.
13581         * dwarf2asm.c (dw2_asm_output_data_raw,
13582         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
13583         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
13584         * dwarf2out.c (output_cfi, output_cfi_directive,
13585         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
13586         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
13587         Ditto.
13588         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
13589         * print-rtl.c (print_rtx): Ditto.
13590
13591 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
13592
13593         PR middle-end/42694
13594         * builtins.c (expand_builtin_pow_root): New function to expand pow
13595         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
13596         series of sqrt and cbrt calls under -ffast-math.
13597         (expand_builtin_pow): Call it.
13598
13599 2010-04-14  Michael Matz  <matz@suse.de>
13600
13601         PR tree-optimization/42963
13602         * tree-cfg.c (touched_switch_bbs): New static variable.
13603         (group_case_labels_stmt): New function broken out from ...
13604         (group_case_labels): ... here, use the above.
13605         (start_recording_case_labels): Allocate touched_switch_bbs.
13606         (end_recording_case_labels): Deallocate it, call
13607         group_case_labels_stmt.
13608         (gimple_redirect_edge_and_branch): Remember index of affected BB.
13609
13610 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13611
13612         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
13613         from insn template.
13614
13615 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13616
13617         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
13618
13619 2010-04-13  Jan Hubicka  <jh@suse.cz>
13620
13621         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
13622         of optimized out static functions.
13623         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
13624         cost computation.  Also sanity check for overflows.
13625         (update_caller_keys): Update cgraph_edge_badness call; properly
13626         update fibheap and sanity check that it is up to date.
13627         (add_new_edges_to_heap): Update cgraph_edge_badness.
13628         (cgraph_decide_inlining_of_small_function): Likewise;
13629         add sanity checking that badness in heap is up to date;
13630         improve dumping of reason; Update badness of calls to the
13631         offline copy of function currently inlined; dump badness
13632         of functions not inlined because of unit growth limits.
13633
13634 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
13635
13636         PR middle-end/32628
13637         * c-common.c (pointer_int_sum): Disregard overflow that occured only
13638         because of sign-extension change when converting to sizetype here...
13639         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
13640
13641         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
13642         the folding to constants.  Remove redundant final conversion.
13643         (fold_binary) <associate>: Do not associate if the re-association of
13644         constants alone overflows.
13645         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
13646         to the end of the list.
13647         (multiple_of_p) <COND_EXPR>: New case.
13648
13649 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13650
13651         * opt-functions.awk (opt_sanitized_name): New.
13652         (opt_enum): New.
13653         * optc-gen.awk: Use it
13654         * opth-gen.awk: Use it.
13655
13656 2010-04-13  Martin Jambor  <mjambor@suse.cz>
13657
13658         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
13659         (sra_modify_assign): Delete stmts loading dead data even if racc has no
13660         children.  Call replace_uses_with_default_def_ssa_name to handle
13661         SSA_NAES on lhs.
13662
13663 2010-04-13  Michael Matz  <matz@suse.de>
13664
13665         PR middle-end/43730
13666         * builtins.c (expand_builtin_interclass_mathfn): Also create
13667         a register if the predicate doesn't match.
13668
13669 2010-04-13  Diego Novillo  <dnovillo@google.com>
13670
13671         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
13672         * c-pch.c: Include timevar.h.
13673         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
13674         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
13675         * ggc-common.c: Include timevar.h.
13676         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
13677         * timevar.def (TV_PCH_SAVE): Define.
13678         (TV_PCH_CPP_SAVE): Define.
13679         (TV_PCH_PTR_REALLOC): Define.
13680         (TV_PCH_PTR_SORT): Define.
13681         (TV_PCH_RESTORE): Define.
13682         (TV_PCH_CPP_RESTORE): Define.
13683
13684 2010-04-13  Michael Matz  <matz@suse.de>
13685
13686         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
13687         into MINUS_EXPRs.
13688         (can_reassociate_p): New function.
13689         (break_up_subtract_bb, reassociate_bb): Use it.
13690
13691 2010-04-13  Richard Guenther  <rguenther@suse.de>
13692
13693         PR bootstrap/43737
13694         * builtins.c (c_readstr): Fix assert.
13695
13696 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
13697
13698         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
13699         when generating cltd insn.
13700
13701         (*ashl<mode>3_1): Remove special handling for register operand 2.
13702         (*ashlsi3_1_zext): Ditto.
13703         (*ashlhi3_1): Ditto.
13704         (*ashlhi3_1_lea): Ditto.
13705         (*ashlqi3_1): Ditto.
13706         (*ashlqi3_1_lea): Ditto.
13707         (*<shiftrt_insn><mode>3_1): Ditto.
13708         (*<shiftrt_insn>si3_1_zext): Ditto.
13709         (*<shiftrt_insn>qi3_1_slp): Ditto.
13710         (*<rotate_insn><mode>3_1): Ditto.
13711         (*<rotate_insn>si3_1_zext): Ditto.
13712         (*<rotate_insn>qi3_1_slp): Ditto.
13713
13714 2010-04-13  Richard Guenther  <rguenther@suse.de>
13715
13716         * tree-ssa-structalias.c (callused_id): Remove.
13717         (call_stmt_vars): New.
13718         (get_call_vi): Likewise.
13719         (lookup_call_use_vi): Likewise.
13720         (lookup_call_clobber_vi): Likewise.
13721         (get_call_use_vi): Likewise.
13722         (get_call_clobber_vi): Likewise.
13723         (make_transitive_closure_constraints): Likewise.
13724         (handle_const_call): Adjust to do per-call call-used handling.
13725         (handle_pure_call): Likewise.
13726         (find_what_var_points_to): Remove general callused handling.
13727         (init_base_vars): Likewise.
13728         (init_alias_vars): Initialize call_stmt_vars.
13729         (compute_points_to_sets): Process call-used and call-clobbered
13730         vars for call statements.
13731         (delete_points_to_sets): Free call_stmt_vars.
13732
13733 2010-04-13  Richard Guenther  <rguenther@suse.de>
13734
13735         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13736         Only add RW dependence for dependence distance zero.
13737         Adjust maximal vectorization factor according to dependences.
13738         Move alignment handling ...
13739         (vect_find_same_alignment_drs): ... here.  New function.
13740         (vect_analyze_data_ref_dependences): Adjust.
13741         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13742         (vect_analyze_data_refs): Adjust minimal vectorization factor
13743         according to data references.
13744         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13745         dependences before determining the vectorization factor.
13746         Analyze alignment after determining the vectorization factor.
13747         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13748         dependences before alignment.
13749         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13750         Adjust prototype.
13751         (vect_analyze_data_refs): Likewise.
13752         (MAX_VECTORIZATION_FACTOR): New define.
13753
13754 2010-04-13  Duncan Sands  <baldrick@free.fr>
13755
13756         * except.h (lang_eh_type_covers): Remove.
13757         * except.c (lang_eh_type_covers): Likewise.
13758
13759 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13760             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13761
13762         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
13763         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
13764         UNITS_PER_LONG where it is ABI relevant.
13765         (s390_return_addr_rtx): Likewise.
13766         (s390_back_chain_rtx): Likewise.
13767         (s390_frame_area): Likewise.
13768         (s390_frame_info): Likewise.
13769         (s390_initial_elimination_offset): Likewise.
13770         (save_gprs): Likewise.
13771         (s390_emit_prologue): Likewise.
13772         (s390_emit_epilogue): Likewise.
13773         (s390_function_arg_advance): Likewise.
13774         (s390_function_arg): Likewise.
13775         (s390_va_start): Likewise.
13776         (s390_gimplify_va_arg): Likewise.
13777         (s390_function_profiler): Likewise.
13778         (s390_optimize_prologue): Likewise.
13779         (s390_rtx_costs): Likewise.
13780         (s390_secondary_reload): Likewise.
13781         (s390_promote_function_mode): Likewise.
13782         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
13783         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
13784         registers available.
13785         (s390_unwind_word_mode): New function.
13786         (s390_function_value): Split 64 bit values into register pair if
13787         used as return value.
13788         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
13789         function call parameters.  Handle parallels.
13790         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
13791         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
13792         (DWARF_CIE_DATA_ALIGNMENT): New macro.
13793         (s390_expand_setmem): Remove unused variable src_addr.
13794         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
13795         deal with 64 bit registers.
13796         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
13797         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
13798         (UNITS_PER_LONG): New macro.
13799         * libjava/include/s390-signal.h: Define extended ucontext
13800         structure containing the upper halfs of the 64 bit registers.
13801
13802 2010-04-13  Simon Baldwin  <simonb@google.com>
13803
13804         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
13805
13806 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
13807
13808         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
13809         rvalue on the RHS if the LHS is of a non-renamable type.
13810         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
13811
13812 2010-04-13  Matthias Klose  <doko@ubuntu.com>
13813
13814         * gcc.c (cc1_options): Handle -iplugindir before processing
13815         the cc1 spec. Only add -iplugindir once.
13816         (cpp_unique_options): Add -iplugindir option if -fplugin* options
13817         found.
13818         * common.opt (iplugindir): Remove `Separate' property, initialize.
13819         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13820         option.
13821         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13822         (distclean): Remove plugin dir.
13823         * doc/invoke.texi: Document -iplugindir.
13824
13825 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
13826
13827         * doc/plugins.texi (Loading Plugins): Document short
13828         -fplugin=foo option.
13829         (Plugin API): Mention default_plugin_dir_name function.
13830
13831         * gcc.c (find_file_spec_function): Add new declaration.
13832         (static_spec_func): Use it for "find-file".
13833         (find_file_spec_function): Add new function.
13834         (cc1_options): Add -iplugindir option if -fplugin* options found.
13835
13836         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13837
13838         * plugin.c (add_new_plugin): Updated comment, and handle short
13839         plugin name.
13840         (default_plugin_dir_name): Added new function.
13841
13842         * common.opt (iplugindir): New option to set the plugin directory.
13843
13844 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
13845
13846         * config/i386/i386.md (any_rotate): New code iterator.
13847         (rotate_insn): New code attribute.
13848         (rotate): Ditto.
13849         (SWIM124): New mode iterator.
13850         (<rotate_insn>ti3): New expander.
13851         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13852         any_rotate code iterator.
13853         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13854         using any_rotate code iterator and SWIM124 mode iterator.
13855         (ix86_rotlti3): New insn_and_split pattern.
13856         (ix86_rotrti3): Ditto.
13857         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13858         ix86_rotl{di,ti}3 patterns.
13859         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13860         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13861         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13862         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13863         code iterator and SWI mode iterator.
13864         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13865         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13866         code iterator.
13867         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13868         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13869         (bswap rotatert splitter): Add splitter.
13870         (bswap splitter): Macroize splitter using any_rotate code iterator.
13871         Add insn predicate to split only for TARGET_USE_XCHGB or when
13872         optimizing function for size.
13873
13874 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13875
13876         * config/pa/pa.c (emit_move_sequence): Remove use of
13877         deleted variable flag_argument_noalias.
13878
13879 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13880
13881         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13882         configurations.
13883         Add to unsupported targets list.
13884         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13885         sparc*-sun-solaris2.[567]* from target lists.
13886         * configure: Regenerate.
13887         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13888         removal.
13889         Remove Solaris 7 patch references.
13890         (Specific, sparc-sun-solaris2.7): Removed.
13891         (sparc-sun-solaris2*): Update Solaris 7 example.
13892         (sparc64-*-solaris2*): Likewise.
13893
13894 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13895
13896         * config.build (alpha*-dec-osf4*): Remove.
13897         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13898         of obsolete configurations.
13899         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13900         support.
13901         * config/alpha/t-osf4: Renamed to ...
13902         * config/alpha/t-osf5: ... this.
13903         * config/alpha/osf.h: Renamed to ...
13904         * config/alpha/osf5.h: ... this.
13905         Merged old osf5.h contents.
13906         Update comments.
13907         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13908         (EXTRA_SPECS): Removed.
13909         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13910         reflect removal of Tru64 UNIX V4.0/V5.0 support.
13911         Document that.
13912
13913 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13914
13915         * doc/contrib.texi (Contributors, Rainer Orth): Update.
13916
13917 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
13918
13919         PR/43702
13920         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13921         __thiscall convention.
13922
13923 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13924
13925         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13926         orig_base.
13927         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13928
13929 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13930
13931         * function.c (assign_parms_initialize_all): Add unused attribute
13932         to fntype.
13933
13934 2010-04-12  Richard Guenther  <rguenther@suse.de>
13935
13936         * gsstruct.def (GSS_CALL): New.
13937         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13938         * gimple.h: Include tree-ssa-alias.h.
13939         (struct gimple_statement_call): New.
13940         (union gimple_statement_struct_d): Add gimple_call member.
13941         (gimple_call_reset_alias_info): Declare.
13942         (gimple_call_use_set): New function.
13943         (gimple_call_clobber_set): Likewise.
13944         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13945         * gimple.c (gimple_call_reset_alias_info): New function.
13946         (gimple_build_call_1): Call it.
13947         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13948         * tree-inline.c (remap_gimple_stmt): Likewise.
13949         (expand_call_inline): Remove callused handling.
13950         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13951         * tree-dfa.c (dump_variable): Likewise.
13952         * tree-parloops.c (parallelize_loops): Likewise.
13953         * tree-ssa.c (init_tree_ssa): Likewise.
13954         (delete_tree_ssa): Likewise.
13955         * tree-flow-inline.h (is_call_used): Remove.
13956         * tree-flow.h (struct gimple_df): Remove callused member.
13957         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13958         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13959         (ref_maybe_used_by_call_p_1): Simplify.
13960         (call_may_clobber_ref_p_1): Likewise.
13961         * tree-ssa-structalias.c (compute_points_to_sets): Set
13962         the call stmt used and clobbered sets.
13963         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13964         (find_tail_calls): Verify the tail call.
13965
13966 2010-04-12  Richard Guenther  <rguenther@suse.de>
13967
13968         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13969         single-iteration always-inline inlining.
13970         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13971         (cgraph_decide_inlining): Do not handle always-inline specially.
13972         (try_inline): Remove always-inline cycle detection special case.
13973         Do not recurse on always-inlines.
13974         (cgraph_early_inlining): Do not iterate if not optimizing.
13975         (cgraph_gate_early_inlining): remove.
13976         (pass_early_inline): Run unconditionally.
13977         (gate_cgraph_decide_inlining): New function.
13978         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
13979         not inlining or optimizing.
13980         (cgraph_decide_inlining_of_small_functions): Also consider
13981         always-inline functions.
13982         (cgraph_default_inline_p): Return true for nodes which should
13983         disregard inline limits.
13984         (estimate_function_body_sizes): Assume zero size and time for
13985         nodes which are marked as disregarding inline limits.
13986         (cgraph_decide_recursive_inlining): Do not perform recursive
13987         inlining on always-inline nodes.
13988
13989 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
13990
13991         PR bootstrap/43699
13992         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13993         for exprs satisfying handled_component_p.
13994
13995 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
13996
13997         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13998         non-constant aggregate elements.
13999
14000         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
14001         is a real initialization.
14002
14003 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
14004
14005         PR c/36774
14006         * c-decl.c (start_function): Move forward check for nested function.
14007
14008 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
14009
14010         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
14011         * config/sh/sh.c: Include reload.h.
14012         (sh_legitimize_reload_address): New.
14013         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
14014         sh_legitimize_reload_address.
14015
14016 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
14017
14018         * config/sh/sh.md (*movqi_pop): New insn pattern.
14019         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
14020
14021 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
14022
14023         * config/i386/i386.md (any_shiftrt): New code iterator.
14024         (shiftrt_insn): New code attribute.
14025         (shiftrt): Ditto.
14026         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
14027         using any_shiftrt code iterator.
14028         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
14029         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
14030         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
14031         pattern from corresponding peephole2 patterns.
14032         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
14033         using any_shiftrt code iterator.
14034         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
14035         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
14036         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
14037         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
14038         *{ashr,lshr}<mode>3_cmp_zext.
14039         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
14040
14041 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
14042
14043         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
14044         scratch register.
14045         (*lshr<mode>3_cconly): Ditto.
14046
14047 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
14048
14049         * config/i386/i386.md (lshr<mode>3): Macroize expander from
14050         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14051         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14052         pattern from *lshr{di,ti}3_1 and corresponding splitters using
14053         DWI mode iterator.
14054         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14055         from corresponding peephole2 patterns.
14056         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
14057         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
14058         and *lshrdi3_1_rex64 using SWI mode iterator.
14059         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
14060         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
14061         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
14062         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
14063         and *lshrdi3_cmp_rex64 using SWI mode iterator.
14064         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
14065         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
14066         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
14067         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
14068         SWI mode iterator.
14069
14070 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
14071
14072         * config/i386/i386.md (ashr<mode>3): Macroize expander from
14073         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14074         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14075         pattern from *ashr{di,ti}3_1 and corresponding splitters using
14076         DWI mode iterator.
14077         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14078         from corresponding peephole2 patterns.
14079         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
14080         (ashrsi3_cvt): Rename from ashrsi3_31.
14081         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
14082         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
14083         and x86_64_shift_adj_3 using SWI48 mode iterator.
14084         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
14085         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
14086         and *ashrdi3_1_rex64 using SWI mode iterator.
14087         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
14088         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
14089         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
14090         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
14091         and *ashrdi3_cmp_rex64 using SWI mode iterator.
14092         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
14093         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
14094         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
14095         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
14096         SWI mode iterator.
14097         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
14098         * config/i386/i386.c (ix86_split_ashr): Update for renamed
14099         x86_shift<mode>_adj_3 expanders.
14100
14101 2010-04-10  Wei Guozhi  <carrot@google.com>
14102
14103         PR target/42601
14104         * config/arm/arm.c (arm_pic_static_addr): New function.
14105         (legitimize_pic_address): Call arm_pic_static_addr when it detects
14106         a static symbol.
14107         (arm_output_addr_const_extra): Output expression for new pattern.
14108         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
14109
14110 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
14111
14112         * ira-costs.c (record_reg_classes): Ignore alternatives that are
14113         not enabled.
14114
14115         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
14116         * web.c: Include "insn-config.h" and "recog.h".
14117         (union_match_dups): New function.
14118         (web_main): Call it.
14119         (union_defs): Don't try to recognize match_dups.
14120
14121         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
14122         if doing so would replace the entire pattern.
14123
14124 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
14125
14126         PR target/43707
14127         PR target/43709
14128         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
14129         and splitter pattern.  Change splitter operand 1 predicate to
14130         nonmemory_operand.
14131
14132 2010-04-09  Martin Jambor  <mjambor@suse.cz>
14133
14134         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14135         lattices are addresses of CONST_DECLs with the same initial value.
14136         (ipcp_print_all_lattices): Print values of CONST_DECLs.
14137         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14138
14139 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
14140             Bernd Schmidt  <bernds@codesourcery.com>
14141
14142         * loop-invariant.c (replace_uses): New static function.
14143         (move_invariant_reg): Use it to ensure we can replace the uses.
14144
14145 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
14146
14147         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14148         function template.
14149         (picochip_override_options): Enable section anchors only above -O1.
14150         (picochip_reorg): Fixed a couple of build warnings.
14151
14152 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14153
14154         * configure.ac (plugin -rdynamic test): Log result.
14155         * configure: Regenerate.
14156         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14157         (RDYNAMIC_SPEC): Define.
14158         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14159
14160 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14161
14162         * configure.ac: Determine Sun ld version numbers.
14163         (comdat_group): Restrict GNU ld version checks to gld.
14164         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14165         (enable_comdat): Support --enable-comdat.
14166         * configure: Regenerate.
14167         * doc/install.texi (Configuration): Document --enable-comdat.
14168
14169 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14170
14171         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
14172         * config/sol2-gld.h: ... here.
14173         * config.gcc (sparc*-*-solaris2*): Reflect this.
14174         (i[34567]86-*-solaris2*): Use it.
14175
14176 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
14177
14178         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14179         setup_clocks_p.
14180         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14181
14182 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14183
14184         PR 42965
14185         * diagnostic.c (diagnostic_initialize): Initialize
14186         some_warnings_are_errors.
14187         (diagnostic_finish): New.
14188         (diagnostic_action_after_output): Call it before exiting.
14189         (diagnostic_report_diagnostic): Do not print message here. Set
14190         some_warnings_are_errors.
14191         * diagnostic.h (diagnostic_context): Delete
14192         issue_warnings_are_errors_message. Add some_warnings_are_errors.
14193         (diagnostic_finish): Declare.
14194         * toplev.c (toplev_main): Call it before exit.
14195
14196 2010-04-09  Jason Merrill  <jason@redhat.com>
14197
14198         PR c++/42623
14199         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14200         for incomplete type.
14201
14202         PR c++/41788
14203         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14204         based on a warning flag.
14205
14206 2010-04-09  Richard Guenther  <rguenther@suse.de>
14207
14208         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14209
14210 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
14211
14212         PR bootstrap/43684
14213         * varasm.c (default_assemble_visibility): Wrap vars that are
14214         set, but unused, by targets without GAS.
14215         * config/rs6000/rs6000.c (paired_emit_vector_compare):
14216         Remove set, but unused, vars.
14217         (rs6000_legitimize_tls_address): Likewise.
14218         (altivec_expand_dst_builtin): Likewise.
14219         * config/darwin.c (machopic_classify_symbol): Likewise.
14220         (machopic_indirection_name): Likewise.
14221
14222 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
14223
14224         * config/i386/i386.md (DWI): New mode iterator.
14225         (S): New mode attribute.
14226         (shift_operand): Ditto.
14227         (shift_immediate_operand): Ditto.
14228         (ashl_input_operand): Ditto.
14229         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14230         using SDWIM mode iterator.
14231         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14232         pattern from *ashl{di,ti}3_1 and corresponding splitters using
14233         DWI mode iterator.
14234         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14235         from corresponding peephole2 patterns.
14236         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14237         and x86_64_shift_adj_1 using SWI48 mode iterator.
14238         (x86_shift<mode>_adj_2): Ditto.
14239         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14240         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14241         using SWI48 mode iterator.
14242         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14243         *ashldi3_cmp_rex64 using SWI mode iterator.
14244         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14245         *ashldi3_cconly_rex64 using SWI mode iterator.
14246         * config/i386/i386.c (ix86_split_ashl): Update for renamed
14247         x86_shift<mode>_adj_{1,2}.
14248         (ix86_split_ashr): Ditto.
14249         (ix86_split_lshr): Ditto.
14250
14251 2010-04-09  Richard Guenther  <rguenther@suse.de>
14252
14253         * target.h (builtin_conversion): Pass in input and output types.
14254         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14255         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14256         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14257         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14258
14259         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14260         Handle AVX modes.
14261         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14262
14263 2010-04-09  Richard Guenther  <rguenther@suse.de>
14264
14265         PR target/43152
14266         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14267
14268 2010-04-09  Richard Guenther  <rguenther@suse.de>
14269
14270         * tree-vectorizer.h (struct _stmt_vec_info): Document
14271         that vectype is the type of the LHS.
14272         (supportable_widening_operation, supportable_narrowing_operation):
14273         Get both input and output vector types as arguments.
14274         (vect_is_simple_use_1): Declare.
14275         (get_same_sized_vectype): Likewise.
14276         * tree-vect-loop.c (vect_determine_vectorization_factor):
14277         Set STMT_VINFO_VECTYPE to the vector type of the def.
14278         (vectorizable_reduction): Adjust.
14279         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14280         Adjust.  Specify the output vector type.
14281         (vect_pattern_recog_1): Adjust.
14282         * tree-vect-stmts.c (get_same_sized_vectype): New function.
14283         (vectorizable_call): Adjust.
14284         (vectorizable_conversion): Likewise.
14285         (vectorizable_operation): Likewise.
14286         (vectorizable_type_demotion): Likewise.
14287         (vectorizable_type_promotion): Likewise.
14288         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14289         the def.
14290         (vect_is_simple_use_1): New function.
14291         (supportable_widening_operation): Get both input and output
14292         vector types.
14293         (supportable_narrowing_operation): Likewise.
14294         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14295
14296 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
14297
14298         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14299         __thiscall and _thiscall as predefined macros.
14300         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14301         thiscall attribute handling.
14302         (ix86_comp_type_attributes): Likewise.
14303         (ix86_function_regparm): Likewise.
14304         (ix86_return_pops_args): Likewise.
14305         (init_cumulative_args): Likewise.
14306         (find_drap_reg): Likewise.
14307         (ix86_static_chain): Likewise.
14308         (x86_this_parameter): Likewise.
14309         (x86_output_mi_thunk): Likewise.
14310         (ix86_attribute_table): Add description for thiscall attribute.
14311         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14312         * doc/extend.texi: Add documentation for thiscall.
14313
14314 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14315
14316         PR c++/28584
14317         * c.opt (Wint-to-pointer-cast): Available in C++.
14318         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14319
14320 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
14321
14322         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14323         * calls.c (expand_call): Pass the function type to aggregate_value_p.
14324         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14325         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
14326         function type instead.  Reorder and simplify checks.
14327
14328         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14329
14330 2010-04-08  Jing Yu  <jingyu@google.com>
14331             Zdenek Dvorak  <ook@ucw.cz>
14332
14333         PR tree-optimization/42720
14334         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14335         loop unswitch conditions here from ...
14336         (tree_unswitch_single_loop): ... here.
14337
14338 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
14339
14340         * tree-if-conv.c: Fix comments and simplify logic.
14341
14342 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
14343
14344         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14345         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
14346         (main_tree_if_conversion): Update call to tree_if_conversion.
14347
14348 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14349
14350         PR 42485
14351         * doc/invoke.texi (-b,-V): Delete.
14352         * doc/tm.texi: Do not mention -b.
14353         * gcc.c (display_help): Delete -b and -V.
14354         (process_command): Delete -b and -V.
14355         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
14356
14357 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
14358             Wolfgang Gellerich  <gellerich@de.ibm.com>
14359
14360         Implement target hook for loop unrolling
14361         * target.h (loop_unroll_adjust): Add a new target hook function.
14362         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
14363         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
14364         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
14365         (s390_loop_unroll_adjust): Implement the new target hook for s390.
14366         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
14367         target hook.
14368         (decide_unroll_stupid): Likewise.
14369
14370 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14371
14372         PR target/43643
14373         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
14374
14375 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14376
14377         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
14378         (Specific, *-*-solaris2*): Likewise.
14379         Don't prefer Sun as over GNU as.
14380
14381 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
14382
14383         * config/s390/s390.c (override_options): Adjust the z10 defaults
14384         for max-unroll-times, max-completely-peeled-insns
14385         and max-completely-peel-times.
14386
14387 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14388
14389         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
14390         instructions for z10.
14391         (s390_expand_setmem): Likewise.
14392         (s390_expand_cmpmem): Likewise.
14393
14394 2010-04-08  Richard Guenther  <rguenther@suse.de>
14395
14396         PR tree-optimization/43679
14397         * tree-ssa-pre.c (eliminate): Only propagate copies.
14398
14399 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
14400
14401         PR bootstrap/43681
14402         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
14403         set but not used variable warning.
14404
14405 2010-04-08  Wei Guozhi  <carrot@google.com>
14406
14407         PR target/41653
14408         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
14409         (arm_size_rtx_costs): Call the new function when optimized for size.
14410
14411 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
14412
14413         PR debug/43670
14414         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
14415         op0 is not a MEM, just return NULL instead of assertion
14416         failure.
14417         (discover_nonconstant_array_refs): Don't walk debug stmts.
14418
14419 2010-04-08  Doug Kwan  <dougkwan@google.com>
14420
14421         * configure.ac: Recognize gold and do not use its version number
14422         to test ld features.
14423         * configure: Regenerate.
14424
14425 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
14426
14427         PR middle-end/40815
14428         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14429         (negate_value): Move code to push elements to broken_up_substracts ...
14430         (eliminate_plus_minus_pair): ... here.  Push operands that have no
14431         negative pair to plus_negates.
14432         (repropagate_negates, init_reassoc, fini_reassoc): Update.
14433
14434 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14435
14436         * doc/install.texi (Configuration): Move description of
14437         --enable-lto, --with-libelf*, --enable-gold from Java section to
14438         general section.
14439
14440         * doc/generic.texi (Working with declarations)
14441         (Function Properties, C and C++ Trees): Fix typos.
14442         * doc/sourcebuild.texi (Top Level): Likewise.
14443
14444 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
14445
14446         PR c/18624
14447         * tree.h (DECL_READ_P): Define.
14448         (struct tree_decl_common): Add decl_read_flag.
14449         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14450         a set but not used warning.
14451         (merge_decls): Merge DECL_READ_P flag.
14452         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14453         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14454         * c-common.c (handle_used_attribute, handle_unused_attribute):
14455         Likewise.
14456         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14457         New prototypes.
14458         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14459         New functions.
14460         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14461         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14462         c_parser_binary_expression, c_parser_cast_expression,
14463         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14464         Call default_function_array_read_conversion instead of
14465         default_function_array_conversion where needed.
14466         (c_parser_unary_expression, c_parser_conditional_expression,
14467         c_parser_postfix_expression_after_primary, c_parser_initelt):
14468         Likewise.  Call mark_exp_read where needed.
14469         (c_parser_statement_after_labels, c_parser_asm_operands,
14470         c_parser_typeof_specifier, c_parser_sizeof_expression,
14471         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14472         where needed.
14473         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14474         New.
14475         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14476         (warn_unused_but_set_parameter): Default to warn_unused
14477         && extra_warnings.
14478         * doc/invoke.texi: Document -Wunused-but-set-variable and
14479         -Wunused-but-set-parameter.
14480
14481         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14482         used count variable.
14483         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14484         when operandN variables aren't used in the body of the expander
14485         or splitter.
14486         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
14487         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
14488         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
14489         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
14490         FOR_EACH_IMM_USE_ON_STMT): Likewise.
14491         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
14492         * tree.c (PROCESS_ARG): Likewise.
14493
14494 2010-04-07  Simon Baldwin  <simonb@google.com>
14495
14496         * diagnostic.h (diagnostic_override_option_index): New macro to
14497         set a diagnostic's option_index.
14498         * c-tree.h (c_cpp_error): Add warning reason argument.
14499         * opts.c (_warning_as_error_callback): New.
14500         (register_warning_as_error_callback): Store callback for
14501         warnings enabled via enable_warning_as_error.
14502         (enable_warning_as_error): Call callback, minor code tidy.
14503         * opts.h (register_warning_as_error_callback): Declare.
14504         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
14505         response to -Werror=.
14506         (c_common_init_options): Register warning_as_error_callback in opts.c.
14507         * common.opt: Add -Wno-cpp option.
14508         * c-common.c (struct reason_option_codes_t): Map cpp warning
14509         reason codes to gcc option indexes.
14510         * (c_option_controlling_cpp_error): New function, lookup the gcc
14511         option index for a cpp warning reason code.
14512         * (c_cpp_error): Add warning reason argument, call
14513         c_option_controlling_cpp_error for diagnostic_override_option_index.
14514         * doc/invoke.texi: Document -Wno-cpp.
14515
14516 2010-04-07  Richard Guenther  <rguenther@suse.de>
14517
14518         * ipa-reference.c (mark_load): Use get_base_address.
14519         (mark_store): Likewise.
14520
14521         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
14522         inserting GIMPLE_NOPs into the IL.
14523         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14524         Explicitly strip handled components and indirect references.
14525
14526         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
14527         folding address expressions.
14528         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
14529         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
14530         operand_equal_p to compare decls.
14531         (ptr_deref_may_alias_decl_p): Likewise.
14532         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
14533         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
14534         Handle reversed comparison ops.
14535         * tree-sra.c (asm_visit_addr): Use get_base_address.
14536         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
14537         * ipa-reference.c (mark_address): Use get_base_address.
14538
14539 2010-04-07  Richard Guenther  <rguenther@suse.de>
14540
14541         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
14542         Propagate constants everywhere.
14543
14544 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
14545
14546         PR debug/43516
14547         * tree.c (MAX_INT_CACHED_PREC): Define.
14548         (nonstandard_integer_type_cache): New array.
14549         (build_nonstandard_integer_type): Cache results for precision
14550         <= MAX_INT_CACHED_PREC.
14551
14552 2010-04-07  Richard Guenther  <rguenther@suse.de>
14553
14554         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
14555         -fargument-noalias-global, -fargument-noalias-anything): Remove.
14556         * common.opt: Likewise.
14557         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
14558         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
14559         (nonoverlapping_memrefs_p): Likewise.
14560         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14561         * opts.c (common_handle_option): Handle OPT_fargument_alias,
14562         OPT_fargument_noalias, OPT_fargument_noalias_anything and
14563         OPT_fargument_noalias_global for backward compatibility.
14564
14565 2010-04-07  Richard Guenther  <rguenther@suse.de>
14566
14567         PR tree-optimization/43270
14568         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
14569         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
14570         * tree-ssa-pre.c (phi_translate_1): Adjust.
14571         (fully_constant_expression): Split out vn_reference handling to ...
14572         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
14573         Fold reads from constant strings.
14574         (vn_reference_lookup): Handle fully constant references.
14575         (vn_reference_lookup_pieces): Likewise.
14576         * Makefile.in (expmed.o-warn): Add -Wno-error.
14577
14578 2010-04-07  Martin Jambor  <mjambor@suse.cz>
14579
14580         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
14581
14582 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
14583
14584         PR driver/41594
14585         * gcc.c: Add -static-libstdc++ to list of recognized options.
14586
14587 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14588
14589         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
14590
14591 2010-04-07  Richard Guenther  <rguenther@suse.de>
14592
14593         PR middle-end/42617
14594         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
14595         bases build simple mem attributes to retain points-to information.
14596
14597 2010-04-07  Richard Guenther  <rguenther@suse.de>
14598
14599         PR middle-end/42617
14600         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
14601         preserve points-to related information.
14602
14603 2010-04-07  Richard Guenther  <rguenther@suse.de>
14604
14605         PR middle-end/42617
14606         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
14607         discard plain indirect references.
14608         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
14609         * tree.c (tree_nop_conversion): Likewise.
14610
14611 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
14612
14613         PR debug/43628
14614         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
14615
14616 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
14617
14618         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
14619         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
14620
14621 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14622
14623         * tree-if-conv.c: Fix indentation and comments.
14624
14625 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14626
14627         * tree-if-conv.c: Sort static functions in topological order.
14628
14629 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14630
14631         * tree-if-conv.c: Fix indentation and comments.
14632
14633 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14634
14635         PR middle-end/43519
14636         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
14637         lang_hooks.types.type_for_size instead of
14638         build_nonstandard_integer_type.
14639         When converting an unsigned type to signed, double its precision.
14640         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
14641         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
14642         (graphite_create_new_loop_guard): When ub + 1 wraps around,
14643         use lb <= ub.
14644
14645 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14646
14647         PR middle-end/43519
14648         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14649         POINTER_PLUS_EXPR for pointer types.
14650
14651 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14652
14653         PR middle-end/43519
14654         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
14655         * graphite-clast-to-gimple.c: Include langhooks.h.
14656         (max_signed_precision_type): New.
14657         (max_precision_type): Takes two types as arguments.
14658         (precision_for_value): New.
14659         (precision_for_interval): New.
14660         (gcc_type_for_interval): New.
14661         (gcc_type_for_value): New.
14662         (gcc_type_for_clast_term): New.
14663         (gcc_type_for_clast_red): New.
14664         (gcc_type_for_clast_bin): New.
14665         (gcc_type_for_clast_expr): Split up into several functions.
14666         (gcc_type_for_clast_eq): Rewritten.
14667         (compute_bounds_for_level): New.
14668         (compute_type_for_level_1): New.
14669         (compute_type_for_level): New.
14670         (gcc_type_for_cloog_iv): Removed.
14671         (gcc_type_for_iv_of_clast_loop): Rewritten.
14672         (graphite_create_new_loop): Compute the lower and upper bound types
14673         with gcc_type_for_clast_expr.
14674         (graphite_create_new_loop_guard): Same.
14675         (find_cloog_iv_in_expr): Removed.
14676         (compute_cloog_iv_types_1): Removed.
14677         (compute_cloog_iv_types): Removed.
14678         (gloog): Do not call compute_cloog_iv_types.
14679         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
14680         GBB_CLOOG_IV_TYPES.
14681         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
14682         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
14683         (GBB_CLOOG_IV_TYPES): Removed.
14684
14685 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14686
14687         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
14688         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
14689         (detect_commutative_reduction): Same.
14690
14691 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14692
14693         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
14694         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
14695         argument.
14696         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
14697         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
14698         (rewrite_commutative_reductions_out_of_ssa): Same.
14699         * passes.c (execute_function_todo): Call verify_ssa for every pass
14700         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
14701         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
14702         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
14703         with an extra argument.
14704         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
14705         verify_ssa only when the extra argument is true.
14706         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
14707         with an extra argument.
14708         (tree_transform_and_unroll_loop): Same.
14709
14710 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14711
14712         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
14713         for all the passes of the LNO having LOOP_CLOSED_SSA.
14714         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
14715         * tree-loop-distribution.c (pass_loop_distribution): Same.
14716         * tree-pass.h (TODO_verify_loops): Removed.
14717         * tree-ssa-loop.c (pass_tree_loop_init): Same.
14718         (pass_lim): Same.
14719         (pass_tree_unswitch): Same.
14720         (pass_predcom): Same.
14721         (pass_vectorize): Same.
14722         (pass_linear_transform): Same.
14723         (pass_graphite_transforms): Same.
14724         (pass_iv_canon): Same.
14725         (pass_complete_unroll): Same.
14726         (pass_complete_unrolli): Same.
14727         (pass_parallelize_loops): Same.
14728         (pass_loop_prefetch): Same.
14729         (pass_iv_optimize): Same.
14730
14731 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
14732
14733         PR middle-end/32824
14734         * passes.c (init_optimization_passes): Move pass_lim before
14735         pass_copy_prop and pass_dce_loop.
14736
14737 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
14738
14739         PR target/43667
14740         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14741         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14742         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14743         MULTI_* defines for 4 argument vpermil2p* builtins.
14744
14745 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
14746
14747         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14748         * config/i386/i386.c (x86_maybe_negate_const_int): New.
14749         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14750         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14751         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14752         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14753         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14754         Use x86_maybe_negate_const_int to output insn mnemonic.
14755         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
14756         check from instruction predicate.  Update comments.
14757         * config/i386/sync.md (sync_add<mode>): Use
14758         x86_maybe_negate_const_int to output insn mnemonic.
14759
14760 2010-04-06  Jan Hubicka  <jh@suse.cz>
14761
14762         PR tree-optimization/42906
14763         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
14764         IGNORE_SELF argument.  Set visited_control_parents for fully
14765         processed BBs.
14766         (find_obviously_necessary_stmts): Update call of
14767         mark_control_dependent_edges_necessary.
14768         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
14769
14770 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
14771
14772         * config/i386/i386.md: Remove comment about 'e' and 'E'
14773         operand modifier.
14774
14775 2010-04-06  Richard Guenther  <rguenther@suse.de>
14776
14777         PR tree-optimization/43627
14778         * tree-vrp.c (extract_range_from_unary_expr): Widenings
14779         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
14780         not varying.
14781
14782 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
14783
14784         * BASE-VER: Change to 4.6.0.
14785
14786         PR target/43638
14787         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
14788         handling.
14789
14790 2010-04-06  Richard Guenther  <rguenther@suse.de>
14791
14792         PR middle-end/43661
14793         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
14794
14795 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14796
14797         * doc/invoke.texi (Optimize Options): Document that LTO
14798         won't remove object access purely due to incompatible
14799         declarations.
14800
14801 2010-04-04  Matthias Klose  <doko@ubuntu.com>
14802
14803         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
14804         Initialize variable.
14805
14806 2010-04-03  Richard Guenther  <rguenther@suse.de>
14807
14808         PR middle-end/42509
14809         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
14810         require a non-NULL MEM_OFFSET.
14811
14812 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
14813
14814         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
14815         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
14816         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
14817         config/alpha/predicates.md, config/arm/arm.md,
14818         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14819         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14820         config/darwin9.h, config/darwin.c, config/darwin.h,
14821         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14822         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14823         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14824         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14825         config/mips/mips.md, config/mn10300/mn10300.c,
14826         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14827         config/rs6000/aix.h, config/rs6000/dfp.md,
14828         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
14829         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14830         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14831         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14832         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14833         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14834         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14835         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14836         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14837         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14838         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14839         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14840         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14841         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14842         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14843         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14844         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14845         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14846         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14847         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14848         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14849         opt-functions.awk, opth-gen.awk, params.def, passes.c,
14850         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14851         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14852         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14853         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14854         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14855         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14856         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14857         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14858         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14859         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14860         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14861         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14862         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14863         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14864
14865 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14866
14867         PR other/43620
14868         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14869         * aclocal.m4: Regenerate.
14870
14871 2010-04-02  Richard Guenther  <rguenther@suse.de>
14872
14873         PR tree-optimization/43629
14874         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14875         if we have seen a constant value.
14876
14877 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
14878
14879         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14880
14881 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
14882
14883         PR target/43469
14884         * arm.c (legitimize_tls_address): Adjust call to
14885         gen_tls_load_dot_plus_four.
14886         (arm_note_pic_base): New function.
14887         (arm_cannot_copy_insn_p): Use it.
14888         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14889         constraint.
14890
14891 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14892
14893         PR bootstrap/43531
14894
14895         Revert:
14896         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14897
14898         * Makefile.in ($(out_object_file)): Depend on
14899         gt-$(basename $(notdir $(out_file))).h.
14900
14901 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
14902
14903         * config.gcc (lm32-*-rtems*): Add t-lm32.
14904
14905 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
14906
14907         * config.gcc: Add lm32-*-rtems*.
14908         * config/lm32/rtems.h: New file.
14909
14910 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
14911
14912         PR target/42609
14913         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14914
14915 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
14916
14917         * dwarf2out.c (output_compilation_unit_header): For
14918         -gdwarf-4 use version 4 instead of version 3.
14919         (output_line_info): For version 4 and above emit additional
14920         maximum ops per insn header field.
14921         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14922
14923         * dwarf2out.c (is_c_family, is_java): Remove.
14924         (lower_bound_default): New function.
14925         (add_bound_info, gen_descr_array_type_die): Use it.
14926
14927 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
14928
14929         PR debug/43325
14930         * dwarf2out.c (gen_variable_die): Allow debug info for variable
14931         re-declaration when it happens in a function.
14932
14933 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
14934
14935         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14936         (cgraph_remove_function_insertion_hook): Same.
14937         (cgraph_call_function_insertion_hooks): Same.
14938
14939 2010-04-01  Richard Guenther  <rguenther@suse.de>
14940
14941         PR middle-end/43614
14942         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14943         and TREE_THIS_VOLATILE.
14944         (copy_ref_info): Likewise.
14945         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14946         * tree.c (build6_stat): Ignore side-effects of all but arg5
14947         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
14948         TARGET_MEM_REF.
14949
14950 2010-04-01  Richard Guenther  <rguenther@suse.de>
14951
14952         PR tree-optimization/43607
14953         * ipa-type-escape.c (check_call): Do not access non-existing
14954         arguments.
14955
14956 2010-04-01  Richard Guenther  <rguenther@suse.de>
14957
14958         PR middle-end/43602
14959         Revert
14960         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
14961                     Jack Howarth  <howarth@bromo.med.uc.edu>
14962
14963         * tree-profile.c (tree_init_ic_make_global_vars): Make static
14964         variables TLS.
14965
14966 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14967
14968         * doc/install.texi (Prerequisites): Document libelf usability on
14969         IRIX 5/6 and Solaris 2.
14970         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14971         Update GNU as, GNU ld requirements.
14972         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14973         Document Sun Studio compiler download.
14974         Update and simplify as, ld recommendations.
14975         (Specific, *-*-solaris2.7): Note obsoletion, removal.
14976
14977 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14978
14979         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14980         with_tune_32 to pentium4.
14981
14982 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
14983
14984         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14985
14986 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14987
14988         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14989         obsoletion, removal.
14990         Update IDO URL.
14991         Document GNU as requirement.
14992         Update configure requirements.
14993         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14994         Recomment IRIX 6.5.18+.
14995         Document IDF/IDL requirement.
14996         Document GNU as requirement.
14997         Document GNU ld bootstrap failure.
14998         Remove freeware.sgi.com reference.
14999
15000 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15001
15002         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
15003         UNIX V4.0, V5.0 obsoletion, removal.
15004         Remove --with-gc=simple reference.
15005         Update VM requirements during bootstrap.
15006         Remove -oldas bootstrap description.
15007         Update binutils reference.
15008         Remove comparison failure note.
15009
15010 2010-03-31  Richard Guenther  <rguenther@suse.de>
15011             Zdenek Dvorak  <ook@ucw.cz>
15012             Sebastian Pop  <sebastian.pop@amd.com>
15013
15014         PR middle-end/43464
15015         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
15016         with multiple arguments.
15017         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
15018
15019 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15020
15021         * graphite-dependences.c (print_pddr): Call print_pdr with an
15022         extra argument.
15023         * graphite-poly.c (debug_pdr): Add an extra argument for the
15024         verbosity level.
15025         (print_pdr): Same.
15026         (print_pbb_domain): Same.
15027         (print_pbb): Same.
15028         (print_scop_context): Same.
15029         (print_scop): Same.
15030         (print_cloog): Same.
15031         (debug_pbb_domain): Same.
15032         (debug_pbb): Same.
15033         (print_pdrs): Same.
15034         (debug_pdrs): Same.
15035         (debug_scop_context): Same.
15036         (debug_scop): Same.
15037         (debug_cloog): Same.
15038         (print_scop_params): Same.
15039         (debug_scop_params): Same.
15040         (print_iteration_domain): Same.
15041         (print_iteration_domains): Same.
15042         (debug_iteration_domain): Same.
15043         (debug_iteration_domains): Same.
15044         (print_scattering_function): Same.
15045         (print_scattering_functions): Same.
15046         (debug_scattering_function): Same.
15047         (debug_scattering_functions): Same.
15048         * graphite-poly.h (debug_pdr): Update declaration.
15049         (print_pdr): Same.
15050         (print_pbb_domain): Same.
15051         (print_pbb): Same.
15052         (print_scop_context): Same.
15053         (print_scop): Same.
15054         (print_cloog): Same.
15055         (debug_pbb_domain): Same.
15056         (debug_pbb): Same.
15057         (print_pdrs): Same.
15058         (debug_pdrs): Same.
15059         (debug_scop_context): Same.
15060         (debug_scop): Same.
15061         (debug_cloog): Same.
15062         (print_scop_params): Same.
15063         (debug_scop_params): Same.
15064         (print_iteration_domain): Same.
15065         (print_iteration_domains): Same.
15066         (debug_iteration_domain): Same.
15067         (debug_iteration_domains): Same.
15068         (print_scattering_function): Same.
15069         (print_scattering_functions): Same.
15070         (debug_scattering_function): Same.
15071         (debug_scattering_functions): Same.
15072
15073 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15074
15075         * graphite-poly.c (print_scattering_function_1): New.
15076         (print_scattering_function): Call it.
15077         (print_scop_params): Remove spaces at the end of lines.
15078         (print_cloog): New.
15079         (debug_cloog): New.
15080         * graphite-poly.h (print_cloog): Declared.
15081         (debug_cloog): Declared.
15082
15083 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15084
15085         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
15086         in loop->header.
15087         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
15088         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
15089         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
15090         to switch between adding the IV bump in loop->latch or in loop->header.
15091
15092 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15093
15094         * graphite-poly.c (print_scattering_function): Pretty print following
15095         the scoplib format.
15096         (print_pdr): Same.
15097         (print_pbb_domain): Same.
15098         (dump_gbb_cases): Same.
15099         (dump_gbb_conditions): Same.
15100         (print_pdrs): Same.
15101         (print_pbb): Same.
15102         (print_scop_params): Same.
15103         (print_scop_context): Same.
15104         (print_scop): Same.
15105         (print_pbb_body): New.
15106         (lst_indent_to): New.
15107         (print_lst): Start new lines with a #.
15108         * graphite-poly.h (pbb_bb): New.
15109         (pbb_index): Use pbb_bb.
15110         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
15111         disjuncts.
15112         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
15113
15114 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
15115
15116         * dwarf2out.c (size_of_die): For -gdwarf-4 use
15117         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
15118         and 0 instead of 1 for dw_val_class_flag.
15119         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
15120         dw_val_class_range_list, dw_val_class_loc_list,
15121         dw_val_class_lineptr and dw_val_class_macptr, use
15122         DW_FORM_flag_present for dw_val_class_flag and
15123         DW_FORM_exprloc for dw_val_class_loc.
15124         (output_die): For -gdwarf-4 print dw_val_class_loc
15125         size as uleb128 instead of 1 or 2 bytes and don't print
15126         anything for dw_val_class_flag.
15127
15128         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
15129         instead of cselib_lookup following by tweaking locs->setting_insn.
15130
15131         PR bootstrap/43596
15132         * cselib.c (cselib_process_insn): Clear cselib_current_insn
15133         even before returning from label, setjmp call or volatile asm
15134         handling.
15135
15136 2010-03-31  Richard Guenther  <rguenther@suse.de>
15137
15138         PR middle-end/43600
15139         * cgraphunit.c (cgraph_output_in_order): Do not allocate
15140         temporary data on stack.
15141
15142 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15143
15144         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15145         (PUSHSECTION_ASM_OP): Remove.
15146         (POPSECTION_ASM_OP): Remove.
15147         (PUSHSECTION_FORMAT): Remove.
15148         * config/sol2.h (PUSHSECTION_FORMAT): Define.
15149         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15150         * config/sol2.c (solaris_output_init_fini): Use it.
15151
15152 2010-03-31  Jie Zhang  <jie@codesourcery.com>
15153
15154         PR 43574
15155         * opt-functions.awk (var_type_struct): Use signed char type
15156         for simple variables.
15157
15158 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15159
15160         * config/sol2.c: Include output.h.
15161         (solaris_assemble_visibility): New function.
15162         * config/t-sol2 (sol2.o): Add output.h dependency.
15163         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15164         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15165         Redefine.
15166
15167 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
15168
15169         PR target/43580
15170         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15171         V2SImode or XFmode on PRE_DEC.
15172
15173         PR debug/43557
15174         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15175         BLKmode.
15176
15177 2010-03-31  Jie Zhang  <jie@codesourcery.com>
15178
15179         PR 43562
15180         * reload.h (caller_save_initialized_p): Declare.
15181         * toplev.c (backend_init_target): Don't call
15182         init_caller_save but set caller_save_initialized_p to false.
15183         * caller-save.c (caller_save_initialized_p): Define.
15184         (init_caller_save): Check caller_save_initialized_p.
15185         * ira.c (ira): Call init_caller_save if flag_caller_saves.
15186
15187 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15188
15189         PR target/39048
15190         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15191         and soft-fp/t-softfp to tmake_file.
15192         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15193         (LIBGCC2_TF_CEXT): Define.
15194         (TF_SIZE): Define.
15195
15196 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
15197
15198         PR debug/42977
15199         * cselib.c (n_useless_values): Document handling of debug locs.
15200         (n_useless_debug_values, n_debug_values): New variables.
15201         (new_elt_loc_list): Don't add to debug values, keep count.
15202         (promote_debug_loc): New.
15203         (cselib_reset_table): Zero new variables.
15204         (entry_and_rtx_equal_p): Promote debug locs.
15205         (discard_useless_locs): Increment n_useless_debug_values for
15206         debug values.
15207         (remove_useless_values): Adjust n_useless_values and n_debug_values
15208         with n_useless_debug_values.
15209         (add_mem_for_addr): Promote debug locs.
15210         (cselib_lookup_mem): Likewise.
15211         (cselib_lookup_addr): Renamed to...
15212         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
15213         (cselib_log_lookup): ... this.  Turn into...
15214         (cselib_lookup_addr): ... new wrapper.
15215         (cselib_lookup_from_insn): New.
15216         (cselib_invalidate_regno): Increment n_useless_debug_values for
15217         debug values.
15218         (cselib_invalidate_mem): Likewise.
15219         (cselib_process_insn): Take n_deleted and n_debug_values into
15220         account to guard remove_useless_value call.
15221         (cselib_finish): Zero n_useless_debug_values.
15222         * cselib.h (cselib_lookup_from_insn): Declare.
15223         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15224         (sched_analyze_2): Likewise.
15225
15226 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
15227
15228         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15229         functions.
15230         (adjust_mems): Replace narrowing SUBREG of expression containing
15231         just PLUS, MINUS, MULT and ASHIFT of registers and constants
15232         with operations in the narrower mode.
15233
15234         PR debug/43593
15235         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15236         regs_invalidated_by_call instead all call_used_reg_set registers.
15237
15238 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
15239
15240         PR middle-end/43430
15241         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15242         pointer comparisons with types_compatible_p.
15243         * tree-vect-stmts.c (vectorizable_call): Same.
15244         (vectorizable_condition): Same.
15245
15246 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15247
15248         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15249         stack check if the mask would be zero.
15250
15251 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
15252             Jack Howarth  <howarth@bromo.med.uc.edu>
15253
15254         * tree-profile.c (tree_init_ic_make_global_vars): Make static
15255         variables TLS.
15256
15257 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
15258
15259         PR other/25232
15260         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
15261         and __unordtf2.
15262         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15263         Include ___unordxf2 and ___unordtf2.
15264         * config/i386/libgcc-glibc.ver: Do not define inheritance from
15265         GCC_4.4.0 here.
15266
15267 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
15268
15269         * config/lm32/t-lm32: New file.
15270         * config.gcc: Use the above file when targetting lm32.
15271
15272 2010-03-28  Duncan Sands  <baldrick@free.fr>
15273
15274         * Makefile.in (PLUGIN_HEADERS): Add except.h.
15275
15276 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
15277
15278         PR middle-end/43431
15279         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15280         Improve vectorization cost model diagnostic.
15281
15282 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
15283
15284         PR middle-end/43436
15285         * tree-vect-data-refs.c (vect_analyze_data_refs): When
15286         compute_data_dependences_for_loop returns false, early exit
15287         and output an extra diagnostic for the failed data reference
15288         analysis.
15289
15290 2010-03-29  Richard Guenther  <rguenther@suse.de>
15291
15292         PR tree-optimization/43560
15293         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15294         (can_sm_ref_p): Treat stores to readonly locations as trapping.
15295
15296 2010-03-29  Jie Zhang  <jie@codesourcery.com>
15297
15298         PR 43564
15299         * toplev.c (process_options): Set optimization_default_node
15300         and optimization_current_node.
15301         * opts.c (decode_options): Don't set optimization_default_node
15302         and optimization_current_node.
15303
15304 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
15305
15306         * config/rtems.h: Abandon -qrtems_debug.
15307
15308 2010-03-28  Jan Hubicka  <jh@suse.cz>
15309
15310         PR tree-optimization/43505
15311         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15312         map should not be copied.
15313
15314 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15315
15316         PR middle-end/41674
15317         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15318         cdtors, set DECL_PRESERVE_P.
15319         * ipa.c (cgraph_externally_visible_p): Return true if declaration
15320         should be preseved.
15321
15322 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
15323
15324         PR tree-optimization/43528
15325         * stor-layout.c (place_field): Check that constant fits into
15326         unsigned HWI when skipping calculation of MS bitfield layout.
15327
15328 2010-03-27  Jan Hubicka  <jh@suse.cz>
15329
15330         PR middle-end/43391
15331         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15332         notice_global_symbol work.
15333
15334 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
15335
15336         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15337         instead of dwarf2out_decl.
15338         (struct var_loc_node): Remove section_label field.
15339         (dwarf2out_function_decl): New function.
15340         (dwarf2out_var_location): Don't set section_label field.
15341         (dwarf2out_begin_function): Don't empty decl_loc_table here.
15342
15343 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15344
15345         PR tree-optimization/43544
15346         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15347         First argument for builtin vectorized function hook is now a
15348         tree to be able to distinguish between machine specific and
15349         standard builtins.
15350         * targhooks.c (default_builtin_vectorized_function): Ditto.
15351         * targhooks.h (default_builtin_vectorized_function): Ditto.
15352         * target.h (struct gcc_target): Ditto.
15353         * tree-vect-stmts.c (vectorizable_function): Ditto.
15354         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
15355         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15356         Ditto.
15357
15358 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
15359
15360         PR c/43381
15361         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
15362         nested binding iff it is a FUNCTION_DECL.
15363         (store_parm_decls_newstyle): Pass nested=true to bind for
15364         FUNCTION_DECLs amongst parameters.
15365
15366 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
15367
15368         * var-tracking.c (vt_expand_loc_callback): Don't run
15369         cselib_expand_value_rtx_cb in dummy mode if
15370         cselib_dummy_expand_value_rtx_cb returned false.
15371
15372         * var-tracking.c (emit_note_insn_var_location): For one part
15373         notes with offset 0, don't add EXPR_LIST around the location.
15374         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
15375         add_location_or_const_value_attribute): Adjust for that change.
15376
15377         PR debug/43540
15378         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
15379         into first operand and location into second.
15380         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
15381         dw_cfi_oprnd_loc for DW_CFA_expression.
15382         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
15383         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
15384         assume first argument is regnum and second argument is location.
15385
15386 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
15387
15388         PR target/42113
15389         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
15390         of scratch register to DImode.  Split to DImode comparison operator.
15391         Use SImode subreg of scratch register in the multiplication.
15392         (*cmp_sadd_sidi): Ditto.
15393         (*cmp_ssub_si): Ditto.
15394         (*cmp_ssub_sidi): Ditto.
15395
15396 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
15397
15398         PR target/43524
15399         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
15400         Remove invalid assert and wrong comment.
15401
15402 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
15403
15404         PR debug/43516
15405         * flags.h (final_insns_dump_p): New extern.
15406         * final.c (final_insns_dump_p): New variable.
15407         (rest_of_clean_state): Set it before -fdump-final-insns=
15408         dumping, clear afterwards.
15409         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
15410         MEM_ALIAS_SET on MEMs.
15411
15412 2010-03-26  David S. Miller  <davem@davemloft.net>
15413
15414         * configure.ac: Fix sparc GOTDATA_OP bug check.
15415         * configure: Rebuild.
15416
15417 2010-03-26  Alan Modra  <amodra@gmail.com>
15418
15419         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15420
15421 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15422
15423         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15424         TLS_SECTION_ASM_FLAG.
15425
15426 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
15427
15428         PR bootstrap/43511
15429         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15430         Clear first_function_block_is_cold.
15431
15432         PR c/43385
15433         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15434         argument if the argument is truth_value_p.
15435
15436 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15437
15438         * config/rs6000/constraints.md: Update copyright year for my changes.
15439
15440         PR target/43484
15441         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15442         used in reg+reg addressing, swap registers.
15443
15444 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
15445
15446         PR debug/43293
15447         * target.h (struct gcc_target): Add code_end hook.
15448         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15449         if not yet defined.
15450         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15451         * toplev.c (compile_file): Call targetm.asm_out.code_end
15452         hook before unwind info/debug info output.
15453         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15454         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15455         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15456         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15457         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15458         * config/i386/i386.c (ix86_file_end): Renamed to...
15459         (ix86_code_end): ... this.  Make static.  Don't call
15460         file_end_indicate_exec_stack.  Emit unwind info using
15461         final_start_function/final_end_function.
15462         (darwin_x86_file_end): Remove.
15463         (TARGET_ASM_CODE_END): Define.
15464         * config/i386/i386.h (TARGET_ASM_FILE_END,
15465         NEED_INDICATE_EXEC_STACK): Don't define.
15466         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15467         (TARGET_ASM_FILE_END): Define to darwin_file_end.
15468         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15469         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15470
15471         PR target/43498
15472         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15473         at the beginning and final_end_function at the end.
15474         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15475
15476 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15477
15478         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15479         and Sun as TLS syntax.
15480         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15481         * configure: Regenerate.
15482         * config.in: Regenerate.
15483         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15484         (default_elf_asm_named_section): Use it.
15485         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
15486         (i386_output_dwarf_dtprel): Likewise.
15487         (output_addr_const_extra): Likewise.
15488         (output_pic_addr_const): Lowercase @GOTTPOFF.
15489         (output_addr_const_extra): Likewise.
15490         (output_pic_addr_const): Lowercase @GOTNTPOFF.
15491         (output_addr_const_extra): Likewise.
15492         (output_pic_addr_const): Lowercase @INDNTPOFF.
15493         (output_addr_const_extra): Likewise.
15494         (output_pic_addr_const): Lowercase @NTPOFF.
15495         (output_addr_const_extra): Likewise.
15496         (output_pic_addr_const): Lowercase @TPOFF.
15497         (output_addr_const_extra): Likewise.
15498         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
15499         (*tls_global_dynamic_64): Likewise.
15500         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
15501         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
15502
15503         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
15504         (ASM_OUTPUT_TLS_COMMON): Use it.
15505         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
15506
15507         PR target/38118
15508         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
15509         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15510         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
15511         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
15512         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15513         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
15514
15515 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15516
15517         * config/i386/i386.c (override_options): Don't accept
15518         -mtls-dialect=sun any longer.
15519         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
15520         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
15521         (*tls_local_dynamic_base_32_sun): Likewise.
15522         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15523
15524 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
15525
15526         PR debug/43508
15527         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15528         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
15529
15530         PR debug/43479
15531         * ira.c (adjust_cleared_regs): New function.
15532         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
15533
15534         PR debug/19192
15535         PR debug/43479
15536         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
15537         from gimple_block.
15538         * expr.c (expand_expr_real): Restore previous
15539         curr_insn_source_location and curr_insn_block after
15540         expand_expr_real_1 call.
15541         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
15542         instead of expand_expr_real_1.
15543
15544 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
15545
15546         PR rtl-optimization/43413
15547         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
15548         hard regs too.
15549
15550 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
15551
15552         PR target/43348
15553         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
15554         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
15555
15556 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15557
15558         * config/i386/i386.c (ix86_target_string): Add -mfma.
15559         Fix a typo in comment.
15560
15561 2010-03-22  Mike Stump  <mikestump@comcast.net>
15562
15563         PR target/23071
15564         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
15565         Don't overly align based upon packed packed fields.
15566
15567 2010-03-22  Jason Merrill  <jason@redhat.com>
15568
15569         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
15570         Use () rather than [], and move before the element type.
15571
15572 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15573
15574         * doc/configfiles.texi (Configuration Files): Removed
15575         fixinc/Makefile*, intl/Makefile.*.
15576         * doc/makefile.texi: Fixed markup. Abstract from version
15577         control system used.
15578         (Makefile): Removed obsolete gcc/java/parse.y example.
15579         * doc/sourcebuild.texi: Likewise.
15580         (Top Level): Added config, gnattools, libdecnumber, libgcc,
15581         libgomp, libssp.  Removed fastjar.
15582         (Miscellaneous Docs): Clarify location.
15583         Added COPYING3, COPYING3.LIB.
15584         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
15585
15586 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15587
15588         PR target/38085
15589         * config/i386/i386.c (x86_function_profiler)
15590         [!NO_PROFILE_COUNTERS]: Fix typo.
15591         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
15592         instead of callq.
15593
15594 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
15595             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15596
15597         * doc/sourcebuild.texi (Test Directives): Split into six
15598         subsections, with most of the current text in new subsections
15599         Directives, Selectors, and Final Actions.
15600         (Directives): Split list of test directives into multiple
15601         subsubsections.
15602         (Selectors): Describe use and syntax of selectors.
15603         (Effective-Target Keywords): Describe all existing keywords.
15604         (Add Options): Describe features for dg-add-options.
15605         (Require Support): Describe variants of dg-require-support.
15606         (Final Actions): Describe commands to use in dg-final.
15607
15608 2010-03-22  Michael Matz  <matz@suse.de>
15609
15610         PR middle-end/43475
15611         * recog.c (validate_replace_rtx_group): Replace also in
15612         REG_EQUAL and REG_EQUIV notes.
15613
15614 2010-03-22  Richard Guenther  <rguenther@suse.de>
15615
15616         PR tree-optimization/43390
15617         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
15618         sure vector extracts are type correct.
15619
15620 2010-03-22  Richard Guenther  <rguenther@suse.de>
15621
15622         PR middle-end/40106
15623         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
15624         x * sqrt (x) even when optimizing for size if the target
15625         has native support for sqrt.
15626
15627 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
15628
15629         * varasm.c (make_decl_rtl_for_debug): Also clear
15630         flag_mudflap for the duration of make_decl_rtl call.
15631
15632         PR debug/43443
15633         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
15634         locs from preserved VALUEs.
15635
15636 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15637
15638         PR middle-end/42718
15639         * pa.md (movmemsi): Set align to one if zero.
15640         (movmemdi): Likewise.
15641
15642 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
15643
15644         PR target/42321
15645         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
15646         with their corresponding prologue pushes.
15647
15648 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
15649
15650         PR target/43156
15651         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
15652         at the begining or end.
15653         (spu_expand_epilogue): Likewise.
15654
15655 2010-03-20  Richard Guenther  <rguenther@suse.de>
15656
15657         PR rtl-optimization/43438
15658         * combine.c (make_extraction): Properly zero-/sign-extend an
15659         extraction of the low part of a CONST_INT.  Also handle
15660         CONST_DOUBLE.
15661
15662 2010-03-19  Mike Stump  <mikestump@comcast.net>
15663
15664         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
15665         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
15666         (override_options): Use SUBTARGET32_DEFAULT_CPU.
15667
15668 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
15669
15670         PR c/43211
15671         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
15672         an error.
15673
15674 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
15675
15676         PR rtl-optimization/42258
15677         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
15678         use that may match DEF.
15679
15680         PR target/40697
15681         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
15682         the cost of loading the constant rather than assuming
15683         COSTS_N_INSNS (1).
15684         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
15685         outer code is AND, do the same tests as the andsi3 expander and
15686         return COSTS_N_INSNS (1) if and is cheap.
15687
15688         * optabs.c (avoid_expensive_constant): Fix formatting.
15689
15690 2010-03-19  Michael Matz  <matz@suse.de>
15691
15692         PR c++/43116
15693         * attribs.c (decl_attributes): When rebuilding a function pointer
15694         type use the same qualifiers as the original pointer type.
15695
15696 2010-03-19  Martin Jambor  <mjambor@suse.cz>
15697
15698         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
15699         and is_gimple_ip_invariant_address.
15700
15701 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15702
15703         Revert
15704         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15705
15706         * config/arm/arm.c (arm_override_options): Turn off
15707         flag_dwarf2_cfi_asm for AAPCS variants.
15708
15709 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15710
15711         PR target/43399
15712         * config/arm/arm.c (emit_multi_reg_push): Update comments.
15713         Use PRE_MODIFY instead of PRE_DEC.
15714         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
15715         (vfp_emit_fstmd): Likewise.
15716
15717 2010-03-19  Michael Matz  <matz@suse.de>
15718
15719         PR target/43305
15720         * builtins.c (expand_builtin_interclass_mathfn,
15721         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15722         if that fails.
15723
15724 2010-03-19  Richard Guenther  <rguenther@suse.de>
15725
15726         PR tree-optimization/43415
15727         * tree-ssa-pre.c (phi_translate): Split out worker to ...
15728         (phi_translate_1): ... this.
15729         (phi_translate): Move all caching here.  Cache all NARY
15730         and REFERENCE translations.
15731
15732 2010-03-19  David S. Miller  <davem@davemloft.net>
15733
15734         With help from Eric Botcazou.
15735         * config/sparc/sparc.c: Include dwarf2out.h.
15736         (emit_pic_helper): Delete.
15737         (pic_helper_symbol_name): Delete.
15738         (pic_helper_emitted_p): Delete.
15739         (pic_helper_needed): New.
15740         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15741         (get_pc_thunk_name): New.
15742         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
15743         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15744         Set pic_helper_needed to true.  Don't call emit_pic_helper.
15745         (sparc_expand_prologue): Update load_pic_register call.
15746         (sparc_output_mi_thunk): Likewise.
15747         (sparc_file_end): Emit a hidden comdat symbol for the PIC
15748         thunk if possible.  Output CFI information as needed.
15749
15750 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15751             Jack Howarth  <howarth@bromo.med.uc.edu>
15752
15753         PR target/36399
15754         * config/i386/i386.h: Fix ABI on darwin x86-32.
15755
15756 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
15757
15758         * tree.h: Declare make_decl_rtl_for_debug.
15759         * varasm.c (make_decl_rtl_for_debug): New.
15760         * dwarf2out.c (rtl_for_decl_location): Call it.
15761         * cfgexpand.c (expand_debug_expr): Call it.
15762
15763 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
15764
15765         PR bootstrap/43399
15766         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
15767         mem_mode.
15768
15769         PR bootstrap/43403
15770         * var-tracking.c (vt_init_cfa_base): Do nothing if
15771         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
15772
15773 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
15774
15775         PR debug/42873
15776         * var-tracking.c (canonicalize_vars_star): New.
15777         (dataflow_post_merge_adjust): Use it.
15778
15779 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
15780
15781         PR debug/43058
15782         * var-tracking.c (non_suitable_const): New function.
15783         (add_uses): For DEBUG_INSNs with constants, don't record any
15784         value, instead just the constant value itself.
15785         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
15786         is not VAR_LOC_UNKNOWN_P, set var to the constant.
15787         (emit_notes_in_bb): Likewise.
15788         (emit_note_insn_var_location): For onepart variables if
15789         cur_loc is a VOIDmode constant, use DECL_MODE.
15790
15791 2010-03-18  Martin Jambor  <mjambor@suse.cz>
15792
15793         PR middle-end/42450
15794         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
15795         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
15796         all non-clones.  Moved call redirection...
15797         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
15798         (cgraph_materialize_all_clones): Dispose of all
15799         combined_args_to_skip bitmaps.
15800         (verify_cgraph_node): Do not check for edges pointing to wrong
15801         nodes in inline clones.
15802         * tree-inline.c (copy_bb): Call
15803         cgraph_redirect_edge_call_stmt_to_callee.
15804         * ipa.c (cgraph_remove_unreachable_nodes): Call
15805         cgraph_node_remove_callees even when there are used clones.
15806
15807 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
15808
15809         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
15810
15811 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
15812
15813         PR target/43383
15814         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
15815         for 32bit.
15816
15817 2010-03-18  Michael Matz  <matz@suse.de>
15818
15819         PR middle-end/43419
15820         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15821         into sqrt(x) if we need to preserve signed zeros.
15822
15823 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
15824             Eric Botcazou  <ebotcazou@adacore.com>
15825
15826         PR rtl-optimization/43360
15827         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15828         note if we don't know its invariant status.
15829
15830 2010-03-18  Michael Matz  <matz@suse.de>
15831
15832         PR tree-optimization/43402
15833         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15834         PHI chains of ssa names registered for update.
15835
15836 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
15837
15838         PR target/42427
15839         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15840         non-offsettable and pre_modify update addressing.
15841         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15842         and "2" alternatives "#".
15843         (*movdd_softfloat32): Make all alternatives "#";
15844         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15845         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15846         (*movdf_softfloat32): Make all alternatives "#";
15847         (movdi): Use the new DIFD mode iterator to create a common splitter
15848         for movdi, movdf and movdd patterns.
15849
15850 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
15851
15852         * common.opt (dumpdir): Remove redundant tab.
15853
15854 2010-03-17  Martin Jambor  <mjambor@suse.cz>
15855
15856         PR tree-optimization/43347
15857         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15858         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15859
15860 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
15861
15862         PR rtl-optimization/42216
15863         * regrename.c (create_new_chain): New function, broken out from...
15864         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
15865         appending a use to an empty chain.
15866         (build_def_use): Remove previous changes that convert OP_INOUT to
15867         OP_OUT operands; instead detect the case where an OP_INOUT operand
15868         uses a previously untracked register and create an empty chain for it.
15869
15870 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15871
15872         * doc/extend.texi (Function Attributes): Rewrite unfinished
15873         sentence in ms_abi documentation.
15874
15875 2010-03-17  Alan Modra  <amodra@gmail.com>
15876
15877         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15878         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15879         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15880         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15881
15882 2010-03-16  Richard Henderson  <rth@redhat.com>
15883
15884         PR middle-end/43365
15885         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15886         (lower_try_finally): Save and restore eh_seq around the expansion
15887         of the try-finally.
15888
15889 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
15890
15891         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15892         statements before splitting block.
15893
15894 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15895
15896         * doc/sourcebuild.texi (Testsuites): Fix markup.
15897         Use pathnames relative to gcc/testsuite.
15898         (Test Directives): Move description of how timeout is determined.
15899         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15900         (C Tests): Correct gcc.misc-tests directory.
15901         Framework tests now live in gcc.test-framework.
15902
15903 2010-03-16  Richard Guenther  <rguenther@suse.de>
15904
15905         PR middle-end/43379
15906         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15907         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15908
15909 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
15910             Alexandre Oliva  <aoliva@redhat.com>
15911
15912         PR tree-optimization/42917
15913         * lambda-code.c (remove_iv): Skip debug statements.
15914         (lambda_loopnest_to_gcc_loopnest): Likewise.
15915         (not_interesting_stmt): Debug statements are not interesting.
15916
15917 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
15918
15919         PR debug/43051
15920         PR debug/43092
15921         * cselib.c (cselib_preserve_constants,
15922         cfa_base_preserved_val): New static variables.
15923         (preserve_only_constants): New function.
15924         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15925         clear its REG_VALUES.  If cselib_preserve_constants, don't
15926         empty the whole hash table, but preserve there VALUEs with constants,
15927         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15928         (cselib_preserve_cfa_base_value): New function.
15929         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15930         (cselib_init): Change argument to int bitfield.  Set
15931         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15932         is in it.
15933         (cselib_finish): Clear cselib_preserve_constants and
15934         cfa_base_preserved_val.
15935         * cselib.h (enum cselib_record_what): New enum.
15936         (cselib_init): Change argument to int.
15937         (cselib_preserve_cfa_base_value): New prototype.
15938         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15939         * dse.c (dse_step1): Likewise.
15940         * cfgcleanup.c (thread_jump): Likewise.
15941         * sched-deps.c (sched_analyze): Likewise.
15942         * gcse.c (local_cprop_pass): Likewise.
15943         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15944         If FN is non-NULL, call the callback always and whenever it returns
15945         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
15946         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15947         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15948         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15949         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15950         * var-tracking.c: Include recog.h.
15951         (bb_stack_adjust_offset): Remove.
15952         (vt_stack_adjustments): Don't call it, instead just gather the
15953         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15954         (adjust_stack_reference): Remove.
15955         (compute_cfa_pointer): New function.
15956         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15957         (struct adjust_mem_data): New type.
15958         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15959         functions.
15960         (get_address_mode): New function.
15961         (replace_expr_with_values): Use it.
15962         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15963         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
15964         (adjust_sets): Remove.
15965         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15966         Use get_address_mode.
15967         (get_adjusted_src): Remove.
15968         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
15969         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
15970         (add_with_sets): Don't call adjust_sets.
15971         (fp_setter, vt_init_cfa_base): New functions.
15972         (vt_initialize): Change return type to bool.  Move most of pool etc.
15973         initialization to the beginning of the function from end.  Pass
15974         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15975         If !frame_pointer_needed, call vt_stack_adjustment before mos
15976         vector is filled, call vt_init_cfa_base if argp/framep has been
15977         eliminated to sp.  If frame_pointer_needed and argp/framep has
15978         been eliminated to hard frame pointer, set
15979         hard_frame_pointer_adjustment and call vt_init_cfa_base after
15980         encountering fp setter in the prologue.  For MO_ADJUST, call
15981         log_op_type before pusing the op into mos vector, not afterwards.
15982         Call adjust_insn before cselib_process_insn/add_with_sets,
15983         call cancel_changes (0) afterwards.
15984         (variable_tracking_main_1): Adjust for vt_initialize calling
15985         vt_stack_adjustments and returning whether it succeeded or not.
15986
15987 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
15988
15989         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15990         debug statements.
15991
15992 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
15993
15994         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15995         has been set.
15996         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15997         drap_reg has not been set.
15998
15999 2010-03-15  Michael Matz  <matz@suse.de>
16000
16001         PR middle-end/43300
16002         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
16003         use it to expand block copies.
16004         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
16005         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
16006         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
16007
16008 2010-03-15  Richard Guenther  <rguenther@suse.de>
16009
16010         PR tree-optimization/43367
16011         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
16012         elimination check.
16013
16014 2010-03-15  Richard Guenther  <rguenther@suse.de>
16015
16016         PR tree-optimization/43317
16017         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
16018
16019 2010-03-15  Martin Jambor  <mjambor@suse.cz>
16020
16021         PR tree-optimization/43141
16022         * tree-sra.c (create_abstract_origin): New function.
16023         (modify_function): Call create_abstract_origin.
16024
16025 2010-03-15  Chris Demetriou  <cgd@google.com>
16026
16027         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
16028         wasn't copied.
16029
16030 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16031
16032         PR middle-end/43354
16033         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
16034         call insert_out_of_ssa_copy for default definitions.
16035
16036 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16037
16038         * graphite-clast-to-gimple.c (my_long_long): Defined.
16039         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
16040         * graphite-sese-to-poly.c (my_long_long): Defined.
16041         (scop_ivs_can_be_represented): Use it.
16042
16043 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16044
16045         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
16046         graphite-max-bbs-per-function, and loop-block-tile-size.
16047         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
16048         with "maximum".
16049         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
16050
16051 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16052
16053         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
16054         forward declaration.
16055         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
16056         (add_upper_bounds_from_estimated_nit): New.
16057         (build_loop_iteration_domains): Use it.
16058
16059 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16060
16061         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
16062
16063 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16064
16065         PR middle-end/43306
16066         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
16067         should be an INTEGER_CST.  Also handle CASE_CONVERT.
16068
16069 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16070
16071         * graphite.c (graphite_initialize): To bound the number of bbs per
16072         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
16073         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
16074         * doc/invoke.texi: Document it.
16075
16076 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16077
16078         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
16079         * graphite-sese-to-poly.h (build_poly_scop): Same.
16080
16081 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
16082
16083         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
16084         the number of parameters in the scop.  Use as an upper bound
16085         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
16086         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
16087         * doc/invoke.texi: Document it.
16088
16089 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
16090
16091         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
16092         * doc/c-tree.texi: Remove.
16093         * doc/generic.texi: Merge c-tree.texi here.
16094         * doc/gccint.texi (Trees): Remove menu entry.
16095         (c-tree.texi): Remove @include.
16096         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
16097         * doc/languages.texi (Reading RTL): Ditto.
16098
16099 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
16100
16101         PR target/42869
16102         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
16103
16104 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16105
16106         PR middle-end/42431
16107         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
16108         code added to work around reload clobbering CONST insns.
16109
16110 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
16111
16112         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
16113         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
16114         (cselib_preserve_only_values): Remove retain argument, don't
16115         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
16116         * cselib.h (cselib_preserve_only_values): Remove retain argument.
16117         * var-tracking.c (micro_operation): Move insn field before union.
16118         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
16119         (struct variable_tracking_info_def): Remove n_mos field, change
16120         mos into a vector of micro_operations.
16121         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
16122         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
16123         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
16124         changing into a vector.
16125         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
16126         come before all other uops generated by add_stores.
16127         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
16128         argument removal.
16129         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
16130         a vector.  Run just one pass over the bbs instead of separate counting
16131         and computation phase.
16132         (vt_finalize): Free VTI (bb)->mos vector instead of array.
16133
16134         PR debug/43329
16135         * tree-inline.c (remap_decls): Put old_var rather than origin_var
16136         into *nonlocalized_list vector.
16137         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16138         even if origin is non-NULL.
16139         (gen_variable_die): Likewise.
16140         (process_scope_var): Don't change origin.
16141         (gen_decl_die): Likewise.
16142         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16143         before adding new edges instead of after it, fix moving over
16144         debug stmts.
16145
16146 2010-03-11  David S. Miller  <davem@davemloft.net>
16147
16148         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16149         of four.
16150         * configure: Rebuild.
16151
16152 2010-03-11  Martin Jambor  <mjambor@suse.cz>
16153
16154         PR tree-optimization/43257
16155         * tree.c (assign_assembler_name_if_neeeded): New function.
16156         (free_lang_data_in_cgraph): Assembler name assignment moved to the
16157         above new function.
16158         * tree.h (assign_assembler_name_if_neeeded): Declare.
16159         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16160         the function if needed.
16161
16162 2010-03-11  Chris Demetriou  <cgd@google.com>
16163
16164         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16165         include/stdint-gcc.h, and include/stdint.h world-readable.
16166
16167 2010-03-11  Richard Guenther  <rguenther@suse.de>
16168
16169         PR tree-optimization/43255
16170         * tree-vrp.c (process_assert_insertions_for): Do not insert
16171         asserts for trivial conditions.
16172
16173 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16174
16175         PR tree-optimization/43280
16176         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16177         generation.  Move calculation of size out of the if branch.
16178         (find_bswap): Modify compare number generation.
16179
16180 2010-03-11  Richard Guenther  <rguenther@suse.de>
16181
16182         PR lto/43200
16183         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16184         (input_gimple_stmt): Fixup handled component types during
16185         operand read.  Also fix up decls in ADDR_EXPRs.
16186
16187 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
16188
16189         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16190         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16191
16192 2010-03-10  Jan Hubicka  <jh@suse.cz>
16193
16194         PR c/43288
16195         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16196         * varasm.c (get_variable_section): Don't do that here...
16197         (make_decl_rtl): ... and here.
16198         (do_assemble_alias): Produce decl RTL.
16199         (assemble_alias): Likewise.
16200
16201 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
16202
16203         PR debug/43290
16204         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16205         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16206         of fde->vdrap_reg.
16207         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16208         (based_loc_descr): Only express drap or vdrap regno based expressions
16209         using DW_OP_fbreg when not optimizing.
16210         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16211         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16212         REG_CFA_SET_VDRAP note.
16213
16214 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
16215
16216         PR tree-optimization/43236
16217         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16218         error in calculation of base address in reverse iteration case.
16219         (generate_builtin): Take number of latch executions if the statement
16220         is in the latch.
16221
16222 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
16223
16224         PR middle-end/42859
16225         * tree-eh.c: Include pointer-set.h.
16226         (lower_eh_dispatch): Filter out duplicate case labels and
16227         remove the unneeded edge when the label is unused.  Return
16228         true when some edges are removed.
16229         (execute_lower_eh_dispatch): When any lowering resulted in
16230         removing an edge, also delete unreachable blocks.
16231
16232 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
16233
16234         PR bootstrap/43287
16235         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16236         UNSPEC_MACHOPIC_OFFSET.
16237
16238 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
16239
16240         PR target/43294
16241         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16242         (m68k_delegitimize_address): New function.
16243
16244 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
16245
16246         PR debug/43299
16247         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16248
16249         PR debug/43299
16250         * var-tracking.c (adjust_sets): New function.
16251         (count_with_sets, add_with_sets): Use it.
16252         (get_adjusted_src): New inline function.
16253         (add_stores): Use it.
16254
16255         PR debug/43304
16256         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16257         call cselib_dummy_expand_value_rtx_cb instead of
16258         cselib_expand_value_rtx_cb.
16259
16260         PR debug/43293
16261         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16262         * config/i386/i386.c: Include debug.h and dwarf2out.h.
16263         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16264         and .cfi_endproc around the pic thunks.
16265         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16266         all queued unwind info register saves are saved before the call.
16267         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16268         considered as sp-=4 for unwind info and the pop as sp+=4 which
16269         also clobbers dest, but doesn't actually restore it.
16270
16271         PR debug/43290
16272         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16273         RTX_FRAME_RELATED_P.
16274
16275 2010-03-09  Jie Zhang  <jie@codesourcery.com>
16276
16277         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16278         whitespaces in output template.
16279
16280 2010-03-09  Jie Zhang  <jie@codesourcery.com>
16281
16282         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16283         out array boundary.
16284
16285 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
16286
16287         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16288         builtins.exp in a separate job.
16289
16290 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16291
16292         * graphite-sese-to-poly.c (add_param_constraints): Use
16293         lower_bound_in_type and upper_bound_in_type.
16294
16295 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16296
16297         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16298         instead of unsigned_type_node.
16299
16300 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16301             Reza Yazdani  <reza.yazdani@amd.com>
16302
16303         PR middle-end/43065
16304         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16305         on pointer type parameters.
16306
16307 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
16308
16309         PR middle-end/42644
16310         PR middle-end/42130
16311         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16312         handle conversions from pointer to integers.
16313         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16314         induction variable, to be able to work with code generated by CLooG.
16315         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16316         (build_poly_scop): Bail out if we cannot codegen a loop.
16317
16318 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
16319
16320         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16321         code generation with gloog_error.
16322
16323 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16324
16325         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16326         Call fold_convert on all the returned values.
16327         (expand_scalar_variables_expr): Pass to
16328         expand_scalar_variables_ssa_name the type of the resulting expression.
16329
16330 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16331
16332         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16333         ppl_min_for_le_pointset.
16334         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16335         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16336
16337 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16338
16339         * graphite-dependences.c (map_into_dep_poly): Removed.
16340         (dependence_polyhedron_1): Use combine_context_id_scat.
16341
16342 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16343
16344         * graphite-poly.h (struct poly_scattering): Add layout documentation.
16345         (struct poly_bb): Same.
16346         (combine_context_id_scat): New.
16347
16348 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16349
16350         PR middle-end/42326
16351         * sese.c (name_defined_in_loop_p): Return false for default
16352         definitions.
16353
16354 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16355
16356         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
16357         and clean up the logic.
16358
16359 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16360
16361         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
16362         early return.
16363
16364 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
16365
16366         * var-tracking.c (remove_cselib_value_chains): Define only for
16367         ENABLE_CHECKING.
16368         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
16369         delete_slot_part, emit_notes_for_differences_1): Don't call
16370         remove_cselib_value_chains here.
16371         (set_slot_part, emit_notes_for_differences_2): Don't call
16372         add_cselib_value_chains here.
16373         (preserved_values): New vector.
16374         (preserve_value): New function.
16375         (add_uses, add_stores, vt_add_function_parameters): Use it
16376         instead of cselib_preserve_value.
16377         (changed_values_stack): New vector.
16378         (check_changed_vars_0): New function.
16379         (check_changed_vars_1, check_changed_vars_2): Use it.
16380         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
16381         changed_values_stack VALUEs.
16382         (vt_emit_notes): For all preserved_values call
16383         add_cselib_value_chains.  If ENABLE_CHECKING call
16384         remove_cselib_value_chains before verifying value_chains is empty.
16385         Initialize and free changed_values_stack.
16386         (vt_initialize): Initialize preserved_values.
16387         (vt_finalize): Free preserved_values.
16388
16389 2010-03-08  Richard Guenther  <rguenther@suse.de>
16390
16391         PR tree-optimization/43269
16392         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
16393         region detection.
16394
16395 2010-03-08  Martin Jambor  <mjambor@suse.cz>
16396
16397         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
16398         (ipa_is_param_called): Removed.
16399         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
16400         (ipa_print_node_params): Do not print the called flag.
16401         (ipa_write_node_info): Do not stream the called flag.
16402         (ipa_read_node_info): Likewise.
16403
16404 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
16405
16406         PR debug/43176
16407         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
16408         * cselib.c (struct expand_value_data): Add dummy field.
16409         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
16410         dummy to false.
16411         (cselib_dummy_expand_value_rtx_cb): New function.
16412         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
16413         any rtl.
16414         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
16415         * var-tracking.c: Include pointer-set.h.
16416         (variable): Change n_var_parts to char from int.  Add
16417         cur_loc_changed and in_changed_variables fields.
16418         (variable_canonicalize): Remove.
16419         (shared_var_p): New inline function.
16420         (unshare_variable): Maintain cur_loc_changed and
16421         in_changed_variables fields.  If var was in changed_variables,
16422         replace it there with new_var.  Just copy cur_loc instead of
16423         resetting it to something else.
16424         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
16425         (dataflow_set_union): Don't call variable_canonicalize.
16426         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16427         of their DEBUG_EXPR_TREE_DECLs.
16428         (canonicalize_loc_order_check): Verify that cur_loc is NULL
16429         and in_changed_variables and cur_loc_changed is false.
16430         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16431         and cur_loc_changed.  Don't update cur_loc here.
16432         (variable_merge_over_src): Don't call variable_canonicalize.
16433         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
16434         removing loc that is equal to cur_loc, clear cur_loc,
16435         set cur_loc_changed and ensure variable_was_changed is called.
16436         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
16437         compare pointers in cur_loc check, if it is equal to loc,
16438         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
16439         (variable_different_p): Remove compare_current_location argument,
16440         don't compare cur_loc.
16441         (dataflow_set_different_1): Adjust variable_different_p caller.
16442         (variable_was_changed): If dv had some var in changed_variables
16443         already, reset in_changed_variables flag for it and propagate
16444         cur_loc_changed over to the new variable.  On empty var
16445         always set cur_loc_changed.  Set in_changed_variables on whatever
16446         var is added to changed_variables.
16447         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16448         Use shared_var_p.  When removing loc that is equal to cur_loc,
16449         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
16450         end, don't set it to something else, just call variable_was_changed.
16451         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
16452         loc being removed, clear cur_loc and set cur_loc_changed.
16453         Set cur_loc_changed if all locations have been removed.
16454         (struct expand_loc_callback_data): New type.
16455         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16456         allocated.  Always create SUBREGs if simplify_subreg failed.
16457         Prefer to use cur_loc, when that fails and still in
16458         changed_variables (and seen first time) recompute it.  Set
16459         cur_loc_changed of variables which had to change cur_loc and
16460         compute elcd->cur_loc_changed if any of the subexpressions used
16461         had to change cur_loc.
16462         (vt_expand_loc): Adjust to pass arguments in
16463         expand_loc_callback_data structure.
16464         (vt_expand_loc_dummy): New function.
16465         (emitted_notes): New variable.
16466         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16467         that weren't used for any other decl in current
16468         emit_notes_for_changes call call vt_expand_loc_dummy to update
16469         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
16470         first loc_chain location if NULL before.  Always use just
16471         cur_loc instead of first loc_chain location.  When cur_loc_changed
16472         is false, when not --enable-checking=rtl just don't emit any note.
16473         When rtl checking, compute the note and assert it is the same
16474         as previous note.  Clear cur_loc_changed and in_changed_variables
16475         at the end before removing from changed_variables.
16476         (check_changed_vars_3): New function.
16477         (emit_notes_for_changes): Traverse changed_vars to call
16478         check_changed_vars_3 on each changed var.
16479         (emit_notes_for_differences_1): Clear cur_loc_changed and
16480         in_changed_variables.  Recompute cur_loc of new_var.
16481         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16482         (vt_emit_notes): Initialize and destroy emitted_notes.
16483
16484 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
16485
16486         PR rtl-optimization/42220
16487         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
16488         Use verify_reg_tracked to determine if we should use OP_OUT rather
16489         than OP_INOUT.
16490         (build_def_use): If we see an in-out operand for a register that we
16491         know nothing about, treat is an output if possible, fail the block if
16492         not.
16493
16494 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16495
16496         PR debug/42897
16497         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
16498         permanently.
16499
16500 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16501
16502         PR debug/42897
16503         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
16504         uses of relevant DEFs that are dead outside the loop too.
16505
16506 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16507
16508         * var-tracking.c (dataflow_set_merge): Swap src and src2.
16509         Reverted:
16510         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
16511         PR debug/41371
16512         * var-tracking.c (values_to_unmark): New variable.
16513         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16514         values_to_unmark vector.  Moved body to...
16515         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
16516         instead queue it into values_to_unmark vector.
16517         (vt_find_locations): Free values_to_unmark vector.
16518
16519 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
16520
16521         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
16522         (site.exp): Export them when plugins are enabled.
16523
16524 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
16525
16526         PR middle-end/42326
16527         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
16528         that contain scevs.
16529         (chrec_fold_multiply): Same.
16530
16531 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
16532
16533         PR c/43248
16534         * c-decl.c (build_compound_literal): Return early if init is
16535         an error_mark_node.
16536
16537 2010-03-04  Martin Jambor  <mjambor@suse.cz>
16538
16539         PR tree-optimization/43164
16540         PR tree-optimization/43191
16541         * tree-sra.c (type_consists_of_records_p): Reject records with
16542         zero-size bit-fields at the end.
16543
16544 2010-03-04  Mike Stump  <mikestump@comcast.net>
16545
16546         * Makefile.in (TAGS): Remove *.y.
16547
16548 2010-03-04  Richard Guenther  <rguenther@suse.de>
16549
16550         PR tree-optimization/40761
16551         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
16552         in reverse order.
16553         (my_rev_post_order_compute): New function.
16554         (init_pre): Call it.
16555
16556 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
16557
16558         PR middle-end/43209
16559         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
16560         decrease the cost of an IV candidate when the cost is infinite.
16561
16562 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16563
16564         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
16565         Use '3DNow!' for the extension of that name, ensure normal space
16566         after the string.
16567         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
16568
16569 2010-03-03  Jeff Law  <law@redhat.com>
16570
16571         * PR middle-end/32693
16572         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
16573         than gen_rtx_SUBREG.
16574         (extract_bit_field_1): Likewise.
16575
16576 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
16577
16578         * doc/sourcebuild.texi (Test directives): Document that arguments
16579         include-opts and exclude-opts are now optional for dg-skip-if,
16580         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
16581
16582 2010-03-03  Jason Merrill  <jason@redhat.com>
16583
16584         PR c++/12909
16585         * cgraph.h (varpool_node): Add extra_name field.
16586         * varpool.c (varpool_extra_name_alias): New.
16587         (varpool_assemble_decl): Emit extra name aliases.
16588         (varpool_mark_needed_node): Look past an extra name alias.
16589         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
16590         * lto-streamer-in.c (lto_input_tree): Read it.
16591         * lto-streamer-out.c (output_unreferenced_globals): Write it.
16592
16593 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
16594
16595         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
16596         (sparc*-*-solaris2*): ...this.
16597
16598 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
16599
16600         PR debug/43229
16601         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
16602         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
16603         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
16604         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
16605
16606         PR debug/43237
16607         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
16608         fallthrough to default handling, just with want_address 0 instead of 2.
16609         For single element lists, add_AT_loc directly, otherwise create an
16610         artificial variable DIE and stick location list to it.
16611
16612         PR debug/43177
16613         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
16614         (VAL_EXPR_HAS_REVERSE): Define.
16615         (reverse_op): New function.
16616         (add_stores): For reversible operations add an extra MO_VAL_USE.
16617
16618 2010-03-02  Jason Merrill  <jason@redhat.com>
16619
16620         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
16621
16622 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
16623
16624         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
16625         (sparc64-*-linux*): Likewise.
16626         (sparc64-*-solaris2*): Include assembler files before linker ones.
16627         (sparc-*-solaris2*): Simplify and reorder to match previous case.
16628         * config/sparc/gas.h: Delete.
16629         * config/sparc/sol2-64.h: Add copyright notice.
16630         * config/sparc/sol2-gas-bi.h: Likewise.
16631         * config/sparc/sol2-gld.h: Likewise.
16632         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
16633         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
16634         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
16635         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
16636         (sparc_elf_asm_named_section): Rename into...
16637         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
16638
16639 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
16640
16641         * config/alpha/alpha.c (override_options): Fix -mtune error message.
16642
16643 2010-03-02  Jeff Law  <law@redhat.com>
16644
16645         PR middle-end/42431
16646         * reload1.c (rtx_p, substitute_stack): Declare.
16647         (substitute): Record addresses of changed rtxs.
16648         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
16649         Restore the original rtx when complete.
16650         (reload): Free subsitute_stack when complete.
16651
16652 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
16653
16654         * doc/gccint.texi (menu): Add Testsuites as a chapter.
16655         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
16656         new chapter.
16657         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
16658         LTO Testing, gcov Testing, profopt Testing, compat Testing,
16659         Torture Tests): Change from subsection to section.
16660
16661 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
16662             Steven Bosscher  <steven@gcc.gnu.org>
16663
16664         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
16665         instead of bb.
16666
16667 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
16668
16669         PR middle-end/42640
16670         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
16671         the assignment from the new induction variable to the assignment
16672         of the value from the original loop PHI function.
16673
16674 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
16675             Daniel Jacobowitz  <dan@codesourcery.com>
16676
16677         * doc/sourcebuild.texi (Test directives): Clarify options to
16678         dg-skip-if.
16679
16680 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16681
16682         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
16683         Disable cfi directives unless GCC and gas agree on using read-only
16684         .eh_frame sections for 64-bit.
16685         * configure: Regenerate.
16686
16687 2010-03-01  Richard Guenther  <rguenther@suse.de>
16688
16689         PR tree-optimization/43220
16690         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
16691         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
16692
16693 2010-03-01  Richard Guenther  <rguenther@suse.de>
16694             Martin Jambor  <mjambor@suse.cz>
16695
16696         PR middle-end/41250
16697         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
16698         gimplified parameters.
16699
16700 2010-03-01  Christian Bruel  <christian.bruel@st.com>
16701
16702         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
16703
16704 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
16705
16706         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
16707
16708 2010-03-01  Richard Guenther  <rguenther@suse.de>
16709
16710         PR middle-end/43213
16711         * expr.c (expand_assignment): Use the alias-oracle to tell
16712         if the rhs aliases the result decl.
16713
16714 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16715
16716         PR pch/14940
16717         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16718         to sol_gt_pch_get_address.
16719         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16720         64-bit, SPARC and x86.
16721         (sol_gt_pch_get_address): New function.
16722
16723 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
16724
16725         * toplev.h (inform_n, error_n): Declare.
16726         * diagnostic.c (inform_n, error_n): New function.
16727
16728 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
16729
16730         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16731         has no rtl yet when processing local_decls, queue it and recheck
16732         if deferred stack allocation hasn't assigned it rtl.
16733
16734 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
16735
16736         * config/sh/sh.c (unspec_bbr_uid): New.
16737         (gen_block_redirect): Use it instead of INSN_UID.
16738         (gen_far_branch): Likewise.
16739
16740 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
16741
16742         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16743         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16744
16745 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16746
16747         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16748         (Warning Options): -Wno-conversion-null is valid for
16749         Objective-C++ as well.
16750         * doc/tm.texi (Named Address Spaces): Likewise.
16751         * doc/plugins.texi (Plugins): Replace TABs with spaces.
16752         * doc/tree-ssa.texi (Tree SSA): Likewise.
16753
16754 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16755
16756         PR bootstrap/43202
16757         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16758         by default.  Don't set the default arch for
16759         i[34567]86-*-darwin*|x86_64-*-darwin*.
16760
16761 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16762
16763         PR bootstrap/43202
16764         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
16765         default.  Set the default 32bit/64bit archs with $with_arch
16766         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
16767
16768 2010-02-27  Richard Guenther  <rguenther@suse.de>
16769
16770         PR tree-optimization/43186
16771         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
16772         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
16773         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
16774         unroller iterations.
16775
16776 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16777
16778         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
16779         required and i[34567]86-*-* targets don't support 64bit ISA.
16780
16781 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
16782
16783         PR ada/43096
16784         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16785         the same alias set.
16786
16787 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
16788
16789         * config.gcc: Set the default arch at least to Prescott for
16790         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
16791         if SSE math is enabled.
16792
16793 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16794
16795         * diagnostic.c (diagnostic_initialize): Update.
16796         (diagnostic_report_diagnostic): Test inhibit_notes_p for
16797         informative notes.
16798         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
16799         (diagnostic_inhibit_notes): New.
16800         * toplev.c (process_options): inhibit notes with -fcompare-debug.
16801
16802 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16803
16804         PR c/20631
16805         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
16806         * doc/standards.texi: Likewise.
16807         * doc/extend.texi: Likewise.
16808         * doc/trouble.texi: Likewise.
16809         * doc/cppopts.texi: Likewise.
16810         * doc/install.texi: Likewise.
16811         * c.opt (std=c90,std=gnu90): New options.
16812         * c-opts.c (c_common_handle_option): Handle them.
16813
16814 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16815
16816         PR c/24577
16817         * c-decl.c (undeclared_variable): Use an informative note.
16818
16819 2010-02-26  Richard Guenther  <rguenther@suse.de>
16820
16821         PR tree-optimization/43186
16822         * gimple.h (gimple_fold): Remove.
16823         * gimple.c (gimple_fold): Remove.  Inline into single user ...
16824         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16825         Try harder for conditions.
16826
16827 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
16828
16829         PR debug/43190
16830         * function.c (used_types_insert): Don't skip through named pointer
16831         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
16832         and it is different from the main variant's type.
16833
16834 2010-02-26  Nick Clifton  <nickc@redhat.com>
16835
16836         * config/rx/rx.md (sminsi3): Remove bogus alternative.
16837
16838 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
16839
16840         * config.gcc: Support --with-fpmath=sse for x86.
16841
16842         * config/i386/ssemath.h: New.
16843
16844         * doc/install.texi (--with-fpmath=sse): Documented.
16845
16846 2010-02-26  Richard Guenther  <rguenther@suse.de>
16847
16848         PR tree-optimization/43188
16849         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16850         vector types of over-aligned element type.
16851
16852 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
16853
16854         PR target/43175
16855         * config/i386/i386.c (expand_vec_perm_blend): Use correct
16856         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
16857
16858 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
16859
16860         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16861
16862 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
16863
16864         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16865         * var-tracking.c: Include diagnostic.h.
16866         (debug_dv): New function.
16867         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16868
16869         PR debug/43160
16870         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16871         (add_value_chain, add_value_chains, remove_value_chain,
16872         remove_value_chains): Handle DEBUG_EXPRs.
16873         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16874
16875         PR debug/43161
16876         * regcprop.c (struct queued_debug_insn_change): New type.
16877         (struct value_data_entry): Add debug_insn_changes field.
16878         (struct value_data): Add n_debug_insn_changes field.
16879         (debug_insn_changes_pool): New variable.
16880         (free_debug_insn_changes, apply_debug_insn_changes,
16881         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16882         (kill_value_one_regno): Call free_debug_insn_changes if needed.
16883         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16884         fields.
16885         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16886         changes for them.
16887         (copyprop_hardreg_forward_1): Don't call apply_change_group for
16888         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
16889         changes, call cprop_find_used_regs via note_stores.
16890         (copyprop_hardreg_forward): When copying vd from predecessor
16891         which has any queued DEBUG_INSN changes, make sure the pointers are
16892         cleared.  At the end call df_analyze and then if there are any
16893         DEBUG_INSN changes queued at the end of some basic block for still
16894         live registers, apply them.
16895         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16896
16897 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
16898
16899         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16900         (arm*-*-*): Ditto.
16901
16902 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
16903
16904         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16905         targets.  Set the default with_cpu/with_arch from arch/cpu.
16906         Allow x86-64 and native for with_cpu/with_arch.
16907
16908 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
16909
16910         * ebitmap.c: Change calls to verify_popcount with calls to
16911         sbitmap_verify_popcount.
16912         (ebitmap_clear_bit): Fixed map->cacheindex test and
16913         map>cache update when bit clearing results in an empty
16914         element.
16915
16916 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16917
16918         PR target/43154
16919         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16920         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16921         and support both V2DF and V2DI modes.
16922         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16923         support both V2DF and V2DI modes.
16924         (general): Delete trailing whitespace from a few patterns.
16925
16926         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16927         V2DF/V2DI interleave high/low builtins.
16928
16929         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16930         new VSX builtins.
16931
16932         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16933         interleave high/low functions.
16934
16935 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
16936
16937         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16938         #pragma extern_prefix.
16939
16940 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
16941
16942         PR debug/43166
16943         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16944         BLKmode, assert op0 is a MEM and just adjust its mode.
16945
16946         PR debug/43165
16947         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16948         if bitpos isn't multiple of mode's bitsize.
16949
16950 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16951
16952         * c.opt (-ftemplate-depth=): New.
16953         (-ftemplate-depth-): Deprecate.
16954         * optc-gen.awk: Handle -ftemplate-depth=.
16955         * opth-gen.awk: Likewise.
16956         * c-opts.c (c_common_handle_option): Likewise.
16957         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16958
16959 2010-02-24  Jason Merrill  <jason@redhat.com>
16960
16961         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16962
16963 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16964
16965         * cfg.c (alloc_aux_for_block): Remove inline.
16966         (alloc_aux_for_edge): Likewise.
16967
16968 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16969
16970         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16971
16972 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16973
16974         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16975         * config/i386/sol2-gas.h: New file.
16976         * config.gcc (i[34567]86-*-solaris2*): Use it.
16977
16978 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16979
16980         PR c/43128
16981         * c-typeck.c (ep_convert_and_check): New.
16982         (build_conditional_expr): Use it.
16983         (build_binary_op): Likewise.
16984
16985 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
16986
16987         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16988
16989         PR debug/43150
16990         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16991         bounds even for -O+.
16992         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16993         expr needs to have DECL_NAME set.
16994
16995 2010-02-24  Nick Clifton  <nickc@redhat.com>
16996
16997         * config/mep/mep.c: Include gimple.h.
16998         (mep_function_uses_sp): Delete unused function.
16999         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
17000         parameters.  Use unsigned integers to count args.  Return a
17001         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
17002
17003 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
17004
17005         PR target/43107
17006         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
17007         greater or equal to nelt instead of 2 * nelt.
17008         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
17009         with nelt - 1.
17010
17011 2010-02-23  Jason Merrill  <jason@redhat.com>
17012
17013         PR debug/42800
17014         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
17015         in cfun->local_decls even if they have register types.
17016
17017         PR c++/42837
17018         * stor-layout.c (place_field): Don't warn about unnecessary
17019         DECL_PACKED if the type is packed.
17020
17021 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
17022
17023         PR target/43139
17024         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
17025         GOTOFF relocs, even when the base reg isn't pic pointer.
17026
17027 2010-02-23  Michael Matz  <matz@suse.de>
17028
17029         PR debug/43077
17030         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
17031         (expand_gimple_basic_block): Generate and use debug temps if there
17032         are debug uses left after the last real use of TERed ssa names.
17033         Unlink debug immediate uses when they are expanded.
17034
17035 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17036
17037         PR 43123
17038         * config/i386/i386.c (override_options): Reorganise to provide
17039         better error messages.
17040
17041 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
17042
17043         PR middle-end/43083
17044         * graphite-scop-detection.c (create_single_exit_edge): Move
17045         the call to find_single_exit_edge to....
17046         (create_sese_edges): ...here.  Don't handle multiple edges
17047         exiting the function.
17048         (build_graphite_scops): Don't handle multiple edges
17049         exiting the function.
17050
17051 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
17052
17053         PR middle-end/43097
17054         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
17055         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
17056
17057 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
17058
17059         PR middle-end/43026
17060         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
17061
17062 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17063
17064         PR c++/43126
17065         * c-typeck.c (convert_arguments): Print declaration location.
17066         * c-common.c (validate_nargs): Rename as
17067         builtin_function_validate_nargs.
17068         (check_builtin_function_arguments): Update.
17069
17070 2010-02-22  Richard Guenther  <rguenther@suse.de>
17071
17072         PR lto/43045
17073         * tree-inline.c (declare_return_variable): Use the type of
17074         the call stmt lhs if available.
17075
17076 2010-02-22  Duncan Sands  <baldrick@free.fr>
17077
17078         * passes.c (register_pass): Always consider all pass lists when
17079         ref_pass_instance_number is zero.
17080
17081 2010-02-22  Richard Guenther  <rguenther@suse.de>
17082
17083         PR tree-optimization/42749
17084         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
17085         parameter.  Do arithmetic in the original type.
17086         (update_accumulator_with_ops): Likewise.
17087         (adjust_accumulator_values): Adjust.
17088
17089 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17090
17091         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
17092         (QI to BLKmode splitter): New splitter.
17093
17094 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
17095
17096         * config/i386/i386.c (initial_ix86_tune_features): Turn on
17097         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
17098
17099 2010-02-22  Richard Guenther  <rguenther@suse.de>
17100
17101         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
17102
17103 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
17104
17105         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
17106         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
17107         ($(T)crti.o, $(T)crtn.o): Remove rules.
17108
17109 2010-02-21  Tobias Burnus  <burnus@net-b.de>
17110
17111         PR fortran/35259
17112         * doc/invoke.texi (-fassociative-math): Document that this
17113         option is automatically enabled for Fortran.
17114
17115 2010-02-20  David S. Miller  <davem@davemloft.net>
17116
17117         * configure.ac: Test if linker and assembler properly support
17118         GOTDATA_OP relocations.
17119         * configure: Rebuild.
17120         * config.in: Likewise.
17121         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
17122         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
17123         (movsi_high_pic): Likewise.
17124         (movdi_lo_sum_pic): Likewise.
17125         (movdi_high_pic): Likewise.
17126         (movsi_pic_gotdata_op): New pattern.
17127         (movdi_pic_gotdata_op): Likewise.
17128         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
17129         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
17130
17131 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
17132
17133         PR target/43067
17134         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17135         attribute to ssemul.
17136         (xop_mulv2div2di3_high): Ditto.
17137
17138 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17139
17140         PR c++/35669
17141         * c.opt (Wconversion-null): New option.
17142         * doc/invoke.texi (Wconversion-null): Document.
17143
17144 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17145
17146         * common.opt (Wlarger-than-): Add Undocumented.
17147
17148 2010-02-19  Mike Stump  <mikestump@comcast.net>
17149
17150         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17151
17152 2010-02-19  Jason Merrill  <jason@redhat.com>
17153
17154         PR target/40332
17155         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17156         * configure: Likewise.
17157
17158 2010-02-20  Alan Modra  <amodra@gmail.com>
17159
17160         PR middle-end/42344
17161         * cgraph.h (cgraph_make_decl_local): Declare.
17162         * cgraph.c (cgraph_make_decl_local): New function.
17163         (cgraph_make_node_local): Use it.
17164         * cgraphunit.c (cgraph_function_versioning): Likewise.
17165         * ipa.c (function_and_variable_visibility): Likewise.
17166
17167 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17168
17169         PR bootstrap/43121
17170         * except.c (sjlj_emit_function_enter): Don't call
17171         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17172         directly.
17173         * rtl.h (add_reg_br_prob_note): Remove prototype.
17174
17175 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17176
17177         PR 41779
17178         * c-common.c (conversion_warning): Remove widening conversions
17179         before checking the conversion of integers to reals.
17180
17181 2010-02-19  Mike Stump  <mikestump@comcast.net>
17182
17183         PR middle-end/43125
17184         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17185
17186         PR objc/43061
17187         * cgraphunit.c (process_function_and_variable_attributes): Check
17188         DECL_PRESERVE_P instead of looking up attribute "used".
17189         * ipa-pure-const.c (check_decl): Likewise.
17190         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17191         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17192         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17193         instead of attribute "used".
17194         * config/sol2-c.c (solaris_pragma_init): Likewise.
17195         (solaris_pragma_fini): Likewise.
17196
17197 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17198
17199         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17200         Use XCNEW instead of xcalloc.
17201         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17202         XNEW instead of xmalloc.
17203         (get_fields): Use XNEWVEC instead of xmalloc.
17204
17205         PR debug/43084
17206         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17207         populate vars array.
17208         (create_new_general_access): For debug stmts just reset value.
17209         (get_stmt_accesses): For accesses within debug stmts just record them
17210         using add_access_to_acc_sites instead of preventing the peeling or
17211         counting them as accesses.
17212
17213         PR middle-end/42233
17214         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17215
17216 2010-02-19  Richard Guenther  <rguenther@suse.de>
17217
17218         PR tree-optimization/42916
17219         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17220         instructions.
17221
17222 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
17223
17224         * configure.ac: Replace all uses of changequote in macro arguments
17225         with proper quoting.
17226
17227 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17228
17229         PR middle-end/42233
17230         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17231
17232 2010-02-19  Richard Guenther  <rguenther@suse.de>
17233
17234         PR tree-optimization/42944
17235         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17236         test for aliasing with errno.
17237
17238 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17239
17240         PR middle-end/42233
17241         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17242         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17243         * dojump.c: Include output.h.
17244         (inv): New inline function.
17245         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17246         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17247         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17248         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17249         argument, pass it down to other calls.
17250         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
17251         add REG_BR_PROB note to the conditional jump.
17252         * cfgexpand.c (add_reg_br_prob_note): Removed.
17253         (expand_gimple_cond): Don't call it, add the probability
17254         as last argument to jumpif_1/jumpifnot_1.
17255         * Makefile.in (dojump.o): Depend on output.h.
17256         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17257         callers.
17258         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17259         * stmt.c (do_jump_if_equal): Likewise.
17260         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17261         * loop-unswitch.c (compare_and_jump_seq): Likewise.
17262         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17263         Likewise.
17264         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17265         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17266         jumpifnot_1 callers.
17267         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17268         callers.
17269         (store_expr): Adjust jumpifnot caller.
17270         (store_constructor): Adjust jumpif caller.
17271
17272         PR middle-end/42233
17273         * gimplify.c (gimple_boolify): For __builtin_expect call
17274         gimple_boolify also on its first argument.
17275
17276 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
17277
17278         * configure.ac (gnu-unique-object): Wrap regexps using [] in
17279         changequote block.
17280         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
17281         * configure: Regenerated.
17282
17283 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17284
17285         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17286         lang_hooks.types_compatible_p instead of comptypes.
17287
17288 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17289
17290         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17291         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17292         if __prefer_thumb__ is defined.
17293
17294 2010-02-18  Martin Jambor  <mjambor@suse.cz>
17295
17296         PR tree-optimization/43066
17297         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17298         array with zero-sized element type.
17299
17300 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
17301
17302         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17303         rtx, allocate struct var_loc_node here and return it to the
17304         caller, and only if it is actually needed.
17305         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17306         move it earlier and return immediately if it returns NULL.
17307
17308 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
17309
17310         * config/sparc/gas.h: New file.  Restore
17311         TARGET_ASM_NAMED_SECTION to its ELF default.
17312         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17313         check !HAVE_GNU_AS.
17314         * config/sparc/sparc.c (sparc_elf_asm_named_section):
17315         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
17316         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17317         after sparc/sysv4.h.
17318
17319 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
17320
17321         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17322
17323 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
17324
17325         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17326         patterns from predicated pattern.
17327
17328 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
17329
17330         PR target/43103
17331         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17332         for insn mnemonic suffix.
17333
17334 2010-02-17  Richard Guenther  <rguenther@suse.de>
17335
17336         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17337         to loop PHI nodes.
17338
17339 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
17340
17341         PR debug/42918
17342         * caller-save.c (save_call_clobbered_regs): If BB ends with
17343         a DEBUG_INSN, move any notes in between last real insn and the last
17344         DEBUG_INSN after the last DEBUG_INSN.
17345
17346 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
17347
17348         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17349         Fix return type.  Fix argument type.  Explain meaning of return value.
17350
17351 2010-02-16  Richard Guenther  <rguenther@suse.de>
17352
17353         PR tree-optimization/41043
17354         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
17355         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
17356         statements ...
17357         (vrp_visit_phi_node): ... but only for loop PHI nodes.
17358
17359 2010-02-16  Ira Rosen  <irar@il.ibm.com>
17360
17361         PR tree-optimization/43074
17362         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
17363         * tree-vect-loop.c (vect_analyze_loop_operations): Add
17364         vectorizable cycles in hybrid SLP check.
17365         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
17366
17367 2010-02-16  Richard Guenther  <rguenther@suse.de>
17368
17369         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
17370         (true_dependence): If memrefs_conflict_p computes must-alias
17371         trust it.  Move TBAA check after offset-based disambiguation.
17372         (canon_true_dependence): Likewise.
17373
17374 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
17375
17376         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
17377         * doc/invoke.texi: Document it.
17378         * var-tracking.c: Include toplev.h and params.h.
17379         (vt_find_locations): Return bool indicating success.  Compute
17380         hash sizes unconditionally.  Check new parameter, report.
17381         (variable_tracking_main_1): Check vt_find_locations results and
17382         retry.  Renamed from...
17383         (variable_tracking_main): ... this.  New wrapper to preserve
17384         flag_var_tracking_assignments.
17385         * Makefile.in (var-tracking.o): Adjust dependencies.
17386
17387 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
17388             Jakub Jelinek  <jakub@redhat.com>
17389
17390         PR target/42854
17391         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
17392         if weak_import attribute is present.
17393         * config/darwin.c (machopic_select_section): Likewise.
17394
17395 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
17396
17397         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
17398         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
17399         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
17400         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
17401
17402         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
17403         types.
17404
17405         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17406         Fix argument types.
17407
17408         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
17409         Rewrite text to refer to the names.
17410
17411 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
17412
17413         * config/i386/i386-builtin-types.def
17414         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
17415         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17416         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17417         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17418         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17419         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17420         IX86_BUILTIN_VPERMIL2PS256.
17421         (MULTI_ARG_4_DF2_DI_I): Defined.
17422         (MULTI_ARG_4_DF2_DI_I1): Defined.
17423         (MULTI_ARG_4_SF2_SI_I): Defined.
17424         (MULTI_ARG_4_SF2_SI_I1): Defined.
17425         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17426         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17427         __builtin_ia32_vpermil2ps256.
17428         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17429         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17430         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
17431         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17432         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17433         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
17434         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17435         CODE_FOR_xop_vpermil2v8sf3.
17436         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17437         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17438         * config/i386/xopintrin.h (_mm_permute2_pd): New.
17439         (_mm256_permute2_pd): New.
17440         (_mm_permute2_ps): New.
17441         (_mm256_permute2_ps): New.
17442
17443 2010-02-15  Nick Clifton  <nickc@redhat.com>
17444
17445         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17446         boolean parameters.  Use emit_jump_insn when emitting a pop
17447         instruction containing a return insn.
17448         (push): Use 'true' rather than '1' as second parameter to F.
17449         (h8300_expand_prologue): Likewise.
17450         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17451         (h8300_expand_epilogue): Likewise.
17452
17453 2010-02-15  Richard Guenther  <rguenther@suse.de>
17454
17455         PR middle-end/43068
17456         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17457         if that is zero.
17458
17459 2010-02-15  Nick Clifton  <nickc@redhat.com>
17460
17461         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17462         delta.
17463
17464 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
17465
17466         * intl.c (fake_ngettext): New function.
17467         * intl.h (fake_ngettext): Declare.
17468         (ngettext): Define macro.
17469         * collect2.c (notice_translated): New function.
17470         (main): Use notice_translated and ngettext.
17471         * collect2.h (notice_translated): Declare.
17472
17473 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
17474
17475         * reorg.c (delete_computation): Comment fixes.
17476         * caller-save.c (setup_save_areas): Idem.
17477         * sel-sched-dump.c (dump_lv_set): Idem.
17478         * rtl.def: Idem.
17479
17480 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17481
17482         * config/s390/s390.c (s390_sched_init): New function.
17483         (TARGET_SCHED_INIT): Target hook defined.
17484
17485 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
17486             Jack Howarth  <howarth@bromo.med.uc.edu>
17487             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17488
17489         PR target/42982
17490         Partial revert of unintended change in fix for PR41605.
17491         * config/darwin.h: Fix typo.
17492         * config/darwin9.h: Same.
17493
17494 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
17495
17496         * c-pch.c (pch_init): Clear v.
17497
17498 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17499
17500         PR middle-end/42930
17501         * graphite-scop-detection.c (graphite_can_represent_scev): Call
17502         graphite_can_represent_init for MULT_EXPR.
17503
17504 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17505
17506         PR middle-end/42914
17507         PR middle-end/42530
17508         * graphite-sese-to-poly.c (remove_phi): New.
17509         (translate_scalar_reduction_to_array): Call remove_phi.
17510
17511 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17512
17513         PR middle-end/42771
17514         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
17515         * graphite-clast-to-gimple.h (gloog): Update declaration.
17516         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
17517         * graphite-poly.h (struct poly_bb): Add missing comments.
17518         (struct scop): Add poly_scop_p field.
17519         (POLY_SCOP_P): New.
17520         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
17521         * graphite.c (graphite_transform_loops): Build the polyhedral
17522         representation for each scop before code generation.
17523         * sese.c (rename_variables_in_operand): Removed.
17524         (rename_variables_in_expr): Return the renamed expression.
17525         (rename_sese_parameters): New.
17526         * sese.h (rename_sese_parameters): Declared.
17527
17528 2010-02-11  Richard Guenther  <rguenther@suse.de>
17529
17530         PR tree-optimization/42998
17531         * tree-ssa-pre.c (create_expression_by_pieces): Treat
17532         POINTER_PLUS_EXPR properly.
17533
17534 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17535             Changpeng Fang  <changpeng.fang@amd.com>
17536
17537         PR middle-end/40886
17538         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
17539         the cost of an IV candidate when the IV is used in a test against zero.
17540
17541         * gcc.dg/tree-ssa/ivopts-3.c: New.
17542
17543 2010-02-11  Richard Guenther  <rguenther@suse.de>
17544
17545         PR lto/41664
17546         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
17547         pointer-vs-decl case by swapping refs.  Handle some cases
17548         of pointer-vs-decl disambiguations more conservatively.
17549         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
17550         to false after expanding.
17551
17552 2010-02-11  Richard Guenther  <rguenther@suse.de>
17553
17554         PR driver/43021
17555         * gcc.c (process_command): Handle LTO file@offset case more
17556         appropriately.
17557
17558 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
17559
17560         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
17561         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
17562         of DEBUG_INSNs.
17563         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
17564
17565         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
17566         if MEM's mode size isn't DWARF2_ADDR_SIZE.
17567         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
17568         Optimize eq/ne comparisons when both arguments are known to be
17569         zero-extended.
17570         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
17571         Don't mask operands unnecessarily if they are known to be already
17572         zero-extended.
17573
17574 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
17575
17576         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
17577         instead of loop.
17578
17579 2010-02-10  Richard Guenther  <rguenther@suse.de>
17580
17581         PR tree-optimization/43017
17582         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
17583         for wrapping signed arithmetic.
17584
17585 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
17586
17587         PR debug/43010
17588         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
17589         if no debug info should be emitted for it.
17590
17591 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17592
17593         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
17594         note when flag_exceptions is set.
17595
17596 2010-02-10  Duncan Sands  <baldrick@free.fr>
17597
17598         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
17599
17600 2010-02-10  Richard Guenther  <rguenther@suse.de>
17601
17602         PR c/43007
17603         * tree.c (get_unwidened): Handle constants.
17604         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
17605
17606 2010-02-10  Martin Jambor  <mjambor@suse.cz>
17607
17608         PR lto/42985
17609         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
17610         check for variable argument counts independently.
17611
17612 2010-02-10  Christian Bruel  <christian.bruel@st.com>
17613
17614         PR target/42841
17615         * config/sh/sh.c (find_barrier): Increase length for non delayed
17616         conditional branches.
17617
17618 2010-02-10  Christian Bruel  <christian.bruel@st.com>
17619
17620         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
17621
17622 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
17623
17624         * builtins.c (set_builtin_user_assembler_name): Also handle
17625         ffs if int is smaller than word.
17626
17627 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
17628
17629         PR middle-end/42973
17630         * ira-conflicts.c (get_dup): Remove.
17631         (process_reg_shuffles): Add new parameter.  Use it as an
17632         additional guard for copy generation.
17633         (add_insn_allocno_copies): Rewrite.
17634
17635 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
17636
17637         * common.opt (fsched2-use-traces): Preserved for backward
17638         compatibility.
17639         * doc/invoke.texi: Remove the documentation about option
17640         -fsched2-use-traces.
17641         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
17642         flag_sched2_use_traces.
17643         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
17644         the backward compatibility flag section.
17645
17646 2010-02-09  Richard Guenther  <rguenther@suse.de>
17647
17648         PR tree-optimization/43008
17649         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
17650         make HEAP variables initialized from global memory if they
17651         are not known builtin functions.
17652         (find_func_aliases): Adjust.
17653
17654 2010-02-09  Richard Guenther  <rguenther@suse.de>
17655
17656         PR tree-optimization/43000
17657         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
17658         arithmetic manually.
17659
17660 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
17661
17662         PR tree-optimization/42931
17663         * tree-loop-linear.c (try_interchange_loops): Don't call
17664         double_int_mul if estimated_loop_iterations failed.
17665
17666 2010-02-08  Martin Jambor  <mjambor@suse.cz>
17667
17668         PR middle-end/42898
17669         * tree-sra.c (build_accesses_from_assign): Do not mark in
17670         should_scalarize_away_bitmap if stmt has volatile ops.
17671         (sra_modify_assign): Do not process assigns piecemeal if if stmt
17672         has volatile ops.
17673
17674 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
17675
17676         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
17677
17678 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
17679
17680         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
17681         before the pattern.
17682
17683 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
17684
17685         PR middle-end/42946
17686         * df-core.c (df_finish_pass): Change type of saved_flags to int.
17687
17688 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
17689
17690         PR middle-end/42988
17691         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
17692         to unknown_dependence.
17693         (graphite_legal_transform_dr): Handle the unknown_dependence.
17694         (graphite_carried_dependence_level_k): Same.
17695
17696 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
17697
17698         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
17699
17700 2010-02-07  Richard Guenther  <rguenther@suse.de>
17701
17702         PR middle-end/42991
17703         * expr.c (get_inner_reference): Always initialize *pbitsize.
17704
17705 2010-02-07  Richard Guenther  <rguenther@suse.de>
17706
17707         PR middle-end/42956
17708         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
17709         new ARRAY_REFs on variable size element or minimal index arrays.
17710         Complete.
17711         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
17712         gimple_fold_indirect_ref.
17713
17714 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
17715
17716         PR target/42957
17717         * arm.c (arm_override_options): Just return if the user has specified
17718         an invalid fpu name.
17719
17720 2010-02-03  Jason Merrill  <jason@redhat.com>
17721
17722         PR c++/42870
17723         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17724         i386_pe_maybe_record_exported_symbol.
17725
17726 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
17727
17728         PR target/42924
17729         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17730         (pa_delegitimize_address): New function.
17731
17732 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
17733
17734         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17735         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17736
17737 2010-02-05  Richard Guenther  <rguenther@suse.de>
17738
17739         PR lto/42762
17740         * lto-streamer-in.c (get_resolution): Deal with references
17741         to undefined functions.
17742
17743 2010-02-05  Richard Guenther  <rguenther@suse.de>
17744
17745         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17746         (fold_const_aggregate_ref): Likewise.
17747         (ccp_fold_stmt): Substitute loads.
17748         (maybe_fold_reference): Verify types before substituting.
17749         Unshare properly.
17750         (fold_gimple_assign): Unshare properly.
17751         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17752
17753 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
17754
17755         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17756         for rs6000_gen_cell_microcode.
17757
17758 2010-02-04  Richard Guenther  <rguenther@suse.de>
17759
17760         PR rtl-optimization/42952
17761         * dse.c (const_or_frame_p): Remove MEM handling.
17762
17763 2010-02-04  Nick Clifton  <nickc@redhat.com>
17764
17765         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17766         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17767         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
17768         (mn10300_asm_output_mi_thunk): New function.
17769         (mn10300_can_output_mu_thunk): New function.
17770         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
17771         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
17772         (FUNCTION_ARG): Delete incorrect comment.
17773
17774 2010-02-03  Jason Merrill  <jason@redhat.com>
17775
17776         PR c++/40138
17777         * fold-const.c (operand_equal_p): Handle erroneous types.
17778
17779 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17780
17781         * config/h8300/h8300.md (can_delay): Fix attibute condition.
17782
17783 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
17784
17785         PR rtl-optimization/42941
17786         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
17787         of xmalloc.
17788
17789 2010-02-03  Jason Merrill  <jason@redhat.com>
17790
17791         PR c++/35652
17792         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
17793
17794 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
17795
17796         PR debug/42896
17797         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
17798         (cselib_reset_table): Renamed from...
17799         (cselib_reset_table_with_next_value): ... this.
17800         (cselib_get_next_uid): Renamed from...
17801         (cselib_get_next_unknown_value): ... this.
17802         * cselib.c (next_uid): Renamed from...
17803         (next_unknown_value): ... this.
17804         (cselib_clear_table): Adjust.
17805         (cselib_reset_table): Adjust.  Renamed from...
17806         (cselib_reset_table_with_next_value): ... this.
17807         (cselib_get_next_uid): Adjust.  Renamed from...
17808         (cselib_get_next_unknown_value): ... this.
17809         (get_value_hash): Use hash.
17810         (cselib_hash_rtx): Likewise.
17811         (new_cselib_val): Adjust.  Set and dump uid.
17812         (cselib_lookup_mem): Pass next_uid as hash.
17813         (cselib_subst_to_values): Likewise.
17814         (cselib_log_lookup): Dump uid.
17815         (cselib_lookup): Pass next_uid as hash.  Adjust.
17816         (cselib_process_insn): Adjust.
17817         (cselib_init): Initialize next_uid.
17818         (cselib_finish): Adjust.
17819         (dump_cselib_table): Likewise.
17820         * dse.c (canon_address): Dump value uid.
17821         * print-rtl.c (print_rtx): Print value uid.
17822         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17823         (dvuid): New type.
17824         (dv_uid): New function, sort of renamed from...
17825         (dv_htab_hash): ... this, reimplemented in terms of it and...
17826         (dv_uid2hash): ... this.  New.
17827         (variable_htab_eq): Drop excess assertions.
17828         (tie_break_pointers): Removed.
17829         (canon_value_cmp): Compare uids.
17830         (variable_post_merge_New_vals): Print uids.
17831         (vt_add_function_parameters): Adjust.
17832         (vt_initialize): Reset table.  Adjust.
17833
17834 2010-02-03  Richard Guenther  <rguenther@suse.de>
17835
17836         PR tree-optimization/42944
17837         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17838         (call_may_clobber_ref_p_1): Likewise.  Properly handle
17839         malloc and calloc clobbering errno.
17840
17841 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
17842
17843         * doc/invoke.texi: Fix name of sched1 dump.
17844
17845         * opts.c (decode_options): Set flag_tree_switch_conversion
17846         only conditionally on optimize >= 2.
17847
17848         * gcse.c: Assorted comment fixes in pass description.
17849
17850 2010-02-03  Anthony Green  <green@moxielogic.com>
17851
17852         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17853         nop padding in order to maintain alignment of storage location of
17854         target function address.
17855         (moxie_trampoline_init): Store target function address at newly
17856         aligned location.
17857         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17858         to 32.
17859         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17860
17861 2010-02-03  Richard Guenther  <rguenther@suse.de>
17862
17863         PR middle-end/42927
17864         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17865
17866 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17867
17868         * config.gcc: Reenable check for obsolete targets.
17869         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17870         mips-sgi-irix6.[0-4]*.
17871
17872 2010-02-02  Nick Clifton  <nickc@redhat.com>
17873
17874         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17875         constant size of 4 as being the same as 0.
17876         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17877         can take values in the range 0..4.
17878
17879 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
17880
17881         PR java/41991
17882         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17883         as _darwin10_Unwind_FindEnclosingFunction().
17884         * libgcc-libsystem.ver: New.
17885
17886 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
17887
17888         PR target/41399
17889         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17890         implicitly set registers.
17891
17892 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
17893
17894         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17895         (arm_override_options): Allow automatic selection of the thread
17896         pointer register if thumb2.
17897         (legitimize_pic_address): Improve code sequences for Thumb2.
17898         (arm_call_tls_get_addr): Likewise.
17899         (legitimize_tls_address): Likewise.
17900         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
17901         (pic_load_addr_32bit): ... this.  New named pattern.
17902         * thumb2.md (pic_load_addr_thumb2): Delete.
17903         (pic_load_dot_plus_four): Delete.
17904         (tls_load_dot_plus_four): New named pattern.
17905
17906 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17907
17908         PR libgomp/29986
17909         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17910         Document fix for TLS bug.
17911
17912 2010-01-31  Richard Guenther  <rguenther@suse.de>
17913
17914         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17915         conservatively correct.
17916
17917 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17918
17919         PR target/42850
17920         Revert:
17921         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17922
17923         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17924
17925 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17926
17927         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17928
17929 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
17930
17931         * config.gcc: Adjust order of makefile fragments for mingw targets.
17932
17933 2010-01-31  Richard Guenther  <rguenther@suse.de>
17934
17935         PR middle-end/42898
17936         * gimplify.c (gimplify_init_constructor): For volatile LHS
17937         initialize a temporary.
17938
17939 2010-01-31  Matthias Klose  <doko@ubuntu.com>
17940
17941         * configure.ac: Fix __stack_chk_fail check for cross builds configured
17942         --with-headers
17943         * configure: Regenerate.
17944
17945 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
17946
17947         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17948         the same alias set and their sizes different constantness.
17949         (aliasing_component_refs_p): Revert 2009-10-24 change.
17950
17951 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17952
17953         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17954         unused.
17955
17956 2010-01-29  Richard Guenther  <rguenther@suse.de>
17957
17958         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17959         Assert we successfully updated the call.
17960
17961 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
17962
17963         PR rtl-optimization/42889
17964         * df.h (df_set_bb_dirty_nonlr): New prototype.
17965         * df-core.c (df_set_bb_dirty_nonlr): New function.
17966         * df-scan.c (df_insn_rescan): Call it instead of
17967         df_set_bb_dirty for DEBUG_INSNs.
17968
17969 2010-01-29  Richard Guenther  <rguenther@suse.de>
17970
17971         PR middle-end/37448
17972         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17973         quadratic behavior in most cases.
17974
17975 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
17976
17977         PR target/42891
17978         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17979         in the call to gen_x86_movsicc_0_m1.
17980
17981 2010-01-28  Richard Guenther  <rguenther@suse.de>
17982
17983         PR tree-optimization/42871
17984         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17985
17986 2010-01-28  Richard Guenther  <rguenther@suse.de>
17987
17988         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17989         into call arguments.
17990
17991 2010-01-28  Richard Guenther  <rguenther@suse.de>
17992
17993         PR middle-end/42883
17994         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17995         the forwarder if the destination is an EH landing pad.
17996
17997 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
17998
17999         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
18000         block list passed to gimple_duplicate_sese_tail.
18001         (parallelize_loops): Avoid parallelization when the function
18002         has_nonlocal_label.
18003         Avoid parallelization when the preheader is IRREDUCIBLE.
18004         Try to optimize when estimated_loop_iterations_int is unresolved.
18005         Add the loop's location to the dump file.
18006         * tree-cfg.c (add_phi_args_after_redirect): Remove.
18007         (gimple_duplicate_sese_tail): Remove the check for the latch.
18008         Redirect nexits to the exit block.
18009         Remove handling of the incoming edges to the latch.
18010         Redirect the backedge from the copied latch to the exit bb.
18011
18012 2010-01-28  Michael Matz  <matz@suse.de>
18013
18014         PR target/42881
18015         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
18016         Wrap force_reg into a sequence, emit it before user.
18017
18018 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
18019
18020         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
18021         (arm_rev): New.
18022         (arm_legacy_rev): Likewise.
18023         (thumb_legacy_rev): Likewise.
18024
18025 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
18026
18027         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
18028         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
18029         on MEM's address failed, try avoid_constant_pool_reference and
18030         recurse if it returned something different.
18031         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
18032         address, try avoid_constant_pool_reference and recurse if it
18033         returned something different.
18034         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
18035         address and avoid_constant_pool_reference returned something
18036         different, don't set have_address.
18037
18038 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
18039
18040         PR debug/42861
18041         * var-tracking.c (val_store): Add modified argument, obey it.
18042         Adjust callers.
18043         (count_uses): Move down logging of main.
18044         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
18045         don't need resolution.
18046         (emit_notes_in_bb): Likewise.
18047
18048 2010-01-27  Richard Guenther  <rguenther@suse.de>
18049
18050         PR middle-end/42878
18051         * tree-inline.c (remap_decl): Delay remapping of SSA name
18052         default definitions until we need them.
18053
18054 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
18055
18056         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18057         (rs6000_delegitimize_address): New function.
18058
18059         * config/s390/s390.c (s390_delegitimize_address): Call
18060         delegitimize_mem_from_attrs.
18061
18062         PR middle-end/42874
18063         * tree-inline.c (cannot_copy_type_1): Removed.
18064         (copy_forbidden): Don't forbid copying of functions containing
18065         records/unions with variable length fields.
18066
18067 2010-01-27  Christian Bruel  <christian.bruel@st.com>
18068
18069         Revert:
18070         PR target/42841
18071         * config/sh/sh.c (find_barrier): Increase length for non delayed
18072         conditional branches.
18073
18074 2010-01-27  Matthias Klose  <doko@ubuntu.com>
18075
18076         * configure.ac (gnu-unique-object): Fix ldd version check.
18077         * configure: Regenerate.
18078
18079 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18080
18081         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
18082         HAVE_GNU_AS value.
18083         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
18084         Test for HAVE_GNU_AS value.
18085
18086 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18087
18088         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
18089         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
18090         INT64_TYPE): Define.
18091         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
18092         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18093         INT_LEAST64_TYPE): Define.
18094         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
18095         UINT_LEAST64_TYPE): Define.
18096         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
18097         INT_FAST64_TYPE): Define.
18098         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18099         UINT_FAST64_TYPE): Define.
18100         (INTMAX_TYPE, UINTMAX_TYPE): Define.
18101         (INTPTR_TYPE, UINTPTR_TYPE): Define.
18102         (SIG_ATOMIC_TYPE): Define.
18103
18104 2010-01-26  Richard Guenther  <rguenther@suse.de>
18105
18106         * df-scan.c (df_scan_set_bb_info): Remove assert.
18107         (df_insn_rescan_debug_internal): Merge asserts.
18108         (df_install_ref): Likewise.
18109         (df_mark_reg): Use bitmap_set_range.
18110         (df_hard_reg_used_p): Remove assert.
18111         (df_hard_reg_used_count): Likewise.
18112
18113 2010-01-26  Richard Guenther  <rguenther@suse.de>
18114
18115         PR rtl-optimization/42685
18116         * web.c (web_main): Ignore DEBUG_INSNs.
18117
18118 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
18119
18120         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
18121
18122         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
18123         Fix types of fndecl and arglist parameters.
18124
18125 2010-01-26  Richard Guenther  <rguenther@suse.de>
18126
18127         PR middle-end/42806
18128         * tree-eh.c (unsplit_eh): Skip debug insns.
18129
18130 2010-01-26  Richard Guenther  <rguenther@suse.de>
18131
18132         PR tree-optimization/42250
18133         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18134
18135 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
18136
18137         PR fortran/42866
18138         * omp-low.c (expand_omp_sections): Only use single_pred if
18139         l2_bb is single_pred_p.
18140
18141 2010-01-25  Christian Bruel  <christian.bruel@st.com>
18142
18143         PR target/42841
18144         * config/sh/sh.c (find_barrier): Increase length for non delayed
18145         conditional branches.
18146         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18147
18148 2010-01-24  David S. Miller  <davem@davemloft.net>
18149
18150         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18151         define if not using GAS.
18152         * config/sparc/sparc.c (sparc_elf_asm_named_section):
18153         Likewise.  Delete SECTION_MERGE code, which is only applicable
18154         when using GAS.
18155
18156 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
18157
18158         PR c++/42748
18159         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18160         mangling of va_list in system headers.
18161
18162 2010-01-23  Toon Moene  <toon@moene.org>
18163
18164         * tree-predcom.c (combine_chains): Return NULL, not false.
18165
18166 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
18167
18168         * tree-loop-distribution.c (distribute_loop): Fix declaration and
18169         initialization of variable res to agree with return type.
18170
18171 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
18172
18173         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18174         * tree-sra.c: Add include of expr.h.
18175
18176 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
18177
18178         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18179         insert the debug stmt on the single non-EH edge from the stmt.
18180
18181 2010-01-22  Richard Henderson  <rth@redhat.com>
18182
18183         PR tree-opt/42833
18184         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18185         the RHS until after generate_subtree_copies has insertted its
18186         code before the current statement.
18187
18188 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
18189
18190         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18191
18192         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18193
18194 2010-01-21  Martin Jambor  <mjambor@suse.cz>
18195
18196         PR tree-optimization/42585
18197         * tree-sra.c (struct access): New field grp_total_scalarization.
18198         (dump_access): Dump the new field.
18199         (should_scalarize_away_bitmap): New variable.
18200         (cannot_scalarize_away_bitmap): Likewise.
18201         (sra_initialize): Allocate new bitmaps.
18202         (sra_deinitialize): Free new bitmaps.
18203         (create_access_1): New function.
18204         (create_access): Parts moved to create_access_1.
18205         (type_consists_of_records_p): New function.
18206         (completely_scalarize_record): Likewise.
18207         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18208         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18209         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18210         access.
18211         (analyze_all_variable_accesses): Completely scalarize small eligible
18212         records.
18213
18214 2010-01-21  Martin Jambor  <mjambor@suse.cz>
18215
18216         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18217
18218 2010-01-21  Andrew Haley  <aph@redhat.com>
18219
18220         * gcc.c (process_command): Move lang_specific_driver before
18221         setting cc_libexec_prefix.
18222
18223 2010-01-21  Richard Guenther  <rguenther@suse.de>
18224
18225         PR middle-end/19988
18226         * fold-const.c (negate_expr_p): Pretend only negative
18227         real constants are easily negatable.
18228
18229 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
18230             Jason Merrill  <jason@redhat.com>
18231
18232         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18233         (TYPE_TRANSPARENT_AGGR): this, for union and record.
18234         * calls.c (initialize argument_information): Handle it.
18235         * c-common.c (handle_transparent_union_attribute): Use new name.
18236         * c-decl.c (finish_struct): Ditto.
18237         * c-typeck.c (type_lists_compatible_p): Ditto.
18238         (convert_for_assignment): Use new name and also handle record.
18239         * function.c (aggregate_value_p): Handle it.
18240         (pass_by_reference): Ditto.
18241         (assign_parm_data_types): Ditto.
18242         * print-tree.c (print_node): Ditto.
18243         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18244         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18245         * tree.c (first_field): New fn.
18246
18247 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
18248
18249         PR target/42818
18250         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18251         even when linking statically, for now.
18252
18253 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
18254
18255         PR debug/42715
18256         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18257         without a cselib val.
18258         (count_uses): Accept MO_VAL_SET with no val on stores.
18259         (add_stores): Likewise.
18260
18261 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18262
18263         * var-tracking.c (check_value_val): Add a compile time assertion.
18264         (dv_is_decl_p): Simplify.
18265         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18266         gcc_assert if ENABLE_CHECKING.
18267
18268 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
18269
18270         PR debug/42782
18271         * var-tracking.c: Include tree-flow.h.
18272         (mem_dies_at_call): New.
18273         (dataflow_set_preserve_mem_locs): Use it.
18274         (dataflow_set_remove_mem_locs): Likewise.
18275         (dump_var): Renamed from dump_variable.  Adjust all callers.
18276         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
18277         * Makefile.in (var-tracking.o): Adjust deps.
18278
18279 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
18280
18281         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18282
18283 2010-01-20  Richard Guenther  <rguenther@suse.de>
18284
18285         PR tree-optimization/42717
18286         * tree-ssa-dce.c (get_live_post_dom): Remove.
18287         (forward_edge_to_pdom): Take an arbitrary edge to copy
18288         degenerate PHI args from.
18289         (remove_dead_stmt): Use the first post-dominator even if it
18290         does not contain live statements as redirection destination.
18291
18292 2010-01-20  Richard Guenther  <rguenther@suse.de>
18293
18294         * tree-inline.c (estimate_num_insns): Handle EH builtins.
18295
18296 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18297
18298         * sel-sched.c (create_speculation_check): Remove set but not used
18299         variable twin.
18300         (try_transformation_cache): Remove set but not used variable ds.
18301         (calculate_privileged_insns): Remove set but not used variables
18302         cur_insn and min_spec_insn.
18303         (find_best_expr): Remove set but not used variable avail_n.
18304         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18305         variable e.
18306         * cgraphunit.c (assemble_thunk): Remove set but not used variable
18307         false_label.
18308         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18309         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18310         new_scop_exit_edge.
18311
18312 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
18313
18314         PR bootstrap/42786
18315         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18316         cpu types.  Add support for *-sse3 cpu types.
18317         (x86_64-*-*): Ditto.
18318
18319 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18320
18321         PR middle-end/42803
18322         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18323         argument, call initializer_constant_valid_p_1 instead of
18324         initializer_constant_valid_p, pass CACHE to it, return NULL
18325         immediately if first call returns NULL.
18326         (initializer_constant_valid_p_1): New function.
18327         (initializer_constant_valid_p): Use it.
18328
18329 2010-01-20  Thomas Quinot  <quinot@adacore.com>
18330
18331         * tree.def (PLACEHOLDER_EXPR): Fix comment.
18332
18333 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18334
18335         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18336         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18337         (loc_list_from_tree): Don't handle unsigned division.  Handle
18338         signed modulo using DW_OP_{over,over,div,mul,minus}.
18339         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18340         modulo instead of signed.
18341
18342 2010-01-20  DJ Delorie  <dj@redhat.com>
18343
18344         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18345         (Fpa): Pass it
18346         (h8300_emit_stack_adjustment): Propogate it.
18347         (push): Pass it.
18348         (h8300_expand_prologue): Likewise.
18349         (h8300_expand_epilogue): Likewise.
18350
18351 2010-01-19  Michael Matz  <matz@suse.de>
18352
18353         PR tree-optimization/41783
18354         * tree-data-ref.c (toplevel): Include flags.h.
18355         (dump_data_dependence_relation):  Also dump the inputs if the
18356         result will be unknown.
18357         (split_constant_offset_1): Look through some conversions.
18358         * tree-predcom.c (determine_roots_comp): Restart a new chain if
18359         the offset from last element is too large.
18360         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
18361         (reassociate_to_the_same_stmt): Handle vector registers.
18362         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
18363         (e.g. conversions).
18364         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
18365         wide_prolog_niters argument, emit widening instructions.
18366         (vect_do_peeling_for_alignment): Adjust caller, use widened
18367         variant of the iteration cound.
18368         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
18369
18370 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18371
18372         PR target/38697
18373         * config/arm/neon-testgen.m (emit_automatics): New parameter
18374         features. Adjust for Fixed_return_reg feature.
18375         (test_intrinsic): Call emit_automatics with new feature.
18376         * config/arm/neon.ml: Update copyright years.
18377         (features): New Fixed_return_reg feature.
18378         (ops): Update feature for Vget_low.
18379
18380 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
18381
18382         PR tree-optimization/42719
18383         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
18384         stmt uses.
18385
18386         PR debug/42728
18387         * fwprop.c (all_uses_available_at): Return false if def_set dest
18388         is a REG that is used in def_insn.
18389
18390 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
18391
18392         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
18393
18394         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
18395         Add argument names.
18396
18397         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
18398
18399         * target.h (struct gcc_target) <secondary_reload>: Change type
18400         of last argument to secondary_reload_info *.
18401
18402 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
18403
18404         PR target/42774
18405         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
18406         memory references with unaligned offsets.  Remove CQImode handling.
18407         (unaligned_memory_operand): Return 1 for memory references with
18408         unaligned offsets.  Remove CQImode handling.
18409
18410 2010-01-18  Richard Guenther  <rguenther@suse.de>
18411
18412         PR middle-end/39954
18413         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
18414         builtin calls.
18415
18416 2010-01-18  Richard Guenther  <rguenther@suse.de>
18417
18418         PR tree-optimization/42781
18419         * tree-ssa-structalias.c (find_what_var_points_to): Skip
18420         restrict processing only if the original variable was artificial.
18421
18422 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
18423
18424         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18425         find number of popped argument bytes.
18426
18427         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18428         Fix the text that describes the return value for invalid insns.
18429
18430         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
18431
18432         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18433         Clarify what 'cost of the -dependence' is.  Fix quoting.
18434
18435         * toplev.c (default_get_pch_validity): Rename argument to "sz".
18436         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18437
18438 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
18439
18440         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18441         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18442
18443 2010-01-17  Richard Guenther  <rguenther@suse.de>
18444
18445         PR middle-end/42248
18446         * function.c (split_complex_args): Take a VEC to modify.
18447         (assign_parms_augmented_arg_list): Build a VEC instead of
18448         a chain of PARM_DECLs.
18449         (assign_parms_unsplit_complex): Take a VEC of arguments.
18450         Do not fixup unmodified parms.
18451         (assign_parms): Deal with the VEC.
18452         (gimplify_parameters): Likewise.
18453
18454 2010-01-17  Richard Guenther  <rguenther@suse.de>
18455
18456         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18457         node existence check.
18458         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18459         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18460         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18461         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18462         (gimple_execute_on_growing_pred): Likewise.
18463
18464 2010-01-17  Richard Guenther  <rguenther@suse.de>
18465
18466         PR tree-optimization/42773
18467         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18468         (compute_antic_aux): Likewise.
18469         (compute_partial_antic_aux): Likewise.
18470
18471 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
18472
18473         PR debug/42767
18474         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18475         and US_TRUNCATE.
18476
18477 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
18478
18479         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18480         appearance.
18481
18482         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18483         Fix markup for strict argument.
18484
18485         (TARGET_SCHED_REORDER2): Fix argument types.
18486
18487         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
18488         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
18489
18490         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
18491         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
18492
18493         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18494         Add argument name.
18495
18496         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
18497         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
18498         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
18499         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
18500         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
18501
18502         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
18503
18504         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
18505
18506         (TARGET_ASM_RELOC_RW_MASK): Add return type.
18507         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
18508
18509         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
18510
18511         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
18512         Use prototype.
18513
18514         (TARGET_ASM_NAMED_SECTION): Fix argument list.
18515
18516         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
18517         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
18518
18519         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
18520
18521         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
18522
18523         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
18524         referring to it.  Fix language.
18525
18526         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
18527
18528         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
18529
18530         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
18531
18532         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
18533
18534         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
18535         '@var{stream}.  Remove stray 'and'.
18536
18537         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
18538
18539         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
18540
18541         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
18542
18543         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
18544         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
18545
18546         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
18547         Fix description of return value.
18548         Rename argument "sz" to "len."
18549
18550         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
18551         Clarify meaning of 'true' return value.
18552
18553         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
18554
18555         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
18556         rep_mode versus mode_rep.
18557
18558         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
18559
18560         (TARGET_BUILTIN_DECL): Fix name.
18561
18562         (TARGET_COMMUTATIVE_P): Fix type of first argument.
18563
18564         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
18565
18566         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
18567
18568         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
18569
18570         (TARGET_RELAXED_ORDERING): Use @deftypevr.
18571
18572         (TARGET_GET_DRAP_RTX): Note that this is a hook.
18573         Clarify language.
18574
18575         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
18576         Rename argument tm_fn to md_fn.
18577
18578         (TARGET_OPTION_PRINT): Fix argument list.
18579
18580 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
18581
18582         PR target/42664
18583         * config/i386/i386.c (ix86_fixup_binary_operands):
18584         Revert FMA4 fixup of operands.
18585
18586 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18587
18588         PR gcc/42525
18589         * Makefile.in (write_entries_to_file, install-plugin):
18590         Use \012 instead of \n with tr.
18591
18592 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
18593
18594         * configure.ac (HAVE_AS_REF): New C macro.
18595         * configure: Regenerate.
18596         * config.in: Likewise.
18597         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
18598         if HAVE_AS_REF.
18599         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
18600         if HAVE_AS_REF.
18601
18602 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
18603
18604         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
18605
18606         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
18607
18608         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
18609
18610         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
18611
18612         (TARGET_IN_SMALL_DATA_P): Fix argument type.
18613
18614         (TARGET_BINDS_LOCAL_P): Fix argument type.
18615
18616         (TARGET_ASM_FILE_END): Use prototype.
18617
18618         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
18619
18620         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
18621
18622         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
18623
18624         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
18625
18626         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
18627         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
18628
18629         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
18630         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
18631
18632         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
18633         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
18634         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
18635         (TARGET_ADDR_SPACE_CONVERT): Likewise.
18636
18637         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
18638
18639         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
18640
18641         (TARGET_INIT_BUILTINS): Use prototype.
18642
18643         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
18644         Put 'const char *' in braces.  Fix parameter types.
18645         (TARGET_INVALID_CONVERSION): Fix parameter types.
18646         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
18647         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
18648
18649         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
18650         Fix argument type.
18651
18652         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
18653
18654         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
18655
18656 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
18657
18658         * doc/tm.texi (TARGET_HELP): Fix return type.
18659
18660         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
18661         in braces.  Fix argument types.
18662
18663         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
18664
18665         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
18666
18667         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
18668
18669         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
18670         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
18671
18672         (TARGET_MANGLE_TYPE): Fix argument types.
18673
18674         (TARGET_IRA_COVER_CLASSES): Use prototype.
18675
18676         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
18677
18678         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
18679
18680         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
18681
18682         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
18683
18684         (TARGET_CALLEE_COPIES): Fix argument types.
18685
18686         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
18687
18688         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
18689
18690         (TARGET_FUNCTION_VALUE): Fix argument types.
18691
18692         (TARGET_RETURN_IN_MSB): Fix argument type.
18693
18694         (TARGET_RETURN_IN_MEMORY): Fix argument types.
18695
18696         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
18697
18698         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
18699
18700         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
18701         agree with return type.
18702
18703         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
18704
18705 2010-01-15  Jing Yu  <jingyu@google.com>
18706
18707         PR rtl-optimization/42691
18708         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
18709         a pseudo to a constant and are merged, and adjust comments.
18710
18711 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18712
18713         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
18714
18715 2010-01-15  Richard Guenther  <rguenther@suse.de>
18716
18717         PR middle-end/42739
18718         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18719         labels of computed or non-local gotos to the destination.
18720         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18721         landing pad label is the first label.
18722
18723 2010-01-15  Richard Guenther  <rguenther@suse.de>
18724
18725         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18726
18727 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18728
18729         PR target/42747
18730         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18731         to allow generation of the xssqrtdp instruction on power7.
18732         (sqrtdf2_fpr): Ditto.
18733
18734 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18735
18736         PR middle-end/42674
18737         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18738         functions with noreturn attribute.
18739
18740         PR c++/42608
18741         * varasm.c (declare_weak): Add weak attribute to decl if it
18742         doesn't have one already.
18743         (assemble_external): Only add decls to weak_decls if they also
18744         have weak attribute.
18745
18746 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
18747
18748         * var-tracking.c (var_reg_delete): Don't delete the association
18749         between REGs and values or one-part variables if the register
18750         isn't clobbered.
18751
18752 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18753
18754         PR debug/42657
18755         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18756         because its first operand is a non-localized variable.
18757
18758 2010-01-14  Martin Jambor  <mjambor@suse.cz>
18759
18760         PR tree-optimization/42706
18761         * tree-sra.c (encountered_recursive_call): New variable.
18762         (encountered_unchangable_recursive_call): Likewise.
18763         (sra_initialize): Initialize both new variables.
18764         (callsite_has_enough_arguments_p): New function.
18765         (scan_function): Call decl and flags check only for IPA-SRA, check
18766         whether there is a recursive call and whether it has enough arguments.
18767         (all_callers_have_enough_arguments_p): New function.
18768         (convert_callers): Look for recursive calls only when
18769         encountered_recursive_call is set.
18770         (ipa_early_sra): Bail out either if
18771         !all_callers_have_enough_arguments_p or
18772         encountered_unchangable_recursive_call.
18773
18774 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18775
18776         * sel-sched.c: Add 2010 to copyright years.
18777         * sel-sched-ir.c: Likewise.
18778         * sel-sched-ir.h: Likewise.
18779
18780 2010-01-14  Martin Jambor  <mjambor@suse.cz>
18781
18782         PR tree-optimization/42714
18783         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
18784         constructors specially.
18785
18786 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18787
18788         * config/i386/drivers-i386.c (detect_caches_intel):
18789         Add l2sizekb parameter and fill in.
18790         (host_detect_local_cpu): Add l2sizekb, fill in.
18791         Add Atom small cache heuristic.
18792
18793 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18794
18795         * config/i386/drivers-i386.c (detect_caches_cpuid4):
18796         Add level3 parameter and fill in.
18797         (detect_caches_intel): Handle level3 cache.
18798
18799 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18800
18801         * config/i386/drivers-i386.c (host_detect_local_cpu):
18802         Fix core duo detection.
18803
18804 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18805
18806         * config/i386/drivers-i386.c (host_detect_local_cpu):
18807         Fix Atom detection.
18808
18809 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18810
18811         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
18812         (rs6000_variable_issue_1): this.  Use...
18813         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
18814
18815 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18816
18817         * sel-sched-ir.c (sel_restore_other_notes): Rename to
18818         sel_restore_notes.  Update all callers.  Call reemit_notes
18819         for all insns.
18820
18821 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18822
18823         PR rtl-optimization/42246
18824         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18825         loops.
18826
18827 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18828
18829         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18830         all successors is the same as number of successors in current region.
18831
18832 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18833
18834         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18835         to rename is not separable.  Otherwise check that its LHS is not NULL.
18836
18837 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18838
18839         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
18840
18841 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18842
18843         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18844         available registers when failed to discover LHS register class.
18845         Fix indentation.  Update comment.
18846
18847 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18848             Alexander Monakov  <amonakov@ispras.ru>
18849
18850         PR rtl-optimization/42389
18851         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18852         to can_issue_more.
18853         (advance_state_on_fence): Likewise.
18854         (sel_target_adjust_priority): Print debug output only when
18855         sched_verbose >= 4, not 2.
18856         (get_expr_cost): Do not issue all unique insns on the next cycle.
18857         (fill_insns): Initialize can_issue_more from the value saved
18858         with the fence.
18859         * sel-sched-ir.c (flist_add): New parameter issue_more.
18860         Init FENCE_ISSUE_MORE with it.
18861         (merge_fences): Likewise.
18862         (init_fences): Update call to flist_add.
18863         (add_to_fences, add_clean_fence_to_fences)
18864         (add_dirty_fence_to_fences): Likewise.
18865         (move_fence_to_fences): Update call to merge_fences.
18866         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18867         sched groups.
18868         * sel-sched-ir.h (struct _fence): New field issue_more.
18869         (FENCE_ISSUE_MORE): New accessor macro.
18870
18871 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18872
18873         PR rtl-optimization/42388
18874         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18875         that have no predecessors nor successors.  Do not call move_bb_info
18876         for empty blocks outside of current region.
18877
18878 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18879
18880         PR rtl-optimization/42294
18881         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18882         * sel-sched.c (move_exprs_to_boundary): Transitively add all
18883         originators' originators.
18884
18885 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18886
18887         PR rtl-optimization/39453
18888         PR rtl-optimization/42246
18889         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18890         for pipelining_p.
18891         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18892
18893 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18894             Alexander Monakov  <amonakov@ispras.ru>
18895
18896         PR middle-end/42245
18897         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
18898         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
18899         argument.  Update all callers.
18900         (tidy_control_flow): ... and here.  Recompute topological order
18901         of basic blocks in region if necessary.
18902         (sel_redirect_edge_and_branch): Change return type.  Return true
18903         if topological order might have been invalidated.
18904         (purge_empty_blocks): Export and move from...
18905         * sel-sched.c (purge_empty_blocks): ... here.
18906         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18907         (maybe_tidy_empty_bb): Delete prototype.
18908         (purge_empty_blocks): Declare.
18909
18910 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18911
18912         PR rtl-optimization/42249
18913         * sel-sched.c (try_replace_dest_reg): When chosen register
18914         and original register is the same, do not bail out early, but
18915         still check all original insns for validity of replacing destination
18916         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18917         in this case.
18918
18919 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18920
18921         PR c/42721
18922         Port from no-undefined-overflow branch:
18923         2009-03-09  Richard Guenther  <rguenther@suse.de>
18924
18925         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18926
18927 2010-01-14  Richard Guenther  <rguenther@suse.de>
18928
18929         PR lto/42665
18930         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18931
18932 2010-01-14  Ira Rosen  <irar@il.ibm.com>
18933
18934         PR tree-optimization/42709
18935         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18936         as scalar type in creation of constant vector operand.
18937
18938 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18939
18940         PR testsuite/42414
18941         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18942         (check-parallel-%): Match `testsuite' directory component only
18943         at the end.
18944
18945 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
18946
18947         PR translation/39521
18948         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18949         strings with _().
18950
18951 2010-01-13  Richard Guenther  <rguenther@suse.de>
18952
18953         PR tree-optimization/42730
18954         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18955         offset zero.
18956
18957 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
18958
18959         PR target/pr42542
18960         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18961         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18962         them signed.
18963
18964 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
18965
18966         * config/bfin/libgcc-bfin.ver: Regenerate based on current
18967         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
18968         ___umulsi3_highpart.
18969
18970         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18971         rather than schedule_insns if the pass is enabled.
18972
18973 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18974
18975         PR tree-optimization/42704
18976         * tree-sra.c (sra_modify_assign): Do not delete assignments to
18977         SSA_NAMEs.
18978
18979 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18980
18981         PR tree-optimization/42703
18982         * tree-sra.c (analyze_access_subtree): Check that we can build a
18983         reference to the original data within the aggregate.
18984
18985 2010-01-13  Richard Guenther  <rguenther@suse.de>
18986
18987         PR tree-optimization/42705
18988         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18989
18990 2010-01-13  Richard Guenther  <rguenther@suse.de>
18991
18992         PR middle-end/42716
18993         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18994
18995 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
18996
18997         PR debug/41371
18998         * var-tracking.c (values_to_unmark): New variable.
18999         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19000         values_to_unmark vector.  Moved body to...
19001         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
19002         instead queue it into values_to_unmark vector.
19003         (vt_find_locations): Free values_to_unmark vector.
19004
19005 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
19006
19007         * config/s390/s390.c (override_options): Set
19008         default of max-pending-list-length to 256
19009
19010 2010-01-13  Richard Guenther  <rguenther@suse.de>
19011
19012         PR lto/42678
19013         * tree-pass.h (PROP_gimple_lcx): New.
19014         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
19015         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
19016         before the final cleanup_eh.
19017         (dump_properties): Dump PROP_gimple_lcx.
19018         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
19019         (tree_lower_complex_O0): Remove.
19020         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
19021         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
19022         tree_lower_complex, schedule TODO_update_ssa.
19023         * lto-streamer-out.c (output_function): Stream the functions
19024         properties.
19025         * lto-streamer-in.c (input_function): Likewise.
19026         (lto_read_body): Do not override them here.
19027
19028 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
19029
19030         PR c/42708
19031         * c-typeck.c (build_c_cast): Fold value cast to union type before
19032         wrapping it in a CONSTRUCTOR.
19033
19034 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
19035
19036         PR rtl-optimization/42699
19037         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
19038         involved.
19039
19040 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19041
19042         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19043         SUBTARGET_WARN_UNUSED_SPEC): Move ...
19044         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19045         SUBTARGET_WARN_UNUSED_SPEC): ... here
19046         * config/mips/iris5.h (LIBGCC_SPEC): Define.
19047
19048 2010-01-12  Julian Brown  <julian@codesourcery.com>
19049
19050         * config/arm/neon-schedgen.ml (Utils): Don't try to
19051         open missing module.
19052         (find_with_result): New.
19053
19054 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
19055
19056         PR debug/42662
19057         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
19058         sharing when canonicalizing ({lt,ge}u (plus a b) b).
19059
19060         PR tree-optimization/42645
19061         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
19062         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
19063         decl_map, set processing_debug_stmt to -1 and return name without
19064         any remapping.
19065
19066 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
19067
19068         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
19069         binutils version, and reword target configuration description.
19070
19071 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
19072
19073         * config/avr/avr.h (LINKER_NAME): Remove.
19074
19075 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
19076
19077         PR target/42416
19078         * config/rs6000/rs6000.c (rs6000_override_options): On targets
19079         that support VSX, warn for -mno-altivec if vsx is not disabled,
19080         and disable vsx.
19081
19082 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
19083             Shujing Zhao  <pearly.zhao@oracle.com>
19084
19085         PR translation/42469
19086         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
19087         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
19088         character between option name and help text.
19089         * c.opt (imultilib): Likewise.
19090
19091 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
19092
19093         * lto-streamer-out.c (output_unreferenced_globals): Output static
19094         variables.
19095
19096 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
19097
19098         PR rtl-optimization/42621
19099         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
19100         optimizing for size.
19101         (duplicate_computed_gotos): Remove now-redundant check.
19102
19103 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
19104
19105         PR target/37454
19106         * configure.ac: Save and restore LDFLAGS and LIBS
19107         * configure: Regenerate.
19108
19109 2010-01-10  Richard Guenther  <rguenther@suse.de>
19110
19111         PR middle-end/42667
19112         * builtins.c (fold_builtin_strlen): Add type argument and
19113         convert the resulting length to it.
19114         (fold_builtin_1): Adjust.
19115
19116 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
19117
19118         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
19119         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
19120         1 insn.
19121         (num_insns_constant_wide): Adjust for that change.
19122
19123 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19124
19125         PR debug/42631
19126         * web.c (union_defs): Add used argument, to combine uses of
19127         uninitialized regs.
19128         (entry_register): Adjust type and tests of used argument.
19129         (web_main): Widen used for new use.  Pass it to union_defs.
19130         * df.h (union_defs): Adjust prototype.
19131
19132 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19133
19134         PR debug/42630
19135         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19136         uses in new incoming argument.  Free body.
19137         (reset_debug_uses_in_loop): New.
19138         (analyze_insn_to_expand_var): Call the latter if the former found
19139         anything.  Fix whitespace.  Reject invalid dest overlaps before
19140         going through all insns in the loop.
19141
19142 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19143
19144         PR debug/42629
19145         * haifa-sched.c (dying_use_p): Debug insns don't count.
19146
19147 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19148
19149         PR middle-end/42363
19150         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19151         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19152         (verify_gimple_call): Reject LHS in noreturn calls.
19153
19154 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19155
19156         PR debug/42604
19157         PR debug/42395
19158         * tree-vect-loop-manip.c (adjust_info): New type.
19159         (adjust_vec): New pointer to vector.
19160         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19161         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19162         (slpeel_update_phis_for_duplicate_loop): Use them.
19163         (slpeel_update_phi_nodes_for_guard1): Likewise.
19164         (slpeel_update_phi_nodes_for_guard2): Likewise.
19165         (slpeel_tree_peel_loop_to_edge): Likewise.
19166         (vect_update_ivs_after_vectorizer): Likewise.
19167
19168 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19169
19170         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19171         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19172
19173 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19174
19175         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19176         bogus uninitialized warning.
19177
19178 2010-01-09  Richard Guenther  <rguenther@suse.de>
19179
19180         PR middle-end/42512
19181         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19182         the evolution is compatible with the initial condition.
19183
19184 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
19185
19186         * gcc.c (process_command): Update copyright notice dates.
19187         * gcov.c (print_version): Likewise.
19188         * gcov-dump.c (print_version): Likewise.
19189         * mips-tfile.c (main): Likewise.
19190         * mips-tdump.c (main): Likewise.
19191
19192 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
19193
19194         PR target/41885
19195         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19196         (rotlhi3): Delete.
19197         (rotlhi3_8): Delete.
19198         (rotlsi3): Delete.
19199         (rotlsi3_8): Delete.
19200         (rotlsi3_16): Delete.
19201         (rotlsi3_24): Delete.
19202         (rotl<mode>3): New.
19203         (*rotw<mode>3): New.
19204         (*rotb<mode>3): New.
19205         * config/avr/avr.c (avr_rotate_bytes): New function.
19206         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19207
19208 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
19209
19210         PR target/37454
19211         * configure.ac: Modify -rdynamic check.
19212         * configure: Regenerate.
19213
19214 2010-01-08  DJ Delorie  <dj@redhat.com>
19215
19216         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19217         register popping order.
19218
19219 2010-01-08  Richard Guenther  <rguenther@suse.de>
19220
19221         PR lto/42528
19222         * c.opt (fsigned-char): Also let LTO handle this option.
19223         (funsigned-char): Likewise.
19224
19225 2010-01-07  Richard Guenther  <rguenther@suse.de>
19226
19227         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19228         (gimple_op): Likewise.
19229         (gimple_op_ptr): Likewise.
19230         (gimple_assign_set_lhs): Remove gcc_assert.
19231         (gimple_assign_set_rhs1): Likewise.
19232         (gimple_assign_set_rhs2): Likewise.
19233         (gimple_call_set_lhs): Likewise.
19234         (gimple_call_set_fn): Likewise.
19235         (gimple_call_set_fndecl): Likewise.
19236         (gimple_call_fndecl): Likewise.
19237         (gimple_call_return_type): Likewise.
19238         (gimple_call_set_chain): Likewise.
19239         (gimple_call_num_args): Likewise.
19240         (gimple_call_set_arg): Likewise.
19241         (gimple_cond_set_code): Likewise.
19242         (gimple_cond_set_lhs): Likewise.
19243         (gimple_cond_set_rhs): Likewise.
19244         (gimple_cond_set_true_label): Likewise.
19245         (gimple_cond_set_false_label): Likewise.
19246         (gimple_label_set_label): Likewise.
19247         (gimple_goto_set_dest): Likewise.
19248         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19249         (gimple_debug_bind_get_value): Likewise.
19250         (gimple_debug_bind_get_value_ptr): Likewise.
19251         (gimple_debug_bind_set_var): Likewise.
19252         (gimple_debug_bind_set_value): Likewise.
19253         (gimple_debug_bind_reset_value): Likewise.
19254         (gimple_debug_bind_has_value_p): Likewise.
19255         (gimple_return_retval_ptr): Remove gcc_assert.
19256         (gimple_return_retval): Likewise.
19257         (gimple_return_set_retval): Likewise.
19258         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19259         (safe_referenced_var_iterator): Remove.
19260         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19261         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19262         (fill_referenced_var_vec): Remove.
19263         (first_readonly_imm_use): Remove redundant gcc_assert.
19264         (phi_arg_index_from_use): Combine gcc_asserts.
19265         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19266         (first_imm_use_stmt): Remove redundant gcc_assert.
19267         * tree-cfg.c (verify_gimple_call): Verify function and chain
19268         operands.  Verify arguments.
19269         (verify_types_in_gimple_stmt): Verify condition code and labels.
19270
19271 2010-01-07  Richard Guenther  <rguenther@suse.de>
19272
19273         PR tree-optimization/42641
19274         * sese.c (rename_map_elt_info): Use the SSA name version, do
19275         not hash pointers.
19276
19277 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
19278
19279         PR tree-optimization/42625
19280         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19281         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19282
19283 2010-01-07  Duncan Sands  <baldrick@free.fr>
19284
19285         * Makefile.in (PLUGIN_HEADERS): Add version.h.
19286
19287 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
19288
19289         PR target/42511
19290         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19291         note itself is not function_invariant_p.
19292
19293 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
19294
19295         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19296         Do not add the DF_NOTE problem.
19297         * store-motion.c (execute_rtl_store_motion): Likewise.
19298
19299 2010-01-07  Martin Jambor  <mjambor@suse.cz>
19300
19301         PR tree-optimization/42157
19302         * tree-sra.c (compare_access_positions): Stabilize sort if both
19303         accesses have integer types, return zero immediately if they are the
19304         same.
19305
19306 2010-01-06  Richard Henderson  <rth@redhat.com>
19307
19308         PR middle-end/41883
19309         * haifa-sched.c (add_to_note_list): Merge into ...
19310         (concat_note_lists): ... here, and ...
19311         (unlink_other_notes, rm_other_notes): Merge into...
19312         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
19313         NOTE_INSN_EPILOGUE_BEG.
19314
19315 2010-01-06  Richard Guenther  <rguenther@suse.de>
19316
19317         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19318         not inline regular functions into always-inline functions.
19319
19320 2010-01-06  Nick Clifton  <nickc@redhat.com>
19321
19322         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19323         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19324         used together.
19325         (OVERRIDE_OPTIONS): Delete.
19326         (OPTIMIZATION_OPTIONS): Define.
19327         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19328         * config/rx/rx.c (rx_handle_option): Issue an error message if
19329         -mcpu=rx200 and -fpu are used together.
19330         (rx_set_optimization_options): New function.  Issue an error
19331         message if an optimization attribute attempts to reset the FPU/
19332         math optimization pairing.
19333         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19334         * config/rx/rx.opt: Set the default to 32-bit doubles.
19335         * config/rx/t-rx: Add multilibs for -nofpu option.
19336         * doc/invoke.texi: Update documentation of RX options.
19337
19338 2010-01-06  Richard Guenther  <rguenther@suse.de>
19339
19340         * tree-ssa-pre.c (name_to_id): New global.
19341         (alloc_expression_id): Simplify SSA name handling.
19342         (lookup_expression_id): Likewise.
19343         (init_pre): Zero name_to_id.
19344         (fini_pre): Free it.
19345
19346 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
19347
19348         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19349
19350 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19351
19352         PR target/42542
19353         * config/i386/sse.md (smaxv2di3): New.
19354         (umaxv2di3): Likewise.
19355         (sminv2di3): Likewise.
19356         (uminv2di3): Likewise.
19357
19358 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19359
19360         PR target/42564
19361         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
19362         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
19363         (legitimize_tls_address): Likewise.
19364         (sparc_tls_referenced_p): Likewise.
19365         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
19366         and adjust calls to legitimize_pic_address.
19367         (legitimate_constant_p) Use sparc_tls_referenced_p.
19368         (legitimate_pic_operand_p): Likewise.
19369         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
19370         (sparc_tls_symbol_ref_1): Delete.
19371         (sparc_tls_referenced_p): Make static, recognize specific patterns.
19372         (legitimize_tls_address): Make static, handle CONST patterns.
19373         (legitimize_pic_address): Make static, remove unused parameter and
19374         adjust recursive calls.
19375         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
19376         and adjust call to legitimize_pic_address.
19377         (sparc_output_mi_thunk): Likewise.
19378
19379 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
19380             H.J. Lu  <hongjiu.lu@intel.com>
19381
19382         PR target/42542
19383         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
19384         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
19385         operands to make them signed.
19386
19387         Revert:
19388         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19389
19390         PR target/42542
19391         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19392         GTU to GT for V4SI and V2DI.
19393
19394         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19395         (umin<mode>3): Removed.
19396         (uminv8hi3): New.
19397         (uminv4si3): Likewise.
19398
19399 2010-01-05  Martin Jambor  <mjambor@suse.cz>
19400
19401         PR tree-optimization/42462
19402         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
19403         current_function_decl to helper functions and macros.
19404
19405 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19406
19407         PR bootstrap/41771
19408         * flags.h: Don't include real.h.
19409         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
19410         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
19411         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
19412         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
19413         * dominance.c: Update copyright.
19414         * gimple.c (walk_gimple_op): Remove inline.
19415         * tree-ssa-reassoc.c: Include real.h.
19416         * Makefile.in (FLAGS_H): Remove $(REAL_H).
19417         (tree-ssa-reassoc.o): Depend on $(REAL_H).
19418
19419 2010-01-05  Nick Clifton  <nickc@redhat.com>
19420
19421         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19422         register to push into the stack frame when the accumulator has to
19423         be saved during interrupts.
19424
19425 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
19426
19427         * doc/invoke.texi: Remove the documentation about option
19428         -Wunreachable-code.
19429         * common.opt (Wunreachable-code):  Preserved for backward
19430         compatibility.
19431         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19432         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19433         the backward compatibility flag section.
19434
19435 2010-01-05  Richard Guenther  <rguenther@suse.de>
19436
19437         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19438
19439 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
19440
19441         PR other/42611
19442         * cfgexpand.c (expand_one_var): Diagnose too large variables.
19443
19444         PR tree-optimization/42508
19445         * tree-sra.c (convert_callers): Check for recursive call
19446         by comparing cgraph nodes instead of decls.
19447         (modify_function): Call ipa_modify_formal_parameters also
19448         on all same_body aliases.
19449
19450         * cgraphunit.c (cgraph_materialize_all_clones): Compare
19451         cgraph nodes when checking for same_body aliases.
19452
19453 2010-01-05  Richard Guenther  <rguenther@suse.de>
19454
19455         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19456         allocation and lookup.
19457         (get_or_alloc_expr_for_constant): Likewise.
19458         (phi_translate): Sink allocation.
19459
19460 2010-01-04  Richard Guenther  <rguenther@suse.de>
19461
19462         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19463         a new entry only if needed.
19464         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19465         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19466         hashtable lookup.
19467         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19468         the result array.
19469         (phi_translate): Handle CONSTANTs early.
19470
19471 2010-01-04  Martin Jambor  <mjambor@suse.cz>
19472
19473         PR tree-optimization/42398
19474         * tree-sra.c (struct access): Removed flag grp_different_types.
19475         (dump_access): Do not dump the removed flag.
19476         (sort_and_splice_var_accesses): Do not set the removed flag.
19477         (sra_modify_expr): Check for type compatibility directly.
19478
19479 2010-01-04  Martin Jambor  <mjambor@suse.cz>
19480
19481         PR tree-optimization/42366
19482         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19483         edges with variable number of parameters.
19484         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
19485         flag instead of asserting it.
19486         (ipa_read_node_info): Read uses_analysis_done flag.
19487
19488 2010-01-04  Richard Guenther  <rguenther@suse.de>
19489
19490         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
19491         iterative_hash_* as intended.
19492         (vn_reference_compute_hash): Likewise.  Simplify hashing
19493         SSA names.
19494         (vn_reference_lookup_2): Likewise.
19495         (vn_nary_op_compute_hash): Likewise.
19496         (vn_phi_compute_hash): Likewise.
19497         (expressions_equal_p): Remove strange code.
19498         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
19499         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
19500         (bitmap_insert_into_set_1): Take value-id as parameter.
19501         (add_to_value): Pass it.
19502         (bitmap_insert_into_set): Likewise.
19503         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
19504
19505 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
19506
19507         PR driver/42442
19508         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
19509         (do_self_spec): For switches with SWITCH_IGNORE set set also
19510         SWITCH_IGNORE_PERMANENTLY.
19511         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
19512         of SWITCH_IGNORE.
19513
19514 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
19515
19516         * lto-streamer-out.c (output_unreferenced_globals): Output the full
19517         tree of an unreferenced global var.
19518
19519 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19520
19521         PR target/42542
19522         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19523         GTU to GT for V4SI and V2DI.
19524
19525         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19526         (umin<mode>3): Removed.
19527         (uminv8hi3): New.
19528         (uminv4si3): Likewise.
19529
19530 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19531
19532         PR lto/42581
19533         * collect2.c (main): Turn on trace in collect2 if -v is passed
19534         to gcc with LTO.
19535
19536 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
19537
19538         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
19539         description of expression operand.
19540
19541 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
19542
19543         * configure.ac: Add install-html to target_list for Make-hooks.
19544         * configure: Regenerate.
19545         * fortran/Make-lang.in (F95_HTMLFILES): New.
19546         (fortran.html): Use it.
19547         (fortran.install-html): New.
19548         * Makefile.in (install-html): Add lang.install-html.
19549         * java/Make-lang.in (JAVA_HTMLFILES): New.
19550         (java.html): Use it.
19551         (java.install-html): New.
19552         * objc/Make-lang.in (objc.install-html): New.
19553         * objcp/Make-lang.in (obj-c++.install-html): New.
19554         * cp/Make-lang.in (c++.install-html): New.
19555         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
19556         * lto/Make-lang.in (lto.install-html): New.
19557
19558 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19559
19560         PR lto/42520
19561         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
19562
19563 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
19564
19565         PR rtl-optimization/41862
19566         * store-motion.c (store_killed_in_insn, compute_store_table,
19567         remove_reachable_equiv_notes, replace_store_insn,
19568         build_store_vectors): Ignore all DEBUG_INSNs.
19569
19570 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19571
19572         PR lto/41564
19573         * common.opt: Add dumpdir.
19574
19575         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
19576         isn't specified.
19577         (option_map): Add --dumpdir.
19578
19579         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
19580
19581         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
19582
19583         * opts.c (decode_options): Try dump_dir_name first if
19584         dump_base_name isn't an absolute path.
19585         (common_handle_option): Handle OPT_dumpdir.
19586
19587         * toplev.c (dump_dir_name): New.
19588         (print_switch_values): Also ignore -dumpdir.
19589
19590         * toplev.h (dump_dir_name): New.
19591
19592 2010-01-03  Richard Guenther  <rguenther@suse.de>
19593
19594         PR tree-optimization/42589
19595         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
19596         double-word expansion of bswap32.
19597
19598 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
19599
19600         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
19601         with BLOCK_FOR_INSN.
19602         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
19603         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
19604         noce_process_if_block): Likewise.
19605         * gcse.c (compute_local_properties, insert_expr_in_table,
19606         insert_set_in_table, canon_list_insert, find_avail_set,
19607         pre_insert_copy_insn): Likewise.
19608
19609         * basic-block.h (BLOCK_NUM): Move from here...
19610         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
19611
19612 2010-01-03  Richard Guenther  <rguenther@suse.de>
19613
19614         PR tree-optimization/42438
19615         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
19616         contains_may_not_return_call flag.
19617         (BB_MAY_NOTRETURN): New.
19618         (valid_in_sets): Trapping nary operations are not valid
19619         in blocks that may not return.
19620         (insert_into_preds_of_block): Remove check for trapping expressions.
19621         (compute_avail): Compute also BB_MAY_NOTRETURN.
19622
19623 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
19624
19625         * doc/invoke.texi: Add 2010 to copyright years.
19626
19627 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19628
19629         * config/sparc/sparc.c: Fix formatting nits.
19630
19631 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
19632             Alexander Monakov  <amonakov@ispras.ru>
19633
19634         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
19635
19636 2010-01-02  Richard Guenther  <rguenther@suse.de>
19637
19638         PR middle-end/42577
19639         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
19640         (simplify_switch_using_ranges): Mark to be removed edges
19641         as non-executable.
19642
19643 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19644
19645         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19646
19647         * collect2.c (scan_libraries): Add missing argument in call to
19648         scan_prog_file.
19649
19650 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
19651
19652         PR target/42448
19653         * config/alpha/predicates.md (aligned_memory_operand): Return false
19654         for CQImode.
19655         (unaligned_memory_operand): Return true for CQImode.
19656         * config/alpha/alpha.c (get_aligned_mem): Assert that location
19657         doesn not cross aligned SImode word boundary.
19658
19659 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
19660
19661         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
19662         Remove.
19663         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
19664         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
19665
19666 2010-01-02  Richard Guenther  <rguenther@suse.de>
19667
19668         PR lto/41597
19669         * toplev.c (compile_file): Emit LTO marker properly.  Change
19670         it to __gnu_lto_v1.
19671         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
19672
19673 2010-01-01  Richard Guenther  <rguenther@suse.de>
19674
19675         PR debug/42455
19676         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
19677
19678 2010-01-01  Richard Guenther  <rguenther@suse.de>
19679
19680         PR c/42570
19681         * c-decl.c (grokdeclarator): For zero-size arrays force
19682         structural equality checks as layout_type does.
19683
19684 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
19685
19686         * builtins.c: Update copyright to 2010.
19687
19688 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
19689
19690         PR lto/42531
19691         * lto-streamer-out.c (produce_asm): Revert the last change.
19692         (copy_function): Likewise.
19693
19694         * lto-streamer.c (lto_get_section_name): Skip any leading
19695         asterisk in name.
19696
19697 2010-01-01  Richard Guenther  <rguenther@suse.de>
19698
19699         PR middle-end/42559
19700         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
19701         for LABEL_DECLs.
19702
19703 \f
19704 Copyright (C) 2010 Free Software Foundation, Inc.
19705
19706 Copying and distribution of this file, with or without modification,
19707 are permitted in any medium without royalty provided the copyright
19708 notice and this notice are preserved.