OSDN Git Service

2010-07-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2
3         * c-decl.c (finish_function): Fix typo in comment.
4         
5 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6
7         PR bootstrap/44921
8         * postreload.c (move2add_use_add3_insn): Silence gcc warning
9         on min_regno.
10
11 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
12
13         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
14         (simplify_stmt_using_ranges): Use it.
15
16 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17
18         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
19         member.  Do not mark as GTY(()).
20         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
21         (spu_builtin_decls): New static variable.
22         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
23         (spu_init_builtins): Likewise.
24         (spu_builtin_mul_widen_even): Likewise.
25         (spu_builtin_mul_widen_odd): Likewise.
26         (spu_builtin_mask_for_load): Likewise.
27         (spu_builtin_vec_perm): Likewise.
28         * config/spu/spu-c.c: Include "target.h".
29         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
30         of using spu_builtins[].fndecl.
31
32 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
33
34         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
35         imply -minterlink-mips16.
36
37 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
38
39         * config/mips/mips.h (mips16_globals): Declare.
40         (SWITCHABLE_TARGET): Define.
41         * config/mips/mips.c: Include target-globals.h.
42         (mips16_globals): New variable.
43         (mips_set_mips16_mode): Use save_target_globals and
44         restore_target_globals instead of target_reinit.
45
46 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
47
48         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
49         to say that the function can be called more than once.
50         * target-globals.c (save_target_globals): Call init_reg_sets.
51
52 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
53
54         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
55         * bb-reorder.h: New file.
56         * bb-reorder.c (default_target_bb_reorder): New variable.
57         (this_target_bb_reorder): New conditional variable.
58         (uncond_jump_length): Redefine as a macro.
59         * target-globals.h (this_target_bb_reorder): Declare.
60         (target_globals): Add a bb_reorder field.
61         (restore_target_globals): Copy the bb_reorder field to
62         this_target_bb-reorder.
63         * target-globals.c: Include bb-reorder.h.
64         (default_target_globals): Initialize the bb_reorder field.
65         (save_target_globals): Likewise.
66
67 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
68
69         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
70         * gcse.h: New file.
71         * gcse.c: Include gcse.h.
72         (default_target_gcse): New variable.
73         (this_target_gcse): New conditional variable.
74         (can_copy): Redefine as a macro.
75         (can_copy_init_p): New macro.
76         (can_copy_p): Remove can_copy_init_p.
77         * target-globals.h (this_target_gcse): Declare.
78         (target_globals): Add a gcse field.
79         (restore_target_globals): Copy the gcse field to
80         this_target_gcse.
81         * target-globals.c: Include gcse.h.
82         (default_target_globals): Initialize the gcse field.
83         (save_target_globals): Likewise.
84
85 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
86
87         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
88         and x_ira_prohibited_mode_move_regs_initialized_p.
89         (ira_prohibited_mode_move_regs): Redefine as a macro.
90         * ira.c (ira_prohibited_mode_move_regs): Delete.
91         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
92
93 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
94
95         * reload.h (target_reload): Add x_cached_reg_save_code and
96         x_cached_reg_restore_code.
97         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
98         Redefine as macros.
99
100 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
101
102         * Makefile.in (target-globals.o): Depend on builtins.h.
103         * builtins.h: New file.
104         * builtins.c: Include builtins.h.
105         (default_target_builtins): New variable.
106         (this_target_builtins): New conditional variable.
107         (apply_args_mode, apply_result_mode): Redefine as macros.
108         * target-globals.h (this_target_builtins): Declare.
109         (target_globals): Add a builtins field.
110         (restore_target_globals): Copy the builtins field to
111         this_target_builtins.
112         * target-globals.c: Include builtins.h.
113         (default_target_globals): Initialize the builtins field.
114         (save_target_globals): Likewise.
115
116 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
117
118         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
119         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
120         from expmed.c.
121         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
122         (alg_hash, alg_hash_used_p): New macros.
123         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
124         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
125         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
126
127 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
128
129         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
130         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
131         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
132         (this_op_costs, costs_classes): Redefine as macros.
133         (record_reg_classes): Don't take op_costs as a parameter.
134         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
135         (scan_one_insn): Update call to record_operand_costs.
136
137 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
138
139         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
140         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
141         (target_ira_int): New structure.
142         (default_target_ira_int): Declare.
143         (this_target_ira_int): Declare as a variable or define as a macro.
144         (ira_reg_mode_hard_regset, ira_register_move_cost)
145         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
146         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
147         (prohibited_class_mode_regs, ira_important_classes_num)
148         (ira_important_classes, ira_reg_class_intersect)
149         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
150         (ira_reg_class_union): Redefine as macros.
151         * ira.h (target_ira): New structure.
152         (default_target_ira): Declare.
153         (this_target_ira): Declare as a variable or define as a macro.
154         (ira_available_class_regs, ira_hard_regno_cover_class)
155         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
156         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
157         (ira_class_hard_regs_num): Redefine as macros.
158         * ira.c (default_target_ira, default_target_ira_int): New variables.
159         (this_target_ira, this_target_ira_int): New conditional variables.
160         (ira_reg_mode_hard_regset, ira_memory_move_cost)
161         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
162         (ira_class_subset_p): Delete.
163         (no_unit_alloc_regs): Redefine as a macro.
164         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
165         (ira_class_hard_regs_num, ira_class_hard_reg_index)
166         (ira_available_class_regs): Delete.
167         (alloc_reg_class_subclasses): Redefine as a macro.
168         (ira_reg_class_cover_size, ira_reg_class_cover)
169         (ira_important_classes_num, ira_important_classes)
170         (ira_important_class_nums, ira_class_translate): Delete.
171         (cover_class_order): Document the variable's lifetime.
172         (reorder_important_classes): Don't set ira_important_class_nums.
173         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
174         (ira_reg_class_super_classes, ira_reg_class_union)
175         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
176         Delete.
177         (setup_reg_class_nregs): Don't set ira_max_regs.
178         (prohibited_class_mode_regs): Delete.
179         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
180         (target_globals): Add ira and ira_int fields.
181         (restore_target_globals): Copy the ira field to this_target_ira
182         and the ira_int field to this_target_ira_int.
183         * target-globals.c: Include ira-int.h.
184         (default_target_globals): Initialize the ira and ira_int fields.
185         (save_target_globals): Likewise.
186
187 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
188
189         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
190         * cfgloop.h (target_cfgloop): New structure.
191         (default_target_cfgloop): Declare.
192         (this_target_cfgloop): Declare as a variable or define as a macro.
193         (target_avail_regs, target_clobbered_regs, target_res_regs)
194         (target_reg_cost, target_spill_cost): Redefine as macros.
195         * cfgloopanal.c (default_target_cfgloop): New variable.
196         (this_target_cfgloop): New conditional variable.
197         (target_avail_regs, target_clobbered_regs, target_res_regs)
198         (target_reg_cost, target_spill_cost): Delete.
199         * target-globals.h (this_target_cfgloop): Declare.
200         (target_globals): Add a cfgloop field.
201         (restore_target_globals): Copy the cfgloop field to
202         this_target_cfgloop.
203         * target-globals.c: Include cfgloop.h.
204         (default_target_globals): Initialize the cfgloop field.
205         (save_target_globals): Likewise.
206
207 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
208
209         * regs.h (target_regs): Add x_direct_load, x_direct_store and
210         x_float_extend_from_mem.
211         (direct_load, direct_store, float_extend_from_mem): New macros.
212         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
213
214 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
215
216         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
217         (target-globals.o): Depend on $(LIBFUNCS_H).
218         * libfuncs.h: Include hashtab.h.
219         (libfunc_entry): Moved from optabs.c.
220         (target_libfuncs): New structure.
221         (default_target_libfuncs): Declare.
222         (this_target_libfuncs): Declare as a variable or define as a macro.
223         (libfunc_table): Redefine as a macro.
224         * optabs.c (default_target_libfuncs): New variable.
225         (this_target_libfuncs): New conditional variable.
226         (libfunc_table): Delete.
227         (libfunc_entry): Moved to optabs.h.
228         (libfunc_hash): Redefine as a macro.
229         (hash_libfunc, eq_libfunc): Fix comments.
230         (init_optabs): Use libfunc_hash to detect cases where the function
231         has already been called.  Clear the hash table instead of
232         recreating it.
233         * target-globals.h (this_target_libfuncs): Declare.
234         (target_globals): Add a libfuncs field.
235         (restore_target_globals): Copy the libfuncs field to
236         this_target_libfuncs.
237         * target-globals.c: Include libfuncs.h.
238         (default_target_globals): Initialize the libfuncs field.
239         (save_target_globals): Likewise.
240
241 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
242
243         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
244         in all dependency lists.
245
246 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
247
248         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
249         * optabs.h (target_optabs): New structure.
250         (default_target_optabs): Declare.
251         (this_target_optabs): Declare as a variable or define as a macro.
252         (optab_table, convert_optab_table, direct_optab_table): Redefine
253         as macros.
254         * optabs.c (default_target_optabs): New variable.
255         (this_target_optabs): New conditional variable.
256         (optab_table, convert_optab_table, direct_optab_table): Delete.
257         * target-globals.h (this_target_optabs): Declare.
258         (target_globals): Add a optabs field.
259         (restore_target_globals): Copy the optabs field to
260         this_target_optabs.
261         * target-globals.c: Include expr.h and optabs.h.
262         (default_target_globals): Initialize the optabs field.
263         (save_target_globals): Likewise.
264
265 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
266
267         * flags.h (target_flagstate): Add x_flag_excess_precision.
268         (flag_excess_precision): Redefine as a macro.
269         * toplev.c (flag_excess_precision): Delete.
270
271 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
272
273         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
274         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
275         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
276         (no_caller_save_reg_set): Redefine as a macro.
277         * reload.h (target_reload): Add x_caller_save_initialized_p and
278         x_regno_save_mode.
279         (caller_save_initialized_p): Redefine as a macro.
280         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
281         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
282         (regno_save_mode): Redefine as a macro.
283
284 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
285
286         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
287         * expmed.h: New file.
288         * expmed.c (default_target_costs): New variable.
289         (this_target_costs): New conditional variable.
290         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
291         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
292         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
293         * target-globals.h (this_target_expmed): Declare.
294         (target_globals): Add a expmed field.
295         (restore_target_globals): Copy the expmed field to
296         this_target_expmed.
297         * target-globals.c: Include expmed.h.
298         (default_target_globals): Initialize the expmed field.
299         (save_target_globals): Likewise.
300
301 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
302
303         * Makefile.in (target-globals.o): Depend on reload.h.
304         * reload.h (target_reload): New structure.
305         (default_target_reload): Declare.
306         (this_target_reload): Declare as a variable or define as a macro.
307         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
308         * reload1.c (default_target_reload): New variable
309         (this_target_reload): New conditional variable.
310         (indirect_symref_ok, double_reg_address_ok): Delete.
311         (spill_indirect_levels): Redefine as a macro.
312         * target-globals.h (this_target_reload): Declare.
313         (target_globals): Add a reload field.
314         (restore_target_globals): Copy the reload field to
315         this_target_reload.
316         * target-globals.c: Include hard-reg-set.h.
317         (default_target_globals): Initialize the reload field.
318         (save_target_globals): Likewise.
319
320 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
321
322         * rtl.h (target_rtl): Add x_static_reg_base_value.
323         * alias.c (static_reg_base_value): Redefine as a macro.
324
325 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
326
327         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
328         (GTFILES): Remove reginfo.c.
329         * rtl.h (target_rtl): Add x_top_of_stack.
330         (top_of_stack): New macro.
331         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
332         (top_of_stack): Delete.
333
334 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
335
336         * regs.h (target_regs): Add x_hard_regs_of_mode, x_contains_reg_of_mode,
337         x_move_cost, x_may_move_in_cost, x_may_move_out_cost and
338         x_last_mode_for_init_move_cost.
339         (have_regs_of_mode, contains_reg_of_mode, move_cost)
340         (may_move_in_cost, may_move_out_cost): Redefine as macros.
341         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
342         (may_move_in_cost, may_move_out_cost): Delete.
343         (last_mode_for_init_move_cost): Redefine as a macro.
344
345 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
346
347         * hard-reg-set.h (target_hard_regs): New structure.
348         (default_target_hard_regs): Declare.
349         (this_target_hard_regs): Declare as a variable or define as a macro.
350         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
351         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
352         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
353         (reg_class_size, reg_class_subclasses, reg_class_subunion)
354         (reg_class_superunion, reg_names): Redefine as macros.
355         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
356         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
357         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
358         (reg_class_contents, reg_class_size, reg_class_subclasses)
359         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
360         (default_target_hard_regs): New variable
361         (this_target_hard_regs, initial_call_really_used_regs)
362         (initial_reg_alloc_order): New conditional variables.
363         (initial_reg_names): New variable.
364         (init_reg_sets): Assert that initial_call_really_used_regs,
365         initial_reg_alloc_order and initial_reg_names
366         are all the same size as their variable counterparts.  Use them to
367         initialize those counterparts.
368         * target-globals.h (this_target_hard_regs): Declare.
369         (target_globals): Add a hard_regs field.
370         (restore_target_globals): Copy the hard_regs field to
371         this_target_hard_regs.
372         * target-globals.c: Include hard-reg-set.h.
373         (default_target_globals): Initialize the hard_regs field.
374         (save_target_globals): Likewise.
375
376 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
377
378         * Makefile.in (target-globals.o): Depend on $(RTL_H).
379         * rtl.h: (target_rtl): New structure.
380         (default_target_rtl): Declare.
381         (this_target_rtl): Declare as a variable or define as a macro.
382         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
383         Redefine as macros.
384         * emit-rtl.c (default_target_rtl): New variable.
385         (this_target_rtl): New conditional variable.
386         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
387         (return_address_pointer_rtx): Delete.
388         (initial_regno_reg_rtx): New macro.
389         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
390         (init_emit_regs): Likewise.
391         * target-globals.h (this_target_rtl): Declare.
392         (target_globals): Add a rtl field.
393         (restore_target_globals): Copy the rtl field to this_target_rtl.
394         * target-globals.c: Include rtl.h.
395         (default_target_globals): Initialize the rtl field.
396         (save_target_globals): Likewise.
397
398 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
399
400         * Makefile.in (target-globals.o): Depend on $(REGS_H).
401         * regs.h (target_reg_modes): New structure.
402         (default_target_reg_modes): Declare.
403         (this_target_reg_modes): Declare as a variable or define as a macro.
404         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
405         * reginfo.c (default_target_reg_modes): New variable.
406         (this_target_reg_modes): New conditional variable.
407         (hard_regno_nregs, reg_raw_mode): Delete.
408         * target-globals.h (this_target_regs): Declare.
409         (target_globals): Add a regs field.
410         (restore_target_globals): Copy the regs field to this_target_regs.
411         * target-globals.c: Include regs.h.
412         (default_target_globals): Initialize the regs field.
413         (save_target_globals): Likewise.
414
415 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
416
417         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
418         * doc/tm.texi: Regenerate.
419         * Makefile.in (OBJS-common): Add target-globals.o.
420         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
421         and target-globals.h.
422         (target-globals.o): New rule.
423         (GTFILES): Include $(srcdir)/target-globals.h.
424         * defaults.h (SWITCHABLE_TARGET): Define.
425         * gengtype.c (open_base_files): Add target-globals.h to the
426         list of includes.
427         * target-globals.h: New file.
428         * target-globals.c: Likewise.
429
430         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
431         * flags.h (target_flag_state): New structure.
432         (default_target_flag_state): Declare.
433         (this_target_flag_state): Declare as a variable or define as a macro.
434         (align_loops_log): Redefine as a macro.
435         (align_loops_max_skip, align_jumps_log): Likewise.
436         (align_jumps_max_skip, align_labels_log): Likewise.
437         (align_labels_max_skip, align_functions_log): Likewise.
438         * toplev.c (default_target_flag_state): New variable.
439         (this_target_flag_state): New conditional variable.
440         (align_loops_log): Delete.
441         (align_loops_max_skip, align_jumps_log): Likewise.
442         (align_jumps_max_skip, align_labels_log): Likewise.
443         (align_labels_max_skip, align_functions_log): Likewise.
444         * target-globals.h (this_target_flag_state): Declare.
445         (target_globals): Add a flag_state field.
446         (restore_target_globals): Copy the flag_state field to
447         this_target_flag_state.
448         * target-globals.c: Include flags.h.
449         (default_target_globals): Initialize the flag_state field.
450         (save_target_globals): Likewise.
451
452 2010-07-12  Jie Zhang  <jie@codesourcery.com>
453
454         * postreload.c (reg_symbol_ref[]): New.
455         (move2add_use_add2_insn): New.
456         (move2add_use_add3_insn): New.
457         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
458         (move2add_note_store): Likewise.
459
460 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
461
462         PR rtl-optimization/44752
463         * genautomata.c (main): Don't emit an empty file even if there
464         is no automaton.
465
466 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
467
468         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
469         ix86_solaris_return_in_memory.
470         * config/i386-protos.h: Reflect this.
471         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
472         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
473         Move ...
474         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
475
476 2010-07-12  Jie Zhang  <jie@codesourcery.com>
477
478         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
479         align the stack when it's going to be saved.
480
481 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
482
483         PR pch/14940
484         * config/host-solaris.c (mmap_fixed): New function.
485         (sol_gt_pch_get_address): Use it.
486         (sol_gt_pch_use_address): Likewise.
487
488 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
489
490         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
491         pentiumpro on Solaris 8 and 9/x86.
492         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
493         Document SSE/SSE2 support.
494         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
495
496 2010-07-12  Andi Kleen  <ak@linux.intel.com>
497
498         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
499         instead of gcc_assert to print better error message for multiple
500         prevailing defs.
501
502 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
503
504         * config/i386/i386.c (ix86_asm_output_function_label): Change format
505         string placeholder from 0x%x to %#x.
506         (ix86_code_end): Use putc to output '\n'.
507         (ix86_print_operand) <case ';'>: Use putc to output ';'.
508
509 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
510
511         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
512         in directive -export.
513
514 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
515
516         * reginfo.h (reg_classes_intersect_p): Change arguments type to
517         reg_class_t.
518         * rtl.h (reg_classes_intersect_p): Adjust prototype.
519
520         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
521         Remove macros.
522         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
523         rs6000_memory_move_cost): Remove
524         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
525         TARGET_MEMORY_MOVE_COST): Define.
526         (rs6000_register_move_cost): Make static. Change arguments type from
527         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
528         (rs6000_memory_move_cost): Make static. Change arguments type from
529         'enum reg_class' to reg_class_t.
530
531 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
532
533         PR middle-end/42505
534         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
535         lookup code into....
536         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
537         new functions.
538         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
539         * cfgloopanal.c (target_clobbered_regs): Define.
540         (init_set_costs): Initialize target_clobbered_regs.
541         (estimate_reg_pressure_cost): Add call_p argument.  When true,
542         adjust the number of available registers to exclude the
543         call-clobbered registers.
544         * cfgloop.h (target_clobbered_regs): Declare.
545         (estimate_reg_pressure_cost): Adjust declaration.
546         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
547         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
548         (determine_set_costs): Dump target_clobbered_regs.
549         (loop_body_includes_call): New function.
550         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
551         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
552         call_p flag through.
553         (best_gain_for_invariant): Likewise.
554         (find_invariants_to_move): Likewise.
555         (move_single_loop_invariants): Likewise, using already-computed
556         has_call field.
557
558 2010-07-10  Richard Guenther  <rguenther@suse.de>
559             Joern Rennecke  <joern.rennecke@embecosm.com>
560
561         PR debug/44832
562         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
563         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
564         unless they have DECL_IGNORED_P set.
565
566 2010-07-10  Richard Guenther  <rguenther@suse.de>
567
568         PR lto/44889
569         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
570         helper function.
571         (gimple_types_compatible_p): Similar to pointed-to
572         types allow and merge a mix of complete and incomplete aggregate.
573         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
574         (iterative_hash_gimple_type): Adjust for that.
575
576 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
577
578         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
579
580 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
581
582         PR objc/44140
583         * config/darwin.c (output_objc_section_asm_op): Save and restore
584         section when outputting ObjC section list.
585
586 2010-07-09  Jan Hubicka  <jh@suse.cz>
587
588         * lto-streamer-out.c (produce_symtab): Do not write alias
589         cgraph/varpool nodes.
590
591 2010-07-09  Jan Hubicka  <jh@suse.cz>
592
593         * tree-inline.c (declare_return_variable): Fix ICE while
594         inlining DECL_BY_VALUE function not in SSA form
595
596 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
597
598         PR tree-optimization/44576
599         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
600         New.  Pull out from is_loop_prefetching_profitable to implement
601         the trip count to ahead ratio heuristic.
602         (mem_ref_count_reasonable_p): New.  Pull out from
603         is_loop_prefetching_profitable to implement the instruction to
604         memory reference ratio heuristic.  Also consider not reasonable if
605         the memory reference count is above a threshold (to avoid
606         explosive compilation time.
607         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
608         is_loop_prefetching_profitable to implement the instruction to
609         prefetch ratio heuristic.
610         (is_loop_prefetching_profitable): Removed.
611         (loop_prefetch_arrays): Distribute the cost analysis across the
612         function to allow early exit of the prefetch analysis.
613         is_loop_prefetching_profitable is splitted into three functions,
614         with each one called as early as possible.
615         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
616         number of memory references in a loop is considered too many.
617
618 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
619
620         * reload.c (find_reloads): Don't clear badop if we have a winreg
621         alternative, but not win, and the class only has fixed regs.
622         * hard-reg-set.h (class_only_fixed_regs): Declare.
623         * reginfo.c (class_only_fixed_regs): New array.
624         (init_reg_sets_1): Initialize it.
625         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
626         discourage alternatives using the stack pointer.
627
628         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
629
630         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
631
632         * config/arm/arm.md (cbranchqi4): Fix array size.
633         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
634         calculating length.
635
636 2010-07-09  Richard Guenther  <rguenther@suse.de>
637
638         * gimple.c (struct type_fixup_s): New struct and VEC type.
639         (gimple_register_type_fixups): New static global.
640         (gimple_queue_type_fixup): New function.
641         (gimple_types_compatible_p): Queue type fixups instead of
642         applying them here.
643         (gimple_register_type): Apply queued fixups for the
644         canonical type.  Empty the type fixup queue.
645
646 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
647
648         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
649         * configure: Regenerate.
650         * config.in: Ditto.
651
652 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
653             Denys Vlasenko  <dvlasenk@redhat.com>
654             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
655
656         PR tree-optimization/28632
657         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
658         (extract_range_from_binary_expr): Further optimize
659         BIT_AND_EXPR and BIT_IOR_EXPR.
660
661 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
662
663         * tree-if-conv.c (fold_or_predicates): New.
664         (add_to_predicate_list): Call it.
665
666 2010-07-09  Richard Guenther  <rguenther@suse.de>
667
668         PR middle-end/44890
669         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
670         if base is a pointer.
671         * tree-cfg.c (verify_expr): Update MEM_REF checking.
672
673 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
674
675         PR target/44877
676         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
677         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
678         builtin mask for load/store builtins.
679
680 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
681
682         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
683         for "lock addl".
684         * configure: Regenerate.
685         * config/i386/i386.c (ix86_print_operand) <case ';'>:
686         Remove TARGET_MACHO.
687
688 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
689
690         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
691         default ISA flags.
692         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
693
694 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
695
696         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
697
698 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
699
700         * config/picochip/picochip.md (commsTestPort): Emit more
701         efficient sequence for tstport instruction.
702
703 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
704
705         * config/i386/i386.c (ix86_veclib_handler): Make static.
706
707 2010-07-09  Richard Guenther  <rguenther@suse.de>
708
709         PR tree-optimization/44852
710         * tree-ssa-alias.c: Include toplev.h for exact_log2.
711         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
712         in MEM_REF.
713         (indirect_refs_may_alias_p): Likewise.
714         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
715
716 2010-07-09  Richard Guenther  <rguenther@suse.de>
717
718         PR tree-optimization/44882
719         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
720         sets do conflict.
721         (vectorizable_load): Likewise.
722
723 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
724
725         PR target/40657
726         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
727         All callers changed.
728         Handle the case when we're called for the epilogue.
729         (thumb_unexpanded_epilogue): Use it.
730         (thumb1_expand_epilogue): Likewise.
731
732 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
733
734         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
735         both ranges are range_int_cst_p with non-negative minimum,
736         try harder to derive smaller range.
737
738 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
739
740         * genrecog.c: Include diagnostic-core.h before toplev.h.
741         * genoutput.c: Likewise.
742         * genextract.c: Likewise.
743         * genautomata.c: Likewise.
744         * genemit.c: Likewise.
745         * genpeep.c: Likewise.
746         * genattrtab.c: Likewise.
747         * genconditions.c: Likewise.
748         * genpreds.c: Likewise.
749
750 2010-07-08  Andi Kleen  <ak@linux.intel.com>
751
752         * lto-section-in.c (lto_section_name): Add missing comma.
753
754 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
755
756         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
757         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
758         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
759         (ia64_override_options): Rename to...
760         (ia64_option_override): ... this one. Make static.
761
762 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
763
764         PR middle-end/44843
765         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
766         pointed-to type of the offset in a MEM_REF to compute the alignment.
767
768 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
769
770         * final.c (final_scan_insn): Replace
771         TARGET_UNWIND_INFO macro check by unwind_emit
772         hook NULL check.
773         * targhooks.c (default_unwind_emit): Removed.
774         * targhooks.h (default_unwind_emit): Likewise.
775         * target.def (unwind_emit): Set default value to NULL.
776
777         * config/i386/i386-protos.h (ix86_asm_output_function_label):
778         New prototype.
779         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
780         for NULL fntype argument and allow 64-bit targets.
781         (ix86_asm_output_function_label): New function.
782         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
783         (ix86_handle_fndecl_attribute): Likewise.
784         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
785         * doc/doc/tm.texi: Regenerated.
786         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
787         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
788         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
789         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
790         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
791         * config/elfos.h: Likewise.
792         * config/i386/cygming.h: Likewise.
793         * config/netbsd-aout.h: Likewise.
794         * config/openbsd.h: Likewise.
795         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
796         by ix86_asm_output_function_label function call.
797         * varasm.c (assemble_start_function): Use
798         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
799
800 2010-07-08  Jan Hubicka  <jh@suse.cz>
801
802         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
803         New function.
804         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
805         Declare.
806         * ipa-cp.c (ipcp_estimate_growth): Use it.
807         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
808         Likewise.
809
810 2010-07-08  Jan Hubicka  <jh@suse.cz>
811
812         * tree-inline.c (declare_return_variable): Allocate annotation for new
813         temporary.
814
815 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
816
817         PR tree-optimization/44710
818         * tree-if-conv.c (parse_predicate): New.
819         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
820         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
821
822 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
823
824         * common.opt (ftree-loop-if-convert): New flag.
825         * doc/invoke.texi (ftree-loop-if-convert): Documented.
826         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
827         when flag_tree_loop_if_convert is set.
828
829 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
830
831         * config/i386/i386.c: Use short syntax for function calls
832         through function pointers.
833         * config/i386/i386.md: Ditto.
834
835 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
836
837         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
838
839 2010-07-08  Richard Guenther  <rguenther@suse.de>
840
841         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
842         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
843
844 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
845
846         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
847         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
848         (loc_list_from_tree): Likewise.
849         (output_loc_operands): Handle outputting DW_OP_const[48]u
850         with loc->dtprel set.
851         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
852
853 2010-07-08  Jan Hubicka  <jh@suse.cz>
854
855         * ipa.c: Include pointer-set.h
856         (cgraph_externally_visible_p): New attribute ALIASED;
857         when in LTO, hidden symbols are local unless they are aliased.
858         (function_and_variable_visibility): Compute aliased nodes;
859         handle LTO and hidden symbol on functions and vars.
860         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
861         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
862
863 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
864
865         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
866         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
867         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
868         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
869         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
870         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
871         (ix86_gen_probe_stack_range): Likewise.
872         (override_options): Set them.
873         (ix86_target_stack_probe): New function.
874         (ix86_compute_frame_layout): Force use of push instructions to
875         save registers if stack checking with probes is enabled.
876         (get_scratch_register_on_entry): New function.
877         (release_scratch_register_on_entry): Likewise.
878         (ix86_adjust_stack_and_probe): Likewise.
879         (output_adjust_stack_and_probe): Likewise.
880         (ix86_emit_probe_stack_range): Likewise.
881         (output_probe_stack_range): Likewise.
882         (ix86_expand_prologue): Emit stack checking code if static built-in
883         stack checking is enabled.
884         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
885         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
886         (output_adjust_stack_and_probe): Likewise.
887         (output_probe_stack_range): Likewise.
888         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
889         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
890         TARGET_STACK_PROBE.
891         (allocate_stack_worker_64): Likewise.
892         (allocate_stack): Likewise.
893         (adjust_stack_and_probe): New insn.
894         (probe_stack_range): Likewise.
895
896 2010-07-08  Richard Guenther  <rguenther@suse.de>
897
898         PR tree-optimization/44831
899         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
900         a MEM_REF preserving TBAA info of the original dereference.
901         Dereference the original pointer if the address is not invariant.
902         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
903         at least one invariant address that we are going to dereference.
904
905 2010-07-08  Richard Guenther  <rguenther@suse.de>
906
907         PR tree-optimization/44861
908         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
909         information when building MEM_REFs.
910         (vectorizable_load): Likewise.
911         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
912
913 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
914
915         * config/sol2-c.c: Do not include diagnostic-core.h.
916
917 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
918
919         PR bootstrap/44768
920         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
921         with respect to current_function_decl. Pass decl of the function.
922         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
923         * ipa-inline.c (compute_inline_parameters): Pass decl to
924         estimated_stack_frame_size.
925
926 2010-07-08  Richard Guenther  <rguenther@suse.de>
927
928         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
929         New function.
930         (valueize_refs): Call it.
931
932 2010-07-08  Richard Guenther  <rguenther@suse.de>
933
934         PR rtl-optimization/44838
935         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
936         SSA form do not use pointer equivalence.
937
938 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
939
940         * dwarf2out.c (AT_linkage_name): Delete.
941         (add_linkage_attr): New function.
942         (add_linkage_name): Call it to emit the linkage attribute.
943         (dwarf2out_finish): Likewise.
944         (move_linkage_attr): Explicitly accept both attribute variants.
945
946 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
947
948         * toplev.h: Do not include diagnostic-core.h.
949         Include diagnostic-core.h in every file that includes toplev.h.
950         * c-tree.h: Do not include toplev.h.
951         * pretty-print.h: Update comment.
952         * Makefile.in: Update dependencies.
953         * alias.c: Include diagnostic-core.h in every file that includes
954         toplev.h.
955         * attribs.c: Likewise.
956         * auto-inc-dec.c: Likewise.
957         * bb-reorder.c: Likewise.
958         * bt-load.c: Likewise.
959         * caller-save.c: Likewise.
960         * calls.c: Likewise.
961         * cfg.c: Likewise.
962         * cfganal.c: Likewise.
963         * cfgbuild.c: Likewise.
964         * cfgcleanup.c: Likewise.
965         * cfghooks.c: Likewise.
966         * cfgloop.c: Likewise.
967         * combine.c: Likewise.
968         * config/alpha/alpha.c: Likewise.
969         * config/arc/arc.c: Likewise.
970         * config/arm/arm.c: Likewise.
971         * config/arm/pe.c: Likewise.
972         * config/avr/avr.c: Likewise.
973         * config/bfin/bfin.c: Likewise.
974         * config/cris/cris.c: Likewise.
975         * config/crx/crx.c: Likewise.
976         * config/darwin-c.c: Likewise.
977         * config/darwin.c: Likewise.
978         * config/fr30/fr30.c: Likewise.
979         * config/frv/frv.c: Likewise.
980         * config/h8300/h8300.c: Likewise.
981         * config/host-darwin.c: Likewise.
982         * config/i386/i386.c: Likewise.
983         * config/i386/netware.c: Likewise.
984         * config/i386/nwld.c: Likewise.
985         * config/i386/winnt-cxx.c: Likewise.
986         * config/i386/winnt-stubs.c: Likewise.
987         * config/i386/winnt.c: Likewise.
988         * config/ia64/ia64-c.c: Likewise.
989         * config/ia64/ia64.c: Likewise.
990         * config/iq2000/iq2000.c: Likewise.
991         * config/lm32/lm32.c: Likewise.
992         * config/m32c/m32c-pragma.c: Likewise.
993         * config/m32c/m32c.c: Likewise.
994         * config/m32r/m32r.c: Likewise.
995         * config/m68hc11/m68hc11.c: Likewise.
996         * config/m68k/m68k.c: Likewise.
997         * config/mcore/mcore.c: Likewise.
998         * config/mep/mep-pragma.c: Likewise.
999         * config/mep/mep.c: Likewise.
1000         * config/mmix/mmix.c: Likewise.
1001         * config/mn10300/mn10300.c: Likewise.
1002         * config/moxie/moxie.c: Likewise.
1003         * config/pa/pa.c: Likewise.
1004         * config/pdp11/pdp11.c: Likewise.
1005         * config/picochip/picochip.c: Likewise.
1006         * config/rs6000/rs6000-c.c: Likewise.
1007         * config/rs6000/rs6000.c: Likewise.
1008         * config/rx/rx.c: Likewise.
1009         * config/s390/s390.c: Likewise.
1010         * config/score/score.c: Likewise.
1011         * config/score/score3.c: Likewise.
1012         * config/score/score7.c: Likewise.
1013         * config/sh/sh.c: Likewise.
1014         * config/sh/symbian-base.c: Likewise.
1015         * config/sh/symbian-c.c: Likewise.
1016         * config/sh/symbian-cxx.c: Likewise.
1017         * config/sol2-c.c: Likewise.
1018         * config/sol2.c: Likewise.
1019         * config/sparc/sparc.c: Likewise.
1020         * config/spu/spu.c: Likewise.
1021         * config/stormy16/stormy16.c: Likewise.
1022         * config/v850/v850-c.c: Likewise.
1023         * config/v850/v850.c: Likewise.
1024         * config/vax/vax.c: Likewise.
1025         * config/vxworks.c: Likewise.
1026         * config/xtensa/xtensa.c: Likewise.
1027         * convert.c: Likewise.
1028         * cse.c: Likewise.
1029         * cselib.c: Likewise.
1030         * dbgcnt.c: Likewise.
1031         * dbxout.c: Likewise.
1032         * ddg.c: Likewise.
1033         * dominance.c: Likewise.
1034         * emit-rtl.c: Likewise.
1035         * explow.c: Likewise.
1036         * expmed.c: Likewise.
1037         * fixed-value.c: Likewise.
1038         * fold-const.c: Likewise.
1039         * fwprop.c: Likewise.
1040         * gcse.c: Likewise.
1041         * ggc-common.c: Likewise.
1042         * ggc-page.c: Likewise.
1043         * ggc-zone.c: Likewise.
1044         * gimple-low.c: Likewise.
1045         * gimplify.c: Likewise.
1046         * graph.c: Likewise.
1047         * haifa-sched.c: Likewise.
1048         * ifcvt.c: Likewise.
1049         * implicit-zee.c: Likewise.
1050         * integrate.c: Likewise.
1051         * ira-build.c: Likewise.
1052         * ira-color.c: Likewise.
1053         * ira-conflicts.c: Likewise.
1054         * ira-costs.c: Likewise.
1055         * ira-lives.c: Likewise.
1056         * ira.c: Likewise.
1057         * lists.c: Likewise.
1058         * loop-doloop.c: Likewise.
1059         * loop-iv.c: Likewise.
1060         * lto-opts.c: Likewise.
1061         * lto-symtab.c: Likewise.
1062         * main.c: Likewise.
1063         * modulo-sched.c: Likewise.
1064         * optabs.c: Likewise.
1065         * params.c: Likewise.
1066         * plugin.c: Likewise.
1067         * postreload-gcse.c: Likewise.
1068         * postreload.c: Likewise.
1069         * predict.c: Likewise.
1070         * profile.c: Likewise.
1071         * real.c: Likewise.
1072         * regcprop.c: Likewise.
1073         * reginfo.c: Likewise.
1074         * regmove.c: Likewise.
1075         * reorg.c: Likewise.
1076         * resource.c: Likewise.
1077         * rtl.c: Likewise.
1078         * rtlanal.c: Likewise.
1079         * sched-deps.c: Likewise.
1080         * sched-ebb.c: Likewise.
1081         * sched-rgn.c: Likewise.
1082         * sdbout.c: Likewise.
1083         * sel-sched-dump.c: Likewise.
1084         * sel-sched-ir.c: Likewise.
1085         * simplify-rtx.c: Likewise.
1086         * stmt.c: Likewise.
1087         * stor-layout.c: Likewise.
1088         * store-motion.c: Likewise.
1089         * targhooks.c: Likewise.
1090         * tree-cfg.c: Likewise.
1091         * tree-cfgcleanup.c: Likewise.
1092         * tree-dump.c: Likewise.
1093         * tree-eh.c: Likewise.
1094         * tree-inline.c: Likewise.
1095         * tree-nomudflap.c: Likewise.
1096         * tree-object-size.c: Likewise.
1097         * tree-optimize.c: Likewise.
1098         * tree-outof-ssa.c: Likewise.
1099         * tree-phinodes.c: Likewise.
1100         * tree-profile.c: Likewise.
1101         * tree-ssa-ccp.c: Likewise.
1102         * tree-ssa-coalesce.c: Likewise.
1103         * tree-ssa-live.c: Likewise.
1104         * tree-ssa-loop-niter.c: Likewise.
1105         * tree-ssa-loop-prefetch.c: Likewise.
1106         * tree-ssa-loop.c: Likewise.
1107         * tree-ssa-structalias.c: Likewise.
1108         * tree-ssa-uninit.c: Likewise.
1109         * tree-ssa.c: Likewise.
1110         * tree-vect-data-refs.c: Likewise.
1111         * tree-vect-loop-manip.c: Likewise.
1112         * tree-vect-loop.c: Likewise.
1113         * tree-vect-patterns.c: Likewise.
1114         * tree-vect-stmts.c: Likewise.
1115         * tree-vrp.c: Likewise.
1116         * varasm.c: Likewise.
1117         * vec.c: Likewise.
1118         * web.c: Likewise.
1119         * xcoffout.c: Likewise.
1120
1121 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
1122
1123         * gengtype.c (write_field_root): New function.
1124         (write_root): Use it.
1125
1126 2010-07-07  Wei Guozhi  <carrot@google.com>
1127
1128         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1129         of lowest bits to lshift/compare): Add a missing line.
1130
1131 2010-07-07  Wei Guozhi  <carrot@google.com>
1132
1133         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1134         of lowest bits to lshift/compare): New.
1135
1136 2010-07-07  Tom Tromey  <tromey@redhat.com>
1137
1138         * doc/tm.texi: Update.
1139         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1140         Add @hook.
1141         * target.def (want_debug_pub_sections): New hook.
1142         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1143         * dwarf2out.c (add_pubname_string): Check
1144         targetm.want_debug_pub_sections.
1145         (add_pubname): Likewise.
1146         (add_pubtype): Likewise.
1147
1148 2010-07-07  Jie Zhang  <jie@codesourcery.com>
1149
1150         * genautomata.c (output_automata_list_min_issue_delay_code):
1151         Correctly decompress min_issue_delay.
1152
1153 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1154
1155         PR rtl-optimization/44404
1156         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1157         possible, use reg_overlap_mentioned_p instead.
1158
1159 2010-07-07  Duncan Sands  <baldrick@free.fr>
1160
1161         PR middle-end/41355
1162         * tree.c (build_function_type_skip_args): Copy the original type using
1163         build_distinct_type_copy rather than copy_node.
1164
1165 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1166
1167         PR target/44850
1168         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1169         revision 161876.
1170         (ix86_expand_prologue): Likewise.
1171         (ix86_handle_fndecl_attribute): Likewise.
1172         (ix86_asm_declare_function_name): Likewise.
1173         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1174         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1175         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1176         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1177         * doc/extend.texi: Likewise.
1178
1179 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
1180
1181         PR target/44844
1182         * config/i386/i386.md (rdrand<mode>): Changed to expand to
1183         retry if the carry flag isn't valid.
1184         (rdrand<mode>_1): New.
1185
1186 2010-07-07  Richard Guenther  <rguenther@suse.de>
1187
1188         PR middle-end/44790
1189         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1190         for expanding the constant offset for MEM_REFs.
1191
1192 2010-07-07  Richard Guenther  <rguenther@suse.de>
1193
1194         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1195         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
1196         * gimple.h (is_gimple_operand): Remove.
1197         * gimple.c (is_gimple_operand): Likewise.
1198         (walk_gimple_op): Fix wi->val_only setting for calls.
1199         * tree-cfg.c (verify_gimple_call): Fix argument validation.
1200         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1201         invalid gimple calls.
1202
1203 2010-07-06  Jan Hubicka  <jh@suse.cz>
1204
1205         * lto-cgraph.c (output_cgraph): Add missing declaration.
1206
1207 2010-07-06  Jan Hubicka  <jh@suse.cz>
1208
1209         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1210         partition.
1211
1212 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
1213
1214         * doc/gimple.texi (GIMPLE_DEBUG): Document.
1215         * doc/rtl.texi (Debug Information): New node.
1216         (NOTE_INSN_VAR_LOCATION): Document.
1217         (debug_insn): Likewise.
1218         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1219
1220 2010-07-07  Jan Hubicka  <jh@suse.cz>
1221
1222         With parts by Richard Guenther.
1223
1224         PR middle-end/44813
1225         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1226         for functions passed by reference.
1227         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1228         in memory when passed by reference.
1229         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1230         beggining.
1231         * ipa-split.c (split_function): Cleanup way return value is passed;
1232         handle SSA DECL_BY_REFERENCE retvals.
1233         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1234         DECL_BY_REFERENCE is set.
1235         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1236         find_what_p_points_to): Handle RESULT_DECL.
1237         * tree-inline.c (declare_return_variable): Get new entry_block argument;
1238         when passing by reference ensure that RESULT_DECL is gimple_val.
1239         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1240         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1241
1242 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
1243
1244         PR rtl-optimization/44787
1245         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1246         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1247
1248 2010-07-06  Jan Hubicka  <jh@suse.cz>
1249
1250         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1251         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1252         with body can prevail.
1253         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1254         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1255         * cgraph.c (cgraph_get_node_or_alias): New function.
1256         * cgraph.h (cgraph_get_node_or_alias): Declare.
1257
1258 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
1259
1260         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1261         support.
1262         (ix86_expand_prologue): Likewise.
1263         (ix86_handle_fndecl_attribute): Likewise.
1264         (ix86_asm_declare_function_name): New function for
1265         ASM_DECLARE_FUNCTION_NAME.
1266         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
1267         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
1268         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
1269         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
1270         * doc/extend.texi: Adjust documentation about ms_hook_prologue
1271         attribute.
1272
1273 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
1274
1275         * config/i386/i386.md (immediate_operand): New mode attribute.
1276
1277         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
1278         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
1279         using P mode iterator.
1280         (pro_epilogue_adjust_stack_di_2): Rename from
1281         pro_epilogue_adjust_stack_rex64_2.
1282
1283         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
1284
1285 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
1286
1287         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
1288         through gen_mov_insv_1 function pointer.
1289         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
1290         gen_truncxf<mode>2 through gen_truncxf function pointer.
1291         (remainder<mode>3): Ditto.
1292         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
1293         (allocate_stack): Call gen_allocate_stack_worker_64 or
1294         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
1295         function pointer.
1296         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
1297         function pointer.
1298
1299 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
1300
1301         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
1302         operand constraint instead of <r><i>m.
1303
1304 2010-07-06  Richard Guenther  <rguenther@suse.de>
1305
1306         PR middle-end/44828
1307         * convert.c (convert_to_integer): Watch out for overflowing
1308         MULT_EXPR as well.
1309
1310 2010-07-05  Jan Hubicka  <jh@suse.cz>
1311
1312         * lto-streamer.c (write_symbol_vec): Rename to ...
1313         (write_symbol) ... this one; write only symbol given and when
1314         present in cache. Sanity check that what is defined is present
1315         in cgraph/varpool with body/finalized decl.
1316         (write_symbols_of_kind): Remove.
1317         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
1318         pairs to produce symtab.
1319         (produce_asm_for_decls): Update call of produce_symtab; don't do so
1320         when doing WPA streaming.
1321
1322 2010-07-05  Jan Hubicka  <jh@suse.cz>
1323
1324         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
1325         function is still available to fold into.
1326
1327 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1328
1329         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
1330         * function.h (struct_function): Change type of local_decls field
1331         to a VEC.
1332         (add_local_decl): New function.
1333         (FOR_EACH_LOCAL_DECL): New macro.
1334         * cfgexpand.c (init_vars_expansion): Adjust for new type of
1335         cfun->local_decls.
1336         (estimated_stack_frame_size): Likewise.
1337         (expand_used_vars): Likewise.
1338         * cgraphbuild.c (build_cgraph_edges): Likewise.
1339         * function.c (instantiate_decls_1): Likewise.
1340         * ipa-struct-reorg.c (build_data_structure): Likewise.
1341         * ipa-type-escape.c (analyze_function): Likewise.
1342         * lto-streamer-in.c (input_function): Likewise.
1343         * lto-streamer-out.c (output_function): Likewise.
1344         * tree-ssa-live.c (remove_unused_locals): Likewise.
1345         * tree.c (free_lang_data_in_decl): Likewise.
1346         (find_decls_types_in_node): Likewise.
1347         * omp-low.c (remove_exit_barrier): Likewise.
1348         (expand_omp_taskreg): Likewise.
1349         (list2chain): Rename to...
1350         (vec2chain): ...this.  Adjust.
1351         * cgraphunit.c (assemble_thunk): Call add_local_decl.
1352         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1353         * gimple-low.c (record_vars_into): Likewise.
1354         * tree-inline.c (remap_decls): Likewise.
1355         (declare_return_variable): Likewise.
1356         (declare_inline_vars): Likewise.
1357         (copy_forbidden): Adjust for new type of cfun->local_decls.
1358         (add_local_variables): New function.
1359         (expand_call_inline): Call it.
1360         (tree_function_versioning): Likewise.
1361
1362 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1363
1364         AVX Programming Reference (June, 2010)
1365         * config/i386/cpuid.h (bit_F16C): New.
1366         (bit_RDRND): Likewise.
1367         (bit_FSGSBASE): Likewise.
1368
1369         * config/i386/i386-builtin-types.def: Add
1370         "DEF_FUNCTION_TYPE (UINT16)", function types for
1371         float16 <-> float conversions and
1372         "DEF_FUNCTION_TYPE (VOID, UINT64)".
1373
1374         * config/i386/i386-c.c (ix86_target_macros_internal): Support
1375         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1376         OPTION_MASK_ISA_F16C.
1377
1378         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1379         (OPTION_MASK_ISA_RDRND_SET): Likewise.
1380         (OPTION_MASK_ISA_F16C_SET): Likewise.
1381         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1382         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1383         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1384         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1385         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1386         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1387         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1388         (override_options): Handle them.
1389         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1390         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1391         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1392         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1393         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1394         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1395         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1396         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1397         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1398         (bdesc_args): Likewise.
1399         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1400         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1401         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
1402         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
1403         Handle non-memory store.
1404
1405         * config/i386/i386.h (TARGET_FSGSBASE): New.
1406         (TARGET_RDRND): Likewise.
1407         (TARGET_F12C): Likewise.
1408
1409         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
1410         (UNSPEC_VCVTPS2PH): Likewise.
1411         (UNSPECV_RDFSBASE): Likewise.
1412         (UNSPECV_RDGSBASE): Likewise.
1413         (UNSPECV_WRFSBASE): Likewise.
1414         (UNSPECV_WRGSBASE): Likewise.
1415         (UNSPECV_RDRAND): Likewise.
1416         (rdfsbase<mode>): Likewise.
1417         (rdgsbase<mode>): Likewise.
1418         (wrfsbase<mode>): Likewise.
1419         (wrgsbase<mode>): Likewise.
1420         (rdrand<mode>): Likewise.
1421
1422         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
1423
1424         * config/i386/immintrin.h (_rdrand_u16): New.
1425         (_rdrand_u32): Likewise.
1426         (_readfsbase_u32): Likewise.
1427         (_readfsbase_u64): Likewise.
1428         (_readgsbase_u32): Likewise.
1429         (_readgsbase_u64): Likewise.
1430         (_writefsbase_u32): Likewise.
1431         (_writefsbase_u64): Likewise.
1432         (_writegsbase_u32): Likewise.
1433         (_writegsbase_u64): Likewise.
1434         (_rdrand_u64): Likewise.
1435         (_cvtsh_ss): Likewise.
1436         (_mm_cvtph_ps): Likewise.
1437         (_mm256_cvtph_ps): Likewise.
1438         (_cvtss_sh): Likewise.
1439         (_mm_cvtps_ph): Likewise.
1440         (_mm256_cvtps_ph): Likewise.
1441
1442         * config/i386/sse.md (vcvtph2ps): New.
1443         (*vcvtph2ps_load): Likewise.
1444         (vcvtph2ps256): Likewise.
1445         (vcvtps2ph): Likewise.
1446         (*vcvtps2ph): Likewise.
1447         (*vcvtps2ph_store): Likewise.
1448         (vcvtps2ph256): Likewise.
1449
1450         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
1451
1452         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
1453
1454 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
1455
1456         PR bootstrap/44512
1457         * genenums.c (main): Output include of insn-constants.h
1458         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
1459
1460 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
1461
1462         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
1463         (override_options): Initialize it.
1464         (ix86_expand_prologue): Use it.
1465
1466 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
1467
1468         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
1469
1470 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
1471
1472         * double-int.h (fit_double_type): Remove declaration.
1473         * double-int.c (fit_double_type): Remove function.
1474         * tree.h (int_fits_type_p): Adjust prototype.
1475         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
1476         instead of fit_double_type.
1477         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
1478         instead of fit_double_type and build_int_cst_wide.
1479         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
1480         instead of fit_double_type and build_int_cst_wide.
1481         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
1482         of fit_double_type.
1483
1484 2010-07-05  Jan Hubicka  <jh@suse.cz>
1485
1486         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
1487         in_other_partition.
1488         * lto-cgraph.c (referenced_from_other_partition_p,
1489         reachable_from_other_partition_p): Use in_other_partition flags.
1490         (output_node, output_varpool_node): COMDAT nodes always have private
1491         copies and thus are never used from other partition.
1492
1493 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
1494
1495         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1496         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
1497         * config/ia64/ia64.c Include reload.h.
1498         (ia64_memory_move_cost): New function.
1499         (TARGET_MEMORY_MOVE_COST): Define.
1500         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
1501         memory_move_cost.
1502
1503 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
1504
1505         PR middle-end/42505
1506         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
1507         comments about cost model.
1508         (try_add_cand_for):  Add second strategy for choosing initial set
1509         based on original IVs, controlled by ORIGINALP argument.
1510         (get_initial_solution): Add ORIGINALP argument.
1511         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
1512         (find_optimal_iv_set): Try two different strategies for choosing
1513         the IV set, and return the one with lower cost.
1514
1515 2010-07-05  Richard Guenther  <rguenther@suse.de>
1516
1517         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
1518
1519 2010-07-05  Richard Guenther  <rguenther@suse.de>
1520
1521         * tree.c (reference_alias_ptr_type): New function.
1522         * tree.h (reference_alias_ptr_type): Declare.
1523         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
1524         allow non-TARGET_MEM_REF new refs.
1525         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
1526         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
1527         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
1528         (create_mem_ref): Get alias pointer type.  Adjust calls to
1529         create_mem_ref_raw.
1530         (maybe_fold_tmr): Likewise.
1531         * tree-flow.h (create_mem_ref): Adjust prototype.
1532
1533 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
1534
1535         PR c++/44808
1536         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
1537         *from_p is VAR_DECL.
1538
1539 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1540
1541         * tree.h (build_call_list): Remove.
1542         * tree.c (build_call_list): Remove.
1543
1544 2010-07-05  Richard Guenther  <rguenther@suse.de>
1545
1546         * double-int.h (double_int_sub): Declare.
1547         * double-int.c (double_int_sub): New function.
1548         * dwarf2out.c (field_byte_offset): Use it.
1549         * fixed-value.c (do_fixed_add): Likewise.
1550         (do_fixed_multiply): Likewise.
1551         (do_fixed_divide): Likewise.
1552         * tree-predcom.c (add_ref_to_chain): Likewise.
1553         (determine_roots_comp): Likewise.
1554         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
1555
1556 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1557
1558         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
1559         implementations.
1560
1561 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
1562
1563         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
1564         * arm-modes.def (CC_NOTB): Don't define.
1565         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
1566         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
1567         (LTUGEU): New code_iterator.
1568         (cnb, optab): New corresponding code_attrs.
1569         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
1570         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
1571         using LTUGEU.
1572         (addsi3_carryin_shift_<optab>): Likewise.
1573         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
1574         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
1575         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
1576         (subsi3_compare): Renamed from subsi3_compare0_c.
1577         Change CC_NOTB to CC.
1578         (arm_subsi3_insn): Allow constants for operand 0.
1579         (compare_scc peephole for eq case): New.
1580         (compare_scc splitters): Change CC_NOTB to CC.
1581
1582 2010-07-05  Richard Guenther  <rguenther@suse.de>
1583
1584         * tree-ssa-loop-im.c (for_each_index): Do not handle
1585         ALIGN_INDIRECT_REF.
1586         (gen_lsm_tmp_name): Likewise.
1587         * tree-dump.c (dequeue_and_dump): Likewise.
1588         * tree-pretty-print.c (dump_generic_node): Likewise.
1589         (op_code_prio): Likewise.
1590         (op_symbol_code): Likewise.
1591         * tree.c (staticp): Likewise.
1592         (build1_stat): Likewise.
1593         * tree.h (INDIRECT_REF_P): Likewise.
1594         * fold-const.c (maybe_lvalue_p): Likewise.
1595         (operand_equal_p): Likewise.
1596         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1597         (ao_ref_init_from_vn_reference): Likewise.
1598         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1599         (find_interesting_uses_address): Likewise.
1600         * dwarf2out.c (loc_list_from_tree): Likewise.
1601         * gimplify.c (gimplify_expr): Likewise.
1602         * tree-eh.c (tree_could_trap_p): Likewise.
1603         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1604         * cfgexpand.c (expand_debug_expr): Likewise.
1605         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1606         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1607         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1608         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
1609         * tree-ssa-operands.c (get_expr_operands): Likewise.
1610         * expr.c (safe_from_p): Likewise.
1611         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
1612         * tree-vect-data-refs.c (vect_setup_realignment): Build
1613         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
1614         * tree-vect-stmts.c (vectorizable_load): Likewise.
1615         * tree.def (ALIGN_INDIRECT_REF): Remove.
1616
1617 2010-07-05  Richard Guenther  <rguenther@suse.de>
1618
1619         PR tree-optimization/44784
1620         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
1621         for inserted stmts.
1622         (find_or_generate_expression): Fix SCCVN insertion check.
1623
1624 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
1625
1626         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
1627         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1628         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
1629         directives.
1630
1631 2010-07-05  Ira Rosen  <irar@il.ibm.com>
1632
1633         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
1634         statements that are not vectorized.
1635         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1636         in INSIDE_COST.
1637
1638 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
1639
1640         PR bootstrap/44820
1641         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1642
1643 2010-07-05  Richard Guenther  <rguenther@suse.de>
1644
1645         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1646         RESULT_DECLs properly.
1647
1648 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1649
1650         PR rtl-optimization/44695
1651         * config/i386/i386.md (extract_code): Removed.
1652         (<u>divmodqi4): Likewise.
1653         (divmodqi4): New.
1654         (udivmodqi4): Likewise.
1655         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1656         (udivmodhiqi3): Likewise.
1657
1658 2010-07-04  Jan Hubicka  <jh@suse.cz>
1659
1660         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1661
1662 2010-07-04  Jan Hubicka  <jh@suse.cz>
1663
1664         * cgraphunit.c (init_cgraph): Only initialize dump file if it
1665         is not already initialized.
1666
1667 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1668
1669         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1670         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1671         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1672         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1673         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1674         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1675         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
1676         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
1677         (sync_new_nand_optab): Redefine as macros.
1678         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
1679         Delete.
1680         (direct_optab_index): New enum.
1681         (direct_optab_d): New structure.
1682         (direct_optab): New typedef.
1683         (direct_optab_table): Declare.
1684         (direct_optab_handler, set_direct_optab_handler): New functions.
1685         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
1686         (sync_lock_release_optab): New macros.
1687         * optabs.c (direct_optab_table): New variable.
1688         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
1689         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
1690         cmpstr_optab and cmpstrn_optab.
1691         (emit_conditional_move): Likewise for movcc_optab.
1692         (can_conditionally_move_p): Likewise for movcc_gen_code.
1693         (init_insn_codes): Clear direct_optab_table.
1694         (init_optabs): Don't initialize the new "direct optabs" here.
1695         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
1696         vcond_gen_code.
1697         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
1698         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
1699         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
1700         (expand_sync_operation): Likewise other sync_*_optabs.
1701         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
1702         to sync_compare_and_swap_optab.
1703         (expand_sync_lock_test_and_set): Use direct_optab_handler for
1704         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
1705         to the names of both.
1706         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
1707         cmpstr_optab and cmpstrn_optab.
1708         (expand_builtin_lock_release): Likewise sync_lock_release.
1709         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
1710         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
1711         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
1712         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
1713         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
1714         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
1715         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
1716         (sync_lock_test_and_set, sync_lock_release): Delete.
1717         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
1718         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
1719         * genopinit.c (optabs): Use set_direct_optab_handler for the new
1720         macro optabs.
1721         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
1722         the "optab" local variable.  Use direct_optab_handler for optab and
1723         sync_compare_and_swap_optab.
1724         * reload1.c (reload_in_optab, reload_out_optab): Delete.
1725         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
1726         reload_in_optab and reload_out_optab.
1727         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1728         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
1729         * config/pa/pa.c (pa_secondary_reload): Likewise.
1730         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
1731         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
1732         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
1733         (VMSupportsCS8_builtin): Likewise.
1734
1735 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1736
1737         * optabs.h (optab_handlers): Change type of insn_code to int.
1738         (optab_handler, set_optab_handler, convert_optab_handler)
1739         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1740         CODE_FOR_nothing".
1741         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1742         (init_insn_codes): Zero both the above arrays.
1743         (init_optabs): Never call init_insn_codes first time around.
1744
1745 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1746
1747         * optabs.h (optab_handler, convert_optab_handler): Turn into
1748         inline functions that return an insn code.
1749         (set_optab_handler, set_convert_optab_handler): New functions.
1750         * builtins.c: Replace optab_handler(X)->insn_code with
1751         optab_handler or set_optab_handler thoughout.  Likewise
1752         convert_optab_handler(X)->insn_code with convert_optab_handler
1753         and set_convert_optab_handler.
1754         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1755         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1756         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1757         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1758         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1759         config/spu/spu.c: Likewise.
1760
1761 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1762
1763         PR target/44531
1764         * config.gcc (sh*-*-*): Use regular expressions instead of
1765         the 'i' modifier for sed substitutions.
1766
1767 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1768
1769         * gimple.c (gimple_body): Comments added.
1770
1771 2010-07-04  Richard Guenther  <rguenther@suse.de>
1772
1773         PR middle-end/44809
1774         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1775         of an INDIRECT_REF.
1776
1777 2010-07-04  Richard Guenther  <rguenther@suse.de>
1778
1779         PR tree-optimization/44479
1780         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1781         extra SSA name copy statements which preserves points-to
1782         information.
1783         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1784         Copy points-to information for all pointers.  Properly handle
1785         MEM_REFs.
1786         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
1787         copy statements.
1788         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1789         dependency.
1790
1791 2010-07-04  Richard Guenther  <rguenther@suse.de>
1792
1793         PR middle-end/44785
1794         * tree-inline.c (initialize_inlined_parameters): Do not
1795         re-use pointer-map slot over remap_type call.
1796
1797 2010-07-04  Richard Guenther  <rguenther@suse.de>
1798
1799         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1800
1801 2010-07-04  Richard Guenther  <rguenther@suse.de>
1802
1803         PR tree-optimization/44656
1804         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1805         again after value-replacing in the defintions lhs.
1806
1807 2010-07-04  Ira Rosen  <irar@il.ibm.com>
1808             Revital Eres  <eres@il.ibm.com>
1809
1810         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1811         Document new arguments.
1812         * doc/tm.texi: Regenerate.
1813         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1814         Handle unaligned store.
1815         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1816         * target.def (builtin_vectorization_cost): Add new arguments.
1817         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1818         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1819         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1820         (vect_vfa_segment_size): Fix indentation.
1821         * tree-vectorizer.h (struct _vect_peel_info): New.
1822         (struct _vect_peel_extended_info): New.
1823         (struct _loop_vec_info): Add new field for peeling hash table and a
1824         macro for its access.
1825         (VECT_MAX_COST): Define.
1826         (vect_get_load_cost): Declare.
1827         (vect_get_store_cost, vect_get_known_peeling_cost,
1828         vect_get_single_scalar_iteraion_cost): Likewise.
1829         (vect_supportable_dr_alignment): Add new argument.
1830         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1831         field.
1832         (destroy_loop_vec_info): Free peeling hash table.
1833         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1834         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1835         vect_analyze_slp. Fix indentation.
1836         (vect_get_single_scalar_iteraion_cost): New function.
1837         (vect_get_known_peeling_cost): Likewise.
1838         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1839         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1840         statement. Move outside cost calculation inside unknown peeling case.
1841         Call vect_get_known_peeling_cost for known amount of peeling.
1842         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1843         reference to the print message of forced alignment.
1844         (vect_verify_datarefs_alignment): Update call to
1845         vect_supportable_dr_alignment.
1846         (vect_get_data_access_cost): New function.
1847         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1848         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1849         vect_peeling_hash_choose_best_peeling): Likewise.
1850         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1851         to store all the accesses in the loop and find best possible access to
1852         align using peeling for known alignment case. For unknown alignment
1853         check if stores are preferred or if peeling is worthy.
1854         (vect_find_same_alignment_drs): Analyze pairs of loads too.
1855         (vect_supportable_dr_alignment): Add new argument and check aligned
1856         accesses according to it.
1857         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1858         (cost_for_stmt): Call vect_get_stmt_cost.
1859         (vect_model_simple_cost): Likewise.
1860         (vect_model_store_cost): Call vect_get_stmt_cost. Call
1861         vect_get_store_cost to calculate the cost of the statement.
1862         (vect_get_store_cost): New function.
1863         (vect_model_load_cost): Call vect_get_stmt_cost. Call
1864         vect_get_load_cost to calculate the cost of the statement.
1865         (vect_get_load_cost): New function.
1866         (vectorizable_store): Update call to vect_supportable_dr_alignment.
1867         (vectorizable_load): Likewise.
1868         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1869         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1870         arguments. Handle unaligned store.
1871         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1872         (rs6000_builtin_support_vector_misalignment): Return true for word and
1873         double word alignments for VSX.
1874         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1875         vect_supportable_dr_alignment and builtin_vectorization_cost.
1876
1877 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1878
1879         PR target/44597
1880         * config/pa/predicates.md (prefetch_cc_operand): Remove.
1881         (prefetch_nocc_operand): Likewise.
1882         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1883         (prefetch_20): New insn.
1884         (prefetch_cc): Remove.
1885         (prefetch_nocc): Likewise.
1886
1887 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1888
1889         * expr.c (vector_mode_valid_p): Move to c-common.c.
1890         * expr.h (vector_mode_valid_p): Do not declare here.
1891         * system.h: Poison GCC_EXPR_H in front-ends.
1892         * Makefile.in: Update dependencies.
1893
1894 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1895
1896         PR target/44705
1897         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1898
1899 2010-07-03  Jan Hubicka  <jh@suse.cz>
1900
1901         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1902         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1903         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1904         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1905         Likewise.
1906
1907         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1908         Update timevars.V
1909         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1910         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1911         TV_IPA_LTO_DECL_OUT): New.
1912         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1913
1914 2010-07-03  Jan Hubicka  <jh@suse.cz>
1915
1916         * ipa-inline.c (update_edge_key): Break out from ...
1917         update_callers_keys): ... here;
1918         (update_callee_keys): Update only the edges from caller to callee.
1919         (update_all_calle_keys): Do what update_calle_keys did.
1920         (decide_inlining_of_small_functions): Avoid recomputing of all
1921         callees when badness increase.
1922
1923 2010-07-03  Jie Zhang  <jie@codesourcery.com>
1924
1925         * config/arm/arm.c (arm_attr_length_move_neon): New.
1926         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1927         * config/arm/neon.md (define_mode_attr V_slen): Remove.
1928         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1929         to compute length attribute.
1930
1931 2010-07-03  Jie Zhang  <jie@codesourcery.com>
1932
1933         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1934         as predicate for operand 1 and remove its constraint.
1935         * config/arm/predicates.md (vfp_register_operand): New.
1936         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1937         (*push_fp_multi): Likewise.
1938
1939 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
1940
1941         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1942
1943 2010-07-03  Jan Hubicka  <jh@suse.cz>
1944
1945         * config/i386/i386.c (override_options): Revert accidental commit.
1946
1947 2010-07-02  Le-Chun Wu  <lcwu@google.com>
1948
1949         PR c++/44128
1950         * doc/invoke.texi: Update documentation of -Wshadow.
1951
1952 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1953             Julian Brown  <julian@codesourcery.com>
1954             Sandra Loosemore <sandra@codesourcery.com>
1955
1956         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1957         comparisons.  Adjust to take both operands.
1958         (arm_select_cc_mode): Handle DImode comparisons.
1959         (arm_gen_compare_reg): Generate a scratch register for DImode
1960         comparisons which require one.  Use xor for Thumb equality checks.
1961         (arm_const_double_by_immediates): New.
1962         (arm_print_operand): Allow 'Q' and 'R' for constants.
1963         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1964         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1965         arm_canonicalize_comparison.
1966         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1967         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1968         prototype.
1969         (arm_const_double_by_immediates): Declare.
1970         * config/arm/constraints.md (Di): New constraint.
1971         * config/arm/predicates.md (arm_immediate_di_operand)
1972         (arm_di_operand, cmpdi_operand): New.
1973         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1974         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1975         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1976         (cstoredi4): Handle non-Cirrus also.
1977
1978 2010-07-02  Julian Brown  <julian@codesourcery.com>
1979             Sandra Loosemore <sandra@codesourcery.com>
1980
1981         PR target/43703
1982         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1983         (smax<mode>3): Disable for NEON float modes when
1984         flag_unsafe_math_optimizations is false.
1985         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1986         (*mul<mode>3_neon)
1987         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1988         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1989         for NEON float modes when flag_unsafe_math_optimizations is false.
1990         (quad_halves_<code>v4sf): Only enable if
1991         flag_unsafe_math_optimizations is true.
1992         * doc/invoke.texi (ARM Options): Add note about floating point
1993         vectorization requiring -funsafe-math-optimizations.
1994
1995 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1996             Julian Brown  <julian@codesourcery.com>
1997
1998         * config/arm/neon.md (UNSPEC_VABA): Delete.
1999         (UNSPEC_VABAL): Delete.
2000         (UNSPEC_VABS): Delete.
2001         (UNSPEC_VMUL_N): Delete.
2002         (adddi3_neon): New.
2003         (subdi3_neon): New.
2004         (mul<mode>3add<mode>_neon): Make the pattern named.
2005         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
2006         (neon_vadd<mode>): Replace with define_expand, and move the remaining
2007         unspec parts...
2008         (neon_vadd<mode>_unspec): ...to this.
2009         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
2010         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
2011         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
2012         (neon_vaba<mode>): Rewrite in terms of vabd.
2013         (neon_vabal<mode>): Rewrite in terms of vabdl.
2014         (neon_vabs<mode>): Rewrite without unspec.
2015         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
2016         (*arm_subdi3): Likewise.
2017         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
2018         No_op attribute to disable assembly output checks.
2019         * config/arm/arm_neon.h: Regenerated.
2020         * doc/arm-neon-intrinsics.texi: Regenerated.
2021
2022 2010-07-02  Jan Hubicka  <jh@suse.cz>
2023
2024         * ipa-split.c (split_function): For aggregate values, set the return
2025         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
2026         *<retval> = fncall.part ().
2027         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
2028
2029 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2030
2031         * config/arm/neon.md (UNSPEC_VAND): Delete.
2032         (UNSPEC_VBIC): Delete.
2033         (UNSPEC_VCLZ): Delete.
2034         (UNSPEC_VCNT): Delete.
2035         (UNSPEC_VEOR): Delete.
2036         (UNSPEC_VORN): Delete.
2037         (UNSPEC_VORR): Delete.
2038         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
2039         core registers too.
2040         (anddi3_neon): Likewise.
2041         (orndi3_neon): Likewise.
2042         (bicdi3_neon): Likewise.
2043         (xordi3_neon): Likewise.
2044         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
2045         rid of unspec and handle unused operand.
2046         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
2047         * config/arm/predicates.md (imm_for_neon_logic_operand):
2048         Require TARGET_NEON.
2049         (imm_for_neon_inv_logic_operand): Likewise.
2050         * config/arm/arm.md (define_split for logical_binary_operator):
2051         Disable for NEON registers.
2052         (anddi3): Add new define_expand, and rename the insn.  Disable
2053         this insn for NEON, where anddi3_neon now applies.
2054         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2055         (iordi3): As for anddi3.
2056         (xordi3): Likewise.
2057         * config/arm/neon.ml (Vand): Split DImode variants and mark them
2058         as No_op to disable testing for exact instruction match.
2059         (Vorr): Likewise.
2060         (Veor): Likewise.
2061         (Vbic): Likewise.
2062         (Vorn): Likewise.
2063         * config/arm/arm_neon.h: Regenerated.
2064         * doc/arm-neon-intrinsics.texi: Regenerated.
2065
2066 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2067
2068         * expr.h (emit_stack_probe): Declare.
2069         * explow.c (emit_stack_probe): Make global.
2070         (anti_adjust_stack_and_probe): Fix comments.
2071         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2072         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2073         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2074         * config/sparc/sparc.c: Include except.h.
2075         (sparc_emit_probe_stack_range): New function.
2076         (output_probe_stack_range): Likewise.
2077         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2078         built-in stack checking is enabled.
2079         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2080         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2081         (probe_stack_range): New insn.
2082
2083 2010-07-02  Richard Guenther  <rguenther@suse.de>
2084
2085         PR target/43958
2086         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2087         for argument alignment.
2088
2089 2010-07-02  Jan Hubicka  <jh@suse.cz>
2090
2091         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2092         walk backwards from entry_bb to check only those basic block of header
2093         that might lead to execution of split part.
2094         (consider_split) ... here.
2095         (find_return_bb): Allow assignment in return BB.
2096         (find_retval): New.
2097         (split_function): Fix name of cloned function; take care of updating
2098         return value in return_bb containing move.
2099
2100 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
2101
2102         PR target/44771
2103         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2104         used variable insn.
2105
2106 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2107
2108         * implicit-zee.c (combine_reaching_defs): Fix long lines.
2109         (is_set_with_extension_DI): Delete.
2110         (struct zero_extend_info): New structure.
2111         (add_removable_zero_extend): New function.
2112         (find_removable_zero_extends): Use note_stores to find SETs.
2113         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2114
2115 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
2116
2117         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2118         is_miss_rate_acceptable. Pull total_positions computation
2119         out of the loops.  Early return if miss_positions exceeds
2120         the acceptable threshold.
2121         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2122         is_miss_rate_acceptable after renaming of compute_miss_rate.
2123
2124 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
2125
2126         PR middle-end/44576
2127         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2128         of 1000) for miss rate if the address diference is greater than or
2129         equal to the cache line size (the two reference will never hit the
2130         same cache line).
2131
2132 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
2133
2134         PR target/42835
2135         * config/arm/arm-modes.def (CC_NOTB): New mode.
2136         * config/arm/arm.c (get_arm_condition_code): Handle it.
2137         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2138         * config/arm/arm.md (subsi3_compare0_c): New pattern.
2139         (compare_scc): Now a define_and_split.  Add a number of extra
2140         splitters before it.
2141
2142         PR target/42172
2143         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2144         and ZERO_EXTEND.
2145         (arm_rtx_costs_1): Likewise.
2146         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2147         * config/arm/arm.md (is_arch6): New attribute.
2148         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2149         extendqisi2): Tighten the code somewhat, avoiding invalid
2150         RTL to occur in the expander patterns.
2151         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2152         (thumb1_zero_extendhisi2_v6): Delete.
2153         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2154         (thumb1_extendhisi2_v6): Delete.
2155         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2156         (thumb1_extendqisi2_v6): Delete.
2157         (zero_extendhisi2 for register input splitter): New.
2158         (zero_extendqisi2 for register input splitter): New.
2159         (thumb1_extendhisi2 for register input splitter): New.
2160         (extendhisi2 for register input splitter): New.
2161         (extendqisi2 for register input splitter): New.
2162         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2163         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2164         and add support for a register alternative requiring a split.
2165         (thumb1_zero_extendqisi2): Likewise.
2166         (arm_zero_extendqisi2): Likewise.
2167         (arm_extendhisi2): Likewise.
2168         (arm_extendqisi2): Likewise.
2169
2170 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2171
2172         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2173         instead of an unspec.
2174         (neon_expand_vector_init): Likewise.
2175         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2176         (UNSPEC_VDUP_LANE): Delete.
2177         (UNSPEC VDUP_N): Delete.
2178         (UNSPEC_VGET_HIGH): Delete.
2179         (UNSPEC_VGET_LANE): Delete.
2180         (UNSPEC_VGET_LOW): Delete.
2181         (UNSPEC_VMVN): Delete.
2182         (UNSPEC_VSET_LANE): Delete.
2183         (V_double_vector_mode): New.
2184         (vec_set<mode>_internal): Make code emitted match that for the
2185         corresponding intrinsics.
2186         (vec_setv2di_internal): Likewise.
2187         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2188         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2189         (neon_vset_lane<mode>): Combine double and quad patterns and
2190         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2191         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2192         (neon_vdup_n<mode>): Rewrite RTL without unspec.
2193         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2194         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2195         with neon_vdup_lanev2di, adjusting the pattern from the latter
2196         to be predicable for consistency.
2197         (neon_vdup_lane<mode>_internal): New.
2198         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2199         to avoid using an unspec.
2200         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2201         (neon_vdup_lanev2di): Turn into a define_expand.
2202         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2203         (neon_vget_high<mode>): Replace with....
2204         (neon_vget_highv16qi): New pattern using canonical RTL.
2205         (neon_vget_highv8hi): Likewise.
2206         (neon_vget_highv4si): Likewise.
2207         (neon_vget_highv4sf): Likewise.
2208         (neon_vget_highv2di): Likewise.
2209         (neon_vget_low<mode>): Replace with....
2210         (neon_vget_lowv16qi): New pattern using canonical RTL.
2211         (neon_vget_lowv8hi): Likewise.
2212         (neon_vget_lowv4si): Likewise.
2213         (neon_vget_lowv4sf): Likewise.
2214         (neon_vget_lowv2di): Likewise.
2215
2216         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2217         test for this emitting vmov.
2218         (Vset_lane): Likewise.
2219         (Vdup_n): Likewise.
2220         (Vmov_n): Likewise.
2221
2222         * doc/arm-neon-intrinsics.texi: Regenerated.
2223
2224 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2225
2226         * config/arm/neon.md (vec_extractv2di): Correct error in register
2227         numbering to reconcile with neon_vget_lanev2di.
2228
2229 2010-07-02  Richard Guenther  <rguenther@suse.de>
2230
2231         * tree-ssa-structalias.c (pt_solution_set_var): New function.
2232         * tree-ssa-alias.h (pt_solution_set_var): Declare.
2233         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2234         points-to information.
2235
2236 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
2237
2238         * config/s390/s390.c (override_options): Adopt prefetching
2239         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2240
2241 2010-07-02  Jan Hubicka  <jh@suse.cz>
2242
2243         * df-problems.c (df_kill_notes): Do not collect dead  notes.
2244         (df_set_note): Just call add_reg_note.
2245         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2246         df_create_unused_note): Do not deal with lists of old notes.
2247         (df_note_bb_compute): Likewise.
2248
2249 2010-07-02  Richard Guenther  <rguenther@suse.de>
2250
2251         * tree-ssa-structalias.c (find_func_aliases): Handle
2252         pointer alignment via BIT_AND_EXPR.
2253         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2254
2255 2010-07-02  Richard Guenther  <rguenther@suse.de>
2256
2257         * tree-data-ref.c (initialize_data_dependence_relation): Handle
2258         mismatching number of dimensions properly.
2259
2260 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2261
2262         PR target/44707
2263         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2264         (lo_sum (high ...) ...) patterns generated by earlier passes.
2265
2266 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2267
2268         * doc/install.texi (Prerequisites): Document Perl requirement on
2269         Solaris 2.
2270         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
2271
2272 2010-07-02  Richard Guenther  <rguenther@suse.de>
2273
2274         PR middle-end/44777
2275         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2276
2277 2010-07-02  Jan Hubicka  <jh@suse.cz>
2278
2279         PR middle-end/44706
2280         * predict.c (predict_paths_for_bb): Handle case when control dependence
2281         BB has only abnormal edges.
2282
2283 2010-07-02  Richard Guenther  <rguenther@suse.de>
2284
2285         PR tree-optimization/44748
2286         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
2287         the embedded conversion in MEM_REFs.
2288
2289 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
2290
2291         * reload.c: Include toplev.h.
2292         * recog.c:  Likewise.
2293         * Makefile.in: Adjust dependencies.
2294
2295 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
2296
2297         PR debug/44694
2298         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
2299         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
2300
2301 2010-07-01  Richard Guenther  <rguenther@suse.de>
2302
2303         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
2304         types for offsets.
2305
2306 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
2307
2308         PR target/44732
2309         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
2310         Fix argument types.
2311
2312 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
2313
2314         PR target/44727
2315         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2316         Make sure operand 0 dies.
2317
2318 2010-07-01  Richard Guenther  <rguenther@suse.de>
2319
2320         PR middle-end/42834
2321         PR middle-end/44468
2322         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
2323         * doc/generic.texi (References to storage): Document MEM_REF.
2324         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
2325         (print_call_name): Likewise.
2326         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
2327         (build_simple_mem_ref_loc): New function.
2328         (mem_ref_offset): Likewise.
2329         * tree.h (build_simple_mem_ref_loc): Declare.
2330         (build_simple_mem_ref): Define.
2331         (mem_ref_offset): Declare.
2332         * fold-const.c: Include tree-flow.h.
2333         (operand_equal_p): Handle MEM_REF.
2334         (build_fold_addr_expr_with_type_loc): Likewise.
2335         (fold_comparison): Likewise.
2336         (fold_unary_loc): Fold
2337         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2338         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2339         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2340         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2341         (ptr_deref_may_alias_ref_p_1): Likewise.
2342         (ao_ref_base_alias_set): Properly differentiate base object for
2343         offset and TBAA.
2344         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2345         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2346         (indirect_refs_may_alias_p): Likewise.
2347         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
2348         chasing code.
2349         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2350         (call_may_clobber_ref_p_1): Likewise.
2351         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2352         * expr.c (expand_assignment): Handle MEM_REF.
2353         (store_expr): Handle MEM_REFs from STRING_CSTs.
2354         (store_field): If expanding a MEM_REF of a non-addressable
2355         decl use bitfield operations.
2356         (get_inner_reference): Handle MEM_REF.
2357         (expand_expr_addr_expr_1): Likewise.
2358         (expand_expr_real_1): Likewise.
2359         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2360         * alias.c (ao_ref_from_mem): Handle MEM_REF.
2361         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
2362         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2363         (dr_analyze_indices): Likewise.
2364         (dr_analyze_alias): Likewise.
2365         (object_address_invariant_in_loop_p): Likewise.
2366         * gimplify.c (mark_addressable): Handle MEM_REF.
2367         (gimplify_cond_expr): Build MEM_REFs.
2368         (gimplify_modify_expr_to_memcpy): Likewise.
2369         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2370         (gimple_fold_indirect_ref): Adjust.
2371         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
2372         * tree.def (MEM_REF): New tree code.
2373         * tree-dfa.c: Include toplev.h.
2374         (get_ref_base_and_extent): Handle MEM_REF.
2375         (get_addr_base_and_unit_offset): New function.
2376         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2377         * gimple-fold.c (may_propagate_address_into_dereference): Handle
2378         MEM_REF.
2379         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2380         accesses if the array has just one dimension.  Remove always true
2381         parameter.  Do not require type compatibility here.
2382         (maybe_fold_offset_to_component_ref): Remove.
2383         (maybe_fold_stmt_indirect): Remove.
2384         (maybe_fold_reference): Remove INDIRECT_REF handling.
2385         Fold back to non-MEM_REF.
2386         (maybe_fold_offset_to_address): Simplify.  Deal with type
2387         mismatches here.
2388         (maybe_fold_reference): Likewise.
2389         (maybe_fold_stmt_addition): Likewise.  Also handle
2390         &ARRAY + I in addition to &ARRAY[0] + I.
2391         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2392         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2393         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2394         * tree-ssa.c (useless_type_conversion_p): Make most pointer
2395         conversions useless.
2396         (warn_uninitialized_var): Handle MEM_REF.
2397         (maybe_rewrite_mem_ref_base): New function.
2398         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2399         to SSA form.
2400         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2401         INDIRECT_REF handling.
2402         (copy_tree_body_r): Handle MEM_REF.
2403         * gimple.c (is_gimple_addressable): Adjust.
2404         (is_gimple_address): Likewise.
2405         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
2406         invariant base are invariant.
2407         (is_gimple_min_lval): Adjust.
2408         (is_gimple_mem_ref_addr): New function.
2409         (get_base_address): Handle MEM_REF.
2410         (count_ptr_derefs): Likewise.
2411         (get_base_loadstore): Likewise.
2412         * gimple.h (is_gimple_mem_ref_addr): Declare.
2413         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
2414         * tree-cfg.c (verify_address): New function, split out from ...
2415         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
2416         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
2417         INDIRECT_REFs.
2418         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
2419         INDIRECT_REF.  Allow conversions.
2420         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
2421         a register does not change its size.
2422         (verify_types_in_gimple_reference): Verify MEM_REF.
2423         (verify_gimple_assign_single): Disallow INDIRECT_REF.
2424         Handle MEM_REF.
2425         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
2426         New.
2427         (mark_address_taken): Handle MEM_REF.
2428         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
2429         (get_asm_expr_operands): Pass opf_not_non_addressable.
2430         (get_expr_operands): Handle opf_[not_]non_addressable.
2431         Handle MEM_REF.  Remove INDIRECT_REF handling.
2432         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
2433         (search_for_addr_array): Likewise.
2434         (check_array_bounds): Likewise.
2435         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
2436         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
2437         (ref_always_accessed_p): Likewise.
2438         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
2439         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
2440         Handle MEM_REF.
2441         * cgraphbuild.c (mark_load): Properly check for NULL result
2442         from get_base_address.
2443         (mark_store): Likewise.
2444         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
2445         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
2446         handling for MEM_REF.
2447         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
2448         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
2449         * builtins.c (stabilize_va_list_loc): Use the function ABI
2450         valist type if we couldn't canonicalize the argument type.
2451         Always dereference with the canonical va-list type.
2452         (maybe_emit_free_warning): Handle MEM_REF.
2453         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
2454         memmove to memcpy.
2455         * builtins.c (fold_builtin_memory_op): Use ref-all types
2456         for all memcpy foldings.
2457         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
2458         (build_outer_var_ref): Likewise.
2459         (scan_omp_1_op): Likewise.
2460         (lower_rec_input_clauses): Likewise.
2461         (lower_lastprivate_clauses): Likewise.
2462         (lower_reduction_clauses): Likewise.
2463         (lower_copyprivate_clauses): Likewise.
2464         (expand_omp_atomic_pipeline): Likewise.
2465         (expand_omp_atomic_mutex): Likewise.
2466         (create_task_copyfn): Likewise.
2467         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
2468         Remove old union trick.  Initialize constant offsets.
2469         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
2470         INDIRECT_REF.  Init base_alias_set properly.
2471         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
2472         (vn_reference_fold_indirect): Adjust for MEM_REFs.
2473         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
2474         for ARRAY_REFs.
2475         (may_insert): Remove.
2476         (visit_reference_op_load): Do not test may_insert.
2477         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
2478         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
2479         a field to store the constant offset this op applies.
2480         (run_scc_vn): Adjust prototype.
2481         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
2482         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
2483         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
2484         bother about volatile qualifiers on pointers.
2485         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
2486         * tree-ssa-loop-ivopts.c
2487         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
2488         (strip_offset_1): Likewise.
2489         (find_interesting_uses_address): Replace INDIRECT_REF handling with
2490         MEM_REF handling.
2491         (get_computation_cost_at): Likewise.
2492         * ipa-pure-const.c (check_op): Handle MEM_REF.
2493         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
2494         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
2495         and constants.
2496         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
2497         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
2498         (eliminate_local_variables_1): Likewise.
2499         (create_call_for_reduction_1): Likewise.
2500         (create_loads_for_reductions): Likewise.
2501         (create_loads_and_stores_for_name): Likewise.
2502         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
2503         (ssa_accessed_in_tree): Handle MEM_REF.
2504         (ssa_accessed_in_assign_rhs): Likewise.
2505         (update_type_size): Likewise.
2506         (analyze_accesses_for_call_stmt): Likewise.
2507         (analyze_accesses_for_assign_stmt): Likewise.
2508         (transform_access_sites): Likewise.
2509         (transform_allocation_sites): Likewise.
2510         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
2511         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2512         not handle INDIRECT_REF.
2513         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
2514         (cond_store_replacement): Likewise.
2515         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
2516         MEM_REF, no not handle INDIRECT_REFs.
2517         (insert_into_preds_of_block): Properly initialize avail.
2518         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
2519         for ARRAY_REFs.  Properly handle reference lookups that
2520         require a bit re-interpretation.
2521         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
2522         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
2523         (build_ref_for_offset_1): Remove.
2524         (build_ref_for_offset): Build MEM_REFs.
2525         (gate_intra_sra): Disable for now.
2526         (sra_ipa_modify_expr): Handle MEM_REF.
2527         (ipa_early_sra_gate): Disable for now.
2528         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
2529         MEM_REF handling.
2530         (disqualify_base_of_expr): Likewise.
2531         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
2532         MEM_REF handling.
2533         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
2534         Use mem_ref_offset.  Remove bogus folding.
2535         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
2536         (make_fancy_name_1): Add support for MEM_REF.
2537         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
2538         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
2539         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
2540         (compute_complex_ancestor_jump_func): Likewise.
2541         (ipa_analyze_virtual_call_uses): Likewise.
2542         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
2543         INDIRECT_REF folding with more generalized MEM_REF folding.
2544         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
2545         (forward_propagate_addr_into_variable_array_index): Also handle
2546         &ARRAY + I in addition to &ARRAY[0] + I.
2547         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
2548         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
2549         creates assignments with overlap.
2550         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
2551         (get_frame_field): Likewise.
2552         (get_nonlocal_debug_decl): Likewise.
2553         (convert_nonlocal_reference_op): Likewise.
2554         (struct nesting_info): Add mem_refs pointer-set.
2555         (create_nesting_tree): Allocate it.
2556         (convert_local_reference_op): Insert to be folded mem-refs.
2557         (fold_mem_refs): New function.
2558         (finalize_nesting_tree_1): Perform defered folding of mem-refs
2559         (free_nesting_tree): Free the pointer-set.
2560         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
2561         (vectorizable_load): Likewise.
2562         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
2563         (propagate_with_phi): Likewise.
2564         * tree-object-size.c (addr_object_size): Handle MEM_REFs
2565         instead of INDIRECT_REFs.
2566         (compute_object_offset): Handle MEM_REF.
2567         (plus_stmt_object_size): Handle MEM_REF.
2568         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
2569         for &MEM_REF.
2570         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
2571         (symbol_marked_for_renaming): Likewise.
2572         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
2573         (fold-const.o): Add $(TREE_FLOW_H).
2574         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
2575         (find_func_clobbers): Likewise.
2576         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
2577         (decompose_access): Likewise.
2578         (replace_field_acc): Likewise.
2579         (replace_field_access_stmt): Likewise.
2580         (insert_new_var_in_stmt): Likewise.
2581         (get_stmt_accesses): Likewise.
2582         (reorg_structs_drive): Disable.
2583         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
2584         (ix86_canonical_va_list_type): Likewise.
2585
2586 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
2587
2588         PR other/44566
2589         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
2590         * target.def (struct gcc_target): Replace enum reg_class with
2591         reg_class_t in hook argument / return types.
2592         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
2593         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
2594         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2595         * targhooks.h (default_branch_target_register_class): Likewise.
2596         (default_ira_cover_classes, default_secondary_reload): Likewise.
2597         (default_memory_move_cost, default_register_move_cost): Likewise.
2598         * targhooks.c (default_branch_target_register_class): Likewise.
2599         (default_ira_cover_classes, default_secondary_reload): Likewise.
2600         (default_memory_move_cost, default_register_move_cost): Likewise.
2601         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
2602         * bt-load.c (branch_target_load_optimize): Likewise.
2603         * ira.c (setup_cover_and_important_classes): Likewise.
2604         * ira-costs.c (copy_cost): Likewise.
2605         * reload1.c (emit_input_reload_insns): Likewise.
2606         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2607         * config/frv/frv.c (frv_secondary_reload): Likewise.
2608         * config/s390/s390.c (s390_secondary_reload): Likewise.
2609         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
2610         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
2611         (ix86_register_move_cost): Likewise.
2612         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
2613         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
2614         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
2615         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
2616         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
2617         (rs6000_ira_cover_classes): Likewise.
2618         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
2619         * config/picochip/picochip-protos.h (picochip_secondary_reload):
2620         Likewise.
2621         * config/pa/pa.c (pa_secondary_reload): Likewise.
2622         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
2623         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
2624         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
2625         * doc/tm.texi: Regenerate.
2626
2627 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
2628
2629         PR bootstrrap/44726
2630         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
2631         use.
2632         (build_alias_set_optimal_p): Likewise.
2633         (build_base_obj_set_for_drs): Likewise.
2634
2635 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
2636
2637         * target.def: Remove comment about licensing problems of function
2638         declarations.
2639
2640         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
2641         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2642         * doc/tm.texi: Regenerate.
2643
2644         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
2645         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2646
2647         * target.def (enum_va_list_p): Use DEFHOOK.
2648         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2649         Rename ptype to ptree.
2650         * doc/tm.texi: Regenerate.
2651
2652         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
2653         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2654         * doc/tm.texi: Regenerate.
2655
2656         * target.def (memory_move_cost): Use DEFHOOK.
2657         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2658         Rename regclass AKA class to rclass.
2659         * doc/tm.texi: Regenerate.
2660
2661         * target.def (pragma_parse): Use DEFHOOK.
2662         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2663         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2664         * doc/tm.texi: Regenerate.
2665
2666         * target.def (pass_by_reference): Use DEFHOOK.
2667         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2668         * doc/tm.texi: Regenerate.
2669
2670         * target.def (resolve_overloaded_builtin): Rename params to arglist.
2671         Use DEFHOOK.
2672         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2673         * doc/tm.texi: Regenerate.
2674
2675         * target.def (return_pops_args): Use DEFHOOK.
2676         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
2677         Rename stack-size to size.
2678         * doc/tm.texi: Regenerate.
2679
2680         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
2681         last-sched_cycle to last_clock, cur_cycle to clock.
2682         * doc/tm.texi.in: Use @hook.
2683         * doc/tm.texi: Regenerate.
2684
2685         * target.def (print_operand, print_operand_address): Update comment.
2686         (print_operand_punct_valid_p): Likewise.
2687
2688 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2689
2690         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
2691         to rtl.h.
2692         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
2693         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
2694         * rtl-error.h: New.
2695         * regrename.c: Do not include toplev.h. Include rtl-error.h.
2696         * rtl-error.c: Likewise.
2697         * reload.c: Likewise.
2698         * recog.c:  Likewise.
2699         * sel-sched.c: Likewise.
2700         * function.c: Likewise.
2701         * reg-stack.c: Likewise.
2702         * cfgrtl.c: Likewise.
2703         * reload1.c: Likewise.
2704         * final.c: Include rtl-error.
2705         * Makefile.in: Adjust dependencies.
2706
2707 2010-06-30  Jan Hubicka  <jh@suse.cz>
2708
2709         PR middle-end/PR44706
2710         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
2711         to return the value.
2712
2713 2010-06-30  Michael Matz  <matz@suse.de>
2714
2715         PR bootstrap/44699
2716         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
2717         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
2718         a gimple reg, attach the original VDEF to the last store in the
2719         sequence.
2720
2721 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
2722
2723         PR other/44034
2724         * config/darwin.c (darwin_override_options): Use renamed
2725         targetm.asm_out.emit_unwind_label.
2726
2727 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
2728
2729         PR tree-optimization/39799
2730         * tree-inline.c (remap_ssa_name): Initialize variable only if
2731         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2732
2733 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
2734
2735         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2736
2737 2010-06-30  Richard Guenther  <rguenther@suse.de>
2738
2739         PR target/44722
2740         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2741         against oscillation with reverse peephole2.
2742
2743 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2744
2745         PR target/44721
2746         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2747         Fix last commit.
2748
2749 2010-06-30  Nick Clifton  <nickc@redhat.com>
2750
2751         * config/rx/rx-modes.def: New file.
2752         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2753         (CC_REGNUM): Define.
2754         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2755         register.
2756         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2757         (SELECT_CC_MODE): Define.
2758         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
2759         (reg:CC CC_REG) instead of (cc0).
2760         (attr "cc"): Delete.
2761         (cbranchsi4): Do not split compare and branch here. Instead move
2762         it to...
2763         (cbranchsi4_<code>): ... here.  New patterns.
2764         (cmpsi): Call rx-compare_redundant to find out if it is necessary
2765         to emit the compare instruction.
2766         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2767         cc_status flags.
2768         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2769         FIRST_PSEUDO_REGNUM.
2770         (rx_expand_prologue, rx_expand_epilogue): Likewise.
2771         (rx_notice_update_cc): Delete.
2772         (rx_cc_modes_compatible): New function.
2773         (flags_needed_for_conditional): New function.
2774         (flags_from_mode): New function.
2775         (rx_compare_redundant): New function - scans backwards through
2776         insn list to find out if condition flags are already set correctly.
2777         (TARGET_CC_MODES_COMPATIBLE): Define.
2778         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2779
2780         * config/rx/rx.h (BRANCH_COST): Define.
2781         (REGISTER_MOVE_COST): Define.
2782         * config/rx/predicates (rx_source_operand): Allow all constant types.
2783         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2784         (tstsi4): New pattern.
2785         * config/rx/rx.c (rx_memory_move_cost): Define.
2786         (TARGET_MEMORY_MOVE_COST): Define.
2787
2788 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2789
2790         * tree.h (block_may_fallthru): Declare here.
2791         * tree-flow.h (block_may_fallthru): Do not declare here.
2792         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2793         bitmap.h
2794         * Makefile.in (c-typeck.o): Update dependencies.
2795
2796 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
2797
2798         PR debug/44694
2799         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2800         * cselib.c (cfa_base_preserved_regno): New static variable.
2801         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2802         of REGNO (cfa_base_preserved_val->locs->loc).
2803         (cselib_preserve_cfa_base_value): Add regno argument, set
2804         cfa_base_preserved_regno to it.
2805         (cselib_invalidate_regno): Allow removal of registers other than
2806         cfa_base_preserved_regno from cfa_base_preserved_val.
2807         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2808         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2809         of MEM addresses, if not on LHS.
2810         (reverse_op): Don't add reverse ops for cfa_base_rtx.
2811         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2812
2813 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
2814
2815         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2816         static variables.
2817         (peep2_buf_position): New static function.
2818         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2819         peephole2_optimize): Use it.
2820         (peep2_attempt, peep2_update_life): New static functions, broken out
2821         of peephole2_optimize.
2822         (peep2_fill_buffer): New static function.
2823         (peephole2_optimize): Change the main loop to try to fill the buffer
2824         with the maximum number of insns before matching them against
2825         peepholes.  Use a forward scan.  Remove special case for targets with
2826         conditional execution.
2827         * genrecog.c (change_state): Delete dead code.
2828         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2829         Rewrite so as not to expect the second insn to have had a peephole
2830         applied yet.
2831
2832 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2833
2834         * genhooks.c (emit_findices): Cast field precision to int.
2835         (emit_documentation): Likewise.
2836
2837 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
2838
2839         PR tree-optimization/43801
2840         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2841         if old_decl was DECL_ONE_ONLY.
2842
2843         PR debug/44668
2844         * dwarf2out.c (add_accessibility_attribute): New function.
2845         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2846         instead of adding DW_AT_accessibility manually.
2847         (gen_enumeration_type_die, gen_struct_or_union_type_die,
2848         gen_typedef_die): Use it.
2849
2850 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2851
2852         * vmsdbgout.c (full_name): Just output the file name if not native.
2853
2854 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2855
2856         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2857         (funcnam_table): New static table.
2858         (funcnum_table): New static table.
2859         (write_rtnbeg): Write value saved in funcnum_table.
2860         (write_rtnend): Write value saved in funcnum_table.
2861         (vmsdbgout_begin_function): Save current function info in
2862         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2863         (vmsdbgout_finish): Iterate over funcnum_table.
2864
2865 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2866
2867         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2868         (vmsdbgout_type_decl): Declare
2869         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2870         (FUNC_EPILOGUE_LABEL): New macro
2871         (vmsdbgout_begin_epilogue): New function.
2872         (vmsdbgout_type_decl): New function.
2873
2874 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2875
2876         * vmsdbg.h: Update copyright.
2877
2878 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2879
2880         * vmsdbg.h (DST_K_TBG): New DST constant.
2881         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2882         (write_modbeg): Cast module_language to avoid warning.
2883         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2884
2885 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2886
2887         PR other/44034
2888         * target.def, doc/tm.texi.in, genhooks.c: New files.
2889         * target.h: Instead of defining individual hook members,
2890         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2891         include target.def.
2892         * target-def.h: Instead of defining individual hook initializers,
2893         include target-hooks-def.h.
2894         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2895         targetm.live_on_entry -> targetm.extra_live_on_entry
2896         targetm.sched.md_finish ->targetm.sched.finish
2897         targetm.sched.md_init -> targetm.sched.init
2898         targetm.sched.md_init_global -> targetm.sched.init_global
2899         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2900         targetm.asm_out.except_table_label ->
2901           targetm.asm_out.emit_except_table_label
2902         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2903         targetm.target_help -> targetm.help
2904         targetm.vectorize.builtin_support_vector_misalignment ->
2905           targetm.vectorize.support_vector_misalignment
2906         targetm.file_start_app_off -> targetm.asm_file_start_app_off
2907         targetm.file_start_file_directive ->
2908          targetm.asm_file_start_file_directive
2909         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2910         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2911         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2912         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2913           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2914         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2915           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2916         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2917         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2918         * Makefile.in (TARGET_H): Depend on target.def.
2919         (TARGET_DEF_H): Depend on target-hooks-def.h.
2920         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2921         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2922         * doc/tm.texi: Regenerate.
2923
2924         * Makefile.in (s-tm-texi): Remove stray tab / rule.
2925
2926         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2927         (targetm.sched.init): Likewise.
2928
2929 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2930
2931         PR bootstrap/44713
2932         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2933         (function_arg_advance_32): Const-ify TYPE parameter.
2934         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
2935         (ix86_function_arg_advance): Change type of NAMED to bool.
2936         (function_arg_32): Const-ify CUM and TYPE parameters.
2937         (function_arg_64): Likewise.  Change type of NAMED to bool.
2938         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2939         to bool.
2940         (ix86_function_arg): Change type of NAMED to bool.
2941         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
2942         last argument as a bool.
2943
2944 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2945
2946         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2947         (OVERRIDE_OPTIONS): Add note of obsolescence.
2948         Replace references with references to TARGET_OPTION_OVERRIDE.
2949         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2950          the macro).
2951         * targhooks.c (default_target_option_override): New function.
2952         * targhooks.h (default_target_option_override): Declare.
2953         * target.h (struct gcc_target): Add override member to
2954         target_option member.
2955         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2956         targetm.target_option.override call.
2957         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2958         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2959
2960 2010-06-29  Jan Hubicka  <jh@suse.cz>
2961
2962         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2963
2964 2010-06-29  Jan Hubicka  <jh@suse.cz>
2965
2966         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2967         unreachable.
2968         (rebuild_frequencies): New function.
2969         * predict.h (rebuild_frequencies): Declare.
2970         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2971         entry block and edge reaching new_entry.
2972         (tree_function_versioning): When doing partial cloning, rebuild
2973         frequencies when done.
2974         * passes.c (execute_function_todo): Use rebild_frequencies.
2975
2976 2010-06-29  Richard Guenther  <rguenther@suse.de>
2977
2978         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2979         * tree-flow.h (enum noalias_state): Remove.
2980         (struct var_ann_d): Remove noalias_state member.
2981
2982 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
2983
2984         PR target/43902
2985         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2986         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
2987         (maddhidi4): Likewise.
2988
2989         Revert parts of the change for PR25130.
2990         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2991         MEM_ALIAS_SET.
2992
2993 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2994
2995         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2996         targetm.calls.function_incoming_arg, and
2997         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2998         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2999         * target.h (struct gcc_target): Add function_arg_advance,
3000         function_arg, and function_incoming_arg fields.
3001         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
3002         (TARGET_FUNCTION_INCOMING_ARG): Define.
3003         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
3004         and TARGET_FUNCTION_INCOMING_ARG.
3005         * targhooks.h (default_function_arg_advance): Declare.
3006         (default_function_arg, default_function_incoming_arg): Declare.
3007         * targhooks.c (default_function_arg_advance): New function.
3008         (default_function_arg, default_function_incoming_arg): New function.
3009         * config/i386/i386.c (function_arg_advance): Rename to...
3010         (ix86_function_arg_advance): ...this.  Make static.
3011         (function_arg): Rename to...
3012         (ix86_function_arg): ...this.  Make static.
3013         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3014         (TARGET_FUNCTION_ARG): Define.
3015         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
3016         (FUNCTION_ARG): Delete.
3017         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
3018         (function_arg): Delete prototype.
3019
3020 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
3021
3022         * reginfo.c (init_reg_sets_1): Adjust comments.
3023         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
3024         * calls.c (prepare_call_address): Likewise.
3025         (emit_call_1): Use targetm.calls.return_pops_args.
3026         (expand_call): Likewise.
3027         * function.c (assign_parms): Likewise.
3028         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
3029         * target.h (struct gcc_target) [struct calls]: Add
3030         return_pops_args field.
3031         * targhooks.h (default_return_pops_args): Declare.
3032         * targhooks.c (default_return_pops_args): Define.
3033         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
3034         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
3035         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
3036         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
3037         documentation.
3038         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
3039         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
3040         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
3041         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
3042         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
3043         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
3044         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
3045         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
3046         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
3047         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
3048         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
3049         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
3050         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3051         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3052         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3053         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3054         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3055         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3056         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3057         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3058         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3059         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3060         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3061         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3062         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3063         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3064         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3065         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3066         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3067         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3068         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3069         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3070         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3071         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3072         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3073         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3074         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3075         * config/i386/i386.c (ix86_return_pops_args): Make static.
3076         Constify arguments.
3077         (TARGET_RETURN_POPS_ARGS): Define.
3078         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3079         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
3080         (TARGET_RETURN_POPS_ARGS): Define.
3081         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3082         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
3083         (TARGET_RETURN_POPS_ARGS): Define.
3084
3085 2010-06-29  Richard Guenther  <rguenther@suse.de>
3086
3087         PR middle-end/44667
3088         * tree-inline.c (initialize_inlined_parameters): Make sure
3089         to remap the inlined parameter variable substitutions types.
3090
3091 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3092
3093         PR rtl-optimization/44659
3094         * combine.c (make_compound_operation) <SUBREG>: Do not return the
3095         result of force_to_mode if it partially re-expanded the compound.
3096
3097 2010-06-28  Jan Hubicka  <jh@suse.cz>
3098
3099         PR middle-end/44671
3100         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3101         RESULT_DECL.
3102
3103 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
3104
3105         * double-int.h (force_fit_type_double): Remove declaration.
3106         * double-int.c (force_fit_type_double): Move to tree.c.
3107         * tree.h (force_fit_type_double): Declare.
3108         * tree.h (force_fit_type_double): Moved from double-int.c. Use
3109         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3110         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3111         * convert.c (convert_to_pointer): Adjust call to
3112         force_fit_type_double.
3113         * tree-vrp.c (extract_range_from_assert,
3114         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3115         * fold-const.c: Update comment.
3116         (int_const_binop, fold_convert_const_int_from_int,
3117         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3118         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3119         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3120         round_up_loc): Adjust call to force_fit_type_double.
3121
3122 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3123
3124         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3125
3126 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3127
3128         * tree-sra.c (convert_callers): New parameter, change fndecls of
3129         recursive calls.
3130         (modify_function): Pass the old decl to convert_callers.
3131
3132 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3133
3134         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3135         ipa_check_create_node_params and ipa_initialize_node_params with
3136         checking asserts they are not necessary.
3137
3138 2010-06-28  Jan Hubicka  <jh@suse.cz>
3139
3140         PR tree-optimization/44687
3141         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3142
3143 2010-06-28  Martin Jambor  <mjambor@suse.cz>
3144
3145         PR c++/44535
3146         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3147         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3148         instead of BINFO_BASE_BINFO.
3149
3150 2010-06-28  Michael Matz  <matz@suse.de>
3151
3152         PR middle-end/44592
3153         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3154         proper VDEF chain for intermediate stores in the sequence.
3155
3156 2010-06-28  Jan Hubicka  <jh@suse.cz>
3157
3158         PR tree-optimization/44357
3159         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3160         uninlinable functions.
3161
3162 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3163
3164         * config.gcc (powerpc*-*-*): Handle titan.
3165         * config/rs6000/rs6000.c (titan_cost): New costs.
3166         (rs6000_override_options): Add "titan" to processor_target_table.
3167         Add Titan to branch alignment logic.
3168         Correctly set rs6000_cost for titan.
3169         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
3170         * config/rs6000/titan.md: New file.
3171         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3172
3173 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3174
3175         * tree-browser.c (TB_history_stack): Convert to a VEC.
3176         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3177         (TB_history_prev): Likewise.
3178
3179 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3180
3181         * vec.h (vec_heap_free): Add parentheses around free.
3182
3183 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
3184
3185         * system.h: Poison GCC_EXCEPT_H for front-end files.
3186
3187         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3188         langhook.
3189         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3190         Define to NULL by default.
3191         * except.h: Define GCC_EXCEPT_H.
3192         (doing_eh): Remove prototype.
3193         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3194         (lang_protect_cleanup_actions): Remove.
3195         * except.c (lang_protect_cleanup_actions): Remove.
3196         (doing_eh): Remove.
3197         (gen_eh_region): Don't check doing_eh here.
3198         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3199         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3200         instead of lang_protect_cleanup_actions.
3201         * omp-low.c (maybe_catch_exception): Likewise.
3202         * Makefile.in: Update dependencies.
3203
3204 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
3205
3206         * cgraph.h (struct varpool_node): new used_from_object_file flag.
3207         (struct cgraph_local_info): new used_from_object_file flag.
3208         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3209         (cgraph_clone_node): initialize used_from_object_file.
3210         (cgraph_create_virtual_clone): initialize used_from_object_file.
3211         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3212         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3213         when compiling with -fwhole-program.
3214         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3215         internal resolver.
3216         * ipa.c (function_and_variable_visibility): Set externally_visible
3217         flag of varpool_node if used_from_object_file flag is set.
3218         (cgraph_externally_visible_p): check used_from_object_file flag.
3219         * doc/invoke.texi (-fwhole-program option): Change description of
3220         externally_visible attribute accordingly.
3221         * doc/extend.texi (externally_visible): Ditto.
3222
3223 2010-06-27  Jan Hubicka  <jh@suse.cz>
3224
3225         * params.def (max-inline-insns-auto): Default to 40.
3226         * doc/invoke.texi (max-inline-insns-auto): Document the change.
3227
3228 2010-06-27  Jan Hubicka  <jh@suse.cz>
3229
3230         PR middle-end/44671
3231         PR middle-end/44686
3232         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3233         signature change.
3234         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3235         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3236
3237 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
3238
3239         * target.h (struct gcc_target): Add register_move_cost field.
3240         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3241         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3242         * targhooks.c (default_register_move_cost): New function.
3243         * targhooks.h (default_register_move_cost): Declare function.
3244         * defaults.h (REGISTER_MOVE_COST): Delete.
3245         * ira-int.h (ira_register_move_cost): Update comment.
3246         * ira.c: (ira_register_move_cost): Update comment.
3247         * reload.h (register_move_cost): Declare.
3248         * reginfo.c (register_move_cost): New function.
3249         (move_cost): Update comment.
3250         (init_move_cost, memory_move_secondary_cost): Replace
3251         REGISTER_MOVE_COST with register_move_cost.
3252         * postreload.c (reload_cse_simplify_set): (Ditto.).
3253         * reload.c (find_valid_class, find_reloads): (Ditto.).
3254         * reload1.c (choose_reload_regs): (Ditto.).
3255         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3256         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3257         * doc/md.texi (can_create_pseudo_p): Update documentation.
3258
3259         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3260         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3261         * config/i386/i386.h (ix86_memory_move_cost): Make static.
3262         (TARGET_MEMORY_MOVE_COST): Define.
3263
3264         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3265         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3266         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
3267         (TARGET_MEMORY_MOVE_COST): Define.
3268
3269 2010-06-27  Richard Guenther  <rguenther@suse.de>
3270
3271         PR tree-optimization/44683
3272         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
3273         false edge from the inverted condition.
3274
3275 2010-06-27  Richard Guenther  <rguenther@suse.de>
3276
3277         PR middle-end/44684
3278         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
3279         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
3280         for register LHS.  Or non-store assignments.
3281
3282 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3283
3284         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
3285         (sparc_emit_set_const64): Likewise.  Remove disabled code.
3286         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
3287         (sparc_emit_set_const64): Likewise.
3288
3289 2010-06-26  Catherine Moore  <clm@codesourcery.com>
3290
3291         * config/mips/mips.md (alu_type): New attribute.
3292         (type): Infer type from alu_type.
3293         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
3294         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
3295         *subsi3_extended, negsi2, negdi2, *low<mode>,
3296         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
3297         xor<mode>3, *nor<mode>3,
3298         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
3299         *zero_extendhi_truncqi):  Set alu_type instead of type.
3300
3301 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
3302
3303         * config/alpha/alpha.c (alpha_need_linkage): Adjust
3304         splay_tree_new_ggc call.
3305         (alpha_use_linkage): Likewise.
3306
3307 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
3308
3309         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
3310         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
3311         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
3312         (static_specs): Remove switches_need_spaces.
3313         (process_command, do_self_spec): Hardcode handling "-o" instead of
3314         checking switches_need_spaces.
3315         * system.h (SWITCHES_NEED_SPACES): Poison.
3316
3317 2010-06-26  Richard Guenther  <rguenther@suse.de>
3318
3319         PR tree-optimization/44393
3320         * tree-loop-distribution.c (generate_loops_for_partition): Fix
3321         stmt removal and VOP renaming.
3322         (generate_memset_zero): Remove redundant stmt updating.
3323         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
3324         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
3325
3326 2010-06-26  Jan Hubicka  <jh@suse.cz>
3327
3328         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
3329         edges comming from header are equivalent.
3330         (visit_bb): Handle PHIs correctly.
3331         * tree-inline.c (copy_phis_for_bb): Be able to copy
3332         PHI from entry edge.
3333         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3334
3335 2010-06-26  Richard Guenther  <rguenther@suse.de>
3336
3337         PR middle-end/44674
3338         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3339         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
3340
3341 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
3342
3343         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3344         add_infile, alloc_switch): New.
3345         (process_command): Remove variable lang_n_infiles.  Process
3346         options in a single pass.  Use new functions for allocating
3347         infiles and switches arrays.  Properly skip operands of
3348         -Xpreprocessor and -Xassembler.
3349
3350 2010-06-26  Jan Hubicka  <jh@suse.cz>
3351
3352         PR middle-end/44671
3353         * cgraphunit.c (cgraph_function_versioning): Remove wrong
3354         cgraph_make_decl_local call; fix typo copying RTL data.
3355
3356 2010-06-25  DJ Delorie  <dj@redhat.com>
3357
3358         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3359         (m32c_output_aligned_common): Likewise.
3360         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3361         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3362         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3363         (m32c_register_pragmas): Register it.
3364         * config/m32c/m32c.c (m32c_get_pragma_address): New.
3365         (m32c_insert_attributes): Set #pragma address decls volatile.
3366         (pragma_entry_eq): New.
3367         (pragma_entry_hash): New.
3368         (m32c_note_pragma_address): New.
3369         (m32c_get_pragma_address): New.
3370         (m32c_output_aligned_common): New.
3371         * doc/extend.texi: Document the new pragma.
3372
3373         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3374         also.
3375         * config/m32c/predicates.md (m32c_any_operand): Check the code
3376         instead of memory_operand so as to allow matching volatile MEMs.
3377         (m32c_nonimmediate_operand): Likewise.
3378         (mra_operand): Allow volatiles.
3379
3380 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
3381
3382         PR debug/44610
3383         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3384         address if the offset is unknown.
3385
3386 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
3387
3388         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3389         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3390         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3391         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3392         to ia64_start_function. Invoke it.
3393         * config/ia64/ia64.c (ia64_start_function): Call new function
3394         dwarf2out_vms_debug_main_pointer.
3395
3396 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3397
3398         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3399         statements computing the true predicate.
3400
3401 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3402
3403         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
3404         to boolean_true_node.
3405         (reset_bb_predicate): New.
3406         (predicate_bbs): Call reset_bb_predicate.
3407
3408 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3409
3410         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
3411         (tree_if_conversion): Returns true when something has been changed.
3412         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
3413         changed something.
3414
3415 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3416
3417         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
3418         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
3419         * tree-if-conv.c: Include dbgcnt.h.
3420         (tree_if_conversion): Use if_conversion_tree to count the number of
3421         if-convertible loops.
3422
3423 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
3424
3425         * common.opt (fprefetch-loop-arrays): Re-define
3426         -fprefetch-loop-arrays as a tri-state option with the initial
3427         value of -1.
3428         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
3429         pass only when flag_prefetch_loop_arrays > 0.
3430         * toplev.c (process_options): Note that, with tri-states,
3431         flag_prefetch_loop_arrays>0 means prefetching is enabled.
3432         * config/i386/i386.c (override_options): Enable prefetching at -O3
3433         for a set of CPUs that sw prefetching is helpful.
3434         (software_prefetching_beneficial_p): New.  Return TRUE if software
3435         prefetching is beneficial for the given CPU.
3436
3437 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
3438
3439         PR rtl-optimization/44326
3440         * implicit-zee.c (find_removable_zero_extends): Replace
3441         INSN_P with NONDEBUG_INSN_P.
3442
3443 2010-06-25  Martin Jambor  <mjambor@suse.cz>
3444
3445         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
3446         (struct ipa_node_params): Removed the modification_analysis_done flag.
3447         (ipa_is_param_modified): Removed.
3448         (ipa_analyze_node): Declare.
3449         (ipa_compute_jump_functions): Remove declaration.
3450         (ipa_count_arguments): Likewise.
3451         (ipa_detect_param_modifications): Likewise.
3452         (ipa_analyze_params_uses): Likewise.
3453         * ipa-prop.c (struct param_analysis_info): New type.
3454         (visit_store_addr_for_mod_analysis): Removed.
3455         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
3456         moved down in the file.
3457         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
3458         (ipa_count_arguments): Made static.
3459         (mark_modified): New function.
3460         (is_parm_modified_before_call): New function.
3461         (compute_pass_through_member_ptrs): New parameter parms_info, call
3462         is_parm_modified_before_call instead of ipa_is_param_modified.
3463         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
3464         it to compute_pass_through_member_ptrs.
3465         (ipa_compute_jump_functions): New parameter parms_info, pass it to
3466         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
3467         on the callee if it is analyzed.  Made static.
3468         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
3469         is_parm_modified_before_call instead of ipa_is_param_modified.
3470         (ipa_analyze_call_uses): New parameter parms_info, pass it to
3471         ipa_analyze_indirect_call_uses.
3472         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
3473         ipa_analyze_call_uses.
3474         (ipa_analyze_params_uses): New parameter parms_info, pass it to
3475         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
3476         (ipa_analyze_node): New function.
3477         (ipa_print_node_params): Do not dump the modified flag.
3478         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
3479         it.  Do not stream the modified parameter flag.
3480         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
3481         it.  Do not stream the modified parameter flag.
3482         * ipa-cp.c (ipcp_analyze_node): Removed.
3483         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
3484         with only a call to ipa_analyze_node.
3485         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
3486         node with only a call to ipa_analyze_node.
3487
3488 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3489
3490         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
3491
3492 2010-06-25  Jan Hubicka  <jh@suse.cz>
3493
3494         * tree-pass.h (pass_split_functions): Declare.
3495         * opts.c (decode_options): Enable function splitting at -O2
3496         * timevar.def (TV_IPA_FNSPLIT): New macro.
3497         * ipa-split.c: New file.
3498         * common.opt (-fpartial-inlining): New flag.
3499         * Makefile.in (ipa-split.o): New object file.
3500         * passes.c (init_optimization_passes): Add ipa-split.
3501         * params.def (partial-inlining-entry-probability): New parameters.
3502         * doc/invoke.texi (-fpartial-inlining): New.
3503
3504 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3505
3506         PR 44665
3507         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
3508         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
3509         (gimplify_expr): Likewise.
3510
3511 2010-06-25  Martin Jambor  <mjambor@suse.cz>
3512
3513         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
3514         statements instead of bailing out on them.
3515         (ipa_analyze_indirect_call_uses): Do not require that loads from the
3516         parameter are in the same BB as the condition.  Update comments.
3517
3518 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
3519
3520         PR middle-end/43866
3521         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
3522         true or always false, return NULL_TREE.
3523         (tree_unswitch_single_loop): Optimize conditions even when reaching
3524         max-unswitch-level parameter.  If num > 0, optimize first all conditions
3525         using entry checks, then do still reachable block discovery and consider
3526         only conditions in still reachable basic blocks in the loop.
3527
3528         PR tree-optimization/44539
3529         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
3530         the call doesn't have LHS, but has VDEF.
3531
3532 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
3533
3534         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
3535         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
3536         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
3537         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
3538         * system.h (MODIFY_TARGET_NAME): Poison.
3539
3540 2010-06-25  Alan Modra  <amodra@gmail.com>
3541
3542         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
3543         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
3544         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3545         CMODEL_LARGE as default.
3546         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
3547         (offsettable_ok_by_alignment): Delete.
3548         (rs6000_emit_move): Remove mcmodel=medium optimization.
3549
3550 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
3551
3552         With large parts from Jim Wilson:
3553         PR target/43902
3554         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
3555         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3556         * optabs.c (optab_for_tree_code): Likewise.
3557         (expand_widen_pattern_expr): Likewise.
3558         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
3559         out of execute_optimize_widening_mul.
3560         (convert_plusminus_to_widen): New function.
3561         (execute_optimize_widening_mul): Use the two new functions.
3562         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
3563         Remove code to generate widening multiply-accumulate.  Add support
3564         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3565         * gimple-pretty-print.c (dump_ternary_rhs): New function.
3566         (dump_gimple_assign): Call it when appropriate.
3567         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
3568         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
3569         (expand_gimple_stmt_1): Likewise.
3570         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
3571         WIDEN_MULT_MINUS_EXPR.
3572         * tree-ssa-operands.c (get_expr_operands): Likewise.
3573         * tree-inline.c (estimate_operator_cost): Likewise.
3574         * gimple.c (extract_ops_from_tree_1): Renamed from
3575         extract_ops_from_tree.  Add new arg for a third operand; fill it.
3576         (gimple_build_assign_stat): Support operations with three operands.
3577         (gimple_build_assign_with_ops_stat): Likewise.
3578         (gimple_assign_set_rhs_from_tree): Likewise.
3579         (gimple_assign_set_rhs_with_ops_1): Renamed from
3580         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
3581         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
3582         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
3583         WIDEN_MULT_MINUS_EXPR.
3584         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
3585         (extract_ops_from_tree_1): Adjust declaration.
3586         (gimple_assign_set_rhs_with_ops_1): Likewise.
3587         (gimple_build_assign_with_ops): Pass NULL for last operand.
3588         (gimple_build_assign_with_ops3): New macro.
3589         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
3590         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
3591         functions.
3592         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
3593         (verify_gimple_assign): Call it.
3594         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
3595         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
3596         functions for dealing with three-operand statements.
3597         * tree.c (commutative_ternary_tree_code): New function.
3598         * tree.h (commutative_ternary_tree_code): Declare it.
3599         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
3600         ternary statements.
3601         (gimple_assign_nonzero_warnv_p): Likewise.
3602         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
3603         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
3604         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
3605         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
3606         (struct hashtable_expr): New member ternary in the union.
3607         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
3608         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
3609         (iterative_hash_hashable_expr): Likewise.
3610         (print_expr_hash_elt): Handle EXPR_TERNARY.
3611         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
3612         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
3613         statements.  Handle GIMPLE_TERNARY_RHS.
3614
3615 2010-06-25  Jan Hubicka  <jh@suse.cz>
3616
3617         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
3618
3619 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
3620
3621         PR c/44517
3622         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
3623         parameters are not good.
3624         (c_parser_parameter_declaration): Error unknown type name if the type
3625         name can't start declaration specifiers.
3626
3627 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
3628
3629         * gcc.c (translate_options): Don't mention +e in comment.
3630         (process_command): Don't handle +e specially.
3631
3632 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
3633
3634         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3635
3636         * ira-build.c (merge_hard_reg_conflicts): New function.
3637         (create_cap_allocno, copy_info_to_removed_store_destinations,
3638         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3639         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3640         (remove_unnecessary_allocnos, remove_low_level_allocnos)
3641         copy_nifo_to_removed_store_destination): Use them.
3642         * ira-lives.c (make_hard_regno_born): New function, split out of
3643         make_regno_born.
3644         (make_allocno_born): Likewise.
3645         (make_hard_regno_dead): New function, split out of make_regno_dead.
3646         (make_allocno_dead): Likewise.
3647         (inc_register_pressure): New function, split out of set_allocno_live.
3648         (dec_register_pressure): New function, split out of clear_allocno_live.
3649         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3650         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
3651         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3652         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
3653         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3654         mark_pseudo_regno_live.
3655         (process_bb_node_lives): Use mark_pseudo_regno_live,
3656         make_hard_regno_born and make_allocno_dead.
3657         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3658         set_allocno_live, clear_allocno_live): Delete functions.
3659
3660         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3661         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3662         functions.
3663         (ira_flattening): Use ira_parent_allocno.
3664         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3665         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3666
3667         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3668         statement.
3669
3670         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3671         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3672         minmax_set_iter_cond, minmax_set_iter_next,
3673         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3674         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3675         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
3676         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
3677         uses changed.
3678
3679         * ira-int.h (struct live_range, live_range_t): Renamed from struct
3680         ira_allocno_live_range and allocno_live_range_t; all uses changed.
3681         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
3682         All uses changed.
3683
3684 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
3685
3686         * thumb2.md (thumb2_tlobits_cbranch): Delete.
3687         (peephole2 to convert zero_extract/compare of single bit to
3688          lshift/compare): New.
3689
3690 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
3691
3692         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
3693         recursive call and call to 'int_const_binop'.
3694         (build_range_check, fold_cond_expr_with_comparison, unextend,
3695         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
3696         multiple_of_p): Adjust call to const_binop.
3697
3698 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
3699
3700         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
3701         determine size of XFmode operand.
3702         (XFmode extended DFmode push splitter): Ditto.
3703         (XFmode extended SFmode push splitter): Ditto.
3704
3705 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3706
3707         PR target/44588
3708         * config/i386/i386.md (extract_code): New.
3709         (<u>divmodqi4): Likewise.
3710         (divmodhiqi3): Likewise.
3711         (udivmodhiqi3): Likewise.
3712         (<u>divqi3): Remvoved.
3713
3714 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
3715
3716         PR middle-end/44492
3717         * recog.h (struct recog_data): Add is_asm field.
3718         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
3719         present in constraints of inline-asm operand and memory operand
3720         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
3721         (extract_insn): Initialize recog_data.is_asm.
3722         * doc/md.texi (Constraints): Document operand side-effect rules.
3723
3724 2010-06-24  Andi Kleen  <ak@linux.intel.com>
3725
3726         * c-parser.c (c_parser_conditional_expression): Call
3727         warn_for_omitted_condop.
3728         * doc/invoke.texi: Document omitted condop warning.
3729
3730 2010-06-24  Nick Clifton<nickc@redhat.com>
3731
3732         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
3733         insn in the sequence is a jump insn before setting its label.
3734
3735 2010-06-24  Alan Modra  <amodra@gmail.com>
3736
3737         * collect2.c (main): Match exactly --version and --help.
3738
3739 2010-06-24  DJ Delorie  <dj@redhat.com>
3740
3741         * config/m32c/m32c-pragma.c: Don't include rtl.h.
3742
3743 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
3744
3745         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
3746         using X87MODEF mode iterator.
3747         (pushsf splitter): Macroize splitter using P mode iterator.
3748         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3749         mode iterator.
3750
3751         (*movxf_internal): Rename from *movxf_integer.
3752         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3753         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3754         (*movdf_internal): Rename from *movdf_integer.
3755         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3756         (*movsf_internal): Rename from *movdf_1.
3757
3758 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
3759
3760         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3761         (const_gimple_seq_node): Removed typedefs.
3762
3763         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3764         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3765
3766 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3767
3768         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3769         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3770         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3771         and CODE_FOR_vec_extract_lo_v4df.
3772
3773         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3774         Changed to define_insn_and_split.
3775         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3776         (vec_extract_lo_v16hi): Likewise.
3777         (vec_extract_lo_v32qi): Likewise.
3778         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3779         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3780
3781 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
3782
3783         PR target/44640
3784         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3785         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3786         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3787         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3788         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3789
3790         PR target/44640
3791         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3792
3793         PR other/44644
3794         * df-core.c (struct df): Rename to df_d.
3795         * df.h (struct df): Likewise.
3796         * dse.h (struct df): Remove forward declaration.
3797         * recog.h (struct insn_data): Rename to:
3798         (struct_insn_data_d).  Adjusted all users.
3799
3800 2010-06-23  Arnaud Charlet  <charlet@adacore.com
3801
3802         PR ada/22220
3803         * doc/install.texi: Update requirements to build GNAT.
3804
3805 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
3806
3807         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3808         enum type.
3809         (m68k_sched_attr_opx_type): Remove unreachable return.
3810         (m68k_sched_attr_opy_type): Likewise.
3811         (m68k_sched_attr_size): Likewise.
3812         (sched_get_opxy_mem_type): Likewise.
3813         (m68k_sched_attr_op_mem): Likewise.
3814
3815 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3816
3817         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3818         new statement and adjust VDEF only if necessary.  Remove superfluous
3819         call to maybe_clean_or_replace_eh_stmt.
3820         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3821         copy the flags.
3822         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3823         * tree-inline.c (copy_bb): ...and not there.
3824
3825 2010-06-22  Cary Coutant  <ccoutant@google.com>
3826
3827         * dwarf2out.c (is_nested_in_subprogram): New function.
3828         (should_move_die_to_comdat): Use it.
3829         (copy_ancestor_tree): Don't mark DIEs here.
3830         (copy_decls_walk): Start walk from root of newly-added tree;
3831         mark DIEs here instead.
3832
3833 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3834
3835         * config/i386/i386.md (unit): Also check sseishft1.
3836
3837 2010-06-22  Jan Hubicka  <jh@suse.cz>
3838
3839         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3840         enabled.
3841
3842 2010-06-22  Jan Hubicka  <jh@suse.cz>
3843
3844         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3845         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3846         Return true if something changed.
3847         * df.h (df_confluence_function_n): Return bool.
3848         * df-core.c (df_worklist_propagate_forward,
3849         df_worklist_propagate_backward): Track changes and ages.
3850         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3851         track ages.
3852         * dse.c (dse_confluence_n): Return always true.
3853
3854 2010-06-22  Jan Hubicka  <jh@suse.cz>
3855
3856         * bitmap.c (bitmap_clear_bit): Micro optimize.
3857
3858 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
3859
3860         * config/i386/i386.md (SWI1248x): New mode iterator.
3861         (SWI48x): Ditto.
3862         (SWI12): Ditto.
3863         (SWI24): Ditto.
3864
3865         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3866         SWI1248x mode iterator.
3867         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3868         using SWI124 mode iterator.
3869         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3870         mode iterator.
3871         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
3872         *pushdi2_prologue_rex64 using P mode iterator.
3873         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3874         using SWI48 mode iterator.
3875         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3876         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3877         using SWI1248x mode iterator.
3878         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3879         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3880         SWI48 mode iterator.
3881         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3882         iterator.
3883         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3884         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3885         SWI12 mode iterator.
3886         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3887         SWI12 mode iterator.
3888         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3889         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3890         SWI24 mode iterator.
3891         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3892         SWI48 mode iterator.
3893         (mov<mode>_insn_1): New expander.
3894         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3895         using SWI48x mode iterator.
3896
3897         (*movoi_internal_avx): Rename from *movoi_internal.
3898         (*movti_internal_rex64): Rename from *movti_rex64.
3899         (*movti_internal_sse): Rename from *movti_sse.
3900         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3901         (*movdi_internal): Rename from *movdi_2.
3902         (*movsi_internal): Rename from *movsi_1.
3903         (*movhi_internal): Rename from *movhi_1.
3904         (*movqi_internal): Rename from *movqi_1.
3905
3906         (insv): Update the call to gen_movsi_insv_1 for rename.
3907         * config/i386/i386.c (promote_duplicated_reg): Ditto.
3908
3909 2010-06-22  Jan Hubicka  <jh@suse.cz>
3910
3911         * passes.c (execute_function_todo): Move call of statistics_fini_pass
3912         to ...
3913         (execute_todo) ... this one.
3914
3915 2010-06-22  Alan Modra  <amodra@gmail.com>
3916
3917         PR target/44364
3918         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3919         * caller-save.c (insert_restore, insert_save): Use non-validate
3920         form of adjust_address.
3921
3922 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3923
3924         PR target/39690
3925         * config/pa/pa.c (override_options): Disable
3926         -freorder-blocks-and-partition.
3927
3928 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3929
3930         PR target/44615
3931         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3932
3933         * config/i386/i386.md (type): Add sseishft1
3934
3935         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3936         (ppro_insn_load): Likewise.
3937         (ppro_insn_store): Likewise.
3938         (ppro_insn_both): Likewise.
3939
3940         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3941         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3942         for type.
3943         (*vec_extractv2di_1_avx): Likewise.
3944         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3945         type.  Remove atom_unit.
3946         (*vec_extractv2di_1_sse2): Likewise.
3947
3948 2010-06-21  DJ Delorie  <dj@redhat.com>
3949
3950         * diagnostic.h (diagnostic_classification_change_t): New.
3951         (diagnostic_context): Add history and push/pop list.
3952         (diagnostic_push_diagnostics): Declare.
3953         (diagnostic_pop_diagnostics): Declare.
3954         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3955         from pragmas in a history chain instead of the global table.
3956         (diagnostic_push_diagnostics): New.
3957         (diagnostic_pop_diagnostics): New.
3958         (diagnostic_report_diagnostic): Scan history chain to find state
3959         of diagnostics as of the diagnostic location.
3960         * opts.c (set_option): Pass UNKNOWN_LOCATION to
3961         diagnostic_classify_diagnostic.
3962         (enable_warning_as_error): Likewise.
3963         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3964         use in the history chain.
3965         * doc/extend.texi: Document pragma GCC diagnostic changes.
3966
3967 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
3968
3969         * dwarf2out.c (add_linkage_name): New function.  Don't add
3970         anything to DW_TAG_member DIEs.
3971         (add_name_and_src_coords_attributes): Use it.
3972         (gen_variable_die): Call it for C++ static data members if
3973         specification is DW_TAG_member.
3974
3975         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3976         C++ char16_t and char32_t.
3977
3978         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3979         * genattrtab.c: Include vecprim.h.
3980         (cached_attrs, cached_attr_count, attrs_seen_once,
3981         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3982         attrs_cached_after): New variables.
3983         (find_attrs_to_cache): New function.
3984         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3985         (write_test_expr): Add attrs_cached argument, return it too,
3986         attempt to cache non-const attributes used more than once in
3987         a single case handling.
3988         (write_attr_get): Use find_attrs_to_cache, for caching candidates
3989         emit cached_* variables.  Adjust write_attr_set callers.
3990         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3991         to find attributes that should be cached in this block.  Adjust
3992         write_test_expr callers.
3993         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
3994         callers.
3995         (make_automaton_attrs): Adjust write_test_expr caller.
3996
3997         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3998         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3999         (make_automaton_attrs): If find_tune_attr returns non-NULL,
4000         write separate internal_dfa_insn_code_* and insn_default_latency_*
4001         functions for each attribute's value and emit init_sched_attrs
4002         function and function pointers.
4003         * genattr.c (const_attrs, reservations): New variables.
4004         (gen_attr): Add const attributes to const_attrs vector.
4005         (check_tune_attr, find_tune_attr): New functions.
4006         (main): Add reservations to reservations vector.  If find_tune_attr
4007         returns true, add prototype for init_sched_attrs and make
4008         internal_dfa_insn_code and insn_default_latency function pointers,
4009         otherwise define init_sched_attrs as dummy macro.
4010         * cfgexpand.c: Include insn-attr.h.
4011         (gimple_expand_cfg): Call init_sched_attrs.
4012
4013         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
4014
4015         PR target/44575
4016         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
4017         va_arg from a set of register save slots into a temporary,
4018         if the container is bigger than type size, do the copying
4019         using smaller mode or using memcpy.
4020
4021         PR bootstrap/44426
4022         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
4023         prototype.
4024         (sel_print_to_dot): Remove macro.
4025         (sel_print): Likewise.  New prototype.
4026         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
4027         (sel_print): New function.
4028
4029 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4030
4031         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
4032         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
4033
4034 2010-06-21  Nick Clifton  <nickc@redhat.com>
4035
4036         * config/rx/rx.h (PTRDIFF_TYPE): Define.
4037         (SMALL_REGISTER_CLASS): Define (to zero).
4038         (PRINT_OPERAND): Delete.
4039         (PRINT_OPERAND_ADDRESS): Delete.
4040         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
4041         (rx_print_operand_address): Delete prototype.
4042         * config/rx/rx.c (rx_print_operand): Make static.
4043         Allow %H and %L to handle CONST_DOUBLEs.
4044         (rx_print_operand_address): Make static.
4045         (rx_gen_move_template): Rename local variable 'template' to
4046         out_template.
4047         (rx_function_arg): Do not pass unknown sized objects in registers.
4048         (TARGET_PRINT_OPERAND): Define.
4049         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4050
4051 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4052
4053         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4054
4055 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
4056
4057         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4058         stack-alignment for simple leaf-functions.
4059
4060 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
4061
4062         * doc/install.texi: Document bootstrap-lto.
4063
4064 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
4065
4066         PR debug/44248
4067         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4068         (input_function): Drop them here, if VTA is disabled.
4069
4070 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
4071
4072         PR target/44546
4073         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4074         New predicate.
4075         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4076         ix86_swapped_fp_comparsion_operator instead of
4077         ix86_fp_comparison_operator.
4078
4079         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4080         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4081         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4082         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4083         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4084         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4085
4086 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
4087
4088         PR other/32998
4089         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4090         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4091         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4092         (decode_cmdline_option): Update for this return value.  Set
4093         orig_option_with_args_text field.  Set arg field for unknown
4094         options.  Make static.
4095         (decode_cmdline_options_to_array): New.
4096         (prune_options): Update handling of find_opt return value.
4097         * opts.c (read_cmdline_option): Take decoded option.  Return void.
4098         (read_cmdline_options): Take decoded options.
4099         (decode_options): Add parameters for decoded options.  Use
4100         decode_cmdline_options_to_array.  Use decoded options for -O
4101         scan.  Use integral_argument for -O parameters.  Update call to
4102         read_cmdline_options.
4103         (enable_warning_as_error): Update handling of find_opt return value.
4104         * opts.h: Update comment on unknown options.
4105         (struct cl_decoded_option): Update comments on opt_index and arg.
4106         Add orig_option_with_args_text.
4107         (decode_cmdline_option): Remove.
4108         (decode_cmdline_options_to_array): Declare.
4109         (decode_options): Update prototype.
4110         * toplev.c (save_argv): Remove.
4111         (save_decoded_options, save_decoded_options_count): New.
4112         (read_integral_parameter): Remove.
4113         (print_switch_values): Use decoded options.
4114         (toplev_main): Don't set save_argv.  Update call to decode_options.
4115         * toplev.h (read_integral_parameter): Remove.
4116         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4117
4118 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
4119
4120         PR target/44072
4121         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4122         immediate.
4123         * constraints.md (Pw, Px): New constraints.
4124         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4125
4126 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
4127
4128         * config/i386/sse.md (fma4modesuffixf4): Removed.
4129         (ssemodesuffixf2s): Likewise.
4130         (ssemodesuffixf4): Likewise.
4131         (ssemodesuffixf2c): Likewise.
4132         (ssescalarmodesuffix2s): Likewise.
4133         (avxmodesuffixf2c): Likewise.
4134         (ssemodesuffix): New.
4135         (ssescalarmodesuffix): Likewise.
4136         Update patterns with ssemodesuffix and ssescalarmodesuffix.
4137
4138 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
4139
4140         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4141
4142 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4143
4144         * stor-layout.c (debug_rli): Remove unused local variables.
4145
4146 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
4147
4148         PR rtl-optimization/40900
4149         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
4150         original expression for later reuse.
4151         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4152         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4153
4154 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
4155
4156         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4157         double_int_fits_in_uhwi_p): Implement as static inline.
4158         (double_int_xor): New inline function.
4159         (double_int_lrotate, double_int_rrotate, double_int_max,
4160         double_int_umax, double_int_smax, double_int_min, double_int_umin,
4161         double_int_smin): Declare.
4162         (lrotate_double, rrotate_double): Remove declaration.
4163         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4164         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4165         (double_int_lrotate, double_int_rrotate, double_int_max,
4166         double_int_umax, double_int_smax, double_int_min, double_int_umin,
4167         double_int_smin): New function.
4168         * fold-const.c (int_const_binop): Clean up, use double_int_*
4169         functions.
4170         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4171         double_int_* and immed_double_int_const functions.
4172
4173 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4174
4175         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4176         * function.c (types_used_by_cur_var_decl): Likewise.
4177         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4178
4179 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
4180
4181         * tree.h (record_layout_info): Change type of pending_statics field
4182         to a VEC.
4183         * stor-layout.c (start_record_layout): Store NULL into
4184         pending_statics.
4185         (debug_rli): Call debug_vec_tree instead of debug_tree.
4186         (place_field): Likewise.
4187         (finish_record_layout): Likewise.
4188
4189 2010-06-18  Alan Modra  <amodra@gmail.com>
4190
4191         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4192
4193 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4194
4195         PR target/43740
4196         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4197         for SET source operand from SET destination operand.
4198
4199 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
4200
4201         PR rtl-optimization/39871
4202         * reload1.c (init_eliminable_invariants): For flag_pic, disable
4203         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4204         (function_invariant_p): Rule out a plus of frame or arg pointer with
4205         a SYMBOL_REF.
4206         * ira.c (find_reg_equiv_invariant_const): Likewise.
4207
4208 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
4209
4210         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4211         print_operand_address and puts to output the operand for CONST.
4212
4213 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
4214
4215         PR debug/44572
4216         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4217         hook.
4218
4219 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4220
4221         * v850-protos.h (print_operand): Delete.
4222         (print_operand_address): Delete.
4223         * v850.h (PRINT_OPERAND): Delete.
4224         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4225         (PRINT_OPERAND_ADDRESS): Delete.
4226         * v850.c (print_operand_address): Rename to...
4227         (v850_print_operand_address): ...this.  Make static. Call
4228         v850_print_operand.
4229         (print_operand): Rename to...
4230         (v850_print_operand): ...this.  Make static.  Call
4231         v850_print_operand_address.
4232         (v850_print_operand_punct_valid_p): New function.
4233         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4234         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4235
4236 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4237
4238         * config/sh/sh-protos.h (print_operand): Delete.
4239         (print_operand_address): Delete.
4240         * config/sh/sh.h (PRINT_OPERAND): Delete.
4241         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4242         (PRINT_OPERAND_ADDRESS): Delete.
4243         * config/sh/sh.c (sh_print_operand_address): Make static.
4244         (sh_print_operand): Make static.  Call sh_print_operand_address
4245         and sh_print_operand.
4246         (sh_print_operand_punct_valid_p): New function.
4247         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4248         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4249
4250 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4251
4252         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4253         (mcore_print_operand_address): Delete.
4254         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4255         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4256         (PRINT_OPERAND_ADDRESS): Delete.
4257         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4258         (mcore_print_operand): Make static.
4259         (mcore_print_operand_punct_valid_p): New function.
4260         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4261         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4262
4263 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4264
4265         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4266         (print_operand_address): Delete.
4267         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
4268         (PRINT_OPERAND_ADDRESS): Delete.
4269         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
4270         static.
4271         (m68hc11_print_operand): Make static.
4272         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4273
4274 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4275
4276         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
4277         (m32r_print_operand_address): Delete.
4278         * config/m32r/m32r.h (m32r_punct_chars): Delete.
4279         (PRINT_OPERAND): Delete.
4280         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4281         (PRINT_OPERAND_ADDRESS): Delete.
4282         * config/m32r/m32r.c (m32r_punct_chars): Make static.
4283         (m32r_print_operand_address): Make static.
4284         (m32r_print_operand): Make static.
4285         (m32r_print_operand_punct_valid_p): New function.
4286         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4287         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4288
4289 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4290
4291         * config/iq2000/iq2000-protos.h (print_operand): Delete.
4292         (print_operand_address): Delete.
4293         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
4294         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4295         (PRINT_OPERAND_ADDRESS): Delete.
4296         (iq2000_print_operand_punct): Delete.
4297         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
4298         (iq2000_print_operand_address): Make static.
4299         (iq2000_print_operand): Make static.
4300         (iq2000_print_operand_punct_valid_p): New function.
4301         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4302         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4303
4304 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4305
4306         * config/frv/frv-protos.h (frv_print_operand): Delete.
4307         (frv_print_operand_address): Delete.
4308         * config/frv/frv.h (PRINT_OPERAND): Delete.
4309         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4310         (PRINT_OPERAND_ADDRESS): Delete.
4311         * config/frv/frv.c (frv_print_operand_address): Make static.
4312         (frv_print_operand): Make static.
4313         (frv_print_operand_punct_valid_p): New function.
4314         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4315         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4316
4317 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
4318
4319         * tree.h (vec_member): Declare.
4320         * tree.c (vec_member): Define.
4321
4322 2010-06-17  Richard Guenther  <rguenther@suse.de>
4323
4324         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
4325         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
4326
4327 2010-06-17  Richard Guenther  <rguenther@suse.de>
4328
4329         * tree-inline.c (declare_return_variable): Remove bogus code.
4330
4331 2010-06-17  Richard Guenther  <rguenther@suse.de>
4332
4333         * gimplify.c (gimplify_bind_expr): Always promote complex
4334         and vector variables to registers if possible.
4335
4336 2010-06-17  Richard Guenther  <rguenther@suse.de>
4337
4338         * expr.c (get_inner_reference): Use double_int for bit_offset
4339         calculation.
4340
4341 2010-06-16  DJ Delorie  <dj@redhat.com>
4342
4343         * common.opt (-fstrict-volatile-bitfields): new.
4344         * doc/invoke.texi: Document it.
4345         * fold-const.c (optimize_bit_field_compare): For volatile
4346         bitfields, use the field's type to determine the mode, not the
4347         field's size.
4348         * expr.c (expand_assignment): Likewise.
4349         (get_inner_reference): Likewise.
4350         (expand_expr_real_1): Likewise.
4351         * expmed.c (store_fixed_bit_field): Likewise.
4352         (extract_bit_field_1): Likewise.
4353         (extract_fixed_bit_field): Likewise.
4354
4355 2010-06-16  Richard Guenther  <rguenther@suse.de>
4356
4357         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4358
4359 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
4360
4361         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4362         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4363         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4364         * debug.c: Likewise.
4365         * sdbout.c: Likewise.
4366         * vmsdbgout.c: Likewise.
4367         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4368         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4369         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4370         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4371         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4372         * dwarf2out.c (dw_fde_struct): New fields
4373         dw_fde_vms_{end,begin}_prologue.
4374         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4375         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4376         (dwarf2out_vms_end_prologue): New function.
4377         (dwarf2out_vms_begin_epilogue): New function.
4378         (dw_val_struct): New value dw_val_class_vms_delta.
4379         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4380         begin_epilogue for VMS.
4381         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4382         new static functions.
4383         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4384         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4385         static functions.
4386         (print_die): New case dw_val_class_vms_delta.
4387         (attr_checksum): Likewise.
4388         (same_dw_val_p: Likewise.
4389         (size_of_die): Likewise.
4390         (value_format): Likewise.
4391         (output_die): Likewise.
4392         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4393         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4394         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4395         dwarf2out_cfi_begin_epilogue
4396         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4397
4398 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
4399
4400         * config/cris/cris-protos.h (cris_print_operand): Delete.
4401         (cris_print_operand_address): Delete.
4402         * config/cris/cris.h (PRINT_OPERAND): Delete.
4403         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4404         (PRINT_OPERAND_ADDRESS): Delete.
4405         * config/cris/cris.c (cris_print_operand_address): Make static.
4406         (cris_print_operand): Make static.
4407         (cris_print_operand_punct_valid_p): New function.
4408         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4409         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4410
4411 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
4412
4413         * config/arm/arm-protos.h (arm_print_operand): Delete.
4414         (arm_print_operand_address): Delete.
4415         * config/arm/arm.h (PRINT_OPERAND): Delete.
4416         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4417         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
4418         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
4419         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
4420         (arm_print_operand): Make static.
4421         (arm_print_operand_punct_valid_p): New function.
4422         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4423         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4424
4425 2010-06-16  Nick Clifton  <nickc@redhat.com>
4426
4427         * config/rx/constraints.md (NEGint4): New constraint.
4428         * config/rx/rx.md (attr cc): Add set_zsc.
4429         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
4430         initialised.
4431         (cmpsf): Likewise.
4432         (call_internal): Clobber the cc0 register.
4433         (call_value_internal): Likewise.
4434         (cstoresi4): Likewise.
4435         (movsieq): Likewise.
4436         (movsine): Likewise.
4437         (addsi3): Add alternative to handle small negative constants.
4438         (sunsi3): Likewise.
4439         (addsi3): Do not set the O bit in the cc0 register.
4440         (adddi3): Likewise.
4441         (subsi3): Likewise.
4442         (subdi3): Likewise.
4443         (andsi3): Reorder alternatives to prefer shorter forms.
4444         (mulsi3): Likewise.
4445         (iorsi3): Likewise.
4446         (negsi2): Note that the cc0 flags are set.
4447         (rotlsi3): Note that only the Z and S bits are set in cc0.
4448         (lshrsi3): Likewise.
4449         (ashlsi3): Likewise.
4450         (subsf3): Use %Q for the MEM operand.
4451         (fix_truncsfsi2): Likewise.
4452         (floatsisf2): Likewise.
4453         (bitset): Remove early clobber from destination.
4454         (bitset_in_memory): Likewise.
4455         (lrintsf2): Clobber the cc0 register.
4456         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
4457         (rx_print_operand): Handle %N.
4458
4459 2010-06-16  Jan Hubicka  <jh@suse.cz>
4460
4461         * df-core.c (df_compact_blocks): Free problem_temps vector.
4462
4463 2010-06-16  Martin Jambor  <mjambor@suse.cz>
4464
4465         PR tree-optimization/43905
4466         * tree-sra.c: Include tree-inline.h.
4467         (create_abstract_origin): Removed.
4468         (modify_function): Version the call graph node instead of creating
4469         abstract origins and dealing with same_body aliases.
4470         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
4471         function is versionable.
4472         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
4473
4474 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
4475
4476         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
4477         (CHOOSE_DYNAMIC_LINKER): Update.
4478
4479 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
4480
4481         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
4482         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
4483         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
4484         *prefetch_3dnow_rex.
4485
4486 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
4487
4488         * target.h (struct asm_out):Add declare_constant_name field.
4489         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4490         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
4491         * output.h (default_asm_declare_constant_name): Declare.
4492         (assemble_label): Update prototype.
4493         * varasm.c (assemble_constant_contents): Use
4494         targetm.asm_out.declare_constant_name target hook.
4495         (assemble_label): Add 'file' argument.
4496         (default_asm_declare_constant_name): New function.
4497         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
4498         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
4499         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
4500
4501         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
4502         * config/darwin.c (darwin_asm_declare_constant_name): New function.
4503         (machopic_output_indirection): Update assemble_label argument list.
4504         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
4505         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4506
4507 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
4508
4509         PR middle-end/44391
4510         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4511         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
4512
4513 2010-06-15  Richard Guenther  <rguenther@suse.de>
4514
4515         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
4516
4517 2010-06-15  Paul Brook  <paul@codesourcery.com>
4518
4519         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
4520         hard-float ABI.
4521
4522 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
4523
4524         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
4525         don't get a vector type for output.
4526
4527 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
4528
4529         PR fortran/44536
4530         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
4531         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
4532         (LANG_HOOKS_DECLS): Add it.
4533         * gimplify.c (omp_notice_variable): Call
4534         lang_hooks.decls.omp_report_decl.
4535
4536 2010-06-15  Martin Jambor  <mjambor@suse.cz>
4537
4538         PR lto/44464
4539         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
4540         on the newly dead SSA name.
4541
4542 2010-06-15  Alan Modra  <amodra@gmail.com>
4543
4544         * doc/invoke.texi: Add mcmodel to powerpc options.
4545         * configure.ac: Add HAVE_LD_LARGE_TOC test.
4546         * configure: Regenerate.
4547         * config.in: Regenerate.
4548         * config/rs6000/linux64.opt (mcmodel): New.
4549         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
4550         (TARGET_CMODEL, SET_CMODEL): Define.
4551         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
4552         select CMODEL_MEDIUM default.
4553         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
4554         (TARGET_CMODEL): Define default.
4555         * config/rs6000/rs6000.c (cmodel): New variable.
4556         (rs6000_explicit_options): Add cmodel field.
4557         (rs6000_handle_option): Handle -mcmodel.
4558         (create_TOC_reference): Add largetoc_reg param.  Generate high,
4559         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
4560         (rs6000_delegitimize_address): Recognise new toc reference rtl
4561         and minimal-toc rtl.
4562         (rs6000_legitimize_reload_address): Handle new toc references.
4563         (print_operand_address): Handle legitimate_constant_pool_address_p
4564         match before lo_sum.
4565         (rs6000_eliminate_indexed_memrefs): Tidy.
4566         (rs6000_emit_move): Tweak threshold for inlining constants.
4567         Keep rs6000_emit_allocate_stack large stack frame offsets
4568         loaded into r0 inline.
4569         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
4570         (tocrel_base, tocrel_offset): New variables.
4571         (toc_relative_expr_p): Set them here.
4572         (print_operand_address): Skip over any offset on constant pool address.
4573         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
4574         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
4575         (offsettable_ok_by_alignment): New function.
4576         (rs6000_emit_move): Address suitably aligned local symbol_refs
4577         relative to the toc pointer for -mcmodel=medium.
4578         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
4579         strict param.  Allow lo_sum version of addressing.  Verify reg
4580         used for -mminimal-toc and -mcmodel != small.  Update all callers.
4581         * config/rs6000/constraints.md: Update for above change.
4582         * config/rs6000/predicates.md: Likewise.
4583         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
4584         code.
4585         (tls_gd): Split for -mcmodel=medium/large.
4586         (tls_gd_high, tls_gd_low): New.
4587         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
4588         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
4589         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
4590         (largetoc_high, largetoc_low): New.
4591         (cmptf_internal2): Add clobber.
4592         * config/rs6000/rs6000-protos.h: Update.
4593
4594 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
4595
4596         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
4597         true if no prefetch is going to be generated for a given group.
4598         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
4599         estimate the prefetch_count.
4600         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
4601         prefetch count by considering the unroll_factor and prefetch_mod
4602         for is_loop_prefetching_profitable.
4603
4604 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
4605
4606         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
4607         anything if the argument is not a MEM.
4608
4609 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
4610
4611         PR debug/43650
4612         PR debug/44181
4613         PR debug/44247
4614         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
4615         debug stmts.
4616         (canonicalize_loop_ivs): Likewise.
4617
4618 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
4619
4620         PR debug/43656
4621         * haifa-sched.c (setup_insn_reg_pressure_info,
4622         update_register_pressure): Reject debug insns.
4623         (ready_sort): Don't setup reg pressure for debug insns.
4624         (schedule_insn): Don't update reg pressure for debug insns.
4625
4626 2010-06-14  Richard Guenther  <rguenther@suse.de>
4627
4628         * lto-streamer.c (cached_bp): Remove.
4629         (bitpack_delete): Likewise.
4630         (bitpack_create): Likewise.
4631         (bp_get_next_word): Likewise.
4632         (bp_pack_value, bp_unpack_value): Move ...
4633         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
4634         Re-implement.
4635         (struct bitpack_d): Likewise.
4636         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4637         New inline functions.
4638         * lto-streamer-out.c (lto_output_bitpack): Remove.
4639         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
4640         (pack_value_fields): Adjust.
4641         (lto_write_tree): Likewise.
4642         (output_gimple_stmt): Likewise.
4643         (output_function): Likewise.
4644         * lto-streamer-in.c (input_gimple_stmt): Adjust.
4645         (input_function): Likewise.
4646         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
4647         (lto_input_bitpack): Remove.
4648         (lto_materialize_tree): Adjust.
4649         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4650         * lto-cgraph.c (lto_output_edge): Adjust.
4651         (lto_output_node): Likewise.
4652         (lto_output_varpool_node): Likewise.
4653         (lto_output_ref): Likewise.
4654         (input_node): Likewise.
4655         (input_varpool_node): Likewise.
4656         (input_ref): Likewise.
4657         (input_edge): Likewise.
4658         (output_node_opt_summary): Likewise.
4659         (input_node_opt_summary): Likewise.
4660         * ipa-pure-const.c (pure_const_write_summary): Likewise.
4661         (pure_const_read_summary): Likewise.
4662         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4663         (ipa_read_indirect_edge_info): Likewise.
4664         (ipa_write_node_info): Likewise.
4665         (ipa_read_node_info): Likewise.
4666
4667 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4668
4669         PR target/44534
4670         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4671         (vec_extract_lo_v16hi): Likewise.
4672         (vec_extract_lo_v32qi): Likewise.
4673
4674 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4675
4676         PR bootstrap/44426
4677         * tree.h (build_call_expr): Don't define as vararg macro, instead
4678         add a prototype.
4679         * builtins.c (build_call_nofold): Remove.
4680         (expand_builtin_int_roundingfn, expand_builtin_pow,
4681         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
4682         expand_builtin_memset_args, expand_builtin_strcmp,
4683         expand_builtin_strncmp, expand_builtin_memory_chk): Use
4684         build_call_nofold_loc instead of build_call_nofold.
4685         (build_call_expr): New function.
4686
4687         PR tree-optimization/44508
4688         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
4689         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
4690         don't eliminate trivially dead stmts.
4691         * tree-vrp.c (vrp_finalize): Pass false as last argument
4692         to substitute_and_fold.
4693         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
4694         to substitute_and_fold.
4695         * tree-ssa-ccp.c (ccp_finalize): Likewise.
4696
4697         PR bootstrap/44509
4698         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
4699
4700 2010-06-14  Ira Rosen  <irar@il.ibm.com>
4701
4702         PR tree-optimization/44507
4703         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
4704         to build initial vector for BIT_AND_EXPR.
4705         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4706
4707 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4708
4709         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
4710         adjust z10prop set_attr.
4711
4712 2010-06-13  Jan Hubicka  <jh@suse.cz>
4713
4714         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4715         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
4716         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
4717         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
4718         datastructure checks into checking asserts.
4719         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
4720         * tree-ssa-sccvn.c (VN_INFO): Likewise.
4721         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
4722         df_ref_create_structure): Likewise.
4723         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
4724         pool_free): Use gcc_checking_assert.
4725         * alias.c (get_alias_set): Likewise.
4726         * var-tracking.c (variable_htab_free, shared_hash_copy,
4727         canonicalize_values_mark, variable_merge_over_cur): Likewise.
4728         * lto-streamer.c (bp_unpack_value): Likewise.
4729
4730 2010-06-13  Richard Guenther  <rguenther@suse.de>
4731
4732         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
4733         Do not stream but initialize TYPE_CANONICAL to NULL.
4734         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4735         * gimple.c (gimple_types_compatible_p): Disregard
4736         TYPE_STRUCTURAL_EQUALITY_P.
4737         (gimple_register_type): Use TYPE_CANONICAL as cache.
4738         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4739         before registering common types.
4740         * config/i386/i386.c (ix86_function_arg_boundary): Do not
4741         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4742         * tree.h (TYPE_CANONICAL): Clarify documentation.
4743
4744 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
4745
4746         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4747         LIBCALL_VALUE): Remove macros.
4748         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4749         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4750         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4751         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4752         (ia64_function_value): Make static. Handle receiving the function
4753         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4754
4755 2010-06-12  Jan Hubicka  <jh@suse.cz>
4756
4757         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4758         at correct place.
4759
4760 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
4761
4762         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4763
4764 2010-06-12  Jan Hubicka  <jh@suse.cz>
4765
4766         * df-core.c (df_clear_bb_info): New function.
4767         (df_set_blocks): bb_info is always allocated.
4768         (df_get_bb_info): Use block_info_elt_size.
4769         (df_set_bb_info): Likewise.
4770         (df_compact_blocks): Update for new block_info.
4771         (grow_bb_info): New function.
4772         * df-problems.c (df_grow_bb_info): Move to df-core.c
4773         (df_rd_set_bb_info): Remove.
4774         (df_rd_free_bb_info): Do not free block pool.
4775         (df_rd_alloc): Do not create pool, use check for
4776         obstack presence instead of NULL pointer for new blocks.
4777         (df_rd_free): DO not free alloc pool; clear block_info.
4778         (problem_RD): Add size of block info structure.
4779         (df_lr_set_bb_info): Remove.
4780         (df_lr_free_bb_info): Do not free block pool.
4781         (df_lr_alloc): Do not create pool, use check for
4782         obstack presence instead of NULL pointer for new blocks.
4783         (df_lr_free): DO not free alloc pool; clear block_info.
4784         (problem_LR): Add size of block info structure.
4785         (df_live_set_bb_info): Remove.
4786         (df_live_free_bb_info): Do not free block pool.
4787         (df_live_alloc): Do not create pool, use check for
4788         obstack presence instead of NULL pointer for new blocks.
4789         (df_live_free): DO not free alloc pool; clear block_info.
4790         (problem_LIVE): Add size of block info structure.
4791         (problem_CHAIN): Add size of block info structure.
4792         (df_byte_lr_set_bb_info): Remove.
4793         (df_byte_lr_free_bb_info): Do not free block pool.
4794         (df_byte_lr_alloc): Do not create pool, use check for
4795         obstack presence instead of NULL pointer for new blocks.
4796         (df_byte_lr_free): DO not free alloc pool; clear block_info.
4797         (problem_BYTE_LR): Add size of block info structure.
4798         (problem_NOTE): Add size of block info structure.
4799         (df_byte_MD_set_bb_info): Remove.
4800         (df_byte_MD_free_bb_info): Do not free block pool.
4801         (df_byte_MD_alloc): Do not create pool, use check for
4802         obstack presence instead of NULL pointer for new blocks.
4803         (df_byte_MD_free): DO not free alloc pool; clear block_info.
4804         (problem_BD): Add size of block info structure.
4805         * df-scan.c (df_scan_free_internal): Free block pool.
4806         (df_scan_set_bb_info): Remove.
4807         (df_scan_free_bb_info): Check for artificial_defs instead
4808         of bb_info being non-NULL.
4809         (df_scan_alloc): DO not create df_scan_block pool.
4810         (problem_SCAN): Set size of block info.
4811         (df_bb_refs_record): Do not allocate bb_info.
4812         * df.h (df_problem): Add block_info_elt_size.
4813         (struct dataflow): Change block_info to void *.
4814         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4815         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4816         in-line structures.
4817
4818 2010-06-12  Jan Hubicka  <jh@suse.cz>
4819
4820         PR tree-optimize/44485
4821         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4822         containing use of return value of noreturn function.
4823
4824 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
4825
4826         * targhooks.c (default_function_value): Don't use
4827         FUNCTION_OUTGOING_VALUE.
4828         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4829         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4830
4831 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
4832
4833         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4834         Add crtfastmath.o to extra_parts.
4835         * config/mips/crtfastmath.c: New.
4836         * config/mips/linux.h (ENDFILE_SPEC): New.
4837
4838 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
4839
4840         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4841         old_type in parameter.
4842         (gcc_type_for_value): Update call to gcc_type_for_interval.
4843         (compute_type_for_level_1): Renamed compute_type_for_level.
4844         Update call to gcc_type_for_interval.
4845
4846 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
4847
4848         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4849         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4850
4851 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
4852
4853         * opts-common.c: Include options.h.
4854         (integral_argument): Move from opts.c.
4855         (decode_cmdline_option): New.  Based on read_cmdline_option.
4856         * opts.c (integral_argument): Move to opts-common.c.
4857         (read_cmdline_option): Move most contents to
4858         decode_cmdline_option.  Use %qs in diagnostics.
4859         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4860         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4861         decode_cmdline_option): New.
4862
4863 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4864
4865         PR target/44481
4866         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4867         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4868         (partiysi2_cmp): Ditto.
4869         (*partiyhi2_cmp): Ditto.
4870         (*parityqi2_cmp): Remove.
4871
4872 2010-06-11  Jan Hubicka  <jh@suse.cz>
4873
4874         * bitmap.h (bmp_iter_next_bit): New.
4875         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4876
4877 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
4878             Eric Botcazou  <ebotcazou@adacore.com>
4879
4880         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4881         computed cost.
4882
4883 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4884
4885         * config/i386/i386.md (unspec): New define_c_enum.
4886         (unspecv): Ditto.
4887
4888 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4889
4890         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4891
4892 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
4893
4894         PR middle-end/44483
4895         * tree-if-conv.c (bb_predicate_s): New struct.
4896         (bb_predicate_p): New.
4897         (bb_has_predicate): New.
4898         (bb_predicate): New.
4899         (set_bb_predicate): New.
4900         (bb_predicate_gimplified_stmts): New.
4901         (set_bb_predicate_gimplified_stmts): New.
4902         (add_bb_predicate_gimplified_stmts): New.
4903         (init_bb_predicate): New.
4904         (free_bb_predicate): New.
4905         (is_predicated): Use bb_predicate.
4906         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4907         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
4908         before processing their successors.
4909         (clean_predicate_lists): Removed.
4910         (find_phi_replacement_condition): Use bb_predicate.
4911         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
4912         computations.
4913         (insert_gimplified_predicates): New.
4914         (combine_blocks): Call insert_gimplified_predicates.
4915         (tree_if_conversion): Call free_bb_predicate instead of
4916         clean_predicate_lists.
4917
4918 2010-10-11  Paul Brook  <paul@codesourcery.com>
4919
4920         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4921         * config/arm/arm.c (all_architectures): Change v7e-m default to
4922         cortexm4.
4923         * config/arm/arm-cores.def: Add cortex-m4.
4924         * config/arm/arm-tune.md: Regenerate.
4925
4926 2010-06-11  Jan Hubicka  <jh@suse.cz>
4927
4928         * ipa-pure-const.c (special_builtlin_state): New function.
4929         (check_call): Use it instead of special casign BUILT_IN_RETURN.
4930         (propagate_pure_const): Use it.
4931
4932 2010-06-11  Jan Hubicka  <jh@suse.cz>
4933
4934         * df-problems.c (df_live_scratch): Convert to bitmap_head.
4935         (df_live_alloc): Initialize df_live_scratch when initializing
4936         problem_data.
4937         (df_live_transfer_function): Update uses of df_live_scratch.
4938         (df_live_free): Free problem_data; clear df_live_scratch before
4939         releasing the obstack.
4940         (df_md_free): Free problem data.
4941
4942 2010-06-11  Jan Hubicka  <jh@suse.cz>
4943
4944         * doc/invoke.texi (Wsuggest-attribute): Document.
4945         (Wmissing-noreturn): Remove.
4946         * ipa-pure-const.c (warn_function_noreturn): New function.
4947         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4948         warn_missing_noreturn.
4949         * common.opt (Wsuggest-attribute=noreturn): New.
4950         * tree-flow.h (warn_function_noreturn): Declare.
4951         * tree-cfg.c (execute_warn_function_noreturn): Use
4952         warn_function_noreturn.
4953         (gate_warn_function_noreturn): New.
4954         (pass_warn_function_noreturn): Update.
4955
4956 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4957
4958         * c-typeck.c (handle_warn_cast_qual): Add loc
4959         parameter. Improve warning message.
4960         (build_c_cast): Pass location to handle_warn_cast_qual.
4961
4962 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4963
4964         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4965         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
4966         insn mnemonic.
4967         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4968
4969 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
4970
4971         Fix bootstap on mips
4972         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4973         be naming typedefs.
4974
4975 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
4976
4977         * system.h (helper_const_non_const_cast): New inline for
4978         gcc version <= 4.0.
4979         (CONST_CAST2): For gcc version <= 4.0 use
4980         new helper to do const/non-const casting.
4981
4982 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4983
4984         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4985         * Makefile.in (OBJS-common): Include insn-enums.o.
4986         (insn-enums.o): New rule.
4987         (simple_generated_c): Add insn-enums.c.
4988         (build/genenums.o): New rule.
4989         (genprogmd): Add "enums".
4990         * genconstants.c (print_enum_type): Declare a C string array
4991         for each enum.
4992         * genenums.c: New file.
4993         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4994         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
4995         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4996
4997 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4998
4999         * doc/md.texi (define_enum_attr): Document.
5000         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
5001         * read-md.h (lookup_enum_type): Declare.
5002         * read-md.c (lookup_enum_type): New function.
5003         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
5004         * genattrtab.c (attr_desc): Add an enum_name field.
5005         (evaluate_eq_attr): Take the associated attribute as argument.
5006         Get the enum prefix from the enum_name field, if defined.
5007         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
5008         (simplify_test_exp): Pass attr to evaluate_eq_attr.
5009         (add_attr_value): New function, split out from...
5010         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
5011         (write_test_expr): Pass attr to evaluate_eq_attr.
5012         (write_attr_get): Use the enum_name as the enum tag, if defined.
5013         (write_attr_valueq): Use the enum_name as a prefix, if defined.
5014         (find_attr): Initialize enum_name.
5015         (main): Handle DEFINE_ENUM_ATTR.
5016         * gensupport.c (process_rtx): Likewise.
5017         * config/mips/mips.h (mips_tune_attr): Delete.
5018         * config/mips/mips.md (cpu): Use define_attr_enum.
5019
5020 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5021
5022         * doc/md.texi (define_c_enum, define_enum): Document.
5023         * read-md.h (md_constant): Add a parent_enum field.
5024         (enum_value, enum_type): New structures.
5025         (upcase_string, traverse_enum_types): Declare.
5026         * read-md.c (enum_types): New variable.
5027         (upcase_string, add_constant): New functions.
5028         (handle_constants): Don't create the hash table here.
5029         Use add_constant.
5030         (traverse_md_constants): Don't check for a null md_constants.
5031         (decimal_string, handle_enum, traverse_enum_types): New functions.
5032         (read_md_files): Initialize md_constants and md_enums.
5033         * genconstants.c (print_md_constant): Ignore info argument.
5034         Only print constants that belong to no enum.
5035         (print_enum_type): New function.
5036         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
5037         for each defined enum type.
5038         * config/mips/mips.md (processor): New define_enum.
5039         (unspec): New define_c_enum.
5040         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
5041         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
5042         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
5043         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
5044         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5045         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5046         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5047         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5048         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5049         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5050         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5051         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5052         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5053         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5054         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5055         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5056         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5057         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5058         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5059         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5060         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5061         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5062         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5063         (UNSPEC_RDDSP): Move to mips-dsp.md.
5064         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5065         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5066         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5067         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5068         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5069         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5070         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5071         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5072         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5073         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5074         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5075         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5076         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5077         Moved to mips-dspr2.md.
5078         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5079         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5080         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5081         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5082         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5083         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5084         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5085         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5086         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5087         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5088         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5089         UNSPEC_LOONGSON_PSADBH)
5090         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5091         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5092         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5093         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5094         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5095         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5096         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5097         (cpu): Update comment.
5098         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5099         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5100         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5101         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5102         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5103         UNSPEC_LOONGSON_PCMPEQ)
5104         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5105         UNSPEC_LOONGSON_PINSR_0)
5106         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5107         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5108         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5109         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5110         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5111         UNSPEC_LOONGSON_PSADBH)
5112         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5113         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5114         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5115         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5116         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5117         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5118         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5119         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5120         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5121         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5122         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5123         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5124         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5125         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5126         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5127         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5128         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5129         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5130         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5131         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5132         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5133         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5134         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5135         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5136         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5137         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5138         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5139         (UNSPEC_RDDSP): Moved from mips.md.
5140         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5141         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5142         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5143         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5144         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5145         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5146         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5147         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5148         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5149         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5150         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5151         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5152         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5153         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5154         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5155         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5156         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5157         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5158         (UNSPEC_SCC): Moved from mips.md.
5159         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5160         "processor_type" to "processor".
5161         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5162         * config/mips/mips.h (processor_type): Delete.
5163         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5164         "processor_type" to "processor".
5165
5166 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5167
5168         * configure.ac (tm_include_list): Add insn-constants.h.
5169         * configure: Regenerate.
5170         * Makefile.in (GTM_H): Move insn-constants.h here from...
5171         (TM_H): ...here.
5172         * mkconfig.sh: Remove special handling for insn-constants.h.
5173
5174 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5175
5176         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5177         (BUILD_MD): ...this new variable.
5178         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5179         that include the old contents of simple_generated_h and
5180         simple_generated_c.
5181         (simple_generated_h, simple_generated_c): Include them.  Add
5182         insn-constants.h.
5183         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5184         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5185         Remove these dependencies from the main rule and include
5186         insn-conditions.md in the command line only if it appears
5187         in the dependency list.
5188         (insn-constants.h, s-constants): Delete.
5189         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5190         or gensupport.h.
5191         (build/genmddeps.o): Likewise.
5192         (genprogrtl): New variable that contains everything from genprogmd
5193         except mddeps and constants.
5194         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
5195         depend on $(BUILD_MD)
5196         (genprog): New variable.  Make these programs depend on
5197         $(BUILD_ERRORS).
5198         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5199         (main): Use read_md_files instead of init_rtx_reader_args.
5200         * genconstants.c: As for genmddeps.c.
5201         * read-md.h (read_skip_construct): Declare.
5202         * read-md.c (read_skip_construct): New function.
5203         (handle_file): Allow a null handle_directive, skipping the
5204         construct if so.
5205         (parse_include): Update the comment accordingly.
5206
5207 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5208
5209         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5210         * genmddeps.c: Include read-md.h.
5211         (main): Call init_rtx_reader_args instead of init_md_reader_args.
5212         * genattr.c (main): Likewise.
5213         * genattrtab.c (main): Likewise.
5214         * genautomata.c (main): Likewise.
5215         * gencodes.c (main): Likewise.
5216         * genconditions.c (main): Likewise.
5217         * genconfig.c (main): Likewise.
5218         * genconstants.c (main): Likewise.
5219         * genemit.c (main): Likewise.
5220         * genextract.c (main): Likewise.
5221         * genflags.c (main): Likewise.
5222         * genopinit.c (main): Likewise.
5223         * genoutput.c (main): Likewise.
5224         * genpeep.c (main): Likewise.
5225         * genrecog.c (main): Likewise.
5226         * genpreds.c (main): Likewise.
5227         * gensupport.h (in_fname): Move to read-md.h.
5228         (init_md_reader_args_cb): Rename to...
5229         (init_rtx_reader_args_cb): ...this and return a bool.
5230         (init_md_reader_args): Rename to...
5231         (init_rtx_reader_args): ...this and return a bool.
5232         (include_callback): Move to read-md.h.
5233         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5234         (file_name_list, first_dir_md_include): Move to read-md.c
5235         (first_bracket_include): Delete unused variable.
5236         (last_dir_md_include): Move to read-md.c.
5237         (process_include): Delete, moving code to read-md.c:handle_include.
5238         (process_rtx): Don't handle INCLUDE.
5239         (save_string): Delete.
5240         (rtx_handle_directive): New function.
5241         (init_md_reader_args_cb): Rename to...
5242         (init_rtx_reader_args_cb): ...this and return a boolean success value.
5243         Use read_md_args.
5244         (init_md_reader_args): Rename to...
5245         (init_rtx_reader_args): ...this and return a boolean success value.
5246         * rtl.def (INCLUDE): Delete.
5247         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
5248         argument.
5249         * read-rtl.c (read_conditions): Don't gobble ')' here.
5250         (read_mapping): Likewise.
5251         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
5252         Handle top-level non-rtx constructs here rather than in read_rtx_1.
5253         Store the whole queue in *X.  Remove call to init_md_reader.
5254         (read_rtx_1): Rename to...
5255         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
5256         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
5257         here.
5258         (read_nested_rtx): New function.  Handle (nil) here rather than
5259         in read_rtx_code.
5260         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
5261         gobble ')' here.
5262         * read-md.h (directive_handler_t): New type.
5263         (in_fname, include_callback): Moved from read-md.h.
5264         (read_constants, init_md_reader): Delete.
5265         (read_md_files): Declare.
5266         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
5267         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
5268         from gensupport.c.
5269         (read_constants): Rename to...
5270         (handle_constants): ...this.  Don't gobble ')' here.
5271         (handle_include, handle_file, handle_toplevel_file)
5272         (parse_include): New functions, mostly taken from gensupport.c.
5273         (init_md_reader): Subsume into...
5274         (read_md_files): ...this new function.
5275
5276 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5277
5278         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
5279         (unread_char): Decrement read_md_lineno after putting back '\n'.
5280         * read-md.c (fatal_with_file_and_line): Push back any characters
5281         that we decide not to add to the context.
5282         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
5283         fatal_expected_char in cases where '/' ends a line (for example).
5284         (read_name): Don't increment read_md_lineno here.
5285         (read_escape): Likewise.
5286         (read_quoted_string): Likewise.
5287         (read_braced_string): Likewise.
5288
5289 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5290
5291         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
5292         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
5293         * genconstants.c: Include read-md.h.
5294         * read-rtl.c (md_constants): Move to read-md.c.
5295         (md_name): Move to read-md.h.
5296         (initialize_iterators): Use leading_string_hash instead of def_hash
5297         and leading_string_eq_p instead of def_name_eq_p.
5298         (read_name): Move to read-md.c.
5299         (def_hash, def_name_eq_p): Delete.
5300         (read_constants, traverse_md_constants): Move to read-md.c.
5301         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
5302         * read-md.h: Include hashtab.h.
5303         (md_name): Moved from read-rtl.c.
5304         (md_constant): Moved from read-md.h.
5305         (leading_string_hash, leading_string_eq_p, read_name)
5306         (read_constants, traverse_md_constants): Declare.
5307         * read-md.c (md_constants): Moved from read-rtl.c.
5308         (leading_string_hash, leading_string_eq_p): New functions.
5309         (read_name, read_constants, traverse_md_constants): Moved from
5310         read-rtl.c.
5311
5312 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5313
5314         * read-rtl.c (md_name): New structure.
5315         (read_name): Take an md_name instead of a buffer pointer.
5316         Use the "string" field instead of strcpy when expanding constants.
5317         (read_constants): Remove the tmp_char argument.  Update the calls
5318         to read_name, using two local name buffers instead of the tmp_char
5319         argument.  Merge the constant-creation code.
5320         (read_conditions): Remove the tmp_char argument.  Update the calls
5321         to read_name, using a local name buffer instead of the tmp_char
5322         argument.
5323         (read_mapping): Replace tmp_char variable with a local name buffer.
5324         Update the calls to read_name.
5325         (read_rtx_1): Likewise.  Update the calls to read_constants and
5326         read_conditions.
5327
5328 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5329
5330         * Makefile.in (build/read-md.o): Depend on errors.h.
5331         * read-md.h (error_with_line): Declare.
5332         * read-md.c: Include errors.h.
5333         (message_with_line_1): New function, extracted from...
5334         (message_with_line): ...here.
5335         (error_with_line): New function.
5336         * genattrtab.c: If a call to message_with_line is followed by
5337         "have_error = 1;", replace both statements with a call to
5338         error_with_line.
5339         * genoutput.c: Likewise.
5340         * genpreds.c: Likewise.
5341         * genrecog.c: If a call to message_with_line is followed by
5342         "error_count++;", replace both statements with a call to
5343         error_with_line.
5344         (errorcount): Delete.
5345         (main): Don't check it.
5346         * gensupport.c: If a call to message_with_line is followed by
5347         "errors = 1;", replace both statements with a call to error_with_line.
5348         (errors): Delete.
5349         (process_define_cond_exec): Check have_error instead of errors.
5350         (init_md_reader_args_cb): Likewise.  Don't set errors.
5351
5352 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5353
5354         * read-md.h (read_md_file): Declare.
5355         (read_char, unread_char): New functions.
5356         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5357         (read_quoted_string, read_string): Remove FILE * argument.
5358         * read-md.c (read_md_file): New variable.
5359         (read_md_filename, read_md_lineno): Update comments and remove
5360         unnecessary initialization.
5361         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5362         (read_escape, read_quoted_string, read_braced_string, read_string):
5363         Remove FILE * argument.  Update calls accordingly, using read_char
5364         and unread_char instead of getc and ungetc.
5365         * rtl.h (read_rtx): Remove FILE * argument.
5366         * read-rtl.c (iterator_group): Remove FILE * argument from
5367         "find_builtin".
5368         (iterator_traverse_data): Remove "infile" field.
5369         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5370         (add_mapping, read_name, read_constants, read_conditions)
5371         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5372         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5373         Remove file arguments from all calls, using read_char and unread_char
5374         instead of getc and ungetc.
5375         * gensupport.c (process_include): Preserve read_md_file around
5376         the include.  Set read_md_file to the handle of the included file.
5377         Update call to read_rtx.
5378         (init_md_reader_args_cb): Set read_md_file to the handle of the file
5379         and remove local FILE *.  Update calls to read_rtx.
5380
5381 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5382
5383         * read-md.h (read_rtx_lineno): Rename to...
5384         (read_md_lineno): ...this.
5385         (read_rtx_filename): Rename to...
5386         (read_md_filename): ...this.
5387         (copy_rtx_ptr_loc): Rename to...
5388         (copy_md_ptr_loc): ...this.
5389         (print_rtx_ptr_loc): Rename to...
5390         (print_md_ptr_loc): ...this.
5391         * read-md.c: Likewise.  Update references after renaming.
5392         (string_obstack): Replace RTL with MD in comment.
5393         (set_rtx_ptr_loc): Rename to...
5394         (set_md_ptr_loc): ...this.
5395         (get_rtx_ptr_loc): Rename to...
5396         (get_md_ptr_loc): ...this.
5397         * genconditions.c: Update references after renaming.
5398         * genemit.c: Likewise.
5399         * genoutput.c: Likewise.
5400         * genpreds.c: Likewise.
5401         * gensupport.c: Likewise.
5402         * read-rtl.c: Likewise.
5403
5404 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5405
5406         * Makefile.in (READ_MD_H): New variable.
5407         (BUILD_RTL): Add build/read-md.o.
5408         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
5409         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5410         (build/genattrtab.o, build/genconditions.o build/genemit.o)
5411         (build/genextract.o, build/genflags.o, build/genoutput.o)
5412         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
5413         (build/read-md.o): New rule.
5414         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
5415         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
5416         * coretypes.h: ...here.
5417         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
5418         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
5419         * genattr.c: Include read-md.h.
5420         * genattrtab.c: Likewise.
5421         * genconditions.c: Likewise.
5422         * genemit.c: Likewise.
5423         * genextract.c: Likewise.
5424         * genflags.c: Likewise.
5425         * genoutput.c: Likewise.
5426         * genpreds.c: Likewise.
5427         * genrecog.c: Likewise.
5428         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
5429         (join_c_conditions, print_c_condition, read_rtx_filename)
5430         (read_rtx_lineno): Move to read-md.h.
5431         * read-rtl.c: Include read-md.h.
5432         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
5433         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
5434         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
5435         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
5436         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
5437         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
5438         (read_braced_string, read_string): Move to read-md.c.
5439         (read_rtx): Move some initialization to init_md_reader and call
5440         init_md_reader here.
5441         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
5442         Move to read-md.h.
5443         * gensupport.c: Include read-md.h.
5444         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
5445         * read-md.h, read-md.c: New files.
5446
5447 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
5448
5449         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5450         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5451         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
5452         * config/moxie/moxie.c (moxie_function_value): Make static.
5453         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
5454         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5455
5456 2010-06-10  Martin Jambor  <mjambor@suse.cz>
5457
5458         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
5459         * dbgcnt.def (tree_sra): New counter.
5460         * tree-sra.c: Include dbgcnt.h.
5461         (gate_intra_sra): Check tree_sra debug counter.
5462
5463 2010-06-10  Martin Jambor  <mjambor@suse.cz>
5464
5465         PR tree-optimization/44258
5466         * tree-sra.c (build_access_subtree): Return false iff there is a
5467         partial overlap.
5468         (build_access_trees): Likewise.
5469         (analyze_all_variable_accesses): Disqualify candidates if
5470         build_access_trees returns true for them.
5471
5472 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
5473
5474         PR debug/41371
5475         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
5476         tail-recurse into canonical node.  Fast-forward over
5477         non-canonical VALUEs.
5478
5479 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
5480
5481         PR boostrap/44470
5482         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
5483         (*addsi_1_zext) <TYPE_LEA>: Likewise.
5484         (add lea splitter): Likewise.
5485         (add_zext lea splitter): Likewise.
5486
5487 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
5488
5489         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
5490
5491 2010-06-10  Jan Hubicka  <jh@suse.cz>
5492
5493         * df-problems.c (df_live_problem_data): Add live_bitmaps.
5494         (df_live_alloc): Initialize problem data and live_osbtacks.
5495         (df_live_finalize): Remove obstack, problem data; do not
5496         clear all bitmaps.
5497         (df_live_top_dump, df_live_bottom_dump): Do not dump old
5498         data when not allocated.
5499         (df_live_verify_solution_start): Do not allocate problem data.
5500         (df_live_verify_solution_end): Check if out is allocated.
5501         (struct df_md_problem_data): New structure.
5502         (df_md_alloc): Allocate problem data.
5503         (df_md_free): Free problem data; do not clear bitmaps.
5504
5505 2010-06-10  Jan Beulich  <jbeulich@novell.com>
5506
5507         PR bootstrap/37304
5508         * configure.ac: Replace $() with ${} when intending to expand
5509         variables rather than invoking commands.
5510         * configure: Re-generate.
5511
5512 2010-06-10  Jan Hubicka  <jh@suse.cz>
5513
5514         PR rtl-optimization/44460
5515         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5516         TYPE_NEEDS_CONSTRUCTING sanity check.
5517
5518 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
5519
5520         * doc/include/fdl.texi: Move to GFDL version 1.3.
5521
5522         * doc/cpp.texi: Move to GFDL version 1.3.
5523         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
5524         * doc/gccint.texi: Move to GFDL version 1.3.
5525         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
5526         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
5527         * doc/invoke.texi: Move to GFDL version 1.3.
5528
5529 2010-06-09  Jan Hubicka  <jh@suse.cz>
5530
5531         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
5532         Break out from ...
5533         (propagate) ... here; swap the order.
5534
5535 2010-06-09  Jan Hubicka  <jh@suse.cz>
5536
5537         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
5538         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
5539         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
5540         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
5541
5542 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
5543
5544         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
5545         Do not the gather memory reference in the outer loop if the step
5546         is not a constant.
5547
5548 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
5549
5550         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
5551         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
5552         8 to 4.  Minor change of the related comments.
5553
5554 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5555
5556         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
5557         the scev analysis when the variable is not used outside the loop
5558         in a close phi node: call compute_overall_effect_of_inner_loop.
5559
5560 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5561
5562         * graphite-sese-to-poly.c (single_pred_cond): Renamed
5563         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
5564         (build_sese_conditions_before): Renamed call to single_pred_cond.
5565         (build_sese_conditions_after): Same.
5566
5567 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5568
5569         * graphite-poly.h: Fix comments and indentation.
5570         * graphite-sese-to-poly.c: Same.
5571         (build_sese_conditions_before): Compute stmt and gbb only when needed.
5572         * tree-chrec.c: Fix comments and indentation.
5573         (tree-ssa-loop-niter.c): Same.
5574
5575 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
5576
5577         PR rtl-optimization/42461
5578         * dce.c (deletable_insn_p): Return true for const or pure calls again.
5579         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
5580
5581 2010-06-09  Jan Hubicka  <jh@suse.cz>
5582
5583         * bitmap.c (bitmap_and): Walk array forward.
5584         (bitmap_and_compl_into): Likewise.
5585         (bitmap_xor): Likewise.
5586         (bitmap_xor_into):  Likewise.
5587         (bitmap_equal_p): Likewise.
5588         (bitmap_intersect_p): Likewise.
5589         (bitmap_intersect_compl_p): Likewise.
5590         (bitmap_ior_and_into): Likewise.
5591         (bitmap_elt_copy): Likewise.
5592         (bitmap_and_compl): Likewise.
5593         (bitmap_elt_ior): Likewise.
5594
5595 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
5596
5597         * opts-common.c (prune_options): Ensure replacement argv array
5598         is correctly terminated by a NULL entry.
5599
5600 2010-06-09  Jan Hubicka  <jh@suse.cz>
5601
5602         * cgraph.h (varpool_first_static_initializer,
5603         varpool_next_static_initializer): Make checking only when
5604         checking enabled.
5605         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
5606         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
5607         gcc_assert to gcc_checking_assert.
5608         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
5609         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
5610         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
5611         op_iter_init_phiuse, op_iter_init_phidef,
5612         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
5613         gcc_checking_assert.
5614         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
5615         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
5616         partition_is_global, live_on_entry, live_on_exit,
5617         live_merge_and_clear): Likewise.
5618         * system.h (gcc_checking_assert): New macro.
5619         * gimple.h (set_bb_seq): Use gcc_checking_assert.
5620
5621 2010-06-09  Jason Merrill  <jason@redhat.com>
5622
5623         * Makefile.in (TAGS): Collect tags info from c-family.
5624
5625 2010-06-09  Jan Hubicka  <jh@suse.cz>
5626
5627         * gimple.h (gcc_gimple_checking_assert): New macro.
5628         (gimple_set_def_ops, gimple_set_use_ops,
5629         gimple_set_vuse, gimple_set_vdef,
5630         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
5631         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
5632         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
5633         gimple_asm_output_op, gimple_asm_output_op_ptr,
5634         gimple_asm_set_output_op, gimple_asm_clobber_op,
5635         gimple_asm_set_clobber_op, gimple_asm_label_op,
5636         gimple_asm_set_label_op, gimple_try_set_kind,
5637         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5638         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5639         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5640         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5641         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5642         gimple_omp_for_set_initial, gimple_omp_for_final,
5643         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5644         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5645         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5646         conditional with ENABLE_GIMPLE_CHECKING.
5647         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5648
5649 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
5650
5651         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5652         (get_computation_cost_at): Use it.
5653         (determine_use_iv_cost_condition): Likewise.
5654         (determine_iv_cost): Likewise.
5655
5656 2010-06-09  Richard Guenther  <rguenther@suse.de>
5657
5658         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5659         replace constants.
5660
5661 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
5662
5663         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5664
5665 2010-06-09  Martin Jambor  <mjambor@suse.cz>
5666
5667         PR tree-optimization/44423
5668         * tree-sra.c (dump_access): Dump also grp_assignment_read.
5669         (analyze_access_subtree): Pass negative allow_replacements to children
5670         if the current type is scalar.
5671
5672 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5673
5674         PR testsuite/42843
5675         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
5676         * doc/plugins.texi (Plugin license check): Update information
5677         on type of plugin_is_GPL_compatible.
5678         * Makefile.in (PLUGINCC): Define as $(COMPILER).
5679         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
5680
5681 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
5682
5683         * config/arm/arm.c (thumb2_reorg): New function.
5684         (arm_reorg): Call it.
5685         * config/arm/thumb2.md (define_peephole2 for flag clobbering
5686         arithmetic operations): Delete.
5687
5688 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
5689
5690         PR target/44067
5691         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
5692         e500v2 target.
5693
5694 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5695
5696         PR plugins/44459
5697         * gcc-plugin.h: Encapsulate all declarations in extern "C".
5698
5699 2010-06-08  Jan Hubicka  <jh@suse.cz>
5700
5701         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
5702         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
5703
5704 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
5705
5706         PR tree-optimization/39874
5707         PR middle-end/28685
5708         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
5709         Declare.
5710         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
5711         same_bool_result_p): New.
5712         (and_var_with_comparison, and_var_with_comparison_1,
5713         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
5714         (or_var_with_comparison, or_var_with_comparison_1,
5715         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
5716         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
5717         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
5718         of combine_comparisons.
5719         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
5720
5721 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
5722
5723         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5724         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5725         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
5726         pdp11_function_value_regno_p): New functions.
5727         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5728         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5729
5730 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
5731
5732         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
5733         Thumb-2 in the MINUS case.
5734
5735 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5736
5737         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5738
5739         * doc/gty.texi (GTY Options): Document typed GC allocation and
5740         variable_size GTY option.
5741
5742         * ggc-internal.h: New.
5743
5744         * ggc.h: Update copyright year.
5745         (digit_string): Move to stringpool.c.
5746         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5747         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5748         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5749         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5750         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5751         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5752         (ggc_force_collect, ggc_get_size, ggc_statistics)
5753         (ggc_print_common_statistics): Move to ggc-internal.h.
5754         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5755         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5756         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5757         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5758         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5759         (ggc_alloc_zone_pass_stat): Remove.
5760         (ggc_internal_alloc_stat, ggc_internal_alloc)
5761         (ggc_internal_cleared_alloc_stat): New.
5762         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5763         (ggc_internal_vec_alloc_stat)
5764         (ggc_internal_cleared_vec_alloc_stat)
5765         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5766         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5767         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5768         (ggc_cleared_alloc_ptr_array_two_args): New.
5769         (htab_create_ggc, splay_tree_new_ggc): Redefine.
5770         (ggc_splay_alloc): Change the type of the first argument to
5771         enum gt_types_enum.
5772         (ggc_alloc_string): Make macro.
5773         (ggc_alloc_string_stat): New.
5774         (ggc_strdup): Redefine.
5775         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5776         (ggc_alloc_rtvec_sized): New.
5777         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5778         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5779         (ggc_internal_cleared_alloc_zone_stat)
5780         (ggc_internal_zone_alloc_stat)
5781         (ggc_internal_zone_cleared_alloc_stat)
5782         (ggc_internal_zone_vec_alloc_stat)
5783         (ggc_alloc_zone_rtx_def_stat)
5784         (ggc_alloc_zone_tree_node_stat)
5785         (ggc_alloc_zone_cleared_tree_node_stat)
5786         (ggc_alloc_cleared_gimple_statement_d_stat): New.
5787
5788         * ggc-common.c: Include ggc-internal.h.
5789         (ggc_internal_cleared_alloc_stat): Rename from
5790         ggc_alloc_cleared_stat.
5791         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5792         (ggc_calloc): Remove.
5793         (ggc_cleared_alloc_htab_ignore_args): New.
5794         (ggc_cleared_alloc_ptr_array_two_args): New.
5795         (ggc_splay_alloc): Add obj_type parameter.
5796         (init_ggc_heuristics): Formatting fixes.
5797
5798         * ggc-none.c: Update copyright year.
5799         (ggc_alloc_stat): Rename to ggc_alloc_stat.
5800         (ggc_alloc_cleared_stat): Rename to
5801         ggc_internal_cleared_alloc_stat.
5802         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5803
5804         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
5805         Remove references to ggc_alloc in comments.
5806         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5807         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5808         (new_ggc_zone, destroy_ggc_zone): Remove.
5809         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5810
5811         * ggc-zone.c: Include ggc-internal.h.  Remove references to
5812         ggc_alloc in comments.
5813         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5814         (ggc_internal_alloc_zone_pass_stat): New.
5815         (ggc_internal_cleared_alloc_zone_stat): New.
5816         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5817         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5818         (new_ggc_zone, destroy_ggc_zone): Remove.
5819
5820         * stringpool.c: Update copyright year.  Include ggc-internal.h
5821         (digit_vector): Make static.
5822         (digit_string): Moved from ggc.h.
5823         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5824         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5825
5826         * Makefile.in (GGC_INTERNAL_H): New.
5827         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5828         $(GGC_INTERNAL_H) to dependencies.
5829
5830         * gentype.c: Update copyright year.
5831         (walk_type): Accept variable_size GTY option.
5832         (USED_BY_TYPED_GC_P): New macro.
5833         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
5834         whitespace at the end of strings.
5835         (get_type_specifier, variable_size_p): New functions.
5836         (alloc_quantity, alloc_zone): New enums.
5837         (write_typed_alloc_def): New function.
5838         (write_typed_struct_alloc_def): Likewise.
5839         (write_typed_typed_typedef_alloc_def): Likewise.
5840         (write_typed_alloc_defns): Likewise.
5841         (output_typename, write_splay_tree_allocator_def): Likewise.
5842         (write_splay_tree_allocators): Likewise.
5843         (main): Call write_typed_alloc_defns and
5844         write_splay_tree_allocators.
5845
5846         * lto-streamer.h (lto_file_decl_data_ptr): New.
5847
5848         * passes.c (order): Define using cgraph_node_ptr.
5849
5850         * strinpool.c (struct string_pool_data): Declare nested_ptr using
5851         ht_identifier_ptr.
5852
5853         * gimple.h (union gimple_statement_d): Likewise.
5854
5855         * rtl.h (struct rtx_def): Likewise.
5856         (struct rtvec_def): Likewise.
5857
5858         * tree.h (union tree_node): Likewise.
5859
5860         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5861
5862         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5863
5864         * tree-scalar-evolution.c (scev_initialize): Likewise.
5865
5866         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5867
5868         * dwarf2asm.c (dw2_force_const_mem): Likewise.
5869
5870         * omp-low.c (lower_omp_critical): Likewise.
5871
5872         * bitmap.h (struct bitmap_head_def): Update comment to not
5873         reference ggc_alloc.
5874
5875         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5876
5877         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5878
5879         * ipa-prop.c (duplicate_ggc_array): Rename to
5880         duplicate_ipa_jump_func_array.  Use typed GC allocation.
5881         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5882
5883         * gimple.c (gimple_alloc_stat): Use
5884         ggc_alloc_cleared_gimple_statement_d_stat.
5885
5886         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5887
5888         * tree.c (make_node_stat): Use
5889         ggc_alloc_zone_cleared_tree_node_stat.
5890         (make_tree_vec_stat): Likewise.
5891         (build_vl_exp_stat): Likewise.
5892         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5893         (make_tree_binfo_stat): Likewise.
5894         (tree_cons_stat): Likewise.
5895
5896         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5897         (shallow_copy_rtx_stat): Likewise.
5898         (make_node_stat): Likewise.
5899
5900         * lto-symtab.c: Fix comment.
5901
5902         * tree-cfg.c (create_bb): Update comment to not reference
5903         ggc_alloc_cleared.
5904         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5905
5906         * varpool.c (varpool_node): Use typed GC allocation.
5907         (varpool_extra_name_alias): Likewise.
5908
5909         * varasm.c (emutls_decl): Likewise.
5910         (get_unnamed_section): Likewise.
5911         (get_noswitch_section): Likewise.
5912         (get_section): Likewise.
5913         (get_block_for_section): Likewise.
5914         (build_constant_desc): Likewise.
5915         (create_constant_pool): Likewise.
5916         (force_const_mem): Likewise.
5917
5918         * tree.c (build_vl_exp_stat): Likewise.
5919         (build_real): Likewise.
5920         (build_string): Likewise.
5921         (decl_debug_expr_insert): Likewise.
5922         (decl_value_expr_insert): Likewise.
5923         (type_hash_add): Likewise.
5924         (build_omp_clause): Likewise.
5925
5926         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5927
5928         * tree-ssa.c (init_tree_ssa): Likewise.
5929
5930         * tree-ssa-structalias.c (heapvar_insert): Likewise.
5931
5932         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5933
5934         * tree-ssa-loop-niter.c (record_estimate): Likewise.
5935
5936         * tree-ssa-alias.c (get_ptr_info): Likewise.
5937
5938         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5939
5940         * tree-phinodes.c (allocate_phi_node): Likewise.
5941
5942         * tree-iterator.c (tsi_link_before): Likewise.
5943         (tsi_link_after): Likewise.
5944
5945         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5946
5947         * tree-dfa.c (create_var_ann): Likewise.
5948
5949         * tree-cfg.c (create_bb): Likewise.
5950
5951         * toplev.c (alloc_for_identifier_to_locale): Likewise.
5952         (general_init): Likewise.
5953
5954         * stringpool.c (stringpool_ggc_alloc): Likewise.
5955         (gt_pch_save_stringpool): Likewise.
5956
5957         * sese.c (if_region_set_false_region): Likewise.
5958
5959         * passes.c (do_per_function_toporder): Likewise.
5960
5961         * optabs.c (set_optab_libfunc): Likewise.
5962         (set_conv_libfunc): Likewise.
5963
5964         * lto-symtab.c (lto_symtab_register_decl): Likewise.
5965
5966         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5967         (input_eh_region): Likewise.
5968         (input_eh_lp): Likewise.
5969         (make_new_block): Likewise.
5970         (unpack_ts_real_cst_value_fields): Likewise.
5971
5972         * lto-section-in.c (lto_new_in_decl_state): Likewise.
5973
5974         * lto-cgraph.c (input_node_opt_summary): Likewise.
5975
5976         * loop-init.c (loop_optimizer_init): Likewise.
5977
5978         * lambda.h (lambda_vector_new): Likewise.
5979
5980         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5981
5982         * ira.c (update_equiv_regs): Likewise.
5983
5984         * ipa.c (cgraph_node_set_new): Likewise.
5985         (cgraph_node_set_add): Likewise.
5986         (varpool_node_set_new): Likewise.
5987         (varpool_node_set_add): Likewise.
5988
5989         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5990         (duplicate_ipa_jump_func_array): Likewise.
5991         (ipa_read_node_info): Likewise.
5992
5993         * ipa-cp.c (ipcp_create_replace_map): Likewise.
5994
5995         * integrate.c (get_hard_reg_initial_val): Likewise.
5996
5997         * gimple.c (gimple_alloc_stat): Likewise.
5998         (gimple_build_omp_for): Likewise.
5999         (gimple_seq_alloc): Likewise.
6000         (gimple_copy): Likewise.
6001
6002         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
6003         (gsi_insert_after_without_update): Likewise.
6004
6005         * function.c (add_frame_space): Likewise.
6006         (insert_temp_slot_address): Likewise.
6007         (assign_stack_temp_for_type): Likewise.
6008         (allocate_struct_function): Likewise.
6009         (types_used_by_var_decl_insert): Likewise.
6010
6011         * except.c (init_eh_for_function): Likewise.
6012         (gen_eh_region): Likewise.
6013         (gen_eh_region_catch): Likewise.
6014         (gen_eh_landing_pad): Likewise.
6015         (add_call_site): Likewise.
6016
6017         * emit-rtl.c (get_mem_attrs): Likewise.
6018         (get_reg_attrs): Likewise.
6019         (start_sequence): Likewise.
6020         (init_emit): Likewise.
6021
6022         * dwarf2out.c (new_cfi): Likewise.
6023         (queue_reg_save): Likewise.
6024         (dwarf2out_frame_init): Likewise.
6025         (new_loc_descr): Likewise.
6026         (find_AT_string): Likewise.
6027         (new_die): Likewise.
6028         (add_var_loc_to_decl): Likewise.
6029         (clone_die): Likewise.
6030         (clone_as_declaration): Likewise.
6031         (break_out_comdat_types): Likewise.
6032         (new_loc_list): Likewise.
6033         (loc_descriptor): Likewise.
6034         (add_loc_descr_to_each): Likewise.
6035         (add_const_value_attribute): Likewise.
6036         (tree_add_const_value_attribute): Likewise.
6037         (add_comp_dir_attribute): Likewise.
6038         (add_name_and_src_coords_attributes): Likewise.
6039         (lookup_filename): Likewise.
6040         (store_vcall_insn): Likewise.
6041         (dwarf2out_init): Likewise.
6042
6043         * dbxout.c (dbxout_init): Likewise.
6044
6045         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6046
6047         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6048
6049         * config/score/score7.c (score7_output_external): Likewise.
6050
6051         * config/score/score3.c (score3_output_external): Likewise.
6052
6053         * config/s390/s390.c (s390_init_machine_status): Likewise.
6054
6055         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6056         (rs6000_init_machine_status): Likewise.
6057         (output_toc): Likewise.
6058
6059         * config/pa/pa.c (pa_init_machine_status): Likewise.
6060         (get_deferred_plabel): Likewise.
6061
6062         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6063
6064         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6065
6066         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6067
6068         * config/mep/mep.c (mep_init_machine_status): Likewise.
6069         (mep_note_pragma_flag): Likewise.
6070
6071         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6072
6073         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6074
6075         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6076
6077         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6078         (i386_pe_maybe_record_exported_symbol): Likewise.
6079
6080         * config/i386/i386.c (get_dllimport_decl): Likewise.
6081         (ix86_init_machine_status): Likewise.
6082         (assign_386_stack_local): Likewise.
6083
6084         * config/frv/frv.c (frv_init_machine_status): Likewise.
6085
6086         * config/darwin.c (machopic_indirection_name): Likewise.
6087
6088         * config/cris/cris.c (cris_init_machine_status): Likewise.
6089
6090         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6091
6092         * config/avr/avr.c (avr_init_machine_status): Likewise.
6093
6094         * config/arm/arm.c (arm_init_machine_status): Likewise.
6095
6096         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6097         (alpha_need_linkage): Likewise.
6098         (alpha_use_linkage): Likewise.
6099
6100         * cgraph.c (cgraph_allocate_node): Likewise.
6101         (cgraph_create_edge_1): Likewise.
6102         (cgraph_create_indirect_edge): Likewise.
6103         (cgraph_add_asm_node): Likewise.
6104
6105         * cfgrtl.c (init_rtl_bb_info): Likewise.
6106
6107         * cfgloop.c (alloc_loop): Likewise.
6108         (rescan_loop_exit): Likewise.
6109
6110         * cfg.c (init_flow): Likewise.
6111         (alloc_block): Likewise.
6112         (unchecked_make_edge): Likewise.
6113
6114         * c-parser.c (c_parse_init): Likewise.
6115         (c_parse_file): Likewise.
6116
6117         * c-decl.c (bind): Likewise.
6118         (record_inline_static): Likewise.
6119         (push_scope): Likewise.
6120         (make_label): Likewise.
6121         (lookup_label_for_goto): Likewise.
6122         (finish_struct): Likewise.
6123         (finish_enum): Likewise.
6124         (c_push_function_context): Likewise.
6125
6126         * bitmap.c (bitmap_element_allocate): Likewise.
6127         (bitmap_gc_alloc_stat): Likewise.
6128
6129         * alias.c (record_alias_subset): Likewise.
6130         (init_alias_analysis): Likewise.
6131
6132 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
6133
6134         * fold-const.c (fold_comparison): Remove redundant parenthesis.
6135         * tree-inline.c (expand_call_inline): Pass translated return value of
6136         cgraph_inline_failed_string to diagnostic function.
6137
6138 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
6139             Shujing Zhao  <pearly.zhao@oracle.com>
6140
6141         PR c/37724
6142         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6143         implicit bad conversions is initialization.
6144         (error_init): Use gmsgid instead of msgid for argument name and change
6145         the call for error.
6146         (pedwarn_init): Use gmsgid instead of msgid for argument name and
6147         change the call for pedwarn.
6148         (warning_init): Use gmsgid instead of msgid for argument name and
6149         change the call for warning.
6150
6151 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
6152
6153         * config/mips/mips-protos.h (mips_print_operand): Delete.
6154         (mips_print_operand_address): Delete.
6155         * config/mips/mips.h (mips_print_operand_punct): Delete.
6156         (PRINT_OPERAND): Delete.
6157         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6158         (PRINT_OPERAND_ADDRESS): Delete.
6159         * config/mips/mips.c (mips_print_operand_punct): Make static.
6160         (mips_print_operand_address): Make static.
6161         (mips_print_operand): Make static.  Call
6162         mips_print_operand_punct_valid_p.
6163         (mips_print_operand_punct_valid_p): New function.
6164         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6165         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6166
6167 2010-06-07  Jan Hubicka  <jh@suse.cz>
6168
6169         PR middle-end/44454
6170         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6171         are allocated.
6172
6173 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
6174
6175         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6176         name of RECORD.
6177
6178 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6179
6180         * doc/sourcebuild.texi (Effective-Target Keywords, Other
6181         attributes): Document gas.
6182
6183 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
6184
6185         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6186         <TYPE_LEA>: Split instruction.
6187         <default>: Remove alternative 2 handling.
6188         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6189         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6190         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6191
6192         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6193         (ashift_zext lea splitter): Use DImode for multiplication.
6194
6195         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6196         to generate addition.
6197
6198 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
6199
6200         * common.opt (fira-verbose): Use Var.
6201         (fpcc-struct-return): Use Init instead of VarExists.
6202         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6203         toplev.c.
6204         * flags.h (flag_signed_char, flag_short_enums,
6205         flag_pcc_struct_return, flag_ira_verbose,
6206         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6207         * toplev.c (flag_detailed_statistics, flag_signed_char,
6208         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6209         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6210         * toplev.h (flag_crossjumping, flag_if_conversion,
6211         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6212         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6213         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6214         flag_cprop_registers, time_report, flag_ira_loop_pressure,
6215         flag_ira_coalesce, flag_ira_move_spills,
6216         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6217
6218 2010-06-07  Jan Hubicka  <jh@suse.cz>
6219
6220         * df-core.c (df_analyze_problem): Do verification after allocation.
6221
6222         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6223         (df_lr_alloc): Initialize problem data; move bitmaps to
6224         lr_bitmaps obstack.
6225         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6226         (df_lr_verify_solution_start): Do not initialize problem data;
6227         allocate bitmaps in lr_bitmaps.
6228         (df_lr_verify_solution_end): Do not free problem data.
6229
6230 2010-06-07  Jan Hubicka  <jh@suse.cz>
6231
6232         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6233         if caller is noreturn.
6234         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6235         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6236         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6237         * ipa-pure-const.c (check_decl): Add IPA parameter.
6238         (state_from_flags): New function.
6239         (better_state, worse_state): New functions.
6240         (check_call): When in IPA mode, do not care about callees.
6241         (check_load, check_store): Update.
6242         (check_ipa_load, check_ipa_store): New.
6243         (check_stmt): When in IPA mode, use IPA checkers.
6244         (analyze_function): Use state_from_flags.
6245         (propagate): Check indirect edges and references.
6246
6247 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
6248
6249         PR rtl-optimization/44404
6250         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6251         of count_occurrences to see if it's safe to modify mem_insn.
6252
6253 2010-06-07  Richard Guenther  <rguenther@suse.de>
6254
6255         * gimplify.c (gimplify_cleanup_point_expr): For empty body
6256         and EH-only cleanup drop the cleanup instead of inserting it
6257         unconditionally.
6258
6259 2010-06-07  Ira Rosen  <irar@il.ibm.com>
6260
6261         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6262         documentation.
6263         * targhooks.c (default_builtin_vectorization_cost): New function.
6264         * targhooks.h (default_builtin_vectorization_cost): Declare.
6265         * target.h (enum vect_cost_for_stmt): Define.
6266         (builtin_vectorization_cost): Change argument and comment.
6267         * tree-vectorizer.h: Remove cost model macros.
6268         * tree-vect-loop.c: Include target.h.
6269         (vect_get_cost): New function.
6270         (vect_estimate_min_profitable_iters): Replace cost model macros with
6271         calls to vect_get_cost.
6272         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
6273         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
6274         default implementation.
6275         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
6276         calls to target hook builtin_vectorization_cost.
6277         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6278         Likewise.
6279         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
6280         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
6281         implementation to return costs.
6282         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6283         * config/spu/spu.h: Remove vectorizer cost model macros.
6284         * config/i386/i386.h: Likewise.
6285         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
6286         a call to target hook builtin_vectorization_cost.
6287
6288 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
6289
6290         PR target/44319
6291         * config/i386/i386.c (override_options): Turn zee pass on for level 2
6292         and above and defer till target is known.
6293         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
6294         turn off otherwise.
6295
6296 2010-05-25  Jan Hubicka  <jh@suse.cz>
6297
6298         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
6299         (df_compact_blocks): Likewise.
6300         * df.h (struct df): Turn hardware_regs_used,
6301         regular_block_artificial_uses, eh_block_artificial_uses,
6302         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
6303         bitmap_head.
6304         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
6305         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
6306         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
6307         df_scan_blocks, df_insn_delete, df_insn_rescan,
6308         df_insn_rescan_debug_internal, df_insn_rescan_all,
6309         df_process_deferred_rescans, df_process_deferred_rescans,
6310         df_notes_rescan, df_get_call_refs, df_get_call_refs,
6311         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
6312         df_record_entry_block_defs, df_record_exit_block_uses,
6313         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
6314         df_scan_verify): Update.
6315
6316 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
6317
6318         PR c++/44188
6319         * c-common.c (is_typedef_decl): Move this definition ...
6320         * tree.c (is_typedef_decl): ... here.
6321         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6322         * c-common.h (is_typedef_decl): Move this declaration ...
6323         * tree.h (is_typedef_decl): ... here.
6324         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6325         * dwarf2out.c (is_naming_typedef_decl): New function.
6326         (gen_tagged_type_die): Split out of ...
6327         (gen_type_die_with_usage): ... this function. When an anonymous
6328         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6329         is emitted for the typedef.
6330         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6331         anonymous tagged types.
6332
6333 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6334
6335         PR c/20000
6336         * c-decl.c (grokdeclarator): Delete warning.
6337
6338 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6339
6340         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6341         newly built CALL_EXPR.
6342         * tree-profile.c (tree_profiling): Don't profile functions produced
6343         for built-in stuff.
6344
6345 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
6346
6347         PR bootstrap/44427
6348         PR bootstrap/44428
6349         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6350         endianness-independent.
6351
6352 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
6353
6354         * c-common.c: Move to c-family/.
6355         * c-common.def: Likewise.
6356         * c-common.h: Likewise.
6357         * c-cppbuiltin.c: Likewise.
6358         * c-dump.c: Likewise.
6359         * c-format.c: Likewise.
6360         * c-format.h : Likewise.
6361         * c-gimplify.c: Likewise.
6362         * c-lex.c: Likewise.
6363         * c-omp.c: Likewise.
6364         * c.opt: Likewise.
6365         * c-opts.c: Likewise.
6366         * c-pch.c: Likewise.
6367         * c-ppoutput.c: Likewise.
6368         * c-pragma.c: Likewise.
6369         * c-pragma.h: Likewise.
6370         * c-pretty-print.c: Likewise.
6371         * c-pretty-print.h: Likewise.
6372         * c-semantics.c: Likewise.
6373         * stub-objc.c: Likewise.
6374
6375         * gengtype.c (get_file_langdir): Special-case files in c-family/.
6376         (get_output_file_with_visibility): Fix name for c-common.h.
6377         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6378
6379         * c-tree.h: Update include path for moved files.
6380         * c-lang.c: Likewise.
6381         * c-lang.h: Likewise.
6382         * c-parser.c: Likewise.
6383         * c-convert.c: Likewise.
6384         * c-decl.c: Likewise.
6385         * c-objc-common.c: Likewise.
6386         * configure.ac: Make sure c-family/ exists in the build directory.
6387         * configure: Regenerate.
6388         * Makefile.in: Update paths for moved files.  Regroup files per
6389         location and update dependencies.  Move generated_files down after
6390         ALL_GTFILES_H.
6391
6392         * config/spu/spu-c.c: Update paths for moved files.
6393         * config/mep/mep-pragma.c: Likewise.
6394         * config/darwin-c.c: Likewise.
6395         * config/i386/msformat-c.c: Likewise.
6396         * config/i386/i386-c.c: Likewise.
6397         * config/avr/avr-c.c: Likewise.
6398         * config/sol2-c.c: Likewise.
6399         * config/ia64/ia64-c.c: Likewise.
6400         * config/rs6000/rs6000-c.c: Likewise.
6401         * config/arm/arm.c: Likewise.
6402         * config/arm/arm-c.c: Likewise.
6403         * config/h8300/h8300.c: Likewise.
6404         * config/v850/v850-c.c: Likewise.
6405
6406         * config/t-darwin: Fix dependencies for moved files.
6407         * config/t-sol2: Fix dependencies for moved files.
6408         * config/mep/t-mep: Fix dependencies for moved files.
6409         * config/ia64/t-ia64: Fix dependencies for moved files.
6410         * config/rs6000/t-rs6000: Fix dependencies for moved files.
6411         * config/v850/t-v850: Fix dependencies for moved files.
6412         * config/v850/t-v850e: Fix dependencies for moved files.
6413
6414         * config/m32c/m32c-pragma.c
6415
6416         * po/exgettext: Look in c-family/ also.
6417
6418 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
6419
6420         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
6421         (mark_control_dependent_edges_necessary): Call it instead of marking
6422         the last statement manually.
6423         (propagate_necessity): Likewise.
6424
6425 2010-06-05  Jan Hubicka  <jh@suse.cz>
6426
6427         * basic-block.h (compute_dominance_frontiers): Updated.
6428         (compute_idf): Likewise.
6429
6430         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
6431         for dominance frontiers.
6432         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
6433         (insert_updated_phi_nodes_for): Likewise.
6434         (update_ssa): Likewise.
6435         * cfganal.c (compute_dominance_frontiers_1): Likewise.
6436         (compute_dominance_frontiers): Likewise.
6437         (compute_idf): Likewise.
6438         * df-problems.c (df_md_local_compute): Likewise.
6439
6440 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
6441
6442         * target.h (struct gcc_target): Add memory_move_cost field.
6443         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
6444         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
6445         * targhooks.c (default_memory_move_cost): New function.
6446         * targhooks.h (default_memory_move_cost): Declare function.
6447         * reload.h (memory_move_cost): Declare.
6448         (memory_move_secondary_cost): Change type of 'in' argument to bool.
6449         * reginfo.c (memory_move_cost): New function.
6450         (memory_move_secondary_cost): Change type of 'in' argument to bool.
6451         * ira.h (ira_memory_move_cost): Update comment.
6452         * ira.c: (ira_memory_move_cost): Update comment.
6453         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
6454         with memory_move_cost.
6455         * postreload.c (reload_cse_simplify_set): (Ditto.).
6456         * reload1.c (choose_reload_regs): (Ditto.).
6457         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
6458         (MEMORY_MOVE_COST):  Revise documentation.
6459
6460         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6461         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6462         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
6463         type of 'in' argument to bool.
6464         (TARGET_MEMORY_MOVE_COST): Define.
6465
6466 2010-06-05  Jan Hubicka  <jh@suse.cz>
6467
6468         * ipa-pure-const.c (propagate): Fix typo in handling of functions
6469         that cannot return.  Be more careful when merging the results with
6470         previously known ones.
6471
6472 2010-06-05  Matthias Klose  <doko@ubuntu.com>
6473
6474         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
6475         function to add the -iplugindir option.
6476         (find_plugindir_spec_function): Add new declaration and function.
6477         (static_spec_func): Use it for "find-plugindir".
6478
6479 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
6480
6481         PR c++/44361
6482         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
6483         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
6484         statement expression.
6485
6486 2010-06-05  Jan Hubicka  <jh@suse.cz>
6487
6488         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
6489         (df_rd_problem_data): Convert sparse_invalidated_by_call,
6490         dense_invalidated_by_call to bitmap head.
6491         (df_rd_alloc, df_rd_bb_local_compute_process_def,
6492         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
6493         df_rd_start_dump, df_lr_verify_transfer_functions,
6494         df_live_verify_transfer_functions, df_chain_create_bb,
6495         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
6496         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
6497         df_simulate_one_insn_forwards, df_md_alloc,
6498         df_md_bb_local_compute_process_def,
6499         df_md_bb_local_compute_process_def, df_md_local_compute,
6500         df_md_transfer_function df_md_free): Update.
6501
6502 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
6503
6504         PR c/44322
6505         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
6506         target type for ADDR_EXPR; require no changes to qualifiers except
6507         for function types.
6508         * c-tree.h (c_build_type_variant): Remove.
6509
6510 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
6511
6512         * genautomata.c (get_excl_set): Do work per element, not per char.
6513         (check_presence_pattern_sets): Similar.
6514         (check_absence_pattern_sets): Similar.
6515
6516 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
6517
6518         * genautomata.c (curr_state_pass_num): Delete.
6519         (min_issue_delay_pass_states): Delete.
6520         (min_issue_delay): Delete.
6521         (initiate_min_issue_delay_pass_states): Delete.
6522         (output_min_issue_delay_table): Compute min_issue_delay_vect
6523         using a breadth-first search variant.
6524         (output_tables): Don't call initiate_min_issue_delay_pass_states.
6525
6526 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6527
6528         PR boostrap/44421
6529         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
6530         (df_byte_lr_bb_local_compute): Likewise.
6531
6532 2010-06-03  Jason Merrill  <jason@redhat.com>
6533
6534         Implement noexcept operator (5.3.7)
6535         * c-common.c (c_common_reswords): Add noexcept.
6536         * c-common.h (enum rid): Add RID_NOEXCEPT.
6537
6538 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
6539
6540         * config/darwin-driver.c (darwin_default_min_version): Use
6541         GCC-specific formats in diagnostics.
6542         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
6543         diagnostics.
6544         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
6545         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
6546         eval_spec_function, handle_braces, process_brace_body, main,
6547         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
6548         getenv_spec_function, compare_version_strings,
6549         version_compare_spec_function): Use GCC-specific formats in
6550         diagnostics.
6551
6552 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6553
6554         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
6555         that operand 0 and operand 1 are equal.
6556         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
6557         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
6558         and operand 1 are equal.
6559         <default>: Ditto.  Remove ??? comment.
6560         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
6561         and operand 1 are equal.
6562         <default>: Ditto.  Remove ??? comment.
6563         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
6564         are equal.
6565         (*add<mode>_4) <default>: Ditto.
6566         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
6567
6568 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
6569
6570         * config/i386/i386-protos.h (ix86_print_operand): Declare.
6571         * config/i386/i386.c (ix86_print_operand): Make non-static.
6572         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
6573         * output.h (output_operand): Declare.
6574         * final.c (output_operand): Make non-static.
6575
6576 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
6577
6578         PR rtl-optimization/44013
6579         * sched-deps.c (add_dependence_list_and_free): Don't free lists
6580         when processing debug insns.
6581
6582         PR debug/41371
6583         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
6584         recursing.  Check that recursion is bounded.  Rename inner var
6585         to avoid hiding incoming argument.
6586
6587 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6588
6589         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
6590         operands[2] == 255.
6591         (*addqi_3): Ditto.
6592         (*addqi_4): Ditto.
6593         (*addqi_5): Ditto.
6594         (*addqi_ext_1_rex64): Ditto.
6595         (*addqi_ext_1): Ditto.
6596
6597         (*addqi_4): Check for incdec_operand in QImode.
6598
6599         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
6600         using SWI mode iterator.
6601         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
6602         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
6603         mode iterator.
6604         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
6605         using SWI mode iterator.
6606
6607 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6608
6609         PR c/25880
6610         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
6611         * c-format.c (gcc_diag_flag_specs): Add hash.
6612         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
6613         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
6614         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
6615         pp_c_cv_qualifiers. Handle qualifiers spelling here.
6616         (pp_c_type_qualifier_list): Call the function above.
6617         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
6618         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
6619         (WARN_FOR_QUALIFIERS): New macro.
6620         (convert_for_assignment): Use it.
6621
6622 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
6623
6624         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
6625
6626 2010-06-04  Jan Hubicka  <jh@suse.cz>
6627
6628         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
6629         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
6630         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
6631         DF_BYTE_LR_OUT): Update for embedded bitmaps.
6632         * fwprop.c (single_def_use_enter_block): Likewise.
6633         * ddg.c (create_ddg_dep_from_intra_loop_link,
6634         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6635         * loop-iv.c (latch_dominating_def): Likewise.
6636         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6637         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6638         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6639         df_rd_transfer_function, df_rd_top_dump,
6640         df_rd_bottom_dump): Update.
6641         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6642         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6643         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6644         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6645         df_lr_verify_solution_start, df_lr_verify_solution_end,
6646         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6647         df_live_free_bb_info, df_live_alloc, df_live_reset,
6648         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6649         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6650         df_live_verify_solution_start, df_live_verify_solution_end,
6651         df_live_verify_transfer_functions, df_chain_create_bb,
6652         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6653         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6654         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6655         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6656         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6657         df_byte_lr_transfer_function, df_byte_lr_top_dump,
6658         df_byte_lr_bottom_dump, df_create_unused_note,
6659         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6660         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6661         df_md_transfer_function, df_md_init, df_md_confluence_0,
6662         df_md_confluence_n,
6663         df_md_top_dump, df_md_bottom_dump): Update.
6664         (struct df_lr_problem_data): Embedd bitmap headers.
6665
6666 2010-06-04  Jan Hubicka  <jh@suse.cz>
6667
6668         * dce.c (dce_process_block): Do not re-scan already marked
6669         instructions.
6670
6671 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
6672
6673         PR rtl-optimization/39871
6674         PR rtl-optimization/40615
6675         PR rtl-optimization/42500
6676         PR rtl-optimization/42502
6677         * ira.c (init_reg_equiv_memory_loc: New function.
6678         (ira): Call it twice.
6679         * reload.h (calculate_elim_costs_all_insns): Declare.
6680         * ira-costs.c: Include "reload.h".
6681         (regno_equiv_gains): New static variable.
6682         (init_costs): Allocate it.
6683         (finish_costs): Free it.
6684         (ira_costs): Call calculate_elim_costs_all_insns.
6685         (find_costs_and_classes): Take estimated elimination costs
6686         into account.
6687         (ira_adjust_equiv_reg_cost): New function.
6688         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
6689         * reload1.c (init_eliminable_invariants, free_reg_equiv,
6690         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
6691         (elim_bb): New static variable.
6692         (reload): Move code out of here into init_eliminable_invariants and
6693         free_reg_equiv.  Call them.
6694         (calculate_elim_costs_all_insns): New function.
6695         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
6696         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
6697         but call note_reg_elim_costly if we turned a valid memory address
6698         into an invalid one.
6699         * Makefile.in (ira-costs.o): Depend on reload.h.
6700
6701 2010-06-04  Julian Brown  <julian@codesourcery.com>
6702
6703         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
6704         for pool ranges.
6705
6706 2010-06-04  Richard Guenther  <rguenther@suse.de>
6707
6708         PR lto/41584
6709         * cgraph.h (struct varpool_node): Add lto_file_data field.
6710         * lto-cgraph.c (input_varpool_node): Initialize it.
6711
6712 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6713
6714         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
6715         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
6716         predicate in "type" attribute calculation.
6717         (*addsi_1_zext): Ditto.
6718         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
6719         (*addsi_2_zext): Ditto.
6720         (*add<mode>_3): Ditto.
6721         (*addsi_3_zext): Ditto.
6722         (*add<mode>_5): Ditto.
6723
6724 2010-06-03  Jan Hubicka  <jh@suse.cz>
6725
6726         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
6727         of bitmap_bit_p.
6728         * cfganal.c (compute_dominance_frontiers_1): Likewise.
6729
6730 2010-06-03  Jan Hubicka  <jh@suse.cz>
6731
6732         * df-problems.c (df_create_unused_note, df_note_bb_compute):
6733         micro-optimize the checks when to add new note.
6734
6735 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
6736
6737         * final.c (output_asm_insn): Call
6738         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
6739         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
6740         (output_address): Call targetm.asm_out.print_operand_address.
6741         Update comments.
6742         * target.h (struct gcc_target): Add print_operand,
6743         print_operand_address, and print_operand_punct_valid_p fields.
6744         * targhooks.h (default_print_operand): Declare.
6745         (default_print_operand_address): Declare.
6746         (default_print_operand_punct_valid_p): Declare.
6747         * targhooks.c (default_print_operand): Define.
6748         (default_print_operand_address): Define.
6749         (default_print_operand_punct_valid_p): Define.
6750         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6751         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6752         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6753         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6754         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6755         * vmsdbgout.c (addr_const_to_string): Update comment.
6756         * config/i386/i386.c (print_operand): Rename to...
6757         (ix86_print_operand): ...this.  Make static.
6758         (print_operand_address): Rename to...
6759         (ix86_print_operand_address): ...this.  Make static.  Call
6760         ix86_print_operand instead of PRINT_OPERAND.
6761         (ix86_print_operand_punct_valid_p): New function.
6762         (TARGET_PRINT_OPERAND): Define.
6763         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6764         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6765         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6766         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6767         (PRINT_OPERAND): Delete.
6768         (PRINT_OPERAND_ADDRESS): Delete.
6769         * config/i386/i386-protos.h (print_operand): Delete prototype.
6770         (print_operand_address): Delete prototype.
6771
6772 2010-06-03  Richard Guenther  <rguenther@suse.de>
6773
6774         PR tree-optimization/44403
6775         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6776         Preserve pointer qualifiers.
6777         (vect_create_data_ref_ptr): Likewise.
6778
6779 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
6780
6781         PR c++/44294
6782         * defaults.h (MAX_FIXED_MODE_SIZE): New.
6783
6784         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6785
6786 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
6787
6788         PR debug/44375
6789         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6790         return false if merging the bbs would lead to goto_locus
6791         location being lost from the IL.
6792
6793 2010-06-03  Jan Hubicka  <jh@suse.cz>
6794             Jakub Jelinek  <jakub@redhat.com>
6795
6796         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6797         set->regs[i] is NULL or has just one entry.
6798
6799 2010-06-03  Jan Hubicka  <jh@suse.cz>
6800
6801         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6802         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6803
6804 2010-06-03  Paul Brook  <paul@codesourcery.com>
6805
6806         * config/arm/arm.c (FL_TUNE): Define.
6807         (arm_default_cpu, arm_cpu_select): Remove.
6808         (all_cores): Populate core field.
6809         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6810         (arm_find_cpu): New function.
6811         (arm_handle_option): Lookup cpu/architecture names.
6812         (arm_override_options): Cleanup mcpu/march/mtune handling.
6813         (arm_file_start): Ditto.
6814
6815 2010-06-03  Alan Modra  <amodra@gmail.com>
6816
6817         PR target/44169
6818         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6819         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6820         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
6821         (rs6000_emit_load_toc_table): Likewise.
6822
6823 2010-06-02  Jan Hubicka  <jh@suse.cz>
6824
6825         * passes.c (init_optimization_passes): Put ipa reference
6826         after ipa pure-const.
6827
6828 2010-06-02  Jan Hubicka  <jh@suse.cz>
6829
6830         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6831         calls_read_all and calls_write_all.
6832         (get_reference_optimization_summary): Fix formatting.
6833         (is_proper_for_analysis): Check that decl is not readonly.
6834         (propagate_bits): Check CONST/PURE/noreturn flags.
6835         (ipa_init): Move all_module_statics to optimization_summary_obstack.
6836         (analyze_function): Ignore indirect edges.
6837         (copy_global_bitmap): For all module statics, do nothing.
6838         (generate_summary): Do not print calls_read_all/calls_write_all.
6839         (read_write_all_from_decl): Take node as argument; check
6840         cgraph_node_cannot_return.
6841         (propagate): Reorganize read_all/write_all computation;
6842         check indirect edges; check ecf flags; use all_module_statics
6843         in the results; do not free all_module_statics.
6844         (stream_out_bitmap): Handle all_module_statics.
6845         (ipa_reference_write_optimization_summary): Likewise; use
6846         varpool/cgraph encoders to get boundaries.
6847         (ipa_reference_read_optimization_summary): Read in all_module_statics;
6848         use it when possible.
6849
6850 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6851
6852         PR target/44218
6853         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6854         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6855
6856         * doc/extend.texi (powerpc builtins): Document vec_recip,
6857         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6858
6859         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6860         (rs6000_emit_swrsqrt): Ditto.
6861         (rs6000_emit_swdivsf): Delete.
6862         (rs6000_emit_swdivdf): Ditto.
6863         (rs6000_emit_swrsqrtsf): Ditto.
6864
6865         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6866         describe the reciprocal estimate support for each type.
6867         (recip_options): Map -mrecip=<opt> into option bits.
6868         (gen_2arg_fn_t): New typedef for binary rtx gen function.
6869         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6870         reciprocal estimate instructions.
6871         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6872         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6873         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
6874         cost information if -mdebug=cost or -mdebug=reg.
6875         (rs6000_override_options): Set -mrecip-precision for power6, and
6876         power7 machines.  If -mvsx or -mdfp, enable various options that
6877         came in previous instruction set ISAs, unless the option was
6878         explicitly disabled by the command line option.  Parse
6879         -mrecip=<opt> options.
6880         (rs6000_builtin_vectorized_function): Add support for vectorizing
6881         the reciprocal estimate builtins and expansions.
6882         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6883         (bdesc_2arg): Add reciprocal estimate builtins.
6884         (bdesc_1arg): Add reciprocal square root estimate builtins.
6885         (rs6000_expand_builtin): Rewrite to use a switch statement,
6886         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
6887         (rs6000_init_builtins): Create declarations for reciprocal
6888         estimate builtins.
6889         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6890         sized, prefer traditional floating point registers, if integer
6891         vector types, prefer altivec registers.  Don't actually look at
6892         the memory address any more.
6893         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6894         builtins.
6895         (rs6000_load_constant_and_splat): New helper function to load up
6896         the constant for reciprocal estimate instructions.
6897         (rs6000_emit_madd): New helper function for generating
6898         multiply/add type instructions, based on the current switches.
6899         (rs6000_emit_msub): Ditto.
6900         (rs6000_emit_mnsub): Ditto.
6901         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6902         replace a divide with a reciprocal estimate and fixup, adding
6903         support for machines with high precision and vectors.
6904         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6905         low precision machines.
6906         (rs6000_emit_swdiv): New common function to be called to replace a
6907         division with reciprocal estimate and fixup.
6908         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
6909         for double and vector types.  Add support for high precision machines.
6910
6911         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6912         the reciprocal estimate instructions can be generated.
6913         (TARGET_FRE): Ditto.
6914         (TARGET_FRSQRTES): Ditto.
6915         (TARGET_FRSQRTE): Ditto.
6916         (RS6000_RECIP_*): New macros for reciprocal estimate support.
6917
6918         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6919         square root estimate on vectors.
6920         (re<mode>2): New insn for reciprocal division estimate on vectors.
6921
6922         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6923         New builtin.
6924         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6925         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6926         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6927         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6928         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6929         (RS6000_BUILTIN_RSQRT): Ditto.
6930         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6931         floating point builtin.
6932
6933         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6934         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6935         __RECIP_PRECISION__ based on the command line switches.
6936         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6937
6938         * config/rs6000/rs6000.opt (-mrecip): Document add support for
6939         replacing division instructions with reciprocal estimate and fixup.
6940         (-mrecip=<opt>): New option.
6941         (-mrecip-precision): Ditto.
6942
6943         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6944         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6945         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6946         precision scalar.
6947
6948         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6949         (UNSPEC_VREFP): Ditto.
6950         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6951         conterparts with regard to support of -mno-fused-madd and -ffast-math.
6952         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6953         reciprocal estimate instructions to be generated.
6954         (altivec_vrefp): Ditto.
6955
6956         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6957         estimate support.
6958         (rreg): New mode attribute for reciprocal estimate support.
6959         (recip<mode>3): New insn for division using reciprocal estimate
6960         and fixup builtins.
6961         (divide define_split): New define_split to convert floating point
6962         division to use reciprocal estimate if the user used the
6963         appropriate options and the split is run when we can add new
6964         pseudo registers for the fixup.
6965         (rsqrt<mode>2): New insn for reciprocal square root support.
6966         (recipsf3): Move into recip<mode>3.
6967         (recipdf3): Ditto.
6968         (fres): Use TARGET_FRES.
6969         (rsqrtsf2): Move into rsqrt<mode>2.
6970         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6971         (copysignsf3): Add support for VSX.
6972         (fred): Use TARGET_FRE.
6973         (fred_fpr): Ditto.
6974         (rsqrtdf_internal1): New function for frsqrte instruciton.
6975
6976         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6977         (vec_rsqrt): Ditto.
6978
6979 2010-06-03  Richard Guenther  <rguenther@suse.de>
6980
6981         PR middle-end/44291
6982         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6983         (set_user_assembler_libfunc): Likewise.
6984
6985 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6986
6987         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6988         defaults.h.
6989         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6990         to defaults.h
6991         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6992         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6993         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6994         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6995         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6996         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6997         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6998         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6999         * defaults.h: Updated for above mentioned changes.
7000
7001 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
7002
7003         * c-common.c: Remove header include of tm_p.h.
7004         * Makefile.in (c-common.o): Remove TM_P_H dependency.
7005
7006 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
7007
7008         * tree.h (struct tree_decl_map): New type.
7009         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
7010         (tree_decl_map_hash): New prototype.
7011         (debug_expr_for_decl, value_expr_for_decl): Change into
7012         tree_decl_map hashtab from tree_map.
7013         (init_ttree): Adjust initialization.
7014         (tree_decl_map_hash): New function.
7015         (decl_debug_expr_lookup, decl_debug_expr_insert,
7016         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
7017
7018 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7019
7020         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
7021         linker emulations.
7022         * configure: Regenerate.
7023         * config.in: Regenerate.
7024
7025         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
7026         (X86_64_EMULATION): Define.
7027         (TARGET_LD_EMULATION): Use them.
7028
7029         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
7030         (SPARC64_EMULATION): Define.
7031         (LINK_ARCH_SPEC): Use them.
7032
7033 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7034
7035         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
7036         smallest_mode_for_size for computing the precision types of new
7037         graphite IVs.  Do not call lang_hooks.types.type_for_size.
7038
7039 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7040
7041         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
7042         information.
7043         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
7044
7045 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
7046
7047         PR middle-end/44363
7048         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
7049         return false instead.
7050
7051 2010-06-02  Jan Hubicka  <jh@suse.cz>
7052
7053         PR middle-end/44295
7054         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7055         create new cgraph node to check callee.
7056
7057 2010-06-02  Richard Guenther  <rguenther@suse.de>
7058
7059         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7060
7061 2010-06-02  Richard Guenther  <rguenther@suse.de>
7062
7063         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7064         (lto_wrapper_cleanup): ... this.  Do not exit.
7065         (fatal): Adjust.  Exit here.
7066         (fatal_perror): Likewise.
7067         (fatal_signal): New function.
7068         (main): Set up signal handlers to cleanup temporary files.
7069         * Makefile.in (lto-wrapper.o): Adjust dependencies.
7070
7071 2010-06-02  Richard Guenther  <rguenther@suse.de>
7072
7073         PR tree-optimization/44377
7074         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7075
7076 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7077
7078         * config/s390/2097.md (z10_fhex): Remove insn reservation.
7079         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7080         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7081         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7082         instruction.
7083         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7084
7085 2010-06-02  Jan Hubicka  <jh@suse.cz>
7086
7087         * bitmap.c (bitmap_descriptor): Add search_iter.
7088         (bitmap_find_bit): Increment it.
7089         (print_statistics): Print it.
7090
7091 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
7092
7093         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7094         instead of gimple_build_call_vec.  Delete unnecessary local variable.
7095
7096 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7097
7098         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7099         change from yesterday.
7100
7101 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
7102
7103         * c-ada-spec.c: Clean up redundant includes.
7104
7105 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
7106
7107         * gimplify.c: Do not include except.h and optabs.h.
7108         (gimplify_body): Do not initialize RTL profiling.
7109         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7110         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7111         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7112         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7113         langhooks.h.
7114
7115         * tree-pretty-print.h: Include pretty-print.h.
7116         * gimple-pretty-print.h: Include pretty-print.h.
7117
7118         * tree-pretty-print.c: Do not include diagnostic.h.
7119         * tree-vrp.c: Likewise.
7120         * tree-tailcall.c: Likewise
7121         * tree-scalar-evolution.c: Likewise
7122         * tree-ssa-dse.c: Likewise
7123         * tree-chrec.c: Likewise
7124         * tree-ssa-sccvn.c: Likewise
7125         * tree-ssa-copyrename.c: Likewise
7126         * tree-nomudflap.c: Likewise
7127         * tree-call-cdce.c: Likewise
7128         * tree-stdarg.c: Likewise
7129         * tree-ssa-math-opts.c: Likewise
7130         * tree-nrv.c: Likewise
7131         * tree-ssa-sink.c: Likewise
7132         * tree-browser.c: Likewise
7133         * tree-ssa-loop-ivcanon.c: Likewise
7134         * tree-ssa-loop.c: Likewise
7135         * tree-parloops.c: Likewise
7136         * tree-ssa-address.c: Likewise
7137         * tree-ssa-ifcombine.c: Likewise
7138         * tree-if-conv.c: Likewise
7139         * tree-data-ref.c: Likewise
7140         * tree-affine.c: Likewise
7141         * tree-ssa-phiopt.c: Likewise
7142         * tree-ssa-coalesce.c: Likewise
7143         * tree-ssa-pre.c: Likewise
7144         * tree-ssa-live.c: Likewise
7145         * tree-predcom.c: Likewise
7146         * tree-ssa-forwprop.c: Likewise
7147         * tree-ssa-dce.c: Likewise
7148         * tree-ssa-ter.c: Likewise
7149         * tree-ssa-loop-prefetch.c: Likewise
7150         * tree-optimize.c: Likewise
7151         * tree-ssa-phiprop.c: Likewise
7152         * tree-object-size.c: Likewise
7153         * tree-outof-ssa.c: Likewise
7154         * tree-ssa-structalias.c: Likewise
7155         * tree-switch-conversion.c: Likewise
7156         * tree-ssa-reassoc.c: Likewise
7157         * tree-ssa-operands.c: Likewise
7158         * tree-vectorizer.c: Likewise
7159         * tree-vect-data-refs.c: Likewise
7160         * tree-vect-generic.c: Likewise
7161         * tree-vect-stmts.c: Likewise
7162         * tree-vect-patterns.c: Likewise
7163         * tree-vect-slp.c: Likewise
7164         * tree-vect-loop.c: Likewise
7165         * tree-ssa-loop-ivopts.c: Likewise
7166         * tree-ssa-loop-im.c: Likewise
7167         * tree-ssa-loop-niter.c: Likewise
7168         * tree-ssa-loop-unswitch.c: Likewise
7169         * tree-ssa-loop-manip.c: Likewise
7170         * tree-ssa-loop-ch.c: Likewise
7171         * tree-dump.c: Likewise
7172         * tree-complex.c: Likewise
7173
7174         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7175         * tree-ssa-uninit.c: Likewise
7176         * tree-ssa-threadupdate.c: Likewise
7177         * tree-ssa-uncprop.c: Likewise
7178         * tree-ssa-ccp.c: Likewise
7179         * tree-ssa-dom.c: Likewise
7180         * tree-ssa-propagate.c: Likewise
7181         * tree-ssa-alias.c: Likewise
7182         * tree-dfa.c: Likewise
7183         * tree-cfgcleanup.c: Likewise
7184         * tree-sra.c: Likewise
7185         * tree-ssa-copy.c: Likewise
7186         * tree-ssa.c: Likewise
7187         * tree-profile.c: Likewise
7188         * tree-cfg.c: Likewise
7189         * tree-ssa-threadedge.c: Likewise
7190         * tree-vect-loop-manip.c: Likewise
7191
7192         * tree-inline.c: Do not include diagnostic.h and expr.h.
7193         Include rtl.h.
7194         (copy_decl_for_dup_finish): Do not use NULL_RTX.
7195
7196         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7197         * tree-loop-distribution.c: Likewise.
7198
7199 2010-06-01  Jan Hubicka  <jh@suse.cz>
7200
7201         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7202
7203 2010-06-01  Jan Hubicka  <jh@suse.cz>
7204
7205         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7206         remove return value.
7207         (split_bbs_on_noreturn_calls) .... here.
7208         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7209         * tree-flow.h (fixup_noreturn_call): New.
7210
7211 2010-06-01  Jan Hubicka  <jh@suse.cz>
7212
7213         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7214
7215 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
7216
7217         * tree.h (build_nt_call_list): Delete.
7218         * tree.c (build_nt_call_list): Delete.
7219
7220 2010-06-01  Jan Hubicka  <jh@suse.cz>
7221
7222         * fwprop.c: Make emit-rtl.h include last.
7223         * rtlanal.c: Include emit-rtl.h.
7224         * genautomata.c: Output emit-rtl include into insn-automata.c
7225         * df-scan.c: Include emit-rtl.h.
7226         * haifa-sched.c: Indlude emit-rtl.h.
7227         * mode-switching.c: Indlude emit-rtl.h.
7228         * graph.c: Indlude emit-rtl.h.
7229         * sel-sched.c: Include emit-rtl.h.
7230         * sel-sched-ir.c: Include emit-rtl.h.
7231         * ira-build.c: Include emit-rtl.h.
7232         * emit-rtl.c: (first_insn, last_insn): Remove defines.
7233         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7234         Move to emit-rtl.h.
7235         (set_new_first_and_last_insn, get_last_insn_anywhere,
7236         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7237         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7238         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7239         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7240         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7241         Use accessor functions.
7242         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7243          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7244         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7245         mem_expr_equal_p): Move here from rtl.h.
7246         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7247         Move here from emit-rtl.c; make inline.
7248         * cfglayout.h: Include emit-rtl.h.
7249         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7250          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7251         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7252         mem_expr_equal_p, get_insns, set_first-insn,
7253         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7254         * reg-stack.c: Include emit-rtl.h.
7255         * dce.c: Likewise.
7256
7257 2010-06-01  Jan Hubicka  <jh@suse.cz>
7258
7259         * cgraph.h (tree_function_versioning): Update prototype.
7260         (cgraph_function_versioning): Update prototype.
7261         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7262         bitmap.
7263         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7264         (cgraph_materialize_clone, save_inline_function_body): Update use of
7265         tree_function_versioning.
7266         * tree-inline.c (copy_bb): Look for previous copied block to link
7267         after; fix debug output.
7268         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
7269         (copy_body): Likewise.
7270         (expand_call_inline): Update use of copy_body.
7271         (tree_function_versioning): Update use of copy body; accept
7272         blocks_to_copy and new_entry.
7273
7274 2010-06-01  Jan Hubicka  <jh@suse.cz>
7275
7276         * gegenrtl.c: Remove unnecesary prototypes.
7277         (gendecl): Remove.
7278         (gendef): Produce static inline.
7279         (gencode): Remove.
7280         (main): Do not decode parameters; generate header only.
7281         * Makefile.in (genrtl.c): Remove.
7282
7283 2010-06-01  Jan Hubicka  <jh@suse.cz>
7284
7285         * tree-switch-conversion.c (build_one_array): Make it readonly.
7286
7287 2010-06-01  Richard Guenther  <rguenther@suse.de>
7288
7289         * optabs.c (init_optabs): Guard all accesses to reinit.
7290         * ipa-pure-const.c (propagate): Fix another typo.
7291         * opts.c (common_handle_option): Split assignment to bool.
7292         * c-opts.c (c_common_handle_option): Likewise.
7293
7294 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
7295             Matthew Gingell  <gingell@adacore.com>
7296
7297         * doc/invoke.texi: Mention -fdump-ada-spec.
7298         * tree-dump.c (dump_files): Add ada-spec.
7299         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
7300         * tree-pass.h (tree_dump_index): Add TDI_ada.
7301         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
7302         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
7303         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
7304         * c-decl.c: Include c-ada-spec.h.
7305         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
7306         functions.
7307         (c_write_global_declarations): Add handling of -fdump-ada-spec.
7308         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
7309         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
7310         * c-ada-spec.h, c-ada-spec.c: New files.
7311
7312 2010-06-01  Richard Guenther  <rguenther@suse.de>
7313
7314         PR lto/43853
7315         * ipa-pure-const.c (get_function_state): Hand back varying state
7316         if we do not have one.
7317         (has_function_state): New function.
7318         (duplicate_node_data): Adjust.
7319         (remove_node_data): Likewise.
7320         (pure_const_write_summary): Likewise.
7321         (propagate): Likewise.  Fix typo.
7322
7323 2010-06-01  Jan Hubicka  <jh@suse.cz>
7324
7325         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
7326         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
7327         (execute_all_ipa_transforms): Do not play with the states.
7328
7329 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
7330
7331         * config/arm/t-linux-androideabi: New.
7332         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7333
7334 2010-06-01  Jan Hubicka  <jh@suse.cz>
7335
7336         * tree-inline.c (estimate_num_insns): For stdarg functions look
7337         into call statement to count cost of argument passing.
7338
7339 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
7340
7341         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7342         argument for fprintf.
7343         (ix86_output_addr_diff_elt): Likewise.
7344         (x86_function_profiler): Likewise.
7345         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7346         (LPREFIX): Likewise.
7347         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7348
7349 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
7350
7351         PR target/44338
7352         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7353         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7354         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7355         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7356         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7357         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7358         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7359         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7360         TARGET_FUSED_MADD.
7361
7362 2010-05-31  Jan Hubicka  <jh@suse.cz>
7363
7364         * tree.h (tree_range_check_failed): Declare noreturn.
7365
7366 2010-05-31  Jan Hubicka  <jh@suse.cz>
7367
7368         * gimple.c (gimple_call_builtin_p): New function.
7369         * gimple.h (gimple_call_builtin_p): Declare.
7370         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7371         to exit.
7372         (execute_warn_function_return): BUILT_IN_RETURN is return.
7373         (split_critical_edges): Return edges are not critical.
7374         (is_ctrl_altering_stmt): Builtin_in_return is altering.
7375         (gimple_verify_flow_info): Handle built_in_return.
7376         (execute_warn_function_return): Handle built_in_return.
7377         * ipa-pure-const.c (check_call): Ignore builtin_return.
7378
7379 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
7380
7381         PR middle-end/44337
7382         * expr.c (expand_assignment): Don't store anything for out-of-bounds
7383         array accesses with non-MEM.
7384
7385         PR tree-optimization/44182
7386         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7387         newly needs to end a bb is followed by debug stmts, instead return
7388         true from the function at the end.
7389         (maybe_move_debug_stmts_to_successors): New function.
7390         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7391
7392 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
7393
7394         PR target/44161
7395         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7396
7397 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
7398
7399         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7400         for nested functions in non-optimized compilation.
7401
7402 2010-05-31  Richard Guenther  <rguenther@suse.de>
7403
7404         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
7405
7406 2010-05-30  Jan Hubicka  <jh@suse.cz>
7407
7408         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
7409
7410 2010-05-30  Richard Guenther  <rguenther@suse.de>
7411
7412         PR lto/42975
7413         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
7414         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
7415         no longer needed.
7416
7417 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
7418
7419         * config/darwin.c (output_objc_section_asm_op): Add comment.
7420         (name_needs_quotes): Add '_' to list of valid comment chars.
7421         (machopic_output_function_base_name): Remove unneeded quotes.
7422         (darwin_encode_section_info): Adjust asm whitespace.
7423         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
7424         (ASM_OUTPUT_LOCAL): Ditto.
7425         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
7426         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
7427         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
7428
7429 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
7430
7431         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
7432         RS6000_OUTPUT_BASENAME unconditionally.
7433         (rs6000_output_function_epilogue): Likewise.
7434
7435 2010-05-30  Jan Hubicka  <jh@suse.cz>
7436
7437         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
7438         nodes.
7439
7440 2010-05-30  Richard Guenther  <rguenther@suse.de>
7441
7442         * tree-cfg.c (verify_gimple_assign_single): Implement
7443         verification for COND_EXPR rhs.
7444
7445 2010-05-30  Jan Hubicka  <jh@suse.cz>
7446
7447         * cgraph.h (cgraph_dump_file): Declare.
7448         * cgraphunit.c (cgraph_dump_file): Export.
7449         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
7450
7451 2010-05-30  Jan Hubicka  <jh@suse.cz>
7452
7453         * dwarf2out.c (reference_to_unused,
7454         premark_types_used_by_global_vars_helper): Avoid creation of new
7455         varpool nodes.
7456
7457 2010-05-30  Jan Hubicka  <jh@suse.cz>
7458
7459         * cgraph.h (cgraph_node_cannot_return,
7460         cgraph_edge_cannot_lead_to_return): New functions.
7461         * cgraph.c (cgraph_node_cannot_return,
7462         cgraph_edge_cannot_lead_to_return): Use them.
7463         * ipa-pure-const.c (pure_const_names): New static var.
7464         (check_call): Handle calls not leading to return.
7465         (pure_const_read_summary): Dump info read.
7466         (propagate): Dump info about propagation process; ignore side effects
7467         of functions not leading to exit; fix handling of pure functions.
7468
7469 2010-05-30  Jan Hubicka  <jh@suse.cz>
7470
7471         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
7472         for tail call epilogues.
7473
7474 2010-05-30  Jan Hubicka  <jh@suse.cz>
7475
7476         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
7477         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
7478         dump files.
7479
7480 2010-05-29  Jan Hubicka  <jh@suse.cz>
7481
7482         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
7483         node; remove references in node we no longer keep in cgrpah but need
7484         body of.
7485
7486 2010-05-29  Jan Hubicka  <jh@suse.cz>
7487
7488         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
7489
7490 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7491
7492         PR target/44165
7493         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
7494
7495 2010-05-29  Jan Hubicka  <jh@suse.cz>
7496
7497         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
7498         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
7499         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
7500         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
7501         debug_names_replaced_by, debug_update_ssa): Likewise.
7502         * sbitmap.c (debug_sbitmap): Likewise.
7503         * genrecog.c (debug_decision, debug_decision_list): Likewise.
7504         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
7505         debug_tree_chain): Likewise.
7506         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
7507         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
7508         * optabs.c  (debug_optab_libfuncs): Likewise.
7509         (verify_loop_closed_ssa): Likewise.
7510         * value-prof.c (verify_histograms): Likewise.
7511         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
7512         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
7513         * cfghooks.c (verify_flow_info): Likewise.
7514         * fold-const.c (debug_fold_checksum): Likewise.
7515         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
7516         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
7517         Likewise.
7518         * omega.c (debug_omega_problem): Likewise.
7519         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
7520         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
7521         * dominance.c (verify_dominators, debug_dominance_info,
7522         debug_dominance_tree): Likewise.
7523         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
7524         * df_regno_debug, df_ref_debug,
7525         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
7526         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
7527         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
7528         * sel-sched.c (debug_state): Likewise.
7529         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
7530         Likewise.
7531         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
7532         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
7533         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
7534         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
7535         Likewise.
7536         * c-pretty-print.c (debug_c_tree): Likewise.
7537         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
7538         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
7539         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
7540         * ebitmap.c (debug_ebitmap): Likewise.
7541         * function.c (debug_find_var_in_block_tree): Likewise.
7542         * print-rtl.c (debug_rtx): Likewise.
7543         (debug_rtx_count): Likewise.
7544         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
7545         * stor-layout.c (debug_rli): Likewise.
7546         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
7547         * tree-data-ref.c (debug_data_references,
7548         debug_data_dependence_relations, debug_data_reference,
7549         debug_data_dependence_relation, debug_rdg_vertex,
7550         debug_rdg_component, debug_rdg): Likewise.
7551         * tree-affine.c (debug_aff): Likewise.
7552         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
7553         Likewise.
7554         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
7555         * emit-rtl.c (verify_rtl_sharing): Likewise.
7556         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
7557         debug_value_expressions): Likewise.
7558         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
7559         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
7560         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
7561         * cfglayout.c (verify_insn_chain): Likewise.
7562         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
7563         debug_clast_stmt, debug_generated_program): Likewise.
7564         * ggc-page.c (debug_print_page_list): Likewise.
7565         * tree-ssa-ter.c (debug_ter): Likewise.
7566         * graphite-dependences.c (debug_pddr): Likewise.
7567         * sched-deps.c (debug_ds): Likewise.
7568         * tree-ssa.c (verify_ssa): Likewise.
7569         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
7570         debug_scattering_functions, debug_iteration_domains, debug_pdr,
7571         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
7572         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
7573         * tree-inline.c (debug_find_tree): Likewise.
7574         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
7575         debug_ppl_powerset_matrix): Likewise.
7576         * var-tracking.c (debug_dv): Likewise.
7577         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
7578         * cfgloop.c (verify_loop_structure): Likewise.
7579         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
7580         * c-common.c (verify_sequence_points): Likewise.
7581         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
7582         debug_candidates, debug_rgn_dependencies): Likewise.
7583         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
7584         * debug_constraint_graph, debug_solution_for_var,
7585         debug_sa_points_to_info): Likewise.
7586         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
7587         Likewie.
7588         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
7589         debug_loops, debug_loop, debug_loop_num): Likewise.
7590         * passes.c (debug_pass): Likewise.
7591         (dump_properties): Likewise; add cfglayout property.
7592         (debug_properties): Likewise.
7593         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
7594         * varpool.c (debug_varpool): Likewise.
7595         * regcprop.c (debug_value_data): Likewise.
7596         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
7597         debug_immediate_uses_for): Likewise.
7598
7599 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7600
7601         PR bootstrap/44315
7602         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
7603         Filter out insn-flags.h.
7604
7605 2010-05-29  Jan Hubicka  <jh@suse.cz>
7606
7607         * cgraph.h (struct varpool_node_set_def,
7608         struct cgraph_node_set_def): Remove unused AUX pointer.
7609         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
7610         VEC_empty macro.
7611
7612 2010-05-29  Jan Hubicka  <jh@suse.cz>
7613
7614         PR middle-end/44324
7615         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
7616
7617 2010-05-29  Richard Guenther  <rguenther@suse.de>
7618
7619         * lto-streamer.c (cached_bp): New global variable.
7620         (bitpack_create): Return the cached bitpack, if available.
7621         (bitpack_delete): Clear and cache the bitpack, if appropriate.
7622         (bp_pack_value): Remove redundant asserts.
7623
7624 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
7625
7626         PR middle-end/44306
7627         * tree-if-conv.c (is_true_predicate): New.
7628         (is_predicated): Use is_true_predicate.
7629         (add_to_predicate_list): Same.  Do not use unshare_expr.
7630         (add_to_dst_predicate_list): Same.
7631
7632 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
7633
7634         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7635         field on edges.
7636         (predicate_bbs): Same.
7637         (clean_predicate_lists): Same.
7638         (find_phi_replacement_condition): Do not AND the predicate from
7639         edge->aux.
7640
7641 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7642
7643         PR bootstrap/44315
7644         * Makefile.in (build/gencondmd.o): Add a missing `\'.
7645
7646 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7647
7648         PR target/44261
7649         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7650         (negdf2): Adjust expander pattern and use negdf2_slow.
7651         (negsf2): Likewise.
7652
7653 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
7654
7655         * basic-block.h (struct control_flow_graph): Move last_label_uid field
7656         up.
7657         * df.h (struct df_base_ref): Move regno field up.
7658         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7659         * expr.h (struct separate_ops): Move location field up.
7660         * optabs.h (struct optab_d): Move libcall_basename field down.
7661         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7662         * config/i386/i386.h (struct machine_function): Convert call_abi field
7663         into a bitfield.  Move cfa field to the end of the structure.
7664
7665 2010-05-29  Jan Hubicka  <jh@suse.cz>
7666
7667         * varpool.c (varpool_get_node): Fix lookup.
7668
7669 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7670
7671         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
7672         RTL specific prototypes with #ifdef RTX_CODE.
7673         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7674         * config/spu/t-spu-elf: Fix dependencies.
7675
7676         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
7677
7678 2010-05-29  Mike Stump  <mikestump@comcast.net>
7679
7680         PR bootstrap/44315
7681         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
7682         TM_H when building to avoid dependency loops.
7683
7684 2010-05-29  Jan Hubicka  <jh@suse.cz>
7685
7686         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
7687         refs and body; not the whole node for masters of materialized clones.
7688
7689 2010-05-29  Mike Stump  <mikestump@comcast.net>
7690
7691         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
7692
7693 2010-05-29  Jan Hubicka  <jh@suse.cz>
7694
7695         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
7696         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
7697         use of clone_function_name.
7698         * cgraph.h (cgraph_create_virtual_clone,
7699         cgraph_function_versioning): update prototypes.
7700         (clone_function_name): Declare.
7701         * ipa-cp.c (ipcp_insert_stage): Update call of
7702         cgraph_create_virtual_clone.
7703         * omp-low.c (create_omp_child_function_name): Use
7704         cgraph_create_virtual_clone.
7705         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
7706         (cgraph_function_versioning): Take SUFFIX argument; produce new name
7707         and make decl local.
7708
7709 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7710
7711         * vec.h: Include statistics.h
7712         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
7713         with VEC_H.
7714
7715 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7716
7717         * c-lex.c: Do not include c-tree.h.
7718         * c-pretty-print.c: Likewise.
7719         * c-opts.c: Likewise.
7720         * c-gimplify.c: Likewise.
7721         * c-common.c: Likewise.
7722         * c-dump.c: Likewise.  Include c-common.h.
7723
7724 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7725
7726         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
7727         before including diagnostic-core.h.
7728         (c_cpp_error): New prototype moved from c-tree.h.
7729         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
7730         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
7731         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
7732         (c_cpp_error): Prototype moved to c-common.h.
7733         * Makefile.in: Update dependency for C_COMMON_H.
7734
7735 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7736
7737         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7738         * c-common.c (c_register_addr_space): Remove here.
7739         * c-decl.c (c_register_addr_space): Re-add here.
7740
7741 2010-05-28  Mike Stump  <mikestump@comcast.net>
7742
7743         * config/darwin-c.c: Remove c-tree.h include.
7744
7745 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7746
7747         * gcc.c: Include diagnostic.h.
7748         (error_count): Remove.  All users changed to use errorcount.
7749         (programname): Remove.  All users changed to use progname.
7750         (fancy_abort, internal_error, fatal_error, error, warning, inform,
7751         fnotice): Remove.
7752         (execute): Don't include "Internal error" and bug reporting
7753         information in argument of internal_error call.
7754         (process_command): Don't increment error_count after calling
7755         perror_with_name.
7756         (input_filename): Rename to gcc_input_filename.  All users
7757         changed.
7758         (main): Call diagnostic_initialize.  Register delete_temp_files
7759         with atexit.  Use seen_error to test for errors.
7760         * gcc.h: Include diagnostic-core.h.
7761         (fatal_error, error, warning): Remove.
7762         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7763         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7764         (gcc.o): Update dependencies.
7765
7766 2010-05-28  Jeff Law  <law@redhat.com>
7767
7768         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7769         functions.
7770         * ira.h (ira_bad_reload_regno): Declare
7771         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7772
7773         * ira-color.c (update_curr_costs): Free updated hard reg costs.
7774         (ira_reassign_conflict_allocnos): Remove bogus asserts.
7775         (allocno_reload_assign): Likewise.
7776
7777 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
7778
7779         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7780         build1_stat.
7781
7782 2010-05-28  Richard Guenther  <rguenther@suse.de>
7783
7784         PR lto/44312
7785         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7786         Stream fixed-point constants mode.
7787         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7788         and TYPE_PRECISION.
7789         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7790         Stream fixed-point constants mode.
7791         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7792         and TYPE_PRECISION.
7793
7794 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7795
7796         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7797         only place it was called from.
7798         (number_of_latch_executions): Do not return chrec_dont_know when the
7799         may_be_zero is a runtime condition: instead, return a COND_EXPR
7800         including the may_be_zero condition.
7801         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7802         of nb_iterations.
7803         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7804         COND_EXPRs.
7805
7806 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7807
7808         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7809         generate COND_EXPRs for degenerate_phi_result.
7810
7811 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7812
7813         PR middle-end/44293
7814         * tree-if-conv.c (if_convertible_loop_p): Check the
7815         if-convertibility of phi nodes in non predicated BBs.
7816
7817 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7818
7819         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7820
7821 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7822
7823         PR driver/15303
7824         * gcc.c (inform, warning, inform): New functions.
7825         (fatal_ice): Rename to internal_error; change cmsgid parameter to
7826         gmsgid.  All callers changed.
7827         (notice): Rename to fnotice; add parameter fp.  All callers changed.
7828         (fatal_error): Rename to fatal_signal.  All users changed.
7829         (fatal): Rename to fatal_error; change cmsgid parameter to
7830         gmsgid.  All callers changed.
7831         (process_command): Use warning instead of error for warnings.
7832         (end_going_arg): Don't use _() around argument of error.
7833         (do_spec_1): Use inform for message from %n specs.  Use warning
7834         instead of error for warnings.
7835         (main): Use inform for comparison messages.  Use warning for
7836         message about unused linker input.
7837         (error): Increment error_count.  Print "error: ".
7838         * gcc.h (fatal): Change to fatal_error.
7839         (warning): Declare.
7840         * config/darwin-driver.c (darwin_default_min_version): Use warning
7841         instead of fprintf for warnings.
7842         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7843
7844 2010-05-28  Julian Brown  <julian@codesourcery.com>
7845
7846         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7847         (*thumb2_addsi3_compare0_scratch): New.
7848         * config/arm/constraints.md (Pv): New.
7849         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7850         for ARM mode only.
7851         (*addsi3_compare0_scratch): Likewise.
7852
7853 2010-05-28  Jan Hubicka  <jh@suse.cz>
7854
7855         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7856         check.
7857         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7858         only on local statics.
7859
7860 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
7861
7862         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7863
7864 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7865
7866         PR bootstrap/44314
7867         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7868         (OPTION_GLIBC): Define.
7869
7870 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
7871
7872         PR debug/41048
7873         * dwarf2out.c (double_int_type_size_in_bits): New function.
7874         (round_up_to_align): Change first argument and return value to
7875         double_int.
7876         (field_byte_offset): Work internally on double_ints.
7877
7878         PR target/43636
7879         * builtins.c (expand_movstr): Use a temporary pseudo instead
7880         of target even when target is not NULL and not const0_rtx, but
7881         fails movstr predicate.
7882         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7883
7884 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7885
7886         * final.c (rest_of_clean_state): Use %m in errors instead of
7887         strerror (errno).
7888         * gengtype.c (read_input_list, close_output_files): Use xstrerror
7889         instead of strerror.
7890         * toplev.c (process_options): Use %m in errors instead of strerror
7891         (errno).
7892         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7893         (errno).
7894
7895 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
7896
7897         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7898         (ix86_canonical_va_list_type): Make static.  Add declaration.
7899         (ix86_enum_va_list): Make static.  Reindent.
7900         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7901         (ix86_canonical_va_list_type): Ditto.
7902         (ix86_enum_va_list): Ditto.
7903
7904 2010-05-28  Richard Guenther  <rguenther@suse.de>
7905
7906         * lto-wrapper.c (run_gcc): With -save-temps generate a
7907         user-visible ltrans filename.  Fixup ltrans unit numbering.
7908
7909 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
7910
7911         * c-common.c (c_common_nodes_and_builtins): Replace use
7912         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7913         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7914         to ix86_enum_va_list.
7915         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7916         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7917         (TARGET_ENUM_VA_LIST_P): Add hook description.
7918         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7919         * target.h (gcc_target): Add enum_va_list hook.
7920
7921         PR bootstrap/44299
7922         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7923         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7924         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7925
7926 2010-05-28  Alan Modra  <amodra@gmail.com>
7927
7928         PR target/44266
7929         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7930         emit_library_call machinery to set up __tls_get_addr calls.
7931
7932 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7933
7934         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7935
7936 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
7937
7938         Revert fix for PR c++/44188
7939         * c-common.c (is_typedef_decl): Revert the moving of  this
7940         definition ...
7941         * tree.c (is_typedef_decl): ... here.
7942         (typdef_variant_p): Revert the moving of this  definition
7943         here from gcc/cp/tree.c.
7944         * c-common.h (is_typedef_decl): Revert the moving of this
7945         declaration ...
7946         * tree.h (is_typedef_decl): ... here.
7947         (typedef_variant_p): Revert the moving of this  declaration here
7948         from gcc/cp/cp-tree.h
7949         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7950         (gen_tagged_type_die): Revert the splitting out of ...
7951         (gen_type_die_with_usage): ... this function. Revert the anonymous
7952         tagged type handling.
7953         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
7954         typedefs naming anonymous tagged types.
7955
7956 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
7957
7958         * config/rs6000/rs6000-modes.def (PSImode): Delete.
7959
7960 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
7961
7962         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7963         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7964         throughout.
7965         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7966         "xer" to "ca".
7967         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7968         XER_REGS to CA_REGS throughout.
7969         * config/rs6000/rs6000.h: Same.
7970         (ADDITIONAL_REGISTER_NAMES): Add "xer".
7971         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
7972         that mode_iterator "P" is the size for arithmetic carries as well.
7973         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7974
7975 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
7976
7977         PR bootstrap/44255
7978         * combine.c (struct rtx_subst_pair): Define unconditionally.
7979         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
7980         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7981         Call make_compound_operation on pair->to.
7982         (propagate_for_debug): Don't call make_compound_operation here.
7983         Always use simplify_replace_fn_rtx.
7984
7985 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
7986
7987         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7988         * config/xtensa/xtensa.c (override_options): Check
7989           TARGET_FORCE_NO_PIC and set flag_pic.
7990         * config/xtensa/xtensa.opt: Document -mforce-no-pic
7991
7992 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
7993
7994         PR bootstrap/44299
7995         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7996         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7997
7998 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
7999
8000         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
8001         toplev.h.
8002         * diagnostic.c: Don't include toplev.h.
8003         (progname): Define.  Moved from toplev.c.
8004         (seen_error): New function.
8005         * diagnostic.h: Include diagnostic-core.h.
8006         (diagnostic_t, emit_diagnostic): Don't declare here.
8007         * toplev.c (progname): Move to toplev.c.
8008         (emit_debug_global_declarations, compile_file, finalize,
8009         do_compile, toplev_main): Use seen_error.
8010         * toplev.h: Include diagnostic-core.h.
8011         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
8012         internal_error, warning, warning_at, error, error_n, error_at,
8013         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
8014         verbatim, fnotice, progname): Move to diagnostic-core.h.
8015         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
8016         (expand_builtin_expect): Use seen_error.
8017         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
8018         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
8019         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
8020         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
8021         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
8022         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
8023         errorcount for errors.
8024         * c-opts.c (c_common_finish): Use seen_error.
8025         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8026         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
8027         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
8028         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
8029         (get_coverage_counts): Use seen_error.
8030         * dwarf2out.c (dwarf2out_finish): Use seen_error.
8031         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
8032         gimplify_body): Use seen_error.
8033         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
8034         * ipa-pure-const.c (gate_pure_const): Use seen_error.
8035         * ipa-reference.c (gate_reference): Use seen_error.
8036         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
8037         * lambda-code.c: Include diagnostic-core.h instead of
8038         diagnostic.h.
8039         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8040         * lto-compress.c: Include diagnostic-core.h instead of
8041         diagnostic.h.
8042         * lto-section-in.c: Include diagnostic-core.h instead of
8043         diagnostic.h.
8044         * lto-streamer-out.c: Include diagnostic-core.h instead of
8045         diagnostic.h.
8046         * lto-streamer.c: Include diagnostic-core.h instead of
8047         diagnostic.h.
8048         (gate_lto_out): Use seen_error.
8049         * matrix-reorg.c: Include diagnostic-core.h instead of
8050         diagnostic.h.
8051         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8052         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8053         (gate_expand_omp, lower_omp_1): Use seen_error.
8054         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8055         (rest_of_decl_compilation, rest_of_type_compilation,
8056         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8057         * tree-cfg.c (label_to_block_fn): Use seen_error.
8058         * tree-inline.c (optimize_inline_calls): Use seen_error.
8059         * tree-mudflap.c (mudflap_finish_file): Use
8060         seen_error.
8061         * tree-optimize.c (gate_all_optimizations,
8062         gate_all_early_local_passes, gate_all_early_optimizations): Use
8063         seen_error.
8064         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8065         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8066         (varpool_remove_unreferenced_decls,
8067         varpool_assemble_pending_decls): Use seen_error.
8068         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8069         (TOPLEV_H, DIAGNOSTIC_H): Update.
8070         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8071         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8072         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8073         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8074         coverage.o, lambda-code.o): Update dependencies.
8075
8076 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
8077
8078         PR c++/44188
8079         * c-common.c (is_typedef_decl): Move this definition ...
8080         * tree.c (is_typedef_decl): ... here.
8081         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8082         * c-common.h (is_typedef_decl): Move this declaration ...
8083         * tree.h (is_typedef_decl): ... here.
8084         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8085         * dwarf2out.c (is_naming_typedef_decl): New function.
8086         (gen_tagged_type_die): Split out of ...
8087         (gen_type_die_with_usage): ... this function. When an anonymous
8088         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8089         is emitted for the typedef.
8090         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8091         anonymous tagged types.
8092
8093 2010-05-27  Jason Merrill  <jason@redhat.com>
8094
8095         * print-tree.c (debug_vec_tree): New fn.
8096         (print_vec_tree): New fn.
8097         * tree.h: Declare them.
8098         * gdbinit.in (pvt): New command.
8099
8100         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8101
8102         * gdbinit.in (pdd): New command.
8103
8104 2010-05-27  Jan Hubicka  <jh@suse.cz>
8105
8106         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8107         (update_caller_keys): Return early if there are no callers;
8108         only update fibheap when decresing the key.
8109         (update_callee_keys): Avoid recursion.
8110         (decide_inlining_of_small_functions): When badness does not match;
8111         re-insert into fibheap.
8112
8113 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
8114
8115         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8116         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8117         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8118         (ALL_HOST_OBJS): Now a union of the above two.
8119         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8120         all files in ALL_HOST_FRONTEND_OBJS.
8121         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8122
8123         * c-common.c: Pretend to be a backend file by undefining
8124         IN_GCC_FRONTEND (still need rtl.h here).
8125
8126 2010-05-27  Jan Hubicka  <jh@suse.cz>
8127
8128         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8129         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8130
8131 2010-05-27  Jan Hubicka  <jh@suse.cz>
8132
8133         * sched-ebb.c: Rename struct deps to struct deps_desc.
8134         * ddg.c: Likewise.
8135         * sel-sched-ir.c: Likewise.
8136         * sched-deps.c: Likewise.
8137         * sched-int.h: Likewise.
8138         * sched-rgn.c: Likewise.
8139
8140 2010-05-27  Jon Beniston  <jon@beniston.com>
8141
8142         PR 43726
8143         * config/lm32/lm32.h: Remove definition of
8144         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8145
8146 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8147
8148         PR lto/44230
8149         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8150
8151 2010-05-27  Richard Guenther  <rguenther@suse.de>
8152
8153         PR tree-optimization/44284
8154         * tree-vect-stmts.c (vectorizable_assignment): Handle
8155         sign-changing conversions as simple copy.
8156
8157 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8158
8159         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8160         Bionic C library.
8161         (__gthread_active_p): Check for pthread_create if compiling against
8162         Bionic C library.
8163
8164 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8165
8166         Support compilation for Android platform.  Reimplement -mandroid.
8167
8168         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8169         (*android*): Set ANDROID_DEFAULT.
8170         (arm*-*-linux*): Include linux-android.h.
8171         (arm*-*-eabi*): Don't include previous -mandroid implementation.
8172         * config/arm/eabi.h: Remove, move Android-specific parts ...
8173         * config/linux-android.h: ... here.  New file.
8174         * config/arm/eabi.opt: Rename to ...
8175         * config/linux-android.opt: ... this.
8176         (mandroid): Allow -mno-android option.  Initialize based on
8177         ANDROID_DEFAULT.
8178         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8179         Move logic to corresponding LINUX_TARGET_* macros.
8180         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8181         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8182         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8183         Android definitions.
8184         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8185         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8186         Document.
8187
8188 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8189
8190         Add support for Bionic C library
8191
8192         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8193         macro.
8194         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8195         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8196
8197         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8198         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8199         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8200         to support multiple C libraries.  Handle Bionic.
8201         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8202         (BIONIC_DYNAMIC_LINKER64): Define.
8203         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8204         Update.
8205         (TARGET_HAS_SINCOS): Enable for Bionic.
8206
8207         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
8208         the last option specified on command line take effect.
8209         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8210         (mbionic): New.
8211         (mglibc, muclibc): Update.
8212
8213         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8214         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8215         DEFAULT_LIBC.
8216
8217         * doc/invoke.texi (-mglibc, -muclibc): Update.
8218         (-mbionic): Document.
8219
8220 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8221
8222         * c-common.h (c_register_addr_space): Add prototype.
8223         (ADDR_SPACE_KEYWORD): Remove.
8224         * c-common.c (c_register_addr_space): New function.
8225         (c_addr_space_name): Reimplement.
8226         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8227
8228         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8229         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8230
8231         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8232         Remove TARGET_ADDR_SPACE_KEYWORDS.
8233
8234 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
8235
8236         * input.c: New file.
8237         * input.h (main_input_filename): Move declaration to toplev.h.
8238         * toplev.c (input_location, line_table): Move to input.c
8239         * toplev.h (main_input_filename): Move declaration from input.h.
8240         * tree.c (expand_location): Move to input.c.
8241         * Makefile.in (OBJS-common): Add input.o.
8242         (input.o): Add dependencies.
8243
8244 2010-05-27  Richard Guenther  <rguenther@suse.de>
8245
8246         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8247         for non-existant files.
8248         (fork_execute): Mark args_name file as deleted.
8249
8250 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
8251
8252         PR bootstrp/44287
8253         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8254         (narrow_signed_type): Likewise.
8255
8256 2010-05-26  Jan Hubicka  <jh@suse.cz>
8257
8258         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8259         edge only when checking is enabled; check using former_clone_of;
8260         check inline clones too.
8261         (cgraph_materialize_clone): Record former_clone_of pointer.
8262         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8263         combining redirections; dump args_to_skip bitmap
8264         (cgraph_materialize_all_clones): Do no redirection here.
8265         * ipa-inline.c (inline_transform): Do redirection here.
8266         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
8267         cheking only).
8268
8269 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8270
8271         * config/avr/avr-c.c: Do not include regs.h.
8272         Include cpplib.h for cpp_define and tree.h for c-common.h.
8273         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
8274         * config/avr/t-avr: Fix dependencies for avr-c.o.
8275
8276 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8277
8278         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
8279         string instead of SYMBOL_REF rtx.
8280         * rtl.h (set_stack_check_libfunc): Move prototype from here...
8281         * libfuncs.h: ...to here.  Adjust for explow.c change.
8282
8283 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
8284
8285         * pretty-print.c: Don't include ggc.h.
8286         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
8287         (identifier_to_locale): Use them for allocation.
8288         * pretty-print.h (identifier_to_locale_alloc,
8289         identifier_to_locale_free): Declare.
8290         * toplev.c (alloc_for_identifier_to_locale): New.
8291         (general_init): Set identifier_to_locale_alloc and
8292         identifier_to_locale_free.
8293         * Makefile.in (pretty-print.o): Update dependencies.
8294
8295 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8296
8297         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
8298         pointer types if they have different alignment or mode.
8299
8300 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
8301
8302         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8303         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8304         * config/sparc/sparc-protos.h (function_value): Remove declaration.
8305         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
8306         sparc_function_value_regno_p): New functions.
8307         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8308         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8309         (function_value): Rename to...
8310         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
8311         argument to 'outgoing'.
8312         (function_arg_record_value, function_arg_union_value,
8313         function_arg_vector_value): Update comment.
8314
8315 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8316
8317         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
8318         (fde_needed_for_eh_p): New predicate.
8319         (output_call_frame_info): Use it throughout to decide whether FDEs
8320         are needed for EH purpose.
8321         (dwarf2out_begin_prologue): Reorder assignments.
8322
8323 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8324
8325         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
8326         special case loop->header.
8327         (is_predicated): New.
8328         (if_convertible_loop_p): Call it.
8329
8330 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8331
8332         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8333         iterator in parameter.  Do not generate code during the analysis.
8334         (tree_if_convert_cond_stmt): Removed.
8335         (tree_if_convert_stmt): Removed.
8336         (predicate_bbs): New.
8337         (if_convertible_loop_p): Call predicate_bbs.
8338         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8339         now contains all the analysis part.
8340
8341 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8342
8343         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8344         statements in the analysis part.
8345         (tree_if_convert_stmt): Update comment.
8346         (remove_conditions_and_labels): New.
8347         (combine_blocks): Call remove_conditions_and_labels.
8348         (tree_if_conversion): Update comment.
8349
8350 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8351
8352         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8353         than 2 predecessors or more than 2 successors.
8354
8355 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8356
8357         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8358         of loops in which the data dependence analysis fails.
8359
8360 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8361
8362         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8363         CDI_POST_DOMINATORS.
8364         (tree_if_conversion): Same.
8365
8366 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8367
8368         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8369
8370 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8371
8372         * tree-if-conv.c: Update copyright years.  Fix comments.
8373         Fix indentation.
8374
8375 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
8376
8377         * builtin-types.def (BT_INT128): New primitive type.
8378         (BT_UINT128): Likewise.
8379         * c-common.c (c_common_r): Add __int128 keyword.
8380         (c_common_type_for_size): Handle __int128.
8381         (c_common_type_for_mode): Likewise.
8382         (c_common_signed_or_unsigned_type): Likewise.
8383         (c_common_nodes_and_builtins): Add builtin type
8384         if target supports 128-bit integer scalar.
8385         * c-common.h (enum rid): Add RID_INT128.
8386         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8387         if target supports 128-bit integer scalar.
8388         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8389         (finish_declspecs): Likewise.
8390         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8391         (c_token_starts_declspecs): Likewise.
8392         (c_parser_declspecs): Likewise.
8393         (c_parser_attributes): Likewise.
8394         (c_parser_objc_selector): Likewise.
8395         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8396         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8397         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8398         * tree.c (make_or_reuse_type): Likewise.
8399         (make_unsigned_type): Likewise.
8400         (build_common_tree_nodes_2): Likewise.
8401         * tree.h (enum integer_type_kind): Add itk_int128 and
8402         itk_unsigned_int128.
8403         (int128_integer_type_node): New define.
8404         (int128_unsigned_type_node): New define.
8405         * doc/extend.texi: Add documentation about __int128 type.
8406
8407 2010-05-26  Richard Guenther  <rguenther@suse.de>
8408
8409         * tree-ssa-sccvn.c (copy_nary): Adjust.
8410         (copy_phis): Rename to ...
8411         (copy_phi): ... this.  Adjust.
8412         (copy_references): Rename to ...
8413         (copy_reference): ... this.  Adjust.
8414         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
8415         result into the valid table.
8416
8417 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8418
8419         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
8420         insn-config.h, insn-codes.h, recog.h, and optabs.h.
8421
8422 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8423
8424         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
8425
8426 2010-05-26  Richard Guenther  <rguenther@suse.de>
8427
8428         * opts.c (common_handle_option): Handle OPT_Ofast.
8429
8430 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
8431
8432         * diagnostic.c: Don't include opts.h.
8433         (permissive_error_option): Define.
8434         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
8435         for classify_diagnostic.  Don't use memset for
8436         classify_diagnostic.  Initialize new and recently added fields.
8437         (diagnostic_classify_diagnostic): Use context->n_opts instead of
8438         N_OPTS.
8439         (diagnostic_report_diagnostic): Pass context parameter to
8440         diagnostic_report_warnings_p.  Use option_enabled and option_name
8441         hooks from context.
8442         (emit_diagnostic): Use permissive_error_option.
8443         (permerror): Likewise.
8444         * diagnostic.h: Don't include options.h.
8445         (struct diagnostic_context): Add n_opts, opt_permissive,
8446         inhibit_warnings, warn_system_headers, option_enabled and
8447         option_name fields.  Change classify_diagnostic to a pointer.
8448         * opts-diagnostic.h: New file.
8449         * opts.c: Include opts-diagnostic.h.
8450         (common_handle_option): Set global_dc fields for -Wfatal-errors,
8451         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
8452         (option_name): New function.
8453         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
8454         (c_common_handle_option): Set global_dc->permissive for
8455         -fpermissive.
8456         * c-common.c (c_cpp_error): Save and restore
8457         global_dc->warn_system_headers, not variable warn_system_headers.
8458         * toplev.c: Include opts-diagnostic.h.
8459         (general_init): Update call to diagnostic_initialize.  Set
8460         global_dc->show_column, global_dc->option_enabled and
8461         global_dc->option_name.
8462         (process_options): Don't set global_dc fields here.
8463         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
8464         (diagnostic.o, opts.o, toplev.o): Update dependencies.
8465
8466 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
8467
8468         * config/picochip/picochip.md (movsi): Split a movsi from a
8469         const after reload.
8470
8471 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8472
8473         * ggc-zone.c: Update copyright year.
8474         (poison_region): Mark memory for Valgrind as undefined before
8475         memset () call and inaccessible afterwards.
8476         (ggc_pch_total_size): Change type of i to int.
8477
8478 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8479
8480         * ggc-common.c (ggc_free_overhead): Allow empty slot.
8481
8482 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8483
8484         * ggc-common.c: Update copyright year.
8485         (ggc_rlimit_bound): Remove prototype.  Compile only if
8486         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
8487         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
8488         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
8489         (ggc_min_heapsize_heuristic): Likewise.
8490
8491 2010-05-26  Richard Guenther  <rguenther@suse.de>
8492
8493         PR rtl-optimization/44164
8494         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
8495         no-common access-path disambiguation.
8496         (indirect_ref_may_alias_decl_p): Adjust.
8497         (indirect_refs_may_alias_p): Likewise.
8498         (refs_may_alias_p_1): Likewise.
8499
8500 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8501
8502         * c-typeck.c: Do not include expr.h.
8503
8504 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8505
8506         * rtl.h (decl_default_tls_model): Move prototype from here...
8507         * output.h: ...to here.
8508         * c-decl.c: Do not include rtl.h.
8509         * c-pragma.c: Likewise.
8510         * c-parser.c: Likewise.
8511         * c-gimplify.c: Likewise.  And also not hard-reg-set.
8512         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
8513         FIXME note for it.  Add a FIXME note for expr.h.
8514         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
8515         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
8516         defined.
8517
8518 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
8519
8520         PR target/44199
8521         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
8522         or total_size is larger than red zone size for non-V4 ABI, emit a
8523         stack_tie resp. frame_tie insn before stack pointer restore.
8524         * config/rs6000/rs6000.md (frame_tie): New insn.
8525
8526 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8527
8528         * function.h (struct function): Add can_throw_non_call_exceptions bit.
8529         * lto-streamer-in.c (input_function): Stream it in.
8530         * lto-streamer-out.c (output_function): Stream it out.
8531         * function.c (allocate_struct_function): Set it.
8532         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
8533         for flag_non_call_exceptions.
8534         * cfgbuild.c (control_flow_insn_p): Likewise.
8535         (make_edges): Likewise.
8536         * cfgexpand.c (expand_stack_alignment): Likewise.
8537         * combine.c (distribute_notes): Likewise.
8538         * cse.c (cse_extended_basic_block): Likewise.
8539         * except.c (insn_could_throw_p): Likewise.
8540         * gcse.c (simple_mem): Likewise.
8541         * ipa-pure-const.c (check_call): Likewise.
8542         (check_stmt ): Likewise.
8543         * lower-subreg.c (lower-subreg.c): Likewise.
8544         * optabs.c (emit_libcall_block): Likewise.
8545         (prepare_cmp_insn): Likewise.
8546         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
8547         * postreload.c (rest_of_handle_postreload): Likewise.
8548         * reload1.c (reload_as_needed): Likewise.
8549         (emit_input_reload_insns): Likewise.
8550         (emit_output_reload_insns): Likewise.
8551         (fixup_abnormal_edges): Likewise.
8552         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
8553         * store-motion.c (find_moveable_store): Likewise.
8554         * tree-eh.c (stmt_could_throw_p): Likewise.
8555         (tree_could_throw_p): Likewise.
8556         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8557         * config/arm/arm.c (arm_expand_prologue): Likewise.
8558         (thumb1_expand_prologue): Likewise.
8559         * config/rx/rx.md (cbranchsf4): Likewise.
8560         (cmpsf): Likewise.
8561         * config/s390/s390.c (s390_emit_prologue): Likewise.
8562         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
8563         (inline_forbidden_into_p): New predicate.
8564         (expand_call_inline): Use it to forbid inlining.
8565         (tree_can_inline_p): Likewise.
8566
8567 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8568
8569         * config/i386/i386-c.c: Do not include rtl.h.
8570         * config/i386/t-i386: Update dependencies.
8571
8572 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8573
8574         * attribs.c: Do not include rtl.h.
8575         * Makefile.in: Update dependencies.
8576
8577 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
8578
8579         * double-int.h (double_int_and): New.
8580         * combine.c (try_combine): Clean up, use double_int_* and
8581         immed_double_int_const functions.
8582
8583 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8584
8585         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
8586         stderr to /dev/null instead of grep -q.
8587         * configure: Regenerate.
8588
8589 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8590
8591         * Makefile.in (EXCEPT_H): Fix typo.
8592
8593 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
8594
8595         * ira-build.c (update_conflict_hard_reg_costs): New.
8596         (ira_build): Call update_conflict_hard_reg_costs.
8597
8598 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
8599
8600         PR debug/41371
8601         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
8602         ENABLE_CHECKING.
8603         (intersect_loc_chains): Walk the s2var's loc_chain together
8604         with s1node chain as long as the locations are equal, don't
8605         call find_loc_in_1pdv in that case.
8606
8607         PR debug/42801
8608         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
8609         (copy_bind_expr): ... instead of here.
8610         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
8611         if the block hasn't been remapped.
8612         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
8613         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
8614
8615 2010-05-25  Richard Guenther  <rguenther@suse.de>
8616
8617         PR middle-end/44069
8618         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
8619         out-of-bounds array accesses.
8620
8621 2010-05-25  Richard Guenther  <rguenther@suse.de>
8622
8623         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
8624         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
8625         (run_gcc): Re-organize to make cleanup easier.
8626
8627 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8628
8629         * config/s390/s390.c (optimization_options): Fix and move the
8630         flag_prefetch_loop_arrays override ...
8631         (override_options): ... here.
8632
8633 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
8634
8635         * diagnostic.c: Don't include plugin.h.
8636         (diagnostic_report_diagnostic): Don't handle plugins specially
8637         here.  Pass context to internal_error callback.
8638         * diagnostic.h (struct diagnostic_context): Add context parameter
8639         to internal_error callback.
8640         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8641         * plugin.h (struct diagnostic_context): Declare.
8642         (warn_if_plugins, plugins_internal_error_function): Declare.
8643         * toplev.c (general_init): Set global_dc->internal_error.
8644         * Makefile.in (diagnostic.o): Update dependencies.
8645
8646 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
8647
8648         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8649         * config/rs6000/t-darwin64: New.
8650         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8651         build crt2.
8652
8653 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
8654
8655         PR 44203
8656         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8657         match the original (and intended) behaviour before r159557.  This
8658         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8659         in two ways.
8660
8661 2010-05-25  Richard Guenther  <rguenther@suse.de>
8662
8663         * doc/invoke.texi: Document -Ofast.
8664         * target.h (struct gcc_target): Add handle_ofast.
8665         * target-def.h (TARGET_HANDLE_OFAST): Add.
8666         (TARGET_INITIALIZER): Adjust.
8667         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
8668         * common.opt (Ofast): Add.
8669
8670 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
8671
8672         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8673         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8674
8675 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
8676
8677         PR target/43610
8678         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
8679         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
8680         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
8681         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
8682
8683 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
8684
8685         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
8686         DW_OP_minus with negated offset instead of DW_OP_plus.
8687         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
8688
8689 2010-05-25  Wei Guozhi  <carrot@google.com>
8690
8691         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
8692         tst instruction and a new alternative.
8693         * config/arm/constraints.md (Pu): New constraint.
8694
8695 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
8696
8697         * function.c (assign_stack_local_1): Initialize variable
8698         to avoid warning when bootstrapping at -O3.
8699
8700 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
8701
8702         * configure.ac (all_lang_makefiles): Remove everything related to it.
8703         * configure: Regenerate.
8704         * Makefile.in: Fix reference to ada Make-lang.in.
8705         Remove support for LANG_MAKEFILES.
8706
8707 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
8708             Sandra Loosemore  <sandra@codesourcery.com>
8709
8710         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
8711         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
8712         description.  Add arm_neon_fp16_ok.
8713         (Add Options): Add arm_neon and arm_neon_fp16.
8714
8715 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
8716
8717         * diagnostic.c: Don't include flags.h.
8718         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
8719         context parameters.  Check flags in the context passed as a parameter.
8720         (diagnostic_build_prefix): Add context parameter.  Check
8721         show_column flag in context.
8722         (diagnostic_action_after_output): Check fatal_errors flag in context.
8723         (diagnostic_report_current_module): Check show_column flag in context.
8724         (default_diagnostic_starter): Update call to
8725         diagnostic_build_prefix.
8726         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
8727         (emit_diagnostic): Pass context to permissive_error_kind.
8728         (permerror): Pass context to permissive_error_kind.
8729         * diagnostic.h (struct diagnostic_context): Add show_column,
8730         pedantic_errors, permissive and fatal_errors fields.
8731         (diagnostic_build_prefix): Update prototype.
8732         * langhooks.c
8733         * toplev.c (process_options): Set flags in global_dc from
8734         flag_show_column, flag_pedantic_errors, flag_permissive,
8735         flag_fatal_errors.
8736         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8737         to diagnostic_build_prefix.
8738         * Makefile.in (diagnostic.o): Update dependencies.
8739
8740 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8741
8742         * config/i386/ia32intrin.h (__crc32q): Define only if
8743         __SSE4_2__ is defined.
8744
8745 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
8746
8747         PR target/44132
8748         PR middle-end/43602
8749         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8750         DECL_VISIBILITY_SPECIFIED.
8751         (emutls_decl): Set DECL_PRESERVE_P and copy
8752         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8753         (emutls_finalize_control_var): New callback.
8754         (emutls_finish): Finalize emutls control variables.
8755         * toplev.c (compile_file): Move the call to emutls_finish ()
8756         before varpool_assemble_pending_decls ().
8757
8758 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
8759
8760         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8761         added to the preprocessor condition.
8762
8763 2010-05-24  Paul Brook  <paul@codesourcery.com>
8764
8765         * gengtype-lex.l: Add HARD_REG_SET.
8766         * expr.c (expand_expr_real_1): Record writes to hard registers.
8767         * function.c (rtl_data): Add asm_clobbers.
8768         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8769         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8770         Use crtl->asm_clobbers.
8771
8772 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8773
8774         * doc/makefile.texi (Makefile): Mention stages 'profile'
8775         and 'feedback' for profiledbootstrap.
8776
8777 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8778
8779         PR target/44245
8780         * config/i386/i386.c (def_builtin): Properly check
8781         OPTION_MASK_ISA_64BIT.
8782
8783 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
8784
8785         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8786         typedefs with different but compatible types.  Allow duplicate
8787         typedefs with the same type except for pedantic non-C1X, but give
8788         warning for variably modified types.
8789         * c-typeck.c (tagged_types_tu_compatible_p,
8790         function_types_compatible_p, type_lists_compatible_p,
8791         comptypes_internal): Add parameter different_types_p; set
8792         *different_types_p for different but compatible types.  All
8793         callers changed.
8794         (comptypes_check_different_types): New.
8795         * c-tree.h (comptypes_check_different_types): Declare.
8796
8797 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
8798
8799         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
8800         * jump.c: Include basic-block.h.
8801         * profile.c: Likewise.
8802         * tree-profile.c: Likewise.
8803         * coverage.c: Likewise.
8804         * basic-block.h (optimize_function_for_size_p): Move to function.h.
8805         (optimize_function_for_speed_p): Likewise.
8806         * function.h (optimize_function_for_size_p,
8807         optimize_function_for_speed_p): Moved here from basic-block.h.
8808         * Makefile.in: Update dependencies.
8809
8810 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8811
8812         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8813         before calling make; allow override through $MAKE.
8814         * doc/invoke.texi (Optimize Options): Document override.
8815
8816 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
8817
8818         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8819         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8820         (rs6000_mode_dependent_address_ptr): Make static.
8821         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8822         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8823         Remove.
8824
8825 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
8826
8827         PR target/43869
8828         * config/i386/i386.c: Make sure that the correct regparm is passed.
8829
8830 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
8831
8832         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8833         * sbitmap.c: ...to here to internalize sbitmap element access.
8834         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8835         Explain why basic-block.h is included.
8836         * function.h: Include tm.h for CUMULATIVE_ARGS.
8837         * Makefile.in: Update dependencies.
8838
8839 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
8840
8841         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8842         New core types.
8843         * sbitmap.h (struct sbitmap_def): Do not typedef here.
8844         * sbitmap.c: Include sbitmap.h.
8845         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8846         hard-reg-set.h.  Split everything related to regsets out from here...
8847         * regset.h: ...to here.  New file.
8848         * df.h: Include regset.h and sbitmap.h.
8849         * tree-flow.h: Likewise.
8850         * cfgloop.h: Likewise.
8851         * except.h: Do not include sbitmap.h.  Include hashtab.h.
8852         * cgraph.h: Include vec.h and function.h.
8853         * reload.h (struct insn_chain): Change types of live_throughout
8854         and dead_or_set from regset_head to bitmap_head.
8855         (compute_use_by_pseudos): Be defined also if regset.h is not included.
8856         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8857         spilled_regs from regset_head to bitmap_head to avoid dependency
8858         in regset.h.
8859         * sel-sched-ir.h: Include regset.h.
8860         * reload.c: Include df.h before reload.h.
8861         * caller-save.c: Likewise.
8862         * reload1.c: Likewise.
8863         * ira.c: Likewise.
8864         (mark_elimination): Update type of r to bitmap, consistent with
8865         DF_LR_IN.
8866         * dominance.c: Include bitmap.h.
8867         * modulo-sched.c: Include df.h.
8868         * cfganal.c: Include bitmap.h and sbitmap.h.
8869         * cfgbuild.c: Include sbitmap.h.
8870         * lcm.c: Include sbitmap.h.
8871         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8872         * domwalk.c: Include sbitmap.h, exclude ggc.h.
8873         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8874         * cselib.c: Include bitmap.h.
8875         * tree-optimize.c: Include regset.h.
8876         * stmt.c: Include bitmap.h.
8877         * Makefile.in: Update dependencies.
8878
8879 2010-05-22  Jan Hubicka  <jh@suse.cz>
8880
8881         * cgraph.h (struct varpool_node): Add same_comdat_group.
8882         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8883         pointer.
8884         (output_varpool): Update call of lto_output_varpool_node.
8885         (input_varpool): Read same_comdat_group pointer.
8886         (input_varpool_1): Fixup same_comdat_group pointer.
8887         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8888         group is needed, all are.
8889         * varpool.c (varpool_remove_node): Remove node from same comdat group
8890         linklist too.
8891         (varpool_analyze_pending_decls): Walk same comdat groups.
8892
8893 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
8894
8895         * rtl.h (union rtunion_def): Remove rt_bit member.
8896         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8897         * print-rtl (print_rtx): Do not print the member.
8898         * gengtype.c (adjust_field_rtx_def): Do not handle it.
8899         * gengenrtl.c (type_from_format): Likewise.
8900         (accessor_from_format): Likewise.
8901
8902 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
8903
8904         * dbgcnt.c: Include toplev.h instead of errors.h.
8905         * ira-emit.c: Don't include errors.h.
8906         * ira.c: Include toplev.h instead of errors.h.
8907         * lto-compress.c: Include toplev.h instead of errors.h.
8908         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8909         ira.o, dbgcnt.o): Update dependencies.
8910
8911 2010-05-22  Richard Guenther  <rguenther@suse.de>
8912
8913         * gimple.c (gimple_types_compatible_p): Check type qualifications
8914         before merging pointer to complete and pointer to incomplete type.
8915         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8916         we use our own resolution algorithm.  The gold linker plugin
8917         doesn't do the job we want it to do here.
8918
8919 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
8920
8921         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8922         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8923         (sparc_mode_dependent_address_p): New function.
8924
8925 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8926
8927         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8928
8929         * timevar.c: Do not include any core headers.
8930         (timevar_print): De-i18n-ize.
8931         (print_time): Likewise.
8932         * timevar.h (timevar_push, timevar_pop): Make inline functions.
8933
8934 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
8935
8936         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8937         langhooks-def.h.
8938         (diagnostic_initialize): Initialize x_data not last_function.
8939         (diagnostic_report_current_function): Move to tree-diagnostic.c.
8940         (default_diagnostic_starter): Call
8941         diagnostic_report_current_module not
8942         diagnostic_report_current_function.
8943         (diagnostic_report_diagnostic): Initialize x_data not
8944         abstract_origin.
8945         (verbatim): Likewise.
8946         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8947         x_data.
8948         (struct diagnostic_context): Change last_function to x_data.
8949         (diagnostic_auxiliary_data): Replace with
8950         diagnostic_context_auxiliary_data and
8951         diagnostic_info_auxiliary_data.
8952         (diagnostic_last_function_changed, diagnostic_set_last_function,
8953         diagnostic_report_current_function): Move to tree-diagnostic.h.
8954         (print_declaration, dump_generic_node, print_generic_stmt,
8955         print_generic_stmt_indented, print_generic_expr,
8956         print_generic_decl, debug_c_tree, dump_omp_clauses,
8957         print_call_name, debug_generic_expr, debug_generic_stmt,
8958         debug_tree_chain, default_tree_printer): Move to
8959         tree-pretty-print.h.
8960         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8961         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8962         gimple-pretty-print.h.
8963         * pretty-print.c: Don't include tree.h
8964         (pp_base_format): Don't handle %K here.
8965         (pp_base_tree_identifier): Move to tree-pretty-print.c.
8966         * pretty-print.h (text_info): Change abstract_origin to x_data.
8967         (pp_tree_identifier, pp_unsupported_tree,
8968         pp_base_tree_identifier): Move to tree-pretty-print.h.
8969         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8970         tree-pretty-print.h: New files.
8971         * tree-pretty-print.c: Include tree-pretty-print.h.
8972         (percent_K_format): New.  Moved from pretty-print.c.
8973         (pp_base_tree_identifier): Move from pretty-print.c.
8974         * c-objc-common.c: Include tree-pretty-print.h.
8975         (c_tree_printer): Handle %K here.
8976         * langhooks.c: Include tree-diagnostic.h.
8977         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8978         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8979         (default_tree_printer): Handle %K using percent_K_format.
8980         (general_init): Use default_tree_diagnostic_starter.
8981         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8982         (free_lang_data): Use default_tree_diagnostic_starter.
8983         * c-pretty-print.c: Include tree-pretty-print.h.
8984         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8985         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8986         * dwarf2out.c: Include tree-pretty-print.h.
8987         * except.c: Include tree-pretty-print.h.
8988         * gimple-pretty-print.c: Include tree-pretty-print.h and
8989         gimple-pretty-print.h.
8990         * gimplify.c: Include tree-pretty-print.h.
8991         * graphite-poly.c: Include tree-pretty-print.h and
8992         gimple-pretty-print.h.
8993         * ipa-cp.c: Include tree-pretty-print.h.
8994         * ipa-inline.c: Include gimple-pretty-print.h.
8995         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8996         * ipa-pure-const.c: Include gimple-pretty-print.h.
8997         * ipa-struct-reorg.c: Include tree-pretty-print.h and
8998         gimple-pretty-print.h.
8999         * ipa-type-escape.c: Include tree-pretty-print.h.
9000         * print-rtl.c: Include tree-pretty-print.h.
9001         * print-tree.c: Include gimple-pretty-print.h.
9002         * sese.c: Include tree-pretty-print.h.
9003         * tree-affine.c: Include tree-pretty-print.h.
9004         * tree-browser.c: Include tree-pretty-print.h.
9005         * tree-call-cdce.c: Include gimple-pretty-print.h.
9006         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9007         * tree-chrec.c: Include tree-pretty-print.h.
9008         * tree-data-ref.c: Include tree-pretty-print.h and
9009         gimple-pretty-print.h.
9010         * tree-dfa.c: Include tree-pretty-print.h.
9011         * tree-if-conv.c: Include tree-pretty-print.h and
9012         gimple-pretty-print.h.
9013         * tree-inline.c: Include tree-pretty-print.h.
9014         * tree-into-ssa.c: Include tree-pretty-print.h and
9015         gimple-pretty-print.h.
9016         * tree-nrv.c: Include tree-pretty-print.h.
9017         * tree-object-size.c: Include tree-pretty-print.h and
9018         gimple-pretty-print.h.
9019         * tree-outof-ssa.c: Include tree-pretty-print.h and
9020         gimple-pretty-print.h.
9021         * tree-parloops.c: Include tree-pretty-print.h and
9022         gimple-pretty-print.h.
9023         * tree-predcom.c: Include tree-pretty-print.h and
9024         gimple-pretty-print.h.
9025         * tree-scalar-evolution.c: Include tree-pretty-print.h and
9026         gimple-pretty-print.h.
9027         * tree-sra.c: Include tree-pretty-print.h.
9028         * tree-ssa-address.c: Include tree-pretty-print.h.
9029         * tree-ssa-alias.c: Include tree-pretty-print.h.
9030         * tree-ssa-ccp.c: Include tree-pretty-print.h and
9031         gimple-pretty-print.h.
9032         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
9033         * tree-ssa-copy.c: Include tree-pretty-print.h and
9034         gimple-pretty-print.h.
9035         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
9036         * tree-ssa-dce.c: Include tree-pretty-print.h and
9037         gimple-pretty-print.h.
9038         * tree-ssa-dom.c: Include tree-pretty-print.h and
9039         gimple-pretty-print.h.
9040         * tree-ssa-dse.c: Include gimple-pretty-print.h.
9041         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
9042         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
9043         * tree-ssa-live.c: Include tree-pretty-print.h and
9044         gimple-pretty-print.h.
9045         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
9046         gimple-pretty-print.h.
9047         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
9048         gimple-pretty-print.h.
9049         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
9050         gimple-pretty-print.h.
9051         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9052         gimple-pretty-print.h.
9053         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9054         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9055         * tree-ssa-operands.c: Include tree-pretty-print.h and
9056         gimple-pretty-print.h.
9057         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9058         gimple-pretty-print.h.
9059         * tree-ssa-pre.c: Include tree-pretty-print.h and
9060         gimple-pretty-print.h.
9061         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9062         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9063         gimple-pretty-print.h.
9064         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9065         gimple-pretty-print.h.
9066         * tree-ssa-sink.c: Include gimple-pretty-print.h.
9067         * tree-ssa-ter.c: Include tree-pretty-print.h and
9068         gimple-pretty-print.h.
9069         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9070         * tree-ssa.c: Include tree-pretty-print.h and
9071         gimple-pretty-print.h.
9072         * tree-stdarg.c: Include gimple-pretty-print.h.
9073         * tree-switch-conversion.c: Include gimple-pretty-print.h.
9074         * tree-tailcall.c: Include tree-pretty-print.h and
9075         gimple-pretty-print.h.
9076         * tree-vect-data-refs.c: Include tree-pretty-print.h and
9077         gimple-pretty-print.h.
9078         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9079         gimple-pretty-print.h.
9080         * tree-vect-loop.c: Include tree-pretty-print.h and
9081         gimple-pretty-print.h.
9082         * tree-vect-patterns.c: Include gimple-pretty-print.h.
9083         * tree-vect-slp.c: Include tree-pretty-print.h and
9084         gimple-pretty-print.h.
9085         * tree-vect-stmts.c: Include tree-pretty-print.h and
9086         gimple-pretty-print.h.
9087         * tree-vectorizer.c: Include tree-pretty-print.h.
9088         * tree-vrp.c: Include tree-pretty-print.h and
9089         gimple-pretty-print.h.
9090         * value-prof.c: Include tree-pretty-print.h and
9091         gimple-pretty-print.h.
9092         * var-tracking.c: Include tree-pretty-print.h.
9093         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9094         (tree-diagnostic.o): New dependencies.
9095         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9096         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9097         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9098         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9099         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9100         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9101         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9102         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9103         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9104         tree-ssa-address.o, tree-ssa-loop-niter.o,
9105         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9106         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9107         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9108         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9109         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9110         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9111         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9112         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9113         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9114         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9115         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9116         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9117         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9118         tree-switch-conversion.o, var-tracking.o, value-prof.o,
9119         cfgexpand.o, pretty-print.o): Update dependencies.
9120
9121 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
9122
9123         * tree-ssa-structalias.c: Remove tm_p.h from include.
9124
9125 2010-05-21  Jeff Law  <law@redhat.com>
9126
9127         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9128
9129 2010-05-21  Jason Merrill  <jason@redhat.com>
9130
9131         * tree-eh.c (cleanup_is_dead_in): New.
9132         (lower_try_finally): Don't generate a dead cleanup region.
9133         (lower_cleanup): Likewise.
9134
9135 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
9136
9137         PR debug/44223
9138         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9139         unchain each use from the cyclic next_regno_use chain first.
9140
9141 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9142
9143         * real: Do not include gmp.h, mpfr.h, and mpc.h.
9144         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9145         (real_value_negate, real_value_abs): New prototypes.
9146         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9147         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9148         new include file for interface between MPFR and REAL_VALUE_TYPE.
9149         * real.c: Include realmpfr.h.
9150         (real_arithmetic2): Remove legacy function.
9151         (real_value_negate): New.
9152         (real_value_abs): New.
9153         (mfpr_from_real, real_from_mpfr): Move from here...
9154         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9155         * builtins.c: Include realmpfr.h.
9156         * fold-const.c: Include realmpfr.h.
9157         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9158         (fold_negate_const): Likewise.
9159         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9160         * toplev.c: Include realmpfr.h.
9161         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9162         and real_value_negate.
9163         * fixed-value.c (check_real_for_fixed_mode): Likewise.
9164         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9165         (vfp3_const_double_index): Likewise.
9166         (arm_print_operand): Likewise.
9167         * Makefile.in: Update dependencies.
9168
9169 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9170
9171         * config/s390/s390.c (override_options): Increase the default
9172         of max-completely-peel-times.
9173
9174 2010-05-21  Julian Brown  <julian@codesourcery.com>
9175             Mark Mitchell  <mark@codesourcery.com>
9176
9177         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9178         sibling calls for Thumb-1.
9179         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9180         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9181         Thumb-2.
9182         (*call_insn, *call_value_insn): Don't use for Thumb-2.
9183         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9184         for Thumb-2.
9185         (return): New expander.
9186         (*arm_return): New name for ARM return insn.
9187         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9188
9189 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
9190
9191         * config.gcc (sparc64-*-rtems*): New target.
9192
9193 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
9194
9195         * tree.c (build_function_decl_skip_args): Fix grammar.
9196         (build_function_type_list_1): Fix typos, adjust formatting.
9197
9198 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
9199
9200         * tree.h: Include real.h and fixed-value.h as basic datatypes.
9201         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9202         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9203         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9204         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9205         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9206         tree-pretty-print.c, tree-loop-distribution.c,
9207         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9208         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9209         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9210         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9211         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9212         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9213         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9214         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9215         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9216         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9217         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9218         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9219         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9220         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9221         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9222         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9223         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9224         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9225         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9226         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9227         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9228         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9229         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9230         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9231         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9232         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9233         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9234         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9235         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9236         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9237         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9238         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9239         config/score/score7.c, config/score/score.c, config/arm/arm.c,
9240         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9241         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9242         config/bfin/bfin.c: Clean up redundant includes.
9243         * Makefile.in: Update accordingly.
9244
9245 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
9246
9247         PR middle-end/44204
9248         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9249         statement has no arguments.
9250
9251 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
9252
9253         PR/44139
9254         * varasm.c (emutls_decl): Merge attributes to new decl.
9255
9256 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9257
9258         PR middle-end/44101
9259         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9260         around the uniquized constructor if its type requires a conversion.
9261
9262 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
9263
9264         PR debug/44205
9265         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9266         at -O0 goto_locus of any of the incoming edges differs from
9267         goto_locus of outgoing edge, or gimple_location of any of the
9268         labels differs.
9269
9270 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
9271
9272         * ira.c (ira_non_ordered_class_hard_regs): Define.
9273         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
9274         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
9275         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
9276         cost of unaligned hard regs when allocating multi-reg pseudos.
9277
9278 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
9279
9280         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
9281         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
9282         for TARGET_NO_FLOAT.
9283         * config/mips/mips.c (mips_file_start): Expand conditional expression
9284         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
9285         (mips_override_options): Move -mno-float override -msoft-float and
9286         -mhard-float.
9287         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
9288         Condition(TARGET_SUPPORTS_NO_FLOAT).
9289         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
9290         __mips_no_float here.
9291         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
9292         (TARGET_SUPPORTS_NO_FLOAT): Define.
9293         * config/mips/sdemtk.opt: Delete.
9294
9295 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
9296
9297         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
9298
9299 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
9300
9301         PR target/43733
9302         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
9303         * configure: Regenerate.
9304         * config.in: Regenerate.
9305         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
9306         instead of sahf only for 64bit targets.
9307
9308 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
9309
9310         PR debug/44178
9311         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
9312         setup_ref_regs for DEBUG_INSNs.
9313
9314 2010-05-20  Jan Hubicka  <jh@suse.cz>
9315
9316         PR middle-end/44197
9317         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
9318
9319 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
9320
9321         PR bootstrap/43870
9322         * df-scan.c (df_ref_compare): Stabilize sort.
9323
9324 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
9325
9326         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
9327         argument.  Don't use DW_OP_piece if offset is non-zero,
9328         put offset into second DW_OP_bit_piece argument.
9329         (dw_sra_loc_expr): Adjust callers.  For memory expressions
9330         compute offset.
9331
9332 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
9333
9334         PR target/44202
9335         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9336         settings for 16-bit-constant "addo" alternative.
9337
9338 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
9339
9340         * config/mips/mips-dsp.md (add<DSPV:mode>3,
9341         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9342
9343         PR target/43764
9344         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
9345         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9346         Use it.
9347
9348 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
9349
9350         * diagnostic.c (FLOAT, FFS): Don't undefine.
9351         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9352         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9353         include ordering.
9354
9355 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
9356
9357         * combine.c (propagate_for_debug): Call make_compound_operation
9358         on the source value.
9359         (try_combine): When implementing a split chosen by find_split_point,
9360         either copy i2src or set it to null.  Assert that i2src is not null
9361         before substituting into CALL_INSN_FUNCTION_USAGE.
9362
9363 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
9364
9365         * double-int.h (double_int_ior): New function.
9366         * tree.h (build_int_cst_wide_type): Remove.
9367         * tree.c (build_int_cst_wide_type): Remove.
9368         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9369         of build_int_cst_wide_type.
9370         * stor-layout.c (set_sizetype): (Ditto.).
9371         * dojump.c (do_jump): Use build_int_cstu instead of
9372         build_int_cst_wide_type.
9373
9374 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9375
9376         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9377         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9378         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9379         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9380         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
9381         propagate the 'data' argument to copy_tree_r.
9382         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9383         Propagate 'data' argument to walk_tree.
9384         (copy_if_shared): New function.
9385         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9386         (unmark_visited): New function.
9387         (unshare_body): Call copy_if_shared instead of doing it manually.
9388         (unvisit_body): Call unmark_visited instead of doing it manually.
9389
9390 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
9391
9392         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9393         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
9394         * hooks.c: Likewise.
9395         * target-def.h (TARGET_FOLD_BUILTIN): Define to
9396         hook_tree_tree_int_treep_bool_null.
9397         * target.h (struct gcc_target): Update signature of fold_builtin
9398         field.
9399         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9400         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9401         instead of the call expression.
9402         (fold_builtin_call_array): Pass n and argarray directly.
9403         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
9404         consing a list.
9405         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
9406         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
9407         `i' and use it in place of `arity'.
9408         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
9409         Dereference `args' directly.
9410         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
9411
9412 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9413
9414         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9415         3dnow, sse3, sse2.
9416         (Directives): Document optional dg-require-effective-target
9417         selector.
9418
9419 2010-05-19  Richard Guenther  <rguenther@suse.de>
9420
9421         PR lto/44196
9422         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
9423
9424 2010-05-19  Richard Guenther  <rguenther@suse.de>
9425
9426         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
9427         * common.opt (fwhopr=): New.
9428         * opts.c (common_handle_option): Handle OPT_fwhopr.
9429         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
9430         * collect2.c (main): Match -fwhopr*.
9431         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
9432         Execute ltrans stage in parallel when jobs is bigger than 1.
9433
9434 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9435
9436         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9437         pentiumpro on Solaris 8/x86 with Sun as.
9438         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
9439         hidden alias bug.
9440         (gcc_cv_as_ix86_quad): Check for .quad directive.
9441         * configure: Regenerate.
9442         * config.in: Regenerate.
9443         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
9444
9445 2010-05-19  Martin Jambor  <mjambor@suse.cz>
9446
9447         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
9448         also for indirect edges.  Actual printing moved...
9449         (ipa_print_node_jump_functions_for_edge): ...here.
9450         (ipa_compute_jump_functions): Renamed to
9451         ipa_compute_jump_functions_for_edge and made static.
9452         (ipa_compute_jump_functions): New function.
9453         (make_edge_direct_to_target): Check if the number of arguments on
9454         the newly direct edge is the same as the number of parametrs of
9455         the callee.
9456         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
9457         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
9458         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9459         analysis functions unconditionally, call the new
9460         ipa_analyze_params_uses on the node instead of every edge.
9461
9462 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
9463
9464         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
9465         to tree.
9466         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
9467         also checks for a constant int vs.  non-constant but
9468         loop-invariant steps.
9469         (find_or_create_group): Change the sort algorithm to only consider
9470         steps that are constant ints.
9471         (idx_analyze_ref): Adopt code to handle a tree instead of a
9472         HOST_WIDE_INT for step.
9473         (gather_memory_references_ref): Handle tree instead of int and be
9474         prepared to see a NULL_TREE.
9475         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
9476         prefetches if the step cannot be calculated at compile time.
9477         (issue_prefetch_ref): Issue prefetches for non-constant but
9478         loop-invariant steps.
9479
9480 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9481
9482         Revert:
9483         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9484
9485         * tree.h (build_call_list): Remove.
9486         * tree.c (build_call_list): Remove.
9487
9488 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9489
9490         * tree.h (build_call_list): Remove.
9491         * tree.c (build_call_list): Remove.
9492
9493 2010-05-18  Jan Hubicka  <jh@suse.cz>
9494
9495         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
9496
9497 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
9498
9499         PR rtl-optimization/43332
9500         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
9501
9502 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
9503
9504         * tree.h (build_int_cstu): Implement as static inline.
9505         * tree.c (build_int_cstu): Remove function.
9506         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
9507         sign extended.
9508
9509 2010-05-18  Richard Guenther  <rguenther@suse.de>
9510
9511         PR lto/44143
9512         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
9513         (debug): Initialize from -save-temps.
9514         (collect_execute): Print command-line when verbose.
9515         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
9516         for ltrans invocation.  Produce -dumpbase flag again.
9517         (process_args): Remove.
9518         (main): Simplify.
9519         * collect2.c (maybe_run_lto_and_relink): Only pass object
9520         files to lto-wrapper.
9521         * gcc.c (LINK_COMMAND_SPEC): Likewise.
9522
9523 2010-05-18  Jan Hubicka  <jh@suse.cz>
9524
9525         * opts.c (decode_options): Do not disable whopr at ipa_cp.
9526         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
9527
9528 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
9529
9530         PR lto/44184
9531         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
9532         in a GIMPLE_ASM.
9533         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
9534         in a GIMPLE_ASM.
9535
9536 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
9537
9538         PR debug/41371
9539         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
9540         rtx_equal_p inline.
9541
9542 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
9543
9544         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
9545         lto-macho as lto_binary_reader.
9546
9547         * darwin.c (darwin_asm_named_section): Do not add assembler comment
9548         after .section directive; just print it before the directive instead.
9549
9550 2010-05-17  Jan Hubicka  <jh@suse.cz>
9551
9552         * cgraph.c (cgraph_create_virtual_clone): Only check
9553         versionable_function_p when not in wpa and checking is enabled.
9554         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
9555         there are no more functions to materialize.
9556
9557 2010-05-17  Jan Hubicka  <jh@suse.cz>
9558
9559         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
9560         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
9561         New functions.
9562         (output_cgraph): Call output_cgraph_opt_summary.
9563         (input_cgrpah): Call input_cgraph_opt_summary.
9564         (output_cgraph_opt_summary_p, output_node_opt_summary,
9565         input_node_opt_summary, input_cgraph_opt_section): New functions.
9566         * lto-section-in.c (lto_section_name): Add cgraphopt.
9567         * tree-inline.c (tree_function_versioning): Handle parm_num.
9568         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
9569         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
9570
9571 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
9572
9573         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
9574         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
9575         the insn to prefetch ratio heuristic to loops with known trip count.
9576
9577 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
9578
9579         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
9580         (schedule_prefetches): Do not generate a prefetch if the unroll factor
9581         is far from what is required by the prefetch.
9582
9583 2010-05-17  Jan Hubicka  <jh@suse.cz>
9584
9585         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
9586         (ipcp_estimate_growth): Likewise.
9587         (ipcp_const_param_count): Likewise.
9588         (ipcp_insert_stage): Likewise.
9589         * ipa-prop.c (visit_load_for_mod_analysis): New function.
9590         (visit_store_addr_for_mod_analysis): Set used flag.
9591         (ipa_detect_param_modifications): Set used flag for SSE params;
9592         update use of walk_stmt_load_store_addr_ops.
9593         (ipa_print_node_params): Print used flag.
9594         (ipa_write_node_info): Stream used flag.
9595         (ipa_read_node_info): Likewise.
9596         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
9597         (ipa_is_param_used): New function.
9598         (lto_ipa_fixup_call_notes): Remove unused declaration.
9599
9600 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9601
9602         PR target/44074
9603         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
9604         * configure: Regenerate.
9605         * config.in: Regenerate.
9606         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
9607         !HAVE_AS_IX86_REP_LOCK_PREFIX.
9608         Don't emit whitespace.
9609         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
9610         (*rep_movsi): Likewise.
9611         (*rep_movsi_rex64): Likewise.
9612         (*rep_movqi): Likewise.
9613         (*rep_movqi_rex64): Likewise.
9614         (*rep_stosdi_rex64): Likewise.
9615         (*rep_stossi): Likewise.
9616         (*rep_stossi_rex64): Likewise.
9617         (*rep_stosqi): Likewise.
9618         (*rep_stosqi_rex64): Likewise.
9619         (*cmpstrnqi_nz_1): Use {%;} after repz.
9620         (*cmpstrnqi_nz_rex_1): Likewise.
9621         (*cmpstrnqi_1): Likewise.
9622         (*cmpstrnqi_rex_1): Likewise.
9623         (*strlenqi_1): Use {%;} after repnz.
9624         (*strlenqi_rex_1): Likewise.
9625         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
9626         (*sync_compare_and_swap<mode>): Likewise.
9627         (sync_double_compare_and_swap<mode>): Likewise.
9628         (*sync_double_compare_and_swapdi_pic): Likewise.
9629         (sync_old_add<mode>): Likewise.
9630         (sync_add<mode>): Likewise.
9631         (sync_sub<mode>): Likewise.
9632         (sync_<code><mode>): Likewise.
9633
9634 2010-05-17  Martin Jambor  <mjambor@suse.cz>
9635
9636         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9637         otr_token and polymorphic.
9638         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9639         (cgraph_clone_edge): Copy the above fields.
9640         * tree.c (get_binfo_at_offset): New function.
9641         * tree.h (get_binfo_at_offset): Declare.
9642         * ipa-prop.h (enum jump_func_type): Added known_type jump function
9643         type, reordered items, updated comments.
9644         (union jump_func_value): Added base_type field, reordered fields.
9645         (enum ipa_lattice_type): Moved down in the file.
9646         (struct ipa_param_descriptor): New field polymorphic.
9647         (ipa_is_param_polymorphic): New function.
9648         * ipa-prop.c: Include gimple.h and gimple-fold.h.
9649         (ipa_print_node_jump_functions): Print known type jump functions.
9650         (compute_complex_pass_through): Renamed to...
9651         (compute_complex_assign_jump_func): this.
9652         (compute_complex_ancestor_jump_func): New function.
9653         (compute_known_type_jump_func): Likewise.
9654         (compute_scalar_jump_functions): Create known type and complex ancestor
9655         jump functions.
9656         (ipa_note_param_call): New parameter polymorphic, set the corresponding
9657         flag in the call note accordingly.
9658         (ipa_analyze_call_uses): Renamed to...
9659         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
9660         variable var only in the block where it is used.
9661         (ipa_analyze_virtual_call_uses): New function.
9662         (ipa_analyze_call_uses): Likewise.
9663         (combine_known_type_and_ancestor_jfs): Likewise.
9664         (update_jump_functions_after_inlining): Implemented handling of a
9665         number of new jump function types combination.
9666         (print_edge_addition_message): Removed.
9667         (make_edge_direct_to_target): New function.
9668         (try_make_edge_direct_simple_call): Likewise.
9669         (try_make_edge_direct_virtual_call): Likewise.
9670         (update_call_notes_after_inlining): Renamed to...
9671         (update_indirect_edges_after_inlining): this.  Moved edge creation for
9672         indirect calls to try_make_edge_direct_simple_call, also calls
9673         try_make_edge_direct_virtual_call for virtual calls.
9674         (ipa_print_node_params): Changed the header message.
9675         (ipa_write_jump_function): Stream also known type jump functions.
9676         (ipa_read_jump_function): Likewise.
9677         (ipa_write_indirect_edge_info): Stream new fields in
9678         cgraph_indirect_call_info.
9679         (ipa_read_indirect_edge_info): Likewise.
9680         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
9681         GIMPLE_FOLD_H.
9682
9683 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9684
9685         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
9686
9687 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
9688
9689         * tree.h (CALL_EXPR_ARGS): Delete.
9690         (call_expr_arglist): Delete.
9691         * tree.c (call_expr_arglist): Delete.
9692         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
9693         targetm.fold_builtin.
9694         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
9695         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
9696         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
9697         arglist parameter.  Use CALL_EXPR_ARG.
9698         (picochip_expand_builtin_3op): Likewise.
9699         (picochip_expand_builtin_2opvoid): Likewise.
9700         (picochip_expand_array_get): Likewise.
9701         (picochip_expand_array_put): Likewise.
9702         (picochip_expand_array_testport): Likewise.
9703         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
9704         rather than arglist.
9705         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
9706         CALL_EXPR_ARGS.
9707         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
9708         than TREE_VALUE and TREE_CHAIN.
9709         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9710         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
9711         the arglist.
9712
9713 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
9714
9715         PR bootstrap/42347
9716         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
9717         to have no fallthru edge.
9718
9719         PR middle-end/44102
9720         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
9721         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
9722         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
9723         add BARRIER after previous bb if needed.
9724
9725 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
9726
9727         * tree.c (build_function_type_list_1): Remove bogus assert condition.
9728
9729 2010-05-17  Alan Modra  <amodra@gmail.com>
9730
9731         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
9732         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
9733         with copy_reg rtx param.
9734         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9735         Correct cases where code for ABI_V4 did not initialise the reg
9736         used to access frame.  Also leave frame_reg_rtx as sp for large
9737         frames that save no regs.
9738
9739 2010-05-17  Martin Jambor  <mjambor@suse.cz>
9740
9741         PR middle-end/44133
9742         * tree-sra.c (create_access_replacement): New parameter rename, mark
9743         the replaement for renaming only when it is true.
9744         (get_access_replacement): Pass true in the rename parameter of
9745         create_access_replacement.
9746         (get_unrenamed_access_replacement): New function.
9747         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9748         replacement declaration from it.
9749
9750 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
9751
9752         * function.c (try_fit_stack_local, add_frame_space): New static
9753         functions.
9754         (assign_stack_local_1): Use them.  Look for opportunities to use
9755         space previously wasted on alignment.
9756         * function.h (struct frame_space): New.
9757         (struct rtl_data): Add FRAME_SPACE_LIST member.
9758         * reload1.c (something_was_spilled): New static variable.
9759         (alter_reg): Set it.
9760         (reload): Test it in addition to testing if the frame size changed.
9761
9762 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
9763
9764         * config/s390/s390.c: Define sane prefetch settings and activate
9765         flag_prefetch_loop_arrays on -O3.
9766         * config/s390/s390.h: Declare that read can use write prefetch.
9767
9768 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
9769
9770         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9771         build.
9772
9773 2010-05-16  Jan Hubicka  <jh@suse.cz>
9774
9775         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9776         function body; do not check stdarg field of struct function.
9777
9778 2010-05-16  Jan Hubicka  <jh@suse.cz>
9779
9780         * cgraph.c (dump_cgraph_node): Dump versionable flag.
9781         * cgraph.h (cgraph_local_info): Add versionable flag.
9782         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9783         (ipcp_versionable_function_p): Use it.
9784         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9785         versionable flag.
9786
9787 2010-05-16  Jan Hubicka  <jh@suse.cz>
9788
9789         * cgraph.c (cgraph_clone_node): Take decl argument and insert
9790         clone into hash when it is different from orig.
9791         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9792         * cgraph.h (cgraph_clone_node): Update prototype.
9793         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9794         (lto_cgraph_encoder_delete): Delete body map.
9795         (lto_cgraph_encoder_size): Move to header.
9796         (lto_cgraph_encoder_encode_body_p,
9797         lto_set_cgraph_encoder_encode_body): New.
9798         (lto_output_node): Do not take written_decls argument; output clone_of
9799         pointer.
9800         (add_node_to): Add include_body_argument; call
9801         lto_set_cgraph_encoder_encode_body on master of the clone.
9802         (add_references): Update use of add_node_to.
9803         (compute_ltrans_boundary): Likewise.
9804         (output_cgraph): Do not create written_decls bitmap.
9805         (input_node): Take nodes argument; stream in clone_of correctly.
9806         (input_cgraph_1): Update use of input_node.
9807         * lto-streamer-out.c (lto_output): Use encoder info to decide
9808         what bodies to output.
9809         * ipa-inline.c (cgraph_clone_inlined_nodes,
9810         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9811         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9812         (lto_cgraph_encoder_size): Define here.
9813         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9814         Declare.
9815
9816 2010-05-16  Richard Guenther  <rguenther@suse.de>
9817
9818         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9819         -fipa-type-escape.
9820         * ipa-type-escape.c (gate_type_escape_vars): Run when
9821         -fipa-struct-reorg runs.
9822         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9823         * common.opt (fipa-type-escape): Remove.
9824
9825 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9826
9827         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9828         (decode_options): Likewise.
9829         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9830
9831 2010-05-16  Jan Hubicka  <jh@suse.cz>
9832
9833         * ipa.c (function_and_variable_visibility): Also bring local all
9834         aliases.
9835
9836 2010-05-16  Richard Guenther  <rguenther@suse.de>
9837
9838         * alias.c (nonoverlapping_memrefs_p): Remove use of
9839         IPA type-escape information.
9840
9841 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
9842
9843         * c-common.c (c_common_reswords): Add _Static_assert for C.
9844         * c-parser.c (c_token_starts_declaration,
9845         c_parser_next_token_starts_declaration,
9846         c_parser_static_assert_declaration_no_semi,
9847         c_parser_static_assert_declaration): New.
9848         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9849         Handle static assertions if static_assert_ok.
9850         (c_parser_external_declaration, c_parser_declaration_or_fndef,
9851         c_parser_compound_statement_nostart, c_parser_label,
9852         c_parser_for_statement, c_parser_objc_methodprotolist,
9853         c_parser_omp_for_loop): All callers of
9854         c_parser_declaration_or_fndef changed.
9855         (c_parser_struct_declaration): Handle static assertions.
9856         (c_parser_compound_statement_nostart): Use
9857         c_parser_next_token_starts_declaration and
9858         c_token_starts_declaration to detect start of declarations.
9859         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9860         Likewise.
9861
9862 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
9863
9864         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9865         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9866         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9867         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9868         (mmix_function_outgoing_value): Rename to...
9869         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9870         (mmix_function_value_regno_p): Make static.
9871         (mmix_libcall_value): New function.
9872         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9873         mmix_function_value_regno_p): Remove declaration.
9874
9875 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9876
9877         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9878         BUILT_IN_ALLOCA if stack checking is enabled.
9879
9880 2010-05-16  Richard Guenther  <rguenther@suse.de>
9881
9882         * var-tracking.c (vars_copy_1): Inline ...
9883         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9884         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
9885         (variable_merge_over_cur): Adjust.  Merge asserts.
9886         (variable_merge_over_src): Likewise.
9887         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9888         (variable_post_merge_new_vals): Merge asserts.
9889         (variable_post_merge_perm_vals): Likewise.
9890         (find_mem_expr_in_1pdv): Likewise.
9891         (dataflow_set_different_value): Remove.
9892         (onepart_variable_different_p): Merge asserts.
9893         (variable_different_p): Likewise.
9894         (dataflow_set_different_1): Inline ...
9895         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9896         (emit_notes_for_differences_1): Merge asserts.
9897
9898 2010-05-16  Richard Guenther  <rguenther@suse.de>
9899
9900         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9901         * optabs.c (libfunc_decl_hash): Likewise.
9902         * varasm.c (emutls_decl): Likewise.
9903
9904 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
9905
9906         * c-decl.c: Don't include gimple.h.
9907         (merge_decls): Do not copy gimple_body.
9908
9909 2010-05-15  Jason Merrill  <jason@redhat.com>
9910
9911         * c.opt: Add -fnothrow-opt.
9912
9913 2010-05-15  Jan Hubicka  <jh@suse.cz>
9914
9915         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9916         analyzed.
9917         * passes.c (ipa_write_summaries): Write all analyzed nodes.
9918
9919 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
9920
9921         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9922         * Makefile.in: Add it.
9923         Fix all other Makefile dependencies for changes below.
9924         * tree.h: Include it instead of defining VEC primitives here.
9925         * gimple.h: Likewise.
9926         * rtl.h: Likewise.
9927         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9928         * except.h: Include vecir.h, break dependence on tree.h.
9929
9930         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9931         Move from here...
9932         * tree-iterator.c: ...to here.
9933         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
9934
9935         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
9936         tm_p.h.
9937         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9938         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9939         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9940         tree-mudflap.h, and target.h.
9941         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9942         predict.h, tree-inline.h, gimple.h, and langhooks.h.
9943         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9944         Add FIXME for why gimple.h is still included (should be unnecessary
9945         since GCC 4.5 gimplification unit-at-a-time).
9946         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9947         * c-pragma.c: Add FIXME for why function.h needs to be included just
9948         for cfun, at front-end level.
9949         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9950         Do not include ggc.h, but include vecprim.h for VEC(char).
9951         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9952         Explain why target.h is included.
9953         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9954         Explain why gimple.h is included.
9955         * c-ppoutput.c: Do not include tm.h.
9956         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
9957         * c-parses.c: Explain why rtl.h is included, and that this (and only
9958         this) is also why tm.h must be included.
9959         Do not include except.h.
9960         * c-lang.c: Do not include ggc.h.
9961
9962 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
9963
9964         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9965
9966 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
9967
9968         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9969         unions by default if those structs and unions have no tags.  Do
9970         not condition anonymous struct and unions handling on flag_iso.
9971         Allow anonymous structs and unions for C1X.
9972         (finish_struct): Do not diagnose lack of named fields when
9973         anonymous structs and unions present for C1X.  Accept flexible
9974         array members in structure with anonymous structs or unions but no
9975         directly named fields.
9976         * doc/extend.texi (Unnamed Fields): Update.
9977
9978 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
9979
9980         * gimple.h (compare_field_offset): Rename into...
9981         (gimple_compare_field_offset): ...this.
9982         * gimple.c (compare_field_offset): Rename into...
9983         (gimple_compare_field_offset): ...this.  Compare the full access if
9984         the offset is self-referential.
9985         (gimple_types_compatible_p): Adjust for above renaming.
9986         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
9987         DECL_NONADDRESSABLE_P flag of fields before merging them.
9988
9989 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
9990
9991         * tree.h (ctor_to_list): Delete.
9992         * tree.c (ctor_to_list): Delete.
9993
9994 2010-05-15  Jan Hubicka  <jh@suse.cz>
9995
9996         * ipa-reference.c: Include toplev.h
9997         (is_proper_for_analysis): Only add to all_module_statics
9998         if it is allocated.
9999         (write_node_summary_p, stream_out_bitmap,
10000         ipa_reference_write_optimization_summary,
10001         ipa_reference_read_optimization_summary): New.
10002         (struct ipa_opt_pass_d pass_ipa_reference): Add
10003         optimization summary streaming.
10004         * lto-cgraph.c (referenced_from_this_partition_p,
10005         reachable_from_this_partition_p): New functions.
10006         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10007         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
10008         * opts.c (decode_options): Enable ipa_reference.
10009         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
10010         * lto-streamer.h (referenced_from_this_partition_p,
10011         reachable_from_this_partition_p): Declare.
10012
10013 2010-05-15  Richard Guenther  <rguenther@suse.de>
10014
10015         PR tree-optimization/44038
10016         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
10017         taking the address of a V_C_E of a constant.
10018
10019 2010-05-14  Jan Hubicka  <jh@suse.cz>
10020
10021         * tree.h (memory_identifier_string): Remove.
10022         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
10023         (ipa_reference_global_vars_info_d): Remove statics_not_read and
10024         statics_not_written.
10025         (ipa_reference_optimization_summary_d): New structure.
10026         (ipa_reference_optimization_summary_t): New type and vector.
10027         (ipa_reference_vars_info_d): Embedd structures instead of using
10028         pointers.
10029         (reference_vars_to_consider): Remove out of GGC space.
10030         (module_statics_escape): Remove.
10031         (global_info_obstack): Rename to ...
10032         (optimization_summary_obstack): ... this one.
10033         (initialization_status_t): Remove.
10034         (memory_identifier_string): Remove.
10035         (get_reference_vars_info): Fix indenting.
10036         (set_reference_vars_info): Likewise.
10037         (get_reference_optimization_summary): New.
10038         (set_reference_optimization_summary): New.
10039         (get_global_reference_vars_info): Remove.
10040         (ipa_reference_get_read_global): Remove.
10041         (ipa_reference_get_written_global): Remove.
10042         (ipa_reference_get_not_read_global): Update.
10043         (ipa_reference_get_not_written_global): Update.
10044         (is_proper_for_analysis): Outlaw addressable.
10045         (propagate_bits): Update for new datastructures.
10046         (analyze_variable): Remove.
10047         (init_function_info): Update for new datastructures.
10048         (clean_function_local_data): Remove.
10049         (clean_function): Remove.
10050         (copy_global_bitmap): Use optimizations_summary_obstack.
10051         (duplicate_node_data): Duplicate optimization summary only.
10052         (remove_node_data): Remove optimization summary only.
10053         (generate_summary): Do not analyze variables; do not compute
10054         module_statics_escape; do not prune solutions by it.
10055         (read_write_all_from_decl): Fix typos in comments.
10056         (propagate): Doscover readonly and nonaddressable first;
10057         update for new datastructures; share global bitmaps.
10058         * ipa-reference.h (ipa_reference_get_read_global,
10059         ipa_reference_get_written_global): Remove.
10060         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10061         * Makefile.in: Remove ipa-refereference from GT files.
10062
10063 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
10064
10065         PR debug/44112
10066         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10067         for all SYMBOL_REF_DECLs.
10068
10069 2010-05-14  Jan Hubicka  <jh@suse.cz>
10070
10071         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10072         (varpool_all_refs_explicit_p): New inline function.
10073         * ipa-reference.c: Update comment.
10074         (module_statics_written): Remove.
10075         (get_static_decl): Remove.
10076         (ipa_init): Do not initialize module_statics_written.
10077         (analyze_function): Likewise.
10078         (generate_summary): Likewise; do not compute module_statics_readonly
10079         and do not update variable flags.
10080         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10081         * ipa.c: Inlucde flags.h
10082         (cgraph_local_node_p): New.
10083         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10084         promote functions to local.
10085         (ipa_discover_readonly_nonaddressable_vars): New function.
10086         (function_and_variable_visibility): Use cgraph_local_node_p.
10087         * varpool.c (varpool_finalize_decl): Set force_output for
10088         DECL_PRESERVE_P vars.
10089
10090 2010-05-14  Jan Hubicka  <jh@suse.cz>
10091
10092         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10093
10094 2010-05-14  Richard Guenther  <rguenther@suse.de>
10095
10096         PR tree-optimization/44119
10097         * tree-ssa-pre.c (eliminate): Properly mark replacement of
10098         a PHI node necessary.
10099
10100 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
10101
10102         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10103
10104 2010-05-14  Jason Merrill  <jason@redhat.com>
10105
10106         PR c++/44127
10107         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10108         (gimple_call_set_nothrow): New.
10109         * gimple.c (gimple_build_call_from_tree): Call it.
10110         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10111
10112         PR c++/44127
10113         * gimplify.c (gimplify_seq_add_stmt): No longer static.
10114         * gimple.h: Declare it.
10115         * gimple.c (gimple_build_eh_filter): No ops.
10116
10117 2010-05-14  Jan Hubicka  <jh@suse.cz>
10118
10119         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10120         nodes already in queue.
10121         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10122         re-enqueueing node.
10123
10124 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
10125
10126         PR debug/44136
10127         * cfgexpand.c (expand_debug_expr): If non-memory op0
10128         has BLKmode, return NULL.
10129
10130 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
10131
10132         * config.gcc: Add support for --with-cpu option for bdver1.
10133         * config/i386/i386.h (TARGET_BDVER1): New macro.
10134         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10135         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10136         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10137         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10138         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10139         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10140         (processor_type): Add PROCESSOR_BDVER1.
10141         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10142         processor_type in config/i386/i386.h.
10143         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10144         movaps <reg, reg> instead of movapd <reg, reg> when replacing
10145         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10146         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10147         to emit packed xor instead of packed double/packed integer
10148         xor for SSE and AVX when moving a zero value.
10149         * config/i386/sse.md: Add check for
10150         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10151         movapd/movdqa for SSE and AVX.
10152         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10153         single logical operations i.e and, or and xor instead of packed double
10154         logical operations for SSE and AVX.
10155         * config/i386/i386-c.c (ix86_target_macros_internal):
10156         Add PROCESSOR_BDVER1.
10157         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10158         (has_fma4, has_xop): New.
10159         * config/i386/i386.c (bdver1_cost): New variable.
10160         (m_BDVER1): New macro.
10161         (m_AMD_MULTIPLE): Add m_BDVER1.
10162         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10163         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10164         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10165         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10166         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10167         x86_tune_sse_partial_reg_dependency,
10168         x86_tune_sse_unaligned_load_optimal,
10169         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10170         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10171         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10172         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10173         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10174         Enable/disable for bdver1.
10175         (processor_target_table): Add bdver1_cost.
10176         (cpu_names): Add bdver1.
10177         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10178          processor_alias_table.
10179         (ix86_expand_vector_move_misalign): Change.
10180         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10181         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10182         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10183         of movupd/movdqu for SSE and AVX.
10184         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10185         (ix86_tune_adjust_cost): Add code for bdver1.
10186         (standard_sse_constant_opcode): Add check for
10187         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10188         of packed double xor for SSE and AVX.
10189
10190 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
10191
10192         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10193         result to unsigned.
10194
10195 2010-05-14  Tristan Gingold  <gingold@adacore.com>
10196
10197         * toplev.c (default_debug_hooks): Remove this variable.
10198         (process_options): Remove assignments to default_debug_hooks.
10199
10200 2010-05-14  Martin Jambor  <mjambor@suse.cz>
10201
10202         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10203         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10204         * langhooks.h (struct lang_hooks_for_decls): Removed field
10205         fold_obj_type_ref.
10206         * tree.c (free_lang_data): Remove assignment to
10207         lang_hooks.fold_obj_type_ref.
10208         * tree.def (OBJ_TYPE_REF): Update comment.
10209
10210 2010-05-14  Richard Guenther  <rguenther@suse.de>
10211
10212         PR tree-optimization/44124
10213         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10214
10215 2010-05-14  Alan Modra  <amodra@gmail.com>
10216
10217         PR target/44075
10218         * config/rs6000/rs6000.c (struct machine_function): Reorder
10219         fields for better packing.  Add lr_save_state.
10220         (rs6000_ra_ever_killed): Return lr_save_state if set.
10221         (rs6000_emit_eh_reg_restore): Set lr_save_state.
10222
10223 2010-05-13  Jan Hubicka  <jh@suse.cz>
10224
10225         * varpool.c (decide_is_variable_needed): Drop code checking
10226         TREE_SYMBOL_REFERENCED.
10227
10228 2010-05-13  Jan Hubicka  <jh@suse.cz>
10229
10230         * final.c (output_addr_const): Do not call mark_decl_referenced.
10231         * cgraphunit.c (process_function_and_variable_attributes): Use
10232         mark_needed_node dirrectly.
10233         (assemble_thunk): Do not call mark_decl_referenced.
10234
10235 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
10236
10237         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10238
10239 2010-05-13  Jeff Law  <law@redhat.com>
10240
10241         * ira-conflicts.c (print_allocno_conflicts): New function broken out
10242         from...
10243         (print_conflicts): Call print_allocno_conflicts.
10244
10245 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
10246
10247         PR debug/44104
10248         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10249         if it is NULL.
10250
10251 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
10252
10253         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10254         t-mingw-w64 or t-mingw-w32 for multilib configuration.
10255         * config/i386/t-mingw-w32: New.
10256         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10257
10258 2010-05-13  Martin Jambor  <mjambor@suse.cz>
10259
10260         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10261         gimple-fold.c).
10262         * gimple-fold.c (get_base_binfo_for_type): New function.
10263         (gimple_get_relevant_ref_binfo): Likewise.
10264         (gimple_fold_obj_type_ref_known_binfo): Likewise.
10265         (gimple_fold_obj_type_ref): Likewise.
10266         (fold_gimple_call): Simplify condition for folding virtual calls
10267         and call gimple_fold_obj_type_ref.
10268         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
10269         (gimple_fold_obj_type_ref_known_binfo): Likewise.
10270
10271 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
10272
10273         * config/rs6000/rs6000-protos.h
10274         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
10275         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
10276         (rs6000_debug_mode_dependent_address)
10277         (rs6000_mode_dependent_address_ptr): Likewise.
10278
10279 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
10280
10281         PR debug/43983
10282         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
10283         by SRA.
10284         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
10285         * tree-sra.c (create_access_replacement): Call unshare_expr before
10286         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
10287         * dwarf2out.c: Include tree-flow.h.
10288         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
10289         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10290         Handle DW_OP_bit_piece.
10291         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
10292         construct_piece_list, adjust_piece_list): New functions.
10293         (add_var_loc_to_decl): Handle SRA optimized variables.
10294         Adjust for var_loc_note to loc field renaming.
10295         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
10296         in VAR_LOCATION note.
10297         (new_loc_descr_op_bit_piece): New function.
10298         (dw_sra_loc_expr): New function.
10299         (dw_loc_list): Use it.  Don't handle the last range after the
10300         loop, handle it inside of the loop.  Adjust for var_loc_note
10301         to loc field renaming.
10302         (add_location_or_const_value_attribute): Only special case
10303         single entry loc lists if loc is NOTE_P.  Adjust for
10304         var_loc_note to loc field renaming.
10305         (dwarf2out_var_location): Don't set newloc->var_loc_note
10306         and newloc->next here.
10307
10308 2010-05-12  Jan Hubicka  <jh@suse.cz>
10309
10310         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
10311         flag.
10312         * cgraph.h (cgraph_only_called_directly_p,
10313         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
10314         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
10315         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
10316         (assemble
10317         * ipa.c (cgraph_remove_unreachable_nodes): Use
10318         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
10319         flags.
10320         * tree-inline.c (copy_bb): Check address_taken flag.
10321         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
10322         externally_visible flag.
10323
10324 2010-05-12  Jason Merrill  <jason@redhat.com>
10325
10326         PR bootstrap/44048
10327         PR target/44099
10328         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
10329         * sdbout.c (plain_type_1): Likewise.
10330         * dwarf2out.c (is_base_type): Likewise.
10331         (gen_type_die_with_usage): Likewise.  Generate
10332         DW_TAG_unspecified_type for any LANG_TYPE.
10333
10334 2010-05-12  Jan Hubicka  <jh@suse.cz>
10335
10336         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10337         indrect edges too.
10338         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10339         (cgraph_clone_edge): Update.
10340         (cgraph_node_remove_callees): Remove indirect calls too.
10341         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10342         (cgraph_create_indirect_edge): Update prototype.
10343         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10344         is_proper_for_analysis.
10345         (add_new_function, visited_nodes, function_insertion_hook_holder,
10346         get_local_reference_vars_info, mark_address_taken, mark_address,
10347         mark_load, mark_store, check_asm_memory_clobber, check_call,
10348         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10349         (ipa_init): Do not initialize visited_nodes;
10350         function_insertion_hook_holder.
10351         (analyze_variable): Rewrite.
10352         (analyze_function): Rewrite.
10353         (copy_local_bitmap): Remove.
10354         (duplicate_node_dat): Do not duplicate local info.
10355         (generate_summary): Simplify to only walk cgraph.
10356         (write_node_summary_p, ipa_reference_write_summary,
10357         ipa_reference_read_summary): Remove.
10358         (propagate): Do not remove function insertion;
10359         generate summary.
10360         (pass_ipa_reference): NULLify summary handling fields.
10361         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10362         (input_edge): Input ecf_flags.
10363         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10364         (update_indirect_edges_after_inlining): Ignore edges with unknown
10365         param.
10366
10367 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
10368
10369         * implicit-zee.c: New file.
10370         * tree-pass.h (pass_implicit_zee): Declare.
10371         * passes.c (init_optimization_passes): Add zee pass.
10372         * common.opt (fzee): New flag.
10373         * timevar.def (TV_ZEE): Define.
10374         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10375         and beyond.
10376         * Makefile.in (implicit-zee.o): Add new build file.
10377
10378 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10379             Nathan Froyd  <froydnj@codesourcery.com>
10380
10381         * c-common.c (sync_resolve_params): Remove write-only variable.
10382
10383 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
10384
10385         * target.h (struct gcc_target): Add mode_dependent_address_p field.
10386         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10387         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10388         * targhooks.c (default_mode_dependent_address_p): New function.
10389         * targhooks.h (default_mode_dependent_address_p): Declare function.
10390         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10391         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10392         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10393         target hook. Change return type to bool.
10394         * recog.h (mode_dependent_address_p): Change return type to bool.
10395
10396 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10397             Nathan Froyd  <froydnj@codesourcery.com>
10398
10399         * tree-mudflap.c (build_function_type_0, build_function_type_1,
10400         build_function_type_2, build_function_type_3): Remove.
10401         (mudflap_init): Use build_function_type_list.
10402
10403 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10404             Nathan Froyd  <froydnj@codesourcery.com>
10405
10406         * coverage.c (build_fn_info_value): Call build_constructor instead of
10407         build_constructor_from_list.
10408         (build_ctr_info_value): Likewise.
10409         (build_gcov_info): Likewise.
10410
10411 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
10412
10413         * tree.c (build_constructor): Compute TREE_CONSTANT for the
10414         resultant constructor.
10415         (build_constructor_single): Don't set TREE_CONSTANT.
10416         (build_constructor_from_list): Don't compute TREE_CONSTANT.
10417
10418 2010-05-12  Jan Hubicka  <jh@suse.cz>
10419
10420         * cgraph.h (struct varpool_node): Add aux.
10421         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
10422         * varpool.c (varpool_remove_node): Do not remove initializer.
10423         (varpool_reset_queue): Export.
10424         (varpool_finalize_decl): Volatile vars are forced to be output.
10425         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
10426         replaced decl.
10427         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
10428         process_references, varpool_can_remove_if_no_refs): New functions.
10429         (cgraph_remove_unreachable_nodes): Handle variables too.
10430
10431 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
10432
10433         PR target/44088
10434         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
10435
10436 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
10437
10438         PR middle-end/44085
10439         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
10440         change value of ORT_TASK.
10441         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
10442         (omp_notice_threadprivate_variable): New function.
10443         (omp_notice_variable): Call it for threadprivate variables.
10444         If enclosing ctx is a task, print enclosing task rather than
10445         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
10446         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
10447         if task has untied clause.
10448
10449         PR debug/42278
10450         * dwarf2out.c (base_type_die): Don't add name attribute here.
10451         (modified_type_die): Instead of sizetype use
10452         its underlying original type.  If a DW_TAG_base_type doesn't
10453         have name added, add __unknown__.
10454         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
10455         always call force_type_die instead.
10456
10457 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
10458
10459         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
10460         for __stack_chk_guard.
10461
10462 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
10463
10464         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
10465         don't call start_source_file debug hook here...
10466         (finish_options): ... but here, after outputting predefined and
10467         command line defines and undefs.
10468
10469         PR middle-end/44071
10470         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
10471         no fallthru edge.
10472         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
10473         optimizing away empty bb with no successors, move over its
10474         footer chain to fallthru predecessor.
10475         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
10476         (rtl_split_edge): For asm goto call patch_jump_insn even if
10477         splitting fallthru edge.
10478
10479         PR c++/44059
10480         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
10481         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
10482         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10483         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
10484         on DW.ref.* decls.
10485
10486         PR c++/44062
10487         * c-parser.c (c_parser_expression): Mark LHS of a comma
10488         expression as read if it is a decl, handled component or
10489         COMPOUND_EXPR with that on the RHS.
10490         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
10491         if it is a decl or handled component.
10492
10493 2010-05-11  Jan Hubicka  <jh@suse.cz>
10494
10495         * lto-symtab.c (lto_symtab_free): New function.
10496         * lto-streamer.h (lto_symtab_free): Declare.
10497
10498 2010-05-11  Jan Hubicka  <jh@suse.cz>
10499
10500         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
10501         that if function is needed it is reachable.
10502         (lto_output_node): See if it the function is reachable or referenced.
10503         (output_cgraph): Update call of lto_output_node.
10504         * lto-streamer.h (reachable_from_other_partition_p): Declare.
10505
10506 2010-05-11  Jan Hubicka  <jh@suse.cz>
10507
10508         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
10509         Mark as used.
10510
10511 2010-05-11  Jan Hubicka  <jh@suse.cz>
10512
10513         PR tree-optimize/44063
10514         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
10515         queue.
10516         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
10517         limits.
10518         (estimate_function_body_sizes): Compute sizes even when disregarding.
10519
10520 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
10521
10522         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
10523
10524 2010-05-11  Jan Hubicka  <jh@suse.cz>
10525
10526         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
10527         into every boundary.
10528
10529 2010-05-11  Jan Hubicka  <jh@suse.cz>
10530
10531         * matrix-reorg.c (matrix_reorg): Rebuild edges.
10532
10533 2010-05-11  Jan Hubicka  <jh@suse.cz>
10534
10535         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
10536         lto_streamer_cache_delete): Put nodes into heap.
10537         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
10538         heap.
10539
10540 2010-05-11  Jan Hubicka  <jh@suse.cz>
10541
10542         * cgraphbuild.c (cgraph_rebuild_references): New.
10543         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
10544         out extern inlines.
10545         * cgraph.h (cgraph_rebuild_references): Declare.
10546         * tree-inline.c (tree_function_versioning): Use it.
10547         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
10548
10549 2010-05-11  Jan Hubicka  <jh@suse.cz>
10550
10551         * cgraph.c: Include ipa-utils.h
10552         (cgraph_create_virtual_clone): Update references.
10553         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
10554
10555 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
10556
10557         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
10558         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
10559         cache size.
10560
10561 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
10562
10563         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
10564
10565 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
10566
10567         * gcc.c (execute): For -### don't quote arguments that
10568         contain just alphanumerics and _/-. characters.
10569         * doc/invoke.texi: Document that change for -###.
10570
10571         PR debug/44023
10572         * df-problems.c (struct dead_debug): Add to_rescan field.
10573         (dead_debug_init): Clear to_rescan field.
10574         (dead_debug_finish): Rescan all debug insns in to_rescan
10575         bitmap and free the bitmap.
10576         (dead_debug_insert_before): Instead of rescanning debug insns
10577         immediately queue their rescanning until dead_debug_finish.
10578         (df_note_bb_compute): After dead_debug_add do continue instead
10579         of break.
10580
10581 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
10582
10583         PR debug/44028
10584         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
10585         clear also INSN_REG_USE_LIST.
10586
10587 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10588
10589         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
10590
10591 2010-05-10  Jan Hubicka  <jh@suse.cz>
10592
10593         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
10594         commited change.
10595
10596 2010-05-10  Jan Hubicka  <jh@suse.cz>
10597
10598         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
10599         Allocate encoders.
10600         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
10601         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
10602         (lto_streamer_cache_create): Init alloc pool.
10603         (lto_streamer_cache_delete): Free alloc pool.
10604         * lto-streamer.h: Include alloc pool.
10605         (lto_streamer_cache_d): Use alloc pool.
10606         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
10607
10608 2010-05-10  Jan Hubicka  <jh@suse.cz>
10609
10610         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
10611         * cgraphbuild.c: Include except.h
10612         (record_type_list, record_eh_tables): New function.
10613         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
10614
10615 2010-05-10  Jan Hubicka  <jh@suse.cz>
10616
10617         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
10618         __frame_dummy_init_array_entry, force_to_data): Attribute as used
10619         rather than unused.
10620
10621 2010-05-10  Michael Matz  <matz@suse.de>
10622
10623         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
10624         (can_reassociate_p): Use FLOAT_TYPE_P.
10625         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
10626         (vect_force_simple_reduction): ... this.
10627         * tree-parloops.c (gather_scalar_reductions): Use
10628         vect_force_simple_reduction.
10629         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
10630         vect_is_simple_reduction, add modify argument, if true rewrite
10631         "a-b" into "a+(-b)".
10632         (vect_is_simple_reduction, vect_force_simple_reduction): New
10633         functions.
10634         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10635
10636 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10637             Vladimir Makarov  <vmakarov@redhat.com>
10638
10639         PR rtl-optimization/44012
10640         * ira-build.c (remove_unnecessary_allocnos): Nullify
10641         regno_allocno_map of the removed allocno.
10642
10643 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10644
10645         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10646         to /dev/null.
10647         * configure: Regenerate.
10648
10649 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10650
10651         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10652         unused.
10653         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10654         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10655         support in Sun ld.
10656         * configure: Regenerate.
10657
10658 2010-05-10  Richard Guenther  <rguenther@suse.de>
10659
10660         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10661         marked if the entry identifier is marked.
10662
10663 2010-05-10  Richard Guenther  <rguenther@suse.de>
10664
10665         * c-common.c (struct c_common_attributes): Add fnspec attribute.
10666         (handle_fnspec_attribute): New function.
10667         * gimple.h (gimple_call_return_flags): Declare.
10668         (gimple_call_arg_flags): Likewise.
10669         * gimple.c (gimple_call_arg_flags): New function.
10670         (gimple_call_return_flags): Likewise.
10671         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10672         New argument flags.
10673         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10674         return value flags.
10675         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
10676         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
10677         main work to ...
10678         (make_heapvar_for): ... this new function.
10679         (handle_rhs_call): Handle fnspec attribute argument specifiers.
10680         (handle_lhs_call): Likewise.
10681         (find_func_aliases): Adjust.
10682
10683 2010-05-10  Richard Guenther  <rguenther@suse.de>
10684
10685         PR tree-optimization/44050
10686         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
10687
10688 2010-05-10  Wei Guozhi  <carrot@google.com>
10689
10690         PR target/42879
10691         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
10692
10693 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
10694
10695         PR c/10676
10696         * c-typeck.c (lookup_field): Take a type directly.  Update
10697         recursive calls.
10698         (build_component_ref): Update call to lookup_field.
10699         (set_init_label): Use lookup_field to find initialized field.
10700         Handle returned list of fields like a sequence of designators.
10701
10702 2010-05-09  Richard Guenther  <rguenther@suse.de>
10703
10704         PR middle-end/44024
10705         * fold-const.c (tree_single_nonzero_warnv_p): Properly
10706         handle &FUNCTION_DECL.
10707
10708 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
10709
10710         PR c/4784
10711         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
10712         structures and unions recursively.
10713         (detect_field_duplicates): Move duplicate detection with a hash to
10714         detect_field_duplicates_hash.  Always use a hash if anonymous
10715         structures or unions are present.
10716         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
10717         give errors.
10718
10719 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
10720
10721         PR target/44046
10722         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
10723         detect Atom, Core 2 and Core i7.
10724
10725 2010-05-09  Richard Guenther  <rguenther@suse.de>
10726
10727         * gcc.c (store_arg): Handle temporary file deletion for
10728         joined arguments.
10729
10730 2010-05-09  Richard Guenther  <rguenther@suse.de>
10731
10732         PR middle-end/44043
10733         * ipa-inline.c (estimate_function_body_sizes): Return after
10734         disregarding inline limits.
10735
10736 2010-05-09  Richard Guenther  <rguenther@suse.de>
10737
10738         * gcc.c (store_arg): Revert last change.
10739
10740 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
10741
10742         PR middle-end/28685
10743         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10744         (optimize_ops_list): Call it.
10745
10746 2010-05-08  Richard Guenther  <rguenther@suse.de>
10747
10748         PR tree-optimization/44030
10749         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
10750         NECESSARY flag if we propagate from a inserted expression.
10751
10752 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10753
10754         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10755         domain types as equal if they are both PLACEHOLDER_EXPRs.
10756
10757 2010-05-08  Richard Guenther  <rguenther@suse.de>
10758
10759         * lto-wrapper.c (run_gcc): Remove linker output from
10760         command line for LTRANS invocation.
10761
10762 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
10763
10764         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10765         lto-macho as lto_binary_reader.
10766         * target.h (struct gcc_target): New hooks lto_start and lto_end.
10767         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10768         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10769         in lto_start and lto_end calls.
10770         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
10771         magic numbers.
10772         (scan_prog_file): Update is_elf_or_coff call.
10773         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10774
10775         * collect2.c (main): Fix enum comparison.
10776
10777         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10778         Add prototypes.
10779         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10780         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
10781         and TARGET_ASM_LTO_END.
10782         * darwin.c: Include obstack.h and lto-streamer.h.
10783         (lto_section_names_offset, lto_section_names_obstack,
10784         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10785         global variables.
10786         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10787         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
10788         to a temporary file.
10789         (darwin_asm_lto_end): New function.  Restore asm_out_file.
10790         (darwin_asm_named_section): For LTO sections, replace the name with
10791         the offset of the section name in a string table, and build this
10792         table.
10793         (darwin_file_start): Initialize global vars for LTO support.
10794         (darwin_file_end): If output to asm_out_file was redirected, append it
10795         to the proper asm_out_file here.  Add the section names section.
10796
10797 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
10798
10799         * c-pragma.c (pending_weak_d, pending_weak): New.
10800         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10801         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10802         handle_pragma_weak): Update the uses of pending_weaks.
10803
10804 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10805
10806         PR documentation/44016
10807         * doc/standards.texi (Standards): Link to unversioned
10808         cxx0x_status.html page.
10809
10810 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
10811
10812         PR target/43708
10813         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10814         in addition to TREE_USED, to avoid "set but unused" warnings.
10815
10816 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10817
10818         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10819         (is_loop_prefetching_profitable): Do not insert prefetches
10820         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10821         times the prefetch ahead distance.
10822
10823 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10824
10825         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10826         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10827         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10828         the unroll_factor.
10829
10830 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10831
10832         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10833         a diagnostic info when the insn-to-mem ratio is too small.
10834
10835 2010-05-07  Richard Guenther  <rguenther@suse.de>
10836
10837         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10838         the linker plugin.
10839         (store_arg): Queue temp_filename for deletion instead of
10840         the whole argument.
10841
10842 2010-05-07  Richard Guenther  <rguenther@suse.de>
10843
10844         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10845         (run_gcc): Handle LTRANS phase invocation.
10846         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10847
10848 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
10849
10850         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10851         this is also meaningful on PARM_DECLs and RESULT_DECLs.
10852
10853 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10854
10855         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10856
10857 2010-05-07  Richard Guenther  <rguenther@suse.de>
10858
10859         PR tree-optimization/44020
10860         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10861         code when PRE is not yet initialized.
10862
10863 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10864
10865         * config/mips/dbxmdebug.h: Remove.
10866         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10867
10868 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
10869
10870         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10871         with null pointer and also warn about ordered comparison of zero with
10872         pointer if -Wextra.
10873
10874 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10875
10876         * graphite-blocking.c
10877         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10878         * graphite-clast-to-gimple.c
10879         (clast_to_gcc_expression): Same.
10880         (precision_for_value): Same.
10881         (precision_for_interval): Same.
10882         (gcc_type_for_interval): Same.
10883         (graphite_create_new_guard): Same.
10884         (compute_bounds_for_level): Same.
10885         (graphite_create_new_loop_guard): Same.
10886         * graphite-interchange.c
10887         (build_linearized_memory_access): Same.
10888         (pdr_stride_in_loop): Same.
10889         (memory_strides_in_loop_1): Same.
10890         (memory_strides_in_loop): Same.
10891         (extend_scattering): Same.
10892         (psct_scattering_dim_for_loop_depth): Same.
10893         (pbb_number_of_iterations): Same.
10894         * graphite-poly.h
10895         (debug_iteration_domains): Same.
10896         * graphite-ppl.c
10897         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10898         (ppl_set_inhomogeneous_gmp): Same.
10899         (ppl_strip_loop): Same.
10900         (ppl_lexico_compare_linear_expressions): Same.
10901         (ppl_read_polyhedron_matrix): Same.
10902         (ppl_max_for_le_pointset): Same.
10903         * graphite-ppl.h
10904         (ppl_read_polyhedron_matrix): Same.
10905         (tree_int_to_gmp): Same.
10906         (gmp_cst_to_tree): Same.
10907         (ppl_set_inhomogeneous): Same.
10908         (ppl_set_inhomogeneous_tree): Same.
10909         (ppl_set_coef): Same.
10910         (ppl_set_coef_tree): Same.
10911         * graphite-sese-to-poly.c
10912         (build_pbb_scattering_polyhedrons): Same.
10913         (build_scop_scattering): Same.
10914         (scan_tree_for_params_right_scev): Same.
10915         (scan_tree_for_params): Same.
10916         (find_params_in_bb): Same.
10917         (find_scop_parameters): Same.
10918         (add_upper_bounds_from_estimated_nit): Same.
10919         (build_loop_iteration_domains): Same.
10920         (add_condition_to_domain): Same.
10921         (pdr_add_memory_accesses): Same.
10922
10923 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10924
10925         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10926         CLooG's value_* macros to their respective mpz_* counterparts.
10927         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10928         (graphite_create_new_loop_guard): Same.
10929         * graphite-interchange.c (build_linearized_memory_access): Same.
10930         (pdr_stride_in_loop): Same.
10931         (memory_strides_in_loop_1): Same.
10932         (1st_interchange_profitable_p): Same.
10933         * graphite-poly.c (extend_scattering): Same.
10934         (psct_scattering_dim_for_loop_depth): Same.
10935         (pbb_number_of_iterations): Same.
10936         (pbb_number_of_iterations_at_time): Same.
10937         * graphite-poly.h (new_1st_loop): Same.
10938         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10939         (oppose_constraint): Same.
10940         (insert_constraint_into_matrix): Same.
10941         (ppl_set_inhomogeneous_gmp): Same.
10942         (ppl_set_coef_gmp): Same.
10943         (ppl_strip_loop): Same.
10944         (ppl_lexico_compare_linear_expressions): Same.
10945         (ppl_max_for_le_pointset): Same.
10946         (ppl_min_for_le_pointset): Same.
10947         (ppl_build_realtion): Same.
10948         * graphite-ppl.h (gmp_cst_to_tree): Same.
10949         (ppl_set_inhomogeneous): Same.
10950         (ppl_set_inhomogeneous_tree): Same.
10951         (ppl_set_coef): Same.
10952         (ppl_set_coef_tree): Same.
10953         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10954         (build_scop_scattering): Same.
10955         (add_value_to_dim): Same.
10956         (scan_tree_for_params_right_scev): Same.
10957         (scan_tree_for_params_int): Same.
10958         (scan_tree_for_params): Same.
10959         (find_params_in_bb): Same.
10960         (find_scop_parameters): Same.
10961         (add_upper_bounds_from_estimated_nit): Same.
10962         (build_loop_iteration_domains): Same.
10963         (create_linear_expr_from_tree): Same.
10964         (add_condition_to_domain): Same.
10965         (pdr_add_memory_accesses): Same.
10966
10967 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
10968             Jason Merrill  <jason@redhat.com>
10969
10970         * c-common.c (c_common_reswords): Add nullptr.
10971         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
10972         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10973         (gen_type_die_with_usage): Likewise.
10974         * dbxout.c (dbxout_type): Likewise.
10975         * sdbout.c (plain_type_1): Likewise.
10976
10977 2010-05-06  Jason Merrill  <jason@redhat.com>
10978
10979         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10980         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
10981         ret appropriately.
10982         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10983
10984         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10985         stripping WITH_SIZE_EXPR.
10986         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10987         change.
10988
10989 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10990
10991         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10992         list of obsolete configurations.
10993         Disabled check for obsolete configurations.
10994         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10995         Removed support for previous versions.
10996         * config/mips/iris.h: Removed.
10997         * config/mips/iris5.h: Removed.
10998         * config/mips/iris6.h: Merged old iris.h contents.
10999         (TARGET_IRIX): Removed.
11000         (DRIVER_SELF_SPECS): Removed mabi=32.
11001         (IDENT_ASM_OP): Removed undef.
11002         (STARTFILE_SPEC): Removed mabi=32.
11003         (ENDFILE_SPEC): Likewise.
11004         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
11005         (MACHINE_TYPE): Update for IRIX 6.5.
11006         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
11007         TARGET_IRIX by TARGET_IRIX6.
11008         (mips_file_start): Likewise.
11009         (mips_output_external): Remove IRIX 5/6 O32 support.
11010         (mips_output_function_prologue): Likewise.
11011         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
11012         TARGET_IRIX6.
11013         (TARGET_CPU_CPP_BUILTINS): Likewise.
11014         (TARGET_IRIX): Removed.
11015         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
11016         (MULTILIB_DIRNAMES): Removed 32.
11017         (MULTILIB_OSDIRNAMES): Removed ../lib.
11018         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
11019         (Specific, mips-sgi-irix5): Document removal.
11020         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
11021         Remove references to older IRIX 6 releases and the O32 ABI.
11022
11023 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
11024
11025         PR bootstrap/43994
11026         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
11027         instead of DF_REF_REAL_REG.
11028
11029 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
11030
11031         PR target/43888
11032         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
11033         handling to still return true for x64 targets.
11034
11035 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11036
11037         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
11038
11039 2010-05-06  Jan Hubicka  <jh@suse.cz>
11040
11041         PR tree-optimization/43791
11042         * ipa-inline.c (update_caller_keys): Remove bogus
11043         disregard_inline_limits check.
11044
11045 2010-05-06  Michael Matz  <matz@suse.de>
11046
11047         PR tree-optimization/43984
11048         * tree-ssa-pre.c (inserted_phi_names): Remove.
11049         (inserted_exprs): Change to bitmap.
11050         (create_expression_by_pieces): Set bits, don't append to vector.
11051         (insert_into_preds_of_block): Don't handle inserted_phi_names.
11052         (eliminate): Don't look at inserted_phi_names, remove deleted
11053         insns from inserted_exprs.
11054         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11055         (init_pre, fini_pre): Allocate and free bitmaps.
11056         (execute_pre): Insert insns on edges before elimination.
11057
11058 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11059
11060         * tree.c (initializer_zerop): Handle STRING_CST.
11061
11062 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11063
11064         PR 40989
11065         * doc/invoke.texi (Wimplicit): Document as C only.
11066         * opts.c (common_handle_option): Add argument kind.
11067         (handle_option): Rename as read_cmdline_option. Factor out code to...
11068         (handle_option): ... here. New.
11069         (handle_options): Rename as read_cmdline_options.
11070         (decode_options): Update call.
11071         (set_option): Use option index instead of option pointer. Classify
11072         diagnostics correctly.
11073         (enable_warning_as_error): Call handle_option.
11074         * opts.h (set_option): Update declaration.
11075         (handle_option): Declare.
11076         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11077         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11078         * c-opts.c (set_Wimplicit): Delete.
11079         (c_family_lang_mask): New static constant.
11080         (c_common_handle_option): Add argument kind. Use handle_option
11081         instead of set_Wimplicit.
11082         (c_common_post_options): warn_implicit and warn_implicit_int
11083         are disabled by default.
11084         * c-common.c (warn_implicit): Do not define here.
11085         * c-common.h (warn_implicit): Do not declare here.
11086         (c_common_handle_option): Update declaration.
11087         * lto-opts.c (lto_reissue_options): Update call to set_option.
11088
11089 2010-05-06  Richard Guenther  <rguenther@suse.de>
11090
11091         PR tree-optimization/43571
11092         * domwalk.c (walk_dominator_tree): Walk the dominator
11093         sons in more optimal order.
11094
11095 2010-05-06  Richard Guenther  <rguenther@suse.de>
11096
11097         PR tree-optimization/43934
11098         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11099         (stmt_cost): Likewise.
11100         (extract_true_false_args_from_phi): New helper.
11101         (determine_max_movement): For PHI nodes verify we can hoist them
11102         and compute their cost.
11103         (determine_invariantness_stmt): Handle PHI nodes.
11104         (move_computations_stmt): Likewise.  Hoist PHI nodes in
11105         if-converted form using COND_EXPRs.
11106         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11107         (tree_ssa_lim): Likewise.
11108         * tree-flow.h (tree_ssa_lim): Adjust prototype.
11109         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11110
11111 2010-05-06  Richard Guenther  <rguenther@suse.de>
11112
11113         PR tree-optimization/43987
11114         * tree-ssa-structalias.c (could_have_pointers): For possibly
11115         address-taken variables force pointers to be recorded.
11116         (create_variable_info_for_1): Likewise.
11117         (push_fields_onto_fieldstack): Pass in wheter all fields
11118         must have pointers.
11119         (find_func_aliases): Query types instead of vars whether
11120         they contain pointers where appropriate.
11121
11122 2010-05-06  Jan Hubicka  <jh@suse.cz>
11123
11124         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11125         (record_reference, mark_address, mark_load, mark_store): Record
11126         references.
11127         (record_references_in_initializer): Update call of record_references.
11128         (rebuild_cgraph_edges): Remove all references before rebuiding.
11129         * cgraph.c (cgraph_create_node): Clear ref list.
11130         (cgraph_remove_node): Remove references.
11131         (dump_cgraph_node): Dump references.
11132         (cgraph_clone_node): Clone references.
11133         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11134         (struct cgraph_node, varpool_node): Add ref_lst.
11135         * ipa-ref.c: New file.
11136         * ipa-ref.h: New file.
11137         * ipa-ref-inline.h: New file.
11138         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11139         (referenced_from_other_partition_p): New function.
11140         (lto_output_varpool_node): Take set arugment; call
11141         referenced_from_other_partition.
11142         (lto_output_ref): New.
11143         (add_references): New.
11144         (output_refs): New.
11145         (output_cgraph): Compute boundary based on references; output refs.
11146         (output_varpool): Accept cgraph_node_set argument.
11147         (input_ref): New.
11148         (input_refs): New.
11149         (input_cgraph): Call input_refs.
11150         * lto-section-in.c (lto_section_name): Add refs.
11151         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11152         (ipa-ref.o): New file.
11153         * varpool.c (varpool_node): Clear ipa ref list.
11154         (varpool_remove_node): Remove references.
11155         (dump_varpool_node): Dump references.
11156         (varpool_assemble_decl): Only compile finalized ones.
11157         (varpool_extra_name_alias): Initialize ref list.
11158         * lto-streamer.c (lto-get_section_name): Add .refs section.
11159         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11160         (referenced_from_other_partition_p): Declared.
11161
11162 2010-05-06  Ira Rosen  <irar@il.ibm.com>
11163
11164         PR tree-optimization/43901
11165         * tree-vect-stmts.c (vectorizable_call): Assert that vector
11166         type is not NULL if it's transformation phase, and return
11167         FALSE if it's analysis.
11168         (vectorizable_conversion, vectorizable_operation,
11169         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11170
11171 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
11172
11173         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11174         Delete.
11175         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11176         New define.
11177         * config/mips/mips-protos.h
11178         (mips_small_register_classes_for_mode_p): Delete prototype.
11179
11180 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
11181
11182         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11183         * config/arm/arm.c (multiple_operation_profitable_p,
11184         compute_offset_order): New static functions.
11185         (load_multiple_sequence, store_multiple_sequence): Use them.
11186         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
11187         memory offsets, not register numbers.
11188         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11189
11190 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
11191
11192         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11193         (get_pending_sizes, put_pending_size, put_pending_sizes):
11194         Update the uses of pending_sizes.
11195         * c-decl.c (store_parm_decls): Likewise.
11196         * c-tree.h (struct c_arg_info): Likewise.
11197         * tree.h: Update the prototype for get_pending_sizes and
11198         put_pending_sizes.
11199
11200 2010-05-05  Jason Merrill  <jason@redhat.com>
11201
11202         PR debug/43370
11203         * c-common.c (handle_aligned_attribute): Respect
11204         ATTR_FLAG_TYPE_IN_PLACE.
11205
11206         PR testsuite/43758
11207         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11208         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11209         (TARGET_INITIALIZER): Use it.
11210         * c-common.c (attribute_takes_identifier_p): Call it.
11211         * c-common.h: Update prototype.
11212         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11213         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11214
11215 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
11216
11217         PR debug/43950
11218         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11219         DW_ID_down_case for Fortran compilation units.
11220
11221 2010-05-05  Jan Hubicka  <jh@suse.cz>
11222
11223         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11224         handle aliases.
11225
11226 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
11227
11228         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11229         a variable-sized RESULT_DECL.
11230
11231 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
11232
11233         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11234
11235 2010-05-05  Jason Merrill  <jason@redhat.com>
11236
11237         PR c++/43787
11238         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11239         returns GS_OK.
11240         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11241
11242 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
11243             Jakub Jelinek  <jakub@redhat.com>
11244
11245         PR debug/43478
11246         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11247         (dead_debug_init, dead_debug_finish): New functions.
11248         (dead_debug_add, dead_debug_insert_before): Likewise.
11249         (df_note_bb_compute): Initialize a dead_debug object, add dead
11250         debug uses to it, insert debug bind insns before death insns,
11251         reset debug insns that refer to pending uses at the end.
11252         * rtl.h (make_debug_expr_from_rtl): New prototype.
11253         * varasm.c (make_debug_expr_from_rtl): New function.
11254
11255 2010-05-05  Jan Hubicka  <jh@suse.cz>
11256
11257         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11258         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11259         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11260         lto_varpool_encoder_deref, lto_varpool_encoder_size,
11261         lto_varpool_encoder_encode_initializer_p,
11262         lto_set_varpool_encoder_encode_initializer): New functions.
11263         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11264         call output_varpool.
11265         (input_varpool_node): Do not always set analyzed.
11266         (input_cgraph_1): Return vector of cgraph nodes.
11267         (input_varpool_1): Return vector of varpools.
11268         (input_cgraph): Free the vectors.
11269         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11270         output only initializers needed.
11271         (lto_output): Only call output_cgraph.
11272         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
11273         * lto-section-out.c (lto_new_out_decl_state): Initialize
11274         state->varpool_node_encoder.
11275         * lto-streamer.h (lto_varpool_encoder_d): New.
11276         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
11277         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
11278         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
11279         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
11280         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
11281         Declare.
11282         (output_varpool, input_varpool): Remove declarations.
11283
11284 2010-05-05  Jan Hubicka  <jh@suse.cz>
11285
11286         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
11287         with body can prevail.
11288
11289 2010-05-05  Jan Hubicka  <jh@suse.cz>
11290
11291         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
11292         size.
11293
11294 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11295
11296         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
11297
11298         * gengtype.h (erro_at_line): Constify pos argument.
11299
11300         * gengtype.c: Include hashtab.h.
11301         (enum gc_used): Document GC_MAYBE_POINTED_TO.
11302         (error_at_line): Constify pos argument.
11303         (do_typedef): Initialize p->opt field.
11304         (get_file_gtfilename): Fix comment typo.
11305         (struct walk_type_data): Constify line field.
11306         (get_output_file_for_structure): New function.
11307         (write_local_func_for_structure): Constify orig_s argument.
11308         Use get_output_file_for_structure.
11309         (write_func_for_structure): Use get_output_file_for_structure.
11310         (INDENT): New define.
11311         (dump_pair, dump_type, dump_type_list, dump_typekind)
11312         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
11313         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
11314         functions.
11315         (seen_types): New variable.
11316         (main): New variable do_dump.  Process "-d" command line option.
11317         Call dump_everything if dump requested.
11318
11319 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
11320
11321         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
11322         in a temporary instead of invoking the macro multiple times.
11323         (track_expr_p): Likewise.
11324
11325 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
11326
11327         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
11328         per new semantics.
11329         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
11330         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
11331         conditions for printing notes.
11332         * common.opt (-Wcoverage-mismatch): Allow negative, default to
11333         true, update documentation.
11334         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11335
11336 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
11337
11338         PR c/43981
11339         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11340         on dimen.
11341
11342 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11343
11344         PR target/43799
11345         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11346         (*sse_prologue_save_insn1): Likewise.
11347         (SSE prologue save splitter): Likewise.
11348
11349 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11350
11351         * tree.c (free_lang_data_in_one_sizepos): New inline function.
11352         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11353         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11354         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11355         all decls.  Call it on DECL_FIELD_OFFSET of fields.
11356         (find_decls_types_r): Follow DECL_VALUE_EXPR.
11357         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11358
11359 2010-05-04  Martin Jambor  <mjambor@suse.cz>
11360
11361         * tree-sra.c (build_access_from_expr_1): The first parameter type
11362         changed to simple tree.
11363         (build_access_from_expr): Likewise, gsi parameter was eliminated.
11364         (scan_assign_result): Renamed to assignment_mod_result, enum elements
11365         renamed as well.
11366         (build_accesses_from_assign): Removed all parameters except for a
11367         simple gimple statement.  Now returns a simple bool.
11368         (scan_function): All non-analysis parts moved to separate functions
11369         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
11370         parameters and updated both callers.
11371         (sra_modify_expr): Removed parameter data.
11372         (sra_modify_function_body): New function.
11373         (perform_intra_sra): Call sra_modify_function_body to modify the
11374         function body.
11375         (replace_removed_params_ssa_names): Parameter data changed into
11376         adjustments vector.
11377         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
11378         changed the parameter dont_convert to convert with the opposite
11379         meaning.
11380         (sra_ipa_modify_assign): Parameter data changed into adjustments
11381         vector, return value changed to bool.
11382         (ipa_sra_modify_function_body): New function.
11383         (sra_ipa_reset_debug_stmts): Updated a comment.
11384         (modify_function): Use ipa_sra_modify_function_body to modify function
11385         body.
11386
11387 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11388
11389         PR middle-end/43671
11390         * alias.c (true_dependence): Handle the same VALUE in x and mem.
11391         (canon_true_dependence): Likewise.
11392         (write_dependence_p): Likewise.
11393
11394 2010-05-04  Jan Hubicka  <jh@suse.cz>
11395
11396         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11397         * cgraphbuild.c: Include ipa-utils.h
11398         (record_reference_ctx): New struct.
11399         (record_reference): Simplify to work on initializers; not statements.
11400         (mark_address, mark_load, mark_store): New.
11401         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11402         walk PHI nodes too.
11403         (record_references_in_initializer): Update use of record_reference.
11404         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11405         walk PHI nodes too.
11406
11407 2010-05-04  Jan Hubicka  <jh@suse.cz>
11408
11409         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
11410         node will be removed anyway.
11411         (lto_varpool_replace_node): Allow also unanalyzed nodes;
11412         relink aliases of node into prevailing node.
11413         * varpool.c (varpool_remove_node): Remove aliases properly;
11414         when removing node, remove all its aliases too; remove DECL_INITIAL
11415         of removed node; ggc_free the varpool node.
11416
11417 2010-05-04  Richard Guenther  <rguenther@suse.de>
11418
11419         PR tree-optimization/43879
11420         * tree-ssa-structalias.c (alias_get_name): Use
11421         DECL_ASSEMBLER_NAME if available.
11422         (create_function_info_for): Return the varinfo node.
11423         (ipa_pta_execute): Associate same-body aliases and extra names
11424         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
11425
11426 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11427
11428         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
11429
11430 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
11431
11432         PR bootstrap/43964
11433         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
11434         only if HONOR_REG_ALLOC_ORDER is not defined.
11435
11436 2010-05-04  Richard Guenther  <rguenther@suse.de>
11437
11438         PR tree-optimization/43949
11439         * tree-vrp.c (extract_range_from_binary_expr): Only handle
11440         TRUNC_MOD_EXPR.
11441
11442 2010-04-26  Jason Merrill  <jason@redhat.com>
11443
11444         * c.opt (-fstrict-enums): New.
11445         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
11446
11447 2010-05-03  David Ung  <davidu@mips.com>
11448             James E. Wilson  <wilson@codesourcery.com>
11449
11450         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
11451         emit the trap instruction before the divide for TUNE_74K.
11452
11453 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
11454
11455         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
11456         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
11457         based on the above, for new target hook.
11458
11459         * hooks.c (hook_bool_mode_true): New generic hook.
11460         * hooks.h (hook_bool_mode_true): Add prototype.
11461
11462         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
11463         target hook.
11464         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
11465         target hook, set to hook_bool_mode_false.
11466         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
11467         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
11468         with targetm.small_register_classes_for_mode_p.
11469         (find_reusable_reload): Likewise.
11470         (combine_reloads): Likewise.
11471         * reload1.c (reload_as_needed): Likewise.
11472         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
11473         * ifcvt.c (noce_process_if_block, check_cond_move_block,
11474         dead_or_predicable): Likewise.
11475         * regmove.c (optimize_reg_copy_1): Likewise.
11476         * calls.c (prepare_call_address): Likewise.
11477         (precompute_register_parameters): Likewise.
11478
11479         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
11480         hook definition.
11481         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
11482         implementation of the hook that considers all register classes
11483         small except for SH64.
11484         (sh_override_options): Use the new hook.
11485         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
11486         Add prototype.
11487
11488         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
11489         hook definition.
11490         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
11491         implementation of the hook that considers all register classes
11492         small for THUMB1.
11493         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
11494         Add prototype.
11495
11496         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
11497         hook definition.
11498         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
11499         implementation of the hook that considers all register classes
11500         small for MIPS16.
11501         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
11502         Add prototype.
11503
11504         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
11505         hook definition.
11506         * config/m32c/m32c.h: Likewise.
11507         * config/pdp11/pdp11.h: Likewise.
11508         * config/avr/avr.h: Likewise.
11509         * config/xtensa/xtensa.h: Likewise.
11510         * config/m68hc11/m68hc11.h: Likewise.
11511         * config/mn10300/mn10300.h: Likewise.
11512         * config/mcore/mcore.h: Likewise.
11513         * config/h8300/h8300.h: Likewise.
11514         * config/bfin/bfin.h: Likewise.
11515
11516         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
11517         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
11518
11519 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
11520
11521         * double-int.h (tree_to_double_int): Remove macro.
11522         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
11523         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11524         (tree_to_double_int): New function.
11525         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
11526         Move ...
11527         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11528
11529 2010-05-03  Richard Guenther  <rguenther@suse.de>
11530
11531         PR tree-optimization/43971
11532         * tree-ssa-structalias.c (get_constraint_for_1): Fix
11533         constraints in the !flag_delete_null_pointer_checks case.
11534
11535 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
11536
11537         PR debug/43972
11538         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
11539         result mode matches original rtl mode.
11540
11541 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
11542
11543         PR target/43888
11544         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
11545
11546 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11547
11548         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
11549         when processing flag options.
11550
11551 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11552
11553         * gcov-iov.c (main): Change format string placeholder
11554         from %#08x to 0x%08x.
11555         * genchecksum.c (dosum): Change format string placeholder
11556         from %#02x to 0x%02x.
11557
11558 2010-05-02  Richard Guenther  <rguenther@suse.de>
11559
11560         PR tree-optimization/43879
11561         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
11562
11563 2010-05-02  Bruno Haible  <bruno@clisp.org>
11564
11565         * doc/extend.texi (Function Attributes): Fix a typo.
11566
11567 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11568
11569         Revert:
11570         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
11571         placeholder from 0x%x to %#x.
11572         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11573         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11574         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11575         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11576         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11577         * config/i386/i386.c (ix86_target_string): Ditto.
11578         * config/i386/i386.c (output_pic_addr_const): Ditto.
11579         (print_operand): Ditto.
11580
11581 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11582
11583         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
11584         placeholder from 0x%x to %#x.
11585         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
11586         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
11587         (ASM_OUTPUT_DEBUG_DATA): Ditto.
11588         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
11589         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
11590         * optc-gen.awk: Ditto.
11591         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
11592         (HOST_WIDE_INT_PRINT_HEX): Ditto.
11593         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
11594         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11595
11596 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
11597
11598         * target.h (struct calls): Add function_value_regno_p field.
11599         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11600         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
11601         * targhooks.c (default_function_value_regno_p): New function.
11602         * targhooks.h (default_function_value_regno_p): Declare function.
11603         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
11604         * builtins.c. (apply_result_size): (Ditto.).
11605         * combine.c. (likely_spilled_retval_p): (Ditto.).
11606         * mode-switching.c. Include 'target.h'.
11607         (create_pre_exit): Use function_value_regno_p hook.
11608         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
11609         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
11610         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
11611
11612         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
11613         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
11614         (ix86_function_value_regno_p): Declare as static, change argument
11615         type to const unsigned int.
11616         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
11617
11618 2010-05-01  Richard Guenther  <rguenther@suse.de>
11619
11620         PR tree-optimization/43949
11621         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
11622         types.
11623         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
11624
11625 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
11626
11627         * rtl.h (CONST_DOUBLE_P): Define.
11628         (rtx_to_double_int): Declare.
11629         * emit-rtl.c (rtx_to_double_int): New function.
11630         * dwarf2out.c (insert_double): New function.
11631         (loc_descriptor, add_const_value_attribute): Clean up, use
11632         rtx_to_double_int and insert_double functions.
11633
11634 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
11635
11636         * doc/extend.texi (Inline): Add missing return keyword to examples.
11637         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11638         "command-line".
11639
11640 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
11641
11642         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11643         the variable part of the offset as well.  Use highest_pow2_factor for
11644         all alignment checks.
11645
11646 2010-04-30  Richard Guenther  <rguenther@suse.de>
11647
11648         PR tree-optimization/43879
11649         * tree-ssa-structalias.c (type_could_have_pointers): Functions
11650         can have pointers.
11651
11652 2010-04-30  Jan Hubicka  <jh@suse.cz>
11653
11654         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11655         varpool.
11656         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11657
11658 2010-04-30  Jan Hubicka  <jh@suse.cz>
11659
11660         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11661         New.
11662         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11663         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11664         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11665         cgraph_node_set_needs_ltrans_p): Remove.
11666
11667 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
11668
11669         * sdbout.c: Include vec.h, do not include varray.h.
11670         (deferred_global_decls, sdbout_global_decl,
11671         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11672         * toplev.c: Do not include varray.h.
11673         (dump_memory_report): Do not dump VARRAY statistics.
11674         * gengtype.c (open_base_file): Ignore varray.h.
11675         * Makefile.in: Update for abovementioned changes.
11676         Remove all traces of varray.c and varray.h.
11677         * varray.c: Remove file.
11678         * varray.h: Remove file.
11679
11680 2010-04-30  Jan Hubicka  <jh@suse.cz>
11681
11682         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
11683         references.
11684
11685 2010-04-30  Jan Hubicka  <jh@suse.cz>
11686
11687         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
11688         needed.
11689
11690 2010-04-30  Richard Guenther  <rguenther@suse.de>
11691
11692         * tree-ssa-structalias.c (get_constraint_for_1): Generate
11693         constraints for CONSTRUCTOR.
11694
11695 2010-04-30  Richard Guenther  <rguenther@suse.de>
11696
11697         PR lto/43946
11698         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
11699         first after all lowering passes.
11700
11701 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
11702
11703         * toplev.c: Include varray.h for statistics dumping.
11704         * tree.h: Do not declare varray_head_tag.
11705         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
11706         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
11707         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
11708         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
11709         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
11710         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
11711         c-common.c, c-common.h, reg-stack.c, basic-block.h,
11712         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
11713         include varray.h.
11714         * Makefile.in: Update for abovementioned changes.
11715
11716 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
11717
11718         PR debug/43942
11719         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
11720
11721 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
11722
11723         * config/picochip/picochip.c (picochip_legitimize_address): Define.
11724         Use this function to do machine-specific conversion.
11725         (picochip_legitimize_reload_address): Likewise.
11726         (picochip_legitimate_address_p): Check valid base register only if
11727         strict.
11728         (picochip_check_conditional_copy): Check for modw only if opnd is
11729         register.
11730         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
11731         to call the function in c.
11732         * config/picochip/picochip-protos.h
11733         (picochip_legitimize_reload_address): Define.
11734         * config/picochip/picochip.md (supported_compare1): Define.
11735
11736 2010-04-30  Jan Hubicka  <jh@suse.cz>
11737
11738         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11739         (cgraph_global_info): Remove inlined.
11740         (LTO_cgraph_tag_names): Remove.
11741         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11742         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11743         simplify cgraph tags and document.
11744         (lto_output_node): Use only LTO_cgraph_unavail_node and
11745         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
11746         for_functions_valid, global info, process and output flags.
11747         (input_overwrite_node): Initialize estimated stack size and
11748         estimated growth.  Do not read flags we no longer store.
11749         (input_node): Likewise do not read info no longer stored.
11750         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11751         flag.
11752
11753 2010-04-30  Richard Guenther  <rguenther@suse.de>
11754
11755         PR tree-optimization/43879
11756         * tree-ssa-structalias.c (get_constraint_for_1): Properly
11757         handle non-zero initializers.
11758
11759 2010-04-30  Richard Guenther  <rguenther@suse.de>
11760
11761         * builtins.c (fold_builtin_1): Delete free (0).
11762
11763 2010-04-29  Jan Hubicka  <jh@suse.cz>
11764
11765         * gengtype.c (open_base_files): Add lto-streamer.h
11766         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11767         (pass_ipa_cp): GGC collect.
11768         * toplev. (compile_file): Do not output symbols.
11769         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11770         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11771         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11772         * lto-section-in.c: Include ggc.h
11773         (lto_new_in_decl_state): Alloc in GGC.
11774         (lto_delete_in_decl_state): Likewise.
11775         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11776         Collect.
11777
11778 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
11779
11780         PR target/42895
11781         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11782         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
11783         (HONOR_REG_ALLOC_ORDER): Describe new macro.
11784         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11785         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11786         account only if HONOR_REG_ALLOC_ORDER is not defined.
11787         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11788         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11789
11790 2010-04-29  Jon Grant  <04@jguk.org>
11791
11792         * collect2.c (vflag): Change type from int to bool.
11793         (debug): Likewise.
11794         (helpflag): New global bool.
11795         (main): Set vflag and debug with boolean, not integer truth values.
11796         Accept new "--help" option and output usage text if found.
11797         * collect2.h (vflag): Update prototype.
11798         (debug): Likewise.
11799
11800 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11801
11802         PR bootstrap/43936
11803         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11804
11805 2010-04-29  Richard Guenther  <rguenther@suse.de>
11806
11807         PR bootstrap/43935
11808         * plugin.h (invoke_plugin_callbacks): Annotate arguments
11809         with ATTRIBUTE_UNUSED.
11810
11811 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11812
11813         PR target/43921
11814         * config/i386/i386.c (get_some_local_dynamic_name): Replace
11815         INSN_P with NONDEBUG_INSN_P.
11816         (distance_non_agu_define): Likewise.
11817         (distance_agu_use): Likewise.
11818
11819 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
11820
11821         From Dominique d'Humieres  <dominiq@lps.ens.fr>
11822         PR bootstrap/43858
11823         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11824         test_set.
11825
11826 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
11827
11828         * plugin.h (invoke_plugin_callbacks): New inline function.
11829         * plugin.c (flag_plugin_added): New global flag.
11830         (add_new_plugin): Initialize above flag.
11831         (invoke_plugin_callbacks): Rename to ...
11832         (invoke_plugin_callbacks_full): ... this.
11833
11834 2010-04-28  Jan Hubicka  <jh@suse.cz>
11835
11836         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11837         (lto_varpool_replace_node): New.
11838         (lto_symtab_resolve_symbols): Resolve varpool nodes.
11839         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11840         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11841         * cgraph.h (varpool_node_ptr): New type.
11842         (varpool_node_ptr): New vector.
11843         (varpool_node_set_def): New structure.
11844         (varpool_node_set): New type.
11845         (varpool_node_set): New vector.
11846         (varpool_node_set_element_def): New structure.
11847         (varpool_node_set_element, const_varpool_node_set_element): New types.
11848         (varpool_node_set_iterator): New type.
11849         (varpool_node): Add prev pointers, add used_from_other_partition,
11850         in_other_partition.
11851         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11852         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11853         varpool_get_node, varpool_remove_node): Declare.
11854         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11855         varpool_node_set_size): New inlines.
11856         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11857         * tree-pass.h (varpool_node_set_def): Forward declare.
11858         (ipa_opt_pass_d): Summary writting takes vnode sets too.
11859         (ipa_write_optimization_summaries): Update prototype.
11860         * ipa-cp.c (ipcp_write_summary): Update.
11861         * ipa-reference.c (ipa_reference_write_summary): Update.
11862         * lto-cgraph.c (lto_output_varpool_node): New static function.
11863         (output_varpool): New function.
11864         (input_varpool_node): New static function.
11865         (input_varpool_1): New function.
11866         (input_cgraph): Input varpool.
11867         * ipa-pure-const.c (pure_const_write_summary): Update.
11868         * lto-streamer-out.c (lto_output): Update, output varpool too.
11869         (write_global_stream): Kill WPA hack.
11870         (produce_asm_for_decls): Update.
11871         (output_alias_pair_p): Handle variables.
11872         (output_unreferenced_globals): Output only needed partition of varpool.
11873         * ipa-inline.c (inline_write_summary): Update.
11874         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11875         cgraph.
11876         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11877         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11878         varpool_node_set_new, varpool_node_set_add,
11879         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11880         debug_varpool_node_set): New functions.
11881         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11882         (execute_one_pass): Process new decls too.
11883         (ipa_write_summaries_2): Pass around vsets.
11884         (ipa_write_summaries_1): Likewise.
11885         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11886         to add.
11887         (ipa_write_optimization_summaries_1): Pass around vsets.
11888         (ipa_write_optimization_summaries): Likewise.
11889         * varpool.c (varpool_get_node): New.
11890         (varpool_node): Update doubly linked lists.
11891         (varpool_remove_node): New.
11892         (dump_varpool_node): More dumping.
11893         (varpool_enqueue_needed_node): Update doubly linked lists.
11894         (decide_is_variable_needed): Kill ltrans hack.
11895         (varpool_finalize_decl): Kill lto hack.
11896         (varpool_assemble_decl): Skip decls in other partitions.
11897         (varpool_assemble_pending_decls): Update doubly linkes lists.
11898         (varpool_empty_needed_queue): Likewise.
11899         (varpool_extra_name_alias): Likewise.
11900         * lto-streamer.c (lto_get_section_name): Add vars section.
11901         * lto-streamer.h (lto_section_type): Update.
11902         (output_varpool, input_varpool): Declare.
11903
11904 2010-04-28  Mike Stump  <mikestump@comcast.net>
11905
11906         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11907
11908 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11909
11910         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11911         record or union type with RECORD_OR_UNION_TYPE_P predicate.
11912         (lto_input_ts_type_tree_pointers): Likewise.
11913         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11914         (lto_output_ts_type_tree_pointers): Likewise.
11915
11916 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11917
11918         Uniquization of constants at the Tree level
11919         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11920         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11921         bit to the end.
11922         (tree_output_constant_def): Declare.
11923         * gimplify.c (gimplify_init_constructor): When using block copy, first
11924         uniquize the constant constructor on the RHS.
11925         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11926         DECL_IN_CONSTANT_POOL flag.
11927         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11928         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11929         constant pool.
11930         (assemble_variable): Deal with symbols belonging to the tree constant
11931         pool.
11932         (get_constant_section): Add ALIGN parameter and simplify.
11933         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11934         (assemble_constant_contents): Use the expression of the VAR_DECL.
11935         (output_constant_def_contents): Use the alignment of the VAR_DECL.
11936         (tree_output_constant_def): New global function.
11937         (mark_constant): Use the expression of the VAR_DECL.
11938         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11939         its expression.
11940         (output_object_block): Likewise and assemble the expression.
11941
11942 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11943
11944         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11945         hash_tree, eq_tree): New tree hash table.
11946         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11947         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11948         lto_orig_address_remove): Reimplement.
11949
11950 2010-04-28  Xinliang David Li  <davidxl@google.com>
11951
11952         PR c/42643
11953         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11954         (compute_uninit_opnds_pos): New function.
11955         (is_non_loop_exit_postdominating): New function.
11956         (compute_control_dep_chain): New function.
11957         (find_pdom): New function.
11958         (convert_control_dep_chain_into_preds): New function.
11959         (find_predicates): New function.
11960         (find_control_equiv_block): New function.
11961         (collect_phi_def_edges): New function.
11962         (find_def_preds): New function.
11963         (find_dom): New function.
11964         (dump_predicates): New function.
11965         (get_cmp_code): New function.
11966         (is_value_included_in): New function.
11967         (find_matching_predicate_in_rest_chains): New function.
11968         (use_pred_not_overlap_with_undef_path_pred): New function.
11969         (is_use_properly_guarded): New function.
11970         (normalize_cond_1): New function.
11971         (is_and_or_or): New function.
11972         (normalize_cond): New function.
11973         (is_gcond_subset_of): New function.
11974         (is_subset_of_any): New function.
11975         (is_or_set_subset_of): New function.
11976         (is_and_set_subset_of): New function.
11977         (is_norm_cond_subset_of): New function.
11978         (is_pred_expr_subset_of): New function.
11979         (is_pred_chain_subset_of): New function.
11980         (is_included_in): New function.
11981         (is_superset_of): New function.
11982         (find_uninit_use): New function.
11983         (warn_uninitialized_phi): New function.
11984         (compute_possibly_undefined_names): New function.
11985         (ssa_undefined_value_p): New function.
11986         (execute_late_warn_uninitialized): New function.
11987         * tree-ssa.c (ssa_undefined_value_p): Removed.
11988         (warn_uninit): Changed to extern.
11989         (warn_uninitialized_phi): Removed.
11990         (warn_uninitialized_vars): Changed to extern.
11991         (execute_late_warn_uninitialized): Removed
11992         * tree-flow.h: Add new prototypes.
11993         * timevar.def: Add new time variable.
11994         * Makefile.in: Add new build file.
11995
11996 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
11997
11998         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11999         type if available.
12000
12001 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12002
12003         PR target/22224
12004         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
12005
12006 2010-04-28  Martin Jambor  <mjambor@suse.cz>
12007
12008         * cgraph.h (struct cgraph_node): New field indirect_calls.
12009         (struct cgraph_indirect_call_info): New type.
12010         (struct cgraph_edge): Removed field indirect_call. New fields
12011         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
12012         (cgraph_create_indirect_edge): Declare.
12013         (cgraph_make_edge_direct): Likewise.
12014         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
12015         * ipa-prop.h (struct ipa_param_call_note): Removed.
12016         (struct ipa_node_params): Removed field param_calls.
12017         (ipa_create_all_structures_for_iinln): Declare.
12018         * cgraph.c: Described indirect edges and uids in initial comment.
12019         (cgraph_add_edge_to_call_site_hash): New function.
12020         (cgraph_edge): Search also among the indirect edges, use
12021         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
12022         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
12023         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
12024         site hash.
12025         (initialize_inline_failed): Assign a reason to indirect edges.
12026         (cgraph_create_edge_1): New function.
12027         (cgraph_create_edge): Moved some functionality to
12028         cgraph_create_edge_1.
12029         (cgraph_create_indirect_edge): New function.
12030         (cgraph_edge_remove_callee): Add an assert checking for
12031         non-indirectness.
12032         (cgraph_edge_remove_caller): Special-case indirect edges.
12033         (cgraph_remove_edge): Likewise.
12034         (cgraph_set_edge_callee): New function.
12035         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
12036         (cgraph_make_edge_direct): New function.
12037         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
12038         the declaration of the call statement matches.
12039         (cgraph_node_remove_callees): Special-case indirect edges.
12040         (cgraph_clone_edge): Likewise.
12041         (cgraph_clone_node): Clone also the indirect edges.
12042         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
12043         indirect_call, dump count of indirect_calls edges.
12044         * ipa-prop.c (iinlining_processed_edges): New variable.
12045         (ipa_note_param_call): Create indirect edges instead of
12046         creating notes.  New parameter node.
12047         (ipa_analyze_call_uses): New parameter node, pass it on to
12048         ipa_note_param_call.
12049         (ipa_analyze_stmt_uses): Likewise.
12050         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12051         (print_edge_addition_message): Work on edges rather than on notes.
12052         (update_call_notes_after_inlining): Likewise, renamed to
12053         update_indirect_edges_after_inlining.
12054         (ipa_create_all_structures_for_iinln): New function.
12055         (ipa_free_node_params_substructures): Do not free notes.
12056         (ipa_edge_duplication_hook): Propagate bits within
12057         iinlining_processed_edges bitmap.
12058         (ipa_node_duplication_hook): Do not duplicate notes.
12059         (free_all_ipa_structures_after_ipa_cp): Renamed to
12060         ipa_free_all_structures_after_ipa_cp.
12061         (free_all_ipa_structures_after_iinln): Renamed to
12062         ipa_free_all_structures_after_iinln.
12063         (ipa_write_param_call_note): Removed.
12064         (ipa_read_param_call_note): Removed.
12065         (ipa_write_indirect_edge_info): New function.
12066         (ipa_read_indirect_edge_info): Likewise.
12067         (ipa_write_node_info): Do not stream notes, do stream information
12068         in indirect edges.
12069         (ipa_read_node_info): Likewise.
12070         (lto_ipa_fixup_call_notes): Removed.
12071         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12072         * ipa-inline.c (pass_ipa_inline): Likewise.
12073         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12074         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12075         * tree-inline.c (copy_bb): Removed an unnecessary double check for
12076         is_gimple_call.
12077         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12078         edges.
12079         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12080         (output_cgraph): Stream also indirect edges.
12081         (lto_output_edge): Added capability to stream indirect edges.
12082         (input_edge): Likewise.
12083         (input_cgraph_1): Likewise.
12084         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12085         of indirect edges.
12086
12087 2010-04-28  Richard Guenther  <rguenther@suse.de>
12088
12089         PR tree-optimization/43879
12090         PR tree-optimization/43909
12091         * tree-ssa-structalias.c (struct variable_info): Add
12092         only_restrict_pointers flag.
12093         (new_var_info): Initialize it.  Increment stats.total_vars here.
12094         (create_function_info_for): Do not increment stats.total_vars here.
12095         (get_function_part_constraint): Fix build with C++.
12096         (insert_into_field_list): Remove.
12097         (push_fields_onto_fieldstack): Properly merge fields.
12098         (create_variable_info_for): Split and simplify.
12099         (create_variable_info_for_1): New piece.
12100         (intra_create_variable_infos): Properly make restrict constraints
12101         from parameters.
12102
12103 2010-04-28  Richard Guenther  <rguenther@suse.de>
12104
12105         PR c++/43880
12106         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12107
12108 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12109             Jan Hubicka  <hubicka@ucw.cz>
12110
12111         * doc/invoke.texi (-Wsuggest-attribute=const,
12112         -Wsuggest-attribute=pure): Document.
12113         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12114         (function_always_visible_to_compiler_p,
12115         suggest_attribute, warn_function_pure, warn_function_const):
12116         New functions.
12117         (check_call): Improve debug info.
12118         (analyze_function): Do not check availability.
12119         (add_new_function): Check availability.
12120         (propagate): Output warnings.
12121         (skip_function_for_local_pure_const): New function.
12122         (local_pure_const): Use it; output warnings.
12123         * common.opt (Wsuggest-attribute=const,
12124         Wsuggest-attribute=pure): New.
12125
12126 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
12127
12128         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12129         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12130         or DW_CFA_def_cfa_offset{,_sf}.
12131
12132 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12133
12134         * tree.h: Fix truncated long macros.
12135
12136 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
12137
12138         * collect2.c (TARGET_64BIT): Redefine to target's default.
12139         * tlink.c: Likewise.
12140         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12141         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12142         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12143         for underscoring __USER_LABEL_PREFIX__.
12144         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12145         (SUB_LINK_ENTRY32): New.
12146         (SUB_LINK_ENTRY64): New.
12147         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12148         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12149         (SUB_LINK_ENTRY64): New.
12150         (SUB_LINK_ENTRY): New.
12151         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12152         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12153         x64 target is choosen.
12154         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12155         * configure: Regenerated.
12156         * configure.ac (leading-mingw64-underscores): Option added.
12157
12158 2010-04-27  Jan Hubicka  <jh@suse.cz>
12159
12160         * doc/invoke.texi (-fipa-profile): Document.
12161         * opts.c (decode_options): Enable ipa-profile at -O1.
12162         * timevar.def (TV_IPA_PROFILE): Define.
12163         * common.opt (fipa-profile): Add.
12164         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12165         flag for clones.
12166         (cgraph_propagate_frequency): Handle only local ones.
12167         * tree-pass.h (pass_ipa_profile): Declare.
12168         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12169         (pass_ipa_profile): Use TV_IPA_PROFILE.
12170         * ipa.c (ipa_profile): New function.
12171         (gate_ipa_profile): Likewise.
12172         (pass_ipa_profile): New global variable.
12173         * passes.c (pass_ipa_profile): New.
12174
12175 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
12176
12177         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12178
12179 2010-04-27  Martin Jambor  <mjambor@suse.cz>
12180
12181         PR middle-end/43812
12182         * ipa.c (dissolve_same_comdat_group_list): New function.
12183         (function_and_variable_visibility): Call
12184         dissolve_same_comdat_group_list when comdat group contains external or
12185         newly local nodes.
12186         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12187         lists are circular and that they contain only DECL_ONE_ONLY nodes.
12188
12189 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
12190
12191         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12192         (const_hash_1) <VECTOR_CST>: New case.
12193         (compare_constant) <VECTOR_CST>: Likewise.
12194         <ADDR_EXPR>: Deal with LABEL_REFs.
12195         (copy_constant) <VECTOR_CST>: New case.
12196
12197 2010-04-27  Jan Hubicka  <jh@suse.cz>
12198
12199         * cgraph.c (cgraph_propagate_frequency): New function.
12200         * cgraph.h (cgraph_propagate_frequency): Declare.
12201         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12202         cgraph_propagate_frequency.
12203
12204 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
12205
12206         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12207
12208 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
12209
12210         PR target/40657
12211         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12212         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12213         here to determine which regs to push and how much stack to reserve.
12214
12215 2010-04-27  Jie Zhang  <jie@codesourcery.com>
12216
12217         * doc/gimple.texi (gimple_statement_with_ops): Remove
12218         addresses_taken field.
12219         (gimple_statement_with_memory_ops): Likewise.
12220
12221 2010-04-27  Jan Hubicka  <jh@suse.cz>
12222
12223         * tree-inline.c (eni_inlining_weights): Remove.
12224         (estimate_num_insns): Special case more builtins.
12225
12226 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
12227
12228         PR c/32207
12229         * c-typeck.c (build_binary_op): Move forward check for comparison
12230         pointer with null pointer constant and adjust the diagnostic message.
12231
12232 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
12233
12234         PR lto/42776
12235         * configure.ac (gcc_cv_as_section_has_align): Set if installed
12236         binutils supports extended .section directive needed by LTO, or
12237         warn if older binutils found.
12238         (LTO_BINARY_READER): New AC_SUBST'd variable.
12239         (LTO_USE_LIBELF): Likewise.
12240         * gcc/config.gcc (lto_binary_reader): New target-specific configure
12241         variable.
12242         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12243         (LTO_USE_LIBELF): Likewise.
12244         * configure: Regenerate.
12245
12246         * collect2.c (is_elf): Rename from this ...
12247         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12248          object files in addition to ELF-formatted ones.
12249         (scan_prog_file): Caller updated.  Also allow for LTO info marker
12250         symbol to be prefixed or not by an extra underscore.
12251
12252         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12253         * config/i386/winnt.c: Also #include lto-streamer.h
12254         (i386_pe_asm_named_section): Specify 1-byte section alignment for
12255         LTO named sections.
12256         (i386_pe_asm_output_aligned_decl_common): Add comment.
12257         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12258
12259 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
12260
12261         PR target/43889
12262         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12263         Add missing earlyclobber for second alternative.
12264
12265 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
12266
12267         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
12268         bits for artificial defs at the top of the block.
12269         * fwprop.c (single_def_use_enter_block): Don't call it.
12270
12271 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
12272
12273         PR 43715
12274         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
12275         instead of "$gcc_cv_objdump -T".
12276         Use "-undefined dynamic_lookup" on darwin.
12277         * gcc/configure: Regenerate.
12278
12279 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
12280
12281         PR c/43893
12282         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
12283
12284 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
12285
12286         * c-parser.c (struct c_token): Move location field up.
12287         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
12288         (struct c_declspecs): Convert typespec_word, storage_class, and
12289         default_int_p into bitfields.
12290         (struct c_declarator): Move loc field up.
12291
12292 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
12293
12294         * cfgloop.h (struct loop): Move can_be_parallel field up.
12295         * ipa-prop.h (struct ip_node_params): Move bitfields up.
12296         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
12297         down.
12298         (struct iv_cand): Convert pos field into a bitfield.
12299         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
12300         field up.
12301         (struct _stmt_vec_info): Shuffle fields for better packing.
12302
12303 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
12304
12305         * varasm.c (IN_NAMED_SECTION): Remove guard.
12306         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
12307         (IN_NAMED_SECTION_P): ...this.
12308         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
12309         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12310
12311 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
12312
12313         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
12314         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
12315         of shadowing it.  Fix comments.
12316
12317 2010-04-26  Jan Hubicka  <jh@suse.cz>
12318
12319         * cgraph.c (cgraph_create_node): Set node frequency to normal.
12320         (cgraph_clone_node): Copy function frequency.
12321         * cgraph.h (node_frequency): New enum
12322         (struct cgraph_node): Add.
12323         * final.c (rest_of_clean_state): Update.
12324         * lto-cgraph.c (lto_output_node): Output node frequency.
12325         (input_overwrite_node): Input node frequency.
12326         * tre-ssa-loop-ivopts (computation_cost): Update.
12327         * lto-streamer-out.c (output_function): Do not output function
12328         frequency.
12329         * predict.c (maybe_hot_frequency_p): Update and handle functions
12330         executed once.
12331         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
12332         attribute lookup.
12333         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12334         (compute_function_frequency): Set noreturn functions to be executed
12335         once.
12336         (choose_function_section): Update.
12337         * lto-streamer-in.c (input_function): Do not input function frequency.
12338         * function.c (allocate_struct_function): Do not initialize function
12339         frequency.
12340         * function.h (function_frequency): Remove.
12341         (struct function): Remove function frequency.
12342         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12343         (try_update): Update.
12344         * tree-inline.c (initialize_cfun): Do not update function frequency.
12345         * passes.c (pass_init_dump_file): Update.
12346         * i386.c (ix86_compute_frame_layout): Update.
12347         (ix86_pad_returns): Update.
12348
12349 2010-04-26  Jie Zhang  <jie@codesourcery.com>
12350
12351         PR tree-optimization/43833
12352         * tree-vrp.c (range_int_cst_p): New.
12353         (range_int_cst_singleton_p): New.
12354         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12355         when both operands are constants.  Use range_int_cst_p in
12356         BIT_IOR_EXPR case.
12357
12358 2010-04-26  Jan Hubicka  <jh@suse.cz>
12359
12360         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12361
12362 2010-04-26  Richard Guenther  <rguenther@suse.de>
12363
12364         PR lto/43080
12365         * gimple.c (gimple_decl_printable_name): Deal gracefully
12366         with a NULL DECL_NAME.
12367
12368 2010-04-26  Richard Guenther  <rguenther@suse.de>
12369
12370         PR lto/42425
12371         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12372         if emitting debug information and it is either a function
12373         or a namespace decl.
12374
12375 2010-04-26  Ira Rosen  <irar@il.ibm.com>
12376
12377         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12378         determine if the statement is vectorizable, and a macro to access it.
12379         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12380         Skip statements that can't be vectorized. If the analysis fails,
12381         mark the statement as unvectorizable if vectorizing basic block.
12382         (vect_compute_data_refs_alignment): Likewise.
12383         (vect_verify_datarefs_alignment): Skip statements marked as
12384         unvectorizable. Add print.
12385         (vect_analyze_group_access): Skip statements that can't be
12386         vectorized. If the analysis fails, mark the statement as
12387         unvectorizable if vectorizing basic block.
12388         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12389         * tree-vect-stmts.c (vectorizable_store): Fix the number of
12390         generated stmts for SLP.
12391         (new_stmt_vec_info): Initialize the new field.
12392         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12393         statements marked as unvectorizable.
12394
12395 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
12396
12397         * c-common.c (flag_isoc1x): New.
12398         (flag_isoc99): Update comment.
12399         * c-common.h (flag_isoc1x): New.
12400         (flag_isoc99): Update comment.
12401         * c-cppbuiltin.c (builtin_define_float_constants): Also define
12402         __<type>_DECIMAL_DIG__.
12403         * c-opts.c (set_std_c1x): New.
12404         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
12405         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
12406         * c.opt (-std=c1x, -std=gnu1x): New options.
12407         * doc/cpp.texi: Mention -std=c1x.
12408         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
12409         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
12410         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
12411         * doc/standards.texi: Mention C1X.
12412         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
12413         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
12414         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
12415         Define for C1X.
12416
12417 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
12418
12419         * config/i386/gmon-sol2.c (_mcleanup): Change format string
12420         placeholder from 0x%x to %#x.
12421         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12422         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12423         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12424         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12425         * config/i386/i386.c (ix86_target_string): Ditto.
12426         (output_pic_addr_const): Ditto.
12427         (print_operand): Ditto.
12428
12429 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
12430
12431         * combine.c (find_split_point): Add third argument.  Use it
12432         to find nested multiply-accumulate instructions.  Adjust calls.
12433         (try_combine): Adjust call to find_split_point.
12434
12435 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
12436
12437         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
12438
12439 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
12440
12441         PR tree-optimization/41442
12442         * fold-const.c (merge_truthop_with_opposite_arm): New function.
12443         (fold_binary_loc): Call it.
12444
12445 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12446
12447         * toplev.c (general_init): Set default for fdiagnostics-show-option.
12448         * opts.c (common_handle_option): Allow disabling it.
12449         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
12450
12451 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
12452
12453         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
12454         between modes if both types are integral.
12455
12456 2010-04-23  Richard Guenther  <rguenther@suse.de>
12457
12458         PR tree-optimization/43572
12459         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
12460
12461 2010-04-23  Richard Guenther  <rguenther@suse.de>
12462
12463         PR lto/43455
12464         * tree-inline.c (tree_can_inline_p): Also check compatibility
12465         of return types.
12466
12467 2010-04-23  Martin Jambor  <mjambor@suse.cz>
12468
12469         PR tree-optimization/43846
12470         * tree-sra.c (struct access): New flag grp_assignment_read.
12471         (build_accesses_from_assign): Set grp_assignment_read.
12472         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
12473         (enum mark_read_status): New type.
12474         (analyze_access_subtree): Propagate grp_assignment_read, create
12475         accesses also if both direct_read and root->grp_assignment_read.
12476
12477 2010-04-23  Martin Jambor  <mjambor@suse.cz>
12478
12479         PR middle-end/43835
12480         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
12481         function does not have type attributes.
12482
12483 2010-04-23  Richard Guenther  <rguenther@suse.de>
12484
12485         PR lto/42653
12486         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
12487         of FUNCTION_DECLs.
12488
12489 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12490
12491         * sese.h (create_if_region_on_edge): Remove.
12492
12493         * sese.c (create_if_region_on_edge): Make static.
12494
12495         * tree-inline.c: Do not include ggc.h.
12496
12497         * expr.c: Do not include ggc.h.
12498
12499         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
12500         dependencies.
12501
12502 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12503
12504         PR target/43744
12505         * config/sh/sh.c (find_barrier): Don't emit a constant pool
12506         in the middle of insns for casesi_worker_2.
12507
12508 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
12509
12510         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
12511
12512 2010-04-22  Ira Rosen  <irar@il.ibm.com>
12513
12514         PR tree-optimization/43842
12515         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12516         loop unrolling in update of exit phis. Fix comment.
12517         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
12518         least two reduction statements in the loop before starting SLP
12519         analysis.
12520
12521 2010-04-22  Nick Clifton  <nickc@redhat.com>
12522
12523         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
12524
12525 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
12526
12527         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
12528         to simplify a + ~a.
12529
12530 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12531
12532         * tree-parloops.c (loop_parallel_p): New argument
12533         parloop_obstack.  Pass it down.
12534         (parallelize_loops): New variable parloop_obstack.  Initialize it,
12535         pass it down, free it.
12536
12537         * tree-loop-linear.c (linear_transform_loops): Pass down
12538         lambda_obstack.
12539
12540         * tree-data-ref.h (lambda_compute_access_matrices): New argument
12541         of type struct obstack *.
12542
12543         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
12544         scratch_obstack.  Initialize it, pass down, free it.
12545
12546         * lambda.h (lambda_loop_new): Remove.
12547         (lambda_matrix_new, lambda_matrix_inverse)
12548         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
12549         argument of type struct obstack *.
12550
12551         * lambda-trans.c (lambda_trans_matrix_new): New argument
12552         lambda_obstack.  Pass it down, use obstack allocation for ret.
12553         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
12554         it down.
12555
12556         * lambda-mat.c (lambda_matrix_get_column)
12557         (lambda_matrix_project_to_null): Remove.
12558         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
12559         allocation for mat.
12560         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
12561         lambda_obstack.
12562
12563         * lambda-code.c (lambda_loop_new): New function.
12564         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
12565         (lambda_compute_auxillary_space, lambda_compute_target_space)
12566         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
12567         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
12568         (build_access_matrix): New argument lambda_obstack.  Use obstack
12569         allocation for am.
12570         (lambda_compute_step_signs, lambda_compute_access_matrices): New
12571         argument lambda_obstack.  Pass it down.
12572
12573 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12574
12575         * optabs.h (expand_widening_mult): Declare.
12576
12577 2010-04-22  Richard Guenther  <rguenther@suse.de>
12578
12579         PR tree-optimization/43845
12580         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
12581         lookup the CALL_EXPR function and arguments.
12582
12583 2010-04-22  Nick Clifton  <nickc@redhat.com>
12584
12585         * config/stormy16/stormy16.c
12586         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
12587         * config/stormy16/stormy16.h: Tidy up formatting.
12588         (DONT_USE_BUILTIN_SETJMP): Remove definition.
12589         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
12590         (ineqbranchsi): Delete pattern.
12591         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
12592         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
12593         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12594         stormy16-lib2-ucmpsi2.c.
12595
12596 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12597
12598         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
12599         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
12600         extra set merge_set_noclobber, and use it to relax the final test
12601         slightly.
12602         * df.h (df_simulate_find_noclobber_defs): Declare.
12603         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
12604         conditional defs.
12605         (df_simulate_find_noclobber_defs): New function.
12606
12607 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
12608
12609         * config/i386/i386.md: Use {} around multi-line preparation statements.
12610
12611 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12612
12613         * c-tree.h (push_init_level, pop_init_level, set_init_index)
12614         (process_init_element): New argument of type struct obstack *.
12615
12616         * c-typeck.c (push_init_level, pop_init_level, set_designator)
12617         (set_init_index, set_init_label, set_nonincremental_init)
12618         (set_nonincremental_init_from_string, find_init_member)
12619         (output_init_element, output_pending_init_elements)
12620         (process_init_element): New argument braced_init_obstack.  Pass it
12621         down.
12622         (push_range_stack, add_pending_init): New argument
12623         braced_init_obstack.  Use obstack allocation.
12624
12625         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
12626         braced_init_obstack.  Pass it down.
12627         (c_parser_braced_init): New variables ret, braced_init_obstack.
12628         Initialize obstack, pass it down and finally free it.
12629
12630 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12631
12632         PR middle-end/29274
12633         * tree-pass.h (pass_optimize_widening_mul): Declare.
12634         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12635         gate_optimize_widening_mul): New static functions.
12636         (pass_optimize_widening_mul): New.
12637         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12638         <case MULT_EXPR>: Remove support for widening multiplies.
12639         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12640         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12641         simplify_gen_unary rather than directly building extensions.
12642         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12643         WIDEN_MULT_EXPR.
12644         * expmed.c (expand_widening_mult): New function.
12645         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12646
12647 2010-04-21  Jan Hubicka  <jh@suse.cz>
12648
12649         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12650         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12651         * lto-wpa-fixup.c: Remove.
12652         * Makefile.in (lto-wpa-fixup.o): Remove.
12653         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12654         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12655         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12656
12657 2010-04-21  Jan Hubicka  <jh@suse.cz>
12658
12659         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12660         add write_optimization_summary, read_optimization_summary.
12661         (ipa_write_summaries_of_cgraph_node_set): Remove.
12662         (ipa_write_optimization_summaries): Declare.
12663         (ipa_read_optimization_summaries): Declare.
12664         * ipa-cp.c (pass_ipa_cp): Update.
12665         * ipa-reference.c (pass_ipa_reference): Update.
12666         * ipa-pure-const.c (pass_ipa_pure_const): Update.
12667         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12668         Update.
12669         * ipa-inline.c (pass_ipa_inline): Update.
12670         * ipa.c (pass_ipa_whole_program): Update.
12671         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12672         * passes.c (ipa_write_summaries_1): Do not test wpa.
12673         (ipa_write_optimization_summaries_1): New.
12674         (ipa_write_optimization_summaries): New.
12675         (ipa_read_summaries): Do not test ltrans.
12676         (ipa_read_optimization_summaries_1): New.
12677         (ipa_read_optimization_summaries): New.
12678
12679 2010-04-21  Jan Hubicka  <jh@suse.cz>
12680
12681         * lto-cgraph.c (lto_output_node): Do not output comdat groups
12682         for boundary nodes.
12683         (output_cgraph): Do not arrange comdat groups for boundary nodes.
12684
12685 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12686
12687         PR debug/40040
12688         * dwarf2out.c (add_name_and_src_coords_attributes): Add
12689         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
12690
12691 2010-04-21  Jan Hubicka  <jh@suse.cz>
12692
12693         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
12694
12695 2010-04-21  Jan Hubicka  <jh@suse.cz>
12696
12697         * varpool.c (decide_is_variable_needed): Variable is always needed
12698         during ltrans.
12699
12700 2010-04-21  Jan Hubicka  <jh@suse.cz>
12701
12702         * opts.c (decode_options): Enable pure-const pass for whopr.
12703
12704 2010-04-21  Jan Hubicka  <jh@suse.cz>
12705
12706         * cgraph.c (dump_cgraph_node): Dump also assembler name.
12707         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
12708         at WPA dumping.
12709         (cgraph_decide_inlining): Do not expect callee to be removed in all
12710         cases.
12711
12712 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
12713
12714         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
12715
12716 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
12717
12718         * config/i386/i386.md (x86_shrd): Add athlon_decode and
12719         amdfam10_decode attributes.
12720
12721 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12722
12723         PR middle-end/43570
12724         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
12725         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
12726         (lower_copyprivate_clauses): Use private var in outer
12727         context instead of original var.  Make sure the types
12728         are correct for VLAs.
12729
12730 2010-04-21  Richard Guenther  <rguenther@suse.de>
12731
12732         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
12733         to non-pointer objects.
12734
12735 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12736
12737         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
12738         last chain entry if it starts with the still current label.
12739         (add_location_or_const_value_attribute): Check that
12740         loc_list->first->next is NULL instead of comparing ->first with ->last.
12741         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12742         to add_var_loc_to_decl.
12743
12744         * dwarf2out.c (output_call_frame_info): For dw_cie_version
12745         >= 4 add also address size and segment size fields into CIE header.
12746
12747         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12748         long as address size is the same as sizeof (void *) and
12749         segment size is 0.
12750         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
12751         address size or segment size is unexpected, return DW_EH_PE_omit.
12752         (classify_object_over_fdes): If get_cie_encoding returned
12753         DW_EH_PE_omit, return -1.
12754         (init_object): If classify_object_over_fdes returned -1,
12755         pretend there were no FDEs at all.
12756
12757 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
12758
12759         * config/i386/i386.md (bswap<mode>2): Macroize expander from
12760         bswap{si,di}2 using SWI48 mode iterator.
12761         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12762         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
12763         set modrm attribute of bswap insn to 0 and remove length attribute.
12764         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12765         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
12766         set mode attribute to <MODE> and remove length attribute.
12767
12768 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
12769
12770         PR rtl-optimization/43520
12771         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12772         zero available registers.
12773
12774 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12775
12776         * builtins.c (fold_builtin_cproj): Fold more cases.
12777
12778 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12779
12780         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12781         (fold_builtin_1): Fold builtin cproj.
12782         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12783         Use ATTR_CONST_NOTHROW_LIST.
12784
12785 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
12786
12787         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12788         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
12789         ffsi2_no_cmove for !TARGET_CMOVE.
12790         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
12791         (ffssi2): Remove expander.
12792         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12793         mode iterator.
12794         (ctz<mode>2): Ditto from ctz{si,di}2.
12795         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12796         mode iterator.
12797         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12798         mode iterator.
12799
12800 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12801
12802         * dwarf2out.c (AT_linkage_name): Define.
12803         (clone_as_declaration): Handle DW_AT_linkage_name.
12804         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12805         of DW_AT_MIPS_linkage_name.
12806         (move_linkage_attr): Likewise.
12807         (dwarf2out_finish): Likewise.
12808
12809 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
12810
12811         PR middle-end/41952
12812         * fold-const.c (fold_comparison): New folding rule.
12813
12814 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
12815
12816         * double-int.h (double_int_setbit): Declare.
12817         * double-int.c (double_int_setbit): New function.
12818         * rtl.h (immed_double_int_const): Declare.
12819         * emit-rtl.c (immed_double_int_const): New function.
12820         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12821         and immed_double_int_const functions.
12822         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12823         expand_copysign_bit):  (Ditto.).
12824         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12825         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12826         * dojump.c (prefer_and_bit_test): (Ditto.).
12827         * expr.c (convert_modes, reduce_to_bit_field_precision,
12828         const_vector_from_tree): (Ditto.).
12829         * expmed.c (mask_rtx, lshift_value): (Ditto.).
12830
12831 2010-04-20  Jan Hubicka  <jh@suse.cz>
12832
12833         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12834         (dump_cgraph_node): Dump new flags.
12835         * cgraph.h (struct cgraph_node): Add flags
12836         reachable_from_other_partition and in_other_partition.
12837         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12838         other partition can not be removed.
12839         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12840         the other partition must be output; silence sanity checking on
12841         leaking functions bodies from other paritition.
12842         * lto-cgraph.c (reachable_from_other_partition_p): New function.
12843         (lto_output_node): Output new flags; do not sanity check that inline
12844         clones are output; drop lto_forced_extern_inline_p code; do not mock
12845         visibility flags at partition boundaries.
12846         (add_node_to): New function.
12847         (output_cgraph): Use it to sort functions so masters appear before
12848         clones.
12849         (input_overwrite_node): Input new flags.
12850         * passes.c (ipa_write_summaries): Do not call
12851         lto_new_extern_inline_states.
12852         * lto-section-out.c (forced_extern_inline,
12853         lto_new_extern_inline_states lto_delete_extern_inline_states,
12854         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12855         * lto-streamer.h (lto_new_extern_inline_states,
12856         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12857         lto_forced_extern_inline_p): Kill.
12858
12859 2010-04-20  Richard Guenther  <rguenther@suse.de>
12860
12861         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12862         from vars that can have pointers.
12863         (process_constraint): Dump useless constraints.
12864
12865 2010-04-20  Richard Guenther  <rguenther@suse.de>
12866
12867         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12868         (dump_sa_points_to_info): Remove asserts.
12869         (init_base_vars): nothing_id isn't an escape point nor does it
12870         have pointers.
12871
12872 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12873
12874         * tree.h (TYPE_REF_IS_RVALUE): Define.
12875         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12876         should_move_die_to_comdat, prune_unused_types_walk): Handle
12877         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12878         (modified_type_die, gen_reference_type_die): Emit
12879         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12880         if TYPE_REF_IS_RVALUE and -gdwarf-4.
12881
12882 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12883
12884         PR target/43635
12885         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12886         calls for -fpic -m31 if they have been sibcall optimized.
12887
12888 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
12889
12890         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12891         ar.lc fixed and call-used.
12892
12893         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12894
12895 2010-04-19  Jan Hubicka  <jh@suse.cz>
12896
12897         * opts.c (decode_options): Disable whpr incompatible passes.
12898         * lto/lto.c (lto_1_to_1_map): Skip clones.
12899         (read_cgraph_and_symbols): Do not mark everything as needed.
12900         (do_whole_program_analysis): Do map only after optimizing;
12901         set proper cgraph_state; use passmanager.
12902
12903 2010-04-19  DJ Delorie  <dj@redhat.com>
12904
12905         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12906         POINTER_PLUS_EXPR and fix them.
12907
12908 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
12909
12910         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12911         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12912         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12913         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12914         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12915         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12916         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12917         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12918         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12919         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12920         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12921
12922 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12923
12924         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12925         (check_cond_move_block): Likewise.
12926         (cond_move_process_if_block): Likewise.
12927         (noce_find_if_block): Improve formatting.
12928         (find_if_header): Pass 0 to memset and tweak conditions.
12929         (cond_exec_find_if_block): Fix long lines and tweak conditions.
12930
12931 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
12932
12933         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12934         for -gdwarf-4.
12935
12936         PR middle-end/43337
12937         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12938         with non-local decl doesn't need chain.
12939
12940 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
12941
12942         * ira-color.c (allocno_reload_assign): Avoid accumulating
12943         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12944
12945 2010-04-19  Martin Jambor  <mjambor@suse.cz>
12946
12947         * gimple.h (create_tmp_reg): Declare.
12948         * gimplify.c (create_tmp_reg): New function.
12949         (gimplify_return_expr): Use create_tmp_reg.
12950         (gimplify_omp_atomic): Likewise.
12951         (gimple_regimplify_operands): Likewise.
12952         * tree-dfa.c (make_rename_temp): Likewise.
12953         * tree-predcom.c (predcom_tmp_var): Likewise.
12954         (reassociate_to_the_same_stmt): Likewise.
12955         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12956         (get_replaced_param_substitute): Likewise.
12957         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12958         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12959         * tree-ssa-pre.c (get_representative_for): Likewise.
12960         (create_expression_by_pieces): Likewise.
12961         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12962         (create_tailcall_accumulator): Likewise.
12963
12964 2010-04-19  Martin Jambor  <mjambor@suse.cz>
12965
12966         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12967         new_stmt.
12968         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12969
12970 2010-04-19  Richard Guenther  <rguenther@suse.de>
12971
12972         PR tree-optimization/43796
12973         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12974         from SCEV in the lattice.
12975         (vrp_visit_phi_node): Dump change.
12976
12977 2010-04-19  Richard Guenther  <rguenther@suse.de>
12978
12979         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12980         * configure: Re-generated.
12981
12982 2010-04-19  Richard Guenther  <rguenther@suse.de>
12983
12984         PR tree-optimization/43783
12985         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12986         constant ARRAY_REF operands two and three if possible.
12987
12988 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
12989
12990         PR target/43766
12991         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12992
12993 2010-04-19  Jie Zhang  <jie@codesourcery.com>
12994
12995         PR target/43662
12996         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12997
12998 2010-04-19  Ira Rosen  <irar@il.ibm.com>
12999
13000         PR tree-optimization/37027
13001         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
13002         and macro to access it.
13003         (vectorizable_reduction): Add argument.
13004         (vect_get_slp_defs): Likewise.
13005         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
13006         statements for possible use in SLP.
13007         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
13008         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
13009         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
13010         add new argument.
13011         (vectorizable_reduction): Likewise.
13012         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
13013         vect_get_slp_defs.
13014         (vectorizable_type_demotion, vectorizable_type_promotion,
13015         vectorizable_store): Likewise.
13016         (vect_analyze_stmt): Update call to vectorizable_reduction.
13017         (vect_transform_stmt): Likewise.
13018         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
13019         (vect_build_slp_tree): Fix indentation. Check that there are no loads
13020         from different interleaving chains in same node.
13021         (vect_slp_rearrange_stmts): New function.
13022         (vect_supported_load_permutation_p): Allow load permutations for
13023         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
13024         inside SLP nodes if necessary.
13025         (vect_analyze_slp_instance): Handle reductions.
13026         (vect_analyze_slp): Try to build SLP instances originating from groups
13027         of reductions.
13028         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
13029         (vect_get_constant_vectors): Create initial vectors for reductions
13030         according to reduction code. Add new argument.
13031         (vect_get_slp_defs): Add new argument, pass it to
13032         vect_get_constant_vectors.
13033         (vect_schedule_slp_instance): Remove SLP tree root statements.
13034
13035 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
13036
13037         * tree.h (ENUM_IS_SCOPED): Define.
13038         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
13039         for ENUM_IS_SCOPED enums.
13040
13041 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
13042
13043         * fold-const.c (fold_comparison): Use ssizetype.
13044         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13045         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
13046         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
13047         * tree-object-size.c (compute_object_sizes): Use size_type_node.
13048
13049         * tree.h (initialize_sizetypes): Remove parameter.
13050         (build_common_tree_nodes): Remove second parameter.
13051         * stor-layout.c (initialize_sizetypes): Remove parameter.
13052         Always create an unsigned type.
13053         (set_sizetype): Assert that the passed type is unsigned and simplify.
13054         * tree.c (build_common_tree_nodes): Remove second parameter.
13055         Adjust call to initialize_sizetypes.
13056         * c-decl.c (c_init_decl_processing): Remove second argument in call to
13057         build_common_tree_nodes.
13058
13059 2010-04-18  Matthias Klose  <doko@ubuntu.com>
13060
13061         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13062
13063 2010-04-18  Ira Rosen  <irar@il.ibm.com>
13064
13065         PR tree-optimization/43771
13066         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13067         load permutation doesn't have gaps.
13068
13069 2010-04-18  Jan Hubicka  <jh@suse.cz>
13070
13071         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13072         (sse_prologue_save_insn expander): Use new pattern.
13073         (sse_prologue_save_insn1): New pattern and splitter.
13074         (sse_prologue_save_insn): Update to deal also with 64bit aligned
13075         blocks.
13076         * i386.c (setup_incoming_varargs_64): Do not compute jump
13077         destination here.
13078         (ix86_gimplify_va_arg): Update alignment needed.
13079         (ix86_local_alignment): Do not align all local arrays to 128bit.
13080
13081 2010-04-17  Jan Hubicka  <jh@suse.cz>
13082
13083         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13084
13085 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13086
13087         * arm.md (negdi2): Remove redundant code to force values into a
13088         register.
13089
13090 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13091
13092         * arm/bpabi.S: Add EABI alignment attributes to objects.
13093         * arm/bpabi-v6m.S: Likewise.
13094         * arm/crti.asm: Likewise.
13095         * arm/crtn.asm: Likewise.
13096         * arm/lib1funcs.asm: Likewise.
13097         * arm/libunwind.S: Likewise.
13098
13099 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
13100
13101         * arm-protos.h (tune_params): New structure.
13102         * arm.c (current_tune): New variable.
13103         (arm_constant_limit): Delete.
13104         (struct processors): Add pointer to the tune parameters.
13105         (arm_slowmul_tune): New tuning option.
13106         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13107         (all_cores): Adjust to pick up the tuning model.
13108         (arm_constant_limit): New function.
13109         (arm_override_options): Select the appropriate tuning model.  Delete
13110         initialization of arm_const_limit.
13111         (arm_split_constant): Use the new constant-limit model.
13112         (arm_rtx_costs): Pick up the current tuning model.
13113         * arm.md (is_strongarm, is_xscale): Delete.
13114         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13115         for Xscale variant architectures.
13116         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13117
13118 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13119
13120         * config/arm/arm.c (arm_gen_constant): Remove unused variable
13121         can_shift.
13122         (arm_rtx_costs_1): Remove unused variable extra_cost.
13123         (arm_unwind_emit_set): Use variable offset.
13124         (thumb1_output_casesi): Remove unused variable flags.
13125
13126 2010-04-16  Jeff Law  <law@redhat.com>
13127
13128         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13129         needing assignment rather than doing a two-phase assignment.  Remove
13130         unused variable 'm'.
13131
13132 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13133
13134         PR bootstrap/43767
13135         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13136
13137 2010-04-16  Doug Kwan  <dougkwan@google.com>
13138
13139         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13140         (next_operand_entry_id): New static variable.
13141         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13142         (add_to_ops_vec): Assigned unique ID to operand entry.
13143         (struct oecount_s): New field ID.
13144         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13145         (undistribute_ops_list): Assign unique IDs to oecounts.
13146         (init_reassoc): reset next_operand_entry_id.
13147
13148 2010-04-16  Doug Kwan  <dougkwan@google.com>
13149
13150         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13151         missing left parenthesis.
13152
13153 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
13154
13155         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13156         *btdi_rex64 using SWI48 mode iterator.
13157         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13158         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13159         *jcc_btdi_mask_rex64.
13160
13161 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
13162
13163         * double-int.h (tree_to_double_int): Convert to macro.
13164         * double-int.c (tree_to_double_int): Remove.
13165
13166 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13167
13168         PR debug/43762
13169         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13170         with want_address 2 and in case a single element list might be
13171         possible, call it again with want_address 0.
13172
13173 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13174
13175         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13176         case 'W' print operands for HI mode.
13177         * config/h8300/h8300.h (Y0, Y2) : New constraints.
13178         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13179         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13180         * config/h8300/predicate.md (bit_register_indirect_operand): New.
13181
13182         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13183
13184         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13185         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13186         #xx:3 and #xx:4 mode.
13187
13188         * config/h8300/h8300.md (inverted load with HImode dest): Add
13189         support for H8300SX.
13190
13191         * config/h8300/predicate.md (bit_operand): Allow immediate values that
13192         satisfy 'U' constraint.
13193
13194 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13195
13196         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13197         * configure: Regenerate.
13198         * config.in: Regenerate.
13199         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13200         works.
13201
13202 2010-04-16  Richard Guenther  <rguenther@suse.de>
13203
13204         * tree.h (struct tree_decl_minimal): Move pt_uid ...
13205         (struct tree_decl_common): ... here.
13206         (DECL_PT_UID): Adjust.
13207         (SET_DECL_PT_UID): Likewise.
13208         (DECL_PT_UID_SET_P): Likewise.
13209
13210 2010-04-16  Richard Guenther  <rguenther@suse.de>
13211
13212         PR tree-optimization/43572
13213         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13214         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13215         * tree-flow.h (is_call_clobbered): Remove.
13216         * tree-flow-inline.h (is_call_clobbered): Likewise.
13217         * tree-dfa.c (dump_variable): Do not dump call clobber state.
13218         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13219         (execute_return_slot_opt): Adjust.
13220         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13221         check for call clobbered vars here.
13222         (find_tail_calls): Move tailcall verification to the
13223         proper place.
13224
13225 2010-04-16  Diego Novillo  <dnovillo@google.com>
13226
13227         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13228
13229 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13230
13231         PR target/40603
13232         * config/arm/arm.md (cbranchqi4): New pattern.
13233         * config/arm/predicates.md (const0_operand,
13234         cbranchqi4_comparison_operator): New predicates.
13235
13236 2010-04-16  Richard Guenther  <rguenther@suse.de>
13237
13238         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13239         (dump_gimple_stmt): Likewise.
13240
13241 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
13242
13243         * recog.h (struct recog_data): New field is_operator.
13244         (struct insn_operand_data): New field is_operator.
13245         * recog.c (extract_insn): Set recog_data.is_operator.
13246         * genoutput.c (output_operand_data): Emit code to set the
13247         is_operator field.
13248         * reload.c (find_reloads): Use it rather than testing for an
13249         empty constraint string.
13250
13251         PR target/41514
13252         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13253         If the previous insn is a cbranchsi4_insn with the same arguments,
13254         omit the compare instruction.
13255
13256         * config/arm/arm.md (addsi3_cbranch): If destination is a high
13257         register, inputs must be low registers and we need a low register
13258         scratch.  Handle alternative 2 like alternative 3.
13259
13260 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
13261
13262         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13263         don't call get_addr on both.  If one expression is a VALUE and
13264         the other a REG, check VALUE's locs if the REG isn't among them.
13265
13266 2010-04-16  Christian Bruel  <christian.bruel@st.com>
13267
13268         * config/sh/sh.h (sh_frame_pointer_required): New function.
13269         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
13270         (flag_omit_frame_pointer) Set.
13271         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
13272         (rounded_frame_size): Adjust size with outgoing_args_size.
13273         (sh_set_return_address): Must return from stack pointer.
13274         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
13275         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
13276         (ACCUMULATE_OUTGOING_ARGS): Define.
13277         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
13278         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
13279
13280 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
13281
13282         PR target/43471
13283         * config/sh/sh.c (sh_legitimize_reload_address): Use
13284         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
13285         Remove a unneeded check for offset_base.
13286
13287 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
13288
13289         * configure: Regenerated.
13290
13291 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13292
13293         * config/s390/s390.c (s390_call_save_register_used): Switch back
13294         to HARD_REGNO_NREGS.
13295
13296 2010-04-15  Richard Guenther  <rguenther@suse.de>
13297
13298         * alias.c (alias_set_subset_of): Handle alias-set zero
13299         child properly.
13300
13301 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
13302             Julian Brown  <julian@codesourcery.com>
13303
13304         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
13305         alternatives according to use of high and low regs.
13306         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13307         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
13308         optimizing for size on Thumb-2.
13309
13310 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
13311
13312         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
13313
13314 2010-04-15  Richard Guenther  <rguenther@suse.de>
13315
13316         * tree-ssa-structalias.c (struct variable_info): Add
13317         is_fn_info flag.
13318         (new_var_info): Initialize it.
13319         (dump_constraints): Support printing last added constraints.
13320         (debug_constraints): Adjust.
13321         (dump_constraint_graph): Likewise.
13322         (make_heapvar_for): Check for NULL cfun.
13323         (get_function_part_constraint): New function.
13324         (get_fi_for_callee): Likewise.
13325         (find_func_aliases): Properly implement IPA PTA constraints.
13326         (process_ipa_clobber): New function.
13327         (find_func_clobbers): Likewise.
13328         (insert_into_field_list_sorted): Remove.
13329         (create_function_info_for): Properly allocate vars for IPA mode.
13330         Do not use insert_into_field_list_sorted.
13331         (create_variable_info_for): Properly generate constraints for
13332         global vars in IPA mode.
13333         (dump_solution_for_var): Always dump the solution.
13334         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13335         (find_what_var_points_to): Adjust.
13336         (pt_solution_set): Change.
13337         (pt_solution_ior_into): New function.
13338         (pt_solution_empty_p): Export.
13339         (pt_solution_includes_global): Adjust.
13340         (pt_solution_includes_1): Likewise.
13341         (pt_solutions_intersect_1): Likewise.
13342         (dump_sa_points_to_info): Check some invariants.
13343         (solve_constraints): Move constraint dumping ...
13344         (compute_points_to_sets): ... here.
13345         (ipa_pta_execute): ... and here.
13346         (compute_may_aliases): Do not re-compute points-to info
13347         locally if IPA info is available.
13348         (ipa_escaped_pt): New global var.
13349         (ipa_pta_execute): Properly implement IPA PTA.
13350         * tree-into-ssa.c (dump_decl_set): Support dumping
13351         decls not in referenced-vars.
13352         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13353         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13354         (dump_points_to_solution): Likewise.
13355         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13356         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13357         (remap_gimple_stmt): Reset call clobber/use information if necessary.
13358         (copy_decl_to_var): Copy DECL_PT_UID.
13359         (copy_result_decl_to_var): Likewise.
13360         * tree.c (make_node_stat): Initialize DECL_PT_UID.
13361         (copy_node_stat): Copy it.
13362         * tree.h (DECL_PT_UID): New macro.
13363         (SET_DECL_PT_UID): Likewise.
13364         (DECL_PT_UID_SET_P): Likewise.
13365         (struct tree_decl_minimal): Add pt_uid member.
13366         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13367         (pt_solution_empty_p): Declare.
13368         (pt_solution_set): Adjust.
13369         (ipa_escaped_pt): Declare.
13370         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13371         * gimple-pretty-print.c (pp_points_to_solution): New function.
13372         (dump_gimple_call): Dump call clobber/use information.
13373         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13374         * tree-pass.h (TDF_ALIAS): New dump option.
13375         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13376         * doc/invoke.texi (-fipa-pta): Update documentation.
13377
13378 2010-04-15  Richard Guenther  <rguenther@suse.de>
13379
13380         * Makefile.in (OBJS-common): Add gimple-fold.o.
13381         (gimple-fold.o): New rule.
13382         * tree.h (maybe_fold_offset_to_reference,
13383         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13384         prototypes ...
13385         * gimple.h: ... here.
13386         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13387         may_propagate_address_into_dereference): Move prototypes ...
13388         * gimple.h: ... here.
13389         * tree-ssa-ccp.c (get_symbol_constant_value,
13390         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13391         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13392         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13393         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13394         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13395         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13396         gimplify_and_update_call_from_tree): Move ...
13397         * gimple-fold.c: ... here.  New file.
13398         (ccp_fold_builtin): Rename to ...
13399         (gimple_fold_builtin): ... this.
13400         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13401
13402 2010-04-15  Richard Guenther  <rguenther@suse.de>
13403
13404         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
13405         fit_double_type, force_fit_type_double, add_double_with_sign,
13406         neg_double, mul_double_with_sign, lshift_double, rshift_double,
13407         lrotate_double, rrotate_double, div_and_round_double): Move ...
13408         * double-int.c: ... here.
13409         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
13410         add_double, neg_double, mul_double_with_sign, mul_double,
13411         lshift_double, rshift_double, lrotate_double, rrotate_double,
13412         div_and_round_double): Move prototypes ...
13413         * double-int.h: ... here.
13414
13415 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
13416
13417         PR target/43742
13418         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
13419         matching constraints to ensure inputs match the output.
13420
13421 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
13422
13423         PR target/43742
13424         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
13425         in an input-only operand.
13426
13427 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
13428
13429         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
13430         (double_int_not, double_int_lshift, double_int_rshift): Declare.
13431         (double_int_negative_p): Convert to static inline function.
13432         * double-int.c (double_int_lshift, double_int_lshift): New functions.
13433         (double_int_negative_p): Remove.
13434         * tree.h (lshift_double, rshift_double):
13435         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
13436         * fold-const.c (fold_convert_const_int_from_real,
13437         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
13438         (lshift_double): Change type of arith argument to bool.
13439         (rshift_double): Change type of arith argument to bool. Correct
13440         comment.
13441         * expmed.c (mask_rtx, lshift_value): (Ditto.).
13442
13443 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
13444
13445         PR target/21803
13446         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
13447         at the start and end of the then/else blocks, and omit them from the
13448         conversion.
13449         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
13450         argument; all callers changed.  Pass zero to old_insns_match_p instead.
13451         (flow_find_head_matching_sequence): New function.
13452         (old_insns_match_p): Check REG_EH_REGION notes for calls.
13453         * basic-block.h (flow_find_cross_jump,
13454         flow_find_head_matching_sequence): Declare functions.
13455
13456 2010-04-14  Jason Merrill  <jason@redhat.com>
13457
13458         PR c++/36625
13459         * c-common.c (attribute_takes_identifier_p): New fn.
13460         * c-common.h: Declare it.
13461
13462 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13463
13464         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
13465         splitter condition.
13466         (*udivmod<mode>4): Ditto.
13467
13468 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13469
13470         * config/i386/i386.md (maxmin_int): Rename code attribute from
13471         maxminiprefix and update all users.
13472         (maxmin_float): Ditto from maxminfprefix.
13473         (logic): Ditto from logicprefix.
13474         (absneg_mnemonic): Ditto from absnegprefix.
13475         * config/i386/mmx.md: Update all users of maxminiprefix,
13476         maxminfprefix and logicprefix for rename.
13477         * config/i386/sse.md: Ditto.
13478         * config/i386/sync.md (sync_<code><mode>): Update for
13479         logicprefix rename.
13480
13481 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13482
13483         PR 42966
13484         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
13485         warnings converted to errors.
13486
13487 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13488
13489         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
13490         used insn_type variable.
13491         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
13492         to avoid set-but-not-used warning.
13493
13494 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13495
13496         * df-core.c (df_ref_debug): Change format string placeholder
13497         from 0x%x to %#x.
13498         * dwarf2asm.c (dw2_asm_output_data_raw,
13499         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
13500         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
13501         * dwarf2out.c (output_cfi, output_cfi_directive,
13502         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
13503         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
13504         Ditto.
13505         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
13506         * print-rtl.c (print_rtx): Ditto.
13507
13508 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
13509
13510         PR middle-end/42694
13511         * builtins.c (expand_builtin_pow_root): New function to expand pow
13512         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
13513         series of sqrt and cbrt calls under -ffast-math.
13514         (expand_builtin_pow): Call it.
13515
13516 2010-04-14  Michael Matz  <matz@suse.de>
13517
13518         PR tree-optimization/42963
13519         * tree-cfg.c (touched_switch_bbs): New static variable.
13520         (group_case_labels_stmt): New function broken out from ...
13521         (group_case_labels): ... here, use the above.
13522         (start_recording_case_labels): Allocate touched_switch_bbs.
13523         (end_recording_case_labels): Deallocate it, call
13524         group_case_labels_stmt.
13525         (gimple_redirect_edge_and_branch): Remember index of affected BB.
13526
13527 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13528
13529         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
13530         from insn template.
13531
13532 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13533
13534         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
13535
13536 2010-04-13  Jan Hubicka  <jh@suse.cz>
13537
13538         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
13539         of optimized out static functions.
13540         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
13541         cost computation.  Also sanity check for overflows.
13542         (update_caller_keys): Update cgraph_edge_badness call; properly
13543         update fibheap and sanity check that it is up to date.
13544         (add_new_edges_to_heap): Update cgraph_edge_badness.
13545         (cgraph_decide_inlining_of_small_function): Likewise;
13546         add sanity checking that badness in heap is up to date;
13547         improve dumping of reason; Update badness of calls to the
13548         offline copy of function currently inlined; dump badness
13549         of functions not inlined because of unit growth limits.
13550
13551 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
13552
13553         PR middle-end/32628
13554         * c-common.c (pointer_int_sum): Disregard overflow that occured only
13555         because of sign-extension change when converting to sizetype here...
13556         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
13557
13558         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
13559         the folding to constants.  Remove redundant final conversion.
13560         (fold_binary) <associate>: Do not associate if the re-association of
13561         constants alone overflows.
13562         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
13563         to the end of the list.
13564         (multiple_of_p) <COND_EXPR>: New case.
13565
13566 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13567
13568         * opt-functions.awk (opt_sanitized_name): New.
13569         (opt_enum): New.
13570         * optc-gen.awk: Use it
13571         * opth-gen.awk: Use it.
13572
13573 2010-04-13  Martin Jambor  <mjambor@suse.cz>
13574
13575         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
13576         (sra_modify_assign): Delete stmts loading dead data even if racc has no
13577         children.  Call replace_uses_with_default_def_ssa_name to handle
13578         SSA_NAES on lhs.
13579
13580 2010-04-13  Michael Matz  <matz@suse.de>
13581
13582         PR middle-end/43730
13583         * builtins.c (expand_builtin_interclass_mathfn): Also create
13584         a register if the predicate doesn't match.
13585
13586 2010-04-13  Diego Novillo  <dnovillo@google.com>
13587
13588         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
13589         * c-pch.c: Include timevar.h.
13590         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
13591         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
13592         * ggc-common.c: Include timevar.h.
13593         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
13594         * timevar.def (TV_PCH_SAVE): Define.
13595         (TV_PCH_CPP_SAVE): Define.
13596         (TV_PCH_PTR_REALLOC): Define.
13597         (TV_PCH_PTR_SORT): Define.
13598         (TV_PCH_RESTORE): Define.
13599         (TV_PCH_CPP_RESTORE): Define.
13600
13601 2010-04-13  Michael Matz  <matz@suse.de>
13602
13603         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
13604         into MINUS_EXPRs.
13605         (can_reassociate_p): New function.
13606         (break_up_subtract_bb, reassociate_bb): Use it.
13607
13608 2010-04-13  Richard Guenther  <rguenther@suse.de>
13609
13610         PR bootstrap/43737
13611         * builtins.c (c_readstr): Fix assert.
13612
13613 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
13614
13615         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
13616         when generating cltd insn.
13617
13618         (*ashl<mode>3_1): Remove special handling for register operand 2.
13619         (*ashlsi3_1_zext): Ditto.
13620         (*ashlhi3_1): Ditto.
13621         (*ashlhi3_1_lea): Ditto.
13622         (*ashlqi3_1): Ditto.
13623         (*ashlqi3_1_lea): Ditto.
13624         (*<shiftrt_insn><mode>3_1): Ditto.
13625         (*<shiftrt_insn>si3_1_zext): Ditto.
13626         (*<shiftrt_insn>qi3_1_slp): Ditto.
13627         (*<rotate_insn><mode>3_1): Ditto.
13628         (*<rotate_insn>si3_1_zext): Ditto.
13629         (*<rotate_insn>qi3_1_slp): Ditto.
13630
13631 2010-04-13  Richard Guenther  <rguenther@suse.de>
13632
13633         * tree-ssa-structalias.c (callused_id): Remove.
13634         (call_stmt_vars): New.
13635         (get_call_vi): Likewise.
13636         (lookup_call_use_vi): Likewise.
13637         (lookup_call_clobber_vi): Likewise.
13638         (get_call_use_vi): Likewise.
13639         (get_call_clobber_vi): Likewise.
13640         (make_transitive_closure_constraints): Likewise.
13641         (handle_const_call): Adjust to do per-call call-used handling.
13642         (handle_pure_call): Likewise.
13643         (find_what_var_points_to): Remove general callused handling.
13644         (init_base_vars): Likewise.
13645         (init_alias_vars): Initialize call_stmt_vars.
13646         (compute_points_to_sets): Process call-used and call-clobbered
13647         vars for call statements.
13648         (delete_points_to_sets): Free call_stmt_vars.
13649
13650 2010-04-13  Richard Guenther  <rguenther@suse.de>
13651
13652         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13653         Only add RW dependence for dependence distance zero.
13654         Adjust maximal vectorization factor according to dependences.
13655         Move alignment handling ...
13656         (vect_find_same_alignment_drs): ... here.  New function.
13657         (vect_analyze_data_ref_dependences): Adjust.
13658         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13659         (vect_analyze_data_refs): Adjust minimal vectorization factor
13660         according to data references.
13661         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13662         dependences before determining the vectorization factor.
13663         Analyze alignment after determining the vectorization factor.
13664         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13665         dependences before alignment.
13666         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13667         Adjust prototype.
13668         (vect_analyze_data_refs): Likewise.
13669         (MAX_VECTORIZATION_FACTOR): New define.
13670
13671 2010-04-13  Duncan Sands  <baldrick@free.fr>
13672
13673         * except.h (lang_eh_type_covers): Remove.
13674         * except.c (lang_eh_type_covers): Likewise.
13675
13676 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13677             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13678
13679         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
13680         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
13681         UNITS_PER_LONG where it is ABI relevant.
13682         (s390_return_addr_rtx): Likewise.
13683         (s390_back_chain_rtx): Likewise.
13684         (s390_frame_area): Likewise.
13685         (s390_frame_info): Likewise.
13686         (s390_initial_elimination_offset): Likewise.
13687         (save_gprs): Likewise.
13688         (s390_emit_prologue): Likewise.
13689         (s390_emit_epilogue): Likewise.
13690         (s390_function_arg_advance): Likewise.
13691         (s390_function_arg): Likewise.
13692         (s390_va_start): Likewise.
13693         (s390_gimplify_va_arg): Likewise.
13694         (s390_function_profiler): Likewise.
13695         (s390_optimize_prologue): Likewise.
13696         (s390_rtx_costs): Likewise.
13697         (s390_secondary_reload): Likewise.
13698         (s390_promote_function_mode): Likewise.
13699         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
13700         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
13701         registers available.
13702         (s390_unwind_word_mode): New function.
13703         (s390_function_value): Split 64 bit values into register pair if
13704         used as return value.
13705         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
13706         function call parameters.  Handle parallels.
13707         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
13708         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
13709         (DWARF_CIE_DATA_ALIGNMENT): New macro.
13710         (s390_expand_setmem): Remove unused variable src_addr.
13711         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
13712         deal with 64 bit registers.
13713         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
13714         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
13715         (UNITS_PER_LONG): New macro.
13716         * libjava/include/s390-signal.h: Define extended ucontext
13717         structure containing the upper halfs of the 64 bit registers.
13718
13719 2010-04-13  Simon Baldwin  <simonb@google.com>
13720
13721         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
13722
13723 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
13724
13725         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
13726         rvalue on the RHS if the LHS is of a non-renamable type.
13727         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
13728
13729 2010-04-13  Matthias Klose  <doko@ubuntu.com>
13730
13731         * gcc.c (cc1_options): Handle -iplugindir before processing
13732         the cc1 spec. Only add -iplugindir once.
13733         (cpp_unique_options): Add -iplugindir option if -fplugin* options
13734         found.
13735         * common.opt (iplugindir): Remove `Separate' property, initialize.
13736         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13737         option.
13738         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13739         (distclean): Remove plugin dir.
13740         * doc/invoke.texi: Document -iplugindir.
13741
13742 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
13743
13744         * doc/plugins.texi (Loading Plugins): Document short
13745         -fplugin=foo option.
13746         (Plugin API): Mention default_plugin_dir_name function.
13747
13748         * gcc.c (find_file_spec_function): Add new declaration.
13749         (static_spec_func): Use it for "find-file".
13750         (find_file_spec_function): Add new function.
13751         (cc1_options): Add -iplugindir option if -fplugin* options found.
13752
13753         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13754
13755         * plugin.c (add_new_plugin): Updated comment, and handle short
13756         plugin name.
13757         (default_plugin_dir_name): Added new function.
13758
13759         * common.opt (iplugindir): New option to set the plugin directory.
13760
13761 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
13762
13763         * config/i386/i386.md (any_rotate): New code iterator.
13764         (rotate_insn): New code attribute.
13765         (rotate): Ditto.
13766         (SWIM124): New mode iterator.
13767         (<rotate_insn>ti3): New expander.
13768         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13769         any_rotate code iterator.
13770         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13771         using any_rotate code iterator and SWIM124 mode iterator.
13772         (ix86_rotlti3): New insn_and_split pattern.
13773         (ix86_rotrti3): Ditto.
13774         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13775         ix86_rotl{di,ti}3 patterns.
13776         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13777         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13778         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13779         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13780         code iterator and SWI mode iterator.
13781         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13782         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13783         code iterator.
13784         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13785         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13786         (bswap rotatert splitter): Add splitter.
13787         (bswap splitter): Macroize splitter using any_rotate code iterator.
13788         Add insn predicate to split only for TARGET_USE_XCHGB or when
13789         optimizing function for size.
13790
13791 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13792
13793         * config/pa/pa.c (emit_move_sequence): Remove use of
13794         deleted variable flag_argument_noalias.
13795
13796 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13797
13798         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13799         configurations.
13800         Add to unsupported targets list.
13801         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13802         sparc*-sun-solaris2.[567]* from target lists.
13803         * configure: Regenerate.
13804         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13805         removal.
13806         Remove Solaris 7 patch references.
13807         (Specific, sparc-sun-solaris2.7): Removed.
13808         (sparc-sun-solaris2*): Update Solaris 7 example.
13809         (sparc64-*-solaris2*): Likewise.
13810
13811 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13812
13813         * config.build (alpha*-dec-osf4*): Remove.
13814         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13815         of obsolete configurations.
13816         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13817         support.
13818         * config/alpha/t-osf4: Renamed to ...
13819         * config/alpha/t-osf5: ... this.
13820         * config/alpha/osf.h: Renamed to ...
13821         * config/alpha/osf5.h: ... this.
13822         Merged old osf5.h contents.
13823         Update comments.
13824         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13825         (EXTRA_SPECS): Removed.
13826         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13827         reflect removal of Tru64 UNIX V4.0/V5.0 support.
13828         Document that.
13829
13830 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13831
13832         * doc/contrib.texi (Contributors, Rainer Orth): Update.
13833
13834 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
13835
13836         PR/43702
13837         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13838         __thiscall convention.
13839
13840 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13841
13842         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13843         orig_base.
13844         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13845
13846 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13847
13848         * function.c (assign_parms_initialize_all): Add unused attribute
13849         to fntype.
13850
13851 2010-04-12  Richard Guenther  <rguenther@suse.de>
13852
13853         * gsstruct.def (GSS_CALL): New.
13854         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13855         * gimple.h: Include tree-ssa-alias.h.
13856         (struct gimple_statement_call): New.
13857         (union gimple_statement_struct_d): Add gimple_call member.
13858         (gimple_call_reset_alias_info): Declare.
13859         (gimple_call_use_set): New function.
13860         (gimple_call_clobber_set): Likewise.
13861         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13862         * gimple.c (gimple_call_reset_alias_info): New function.
13863         (gimple_build_call_1): Call it.
13864         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13865         * tree-inline.c (remap_gimple_stmt): Likewise.
13866         (expand_call_inline): Remove callused handling.
13867         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13868         * tree-dfa.c (dump_variable): Likewise.
13869         * tree-parloops.c (parallelize_loops): Likewise.
13870         * tree-ssa.c (init_tree_ssa): Likewise.
13871         (delete_tree_ssa): Likewise.
13872         * tree-flow-inline.h (is_call_used): Remove.
13873         * tree-flow.h (struct gimple_df): Remove callused member.
13874         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13875         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13876         (ref_maybe_used_by_call_p_1): Simplify.
13877         (call_may_clobber_ref_p_1): Likewise.
13878         * tree-ssa-structalias.c (compute_points_to_sets): Set
13879         the call stmt used and clobbered sets.
13880         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13881         (find_tail_calls): Verify the tail call.
13882
13883 2010-04-12  Richard Guenther  <rguenther@suse.de>
13884
13885         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13886         single-iteration always-inline inlining.
13887         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13888         (cgraph_decide_inlining): Do not handle always-inline specially.
13889         (try_inline): Remove always-inline cycle detection special case.
13890         Do not recurse on always-inlines.
13891         (cgraph_early_inlining): Do not iterate if not optimizing.
13892         (cgraph_gate_early_inlining): remove.
13893         (pass_early_inline): Run unconditionally.
13894         (gate_cgraph_decide_inlining): New function.
13895         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
13896         not inlining or optimizing.
13897         (cgraph_decide_inlining_of_small_functions): Also consider
13898         always-inline functions.
13899         (cgraph_default_inline_p): Return true for nodes which should
13900         disregard inline limits.
13901         (estimate_function_body_sizes): Assume zero size and time for
13902         nodes which are marked as disregarding inline limits.
13903         (cgraph_decide_recursive_inlining): Do not perform recursive
13904         inlining on always-inline nodes.
13905
13906 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
13907
13908         PR bootstrap/43699
13909         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13910         for exprs satisfying handled_component_p.
13911
13912 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
13913
13914         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13915         non-constant aggregate elements.
13916
13917         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13918         is a real initialization.
13919
13920 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
13921
13922         PR c/36774
13923         * c-decl.c (start_function): Move forward check for nested function.
13924
13925 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
13926
13927         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13928         * config/sh/sh.c: Include reload.h.
13929         (sh_legitimize_reload_address): New.
13930         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13931         sh_legitimize_reload_address.
13932
13933 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13934
13935         * config/sh/sh.md (*movqi_pop): New insn pattern.
13936         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13937
13938 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13939
13940         * config/i386/i386.md (any_shiftrt): New code iterator.
13941         (shiftrt_insn): New code attribute.
13942         (shiftrt): Ditto.
13943         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13944         using any_shiftrt code iterator.
13945         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13946         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13947         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13948         pattern from corresponding peephole2 patterns.
13949         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13950         using any_shiftrt code iterator.
13951         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13952         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13953         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13954         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13955         *{ashr,lshr}<mode>3_cmp_zext.
13956         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13957
13958 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13959
13960         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13961         scratch register.
13962         (*lshr<mode>3_cconly): Ditto.
13963
13964 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13965
13966         * config/i386/i386.md (lshr<mode>3): Macroize expander from
13967         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13968         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13969         pattern from *lshr{di,ti}3_1 and corresponding splitters using
13970         DWI mode iterator.
13971         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13972         from corresponding peephole2 patterns.
13973         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13974         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13975         and *lshrdi3_1_rex64 using SWI mode iterator.
13976         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13977         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13978         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13979         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13980         and *lshrdi3_cmp_rex64 using SWI mode iterator.
13981         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13982         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13983         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13984         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13985         SWI mode iterator.
13986
13987 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
13988
13989         * config/i386/i386.md (ashr<mode>3): Macroize expander from
13990         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13991         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13992         pattern from *ashr{di,ti}3_1 and corresponding splitters using
13993         DWI mode iterator.
13994         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13995         from corresponding peephole2 patterns.
13996         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13997         (ashrsi3_cvt): Rename from ashrsi3_31.
13998         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13999         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
14000         and x86_64_shift_adj_3 using SWI48 mode iterator.
14001         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
14002         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
14003         and *ashrdi3_1_rex64 using SWI mode iterator.
14004         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
14005         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
14006         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
14007         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
14008         and *ashrdi3_cmp_rex64 using SWI mode iterator.
14009         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
14010         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
14011         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
14012         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
14013         SWI mode iterator.
14014         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
14015         * config/i386/i386.c (ix86_split_ashr): Update for renamed
14016         x86_shift<mode>_adj_3 expanders.
14017
14018 2010-04-10  Wei Guozhi  <carrot@google.com>
14019
14020         PR target/42601
14021         * config/arm/arm.c (arm_pic_static_addr): New function.
14022         (legitimize_pic_address): Call arm_pic_static_addr when it detects
14023         a static symbol.
14024         (arm_output_addr_const_extra): Output expression for new pattern.
14025         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
14026
14027 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
14028
14029         * ira-costs.c (record_reg_classes): Ignore alternatives that are
14030         not enabled.
14031
14032         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
14033         * web.c: Include "insn-config.h" and "recog.h".
14034         (union_match_dups): New function.
14035         (web_main): Call it.
14036         (union_defs): Don't try to recognize match_dups.
14037
14038         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
14039         if doing so would replace the entire pattern.
14040
14041 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
14042
14043         PR target/43707
14044         PR target/43709
14045         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
14046         and splitter pattern.  Change splitter operand 1 predicate to
14047         nonmemory_operand.
14048
14049 2010-04-09  Martin Jambor  <mjambor@suse.cz>
14050
14051         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14052         lattices are addresses of CONST_DECLs with the same initial value.
14053         (ipcp_print_all_lattices): Print values of CONST_DECLs.
14054         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14055
14056 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
14057             Bernd Schmidt  <bernds@codesourcery.com>
14058
14059         * loop-invariant.c (replace_uses): New static function.
14060         (move_invariant_reg): Use it to ensure we can replace the uses.
14061
14062 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
14063
14064         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14065         function template.
14066         (picochip_override_options): Enable section anchors only above -O1.
14067         (picochip_reorg): Fixed a couple of build warnings.
14068
14069 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14070
14071         * configure.ac (plugin -rdynamic test): Log result.
14072         * configure: Regenerate.
14073         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14074         (RDYNAMIC_SPEC): Define.
14075         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14076
14077 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14078
14079         * configure.ac: Determine Sun ld version numbers.
14080         (comdat_group): Restrict GNU ld version checks to gld.
14081         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14082         (enable_comdat): Support --enable-comdat.
14083         * configure: Regenerate.
14084         * doc/install.texi (Configuration): Document --enable-comdat.
14085
14086 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14087
14088         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
14089         * config/sol2-gld.h: ... here.
14090         * config.gcc (sparc*-*-solaris2*): Reflect this.
14091         (i[34567]86-*-solaris2*): Use it.
14092
14093 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
14094
14095         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14096         setup_clocks_p.
14097         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14098
14099 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14100
14101         PR 42965
14102         * diagnostic.c (diagnostic_initialize): Initialize
14103         some_warnings_are_errors.
14104         (diagnostic_finish): New.
14105         (diagnostic_action_after_output): Call it before exiting.
14106         (diagnostic_report_diagnostic): Do not print message here. Set
14107         some_warnings_are_errors.
14108         * diagnostic.h (diagnostic_context): Delete
14109         issue_warnings_are_errors_message. Add some_warnings_are_errors.
14110         (diagnostic_finish): Declare.
14111         * toplev.c (toplev_main): Call it before exit.
14112
14113 2010-04-09  Jason Merrill  <jason@redhat.com>
14114
14115         PR c++/42623
14116         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14117         for incomplete type.
14118
14119         PR c++/41788
14120         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14121         based on a warning flag.
14122
14123 2010-04-09  Richard Guenther  <rguenther@suse.de>
14124
14125         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14126
14127 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
14128
14129         PR bootstrap/43684
14130         * varasm.c (default_assemble_visibility): Wrap vars that are
14131         set, but unused, by targets without GAS.
14132         * config/rs6000/rs6000.c (paired_emit_vector_compare):
14133         Remove set, but unused, vars.
14134         (rs6000_legitimize_tls_address): Likewise.
14135         (altivec_expand_dst_builtin): Likewise.
14136         * config/darwin.c (machopic_classify_symbol): Likewise.
14137         (machopic_indirection_name): Likewise.
14138
14139 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
14140
14141         * config/i386/i386.md (DWI): New mode iterator.
14142         (S): New mode attribute.
14143         (shift_operand): Ditto.
14144         (shift_immediate_operand): Ditto.
14145         (ashl_input_operand): Ditto.
14146         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14147         using SDWIM mode iterator.
14148         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
14149         pattern from *ashl{di,ti}3_1 and corresponding splitters using
14150         DWI mode iterator.
14151         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14152         from corresponding peephole2 patterns.
14153         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14154         and x86_64_shift_adj_1 using SWI48 mode iterator.
14155         (x86_shift<mode>_adj_2): Ditto.
14156         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14157         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14158         using SWI48 mode iterator.
14159         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14160         *ashldi3_cmp_rex64 using SWI mode iterator.
14161         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14162         *ashldi3_cconly_rex64 using SWI mode iterator.
14163         * config/i386/i386.c (ix86_split_ashl): Update for renamed
14164         x86_shift<mode>_adj_{1,2}.
14165         (ix86_split_ashr): Ditto.
14166         (ix86_split_lshr): Ditto.
14167
14168 2010-04-09  Richard Guenther  <rguenther@suse.de>
14169
14170         * target.h (builtin_conversion): Pass in input and output types.
14171         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14172         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14173         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14174         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14175
14176         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14177         Handle AVX modes.
14178         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14179
14180 2010-04-09  Richard Guenther  <rguenther@suse.de>
14181
14182         PR target/43152
14183         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14184
14185 2010-04-09  Richard Guenther  <rguenther@suse.de>
14186
14187         * tree-vectorizer.h (struct _stmt_vec_info): Document
14188         that vectype is the type of the LHS.
14189         (supportable_widening_operation, supportable_narrowing_operation):
14190         Get both input and output vector types as arguments.
14191         (vect_is_simple_use_1): Declare.
14192         (get_same_sized_vectype): Likewise.
14193         * tree-vect-loop.c (vect_determine_vectorization_factor):
14194         Set STMT_VINFO_VECTYPE to the vector type of the def.
14195         (vectorizable_reduction): Adjust.
14196         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14197         Adjust.  Specify the output vector type.
14198         (vect_pattern_recog_1): Adjust.
14199         * tree-vect-stmts.c (get_same_sized_vectype): New function.
14200         (vectorizable_call): Adjust.
14201         (vectorizable_conversion): Likewise.
14202         (vectorizable_operation): Likewise.
14203         (vectorizable_type_demotion): Likewise.
14204         (vectorizable_type_promotion): Likewise.
14205         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14206         the def.
14207         (vect_is_simple_use_1): New function.
14208         (supportable_widening_operation): Get both input and output
14209         vector types.
14210         (supportable_narrowing_operation): Likewise.
14211         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14212
14213 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
14214
14215         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14216         __thiscall and _thiscall as predefined macros.
14217         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14218         thiscall attribute handling.
14219         (ix86_comp_type_attributes): Likewise.
14220         (ix86_function_regparm): Likewise.
14221         (ix86_return_pops_args): Likewise.
14222         (init_cumulative_args): Likewise.
14223         (find_drap_reg): Likewise.
14224         (ix86_static_chain): Likewise.
14225         (x86_this_parameter): Likewise.
14226         (x86_output_mi_thunk): Likewise.
14227         (ix86_attribute_table): Add description for thiscall attribute.
14228         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14229         * doc/extend.texi: Add documentation for thiscall.
14230
14231 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14232
14233         PR c++/28584
14234         * c.opt (Wint-to-pointer-cast): Available in C++.
14235         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14236
14237 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
14238
14239         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14240         * calls.c (expand_call): Pass the function type to aggregate_value_p.
14241         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14242         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
14243         function type instead.  Reorder and simplify checks.
14244
14245         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14246
14247 2010-04-08  Jing Yu  <jingyu@google.com>
14248             Zdenek Dvorak  <ook@ucw.cz>
14249
14250         PR tree-optimization/42720
14251         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14252         loop unswitch conditions here from ...
14253         (tree_unswitch_single_loop): ... here.
14254
14255 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
14256
14257         * tree-if-conv.c: Fix comments and simplify logic.
14258
14259 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
14260
14261         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14262         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
14263         (main_tree_if_conversion): Update call to tree_if_conversion.
14264
14265 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14266
14267         PR 42485
14268         * doc/invoke.texi (-b,-V): Delete.
14269         * doc/tm.texi: Do not mention -b.
14270         * gcc.c (display_help): Delete -b and -V.
14271         (process_command): Delete -b and -V.
14272         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
14273
14274 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
14275             Wolfgang Gellerich  <gellerich@de.ibm.com>
14276
14277         Implement target hook for loop unrolling
14278         * target.h (loop_unroll_adjust): Add a new target hook function.
14279         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
14280         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
14281         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
14282         (s390_loop_unroll_adjust): Implement the new target hook for s390.
14283         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
14284         target hook.
14285         (decide_unroll_stupid): Likewise.
14286
14287 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14288
14289         PR target/43643
14290         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
14291
14292 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14293
14294         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
14295         (Specific, *-*-solaris2*): Likewise.
14296         Don't prefer Sun as over GNU as.
14297
14298 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
14299
14300         * config/s390/s390.c (override_options): Adjust the z10 defaults
14301         for max-unroll-times, max-completely-peeled-insns
14302         and max-completely-peel-times.
14303
14304 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14305
14306         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
14307         instructions for z10.
14308         (s390_expand_setmem): Likewise.
14309         (s390_expand_cmpmem): Likewise.
14310
14311 2010-04-08  Richard Guenther  <rguenther@suse.de>
14312
14313         PR tree-optimization/43679
14314         * tree-ssa-pre.c (eliminate): Only propagate copies.
14315
14316 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
14317
14318         PR bootstrap/43681
14319         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
14320         set but not used variable warning.
14321
14322 2010-04-08  Wei Guozhi  <carrot@google.com>
14323
14324         PR target/41653
14325         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
14326         (arm_size_rtx_costs): Call the new function when optimized for size.
14327
14328 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
14329
14330         PR debug/43670
14331         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
14332         op0 is not a MEM, just return NULL instead of assertion
14333         failure.
14334         (discover_nonconstant_array_refs): Don't walk debug stmts.
14335
14336 2010-04-08  Doug Kwan  <dougkwan@google.com>
14337
14338         * configure.ac: Recognize gold and do not use its version number
14339         to test ld features.
14340         * configure: Regenerate.
14341
14342 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
14343
14344         PR middle-end/40815
14345         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14346         (negate_value): Move code to push elements to broken_up_substracts ...
14347         (eliminate_plus_minus_pair): ... here.  Push operands that have no
14348         negative pair to plus_negates.
14349         (repropagate_negates, init_reassoc, fini_reassoc): Update.
14350
14351 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14352
14353         * doc/install.texi (Configuration): Move description of
14354         --enable-lto, --with-libelf*, --enable-gold from Java section to
14355         general section.
14356
14357         * doc/generic.texi (Working with declarations)
14358         (Function Properties, C and C++ Trees): Fix typos.
14359         * doc/sourcebuild.texi (Top Level): Likewise.
14360
14361 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
14362
14363         PR c/18624
14364         * tree.h (DECL_READ_P): Define.
14365         (struct tree_decl_common): Add decl_read_flag.
14366         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14367         a set but not used warning.
14368         (merge_decls): Merge DECL_READ_P flag.
14369         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14370         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14371         * c-common.c (handle_used_attribute, handle_unused_attribute):
14372         Likewise.
14373         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14374         New prototypes.
14375         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14376         New functions.
14377         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14378         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14379         c_parser_binary_expression, c_parser_cast_expression,
14380         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14381         Call default_function_array_read_conversion instead of
14382         default_function_array_conversion where needed.
14383         (c_parser_unary_expression, c_parser_conditional_expression,
14384         c_parser_postfix_expression_after_primary, c_parser_initelt):
14385         Likewise.  Call mark_exp_read where needed.
14386         (c_parser_statement_after_labels, c_parser_asm_operands,
14387         c_parser_typeof_specifier, c_parser_sizeof_expression,
14388         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14389         where needed.
14390         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14391         New.
14392         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14393         (warn_unused_but_set_parameter): Default to warn_unused
14394         && extra_warnings.
14395         * doc/invoke.texi: Document -Wunused-but-set-variable and
14396         -Wunused-but-set-parameter.
14397
14398         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14399         used count variable.
14400         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14401         when operandN variables aren't used in the body of the expander
14402         or splitter.
14403         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
14404         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
14405         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
14406         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
14407         FOR_EACH_IMM_USE_ON_STMT): Likewise.
14408         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
14409         * tree.c (PROCESS_ARG): Likewise.
14410
14411 2010-04-07  Simon Baldwin  <simonb@google.com>
14412
14413         * diagnostic.h (diagnostic_override_option_index): New macro to
14414         set a diagnostic's option_index.
14415         * c-tree.h (c_cpp_error): Add warning reason argument.
14416         * opts.c (_warning_as_error_callback): New.
14417         (register_warning_as_error_callback): Store callback for
14418         warnings enabled via enable_warning_as_error.
14419         (enable_warning_as_error): Call callback, minor code tidy.
14420         * opts.h (register_warning_as_error_callback): Declare.
14421         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
14422         response to -Werror=.
14423         (c_common_init_options): Register warning_as_error_callback in opts.c.
14424         * common.opt: Add -Wno-cpp option.
14425         * c-common.c (struct reason_option_codes_t): Map cpp warning
14426         reason codes to gcc option indexes.
14427         * (c_option_controlling_cpp_error): New function, lookup the gcc
14428         option index for a cpp warning reason code.
14429         * (c_cpp_error): Add warning reason argument, call
14430         c_option_controlling_cpp_error for diagnostic_override_option_index.
14431         * doc/invoke.texi: Document -Wno-cpp.
14432
14433 2010-04-07  Richard Guenther  <rguenther@suse.de>
14434
14435         * ipa-reference.c (mark_load): Use get_base_address.
14436         (mark_store): Likewise.
14437
14438         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
14439         inserting GIMPLE_NOPs into the IL.
14440         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14441         Explicitly strip handled components and indirect references.
14442
14443         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
14444         folding address expressions.
14445         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
14446         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
14447         operand_equal_p to compare decls.
14448         (ptr_deref_may_alias_decl_p): Likewise.
14449         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
14450         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
14451         Handle reversed comparison ops.
14452         * tree-sra.c (asm_visit_addr): Use get_base_address.
14453         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
14454         * ipa-reference.c (mark_address): Use get_base_address.
14455
14456 2010-04-07  Richard Guenther  <rguenther@suse.de>
14457
14458         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
14459         Propagate constants everywhere.
14460
14461 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
14462
14463         PR debug/43516
14464         * tree.c (MAX_INT_CACHED_PREC): Define.
14465         (nonstandard_integer_type_cache): New array.
14466         (build_nonstandard_integer_type): Cache results for precision
14467         <= MAX_INT_CACHED_PREC.
14468
14469 2010-04-07  Richard Guenther  <rguenther@suse.de>
14470
14471         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
14472         -fargument-noalias-global, -fargument-noalias-anything): Remove.
14473         * common.opt: Likewise.
14474         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
14475         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
14476         (nonoverlapping_memrefs_p): Likewise.
14477         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14478         * opts.c (common_handle_option): Handle OPT_fargument_alias,
14479         OPT_fargument_noalias, OPT_fargument_noalias_anything and
14480         OPT_fargument_noalias_global for backward compatibility.
14481
14482 2010-04-07  Richard Guenther  <rguenther@suse.de>
14483
14484         PR tree-optimization/43270
14485         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
14486         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
14487         * tree-ssa-pre.c (phi_translate_1): Adjust.
14488         (fully_constant_expression): Split out vn_reference handling to ...
14489         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
14490         Fold reads from constant strings.
14491         (vn_reference_lookup): Handle fully constant references.
14492         (vn_reference_lookup_pieces): Likewise.
14493         * Makefile.in (expmed.o-warn): Add -Wno-error.
14494
14495 2010-04-07  Martin Jambor  <mjambor@suse.cz>
14496
14497         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
14498
14499 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
14500
14501         PR driver/41594
14502         * gcc.c: Add -static-libstdc++ to list of recognized options.
14503
14504 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14505
14506         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
14507
14508 2010-04-07  Richard Guenther  <rguenther@suse.de>
14509
14510         PR middle-end/42617
14511         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
14512         bases build simple mem attributes to retain points-to information.
14513
14514 2010-04-07  Richard Guenther  <rguenther@suse.de>
14515
14516         PR middle-end/42617
14517         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
14518         preserve points-to related information.
14519
14520 2010-04-07  Richard Guenther  <rguenther@suse.de>
14521
14522         PR middle-end/42617
14523         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
14524         discard plain indirect references.
14525         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
14526         * tree.c (tree_nop_conversion): Likewise.
14527
14528 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
14529
14530         PR debug/43628
14531         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
14532
14533 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
14534
14535         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
14536         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
14537
14538 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14539
14540         * tree-if-conv.c: Fix indentation and comments.
14541
14542 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14543
14544         * tree-if-conv.c: Sort static functions in topological order.
14545
14546 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14547
14548         * tree-if-conv.c: Fix indentation and comments.
14549
14550 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14551
14552         PR middle-end/43519
14553         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
14554         lang_hooks.types.type_for_size instead of
14555         build_nonstandard_integer_type.
14556         When converting an unsigned type to signed, double its precision.
14557         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
14558         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
14559         (graphite_create_new_loop_guard): When ub + 1 wraps around,
14560         use lb <= ub.
14561
14562 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14563
14564         PR middle-end/43519
14565         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14566         POINTER_PLUS_EXPR for pointer types.
14567
14568 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14569
14570         PR middle-end/43519
14571         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
14572         * graphite-clast-to-gimple.c: Include langhooks.h.
14573         (max_signed_precision_type): New.
14574         (max_precision_type): Takes two types as arguments.
14575         (precision_for_value): New.
14576         (precision_for_interval): New.
14577         (gcc_type_for_interval): New.
14578         (gcc_type_for_value): New.
14579         (gcc_type_for_clast_term): New.
14580         (gcc_type_for_clast_red): New.
14581         (gcc_type_for_clast_bin): New.
14582         (gcc_type_for_clast_expr): Split up into several functions.
14583         (gcc_type_for_clast_eq): Rewritten.
14584         (compute_bounds_for_level): New.
14585         (compute_type_for_level_1): New.
14586         (compute_type_for_level): New.
14587         (gcc_type_for_cloog_iv): Removed.
14588         (gcc_type_for_iv_of_clast_loop): Rewritten.
14589         (graphite_create_new_loop): Compute the lower and upper bound types
14590         with gcc_type_for_clast_expr.
14591         (graphite_create_new_loop_guard): Same.
14592         (find_cloog_iv_in_expr): Removed.
14593         (compute_cloog_iv_types_1): Removed.
14594         (compute_cloog_iv_types): Removed.
14595         (gloog): Do not call compute_cloog_iv_types.
14596         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
14597         GBB_CLOOG_IV_TYPES.
14598         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
14599         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
14600         (GBB_CLOOG_IV_TYPES): Removed.
14601
14602 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14603
14604         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
14605         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
14606         (detect_commutative_reduction): Same.
14607
14608 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14609
14610         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
14611         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
14612         argument.
14613         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
14614         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
14615         (rewrite_commutative_reductions_out_of_ssa): Same.
14616         * passes.c (execute_function_todo): Call verify_ssa for every pass
14617         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
14618         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
14619         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
14620         with an extra argument.
14621         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
14622         verify_ssa only when the extra argument is true.
14623         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
14624         with an extra argument.
14625         (tree_transform_and_unroll_loop): Same.
14626
14627 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14628
14629         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
14630         for all the passes of the LNO having LOOP_CLOSED_SSA.
14631         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
14632         * tree-loop-distribution.c (pass_loop_distribution): Same.
14633         * tree-pass.h (TODO_verify_loops): Removed.
14634         * tree-ssa-loop.c (pass_tree_loop_init): Same.
14635         (pass_lim): Same.
14636         (pass_tree_unswitch): Same.
14637         (pass_predcom): Same.
14638         (pass_vectorize): Same.
14639         (pass_linear_transform): Same.
14640         (pass_graphite_transforms): Same.
14641         (pass_iv_canon): Same.
14642         (pass_complete_unroll): Same.
14643         (pass_complete_unrolli): Same.
14644         (pass_parallelize_loops): Same.
14645         (pass_loop_prefetch): Same.
14646         (pass_iv_optimize): Same.
14647
14648 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
14649
14650         PR middle-end/32824
14651         * passes.c (init_optimization_passes): Move pass_lim before
14652         pass_copy_prop and pass_dce_loop.
14653
14654 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
14655
14656         PR target/43667
14657         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14658         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14659         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14660         MULTI_* defines for 4 argument vpermil2p* builtins.
14661
14662 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
14663
14664         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14665         * config/i386/i386.c (x86_maybe_negate_const_int): New.
14666         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14667         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14668         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14669         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14670         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14671         Use x86_maybe_negate_const_int to output insn mnemonic.
14672         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
14673         check from instruction predicate.  Update comments.
14674         * config/i386/sync.md (sync_add<mode>): Use
14675         x86_maybe_negate_const_int to output insn mnemonic.
14676
14677 2010-04-06  Jan Hubicka  <jh@suse.cz>
14678
14679         PR tree-optimization/42906
14680         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
14681         IGNORE_SELF argument.  Set visited_control_parents for fully
14682         processed BBs.
14683         (find_obviously_necessary_stmts): Update call of
14684         mark_control_dependent_edges_necessary.
14685         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
14686
14687 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
14688
14689         * config/i386/i386.md: Remove comment about 'e' and 'E'
14690         operand modifier.
14691
14692 2010-04-06  Richard Guenther  <rguenther@suse.de>
14693
14694         PR tree-optimization/43627
14695         * tree-vrp.c (extract_range_from_unary_expr): Widenings
14696         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
14697         not varying.
14698
14699 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
14700
14701         * BASE-VER: Change to 4.6.0.
14702
14703         PR target/43638
14704         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
14705         handling.
14706
14707 2010-04-06  Richard Guenther  <rguenther@suse.de>
14708
14709         PR middle-end/43661
14710         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
14711
14712 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14713
14714         * doc/invoke.texi (Optimize Options): Document that LTO
14715         won't remove object access purely due to incompatible
14716         declarations.
14717
14718 2010-04-04  Matthias Klose  <doko@ubuntu.com>
14719
14720         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
14721         Initialize variable.
14722
14723 2010-04-03  Richard Guenther  <rguenther@suse.de>
14724
14725         PR middle-end/42509
14726         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
14727         require a non-NULL MEM_OFFSET.
14728
14729 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
14730
14731         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
14732         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
14733         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
14734         config/alpha/predicates.md, config/arm/arm.md,
14735         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14736         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14737         config/darwin9.h, config/darwin.c, config/darwin.h,
14738         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14739         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14740         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14741         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14742         config/mips/mips.md, config/mn10300/mn10300.c,
14743         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14744         config/rs6000/aix.h, config/rs6000/dfp.md,
14745         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
14746         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14747         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14748         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14749         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14750         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14751         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14752         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14753         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14754         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14755         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14756         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14757         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14758         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14759         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14760         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14761         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14762         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14763         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14764         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14765         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14766         opt-functions.awk, opth-gen.awk, params.def, passes.c,
14767         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14768         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14769         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14770         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14771         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14772         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14773         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14774         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14775         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14776         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14777         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14778         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14779         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14780         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14781
14782 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14783
14784         PR other/43620
14785         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14786         * aclocal.m4: Regenerate.
14787
14788 2010-04-02  Richard Guenther  <rguenther@suse.de>
14789
14790         PR tree-optimization/43629
14791         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14792         if we have seen a constant value.
14793
14794 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
14795
14796         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14797
14798 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
14799
14800         PR target/43469
14801         * arm.c (legitimize_tls_address): Adjust call to
14802         gen_tls_load_dot_plus_four.
14803         (arm_note_pic_base): New function.
14804         (arm_cannot_copy_insn_p): Use it.
14805         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14806         constraint.
14807
14808 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14809
14810         PR bootstrap/43531
14811
14812         Revert:
14813         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14814
14815         * Makefile.in ($(out_object_file)): Depend on
14816         gt-$(basename $(notdir $(out_file))).h.
14817
14818 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
14819
14820         * config.gcc (lm32-*-rtems*): Add t-lm32.
14821
14822 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
14823
14824         * config.gcc: Add lm32-*-rtems*.
14825         * config/lm32/rtems.h: New file.
14826
14827 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
14828
14829         PR target/42609
14830         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14831
14832 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
14833
14834         * dwarf2out.c (output_compilation_unit_header): For
14835         -gdwarf-4 use version 4 instead of version 3.
14836         (output_line_info): For version 4 and above emit additional
14837         maximum ops per insn header field.
14838         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14839
14840         * dwarf2out.c (is_c_family, is_java): Remove.
14841         (lower_bound_default): New function.
14842         (add_bound_info, gen_descr_array_type_die): Use it.
14843
14844 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
14845
14846         PR debug/43325
14847         * dwarf2out.c (gen_variable_die): Allow debug info for variable
14848         re-declaration when it happens in a function.
14849
14850 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
14851
14852         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14853         (cgraph_remove_function_insertion_hook): Same.
14854         (cgraph_call_function_insertion_hooks): Same.
14855
14856 2010-04-01  Richard Guenther  <rguenther@suse.de>
14857
14858         PR middle-end/43614
14859         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14860         and TREE_THIS_VOLATILE.
14861         (copy_ref_info): Likewise.
14862         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14863         * tree.c (build6_stat): Ignore side-effects of all but arg5
14864         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
14865         TARGET_MEM_REF.
14866
14867 2010-04-01  Richard Guenther  <rguenther@suse.de>
14868
14869         PR tree-optimization/43607
14870         * ipa-type-escape.c (check_call): Do not access non-existing
14871         arguments.
14872
14873 2010-04-01  Richard Guenther  <rguenther@suse.de>
14874
14875         PR middle-end/43602
14876         Revert
14877         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
14878                     Jack Howarth  <howarth@bromo.med.uc.edu>
14879
14880         * tree-profile.c (tree_init_ic_make_global_vars): Make static
14881         variables TLS.
14882
14883 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14884
14885         * doc/install.texi (Prerequisites): Document libelf usability on
14886         IRIX 5/6 and Solaris 2.
14887         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14888         Update GNU as, GNU ld requirements.
14889         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14890         Document Sun Studio compiler download.
14891         Update and simplify as, ld recommendations.
14892         (Specific, *-*-solaris2.7): Note obsoletion, removal.
14893
14894 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14895
14896         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14897         with_tune_32 to pentium4.
14898
14899 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
14900
14901         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14902
14903 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14904
14905         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14906         obsoletion, removal.
14907         Update IDO URL.
14908         Document GNU as requirement.
14909         Update configure requirements.
14910         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14911         Recomment IRIX 6.5.18+.
14912         Document IDF/IDL requirement.
14913         Document GNU as requirement.
14914         Document GNU ld bootstrap failure.
14915         Remove freeware.sgi.com reference.
14916
14917 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14918
14919         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14920         UNIX V4.0, V5.0 obsoletion, removal.
14921         Remove --with-gc=simple reference.
14922         Update VM requirements during bootstrap.
14923         Remove -oldas bootstrap description.
14924         Update binutils reference.
14925         Remove comparison failure note.
14926
14927 2010-03-31  Richard Guenther  <rguenther@suse.de>
14928             Zdenek Dvorak  <ook@ucw.cz>
14929             Sebastian Pop  <sebastian.pop@amd.com>
14930
14931         PR middle-end/43464
14932         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14933         with multiple arguments.
14934         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14935
14936 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14937
14938         * graphite-dependences.c (print_pddr): Call print_pdr with an
14939         extra argument.
14940         * graphite-poly.c (debug_pdr): Add an extra argument for the
14941         verbosity level.
14942         (print_pdr): Same.
14943         (print_pbb_domain): Same.
14944         (print_pbb): Same.
14945         (print_scop_context): Same.
14946         (print_scop): Same.
14947         (print_cloog): Same.
14948         (debug_pbb_domain): Same.
14949         (debug_pbb): Same.
14950         (print_pdrs): Same.
14951         (debug_pdrs): Same.
14952         (debug_scop_context): Same.
14953         (debug_scop): Same.
14954         (debug_cloog): Same.
14955         (print_scop_params): Same.
14956         (debug_scop_params): Same.
14957         (print_iteration_domain): Same.
14958         (print_iteration_domains): Same.
14959         (debug_iteration_domain): Same.
14960         (debug_iteration_domains): Same.
14961         (print_scattering_function): Same.
14962         (print_scattering_functions): Same.
14963         (debug_scattering_function): Same.
14964         (debug_scattering_functions): Same.
14965         * graphite-poly.h (debug_pdr): Update declaration.
14966         (print_pdr): Same.
14967         (print_pbb_domain): Same.
14968         (print_pbb): Same.
14969         (print_scop_context): Same.
14970         (print_scop): Same.
14971         (print_cloog): Same.
14972         (debug_pbb_domain): Same.
14973         (debug_pbb): Same.
14974         (print_pdrs): Same.
14975         (debug_pdrs): Same.
14976         (debug_scop_context): Same.
14977         (debug_scop): Same.
14978         (debug_cloog): Same.
14979         (print_scop_params): Same.
14980         (debug_scop_params): Same.
14981         (print_iteration_domain): Same.
14982         (print_iteration_domains): Same.
14983         (debug_iteration_domain): Same.
14984         (debug_iteration_domains): Same.
14985         (print_scattering_function): Same.
14986         (print_scattering_functions): Same.
14987         (debug_scattering_function): Same.
14988         (debug_scattering_functions): Same.
14989
14990 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14991
14992         * graphite-poly.c (print_scattering_function_1): New.
14993         (print_scattering_function): Call it.
14994         (print_scop_params): Remove spaces at the end of lines.
14995         (print_cloog): New.
14996         (debug_cloog): New.
14997         * graphite-poly.h (print_cloog): Declared.
14998         (debug_cloog): Declared.
14999
15000 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15001
15002         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
15003         in loop->header.
15004         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
15005         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
15006         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
15007         to switch between adding the IV bump in loop->latch or in loop->header.
15008
15009 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
15010
15011         * graphite-poly.c (print_scattering_function): Pretty print following
15012         the scoplib format.
15013         (print_pdr): Same.
15014         (print_pbb_domain): Same.
15015         (dump_gbb_cases): Same.
15016         (dump_gbb_conditions): Same.
15017         (print_pdrs): Same.
15018         (print_pbb): Same.
15019         (print_scop_params): Same.
15020         (print_scop_context): Same.
15021         (print_scop): Same.
15022         (print_pbb_body): New.
15023         (lst_indent_to): New.
15024         (print_lst): Start new lines with a #.
15025         * graphite-poly.h (pbb_bb): New.
15026         (pbb_index): Use pbb_bb.
15027         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
15028         disjuncts.
15029         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
15030
15031 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
15032
15033         * dwarf2out.c (size_of_die): For -gdwarf-4 use
15034         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
15035         and 0 instead of 1 for dw_val_class_flag.
15036         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
15037         dw_val_class_range_list, dw_val_class_loc_list,
15038         dw_val_class_lineptr and dw_val_class_macptr, use
15039         DW_FORM_flag_present for dw_val_class_flag and
15040         DW_FORM_exprloc for dw_val_class_loc.
15041         (output_die): For -gdwarf-4 print dw_val_class_loc
15042         size as uleb128 instead of 1 or 2 bytes and don't print
15043         anything for dw_val_class_flag.
15044
15045         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
15046         instead of cselib_lookup following by tweaking locs->setting_insn.
15047
15048         PR bootstrap/43596
15049         * cselib.c (cselib_process_insn): Clear cselib_current_insn
15050         even before returning from label, setjmp call or volatile asm
15051         handling.
15052
15053 2010-03-31  Richard Guenther  <rguenther@suse.de>
15054
15055         PR middle-end/43600
15056         * cgraphunit.c (cgraph_output_in_order): Do not allocate
15057         temporary data on stack.
15058
15059 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15060
15061         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15062         (PUSHSECTION_ASM_OP): Remove.
15063         (POPSECTION_ASM_OP): Remove.
15064         (PUSHSECTION_FORMAT): Remove.
15065         * config/sol2.h (PUSHSECTION_FORMAT): Define.
15066         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15067         * config/sol2.c (solaris_output_init_fini): Use it.
15068
15069 2010-03-31  Jie Zhang  <jie@codesourcery.com>
15070
15071         PR 43574
15072         * opt-functions.awk (var_type_struct): Use signed char type
15073         for simple variables.
15074
15075 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15076
15077         * config/sol2.c: Include output.h.
15078         (solaris_assemble_visibility): New function.
15079         * config/t-sol2 (sol2.o): Add output.h dependency.
15080         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15081         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15082         Redefine.
15083
15084 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
15085
15086         PR target/43580
15087         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15088         V2SImode or XFmode on PRE_DEC.
15089
15090         PR debug/43557
15091         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15092         BLKmode.
15093
15094 2010-03-31  Jie Zhang  <jie@codesourcery.com>
15095
15096         PR 43562
15097         * reload.h (caller_save_initialized_p): Declare.
15098         * toplev.c (backend_init_target): Don't call
15099         init_caller_save but set caller_save_initialized_p to false.
15100         * caller-save.c (caller_save_initialized_p): Define.
15101         (init_caller_save): Check caller_save_initialized_p.
15102         * ira.c (ira): Call init_caller_save if flag_caller_saves.
15103
15104 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15105
15106         PR target/39048
15107         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15108         and soft-fp/t-softfp to tmake_file.
15109         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15110         (LIBGCC2_TF_CEXT): Define.
15111         (TF_SIZE): Define.
15112
15113 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
15114
15115         PR debug/42977
15116         * cselib.c (n_useless_values): Document handling of debug locs.
15117         (n_useless_debug_values, n_debug_values): New variables.
15118         (new_elt_loc_list): Don't add to debug values, keep count.
15119         (promote_debug_loc): New.
15120         (cselib_reset_table): Zero new variables.
15121         (entry_and_rtx_equal_p): Promote debug locs.
15122         (discard_useless_locs): Increment n_useless_debug_values for
15123         debug values.
15124         (remove_useless_values): Adjust n_useless_values and n_debug_values
15125         with n_useless_debug_values.
15126         (add_mem_for_addr): Promote debug locs.
15127         (cselib_lookup_mem): Likewise.
15128         (cselib_lookup_addr): Renamed to...
15129         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
15130         (cselib_log_lookup): ... this.  Turn into...
15131         (cselib_lookup_addr): ... new wrapper.
15132         (cselib_lookup_from_insn): New.
15133         (cselib_invalidate_regno): Increment n_useless_debug_values for
15134         debug values.
15135         (cselib_invalidate_mem): Likewise.
15136         (cselib_process_insn): Take n_deleted and n_debug_values into
15137         account to guard remove_useless_value call.
15138         (cselib_finish): Zero n_useless_debug_values.
15139         * cselib.h (cselib_lookup_from_insn): Declare.
15140         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15141         (sched_analyze_2): Likewise.
15142
15143 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
15144
15145         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15146         functions.
15147         (adjust_mems): Replace narrowing SUBREG of expression containing
15148         just PLUS, MINUS, MULT and ASHIFT of registers and constants
15149         with operations in the narrower mode.
15150
15151         PR debug/43593
15152         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15153         regs_invalidated_by_call instead all call_used_reg_set registers.
15154
15155 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
15156
15157         PR middle-end/43430
15158         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15159         pointer comparisons with types_compatible_p.
15160         * tree-vect-stmts.c (vectorizable_call): Same.
15161         (vectorizable_condition): Same.
15162
15163 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15164
15165         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15166         stack check if the mask would be zero.
15167
15168 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
15169             Jack Howarth  <howarth@bromo.med.uc.edu>
15170
15171         * tree-profile.c (tree_init_ic_make_global_vars): Make static
15172         variables TLS.
15173
15174 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
15175
15176         PR other/25232
15177         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
15178         and __unordtf2.
15179         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15180         Include ___unordxf2 and ___unordtf2.
15181         * config/i386/libgcc-glibc.ver: Do not define inheritance from
15182         GCC_4.4.0 here.
15183
15184 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
15185
15186         * config/lm32/t-lm32: New file.
15187         * config.gcc: Use the above file when targetting lm32.
15188
15189 2010-03-28  Duncan Sands  <baldrick@free.fr>
15190
15191         * Makefile.in (PLUGIN_HEADERS): Add except.h.
15192
15193 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
15194
15195         PR middle-end/43431
15196         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15197         Improve vectorization cost model diagnostic.
15198
15199 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
15200
15201         PR middle-end/43436
15202         * tree-vect-data-refs.c (vect_analyze_data_refs): When
15203         compute_data_dependences_for_loop returns false, early exit
15204         and output an extra diagnostic for the failed data reference
15205         analysis.
15206
15207 2010-03-29  Richard Guenther  <rguenther@suse.de>
15208
15209         PR tree-optimization/43560
15210         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15211         (can_sm_ref_p): Treat stores to readonly locations as trapping.
15212
15213 2010-03-29  Jie Zhang  <jie@codesourcery.com>
15214
15215         PR 43564
15216         * toplev.c (process_options): Set optimization_default_node
15217         and optimization_current_node.
15218         * opts.c (decode_options): Don't set optimization_default_node
15219         and optimization_current_node.
15220
15221 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
15222
15223         * config/rtems.h: Abandon -qrtems_debug.
15224
15225 2010-03-28  Jan Hubicka  <jh@suse.cz>
15226
15227         PR tree-optimization/43505
15228         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15229         map should not be copied.
15230
15231 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15232
15233         PR middle-end/41674
15234         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15235         cdtors, set DECL_PRESERVE_P.
15236         * ipa.c (cgraph_externally_visible_p): Return true if declaration
15237         should be preseved.
15238
15239 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
15240
15241         PR tree-optimization/43528
15242         * stor-layout.c (place_field): Check that constant fits into
15243         unsigned HWI when skipping calculation of MS bitfield layout.
15244
15245 2010-03-27  Jan Hubicka  <jh@suse.cz>
15246
15247         PR middle-end/43391
15248         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15249         notice_global_symbol work.
15250
15251 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
15252
15253         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15254         instead of dwarf2out_decl.
15255         (struct var_loc_node): Remove section_label field.
15256         (dwarf2out_function_decl): New function.
15257         (dwarf2out_var_location): Don't set section_label field.
15258         (dwarf2out_begin_function): Don't empty decl_loc_table here.
15259
15260 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
15261
15262         PR tree-optimization/43544
15263         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15264         First argument for builtin vectorized function hook is now a
15265         tree to be able to distinguish between machine specific and
15266         standard builtins.
15267         * targhooks.c (default_builtin_vectorized_function): Ditto.
15268         * targhooks.h (default_builtin_vectorized_function): Ditto.
15269         * target.h (struct gcc_target): Ditto.
15270         * tree-vect-stmts.c (vectorizable_function): Ditto.
15271         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
15272         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15273         Ditto.
15274
15275 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
15276
15277         PR c/43381
15278         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
15279         nested binding iff it is a FUNCTION_DECL.
15280         (store_parm_decls_newstyle): Pass nested=true to bind for
15281         FUNCTION_DECLs amongst parameters.
15282
15283 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
15284
15285         * var-tracking.c (vt_expand_loc_callback): Don't run
15286         cselib_expand_value_rtx_cb in dummy mode if
15287         cselib_dummy_expand_value_rtx_cb returned false.
15288
15289         * var-tracking.c (emit_note_insn_var_location): For one part
15290         notes with offset 0, don't add EXPR_LIST around the location.
15291         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
15292         add_location_or_const_value_attribute): Adjust for that change.
15293
15294         PR debug/43540
15295         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
15296         into first operand and location into second.
15297         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
15298         dw_cfi_oprnd_loc for DW_CFA_expression.
15299         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
15300         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
15301         assume first argument is regnum and second argument is location.
15302
15303 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
15304
15305         PR target/42113
15306         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
15307         of scratch register to DImode.  Split to DImode comparison operator.
15308         Use SImode subreg of scratch register in the multiplication.
15309         (*cmp_sadd_sidi): Ditto.
15310         (*cmp_ssub_si): Ditto.
15311         (*cmp_ssub_sidi): Ditto.
15312
15313 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
15314
15315         PR target/43524
15316         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
15317         Remove invalid assert and wrong comment.
15318
15319 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
15320
15321         PR debug/43516
15322         * flags.h (final_insns_dump_p): New extern.
15323         * final.c (final_insns_dump_p): New variable.
15324         (rest_of_clean_state): Set it before -fdump-final-insns=
15325         dumping, clear afterwards.
15326         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
15327         MEM_ALIAS_SET on MEMs.
15328
15329 2010-03-26  David S. Miller  <davem@davemloft.net>
15330
15331         * configure.ac: Fix sparc GOTDATA_OP bug check.
15332         * configure: Rebuild.
15333
15334 2010-03-26  Alan Modra  <amodra@gmail.com>
15335
15336         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15337
15338 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15339
15340         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15341         TLS_SECTION_ASM_FLAG.
15342
15343 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
15344
15345         PR bootstrap/43511
15346         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15347         Clear first_function_block_is_cold.
15348
15349         PR c/43385
15350         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15351         argument if the argument is truth_value_p.
15352
15353 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15354
15355         * config/rs6000/constraints.md: Update copyright year for my changes.
15356
15357         PR target/43484
15358         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15359         used in reg+reg addressing, swap registers.
15360
15361 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
15362
15363         PR debug/43293
15364         * target.h (struct gcc_target): Add code_end hook.
15365         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15366         if not yet defined.
15367         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15368         * toplev.c (compile_file): Call targetm.asm_out.code_end
15369         hook before unwind info/debug info output.
15370         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15371         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15372         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15373         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15374         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15375         * config/i386/i386.c (ix86_file_end): Renamed to...
15376         (ix86_code_end): ... this.  Make static.  Don't call
15377         file_end_indicate_exec_stack.  Emit unwind info using
15378         final_start_function/final_end_function.
15379         (darwin_x86_file_end): Remove.
15380         (TARGET_ASM_CODE_END): Define.
15381         * config/i386/i386.h (TARGET_ASM_FILE_END,
15382         NEED_INDICATE_EXEC_STACK): Don't define.
15383         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15384         (TARGET_ASM_FILE_END): Define to darwin_file_end.
15385         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15386         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15387
15388         PR target/43498
15389         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15390         at the beginning and final_end_function at the end.
15391         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15392
15393 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15394
15395         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15396         and Sun as TLS syntax.
15397         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15398         * configure: Regenerate.
15399         * config.in: Regenerate.
15400         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15401         (default_elf_asm_named_section): Use it.
15402         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
15403         (i386_output_dwarf_dtprel): Likewise.
15404         (output_addr_const_extra): Likewise.
15405         (output_pic_addr_const): Lowercase @GOTTPOFF.
15406         (output_addr_const_extra): Likewise.
15407         (output_pic_addr_const): Lowercase @GOTNTPOFF.
15408         (output_addr_const_extra): Likewise.
15409         (output_pic_addr_const): Lowercase @INDNTPOFF.
15410         (output_addr_const_extra): Likewise.
15411         (output_pic_addr_const): Lowercase @NTPOFF.
15412         (output_addr_const_extra): Likewise.
15413         (output_pic_addr_const): Lowercase @TPOFF.
15414         (output_addr_const_extra): Likewise.
15415         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
15416         (*tls_global_dynamic_64): Likewise.
15417         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
15418         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
15419
15420         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
15421         (ASM_OUTPUT_TLS_COMMON): Use it.
15422         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
15423
15424         PR target/38118
15425         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
15426         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15427         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
15428         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
15429         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15430         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
15431
15432 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15433
15434         * config/i386/i386.c (override_options): Don't accept
15435         -mtls-dialect=sun any longer.
15436         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
15437         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
15438         (*tls_local_dynamic_base_32_sun): Likewise.
15439         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15440
15441 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
15442
15443         PR debug/43508
15444         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15445         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
15446
15447         PR debug/43479
15448         * ira.c (adjust_cleared_regs): New function.
15449         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
15450
15451         PR debug/19192
15452         PR debug/43479
15453         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
15454         from gimple_block.
15455         * expr.c (expand_expr_real): Restore previous
15456         curr_insn_source_location and curr_insn_block after
15457         expand_expr_real_1 call.
15458         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
15459         instead of expand_expr_real_1.
15460
15461 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
15462
15463         PR rtl-optimization/43413
15464         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
15465         hard regs too.
15466
15467 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
15468
15469         PR target/43348
15470         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
15471         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
15472
15473 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15474
15475         * config/i386/i386.c (ix86_target_string): Add -mfma.
15476         Fix a typo in comment.
15477
15478 2010-03-22  Mike Stump  <mikestump@comcast.net>
15479
15480         PR target/23071
15481         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
15482         Don't overly align based upon packed packed fields.
15483
15484 2010-03-22  Jason Merrill  <jason@redhat.com>
15485
15486         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
15487         Use () rather than [], and move before the element type.
15488
15489 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15490
15491         * doc/configfiles.texi (Configuration Files): Removed
15492         fixinc/Makefile*, intl/Makefile.*.
15493         * doc/makefile.texi: Fixed markup. Abstract from version
15494         control system used.
15495         (Makefile): Removed obsolete gcc/java/parse.y example.
15496         * doc/sourcebuild.texi: Likewise.
15497         (Top Level): Added config, gnattools, libdecnumber, libgcc,
15498         libgomp, libssp.  Removed fastjar.
15499         (Miscellaneous Docs): Clarify location.
15500         Added COPYING3, COPYING3.LIB.
15501         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
15502
15503 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15504
15505         PR target/38085
15506         * config/i386/i386.c (x86_function_profiler)
15507         [!NO_PROFILE_COUNTERS]: Fix typo.
15508         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
15509         instead of callq.
15510
15511 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
15512             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15513
15514         * doc/sourcebuild.texi (Test Directives): Split into six
15515         subsections, with most of the current text in new subsections
15516         Directives, Selectors, and Final Actions.
15517         (Directives): Split list of test directives into multiple
15518         subsubsections.
15519         (Selectors): Describe use and syntax of selectors.
15520         (Effective-Target Keywords): Describe all existing keywords.
15521         (Add Options): Describe features for dg-add-options.
15522         (Require Support): Describe variants of dg-require-support.
15523         (Final Actions): Describe commands to use in dg-final.
15524
15525 2010-03-22  Michael Matz  <matz@suse.de>
15526
15527         PR middle-end/43475
15528         * recog.c (validate_replace_rtx_group): Replace also in
15529         REG_EQUAL and REG_EQUIV notes.
15530
15531 2010-03-22  Richard Guenther  <rguenther@suse.de>
15532
15533         PR tree-optimization/43390
15534         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
15535         sure vector extracts are type correct.
15536
15537 2010-03-22  Richard Guenther  <rguenther@suse.de>
15538
15539         PR middle-end/40106
15540         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
15541         x * sqrt (x) even when optimizing for size if the target
15542         has native support for sqrt.
15543
15544 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
15545
15546         * varasm.c (make_decl_rtl_for_debug): Also clear
15547         flag_mudflap for the duration of make_decl_rtl call.
15548
15549         PR debug/43443
15550         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
15551         locs from preserved VALUEs.
15552
15553 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15554
15555         PR middle-end/42718
15556         * pa.md (movmemsi): Set align to one if zero.
15557         (movmemdi): Likewise.
15558
15559 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
15560
15561         PR target/42321
15562         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
15563         with their corresponding prologue pushes.
15564
15565 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
15566
15567         PR target/43156
15568         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
15569         at the begining or end.
15570         (spu_expand_epilogue): Likewise.
15571
15572 2010-03-20  Richard Guenther  <rguenther@suse.de>
15573
15574         PR rtl-optimization/43438
15575         * combine.c (make_extraction): Properly zero-/sign-extend an
15576         extraction of the low part of a CONST_INT.  Also handle
15577         CONST_DOUBLE.
15578
15579 2010-03-19  Mike Stump  <mikestump@comcast.net>
15580
15581         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
15582         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
15583         (override_options): Use SUBTARGET32_DEFAULT_CPU.
15584
15585 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
15586
15587         PR c/43211
15588         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
15589         an error.
15590
15591 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
15592
15593         PR rtl-optimization/42258
15594         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
15595         use that may match DEF.
15596
15597         PR target/40697
15598         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
15599         the cost of loading the constant rather than assuming
15600         COSTS_N_INSNS (1).
15601         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
15602         outer code is AND, do the same tests as the andsi3 expander and
15603         return COSTS_N_INSNS (1) if and is cheap.
15604
15605         * optabs.c (avoid_expensive_constant): Fix formatting.
15606
15607 2010-03-19  Michael Matz  <matz@suse.de>
15608
15609         PR c++/43116
15610         * attribs.c (decl_attributes): When rebuilding a function pointer
15611         type use the same qualifiers as the original pointer type.
15612
15613 2010-03-19  Martin Jambor  <mjambor@suse.cz>
15614
15615         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
15616         and is_gimple_ip_invariant_address.
15617
15618 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15619
15620         Revert
15621         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15622
15623         * config/arm/arm.c (arm_override_options): Turn off
15624         flag_dwarf2_cfi_asm for AAPCS variants.
15625
15626 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15627
15628         PR target/43399
15629         * config/arm/arm.c (emit_multi_reg_push): Update comments.
15630         Use PRE_MODIFY instead of PRE_DEC.
15631         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
15632         (vfp_emit_fstmd): Likewise.
15633
15634 2010-03-19  Michael Matz  <matz@suse.de>
15635
15636         PR target/43305
15637         * builtins.c (expand_builtin_interclass_mathfn,
15638         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15639         if that fails.
15640
15641 2010-03-19  Richard Guenther  <rguenther@suse.de>
15642
15643         PR tree-optimization/43415
15644         * tree-ssa-pre.c (phi_translate): Split out worker to ...
15645         (phi_translate_1): ... this.
15646         (phi_translate): Move all caching here.  Cache all NARY
15647         and REFERENCE translations.
15648
15649 2010-03-19  David S. Miller  <davem@davemloft.net>
15650
15651         With help from Eric Botcazou.
15652         * config/sparc/sparc.c: Include dwarf2out.h.
15653         (emit_pic_helper): Delete.
15654         (pic_helper_symbol_name): Delete.
15655         (pic_helper_emitted_p): Delete.
15656         (pic_helper_needed): New.
15657         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15658         (get_pc_thunk_name): New.
15659         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
15660         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15661         Set pic_helper_needed to true.  Don't call emit_pic_helper.
15662         (sparc_expand_prologue): Update load_pic_register call.
15663         (sparc_output_mi_thunk): Likewise.
15664         (sparc_file_end): Emit a hidden comdat symbol for the PIC
15665         thunk if possible.  Output CFI information as needed.
15666
15667 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15668             Jack Howarth  <howarth@bromo.med.uc.edu>
15669
15670         PR target/36399
15671         * config/i386/i386.h: Fix ABI on darwin x86-32.
15672
15673 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
15674
15675         * tree.h: Declare make_decl_rtl_for_debug.
15676         * varasm.c (make_decl_rtl_for_debug): New.
15677         * dwarf2out.c (rtl_for_decl_location): Call it.
15678         * cfgexpand.c (expand_debug_expr): Call it.
15679
15680 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
15681
15682         PR bootstrap/43399
15683         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
15684         mem_mode.
15685
15686         PR bootstrap/43403
15687         * var-tracking.c (vt_init_cfa_base): Do nothing if
15688         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
15689
15690 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
15691
15692         PR debug/42873
15693         * var-tracking.c (canonicalize_vars_star): New.
15694         (dataflow_post_merge_adjust): Use it.
15695
15696 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
15697
15698         PR debug/43058
15699         * var-tracking.c (non_suitable_const): New function.
15700         (add_uses): For DEBUG_INSNs with constants, don't record any
15701         value, instead just the constant value itself.
15702         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
15703         is not VAR_LOC_UNKNOWN_P, set var to the constant.
15704         (emit_notes_in_bb): Likewise.
15705         (emit_note_insn_var_location): For onepart variables if
15706         cur_loc is a VOIDmode constant, use DECL_MODE.
15707
15708 2010-03-18  Martin Jambor  <mjambor@suse.cz>
15709
15710         PR middle-end/42450
15711         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
15712         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
15713         all non-clones.  Moved call redirection...
15714         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
15715         (cgraph_materialize_all_clones): Dispose of all
15716         combined_args_to_skip bitmaps.
15717         (verify_cgraph_node): Do not check for edges pointing to wrong
15718         nodes in inline clones.
15719         * tree-inline.c (copy_bb): Call
15720         cgraph_redirect_edge_call_stmt_to_callee.
15721         * ipa.c (cgraph_remove_unreachable_nodes): Call
15722         cgraph_node_remove_callees even when there are used clones.
15723
15724 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
15725
15726         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
15727
15728 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
15729
15730         PR target/43383
15731         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
15732         for 32bit.
15733
15734 2010-03-18  Michael Matz  <matz@suse.de>
15735
15736         PR middle-end/43419
15737         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15738         into sqrt(x) if we need to preserve signed zeros.
15739
15740 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
15741             Eric Botcazou  <ebotcazou@adacore.com>
15742
15743         PR rtl-optimization/43360
15744         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15745         note if we don't know its invariant status.
15746
15747 2010-03-18  Michael Matz  <matz@suse.de>
15748
15749         PR tree-optimization/43402
15750         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15751         PHI chains of ssa names registered for update.
15752
15753 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
15754
15755         PR target/42427
15756         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15757         non-offsettable and pre_modify update addressing.
15758         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15759         and "2" alternatives "#".
15760         (*movdd_softfloat32): Make all alternatives "#";
15761         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15762         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15763         (*movdf_softfloat32): Make all alternatives "#";
15764         (movdi): Use the new DIFD mode iterator to create a common splitter
15765         for movdi, movdf and movdd patterns.
15766
15767 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
15768
15769         * common.opt (dumpdir): Remove redundant tab.
15770
15771 2010-03-17  Martin Jambor  <mjambor@suse.cz>
15772
15773         PR tree-optimization/43347
15774         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15775         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15776
15777 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
15778
15779         PR rtl-optimization/42216
15780         * regrename.c (create_new_chain): New function, broken out from...
15781         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
15782         appending a use to an empty chain.
15783         (build_def_use): Remove previous changes that convert OP_INOUT to
15784         OP_OUT operands; instead detect the case where an OP_INOUT operand
15785         uses a previously untracked register and create an empty chain for it.
15786
15787 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15788
15789         * doc/extend.texi (Function Attributes): Rewrite unfinished
15790         sentence in ms_abi documentation.
15791
15792 2010-03-17  Alan Modra  <amodra@gmail.com>
15793
15794         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15795         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15796         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15797         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15798
15799 2010-03-16  Richard Henderson  <rth@redhat.com>
15800
15801         PR middle-end/43365
15802         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15803         (lower_try_finally): Save and restore eh_seq around the expansion
15804         of the try-finally.
15805
15806 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
15807
15808         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15809         statements before splitting block.
15810
15811 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15812
15813         * doc/sourcebuild.texi (Testsuites): Fix markup.
15814         Use pathnames relative to gcc/testsuite.
15815         (Test Directives): Move description of how timeout is determined.
15816         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15817         (C Tests): Correct gcc.misc-tests directory.
15818         Framework tests now live in gcc.test-framework.
15819
15820 2010-03-16  Richard Guenther  <rguenther@suse.de>
15821
15822         PR middle-end/43379
15823         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15824         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15825
15826 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
15827             Alexandre Oliva  <aoliva@redhat.com>
15828
15829         PR tree-optimization/42917
15830         * lambda-code.c (remove_iv): Skip debug statements.
15831         (lambda_loopnest_to_gcc_loopnest): Likewise.
15832         (not_interesting_stmt): Debug statements are not interesting.
15833
15834 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
15835
15836         PR debug/43051
15837         PR debug/43092
15838         * cselib.c (cselib_preserve_constants,
15839         cfa_base_preserved_val): New static variables.
15840         (preserve_only_constants): New function.
15841         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15842         clear its REG_VALUES.  If cselib_preserve_constants, don't
15843         empty the whole hash table, but preserve there VALUEs with constants,
15844         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15845         (cselib_preserve_cfa_base_value): New function.
15846         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15847         (cselib_init): Change argument to int bitfield.  Set
15848         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15849         is in it.
15850         (cselib_finish): Clear cselib_preserve_constants and
15851         cfa_base_preserved_val.
15852         * cselib.h (enum cselib_record_what): New enum.
15853         (cselib_init): Change argument to int.
15854         (cselib_preserve_cfa_base_value): New prototype.
15855         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15856         * dse.c (dse_step1): Likewise.
15857         * cfgcleanup.c (thread_jump): Likewise.
15858         * sched-deps.c (sched_analyze): Likewise.
15859         * gcse.c (local_cprop_pass): Likewise.
15860         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15861         If FN is non-NULL, call the callback always and whenever it returns
15862         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
15863         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15864         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15865         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15866         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15867         * var-tracking.c: Include recog.h.
15868         (bb_stack_adjust_offset): Remove.
15869         (vt_stack_adjustments): Don't call it, instead just gather the
15870         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15871         (adjust_stack_reference): Remove.
15872         (compute_cfa_pointer): New function.
15873         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15874         (struct adjust_mem_data): New type.
15875         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15876         functions.
15877         (get_address_mode): New function.
15878         (replace_expr_with_values): Use it.
15879         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15880         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
15881         (adjust_sets): Remove.
15882         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15883         Use get_address_mode.
15884         (get_adjusted_src): Remove.
15885         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
15886         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
15887         (add_with_sets): Don't call adjust_sets.
15888         (fp_setter, vt_init_cfa_base): New functions.
15889         (vt_initialize): Change return type to bool.  Move most of pool etc.
15890         initialization to the beginning of the function from end.  Pass
15891         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15892         If !frame_pointer_needed, call vt_stack_adjustment before mos
15893         vector is filled, call vt_init_cfa_base if argp/framep has been
15894         eliminated to sp.  If frame_pointer_needed and argp/framep has
15895         been eliminated to hard frame pointer, set
15896         hard_frame_pointer_adjustment and call vt_init_cfa_base after
15897         encountering fp setter in the prologue.  For MO_ADJUST, call
15898         log_op_type before pusing the op into mos vector, not afterwards.
15899         Call adjust_insn before cselib_process_insn/add_with_sets,
15900         call cancel_changes (0) afterwards.
15901         (variable_tracking_main_1): Adjust for vt_initialize calling
15902         vt_stack_adjustments and returning whether it succeeded or not.
15903
15904 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
15905
15906         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15907         debug statements.
15908
15909 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
15910
15911         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15912         has been set.
15913         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15914         drap_reg has not been set.
15915
15916 2010-03-15  Michael Matz  <matz@suse.de>
15917
15918         PR middle-end/43300
15919         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15920         use it to expand block copies.
15921         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15922         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15923         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15924
15925 2010-03-15  Richard Guenther  <rguenther@suse.de>
15926
15927         PR tree-optimization/43367
15928         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15929         elimination check.
15930
15931 2010-03-15  Richard Guenther  <rguenther@suse.de>
15932
15933         PR tree-optimization/43317
15934         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15935
15936 2010-03-15  Martin Jambor  <mjambor@suse.cz>
15937
15938         PR tree-optimization/43141
15939         * tree-sra.c (create_abstract_origin): New function.
15940         (modify_function): Call create_abstract_origin.
15941
15942 2010-03-15  Chris Demetriou  <cgd@google.com>
15943
15944         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15945         wasn't copied.
15946
15947 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15948
15949         PR middle-end/43354
15950         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15951         call insert_out_of_ssa_copy for default definitions.
15952
15953 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15954
15955         * graphite-clast-to-gimple.c (my_long_long): Defined.
15956         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15957         * graphite-sese-to-poly.c (my_long_long): Defined.
15958         (scop_ivs_can_be_represented): Use it.
15959
15960 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15961
15962         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15963         graphite-max-bbs-per-function, and loop-block-tile-size.
15964         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15965         with "maximum".
15966         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15967
15968 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15969
15970         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15971         forward declaration.
15972         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15973         (add_upper_bounds_from_estimated_nit): New.
15974         (build_loop_iteration_domains): Use it.
15975
15976 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15977
15978         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15979
15980 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15981
15982         PR middle-end/43306
15983         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15984         should be an INTEGER_CST.  Also handle CASE_CONVERT.
15985
15986 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15987
15988         * graphite.c (graphite_initialize): To bound the number of bbs per
15989         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15990         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15991         * doc/invoke.texi: Document it.
15992
15993 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15994
15995         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15996         * graphite-sese-to-poly.h (build_poly_scop): Same.
15997
15998 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15999
16000         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
16001         the number of parameters in the scop.  Use as an upper bound
16002         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
16003         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
16004         * doc/invoke.texi: Document it.
16005
16006 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
16007
16008         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
16009         * doc/c-tree.texi: Remove.
16010         * doc/generic.texi: Merge c-tree.texi here.
16011         * doc/gccint.texi (Trees): Remove menu entry.
16012         (c-tree.texi): Remove @include.
16013         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
16014         * doc/languages.texi (Reading RTL): Ditto.
16015
16016 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
16017
16018         PR target/42869
16019         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
16020
16021 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16022
16023         PR middle-end/42431
16024         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
16025         code added to work around reload clobbering CONST insns.
16026
16027 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
16028
16029         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
16030         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
16031         (cselib_preserve_only_values): Remove retain argument, don't
16032         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
16033         * cselib.h (cselib_preserve_only_values): Remove retain argument.
16034         * var-tracking.c (micro_operation): Move insn field before union.
16035         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
16036         (struct variable_tracking_info_def): Remove n_mos field, change
16037         mos into a vector of micro_operations.
16038         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
16039         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
16040         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
16041         changing into a vector.
16042         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
16043         come before all other uops generated by add_stores.
16044         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
16045         argument removal.
16046         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
16047         a vector.  Run just one pass over the bbs instead of separate counting
16048         and computation phase.
16049         (vt_finalize): Free VTI (bb)->mos vector instead of array.
16050
16051         PR debug/43329
16052         * tree-inline.c (remap_decls): Put old_var rather than origin_var
16053         into *nonlocalized_list vector.
16054         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16055         even if origin is non-NULL.
16056         (gen_variable_die): Likewise.
16057         (process_scope_var): Don't change origin.
16058         (gen_decl_die): Likewise.
16059         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16060         before adding new edges instead of after it, fix moving over
16061         debug stmts.
16062
16063 2010-03-11  David S. Miller  <davem@davemloft.net>
16064
16065         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16066         of four.
16067         * configure: Rebuild.
16068
16069 2010-03-11  Martin Jambor  <mjambor@suse.cz>
16070
16071         PR tree-optimization/43257
16072         * tree.c (assign_assembler_name_if_neeeded): New function.
16073         (free_lang_data_in_cgraph): Assembler name assignment moved to the
16074         above new function.
16075         * tree.h (assign_assembler_name_if_neeeded): Declare.
16076         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16077         the function if needed.
16078
16079 2010-03-11  Chris Demetriou  <cgd@google.com>
16080
16081         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16082         include/stdint-gcc.h, and include/stdint.h world-readable.
16083
16084 2010-03-11  Richard Guenther  <rguenther@suse.de>
16085
16086         PR tree-optimization/43255
16087         * tree-vrp.c (process_assert_insertions_for): Do not insert
16088         asserts for trivial conditions.
16089
16090 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16091
16092         PR tree-optimization/43280
16093         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16094         generation.  Move calculation of size out of the if branch.
16095         (find_bswap): Modify compare number generation.
16096
16097 2010-03-11  Richard Guenther  <rguenther@suse.de>
16098
16099         PR lto/43200
16100         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16101         (input_gimple_stmt): Fixup handled component types during
16102         operand read.  Also fix up decls in ADDR_EXPRs.
16103
16104 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
16105
16106         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16107         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16108
16109 2010-03-10  Jan Hubicka  <jh@suse.cz>
16110
16111         PR c/43288
16112         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16113         * varasm.c (get_variable_section): Don't do that here...
16114         (make_decl_rtl): ... and here.
16115         (do_assemble_alias): Produce decl RTL.
16116         (assemble_alias): Likewise.
16117
16118 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
16119
16120         PR debug/43290
16121         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16122         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16123         of fde->vdrap_reg.
16124         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16125         (based_loc_descr): Only express drap or vdrap regno based expressions
16126         using DW_OP_fbreg when not optimizing.
16127         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16128         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16129         REG_CFA_SET_VDRAP note.
16130
16131 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
16132
16133         PR tree-optimization/43236
16134         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16135         error in calculation of base address in reverse iteration case.
16136         (generate_builtin): Take number of latch executions if the statement
16137         is in the latch.
16138
16139 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
16140
16141         PR middle-end/42859
16142         * tree-eh.c: Include pointer-set.h.
16143         (lower_eh_dispatch): Filter out duplicate case labels and
16144         remove the unneeded edge when the label is unused.  Return
16145         true when some edges are removed.
16146         (execute_lower_eh_dispatch): When any lowering resulted in
16147         removing an edge, also delete unreachable blocks.
16148
16149 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
16150
16151         PR bootstrap/43287
16152         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16153         UNSPEC_MACHOPIC_OFFSET.
16154
16155 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
16156
16157         PR target/43294
16158         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16159         (m68k_delegitimize_address): New function.
16160
16161 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
16162
16163         PR debug/43299
16164         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16165
16166         PR debug/43299
16167         * var-tracking.c (adjust_sets): New function.
16168         (count_with_sets, add_with_sets): Use it.
16169         (get_adjusted_src): New inline function.
16170         (add_stores): Use it.
16171
16172         PR debug/43304
16173         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16174         call cselib_dummy_expand_value_rtx_cb instead of
16175         cselib_expand_value_rtx_cb.
16176
16177         PR debug/43293
16178         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16179         * config/i386/i386.c: Include debug.h and dwarf2out.h.
16180         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16181         and .cfi_endproc around the pic thunks.
16182         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16183         all queued unwind info register saves are saved before the call.
16184         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16185         considered as sp-=4 for unwind info and the pop as sp+=4 which
16186         also clobbers dest, but doesn't actually restore it.
16187
16188         PR debug/43290
16189         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16190         RTX_FRAME_RELATED_P.
16191
16192 2010-03-09  Jie Zhang  <jie@codesourcery.com>
16193
16194         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16195         whitespaces in output template.
16196
16197 2010-03-09  Jie Zhang  <jie@codesourcery.com>
16198
16199         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16200         out array boundary.
16201
16202 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
16203
16204         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16205         builtins.exp in a separate job.
16206
16207 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16208
16209         * graphite-sese-to-poly.c (add_param_constraints): Use
16210         lower_bound_in_type and upper_bound_in_type.
16211
16212 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16213
16214         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16215         instead of unsigned_type_node.
16216
16217 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16218             Reza Yazdani  <reza.yazdani@amd.com>
16219
16220         PR middle-end/43065
16221         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16222         on pointer type parameters.
16223
16224 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
16225
16226         PR middle-end/42644
16227         PR middle-end/42130
16228         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16229         handle conversions from pointer to integers.
16230         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16231         induction variable, to be able to work with code generated by CLooG.
16232         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16233         (build_poly_scop): Bail out if we cannot codegen a loop.
16234
16235 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
16236
16237         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16238         code generation with gloog_error.
16239
16240 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16241
16242         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16243         Call fold_convert on all the returned values.
16244         (expand_scalar_variables_expr): Pass to
16245         expand_scalar_variables_ssa_name the type of the resulting expression.
16246
16247 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16248
16249         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16250         ppl_min_for_le_pointset.
16251         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16252         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16253
16254 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16255
16256         * graphite-dependences.c (map_into_dep_poly): Removed.
16257         (dependence_polyhedron_1): Use combine_context_id_scat.
16258
16259 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16260
16261         * graphite-poly.h (struct poly_scattering): Add layout documentation.
16262         (struct poly_bb): Same.
16263         (combine_context_id_scat): New.
16264
16265 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16266
16267         PR middle-end/42326
16268         * sese.c (name_defined_in_loop_p): Return false for default
16269         definitions.
16270
16271 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16272
16273         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
16274         and clean up the logic.
16275
16276 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
16277
16278         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
16279         early return.
16280
16281 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
16282
16283         * var-tracking.c (remove_cselib_value_chains): Define only for
16284         ENABLE_CHECKING.
16285         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
16286         delete_slot_part, emit_notes_for_differences_1): Don't call
16287         remove_cselib_value_chains here.
16288         (set_slot_part, emit_notes_for_differences_2): Don't call
16289         add_cselib_value_chains here.
16290         (preserved_values): New vector.
16291         (preserve_value): New function.
16292         (add_uses, add_stores, vt_add_function_parameters): Use it
16293         instead of cselib_preserve_value.
16294         (changed_values_stack): New vector.
16295         (check_changed_vars_0): New function.
16296         (check_changed_vars_1, check_changed_vars_2): Use it.
16297         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
16298         changed_values_stack VALUEs.
16299         (vt_emit_notes): For all preserved_values call
16300         add_cselib_value_chains.  If ENABLE_CHECKING call
16301         remove_cselib_value_chains before verifying value_chains is empty.
16302         Initialize and free changed_values_stack.
16303         (vt_initialize): Initialize preserved_values.
16304         (vt_finalize): Free preserved_values.
16305
16306 2010-03-08  Richard Guenther  <rguenther@suse.de>
16307
16308         PR tree-optimization/43269
16309         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
16310         region detection.
16311
16312 2010-03-08  Martin Jambor  <mjambor@suse.cz>
16313
16314         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
16315         (ipa_is_param_called): Removed.
16316         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
16317         (ipa_print_node_params): Do not print the called flag.
16318         (ipa_write_node_info): Do not stream the called flag.
16319         (ipa_read_node_info): Likewise.
16320
16321 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
16322
16323         PR debug/43176
16324         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
16325         * cselib.c (struct expand_value_data): Add dummy field.
16326         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
16327         dummy to false.
16328         (cselib_dummy_expand_value_rtx_cb): New function.
16329         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
16330         any rtl.
16331         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
16332         * var-tracking.c: Include pointer-set.h.
16333         (variable): Change n_var_parts to char from int.  Add
16334         cur_loc_changed and in_changed_variables fields.
16335         (variable_canonicalize): Remove.
16336         (shared_var_p): New inline function.
16337         (unshare_variable): Maintain cur_loc_changed and
16338         in_changed_variables fields.  If var was in changed_variables,
16339         replace it there with new_var.  Just copy cur_loc instead of
16340         resetting it to something else.
16341         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
16342         (dataflow_set_union): Don't call variable_canonicalize.
16343         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16344         of their DEBUG_EXPR_TREE_DECLs.
16345         (canonicalize_loc_order_check): Verify that cur_loc is NULL
16346         and in_changed_variables and cur_loc_changed is false.
16347         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16348         and cur_loc_changed.  Don't update cur_loc here.
16349         (variable_merge_over_src): Don't call variable_canonicalize.
16350         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
16351         removing loc that is equal to cur_loc, clear cur_loc,
16352         set cur_loc_changed and ensure variable_was_changed is called.
16353         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
16354         compare pointers in cur_loc check, if it is equal to loc,
16355         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
16356         (variable_different_p): Remove compare_current_location argument,
16357         don't compare cur_loc.
16358         (dataflow_set_different_1): Adjust variable_different_p caller.
16359         (variable_was_changed): If dv had some var in changed_variables
16360         already, reset in_changed_variables flag for it and propagate
16361         cur_loc_changed over to the new variable.  On empty var
16362         always set cur_loc_changed.  Set in_changed_variables on whatever
16363         var is added to changed_variables.
16364         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16365         Use shared_var_p.  When removing loc that is equal to cur_loc,
16366         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
16367         end, don't set it to something else, just call variable_was_changed.
16368         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
16369         loc being removed, clear cur_loc and set cur_loc_changed.
16370         Set cur_loc_changed if all locations have been removed.
16371         (struct expand_loc_callback_data): New type.
16372         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16373         allocated.  Always create SUBREGs if simplify_subreg failed.
16374         Prefer to use cur_loc, when that fails and still in
16375         changed_variables (and seen first time) recompute it.  Set
16376         cur_loc_changed of variables which had to change cur_loc and
16377         compute elcd->cur_loc_changed if any of the subexpressions used
16378         had to change cur_loc.
16379         (vt_expand_loc): Adjust to pass arguments in
16380         expand_loc_callback_data structure.
16381         (vt_expand_loc_dummy): New function.
16382         (emitted_notes): New variable.
16383         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16384         that weren't used for any other decl in current
16385         emit_notes_for_changes call call vt_expand_loc_dummy to update
16386         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
16387         first loc_chain location if NULL before.  Always use just
16388         cur_loc instead of first loc_chain location.  When cur_loc_changed
16389         is false, when not --enable-checking=rtl just don't emit any note.
16390         When rtl checking, compute the note and assert it is the same
16391         as previous note.  Clear cur_loc_changed and in_changed_variables
16392         at the end before removing from changed_variables.
16393         (check_changed_vars_3): New function.
16394         (emit_notes_for_changes): Traverse changed_vars to call
16395         check_changed_vars_3 on each changed var.
16396         (emit_notes_for_differences_1): Clear cur_loc_changed and
16397         in_changed_variables.  Recompute cur_loc of new_var.
16398         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16399         (vt_emit_notes): Initialize and destroy emitted_notes.
16400
16401 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
16402
16403         PR rtl-optimization/42220
16404         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
16405         Use verify_reg_tracked to determine if we should use OP_OUT rather
16406         than OP_INOUT.
16407         (build_def_use): If we see an in-out operand for a register that we
16408         know nothing about, treat is an output if possible, fail the block if
16409         not.
16410
16411 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16412
16413         PR debug/42897
16414         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
16415         permanently.
16416
16417 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16418
16419         PR debug/42897
16420         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
16421         uses of relevant DEFs that are dead outside the loop too.
16422
16423 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16424
16425         * var-tracking.c (dataflow_set_merge): Swap src and src2.
16426         Reverted:
16427         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
16428         PR debug/41371
16429         * var-tracking.c (values_to_unmark): New variable.
16430         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16431         values_to_unmark vector.  Moved body to...
16432         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
16433         instead queue it into values_to_unmark vector.
16434         (vt_find_locations): Free values_to_unmark vector.
16435
16436 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
16437
16438         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
16439         (site.exp): Export them when plugins are enabled.
16440
16441 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
16442
16443         PR middle-end/42326
16444         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
16445         that contain scevs.
16446         (chrec_fold_multiply): Same.
16447
16448 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
16449
16450         PR c/43248
16451         * c-decl.c (build_compound_literal): Return early if init is
16452         an error_mark_node.
16453
16454 2010-03-04  Martin Jambor  <mjambor@suse.cz>
16455
16456         PR tree-optimization/43164
16457         PR tree-optimization/43191
16458         * tree-sra.c (type_consists_of_records_p): Reject records with
16459         zero-size bit-fields at the end.
16460
16461 2010-03-04  Mike Stump  <mikestump@comcast.net>
16462
16463         * Makefile.in (TAGS): Remove *.y.
16464
16465 2010-03-04  Richard Guenther  <rguenther@suse.de>
16466
16467         PR tree-optimization/40761
16468         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
16469         in reverse order.
16470         (my_rev_post_order_compute): New function.
16471         (init_pre): Call it.
16472
16473 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
16474
16475         PR middle-end/43209
16476         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
16477         decrease the cost of an IV candidate when the cost is infinite.
16478
16479 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16480
16481         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
16482         Use '3DNow!' for the extension of that name, ensure normal space
16483         after the string.
16484         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
16485
16486 2010-03-03  Jeff Law  <law@redhat.com>
16487
16488         * PR middle-end/32693
16489         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
16490         than gen_rtx_SUBREG.
16491         (extract_bit_field_1): Likewise.
16492
16493 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
16494
16495         * doc/sourcebuild.texi (Test directives): Document that arguments
16496         include-opts and exclude-opts are now optional for dg-skip-if,
16497         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
16498
16499 2010-03-03  Jason Merrill  <jason@redhat.com>
16500
16501         PR c++/12909
16502         * cgraph.h (varpool_node): Add extra_name field.
16503         * varpool.c (varpool_extra_name_alias): New.
16504         (varpool_assemble_decl): Emit extra name aliases.
16505         (varpool_mark_needed_node): Look past an extra name alias.
16506         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
16507         * lto-streamer-in.c (lto_input_tree): Read it.
16508         * lto-streamer-out.c (output_unreferenced_globals): Write it.
16509
16510 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
16511
16512         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
16513         (sparc*-*-solaris2*): ...this.
16514
16515 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
16516
16517         PR debug/43229
16518         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
16519         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
16520         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
16521         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
16522
16523         PR debug/43237
16524         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
16525         fallthrough to default handling, just with want_address 0 instead of 2.
16526         For single element lists, add_AT_loc directly, otherwise create an
16527         artificial variable DIE and stick location list to it.
16528
16529         PR debug/43177
16530         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
16531         (VAL_EXPR_HAS_REVERSE): Define.
16532         (reverse_op): New function.
16533         (add_stores): For reversible operations add an extra MO_VAL_USE.
16534
16535 2010-03-02  Jason Merrill  <jason@redhat.com>
16536
16537         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
16538
16539 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
16540
16541         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
16542         (sparc64-*-linux*): Likewise.
16543         (sparc64-*-solaris2*): Include assembler files before linker ones.
16544         (sparc-*-solaris2*): Simplify and reorder to match previous case.
16545         * config/sparc/gas.h: Delete.
16546         * config/sparc/sol2-64.h: Add copyright notice.
16547         * config/sparc/sol2-gas-bi.h: Likewise.
16548         * config/sparc/sol2-gld.h: Likewise.
16549         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
16550         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
16551         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
16552         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
16553         (sparc_elf_asm_named_section): Rename into...
16554         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
16555
16556 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
16557
16558         * config/alpha/alpha.c (override_options): Fix -mtune error message.
16559
16560 2010-03-02  Jeff Law  <law@redhat.com>
16561
16562         PR middle-end/42431
16563         * reload1.c (rtx_p, substitute_stack): Declare.
16564         (substitute): Record addresses of changed rtxs.
16565         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
16566         Restore the original rtx when complete.
16567         (reload): Free subsitute_stack when complete.
16568
16569 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
16570
16571         * doc/gccint.texi (menu): Add Testsuites as a chapter.
16572         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
16573         new chapter.
16574         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
16575         LTO Testing, gcov Testing, profopt Testing, compat Testing,
16576         Torture Tests): Change from subsection to section.
16577
16578 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
16579             Steven Bosscher  <steven@gcc.gnu.org>
16580
16581         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
16582         instead of bb.
16583
16584 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
16585
16586         PR middle-end/42640
16587         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
16588         the assignment from the new induction variable to the assignment
16589         of the value from the original loop PHI function.
16590
16591 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
16592             Daniel Jacobowitz  <dan@codesourcery.com>
16593
16594         * doc/sourcebuild.texi (Test directives): Clarify options to
16595         dg-skip-if.
16596
16597 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16598
16599         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
16600         Disable cfi directives unless GCC and gas agree on using read-only
16601         .eh_frame sections for 64-bit.
16602         * configure: Regenerate.
16603
16604 2010-03-01  Richard Guenther  <rguenther@suse.de>
16605
16606         PR tree-optimization/43220
16607         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
16608         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
16609
16610 2010-03-01  Richard Guenther  <rguenther@suse.de>
16611             Martin Jambor  <mjambor@suse.cz>
16612
16613         PR middle-end/41250
16614         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
16615         gimplified parameters.
16616
16617 2010-03-01  Christian Bruel  <christian.bruel@st.com>
16618
16619         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
16620
16621 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
16622
16623         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
16624
16625 2010-03-01  Richard Guenther  <rguenther@suse.de>
16626
16627         PR middle-end/43213
16628         * expr.c (expand_assignment): Use the alias-oracle to tell
16629         if the rhs aliases the result decl.
16630
16631 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16632
16633         PR pch/14940
16634         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16635         to sol_gt_pch_get_address.
16636         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16637         64-bit, SPARC and x86.
16638         (sol_gt_pch_get_address): New function.
16639
16640 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
16641
16642         * toplev.h (inform_n, error_n): Declare.
16643         * diagnostic.c (inform_n, error_n): New function.
16644
16645 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
16646
16647         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16648         has no rtl yet when processing local_decls, queue it and recheck
16649         if deferred stack allocation hasn't assigned it rtl.
16650
16651 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
16652
16653         * config/sh/sh.c (unspec_bbr_uid): New.
16654         (gen_block_redirect): Use it instead of INSN_UID.
16655         (gen_far_branch): Likewise.
16656
16657 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
16658
16659         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16660         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16661
16662 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16663
16664         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16665         (Warning Options): -Wno-conversion-null is valid for
16666         Objective-C++ as well.
16667         * doc/tm.texi (Named Address Spaces): Likewise.
16668         * doc/plugins.texi (Plugins): Replace TABs with spaces.
16669         * doc/tree-ssa.texi (Tree SSA): Likewise.
16670
16671 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16672
16673         PR bootstrap/43202
16674         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16675         by default.  Don't set the default arch for
16676         i[34567]86-*-darwin*|x86_64-*-darwin*.
16677
16678 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16679
16680         PR bootstrap/43202
16681         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
16682         default.  Set the default 32bit/64bit archs with $with_arch
16683         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
16684
16685 2010-02-27  Richard Guenther  <rguenther@suse.de>
16686
16687         PR tree-optimization/43186
16688         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
16689         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
16690         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
16691         unroller iterations.
16692
16693 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16694
16695         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
16696         required and i[34567]86-*-* targets don't support 64bit ISA.
16697
16698 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
16699
16700         PR ada/43096
16701         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16702         the same alias set.
16703
16704 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
16705
16706         * config.gcc: Set the default arch at least to Prescott for
16707         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
16708         if SSE math is enabled.
16709
16710 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16711
16712         * diagnostic.c (diagnostic_initialize): Update.
16713         (diagnostic_report_diagnostic): Test inhibit_notes_p for
16714         informative notes.
16715         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
16716         (diagnostic_inhibit_notes): New.
16717         * toplev.c (process_options): inhibit notes with -fcompare-debug.
16718
16719 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16720
16721         PR c/20631
16722         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
16723         * doc/standards.texi: Likewise.
16724         * doc/extend.texi: Likewise.
16725         * doc/trouble.texi: Likewise.
16726         * doc/cppopts.texi: Likewise.
16727         * doc/install.texi: Likewise.
16728         * c.opt (std=c90,std=gnu90): New options.
16729         * c-opts.c (c_common_handle_option): Handle them.
16730
16731 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16732
16733         PR c/24577
16734         * c-decl.c (undeclared_variable): Use an informative note.
16735
16736 2010-02-26  Richard Guenther  <rguenther@suse.de>
16737
16738         PR tree-optimization/43186
16739         * gimple.h (gimple_fold): Remove.
16740         * gimple.c (gimple_fold): Remove.  Inline into single user ...
16741         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16742         Try harder for conditions.
16743
16744 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
16745
16746         PR debug/43190
16747         * function.c (used_types_insert): Don't skip through named pointer
16748         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
16749         and it is different from the main variant's type.
16750
16751 2010-02-26  Nick Clifton  <nickc@redhat.com>
16752
16753         * config/rx/rx.md (sminsi3): Remove bogus alternative.
16754
16755 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
16756
16757         * config.gcc: Support --with-fpmath=sse for x86.
16758
16759         * config/i386/ssemath.h: New.
16760
16761         * doc/install.texi (--with-fpmath=sse): Documented.
16762
16763 2010-02-26  Richard Guenther  <rguenther@suse.de>
16764
16765         PR tree-optimization/43188
16766         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16767         vector types of over-aligned element type.
16768
16769 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
16770
16771         PR target/43175
16772         * config/i386/i386.c (expand_vec_perm_blend): Use correct
16773         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
16774
16775 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
16776
16777         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16778
16779 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
16780
16781         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16782         * var-tracking.c: Include diagnostic.h.
16783         (debug_dv): New function.
16784         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16785
16786         PR debug/43160
16787         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16788         (add_value_chain, add_value_chains, remove_value_chain,
16789         remove_value_chains): Handle DEBUG_EXPRs.
16790         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16791
16792         PR debug/43161
16793         * regcprop.c (struct queued_debug_insn_change): New type.
16794         (struct value_data_entry): Add debug_insn_changes field.
16795         (struct value_data): Add n_debug_insn_changes field.
16796         (debug_insn_changes_pool): New variable.
16797         (free_debug_insn_changes, apply_debug_insn_changes,
16798         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16799         (kill_value_one_regno): Call free_debug_insn_changes if needed.
16800         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16801         fields.
16802         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16803         changes for them.
16804         (copyprop_hardreg_forward_1): Don't call apply_change_group for
16805         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
16806         changes, call cprop_find_used_regs via note_stores.
16807         (copyprop_hardreg_forward): When copying vd from predecessor
16808         which has any queued DEBUG_INSN changes, make sure the pointers are
16809         cleared.  At the end call df_analyze and then if there are any
16810         DEBUG_INSN changes queued at the end of some basic block for still
16811         live registers, apply them.
16812         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16813
16814 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
16815
16816         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16817         (arm*-*-*): Ditto.
16818
16819 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
16820
16821         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16822         targets.  Set the default with_cpu/with_arch from arch/cpu.
16823         Allow x86-64 and native for with_cpu/with_arch.
16824
16825 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
16826
16827         * ebitmap.c: Change calls to verify_popcount with calls to
16828         sbitmap_verify_popcount.
16829         (ebitmap_clear_bit): Fixed map->cacheindex test and
16830         map>cache update when bit clearing results in an empty
16831         element.
16832
16833 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16834
16835         PR target/43154
16836         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16837         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16838         and support both V2DF and V2DI modes.
16839         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16840         support both V2DF and V2DI modes.
16841         (general): Delete trailing whitespace from a few patterns.
16842
16843         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16844         V2DF/V2DI interleave high/low builtins.
16845
16846         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16847         new VSX builtins.
16848
16849         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16850         interleave high/low functions.
16851
16852 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
16853
16854         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16855         #pragma extern_prefix.
16856
16857 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
16858
16859         PR debug/43166
16860         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16861         BLKmode, assert op0 is a MEM and just adjust its mode.
16862
16863         PR debug/43165
16864         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16865         if bitpos isn't multiple of mode's bitsize.
16866
16867 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16868
16869         * c.opt (-ftemplate-depth=): New.
16870         (-ftemplate-depth-): Deprecate.
16871         * optc-gen.awk: Handle -ftemplate-depth=.
16872         * opth-gen.awk: Likewise.
16873         * c-opts.c (c_common_handle_option): Likewise.
16874         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16875
16876 2010-02-24  Jason Merrill  <jason@redhat.com>
16877
16878         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16879
16880 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16881
16882         * cfg.c (alloc_aux_for_block): Remove inline.
16883         (alloc_aux_for_edge): Likewise.
16884
16885 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16886
16887         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16888
16889 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16890
16891         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16892         * config/i386/sol2-gas.h: New file.
16893         * config.gcc (i[34567]86-*-solaris2*): Use it.
16894
16895 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16896
16897         PR c/43128
16898         * c-typeck.c (ep_convert_and_check): New.
16899         (build_conditional_expr): Use it.
16900         (build_binary_op): Likewise.
16901
16902 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
16903
16904         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16905
16906         PR debug/43150
16907         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16908         bounds even for -O+.
16909         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16910         expr needs to have DECL_NAME set.
16911
16912 2010-02-24  Nick Clifton  <nickc@redhat.com>
16913
16914         * config/mep/mep.c: Include gimple.h.
16915         (mep_function_uses_sp): Delete unused function.
16916         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16917         parameters.  Use unsigned integers to count args.  Return a
16918         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
16919
16920 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
16921
16922         PR target/43107
16923         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16924         greater or equal to nelt instead of 2 * nelt.
16925         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16926         with nelt - 1.
16927
16928 2010-02-23  Jason Merrill  <jason@redhat.com>
16929
16930         PR debug/42800
16931         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16932         in cfun->local_decls even if they have register types.
16933
16934         PR c++/42837
16935         * stor-layout.c (place_field): Don't warn about unnecessary
16936         DECL_PACKED if the type is packed.
16937
16938 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
16939
16940         PR target/43139
16941         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16942         GOTOFF relocs, even when the base reg isn't pic pointer.
16943
16944 2010-02-23  Michael Matz  <matz@suse.de>
16945
16946         PR debug/43077
16947         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16948         (expand_gimple_basic_block): Generate and use debug temps if there
16949         are debug uses left after the last real use of TERed ssa names.
16950         Unlink debug immediate uses when they are expanded.
16951
16952 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16953
16954         PR 43123
16955         * config/i386/i386.c (override_options): Reorganise to provide
16956         better error messages.
16957
16958 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16959
16960         PR middle-end/43083
16961         * graphite-scop-detection.c (create_single_exit_edge): Move
16962         the call to find_single_exit_edge to....
16963         (create_sese_edges): ...here.  Don't handle multiple edges
16964         exiting the function.
16965         (build_graphite_scops): Don't handle multiple edges
16966         exiting the function.
16967
16968 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16969
16970         PR middle-end/43097
16971         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16972         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16973
16974 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16975
16976         PR middle-end/43026
16977         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16978
16979 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16980
16981         PR c++/43126
16982         * c-typeck.c (convert_arguments): Print declaration location.
16983         * c-common.c (validate_nargs): Rename as
16984         builtin_function_validate_nargs.
16985         (check_builtin_function_arguments): Update.
16986
16987 2010-02-22  Richard Guenther  <rguenther@suse.de>
16988
16989         PR lto/43045
16990         * tree-inline.c (declare_return_variable): Use the type of
16991         the call stmt lhs if available.
16992
16993 2010-02-22  Duncan Sands  <baldrick@free.fr>
16994
16995         * passes.c (register_pass): Always consider all pass lists when
16996         ref_pass_instance_number is zero.
16997
16998 2010-02-22  Richard Guenther  <rguenther@suse.de>
16999
17000         PR tree-optimization/42749
17001         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
17002         parameter.  Do arithmetic in the original type.
17003         (update_accumulator_with_ops): Likewise.
17004         (adjust_accumulator_values): Adjust.
17005
17006 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17007
17008         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
17009         (QI to BLKmode splitter): New splitter.
17010
17011 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
17012
17013         * config/i386/i386.c (initial_ix86_tune_features): Turn on
17014         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
17015
17016 2010-02-22  Richard Guenther  <rguenther@suse.de>
17017
17018         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
17019
17020 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
17021
17022         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
17023         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
17024         ($(T)crti.o, $(T)crtn.o): Remove rules.
17025
17026 2010-02-21  Tobias Burnus  <burnus@net-b.de>
17027
17028         PR fortran/35259
17029         * doc/invoke.texi (-fassociative-math): Document that this
17030         option is automatically enabled for Fortran.
17031
17032 2010-02-20  David S. Miller  <davem@davemloft.net>
17033
17034         * configure.ac: Test if linker and assembler properly support
17035         GOTDATA_OP relocations.
17036         * configure: Rebuild.
17037         * config.in: Likewise.
17038         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
17039         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
17040         (movsi_high_pic): Likewise.
17041         (movdi_lo_sum_pic): Likewise.
17042         (movdi_high_pic): Likewise.
17043         (movsi_pic_gotdata_op): New pattern.
17044         (movdi_pic_gotdata_op): Likewise.
17045         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
17046         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
17047
17048 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
17049
17050         PR target/43067
17051         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17052         attribute to ssemul.
17053         (xop_mulv2div2di3_high): Ditto.
17054
17055 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17056
17057         PR c++/35669
17058         * c.opt (Wconversion-null): New option.
17059         * doc/invoke.texi (Wconversion-null): Document.
17060
17061 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17062
17063         * common.opt (Wlarger-than-): Add Undocumented.
17064
17065 2010-02-19  Mike Stump  <mikestump@comcast.net>
17066
17067         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17068
17069 2010-02-19  Jason Merrill  <jason@redhat.com>
17070
17071         PR target/40332
17072         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17073         * configure: Likewise.
17074
17075 2010-02-20  Alan Modra  <amodra@gmail.com>
17076
17077         PR middle-end/42344
17078         * cgraph.h (cgraph_make_decl_local): Declare.
17079         * cgraph.c (cgraph_make_decl_local): New function.
17080         (cgraph_make_node_local): Use it.
17081         * cgraphunit.c (cgraph_function_versioning): Likewise.
17082         * ipa.c (function_and_variable_visibility): Likewise.
17083
17084 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17085
17086         PR bootstrap/43121
17087         * except.c (sjlj_emit_function_enter): Don't call
17088         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17089         directly.
17090         * rtl.h (add_reg_br_prob_note): Remove prototype.
17091
17092 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17093
17094         PR 41779
17095         * c-common.c (conversion_warning): Remove widening conversions
17096         before checking the conversion of integers to reals.
17097
17098 2010-02-19  Mike Stump  <mikestump@comcast.net>
17099
17100         PR middle-end/43125
17101         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17102
17103         PR objc/43061
17104         * cgraphunit.c (process_function_and_variable_attributes): Check
17105         DECL_PRESERVE_P instead of looking up attribute "used".
17106         * ipa-pure-const.c (check_decl): Likewise.
17107         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17108         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17109         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17110         instead of attribute "used".
17111         * config/sol2-c.c (solaris_pragma_init): Likewise.
17112         (solaris_pragma_fini): Likewise.
17113
17114 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17115
17116         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17117         Use XCNEW instead of xcalloc.
17118         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17119         XNEW instead of xmalloc.
17120         (get_fields): Use XNEWVEC instead of xmalloc.
17121
17122         PR debug/43084
17123         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17124         populate vars array.
17125         (create_new_general_access): For debug stmts just reset value.
17126         (get_stmt_accesses): For accesses within debug stmts just record them
17127         using add_access_to_acc_sites instead of preventing the peeling or
17128         counting them as accesses.
17129
17130         PR middle-end/42233
17131         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17132
17133 2010-02-19  Richard Guenther  <rguenther@suse.de>
17134
17135         PR tree-optimization/42916
17136         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17137         instructions.
17138
17139 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
17140
17141         * configure.ac: Replace all uses of changequote in macro arguments
17142         with proper quoting.
17143
17144 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17145
17146         PR middle-end/42233
17147         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17148
17149 2010-02-19  Richard Guenther  <rguenther@suse.de>
17150
17151         PR tree-optimization/42944
17152         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17153         test for aliasing with errno.
17154
17155 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
17156
17157         PR middle-end/42233
17158         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17159         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17160         * dojump.c: Include output.h.
17161         (inv): New inline function.
17162         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17163         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17164         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17165         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17166         argument, pass it down to other calls.
17167         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
17168         add REG_BR_PROB note to the conditional jump.
17169         * cfgexpand.c (add_reg_br_prob_note): Removed.
17170         (expand_gimple_cond): Don't call it, add the probability
17171         as last argument to jumpif_1/jumpifnot_1.
17172         * Makefile.in (dojump.o): Depend on output.h.
17173         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17174         callers.
17175         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17176         * stmt.c (do_jump_if_equal): Likewise.
17177         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17178         * loop-unswitch.c (compare_and_jump_seq): Likewise.
17179         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17180         Likewise.
17181         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17182         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17183         jumpifnot_1 callers.
17184         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17185         callers.
17186         (store_expr): Adjust jumpifnot caller.
17187         (store_constructor): Adjust jumpif caller.
17188
17189         PR middle-end/42233
17190         * gimplify.c (gimple_boolify): For __builtin_expect call
17191         gimple_boolify also on its first argument.
17192
17193 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
17194
17195         * configure.ac (gnu-unique-object): Wrap regexps using [] in
17196         changequote block.
17197         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
17198         * configure: Regenerated.
17199
17200 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17201
17202         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17203         lang_hooks.types_compatible_p instead of comptypes.
17204
17205 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17206
17207         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17208         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17209         if __prefer_thumb__ is defined.
17210
17211 2010-02-18  Martin Jambor  <mjambor@suse.cz>
17212
17213         PR tree-optimization/43066
17214         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17215         array with zero-sized element type.
17216
17217 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
17218
17219         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17220         rtx, allocate struct var_loc_node here and return it to the
17221         caller, and only if it is actually needed.
17222         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17223         move it earlier and return immediately if it returns NULL.
17224
17225 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
17226
17227         * config/sparc/gas.h: New file.  Restore
17228         TARGET_ASM_NAMED_SECTION to its ELF default.
17229         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17230         check !HAVE_GNU_AS.
17231         * config/sparc/sparc.c (sparc_elf_asm_named_section):
17232         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
17233         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17234         after sparc/sysv4.h.
17235
17236 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
17237
17238         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17239
17240 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
17241
17242         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17243         patterns from predicated pattern.
17244
17245 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
17246
17247         PR target/43103
17248         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17249         for insn mnemonic suffix.
17250
17251 2010-02-17  Richard Guenther  <rguenther@suse.de>
17252
17253         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17254         to loop PHI nodes.
17255
17256 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
17257
17258         PR debug/42918
17259         * caller-save.c (save_call_clobbered_regs): If BB ends with
17260         a DEBUG_INSN, move any notes in between last real insn and the last
17261         DEBUG_INSN after the last DEBUG_INSN.
17262
17263 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
17264
17265         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17266         Fix return type.  Fix argument type.  Explain meaning of return value.
17267
17268 2010-02-16  Richard Guenther  <rguenther@suse.de>
17269
17270         PR tree-optimization/41043
17271         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
17272         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
17273         statements ...
17274         (vrp_visit_phi_node): ... but only for loop PHI nodes.
17275
17276 2010-02-16  Ira Rosen  <irar@il.ibm.com>
17277
17278         PR tree-optimization/43074
17279         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
17280         * tree-vect-loop.c (vect_analyze_loop_operations): Add
17281         vectorizable cycles in hybrid SLP check.
17282         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
17283
17284 2010-02-16  Richard Guenther  <rguenther@suse.de>
17285
17286         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
17287         (true_dependence): If memrefs_conflict_p computes must-alias
17288         trust it.  Move TBAA check after offset-based disambiguation.
17289         (canon_true_dependence): Likewise.
17290
17291 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
17292
17293         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
17294         * doc/invoke.texi: Document it.
17295         * var-tracking.c: Include toplev.h and params.h.
17296         (vt_find_locations): Return bool indicating success.  Compute
17297         hash sizes unconditionally.  Check new parameter, report.
17298         (variable_tracking_main_1): Check vt_find_locations results and
17299         retry.  Renamed from...
17300         (variable_tracking_main): ... this.  New wrapper to preserve
17301         flag_var_tracking_assignments.
17302         * Makefile.in (var-tracking.o): Adjust dependencies.
17303
17304 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
17305             Jakub Jelinek  <jakub@redhat.com>
17306
17307         PR target/42854
17308         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
17309         if weak_import attribute is present.
17310         * config/darwin.c (machopic_select_section): Likewise.
17311
17312 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
17313
17314         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
17315         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
17316         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
17317         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
17318
17319         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
17320         types.
17321
17322         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17323         Fix argument types.
17324
17325         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
17326         Rewrite text to refer to the names.
17327
17328 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
17329
17330         * config/i386/i386-builtin-types.def
17331         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
17332         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17333         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17334         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17335         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17336         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17337         IX86_BUILTIN_VPERMIL2PS256.
17338         (MULTI_ARG_4_DF2_DI_I): Defined.
17339         (MULTI_ARG_4_DF2_DI_I1): Defined.
17340         (MULTI_ARG_4_SF2_SI_I): Defined.
17341         (MULTI_ARG_4_SF2_SI_I1): Defined.
17342         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17343         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17344         __builtin_ia32_vpermil2ps256.
17345         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17346         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17347         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
17348         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17349         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17350         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
17351         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17352         CODE_FOR_xop_vpermil2v8sf3.
17353         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17354         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17355         * config/i386/xopintrin.h (_mm_permute2_pd): New.
17356         (_mm256_permute2_pd): New.
17357         (_mm_permute2_ps): New.
17358         (_mm256_permute2_ps): New.
17359
17360 2010-02-15  Nick Clifton  <nickc@redhat.com>
17361
17362         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17363         boolean parameters.  Use emit_jump_insn when emitting a pop
17364         instruction containing a return insn.
17365         (push): Use 'true' rather than '1' as second parameter to F.
17366         (h8300_expand_prologue): Likewise.
17367         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17368         (h8300_expand_epilogue): Likewise.
17369
17370 2010-02-15  Richard Guenther  <rguenther@suse.de>
17371
17372         PR middle-end/43068
17373         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17374         if that is zero.
17375
17376 2010-02-15  Nick Clifton  <nickc@redhat.com>
17377
17378         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17379         delta.
17380
17381 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
17382
17383         * intl.c (fake_ngettext): New function.
17384         * intl.h (fake_ngettext): Declare.
17385         (ngettext): Define macro.
17386         * collect2.c (notice_translated): New function.
17387         (main): Use notice_translated and ngettext.
17388         * collect2.h (notice_translated): Declare.
17389
17390 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
17391
17392         * reorg.c (delete_computation): Comment fixes.
17393         * caller-save.c (setup_save_areas): Idem.
17394         * sel-sched-dump.c (dump_lv_set): Idem.
17395         * rtl.def: Idem.
17396
17397 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17398
17399         * config/s390/s390.c (s390_sched_init): New function.
17400         (TARGET_SCHED_INIT): Target hook defined.
17401
17402 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
17403             Jack Howarth  <howarth@bromo.med.uc.edu>
17404             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17405
17406         PR target/42982
17407         Partial revert of unintended change in fix for PR41605.
17408         * config/darwin.h: Fix typo.
17409         * config/darwin9.h: Same.
17410
17411 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
17412
17413         * c-pch.c (pch_init): Clear v.
17414
17415 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17416
17417         PR middle-end/42930
17418         * graphite-scop-detection.c (graphite_can_represent_scev): Call
17419         graphite_can_represent_init for MULT_EXPR.
17420
17421 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17422
17423         PR middle-end/42914
17424         PR middle-end/42530
17425         * graphite-sese-to-poly.c (remove_phi): New.
17426         (translate_scalar_reduction_to_array): Call remove_phi.
17427
17428 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17429
17430         PR middle-end/42771
17431         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
17432         * graphite-clast-to-gimple.h (gloog): Update declaration.
17433         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
17434         * graphite-poly.h (struct poly_bb): Add missing comments.
17435         (struct scop): Add poly_scop_p field.
17436         (POLY_SCOP_P): New.
17437         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
17438         * graphite.c (graphite_transform_loops): Build the polyhedral
17439         representation for each scop before code generation.
17440         * sese.c (rename_variables_in_operand): Removed.
17441         (rename_variables_in_expr): Return the renamed expression.
17442         (rename_sese_parameters): New.
17443         * sese.h (rename_sese_parameters): Declared.
17444
17445 2010-02-11  Richard Guenther  <rguenther@suse.de>
17446
17447         PR tree-optimization/42998
17448         * tree-ssa-pre.c (create_expression_by_pieces): Treat
17449         POINTER_PLUS_EXPR properly.
17450
17451 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17452             Changpeng Fang  <changpeng.fang@amd.com>
17453
17454         PR middle-end/40886
17455         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
17456         the cost of an IV candidate when the IV is used in a test against zero.
17457
17458         * gcc.dg/tree-ssa/ivopts-3.c: New.
17459
17460 2010-02-11  Richard Guenther  <rguenther@suse.de>
17461
17462         PR lto/41664
17463         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
17464         pointer-vs-decl case by swapping refs.  Handle some cases
17465         of pointer-vs-decl disambiguations more conservatively.
17466         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
17467         to false after expanding.
17468
17469 2010-02-11  Richard Guenther  <rguenther@suse.de>
17470
17471         PR driver/43021
17472         * gcc.c (process_command): Handle LTO file@offset case more
17473         appropriately.
17474
17475 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
17476
17477         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
17478         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
17479         of DEBUG_INSNs.
17480         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
17481
17482         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
17483         if MEM's mode size isn't DWARF2_ADDR_SIZE.
17484         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
17485         Optimize eq/ne comparisons when both arguments are known to be
17486         zero-extended.
17487         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
17488         Don't mask operands unnecessarily if they are known to be already
17489         zero-extended.
17490
17491 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
17492
17493         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
17494         instead of loop.
17495
17496 2010-02-10  Richard Guenther  <rguenther@suse.de>
17497
17498         PR tree-optimization/43017
17499         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
17500         for wrapping signed arithmetic.
17501
17502 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
17503
17504         PR debug/43010
17505         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
17506         if no debug info should be emitted for it.
17507
17508 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17509
17510         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
17511         note when flag_exceptions is set.
17512
17513 2010-02-10  Duncan Sands  <baldrick@free.fr>
17514
17515         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
17516
17517 2010-02-10  Richard Guenther  <rguenther@suse.de>
17518
17519         PR c/43007
17520         * tree.c (get_unwidened): Handle constants.
17521         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
17522
17523 2010-02-10  Martin Jambor  <mjambor@suse.cz>
17524
17525         PR lto/42985
17526         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
17527         check for variable argument counts independently.
17528
17529 2010-02-10  Christian Bruel  <christian.bruel@st.com>
17530
17531         PR target/42841
17532         * config/sh/sh.c (find_barrier): Increase length for non delayed
17533         conditional branches.
17534
17535 2010-02-10  Christian Bruel  <christian.bruel@st.com>
17536
17537         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
17538
17539 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
17540
17541         * builtins.c (set_builtin_user_assembler_name): Also handle
17542         ffs if int is smaller than word.
17543
17544 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
17545
17546         PR middle-end/42973
17547         * ira-conflicts.c (get_dup): Remove.
17548         (process_reg_shuffles): Add new parameter.  Use it as an
17549         additional guard for copy generation.
17550         (add_insn_allocno_copies): Rewrite.
17551
17552 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
17553
17554         * common.opt (fsched2-use-traces): Preserved for backward
17555         compatibility.
17556         * doc/invoke.texi: Remove the documentation about option
17557         -fsched2-use-traces.
17558         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
17559         flag_sched2_use_traces.
17560         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
17561         the backward compatibility flag section.
17562
17563 2010-02-09  Richard Guenther  <rguenther@suse.de>
17564
17565         PR tree-optimization/43008
17566         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
17567         make HEAP variables initialized from global memory if they
17568         are not known builtin functions.
17569         (find_func_aliases): Adjust.
17570
17571 2010-02-09  Richard Guenther  <rguenther@suse.de>
17572
17573         PR tree-optimization/43000
17574         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
17575         arithmetic manually.
17576
17577 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
17578
17579         PR tree-optimization/42931
17580         * tree-loop-linear.c (try_interchange_loops): Don't call
17581         double_int_mul if estimated_loop_iterations failed.
17582
17583 2010-02-08  Martin Jambor  <mjambor@suse.cz>
17584
17585         PR middle-end/42898
17586         * tree-sra.c (build_accesses_from_assign): Do not mark in
17587         should_scalarize_away_bitmap if stmt has volatile ops.
17588         (sra_modify_assign): Do not process assigns piecemeal if if stmt
17589         has volatile ops.
17590
17591 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
17592
17593         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
17594
17595 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
17596
17597         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
17598         before the pattern.
17599
17600 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
17601
17602         PR middle-end/42946
17603         * df-core.c (df_finish_pass): Change type of saved_flags to int.
17604
17605 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
17606
17607         PR middle-end/42988
17608         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
17609         to unknown_dependence.
17610         (graphite_legal_transform_dr): Handle the unknown_dependence.
17611         (graphite_carried_dependence_level_k): Same.
17612
17613 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
17614
17615         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
17616
17617 2010-02-07  Richard Guenther  <rguenther@suse.de>
17618
17619         PR middle-end/42991
17620         * expr.c (get_inner_reference): Always initialize *pbitsize.
17621
17622 2010-02-07  Richard Guenther  <rguenther@suse.de>
17623
17624         PR middle-end/42956
17625         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
17626         new ARRAY_REFs on variable size element or minimal index arrays.
17627         Complete.
17628         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
17629         gimple_fold_indirect_ref.
17630
17631 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
17632
17633         PR target/42957
17634         * arm.c (arm_override_options): Just return if the user has specified
17635         an invalid fpu name.
17636
17637 2010-02-03  Jason Merrill  <jason@redhat.com>
17638
17639         PR c++/42870
17640         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17641         i386_pe_maybe_record_exported_symbol.
17642
17643 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
17644
17645         PR target/42924
17646         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17647         (pa_delegitimize_address): New function.
17648
17649 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
17650
17651         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17652         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17653
17654 2010-02-05  Richard Guenther  <rguenther@suse.de>
17655
17656         PR lto/42762
17657         * lto-streamer-in.c (get_resolution): Deal with references
17658         to undefined functions.
17659
17660 2010-02-05  Richard Guenther  <rguenther@suse.de>
17661
17662         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17663         (fold_const_aggregate_ref): Likewise.
17664         (ccp_fold_stmt): Substitute loads.
17665         (maybe_fold_reference): Verify types before substituting.
17666         Unshare properly.
17667         (fold_gimple_assign): Unshare properly.
17668         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17669
17670 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
17671
17672         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17673         for rs6000_gen_cell_microcode.
17674
17675 2010-02-04  Richard Guenther  <rguenther@suse.de>
17676
17677         PR rtl-optimization/42952
17678         * dse.c (const_or_frame_p): Remove MEM handling.
17679
17680 2010-02-04  Nick Clifton  <nickc@redhat.com>
17681
17682         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17683         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17684         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
17685         (mn10300_asm_output_mi_thunk): New function.
17686         (mn10300_can_output_mu_thunk): New function.
17687         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
17688         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
17689         (FUNCTION_ARG): Delete incorrect comment.
17690
17691 2010-02-03  Jason Merrill  <jason@redhat.com>
17692
17693         PR c++/40138
17694         * fold-const.c (operand_equal_p): Handle erroneous types.
17695
17696 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17697
17698         * config/h8300/h8300.md (can_delay): Fix attibute condition.
17699
17700 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
17701
17702         PR rtl-optimization/42941
17703         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
17704         of xmalloc.
17705
17706 2010-02-03  Jason Merrill  <jason@redhat.com>
17707
17708         PR c++/35652
17709         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
17710
17711 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
17712
17713         PR debug/42896
17714         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
17715         (cselib_reset_table): Renamed from...
17716         (cselib_reset_table_with_next_value): ... this.
17717         (cselib_get_next_uid): Renamed from...
17718         (cselib_get_next_unknown_value): ... this.
17719         * cselib.c (next_uid): Renamed from...
17720         (next_unknown_value): ... this.
17721         (cselib_clear_table): Adjust.
17722         (cselib_reset_table): Adjust.  Renamed from...
17723         (cselib_reset_table_with_next_value): ... this.
17724         (cselib_get_next_uid): Adjust.  Renamed from...
17725         (cselib_get_next_unknown_value): ... this.
17726         (get_value_hash): Use hash.
17727         (cselib_hash_rtx): Likewise.
17728         (new_cselib_val): Adjust.  Set and dump uid.
17729         (cselib_lookup_mem): Pass next_uid as hash.
17730         (cselib_subst_to_values): Likewise.
17731         (cselib_log_lookup): Dump uid.
17732         (cselib_lookup): Pass next_uid as hash.  Adjust.
17733         (cselib_process_insn): Adjust.
17734         (cselib_init): Initialize next_uid.
17735         (cselib_finish): Adjust.
17736         (dump_cselib_table): Likewise.
17737         * dse.c (canon_address): Dump value uid.
17738         * print-rtl.c (print_rtx): Print value uid.
17739         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17740         (dvuid): New type.
17741         (dv_uid): New function, sort of renamed from...
17742         (dv_htab_hash): ... this, reimplemented in terms of it and...
17743         (dv_uid2hash): ... this.  New.
17744         (variable_htab_eq): Drop excess assertions.
17745         (tie_break_pointers): Removed.
17746         (canon_value_cmp): Compare uids.
17747         (variable_post_merge_New_vals): Print uids.
17748         (vt_add_function_parameters): Adjust.
17749         (vt_initialize): Reset table.  Adjust.
17750
17751 2010-02-03  Richard Guenther  <rguenther@suse.de>
17752
17753         PR tree-optimization/42944
17754         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17755         (call_may_clobber_ref_p_1): Likewise.  Properly handle
17756         malloc and calloc clobbering errno.
17757
17758 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
17759
17760         * doc/invoke.texi: Fix name of sched1 dump.
17761
17762         * opts.c (decode_options): Set flag_tree_switch_conversion
17763         only conditionally on optimize >= 2.
17764
17765         * gcse.c: Assorted comment fixes in pass description.
17766
17767 2010-02-03  Anthony Green  <green@moxielogic.com>
17768
17769         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17770         nop padding in order to maintain alignment of storage location of
17771         target function address.
17772         (moxie_trampoline_init): Store target function address at newly
17773         aligned location.
17774         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17775         to 32.
17776         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17777
17778 2010-02-03  Richard Guenther  <rguenther@suse.de>
17779
17780         PR middle-end/42927
17781         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17782
17783 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17784
17785         * config.gcc: Reenable check for obsolete targets.
17786         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17787         mips-sgi-irix6.[0-4]*.
17788
17789 2010-02-02  Nick Clifton  <nickc@redhat.com>
17790
17791         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17792         constant size of 4 as being the same as 0.
17793         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17794         can take values in the range 0..4.
17795
17796 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
17797
17798         PR java/41991
17799         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17800         as _darwin10_Unwind_FindEnclosingFunction().
17801         * libgcc-libsystem.ver: New.
17802
17803 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
17804
17805         PR target/41399
17806         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17807         implicitly set registers.
17808
17809 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
17810
17811         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17812         (arm_override_options): Allow automatic selection of the thread
17813         pointer register if thumb2.
17814         (legitimize_pic_address): Improve code sequences for Thumb2.
17815         (arm_call_tls_get_addr): Likewise.
17816         (legitimize_tls_address): Likewise.
17817         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
17818         (pic_load_addr_32bit): ... this.  New named pattern.
17819         * thumb2.md (pic_load_addr_thumb2): Delete.
17820         (pic_load_dot_plus_four): Delete.
17821         (tls_load_dot_plus_four): New named pattern.
17822
17823 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17824
17825         PR libgomp/29986
17826         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17827         Document fix for TLS bug.
17828
17829 2010-01-31  Richard Guenther  <rguenther@suse.de>
17830
17831         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17832         conservatively correct.
17833
17834 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17835
17836         PR target/42850
17837         Revert:
17838         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17839
17840         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17841
17842 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17843
17844         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17845
17846 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
17847
17848         * config.gcc: Adjust order of makefile fragments for mingw targets.
17849
17850 2010-01-31  Richard Guenther  <rguenther@suse.de>
17851
17852         PR middle-end/42898
17853         * gimplify.c (gimplify_init_constructor): For volatile LHS
17854         initialize a temporary.
17855
17856 2010-01-31  Matthias Klose  <doko@ubuntu.com>
17857
17858         * configure.ac: Fix __stack_chk_fail check for cross builds configured
17859         --with-headers
17860         * configure: Regenerate.
17861
17862 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
17863
17864         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17865         the same alias set and their sizes different constantness.
17866         (aliasing_component_refs_p): Revert 2009-10-24 change.
17867
17868 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17869
17870         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17871         unused.
17872
17873 2010-01-29  Richard Guenther  <rguenther@suse.de>
17874
17875         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17876         Assert we successfully updated the call.
17877
17878 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
17879
17880         PR rtl-optimization/42889
17881         * df.h (df_set_bb_dirty_nonlr): New prototype.
17882         * df-core.c (df_set_bb_dirty_nonlr): New function.
17883         * df-scan.c (df_insn_rescan): Call it instead of
17884         df_set_bb_dirty for DEBUG_INSNs.
17885
17886 2010-01-29  Richard Guenther  <rguenther@suse.de>
17887
17888         PR middle-end/37448
17889         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17890         quadratic behavior in most cases.
17891
17892 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
17893
17894         PR target/42891
17895         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17896         in the call to gen_x86_movsicc_0_m1.
17897
17898 2010-01-28  Richard Guenther  <rguenther@suse.de>
17899
17900         PR tree-optimization/42871
17901         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17902
17903 2010-01-28  Richard Guenther  <rguenther@suse.de>
17904
17905         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17906         into call arguments.
17907
17908 2010-01-28  Richard Guenther  <rguenther@suse.de>
17909
17910         PR middle-end/42883
17911         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17912         the forwarder if the destination is an EH landing pad.
17913
17914 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
17915
17916         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17917         block list passed to gimple_duplicate_sese_tail.
17918         (parallelize_loops): Avoid parallelization when the function
17919         has_nonlocal_label.
17920         Avoid parallelization when the preheader is IRREDUCIBLE.
17921         Try to optimize when estimated_loop_iterations_int is unresolved.
17922         Add the loop's location to the dump file.
17923         * tree-cfg.c (add_phi_args_after_redirect): Remove.
17924         (gimple_duplicate_sese_tail): Remove the check for the latch.
17925         Redirect nexits to the exit block.
17926         Remove handling of the incoming edges to the latch.
17927         Redirect the backedge from the copied latch to the exit bb.
17928
17929 2010-01-28  Michael Matz  <matz@suse.de>
17930
17931         PR target/42881
17932         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17933         Wrap force_reg into a sequence, emit it before user.
17934
17935 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
17936
17937         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17938         (arm_rev): New.
17939         (arm_legacy_rev): Likewise.
17940         (thumb_legacy_rev): Likewise.
17941
17942 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
17943
17944         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17945         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
17946         on MEM's address failed, try avoid_constant_pool_reference and
17947         recurse if it returned something different.
17948         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17949         address, try avoid_constant_pool_reference and recurse if it
17950         returned something different.
17951         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17952         address and avoid_constant_pool_reference returned something
17953         different, don't set have_address.
17954
17955 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
17956
17957         PR debug/42861
17958         * var-tracking.c (val_store): Add modified argument, obey it.
17959         Adjust callers.
17960         (count_uses): Move down logging of main.
17961         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17962         don't need resolution.
17963         (emit_notes_in_bb): Likewise.
17964
17965 2010-01-27  Richard Guenther  <rguenther@suse.de>
17966
17967         PR middle-end/42878
17968         * tree-inline.c (remap_decl): Delay remapping of SSA name
17969         default definitions until we need them.
17970
17971 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
17972
17973         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17974         (rs6000_delegitimize_address): New function.
17975
17976         * config/s390/s390.c (s390_delegitimize_address): Call
17977         delegitimize_mem_from_attrs.
17978
17979         PR middle-end/42874
17980         * tree-inline.c (cannot_copy_type_1): Removed.
17981         (copy_forbidden): Don't forbid copying of functions containing
17982         records/unions with variable length fields.
17983
17984 2010-01-27  Christian Bruel  <christian.bruel@st.com>
17985
17986         Revert:
17987         PR target/42841
17988         * config/sh/sh.c (find_barrier): Increase length for non delayed
17989         conditional branches.
17990
17991 2010-01-27  Matthias Klose  <doko@ubuntu.com>
17992
17993         * configure.ac (gnu-unique-object): Fix ldd version check.
17994         * configure: Regenerate.
17995
17996 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17997
17998         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17999         HAVE_GNU_AS value.
18000         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
18001         Test for HAVE_GNU_AS value.
18002
18003 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18004
18005         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
18006         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
18007         INT64_TYPE): Define.
18008         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
18009         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18010         INT_LEAST64_TYPE): Define.
18011         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
18012         UINT_LEAST64_TYPE): Define.
18013         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
18014         INT_FAST64_TYPE): Define.
18015         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18016         UINT_FAST64_TYPE): Define.
18017         (INTMAX_TYPE, UINTMAX_TYPE): Define.
18018         (INTPTR_TYPE, UINTPTR_TYPE): Define.
18019         (SIG_ATOMIC_TYPE): Define.
18020
18021 2010-01-26  Richard Guenther  <rguenther@suse.de>
18022
18023         * df-scan.c (df_scan_set_bb_info): Remove assert.
18024         (df_insn_rescan_debug_internal): Merge asserts.
18025         (df_install_ref): Likewise.
18026         (df_mark_reg): Use bitmap_set_range.
18027         (df_hard_reg_used_p): Remove assert.
18028         (df_hard_reg_used_count): Likewise.
18029
18030 2010-01-26  Richard Guenther  <rguenther@suse.de>
18031
18032         PR rtl-optimization/42685
18033         * web.c (web_main): Ignore DEBUG_INSNs.
18034
18035 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
18036
18037         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
18038
18039         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
18040         Fix types of fndecl and arglist parameters.
18041
18042 2010-01-26  Richard Guenther  <rguenther@suse.de>
18043
18044         PR middle-end/42806
18045         * tree-eh.c (unsplit_eh): Skip debug insns.
18046
18047 2010-01-26  Richard Guenther  <rguenther@suse.de>
18048
18049         PR tree-optimization/42250
18050         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18051
18052 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
18053
18054         PR fortran/42866
18055         * omp-low.c (expand_omp_sections): Only use single_pred if
18056         l2_bb is single_pred_p.
18057
18058 2010-01-25  Christian Bruel  <christian.bruel@st.com>
18059
18060         PR target/42841
18061         * config/sh/sh.c (find_barrier): Increase length for non delayed
18062         conditional branches.
18063         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18064
18065 2010-01-24  David S. Miller  <davem@davemloft.net>
18066
18067         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18068         define if not using GAS.
18069         * config/sparc/sparc.c (sparc_elf_asm_named_section):
18070         Likewise.  Delete SECTION_MERGE code, which is only applicable
18071         when using GAS.
18072
18073 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
18074
18075         PR c++/42748
18076         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18077         mangling of va_list in system headers.
18078
18079 2010-01-23  Toon Moene  <toon@moene.org>
18080
18081         * tree-predcom.c (combine_chains): Return NULL, not false.
18082
18083 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
18084
18085         * tree-loop-distribution.c (distribute_loop): Fix declaration and
18086         initialization of variable res to agree with return type.
18087
18088 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
18089
18090         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18091         * tree-sra.c: Add include of expr.h.
18092
18093 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
18094
18095         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18096         insert the debug stmt on the single non-EH edge from the stmt.
18097
18098 2010-01-22  Richard Henderson  <rth@redhat.com>
18099
18100         PR tree-opt/42833
18101         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18102         the RHS until after generate_subtree_copies has insertted its
18103         code before the current statement.
18104
18105 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
18106
18107         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18108
18109         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18110
18111 2010-01-21  Martin Jambor  <mjambor@suse.cz>
18112
18113         PR tree-optimization/42585
18114         * tree-sra.c (struct access): New field grp_total_scalarization.
18115         (dump_access): Dump the new field.
18116         (should_scalarize_away_bitmap): New variable.
18117         (cannot_scalarize_away_bitmap): Likewise.
18118         (sra_initialize): Allocate new bitmaps.
18119         (sra_deinitialize): Free new bitmaps.
18120         (create_access_1): New function.
18121         (create_access): Parts moved to create_access_1.
18122         (type_consists_of_records_p): New function.
18123         (completely_scalarize_record): Likewise.
18124         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18125         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18126         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18127         access.
18128         (analyze_all_variable_accesses): Completely scalarize small eligible
18129         records.
18130
18131 2010-01-21  Martin Jambor  <mjambor@suse.cz>
18132
18133         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18134
18135 2010-01-21  Andrew Haley  <aph@redhat.com>
18136
18137         * gcc.c (process_command): Move lang_specific_driver before
18138         setting cc_libexec_prefix.
18139
18140 2010-01-21  Richard Guenther  <rguenther@suse.de>
18141
18142         PR middle-end/19988
18143         * fold-const.c (negate_expr_p): Pretend only negative
18144         real constants are easily negatable.
18145
18146 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
18147             Jason Merrill  <jason@redhat.com>
18148
18149         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18150         (TYPE_TRANSPARENT_AGGR): this, for union and record.
18151         * calls.c (initialize argument_information): Handle it.
18152         * c-common.c (handle_transparent_union_attribute): Use new name.
18153         * c-decl.c (finish_struct): Ditto.
18154         * c-typeck.c (type_lists_compatible_p): Ditto.
18155         (convert_for_assignment): Use new name and also handle record.
18156         * function.c (aggregate_value_p): Handle it.
18157         (pass_by_reference): Ditto.
18158         (assign_parm_data_types): Ditto.
18159         * print-tree.c (print_node): Ditto.
18160         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18161         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18162         * tree.c (first_field): New fn.
18163
18164 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
18165
18166         PR target/42818
18167         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18168         even when linking statically, for now.
18169
18170 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
18171
18172         PR debug/42715
18173         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18174         without a cselib val.
18175         (count_uses): Accept MO_VAL_SET with no val on stores.
18176         (add_stores): Likewise.
18177
18178 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18179
18180         * var-tracking.c (check_value_val): Add a compile time assertion.
18181         (dv_is_decl_p): Simplify.
18182         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18183         gcc_assert if ENABLE_CHECKING.
18184
18185 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
18186
18187         PR debug/42782
18188         * var-tracking.c: Include tree-flow.h.
18189         (mem_dies_at_call): New.
18190         (dataflow_set_preserve_mem_locs): Use it.
18191         (dataflow_set_remove_mem_locs): Likewise.
18192         (dump_var): Renamed from dump_variable.  Adjust all callers.
18193         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
18194         * Makefile.in (var-tracking.o): Adjust deps.
18195
18196 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
18197
18198         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18199
18200 2010-01-20  Richard Guenther  <rguenther@suse.de>
18201
18202         PR tree-optimization/42717
18203         * tree-ssa-dce.c (get_live_post_dom): Remove.
18204         (forward_edge_to_pdom): Take an arbitrary edge to copy
18205         degenerate PHI args from.
18206         (remove_dead_stmt): Use the first post-dominator even if it
18207         does not contain live statements as redirection destination.
18208
18209 2010-01-20  Richard Guenther  <rguenther@suse.de>
18210
18211         * tree-inline.c (estimate_num_insns): Handle EH builtins.
18212
18213 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18214
18215         * sel-sched.c (create_speculation_check): Remove set but not used
18216         variable twin.
18217         (try_transformation_cache): Remove set but not used variable ds.
18218         (calculate_privileged_insns): Remove set but not used variables
18219         cur_insn and min_spec_insn.
18220         (find_best_expr): Remove set but not used variable avail_n.
18221         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18222         variable e.
18223         * cgraphunit.c (assemble_thunk): Remove set but not used variable
18224         false_label.
18225         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18226         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18227         new_scop_exit_edge.
18228
18229 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
18230
18231         PR bootstrap/42786
18232         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18233         cpu types.  Add support for *-sse3 cpu types.
18234         (x86_64-*-*): Ditto.
18235
18236 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18237
18238         PR middle-end/42803
18239         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18240         argument, call initializer_constant_valid_p_1 instead of
18241         initializer_constant_valid_p, pass CACHE to it, return NULL
18242         immediately if first call returns NULL.
18243         (initializer_constant_valid_p_1): New function.
18244         (initializer_constant_valid_p): Use it.
18245
18246 2010-01-20  Thomas Quinot  <quinot@adacore.com>
18247
18248         * tree.def (PLACEHOLDER_EXPR): Fix comment.
18249
18250 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
18251
18252         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18253         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18254         (loc_list_from_tree): Don't handle unsigned division.  Handle
18255         signed modulo using DW_OP_{over,over,div,mul,minus}.
18256         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18257         modulo instead of signed.
18258
18259 2010-01-20  DJ Delorie  <dj@redhat.com>
18260
18261         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18262         (Fpa): Pass it
18263         (h8300_emit_stack_adjustment): Propogate it.
18264         (push): Pass it.
18265         (h8300_expand_prologue): Likewise.
18266         (h8300_expand_epilogue): Likewise.
18267
18268 2010-01-19  Michael Matz  <matz@suse.de>
18269
18270         PR tree-optimization/41783
18271         * tree-data-ref.c (toplevel): Include flags.h.
18272         (dump_data_dependence_relation):  Also dump the inputs if the
18273         result will be unknown.
18274         (split_constant_offset_1): Look through some conversions.
18275         * tree-predcom.c (determine_roots_comp): Restart a new chain if
18276         the offset from last element is too large.
18277         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
18278         (reassociate_to_the_same_stmt): Handle vector registers.
18279         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
18280         (e.g. conversions).
18281         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
18282         wide_prolog_niters argument, emit widening instructions.
18283         (vect_do_peeling_for_alignment): Adjust caller, use widened
18284         variant of the iteration cound.
18285         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
18286
18287 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18288
18289         PR target/38697
18290         * config/arm/neon-testgen.m (emit_automatics): New parameter
18291         features. Adjust for Fixed_return_reg feature.
18292         (test_intrinsic): Call emit_automatics with new feature.
18293         * config/arm/neon.ml: Update copyright years.
18294         (features): New Fixed_return_reg feature.
18295         (ops): Update feature for Vget_low.
18296
18297 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
18298
18299         PR tree-optimization/42719
18300         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
18301         stmt uses.
18302
18303         PR debug/42728
18304         * fwprop.c (all_uses_available_at): Return false if def_set dest
18305         is a REG that is used in def_insn.
18306
18307 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
18308
18309         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
18310
18311         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
18312         Add argument names.
18313
18314         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
18315
18316         * target.h (struct gcc_target) <secondary_reload>: Change type
18317         of last argument to secondary_reload_info *.
18318
18319 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
18320
18321         PR target/42774
18322         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
18323         memory references with unaligned offsets.  Remove CQImode handling.
18324         (unaligned_memory_operand): Return 1 for memory references with
18325         unaligned offsets.  Remove CQImode handling.
18326
18327 2010-01-18  Richard Guenther  <rguenther@suse.de>
18328
18329         PR middle-end/39954
18330         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
18331         builtin calls.
18332
18333 2010-01-18  Richard Guenther  <rguenther@suse.de>
18334
18335         PR tree-optimization/42781
18336         * tree-ssa-structalias.c (find_what_var_points_to): Skip
18337         restrict processing only if the original variable was artificial.
18338
18339 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
18340
18341         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18342         find number of popped argument bytes.
18343
18344         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18345         Fix the text that describes the return value for invalid insns.
18346
18347         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
18348
18349         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18350         Clarify what 'cost of the -dependence' is.  Fix quoting.
18351
18352         * toplev.c (default_get_pch_validity): Rename argument to "sz".
18353         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18354
18355 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
18356
18357         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18358         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18359
18360 2010-01-17  Richard Guenther  <rguenther@suse.de>
18361
18362         PR middle-end/42248
18363         * function.c (split_complex_args): Take a VEC to modify.
18364         (assign_parms_augmented_arg_list): Build a VEC instead of
18365         a chain of PARM_DECLs.
18366         (assign_parms_unsplit_complex): Take a VEC of arguments.
18367         Do not fixup unmodified parms.
18368         (assign_parms): Deal with the VEC.
18369         (gimplify_parameters): Likewise.
18370
18371 2010-01-17  Richard Guenther  <rguenther@suse.de>
18372
18373         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18374         node existence check.
18375         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18376         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18377         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18378         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18379         (gimple_execute_on_growing_pred): Likewise.
18380
18381 2010-01-17  Richard Guenther  <rguenther@suse.de>
18382
18383         PR tree-optimization/42773
18384         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18385         (compute_antic_aux): Likewise.
18386         (compute_partial_antic_aux): Likewise.
18387
18388 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
18389
18390         PR debug/42767
18391         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18392         and US_TRUNCATE.
18393
18394 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
18395
18396         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18397         appearance.
18398
18399         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18400         Fix markup for strict argument.
18401
18402         (TARGET_SCHED_REORDER2): Fix argument types.
18403
18404         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
18405         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
18406
18407         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
18408         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
18409
18410         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18411         Add argument name.
18412
18413         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
18414         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
18415         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
18416         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
18417         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
18418
18419         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
18420
18421         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
18422
18423         (TARGET_ASM_RELOC_RW_MASK): Add return type.
18424         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
18425
18426         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
18427
18428         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
18429         Use prototype.
18430
18431         (TARGET_ASM_NAMED_SECTION): Fix argument list.
18432
18433         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
18434         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
18435
18436         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
18437
18438         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
18439
18440         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
18441         referring to it.  Fix language.
18442
18443         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
18444
18445         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
18446
18447         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
18448
18449         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
18450
18451         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
18452         '@var{stream}.  Remove stray 'and'.
18453
18454         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
18455
18456         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
18457
18458         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
18459
18460         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
18461         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
18462
18463         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
18464         Fix description of return value.
18465         Rename argument "sz" to "len."
18466
18467         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
18468         Clarify meaning of 'true' return value.
18469
18470         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
18471
18472         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
18473         rep_mode versus mode_rep.
18474
18475         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
18476
18477         (TARGET_BUILTIN_DECL): Fix name.
18478
18479         (TARGET_COMMUTATIVE_P): Fix type of first argument.
18480
18481         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
18482
18483         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
18484
18485         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
18486
18487         (TARGET_RELAXED_ORDERING): Use @deftypevr.
18488
18489         (TARGET_GET_DRAP_RTX): Note that this is a hook.
18490         Clarify language.
18491
18492         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
18493         Rename argument tm_fn to md_fn.
18494
18495         (TARGET_OPTION_PRINT): Fix argument list.
18496
18497 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
18498
18499         PR target/42664
18500         * config/i386/i386.c (ix86_fixup_binary_operands):
18501         Revert FMA4 fixup of operands.
18502
18503 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18504
18505         PR gcc/42525
18506         * Makefile.in (write_entries_to_file, install-plugin):
18507         Use \012 instead of \n with tr.
18508
18509 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
18510
18511         * configure.ac (HAVE_AS_REF): New C macro.
18512         * configure: Regenerate.
18513         * config.in: Likewise.
18514         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
18515         if HAVE_AS_REF.
18516         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
18517         if HAVE_AS_REF.
18518
18519 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
18520
18521         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
18522
18523         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
18524
18525         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
18526
18527         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
18528
18529         (TARGET_IN_SMALL_DATA_P): Fix argument type.
18530
18531         (TARGET_BINDS_LOCAL_P): Fix argument type.
18532
18533         (TARGET_ASM_FILE_END): Use prototype.
18534
18535         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
18536
18537         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
18538
18539         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
18540
18541         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
18542
18543         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
18544         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
18545
18546         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
18547         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
18548
18549         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
18550         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
18551         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
18552         (TARGET_ADDR_SPACE_CONVERT): Likewise.
18553
18554         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
18555
18556         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
18557
18558         (TARGET_INIT_BUILTINS): Use prototype.
18559
18560         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
18561         Put 'const char *' in braces.  Fix parameter types.
18562         (TARGET_INVALID_CONVERSION): Fix parameter types.
18563         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
18564         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
18565
18566         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
18567         Fix argument type.
18568
18569         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
18570
18571         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
18572
18573 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
18574
18575         * doc/tm.texi (TARGET_HELP): Fix return type.
18576
18577         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
18578         in braces.  Fix argument types.
18579
18580         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
18581
18582         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
18583
18584         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
18585
18586         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
18587         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
18588
18589         (TARGET_MANGLE_TYPE): Fix argument types.
18590
18591         (TARGET_IRA_COVER_CLASSES): Use prototype.
18592
18593         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
18594
18595         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
18596
18597         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
18598
18599         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
18600
18601         (TARGET_CALLEE_COPIES): Fix argument types.
18602
18603         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
18604
18605         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
18606
18607         (TARGET_FUNCTION_VALUE): Fix argument types.
18608
18609         (TARGET_RETURN_IN_MSB): Fix argument type.
18610
18611         (TARGET_RETURN_IN_MEMORY): Fix argument types.
18612
18613         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
18614
18615         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
18616
18617         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
18618         agree with return type.
18619
18620         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
18621
18622 2010-01-15  Jing Yu  <jingyu@google.com>
18623
18624         PR rtl-optimization/42691
18625         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
18626         a pseudo to a constant and are merged, and adjust comments.
18627
18628 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18629
18630         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
18631
18632 2010-01-15  Richard Guenther  <rguenther@suse.de>
18633
18634         PR middle-end/42739
18635         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18636         labels of computed or non-local gotos to the destination.
18637         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18638         landing pad label is the first label.
18639
18640 2010-01-15  Richard Guenther  <rguenther@suse.de>
18641
18642         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18643
18644 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18645
18646         PR target/42747
18647         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18648         to allow generation of the xssqrtdp instruction on power7.
18649         (sqrtdf2_fpr): Ditto.
18650
18651 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18652
18653         PR middle-end/42674
18654         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18655         functions with noreturn attribute.
18656
18657         PR c++/42608
18658         * varasm.c (declare_weak): Add weak attribute to decl if it
18659         doesn't have one already.
18660         (assemble_external): Only add decls to weak_decls if they also
18661         have weak attribute.
18662
18663 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
18664
18665         * var-tracking.c (var_reg_delete): Don't delete the association
18666         between REGs and values or one-part variables if the register
18667         isn't clobbered.
18668
18669 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18670
18671         PR debug/42657
18672         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18673         because its first operand is a non-localized variable.
18674
18675 2010-01-14  Martin Jambor  <mjambor@suse.cz>
18676
18677         PR tree-optimization/42706
18678         * tree-sra.c (encountered_recursive_call): New variable.
18679         (encountered_unchangable_recursive_call): Likewise.
18680         (sra_initialize): Initialize both new variables.
18681         (callsite_has_enough_arguments_p): New function.
18682         (scan_function): Call decl and flags check only for IPA-SRA, check
18683         whether there is a recursive call and whether it has enough arguments.
18684         (all_callers_have_enough_arguments_p): New function.
18685         (convert_callers): Look for recursive calls only when
18686         encountered_recursive_call is set.
18687         (ipa_early_sra): Bail out either if
18688         !all_callers_have_enough_arguments_p or
18689         encountered_unchangable_recursive_call.
18690
18691 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18692
18693         * sel-sched.c: Add 2010 to copyright years.
18694         * sel-sched-ir.c: Likewise.
18695         * sel-sched-ir.h: Likewise.
18696
18697 2010-01-14  Martin Jambor  <mjambor@suse.cz>
18698
18699         PR tree-optimization/42714
18700         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
18701         constructors specially.
18702
18703 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18704
18705         * config/i386/drivers-i386.c (detect_caches_intel):
18706         Add l2sizekb parameter and fill in.
18707         (host_detect_local_cpu): Add l2sizekb, fill in.
18708         Add Atom small cache heuristic.
18709
18710 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18711
18712         * config/i386/drivers-i386.c (detect_caches_cpuid4):
18713         Add level3 parameter and fill in.
18714         (detect_caches_intel): Handle level3 cache.
18715
18716 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18717
18718         * config/i386/drivers-i386.c (host_detect_local_cpu):
18719         Fix core duo detection.
18720
18721 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18722
18723         * config/i386/drivers-i386.c (host_detect_local_cpu):
18724         Fix Atom detection.
18725
18726 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18727
18728         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
18729         (rs6000_variable_issue_1): this.  Use...
18730         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
18731
18732 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18733
18734         * sel-sched-ir.c (sel_restore_other_notes): Rename to
18735         sel_restore_notes.  Update all callers.  Call reemit_notes
18736         for all insns.
18737
18738 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18739
18740         PR rtl-optimization/42246
18741         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18742         loops.
18743
18744 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18745
18746         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18747         all successors is the same as number of successors in current region.
18748
18749 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18750
18751         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18752         to rename is not separable.  Otherwise check that its LHS is not NULL.
18753
18754 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18755
18756         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
18757
18758 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18759
18760         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18761         available registers when failed to discover LHS register class.
18762         Fix indentation.  Update comment.
18763
18764 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18765             Alexander Monakov  <amonakov@ispras.ru>
18766
18767         PR rtl-optimization/42389
18768         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18769         to can_issue_more.
18770         (advance_state_on_fence): Likewise.
18771         (sel_target_adjust_priority): Print debug output only when
18772         sched_verbose >= 4, not 2.
18773         (get_expr_cost): Do not issue all unique insns on the next cycle.
18774         (fill_insns): Initialize can_issue_more from the value saved
18775         with the fence.
18776         * sel-sched-ir.c (flist_add): New parameter issue_more.
18777         Init FENCE_ISSUE_MORE with it.
18778         (merge_fences): Likewise.
18779         (init_fences): Update call to flist_add.
18780         (add_to_fences, add_clean_fence_to_fences)
18781         (add_dirty_fence_to_fences): Likewise.
18782         (move_fence_to_fences): Update call to merge_fences.
18783         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18784         sched groups.
18785         * sel-sched-ir.h (struct _fence): New field issue_more.
18786         (FENCE_ISSUE_MORE): New accessor macro.
18787
18788 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18789
18790         PR rtl-optimization/42388
18791         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18792         that have no predecessors nor successors.  Do not call move_bb_info
18793         for empty blocks outside of current region.
18794
18795 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18796
18797         PR rtl-optimization/42294
18798         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18799         * sel-sched.c (move_exprs_to_boundary): Transitively add all
18800         originators' originators.
18801
18802 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18803
18804         PR rtl-optimization/39453
18805         PR rtl-optimization/42246
18806         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18807         for pipelining_p.
18808         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18809
18810 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18811             Alexander Monakov  <amonakov@ispras.ru>
18812
18813         PR middle-end/42245
18814         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
18815         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
18816         argument.  Update all callers.
18817         (tidy_control_flow): ... and here.  Recompute topological order
18818         of basic blocks in region if necessary.
18819         (sel_redirect_edge_and_branch): Change return type.  Return true
18820         if topological order might have been invalidated.
18821         (purge_empty_blocks): Export and move from...
18822         * sel-sched.c (purge_empty_blocks): ... here.
18823         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18824         (maybe_tidy_empty_bb): Delete prototype.
18825         (purge_empty_blocks): Declare.
18826
18827 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18828
18829         PR rtl-optimization/42249
18830         * sel-sched.c (try_replace_dest_reg): When chosen register
18831         and original register is the same, do not bail out early, but
18832         still check all original insns for validity of replacing destination
18833         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18834         in this case.
18835
18836 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18837
18838         PR c/42721
18839         Port from no-undefined-overflow branch:
18840         2009-03-09  Richard Guenther  <rguenther@suse.de>
18841
18842         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18843
18844 2010-01-14  Richard Guenther  <rguenther@suse.de>
18845
18846         PR lto/42665
18847         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18848
18849 2010-01-14  Ira Rosen  <irar@il.ibm.com>
18850
18851         PR tree-optimization/42709
18852         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18853         as scalar type in creation of constant vector operand.
18854
18855 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18856
18857         PR testsuite/42414
18858         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18859         (check-parallel-%): Match `testsuite' directory component only
18860         at the end.
18861
18862 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
18863
18864         PR translation/39521
18865         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18866         strings with _().
18867
18868 2010-01-13  Richard Guenther  <rguenther@suse.de>
18869
18870         PR tree-optimization/42730
18871         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18872         offset zero.
18873
18874 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
18875
18876         PR target/pr42542
18877         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18878         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18879         them signed.
18880
18881 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
18882
18883         * config/bfin/libgcc-bfin.ver: Regenerate based on current
18884         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
18885         ___umulsi3_highpart.
18886
18887         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18888         rather than schedule_insns if the pass is enabled.
18889
18890 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18891
18892         PR tree-optimization/42704
18893         * tree-sra.c (sra_modify_assign): Do not delete assignments to
18894         SSA_NAMEs.
18895
18896 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18897
18898         PR tree-optimization/42703
18899         * tree-sra.c (analyze_access_subtree): Check that we can build a
18900         reference to the original data within the aggregate.
18901
18902 2010-01-13  Richard Guenther  <rguenther@suse.de>
18903
18904         PR tree-optimization/42705
18905         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18906
18907 2010-01-13  Richard Guenther  <rguenther@suse.de>
18908
18909         PR middle-end/42716
18910         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18911
18912 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
18913
18914         PR debug/41371
18915         * var-tracking.c (values_to_unmark): New variable.
18916         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18917         values_to_unmark vector.  Moved body to...
18918         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
18919         instead queue it into values_to_unmark vector.
18920         (vt_find_locations): Free values_to_unmark vector.
18921
18922 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
18923
18924         * config/s390/s390.c (override_options): Set
18925         default of max-pending-list-length to 256
18926
18927 2010-01-13  Richard Guenther  <rguenther@suse.de>
18928
18929         PR lto/42678
18930         * tree-pass.h (PROP_gimple_lcx): New.
18931         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18932         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18933         before the final cleanup_eh.
18934         (dump_properties): Dump PROP_gimple_lcx.
18935         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18936         (tree_lower_complex_O0): Remove.
18937         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18938         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
18939         tree_lower_complex, schedule TODO_update_ssa.
18940         * lto-streamer-out.c (output_function): Stream the functions
18941         properties.
18942         * lto-streamer-in.c (input_function): Likewise.
18943         (lto_read_body): Do not override them here.
18944
18945 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
18946
18947         PR c/42708
18948         * c-typeck.c (build_c_cast): Fold value cast to union type before
18949         wrapping it in a CONSTRUCTOR.
18950
18951 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
18952
18953         PR rtl-optimization/42699
18954         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18955         involved.
18956
18957 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18958
18959         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18960         SUBTARGET_WARN_UNUSED_SPEC): Move ...
18961         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18962         SUBTARGET_WARN_UNUSED_SPEC): ... here
18963         * config/mips/iris5.h (LIBGCC_SPEC): Define.
18964
18965 2010-01-12  Julian Brown  <julian@codesourcery.com>
18966
18967         * config/arm/neon-schedgen.ml (Utils): Don't try to
18968         open missing module.
18969         (find_with_result): New.
18970
18971 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
18972
18973         PR debug/42662
18974         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18975         sharing when canonicalizing ({lt,ge}u (plus a b) b).
18976
18977         PR tree-optimization/42645
18978         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
18979         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18980         decl_map, set processing_debug_stmt to -1 and return name without
18981         any remapping.
18982
18983 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
18984
18985         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18986         binutils version, and reword target configuration description.
18987
18988 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
18989
18990         * config/avr/avr.h (LINKER_NAME): Remove.
18991
18992 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
18993
18994         PR target/42416
18995         * config/rs6000/rs6000.c (rs6000_override_options): On targets
18996         that support VSX, warn for -mno-altivec if vsx is not disabled,
18997         and disable vsx.
18998
18999 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
19000             Shujing Zhao  <pearly.zhao@oracle.com>
19001
19002         PR translation/42469
19003         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
19004         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
19005         character between option name and help text.
19006         * c.opt (imultilib): Likewise.
19007
19008 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
19009
19010         * lto-streamer-out.c (output_unreferenced_globals): Output static
19011         variables.
19012
19013 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
19014
19015         PR rtl-optimization/42621
19016         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
19017         optimizing for size.
19018         (duplicate_computed_gotos): Remove now-redundant check.
19019
19020 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
19021
19022         PR target/37454
19023         * configure.ac: Save and restore LDFLAGS and LIBS
19024         * configure: Regenerate.
19025
19026 2010-01-10  Richard Guenther  <rguenther@suse.de>
19027
19028         PR middle-end/42667
19029         * builtins.c (fold_builtin_strlen): Add type argument and
19030         convert the resulting length to it.
19031         (fold_builtin_1): Adjust.
19032
19033 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
19034
19035         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
19036         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
19037         1 insn.
19038         (num_insns_constant_wide): Adjust for that change.
19039
19040 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19041
19042         PR debug/42631
19043         * web.c (union_defs): Add used argument, to combine uses of
19044         uninitialized regs.
19045         (entry_register): Adjust type and tests of used argument.
19046         (web_main): Widen used for new use.  Pass it to union_defs.
19047         * df.h (union_defs): Adjust prototype.
19048
19049 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19050
19051         PR debug/42630
19052         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19053         uses in new incoming argument.  Free body.
19054         (reset_debug_uses_in_loop): New.
19055         (analyze_insn_to_expand_var): Call the latter if the former found
19056         anything.  Fix whitespace.  Reject invalid dest overlaps before
19057         going through all insns in the loop.
19058
19059 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19060
19061         PR debug/42629
19062         * haifa-sched.c (dying_use_p): Debug insns don't count.
19063
19064 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19065
19066         PR middle-end/42363
19067         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19068         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19069         (verify_gimple_call): Reject LHS in noreturn calls.
19070
19071 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19072
19073         PR debug/42604
19074         PR debug/42395
19075         * tree-vect-loop-manip.c (adjust_info): New type.
19076         (adjust_vec): New pointer to vector.
19077         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19078         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19079         (slpeel_update_phis_for_duplicate_loop): Use them.
19080         (slpeel_update_phi_nodes_for_guard1): Likewise.
19081         (slpeel_update_phi_nodes_for_guard2): Likewise.
19082         (slpeel_tree_peel_loop_to_edge): Likewise.
19083         (vect_update_ivs_after_vectorizer): Likewise.
19084
19085 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19086
19087         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19088         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19089
19090 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
19091
19092         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19093         bogus uninitialized warning.
19094
19095 2010-01-09  Richard Guenther  <rguenther@suse.de>
19096
19097         PR middle-end/42512
19098         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19099         the evolution is compatible with the initial condition.
19100
19101 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
19102
19103         * gcc.c (process_command): Update copyright notice dates.
19104         * gcov.c (print_version): Likewise.
19105         * gcov-dump.c (print_version): Likewise.
19106         * mips-tfile.c (main): Likewise.
19107         * mips-tdump.c (main): Likewise.
19108
19109 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
19110
19111         PR target/41885
19112         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19113         (rotlhi3): Delete.
19114         (rotlhi3_8): Delete.
19115         (rotlsi3): Delete.
19116         (rotlsi3_8): Delete.
19117         (rotlsi3_16): Delete.
19118         (rotlsi3_24): Delete.
19119         (rotl<mode>3): New.
19120         (*rotw<mode>3): New.
19121         (*rotb<mode>3): New.
19122         * config/avr/avr.c (avr_rotate_bytes): New function.
19123         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19124
19125 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
19126
19127         PR target/37454
19128         * configure.ac: Modify -rdynamic check.
19129         * configure: Regenerate.
19130
19131 2010-01-08  DJ Delorie  <dj@redhat.com>
19132
19133         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19134         register popping order.
19135
19136 2010-01-08  Richard Guenther  <rguenther@suse.de>
19137
19138         PR lto/42528
19139         * c.opt (fsigned-char): Also let LTO handle this option.
19140         (funsigned-char): Likewise.
19141
19142 2010-01-07  Richard Guenther  <rguenther@suse.de>
19143
19144         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19145         (gimple_op): Likewise.
19146         (gimple_op_ptr): Likewise.
19147         (gimple_assign_set_lhs): Remove gcc_assert.
19148         (gimple_assign_set_rhs1): Likewise.
19149         (gimple_assign_set_rhs2): Likewise.
19150         (gimple_call_set_lhs): Likewise.
19151         (gimple_call_set_fn): Likewise.
19152         (gimple_call_set_fndecl): Likewise.
19153         (gimple_call_fndecl): Likewise.
19154         (gimple_call_return_type): Likewise.
19155         (gimple_call_set_chain): Likewise.
19156         (gimple_call_num_args): Likewise.
19157         (gimple_call_set_arg): Likewise.
19158         (gimple_cond_set_code): Likewise.
19159         (gimple_cond_set_lhs): Likewise.
19160         (gimple_cond_set_rhs): Likewise.
19161         (gimple_cond_set_true_label): Likewise.
19162         (gimple_cond_set_false_label): Likewise.
19163         (gimple_label_set_label): Likewise.
19164         (gimple_goto_set_dest): Likewise.
19165         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19166         (gimple_debug_bind_get_value): Likewise.
19167         (gimple_debug_bind_get_value_ptr): Likewise.
19168         (gimple_debug_bind_set_var): Likewise.
19169         (gimple_debug_bind_set_value): Likewise.
19170         (gimple_debug_bind_reset_value): Likewise.
19171         (gimple_debug_bind_has_value_p): Likewise.
19172         (gimple_return_retval_ptr): Remove gcc_assert.
19173         (gimple_return_retval): Likewise.
19174         (gimple_return_set_retval): Likewise.
19175         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19176         (safe_referenced_var_iterator): Remove.
19177         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19178         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19179         (fill_referenced_var_vec): Remove.
19180         (first_readonly_imm_use): Remove redundant gcc_assert.
19181         (phi_arg_index_from_use): Combine gcc_asserts.
19182         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19183         (first_imm_use_stmt): Remove redundant gcc_assert.
19184         * tree-cfg.c (verify_gimple_call): Verify function and chain
19185         operands.  Verify arguments.
19186         (verify_types_in_gimple_stmt): Verify condition code and labels.
19187
19188 2010-01-07  Richard Guenther  <rguenther@suse.de>
19189
19190         PR tree-optimization/42641
19191         * sese.c (rename_map_elt_info): Use the SSA name version, do
19192         not hash pointers.
19193
19194 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
19195
19196         PR tree-optimization/42625
19197         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19198         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19199
19200 2010-01-07  Duncan Sands  <baldrick@free.fr>
19201
19202         * Makefile.in (PLUGIN_HEADERS): Add version.h.
19203
19204 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
19205
19206         PR target/42511
19207         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19208         note itself is not function_invariant_p.
19209
19210 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
19211
19212         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19213         Do not add the DF_NOTE problem.
19214         * store-motion.c (execute_rtl_store_motion): Likewise.
19215
19216 2010-01-07  Martin Jambor  <mjambor@suse.cz>
19217
19218         PR tree-optimization/42157
19219         * tree-sra.c (compare_access_positions): Stabilize sort if both
19220         accesses have integer types, return zero immediately if they are the
19221         same.
19222
19223 2010-01-06  Richard Henderson  <rth@redhat.com>
19224
19225         PR middle-end/41883
19226         * haifa-sched.c (add_to_note_list): Merge into ...
19227         (concat_note_lists): ... here, and ...
19228         (unlink_other_notes, rm_other_notes): Merge into...
19229         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
19230         NOTE_INSN_EPILOGUE_BEG.
19231
19232 2010-01-06  Richard Guenther  <rguenther@suse.de>
19233
19234         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19235         not inline regular functions into always-inline functions.
19236
19237 2010-01-06  Nick Clifton  <nickc@redhat.com>
19238
19239         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19240         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19241         used together.
19242         (OVERRIDE_OPTIONS): Delete.
19243         (OPTIMIZATION_OPTIONS): Define.
19244         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19245         * config/rx/rx.c (rx_handle_option): Issue an error message if
19246         -mcpu=rx200 and -fpu are used together.
19247         (rx_set_optimization_options): New function.  Issue an error
19248         message if an optimization attribute attempts to reset the FPU/
19249         math optimization pairing.
19250         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19251         * config/rx/rx.opt: Set the default to 32-bit doubles.
19252         * config/rx/t-rx: Add multilibs for -nofpu option.
19253         * doc/invoke.texi: Update documentation of RX options.
19254
19255 2010-01-06  Richard Guenther  <rguenther@suse.de>
19256
19257         * tree-ssa-pre.c (name_to_id): New global.
19258         (alloc_expression_id): Simplify SSA name handling.
19259         (lookup_expression_id): Likewise.
19260         (init_pre): Zero name_to_id.
19261         (fini_pre): Free it.
19262
19263 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
19264
19265         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19266
19267 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19268
19269         PR target/42542
19270         * config/i386/sse.md (smaxv2di3): New.
19271         (umaxv2di3): Likewise.
19272         (sminv2di3): Likewise.
19273         (uminv2di3): Likewise.
19274
19275 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19276
19277         PR target/42564
19278         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
19279         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
19280         (legitimize_tls_address): Likewise.
19281         (sparc_tls_referenced_p): Likewise.
19282         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
19283         and adjust calls to legitimize_pic_address.
19284         (legitimate_constant_p) Use sparc_tls_referenced_p.
19285         (legitimate_pic_operand_p): Likewise.
19286         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
19287         (sparc_tls_symbol_ref_1): Delete.
19288         (sparc_tls_referenced_p): Make static, recognize specific patterns.
19289         (legitimize_tls_address): Make static, handle CONST patterns.
19290         (legitimize_pic_address): Make static, remove unused parameter and
19291         adjust recursive calls.
19292         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
19293         and adjust call to legitimize_pic_address.
19294         (sparc_output_mi_thunk): Likewise.
19295
19296 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
19297             H.J. Lu  <hongjiu.lu@intel.com>
19298
19299         PR target/42542
19300         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
19301         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
19302         operands to make them signed.
19303
19304         Revert:
19305         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19306
19307         PR target/42542
19308         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19309         GTU to GT for V4SI and V2DI.
19310
19311         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19312         (umin<mode>3): Removed.
19313         (uminv8hi3): New.
19314         (uminv4si3): Likewise.
19315
19316 2010-01-05  Martin Jambor  <mjambor@suse.cz>
19317
19318         PR tree-optimization/42462
19319         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
19320         current_function_decl to helper functions and macros.
19321
19322 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19323
19324         PR bootstrap/41771
19325         * flags.h: Don't include real.h.
19326         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
19327         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
19328         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
19329         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
19330         * dominance.c: Update copyright.
19331         * gimple.c (walk_gimple_op): Remove inline.
19332         * tree-ssa-reassoc.c: Include real.h.
19333         * Makefile.in (FLAGS_H): Remove $(REAL_H).
19334         (tree-ssa-reassoc.o): Depend on $(REAL_H).
19335
19336 2010-01-05  Nick Clifton  <nickc@redhat.com>
19337
19338         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19339         register to push into the stack frame when the accumulator has to
19340         be saved during interrupts.
19341
19342 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
19343
19344         * doc/invoke.texi: Remove the documentation about option
19345         -Wunreachable-code.
19346         * common.opt (Wunreachable-code):  Preserved for backward
19347         compatibility.
19348         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19349         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19350         the backward compatibility flag section.
19351
19352 2010-01-05  Richard Guenther  <rguenther@suse.de>
19353
19354         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19355
19356 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
19357
19358         PR other/42611
19359         * cfgexpand.c (expand_one_var): Diagnose too large variables.
19360
19361         PR tree-optimization/42508
19362         * tree-sra.c (convert_callers): Check for recursive call
19363         by comparing cgraph nodes instead of decls.
19364         (modify_function): Call ipa_modify_formal_parameters also
19365         on all same_body aliases.
19366
19367         * cgraphunit.c (cgraph_materialize_all_clones): Compare
19368         cgraph nodes when checking for same_body aliases.
19369
19370 2010-01-05  Richard Guenther  <rguenther@suse.de>
19371
19372         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19373         allocation and lookup.
19374         (get_or_alloc_expr_for_constant): Likewise.
19375         (phi_translate): Sink allocation.
19376
19377 2010-01-04  Richard Guenther  <rguenther@suse.de>
19378
19379         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19380         a new entry only if needed.
19381         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19382         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19383         hashtable lookup.
19384         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19385         the result array.
19386         (phi_translate): Handle CONSTANTs early.
19387
19388 2010-01-04  Martin Jambor  <mjambor@suse.cz>
19389
19390         PR tree-optimization/42398
19391         * tree-sra.c (struct access): Removed flag grp_different_types.
19392         (dump_access): Do not dump the removed flag.
19393         (sort_and_splice_var_accesses): Do not set the removed flag.
19394         (sra_modify_expr): Check for type compatibility directly.
19395
19396 2010-01-04  Martin Jambor  <mjambor@suse.cz>
19397
19398         PR tree-optimization/42366
19399         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19400         edges with variable number of parameters.
19401         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
19402         flag instead of asserting it.
19403         (ipa_read_node_info): Read uses_analysis_done flag.
19404
19405 2010-01-04  Richard Guenther  <rguenther@suse.de>
19406
19407         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
19408         iterative_hash_* as intended.
19409         (vn_reference_compute_hash): Likewise.  Simplify hashing
19410         SSA names.
19411         (vn_reference_lookup_2): Likewise.
19412         (vn_nary_op_compute_hash): Likewise.
19413         (vn_phi_compute_hash): Likewise.
19414         (expressions_equal_p): Remove strange code.
19415         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
19416         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
19417         (bitmap_insert_into_set_1): Take value-id as parameter.
19418         (add_to_value): Pass it.
19419         (bitmap_insert_into_set): Likewise.
19420         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
19421
19422 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
19423
19424         PR driver/42442
19425         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
19426         (do_self_spec): For switches with SWITCH_IGNORE set set also
19427         SWITCH_IGNORE_PERMANENTLY.
19428         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
19429         of SWITCH_IGNORE.
19430
19431 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
19432
19433         * lto-streamer-out.c (output_unreferenced_globals): Output the full
19434         tree of an unreferenced global var.
19435
19436 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19437
19438         PR target/42542
19439         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19440         GTU to GT for V4SI and V2DI.
19441
19442         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19443         (umin<mode>3): Removed.
19444         (uminv8hi3): New.
19445         (uminv4si3): Likewise.
19446
19447 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19448
19449         PR lto/42581
19450         * collect2.c (main): Turn on trace in collect2 if -v is passed
19451         to gcc with LTO.
19452
19453 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
19454
19455         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
19456         description of expression operand.
19457
19458 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
19459
19460         * configure.ac: Add install-html to target_list for Make-hooks.
19461         * configure: Regenerate.
19462         * fortran/Make-lang.in (F95_HTMLFILES): New.
19463         (fortran.html): Use it.
19464         (fortran.install-html): New.
19465         * Makefile.in (install-html): Add lang.install-html.
19466         * java/Make-lang.in (JAVA_HTMLFILES): New.
19467         (java.html): Use it.
19468         (java.install-html): New.
19469         * objc/Make-lang.in (objc.install-html): New.
19470         * objcp/Make-lang.in (obj-c++.install-html): New.
19471         * cp/Make-lang.in (c++.install-html): New.
19472         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
19473         * lto/Make-lang.in (lto.install-html): New.
19474
19475 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19476
19477         PR lto/42520
19478         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
19479
19480 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
19481
19482         PR rtl-optimization/41862
19483         * store-motion.c (store_killed_in_insn, compute_store_table,
19484         remove_reachable_equiv_notes, replace_store_insn,
19485         build_store_vectors): Ignore all DEBUG_INSNs.
19486
19487 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19488
19489         PR lto/41564
19490         * common.opt: Add dumpdir.
19491
19492         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
19493         isn't specified.
19494         (option_map): Add --dumpdir.
19495
19496         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
19497
19498         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
19499
19500         * opts.c (decode_options): Try dump_dir_name first if
19501         dump_base_name isn't an absolute path.
19502         (common_handle_option): Handle OPT_dumpdir.
19503
19504         * toplev.c (dump_dir_name): New.
19505         (print_switch_values): Also ignore -dumpdir.
19506
19507         * toplev.h (dump_dir_name): New.
19508
19509 2010-01-03  Richard Guenther  <rguenther@suse.de>
19510
19511         PR tree-optimization/42589
19512         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
19513         double-word expansion of bswap32.
19514
19515 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
19516
19517         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
19518         with BLOCK_FOR_INSN.
19519         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
19520         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
19521         noce_process_if_block): Likewise.
19522         * gcse.c (compute_local_properties, insert_expr_in_table,
19523         insert_set_in_table, canon_list_insert, find_avail_set,
19524         pre_insert_copy_insn): Likewise.
19525
19526         * basic-block.h (BLOCK_NUM): Move from here...
19527         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
19528
19529 2010-01-03  Richard Guenther  <rguenther@suse.de>
19530
19531         PR tree-optimization/42438
19532         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
19533         contains_may_not_return_call flag.
19534         (BB_MAY_NOTRETURN): New.
19535         (valid_in_sets): Trapping nary operations are not valid
19536         in blocks that may not return.
19537         (insert_into_preds_of_block): Remove check for trapping expressions.
19538         (compute_avail): Compute also BB_MAY_NOTRETURN.
19539
19540 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
19541
19542         * doc/invoke.texi: Add 2010 to copyright years.
19543
19544 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19545
19546         * config/sparc/sparc.c: Fix formatting nits.
19547
19548 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
19549             Alexander Monakov  <amonakov@ispras.ru>
19550
19551         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
19552
19553 2010-01-02  Richard Guenther  <rguenther@suse.de>
19554
19555         PR middle-end/42577
19556         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
19557         (simplify_switch_using_ranges): Mark to be removed edges
19558         as non-executable.
19559
19560 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19561
19562         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19563
19564         * collect2.c (scan_libraries): Add missing argument in call to
19565         scan_prog_file.
19566
19567 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
19568
19569         PR target/42448
19570         * config/alpha/predicates.md (aligned_memory_operand): Return false
19571         for CQImode.
19572         (unaligned_memory_operand): Return true for CQImode.
19573         * config/alpha/alpha.c (get_aligned_mem): Assert that location
19574         doesn not cross aligned SImode word boundary.
19575
19576 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
19577
19578         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
19579         Remove.
19580         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
19581         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
19582
19583 2010-01-02  Richard Guenther  <rguenther@suse.de>
19584
19585         PR lto/41597
19586         * toplev.c (compile_file): Emit LTO marker properly.  Change
19587         it to __gnu_lto_v1.
19588         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
19589
19590 2010-01-01  Richard Guenther  <rguenther@suse.de>
19591
19592         PR debug/42455
19593         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
19594
19595 2010-01-01  Richard Guenther  <rguenther@suse.de>
19596
19597         PR c/42570
19598         * c-decl.c (grokdeclarator): For zero-size arrays force
19599         structural equality checks as layout_type does.
19600
19601 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
19602
19603         * builtins.c: Update copyright to 2010.
19604
19605 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
19606
19607         PR lto/42531
19608         * lto-streamer-out.c (produce_asm): Revert the last change.
19609         (copy_function): Likewise.
19610
19611         * lto-streamer.c (lto_get_section_name): Skip any leading
19612         asterisk in name.
19613
19614 2010-01-01  Richard Guenther  <rguenther@suse.de>
19615
19616         PR middle-end/42559
19617         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
19618         for LABEL_DECLs.
19619
19620 \f
19621 Copyright (C) 2010 Free Software Foundation, Inc.
19622
19623 Copying and distribution of this file, with or without modification,
19624 are permitted in any medium without royalty provided the copyright
19625 notice and this notice are preserved.