OSDN Git Service

PR plugins/44459:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
2
3         PR plugins/44459:
4         * gcc-plugin.h: Encapsulate all declarations in extern "C".
5
6 2010-06-08  Jan Hubicka  <jh@suse.cz>
7
8         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
9         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
10
11 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
12
13         PR tree-optimization/39874
14         PR middle-end/28685
15         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
16         Declare.
17         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
18         same_bool_result_p): New.
19         (and_var_with_comparison, and_var_with_comparison_1,
20         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
21         (or_var_with_comparison, or_var_with_comparison_1,
22         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
23         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
24         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
25         of combine_comparisons.
26         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
27
28 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
29
30         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
31         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
32         * config/pdp11/pdp11.c (moxie_function_value, moxie_libcall_value,
33         moxie_function_value_regno_p): New functions.
34         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
35         TARGET_FUNCTION_VALUE_REGNO_P): Define.
36
37 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
38
39         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
40         Thumb-2 in the MINUS case.
41
42 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
43
44         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
45
46         * doc/gty.texi (GTY Options): Document typed GC allocation and
47         variable_size GTY option.
48
49         * ggc-internal.h: New.
50
51         * ggc.h: Update copyright year.
52         (digit_string): Move to stringpool.c.
53         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
54         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
55         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
56         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
57         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
58         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
59         (ggc_force_collect, ggc_get_size, ggc_statistics)
60         (ggc_print_common_statistics): Move to ggc-internal.h.
61         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
62         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
63         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
64         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
65         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
66         (ggc_alloc_zone_pass_stat): Remove.
67         (ggc_internal_alloc_stat, ggc_internal_alloc)
68         (ggc_internal_cleared_alloc_stat): New.
69         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
70         (ggc_internal_vec_alloc_stat)
71         (ggc_internal_cleared_vec_alloc_stat)
72         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
73         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
74         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
75         (ggc_cleared_alloc_ptr_array_two_args): New.
76         (htab_create_ggc, splay_tree_new_ggc): Redefine.
77         (ggc_splay_alloc): Change the type of the first argument to
78         enum gt_types_enum.
79         (ggc_alloc_string): Make macro.
80         (ggc_alloc_string_stat): New.
81         (ggc_strdup): Redefine.
82         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
83         (ggc_alloc_rtvec_sized): New.
84         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
85         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
86         (ggc_internal_cleared_alloc_zone_stat)
87         (ggc_internal_zone_alloc_stat)
88         (ggc_internal_zone_cleared_alloc_stat)
89         (ggc_internal_zone_vec_alloc_stat)
90         (ggc_alloc_zone_rtx_def_stat)
91         (ggc_alloc_zone_tree_node_stat)
92         (ggc_alloc_zone_cleared_tree_node_stat)
93         (ggc_alloc_cleared_gimple_statement_d_stat): New.
94
95         * ggc-common.c: Include ggc-internal.h.
96         (ggc_internal_cleared_alloc_stat): Rename from
97         ggc_alloc_cleared_stat.
98         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
99         (ggc_calloc): Remove.
100         (ggc_cleared_alloc_htab_ignore_args): New.
101         (ggc_cleared_alloc_ptr_array_two_args): New.
102         (ggc_splay_alloc): Add obj_type parameter.
103         (init_ggc_heuristics): Formatting fixes.
104
105         * ggc-none.c: Update copyright year.
106         (ggc_alloc_stat): Rename to ggc_alloc_stat.
107         (ggc_alloc_cleared_stat): Rename to
108         ggc_internal_cleared_alloc_stat.
109         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
110
111         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
112         Remove references to ggc_alloc in comments.
113         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
114         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
115         (new_ggc_zone, destroy_ggc_zone): Remove.
116         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
117
118         * ggc-zone.c: Include ggc-internal.h.  Remove references to
119         ggc_alloc in comments.
120         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
121         (ggc_internal_alloc_zone_pass_stat): New.
122         (ggc_internal_cleared_alloc_zone_stat): New.
123         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
124         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
125         (new_ggc_zone, destroy_ggc_zone): Remove.
126
127         * stringpool.c: Update copyright year.  Include ggc-internal.h
128         (digit_vector): Make static.
129         (digit_string): Moved from ggc.h.
130         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
131         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
132
133         * Makefile.in (GGC_INTERNAL_H): New.
134         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
135         $(GGC_INTERNAL_H) to dependencies.
136
137         * gentype.c: Update copyright year.
138         (walk_type): Accept variable_size GTY option.
139         (USED_BY_TYPED_GC_P): New macro.
140         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
141         whitespace at the end of strings.
142         (get_type_specifier, variable_size_p): New functions.
143         (alloc_quantity, alloc_zone): New enums.
144         (write_typed_alloc_def): New function.
145         (write_typed_struct_alloc_def): Likewise.
146         (write_typed_typed_typedef_alloc_def): Likewise.
147         (write_typed_alloc_defns): Likewise.
148         (output_typename, write_splay_tree_allocator_def): Likewise.
149         (write_splay_tree_allocators): Likewise.
150         (main): Call write_typed_alloc_defns and
151         write_splay_tree_allocators.
152
153         * lto-streamer.h (lto_file_decl_data_ptr): New.
154
155         * passes.c (order): Define using cgraph_node_ptr.
156
157         * strinpool.c (struct string_pool_data): Declare nested_ptr using
158         ht_identifier_ptr.
159
160         * gimple.h (union gimple_statement_d): Likewise.
161
162         * rtl.h (struct rtx_def): Likewise.
163         (struct rtvec_def): Likewise.
164
165         * tree.h (union tree_node): Likewise.
166
167         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
168
169         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
170
171         * tree-scalar-evolution.c (scev_initialize): Likewise.
172
173         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
174
175         * dwarf2asm.c (dw2_force_const_mem): Likewise.
176
177         * omp-low.c (lower_omp_critical): Likewise.
178
179         * bitmap.h (struct bitmap_head_def): Update comment to not
180         reference ggc_alloc.
181
182         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
183
184         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
185
186         * ipa-prop.c (duplicate_ggc_array): Rename to
187         duplicate_ipa_jump_func_array.  Use typed GC allocation.
188         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
189
190         * gimple.c (gimple_alloc_stat): Use
191         ggc_alloc_cleared_gimple_statement_d_stat.
192
193         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
194
195         * tree.c (make_node_stat): Use
196         ggc_alloc_zone_cleared_tree_node_stat.
197         (make_tree_vec_stat): Likewise.
198         (build_vl_exp_stat): Likewise.
199         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
200         (make_tree_binfo_stat): Likewise.
201         (tree_cons_stat): Likewise.
202
203         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
204         (shallow_copy_rtx_stat): Likewise.
205         (make_node_stat): Likewise.
206
207         * lto-symtab.c: Fix comment.
208
209         * tree-cfg.c (create_bb): Update comment to not reference
210         ggc_alloc_cleared.
211         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is
212         value.
213
214         * varpool.c (varpool_node): Use typed GC allocation.
215         (varpool_extra_name_alias): Likewise.
216
217         * varasm.c (emutls_decl): Likewise.
218         (get_unnamed_section): Likewise.
219         (get_noswitch_section): Likewise.
220         (get_section): Likewise.
221         (get_block_for_section): Likewise.
222         (build_constant_desc): Likewise.
223         (create_constant_pool): Likewise.
224         (force_const_mem): Likewise.
225
226         * tree.c (build_vl_exp_stat): Likewise.
227         (build_real): Likewise.
228         (build_string): Likewise.
229         (decl_debug_expr_insert): Likewise.
230         (decl_value_expr_insert): Likewise.
231         (type_hash_add): Likewise.
232         (build_omp_clause): Likewise.
233
234         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
235
236         * tree-ssa.c (init_tree_ssa): Likewise.
237
238         * tree-ssa-structalias.c (heapvar_insert): Likewise.
239
240         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
241
242         * tree-ssa-loop-niter.c (record_estimate): Likewise.
243
244         * tree-ssa-alias.c (get_ptr_info): Likewise.
245
246         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
247
248         * tree-phinodes.c (allocate_phi_node): Likewise.
249
250         * tree-iterator.c (tsi_link_before): Likewise.
251         (tsi_link_after): Likewise.
252
253         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
254
255         * tree-dfa.c (create_var_ann): Likewise.
256
257         * tree-cfg.c (create_bb): Likewise.
258
259         * toplev.c (alloc_for_identifier_to_locale): Likewise.
260         (general_init): Likewise.
261
262         * stringpool.c (stringpool_ggc_alloc): Likewise.
263         (gt_pch_save_stringpool): Likewise.
264
265         * sese.c (if_region_set_false_region): Likewise.
266
267         * passes.c (do_per_function_toporder): Likewise.
268
269         * optabs.c (set_optab_libfunc): Likewise.
270         (set_conv_libfunc): Likewise.
271
272         * lto-symtab.c (lto_symtab_register_decl): Likewise.
273
274         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
275         (input_eh_region): Likewise.
276         (input_eh_lp): Likewise.
277         (make_new_block): Likewise.
278         (unpack_ts_real_cst_value_fields): Likewise.
279
280         * lto-section-in.c (lto_new_in_decl_state): Likewise.
281
282         * lto-cgraph.c (input_node_opt_summary): Likewise.
283
284         * loop-init.c (loop_optimizer_init): Likewise.
285
286         * lambda.h (lambda_vector_new): Likewise.
287
288         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
289
290         * ira.c (update_equiv_regs): Likewise.
291
292         * ipa.c (cgraph_node_set_new): Likewise.
293         (cgraph_node_set_add): Likewise.
294         (varpool_node_set_new): Likewise.
295         (varpool_node_set_add): Likewise.
296
297         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
298         (duplicate_ipa_jump_func_array): Likewise.
299         (ipa_read_node_info): Likewise.
300
301         * ipa-cp.c (ipcp_create_replace_map): Likewise.
302
303         * integrate.c (get_hard_reg_initial_val): Likewise.
304
305         * gimple.c (gimple_alloc_stat): Likewise.
306         (gimple_build_omp_for): Likewise.
307         (gimple_seq_alloc): Likewise.
308         (gimple_copy): Likewise.
309
310         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
311         (gsi_insert_after_without_update): Likewise.
312
313         * function.c (add_frame_space): Likewise.
314         (insert_temp_slot_address): Likewise.
315         (assign_stack_temp_for_type): Likewise.
316         (allocate_struct_function): Likewise.
317         (types_used_by_var_decl_insert): Likewise.
318
319         * except.c (init_eh_for_function): Likewise.
320         (gen_eh_region): Likewise.
321         (gen_eh_region_catch): Likewise.
322         (gen_eh_landing_pad): Likewise.
323         (add_call_site): Likewise.
324
325         * emit-rtl.c (get_mem_attrs): Likewise.
326         (get_reg_attrs): Likewise.
327         (start_sequence): Likewise.
328         (init_emit): Likewise.
329
330         * dwarf2out.c (new_cfi): Likewise.
331         (queue_reg_save): Likewise.
332         (dwarf2out_frame_init): Likewise.
333         (new_loc_descr): Likewise.
334         (find_AT_string): Likewise.
335         (new_die): Likewise.
336         (add_var_loc_to_decl): Likewise.
337         (clone_die): Likewise.
338         (clone_as_declaration): Likewise.
339         (break_out_comdat_types): Likewise.
340         (new_loc_list): Likewise.
341         (loc_descriptor): Likewise.
342         (add_loc_descr_to_each): Likewise.
343         (add_const_value_attribute): Likewise.
344         (tree_add_const_value_attribute): Likewise.
345         (add_comp_dir_attribute): Likewise.
346         (add_name_and_src_coords_attributes): Likewise.
347         (lookup_filename): Likewise.
348         (store_vcall_insn): Likewise.
349         (dwarf2out_init): Likewise.
350
351         * dbxout.c (dbxout_init): Likewise.
352
353         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
354
355         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
356
357         * config/score/score7.c (score7_output_external): Likewise.
358
359         * config/score/score3.c (score3_output_external): Likewise.
360
361         * config/s390/s390.c (s390_init_machine_status): Likewise.
362
363         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
364         (rs6000_init_machine_status): Likewise.
365         (output_toc): Likewise.
366
367         * config/pa/pa.c (pa_init_machine_status): Likewise.
368         (get_deferred_plabel): Likewise.
369
370         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
371
372         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
373
374         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
375
376         * config/mep/mep.c (mep_init_machine_status): Likewise.
377         (mep_note_pragma_flag): Likewise.
378
379         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
380
381         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
382
383         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
384
385         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
386         (i386_pe_maybe_record_exported_symbol): Likewise.
387
388         * config/i386/i386.c (get_dllimport_decl): Likewise.
389         (ix86_init_machine_status): Likewise.
390         (assign_386_stack_local): Likewise.
391
392         * config/frv/frv.c (frv_init_machine_status): Likewise.
393
394         * config/darwin.c (machopic_indirection_name): Likewise.
395
396         * config/cris/cris.c (cris_init_machine_status): Likewise.
397
398         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
399
400         * config/avr/avr.c (avr_init_machine_status): Likewise.
401
402         * config/arm/arm.c (arm_init_machine_status): Likewise.
403
404         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
405         (alpha_need_linkage): Likewise.
406         (alpha_use_linkage): Likewise.
407
408         * cgraph.c (cgraph_allocate_node): Likewise.
409         (cgraph_create_edge_1): Likewise.
410         (cgraph_create_indirect_edge): Likewise.
411         (cgraph_add_asm_node): Likewise.
412
413         * cfgrtl.c (init_rtl_bb_info): Likewise.
414
415         * cfgloop.c (alloc_loop): Likewise.
416         (rescan_loop_exit): Likewise.
417
418         * cfg.c (init_flow): Likewise.
419         (alloc_block): Likewise.
420         (unchecked_make_edge): Likewise.
421
422         * c-parser.c (c_parse_init): Likewise.
423         (c_parse_file): Likewise.
424
425         * c-decl.c (bind): Likewise.
426         (record_inline_static): Likewise.
427         (push_scope): Likewise.
428         (make_label): Likewise.
429         (lookup_label_for_goto): Likewise.
430         (finish_struct): Likewise.
431         (finish_enum): Likewise.
432         (c_push_function_context): Likewise.
433
434         * bitmap.c (bitmap_element_allocate): Likewise.
435         (bitmap_gc_alloc_stat): Likewise.
436
437         * alias.c (record_alias_subset): Likewise.
438         (init_alias_analysis): Likewise.
439
440 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
441         
442         * fold-const.c (fold_comparison): Remove redundant parenthesis.
443         * tree-inline.c (expand_call_inline): Pass translated return value of
444         cgraph_inline_failed_string to diagnostic function.
445
446 2010-06-08  Andrew Pinski <pinskia@gmail.com>
447             Shujing Zhao  <pearly.zhao@oracle.com>
448
449         PR c/37724
450         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
451         implicit bad conversions is initialization.
452         (error_init): Use gmsgid instead of msgid for argument name and change
453         the call for error.
454         (pedwarn_init): Use gmsgid instead of msgid for argument name and
455         change the call for pedwarn.
456         (warning_init): Use gmsgid instead of msgid for argument name and
457         change the call for warning.
458
459 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
460
461         * config/mips/mips-protos.h (mips_print_operand): Delete.
462         (mips_print_operand_address): Delete.
463         * config/mips/mips.h (mips_print_operand_punct): Delete.
464         (PRINT_OPERAND): Delete.
465         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
466         (PRINT_OPERAND_ADDRESS): Delete.
467         * config/mips/mips.c (mips_print_operand_punct): Make static.
468         (mips_print_operand_address): Make static.
469         (mips_print_operand): Make static.  Call
470         mips_print_operand_punct_valid_p.
471         (mips_print_operand_punct_valid_p): New function.
472         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
473         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
474
475 2010-06-07  Jan Hubicka  <jh@suse.cz>
476
477         PR middle-end/44454
478         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
479         are allocated.
480
481 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
482
483         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
484         name of RECORD.
485
486 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
487
488         * doc/sourcebuild.texi (Effective-Target Keywords, Other
489         attributes): Document gas.
490
491 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
492
493         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
494         <TYPE_LEA>: Split instruction.
495         <default>: Remove alternative 2 handling.
496         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
497         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
498         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
499
500         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
501         (ashift_zext lea splitter): Use DImode for multiplication.
502
503         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
504         to generate addition.
505
506 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
507
508         * common.opt (fira-verbose): Use Var.
509         (fpcc-struct-return): Use Init instead of VarExists.
510         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
511         toplev.c.
512         * flags.h (flag_signed_char, flag_short_enums,
513         flag_pcc_struct_return, flag_ira_verbose,
514         flag_detailed_statistics, flag_remove_unreachable_functions):
515         Remove.
516         * toplev.c (flag_detailed_statistics, flag_signed_char,
517         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
518         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
519         * toplev.h (flag_crossjumping, flag_if_conversion,
520         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
521         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
522         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
523         flag_cprop_registers, time_report, flag_ira_loop_pressure,
524         flag_ira_coalesce, flag_ira_move_spills,
525         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
526
527 2010-06-07  Jan Hubicka  <jh@suse.cz>
528
529         * df-core.c (df_analyze_problem): Do verification after allocation.
530
531         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
532         (df_lr_alloc): Initialize problem data; move bitmaps to
533         lr_bitmaps obstack.
534         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
535         (df_lr_verify_solution_start): Do not initialize problem data;
536         allocate bitmaps in lr_bitmaps.
537         (df_lr_verify_solution_end): Do not free problem data.
538
539 2010-06-07  Jan Hubicka  <jh@suse.cz>
540
541         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
542         if caller is noreturn.
543         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
544         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
545         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
546         * ipa-pure-const.c (check_decl): Add IPA parameter.
547         (state_from_flags): New function.
548         (better_state, worse_state): New functions.
549         (check_call): When in IPA mode, do not care about callees.
550         (check_load, check_store): Update.
551         (check_ipa_load, check_ipa_store): New.
552         (check_stmt): When in IPA mode, use IPA checkers.
553         (analyze_function): Use state_from_flags.
554         (propagate): Check indirect edges and references.
555
556 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
557
558         PR rtl-optimization/44404
559         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
560         of count_occurrences to see if it's safe to modify mem_insn.insn.
561
562 2010-06-07  Richard Guenther  <rguenther@suse.de>
563
564         * gimplify.c (gimplify_cleanup_point_expr): For empty body
565         and EH-only cleanup drop the cleanup instead of inserting it
566         unconditionally.
567
568 2010-06-07  Ira Rosen  <irar@il.ibm.com>
569
570         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
571         documentation.
572         * targhooks.c (default_builtin_vectorization_cost): New function.
573         * targhooks.h (default_builtin_vectorization_cost): Declare.
574         * target.h (enum vect_cost_for_stmt): Define.
575         (builtin_vectorization_cost): Change argument and comment.
576         * tree-vectorizer.h: Remove cost model macros.
577         * tree-vect-loop.c: Include target.h.
578         (vect_get_cost): New function.
579         (vect_estimate_min_profitable_iters): Replace cost model macros with
580         calls to vect_get_cost.
581         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
582         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
583         default implementation.
584         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
585         calls to target hook builtin_vectorization_cost.
586         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
587         Likewise.
588         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
589         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
590         implementation to return costs.
591         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
592         * config/spu/spu.h: Remove vectorizer cost model macros.
593         * config/i386/i386.h: Likewise.
594         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
595         a call to target hook builtin_vectorization_cost.
596
597 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
598
599         PR target/44319
600         * config/i386/i386.c (override_options): Turn zee pass on for level 2
601         and above and defer till target is known.
602         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
603         turn off otherwise.
604
605 2010-05-25  Jan Hubicka  <jh@suse.cz>
606
607         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
608         (df_compact_blocks): Likewise.
609         * df.h (struct df): Turn hardware_regs_used,
610         regular_block_artificial_uses, eh_block_artificial_uses,
611         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
612         bitmap_head.
613         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
614         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
615         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
616         df_scan_blocks, df_insn_delete, df_insn_rescan,
617         df_insn_rescan_debug_internal, df_insn_rescan_all,
618         df_process_deferred_rescans, df_process_deferred_rescans,
619         df_notes_rescan, df_get_call_refs, df_get_call_refs,
620         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
621         df_record_entry_block_defs, df_record_exit_block_uses,
622         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
623         df_scan_verify): Update.
624
625 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
626
627         PR c++/44188
628         * c-common.c (is_typedef_decl): Move this definition ...
629         * tree.c (is_typedef_decl): ... here.
630         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
631         * c-common.h (is_typedef_decl): Move this declaration ...
632         * tree.h (is_typedef_decl): ... here.
633         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
634         * dwarf2out.c (is_naming_typedef_decl): New function.
635         (gen_tagged_type_die): Split out of ...
636         (gen_type_die_with_usage): ... this function. When an anonymous
637         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
638         is emitted for the typedef.
639         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
640         anonymous tagged types.
641
642 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
643
644         PR c/20000
645         * c-decl.c (grokdeclarator): Delete warning.
646
647 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
648
649         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
650         newly built CALL_EXPR.
651         * tree-profile.c (tree_profiling): Don't profile functions produced
652         for built-in stuff.
653
654 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
655
656         PR bootstrap/44427
657         PR bootstrap/44428
658         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
659         endianness-independent.
660
661 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
662
663         * c-common.c: Move to c-family/.
664         * c-common.def: Likewise.
665         * c-common.h: Likewise.
666         * c-cppbuiltin.c: Likewise.
667         * c-dump.c: Likewise.
668         * c-format.c: Likewise.
669         * c-format.h : Likewise.
670         * c-gimplify.c: Likewise.
671         * c-lex.c: Likewise.
672         * c-omp.c: Likewise.
673         * c.opt: Likewise.
674         * c-opts.c: Likewise.
675         * c-pch.c: Likewise.
676         * c-ppoutput.c: Likewise.
677         * c-pragma.c: Likewise.
678         * c-pragma.h: Likewise.
679         * c-pretty-print.c: Likewise.
680         * c-pretty-print.h: Likewise.
681         * c-semantics.c: Likewise.
682         * stub-objc.c: Likewise.
683
684         * gengtype.c (get_file_langdir): Special-case files in c-family/.
685         (get_output_file_with_visibility): Fix name for c-common.h.
686         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
687
688         * c-tree.h: Update include path for moved files.
689         * c-lang.c: Likewise.
690         * c-lang.h: Likewise.
691         * c-parser.c: Likewise.
692         * c-convert.c: Likewise.
693         * c-decl.c: Likewise.
694         * c-objc-common.c: Likewise.
695         * configure.ac: Make sure c-family/ exists in the build directory.
696         * configure: Regenerate.
697         * Makefile.in: Update paths for moved files.  Regroup files per
698         location and update dependencies.  Move generated_files down after
699         ALL_GTFILES_H.
700
701         * config/spu/spu-c.c: Update paths for moved files.
702         * config/mep/mep-pragma.c: Likewise.
703         * config/darwin-c.c: Likewise.
704         * config/i386/msformat-c.c: Likewise.
705         * config/i386/i386-c.c: Likewise.
706         * config/avr/avr-c.c: Likewise.
707         * config/sol2-c.c: Likewise.
708         * config/ia64/ia64-c.c: Likewise.
709         * config/rs6000/rs6000-c.c: Likewise.
710         * config/arm/arm.c: Likewise.
711         * config/arm/arm-c.c: Likewise.
712         * config/h8300/h8300.c: Likewise.
713         * config/v850/v850-c.c: Likewise.
714
715         * config/t-darwin: Fix dependencies for moved files.
716         * config/t-sol2: Fix dependencies for moved files.
717         * config/mep/t-mep: Fix dependencies for moved files.
718         * config/ia64/t-ia64: Fix dependencies for moved files.
719         * config/rs6000/t-rs6000: Fix dependencies for moved files.
720         * config/v850/t-v850: Fix dependencies for moved files.
721         * config/v850/t-v850e: Fix dependencies for moved files.
722
723         * config/m32c/m32c-pragma.c
724
725         * po/exgettext: Look in c-family/ also.
726
727 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
728
729         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
730         (mark_control_dependent_edges_necessary): Call it instead of marking
731         the last statement manually.
732         (propagate_necessity): Likewise.
733
734 2010-06-05  Jan Hubicka  <jh@suse.cz>
735
736         * basic-block.h (compute_dominance_frontiers): Updated.
737         (compute_idf): Likewise.
738
739         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
740         for dominance frontiers.
741         (rewrite_into_ssa): Update for bitmap heads in dominance
742         frontiers.
743         (insert_updated_phi_nodes_for): Likewise.
744         (update_ssa): Likewise.
745         * cfganal.c (compute_dominance_frontiers_1): Likewise.
746         (compute_dominance_frontiers): Likewise.
747         (compute_idf): Likewise.
748         * df-problems.c (df_md_local_compute): Likewise.
749
750 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
751
752         * target.h (struct gcc_target): Add memory_move_cost field.
753         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
754         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
755         * targhooks.c (default_memory_move_cost): New function.
756         * targhooks.h (default_memory_move_cost): Declare function.
757         * reload.h (memory_move_cost): Declare.
758         (memory_move_secondary_cost): Change type of 'in' argument to bool.
759         * reginfo.c (memory_move_cost): New function.
760         (memory_move_secondary_cost): Change type of 'in' argument to bool.
761         * ira.h (ira_memory_move_cost): Update comment.
762         * ira.c: (ira_memory_move_cost): Update comment.
763         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
764         with memory_move_cost.
765         * postreload.c (reload_cse_simplify_set): (Ditto.).
766         * reload1.c (choose_reload_regs): (Ditto.).
767         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
768         (MEMORY_MOVE_COST):  Revise documentation.
769
770         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
771         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
772         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
773         type of 'in' argument to bool.
774         (TARGET_MEMORY_MOVE_COST): Define.
775
776 2010-06-05  Jan Hubicka  <jh@suse.cz>
777
778         * ipa-pure-const.c (propagate): Fix typo in handling of functions
779         that cannot return.  Be more careful when merging the results with
780         previously known ones.
781
782 2010-06-05  Matthias Klose  <doko@ubuntu.com>
783
784         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
785         function to add the -iplugindir option.
786         (find_plugindir_spec_function): Add new declaration and function.
787         (static_spec_func): Use it for "find-plugindir".
788
789 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
790
791         PR c++/44361
792         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
793         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
794         statement expression.
795
796 2010-06-05  Jan Hubicka  <jh@suse.cz>
797
798         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
799         (df_rd_problem_data): Convert sparse_invalidated_by_call,
800         dense_invalidated_by_call to bitmap head.
801         (df_rd_alloc, df_rd_bb_local_compute_process_def,
802         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
803         df_rd_start_dump, df_lr_verify_transfer_functions,
804         df_live_verify_transfer_functions, df_chain_create_bb,
805         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
806         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
807         df_simulate_one_insn_forwards, df_md_alloc,
808         df_md_bb_local_compute_process_def,
809         df_md_bb_local_compute_process_def, df_md_local_compute,
810         df_md_transfer_function df_md_free): Update.
811
812 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
813
814         PR c/44322
815         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
816         target type for ADDR_EXPR; require no changes to qualifiers except
817         for function types.
818         * c-tree.h (c_build_type_variant): Remove.
819
820 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
821
822         * genautomata.c (get_excl_set): Do work per element, not per char.
823         (check_presence_pattern_sets): Similar.
824         (check_absence_pattern_sets): Similar.
825
826 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
827
828         * genautomata.c (curr_state_pass_num): Delete.
829         (min_issue_delay_pass_states): Delete.
830         (min_issue_delay): Delete.
831         (initiate_min_issue_delay_pass_states): Delete.
832         (output_min_issue_delay_table): Compute min_issue_delay_vect
833         using a breadth-first search variant.
834         (output_tables): Don't call initiate_min_issue_delay_pass_states.
835
836 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
837
838         PR boostrap/44421
839         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
840         (df_byte_lr_bb_local_compute): Likewise.
841
842 2010-06-03  Jason Merrill  <jason@redhat.com>
843
844         Implement noexcept operator (5.3.7)
845         * c-common.c (c_common_reswords): Add noexcept.
846         * c-common.h (enum rid): Add RID_NOEXCEPT.
847
848 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
849
850         * config/darwin-driver.c (darwin_default_min_version): Use
851         GCC-specific formats in diagnostics.
852         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
853         diagnostics.
854         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
855         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
856         eval_spec_function, handle_braces, process_brace_body, main,
857         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
858         getenv_spec_function, compare_version_strings,
859         version_compare_spec_function): Use GCC-specific formats in
860         diagnostics.
861
862 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
863
864         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
865         that operand 0 and operand 1 are equal.
866         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
867         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
868         and operand 1 are equal.
869         <default>: Ditto.  Remove ??? comment.
870         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
871         and operand 1 are equal.
872         <default>: Ditto.  Remove ??? comment.
873         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
874         are equal.
875         (*add<mode>_4) <default>: Ditto.
876         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
877
878 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
879
880         * config/i386/i386-protos.h (ix86_print_operand): Declare.
881         * config/i386/i386.c (ix86_print_operand): Make non-static.
882         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
883         * output.h (output_operand): Declare.
884         * final.c (output_operand): Make non-static.
885
886 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
887
888         PR rtl-optimization/44013
889         * sched-deps.c (add_dependence_list_and_free): Don't free lists
890         when processing debug insns.
891
892         PR debug/41371
893         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
894         recursing.  Check that recursion is bounded.  Rename inner var
895         to avoid hiding incoming argument.
896
897 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
898
899         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
900         operands[2] == 255.
901         (*addqi_3): Ditto.
902         (*addqi_4): Ditto.
903         (*addqi_5): Ditto.
904         (*addqi_ext_1_rex64): Ditto.
905         (*addqi_ext_1): Ditto.
906
907         (*addqi_4): Check for incdec_operand in QImode.
908
909         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
910         using SWI mode iterator.
911         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
912         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
913         mode iterator.
914         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
915         using SWI mode iterator.
916
917 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
918
919         PR c/25880
920         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
921         * c-format.c (gcc_diag_flag_specs): Add hash.
922         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
923         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
924         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
925         pp_c_cv_qualifiers. Handle qualifiers spelling here.
926         (pp_c_type_qualifier_list): Call the function above.
927         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
928         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
929         (WARN_FOR_QUALIFIERS): New macro.
930         (convert_for_assignment): Use it.
931
932 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
933
934         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
935
936 2010-06-04  Jan Hubicka  <jh@suse.cz>
937
938         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
939         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
940         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
941         DF_BYTE_LR_OUT): Update for embedded bitmaps.
942         * fwprop.c (single_def_use_enter_block): Likewise.
943         * ddg.c (create_ddg_dep_from_intra_loop_link,
944         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
945         * loop-iv.c (latch_dominating_def): Likewise.
946         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
947         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
948         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
949         df_rd_transfer_function, df_rd_top_dump,
950         df_rd_bottom_dump): Update.
951         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
952         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
953         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
954         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
955         df_lr_verify_solution_start, df_lr_verify_solution_end,
956         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
957         df_live_free_bb_info, df_live_alloc, df_live_reset,
958         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
959         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
960         df_live_verify_solution_start, df_live_verify_solution_end,
961         df_live_verify_transfer_functions, df_chain_create_bb,
962         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
963         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
964         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
965         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
966         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
967         df_byte_lr_transfer_function, df_byte_lr_top_dump,
968         df_byte_lr_bottom_dump, df_create_unused_note,
969         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
970         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
971         df_md_transfer_function, df_md_init, df_md_confluence_0,
972         df_md_confluence_n,
973         df_md_top_dump, df_md_bottom_dump): Update.
974         (struct df_lr_problem_data): Embedd bitmap headers.
975
976 2010-06-04  Jan Hubicka  <jh@suse.cz>
977
978         * dce.c (dce_process_block): Do not re-scan already marked
979         instructions.
980
981 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
982
983         PR rtl-optimization/39871
984         PR rtl-optimization/40615
985         PR rtl-optimization/42500
986         PR rtl-optimization/42502
987         * ira.c (init_reg_equiv_memory_loc: New function.
988         (ira): Call it twice.
989         * reload.h (calculate_elim_costs_all_insns): Declare.
990         * ira-costs.c: Include "reload.h".
991         (regno_equiv_gains): New static variable.
992         (init_costs): Allocate it.
993         (finish_costs): Free it.
994         (ira_costs): Call calculate_elim_costs_all_insns.
995         (find_costs_and_classes): Take estimated elimination costs
996         into account.
997         (ira_adjust_equiv_reg_cost): New function.
998         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
999         * reload1.c (init_eliminable_invariants, free_reg_equiv,
1000         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
1001         (elim_bb): New static variable.
1002         (reload): Move code out of here into init_eliminable_invariants and
1003         free_reg_equiv.  Call them.
1004         (calculate_elim_costs_all_insns): New function.
1005         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
1006         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
1007         but call note_reg_elim_costly if we turned a valid memory address
1008         into an invalid one.
1009         * Makefile.in (ira-costs.o): Depend on reload.h.
1010
1011 2010-06-04  Julian Brown  <julian@codesourcery.com>
1012
1013         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
1014         for pool ranges.
1015
1016 2010-06-04  Richard Guenther  <rguenther@suse.de>
1017
1018         PR lto/41584
1019         * cgraph.h (struct varpool_node): Add lto_file_data field.
1020         * lto-cgraph.c (input_varpool_node): Initialize it.
1021
1022 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
1023
1024         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
1025         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
1026         predicate in "type" attribute calculation.
1027         (*addsi_1_zext): Ditto.
1028         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
1029         (*addsi_2_zext): Ditto.
1030         (*add<mode>_3): Ditto.
1031         (*addsi_3_zext): Ditto.
1032         (*add<mode>_5): Ditto.
1033
1034 2010-06-03  Jan Hubicka  <jh@suse.cz>
1035
1036         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
1037         of bitmap_bit_p.
1038         * cfganal.c (compute_dominance_frontiers_1): Likewise.
1039
1040 2010-06-03  Jan Hubicka  <jh@suse.cz>
1041
1042         * df-problems.c (df_create_unused_note, df_note_bb_compute):
1043         micro-optimize the checks when to add new note.
1044
1045 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
1046
1047         * final.c (output_asm_insn): Call
1048         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
1049         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
1050         (output_address): Call targetm.asm_out.print_operand_address.
1051         Update comments.
1052         * target.h (struct gcc_target): Add print_operand,
1053         print_operand_address, and print_operand_punct_valid_p fields.
1054         * targhooks.h (default_print_operand): Declare.
1055         (default_print_operand_address): Declare.
1056         (default_print_operand_punct_valid_p): Declare.
1057         * targhooks.c (default_print_operand): Define.
1058         (default_print_operand_address): Define.
1059         (default_print_operand_punct_valid_p): Define.
1060         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
1061         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
1062         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1063         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
1064         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
1065         * vmsdbgout.c (addr_const_to_string): Update comment.
1066         * config/i386/i386.c (print_operand): Rename to...
1067         (ix86_print_operand): ...this.  Make static.
1068         (print_operand_address): Rename to...
1069         (ix86_print_operand_address): ...this.  Make static.  Call
1070         ix86_print_operand instead of PRINT_OPERAND.
1071         (ix86_print_operand_punct_valid_p): New function.
1072         (TARGET_PRINT_OPERAND): Define.
1073         (TARGET_PRINT_OPERAND_ADDRESS): Define.
1074         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1075         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
1076         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1077         (PRINT_OPERAND): Delete.
1078         (PRINT_OPERAND_ADDRESS): Delete.
1079         * config/i386/i386-protos.h (print_operand): Delete prototype.
1080         (print_operand_address): Delete prototype.
1081
1082 2010-06-03  Richard Guenther  <rguenther@suse.de>
1083
1084         PR tree-optimization/44403
1085         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1086         Preserve pointer qualifiers.
1087         (vect_create_data_ref_ptr): Likewise.
1088
1089 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1090
1091         PR c++/44294
1092         * defaults.h (MAX_FIXED_MODE_SIZE): New.
1093
1094         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
1095
1096 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
1097
1098         PR debug/44375
1099         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
1100         return false if merging the bbs would lead to goto_locus
1101         location being lost from the IL.
1102
1103 2010-06-03  Jan Hubicka  <jh@suse.cz>
1104             Jakub Jelinek  <jakub@redhat.com>
1105
1106         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
1107         set->regs[i] is NULL or has just one entry.
1108
1109 2010-06-03  Jan Hubicka  <jh@suse.cz>
1110
1111         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
1112         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
1113
1114 2010-06-03  Paul Brook  <paul@codesourcery.com>
1115
1116         * config/arm/arm.c (FL_TUNE): Define.
1117         (arm_default_cpu, arm_cpu_select): Remove.
1118         (all_cores): Populate core field.
1119         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
1120         (arm_find_cpu): New function.
1121         (arm_handle_option): Lookup cpu/architecture names.
1122         (arm_override_options): Cleanup mcpu/march/mtune handling.
1123         (arm_file_start): Ditto.
1124
1125 2010-06-03  Alan Modra  <amodra@gmail.com>
1126
1127         PR target/44169
1128         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
1129         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
1130         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
1131         (rs6000_emit_load_toc_table): Likewise.
1132
1133 2010-06-02  Jan Hubicka  <jh@suse.cz>
1134
1135         * passes.c (init_optimization_passes): Put ipa reference
1136         after ipa pure-const.
1137
1138 2010-06-02  Jan Hubicka  <jh@suse.cz>
1139
1140         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
1141         calls_read_all and calls_write_all.
1142         (get_reference_optimization_summary): Fix formatting.
1143         (is_proper_for_analysis): Check that decl is not readonly.
1144         (propagate_bits): Check CONST/PURE/noreturn flags.
1145         (ipa_init): Move all_module_statics to optimization_summary_obstack.
1146         (analyze_function): Ignore indirect edges.
1147         (copy_global_bitmap): For all module statics, do nothing.
1148         (generate_summary): Do not print calls_read_all/calls_write_all.
1149         (read_write_all_from_decl): Take node as argument; check
1150         cgraph_node_cannot_return.
1151         (propagate): Reorganize read_all/write_all computation;
1152         check indirect edges; check ecf flags; use all_module_statics
1153         in the results; do not free all_module_statics.
1154         (stream_out_bitmap): Handle all_module_statics.
1155         (ipa_reference_write_optimization_summary): Likewise; use
1156         varpool/cgraph encoders to get boundaries.
1157         (ipa_reference_read_optimization_summary): Read in all_module_statics;
1158         use it when possible.
1159
1160 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
1161
1162         PR target/44218
1163         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
1164         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
1165
1166         * doc/extend.texi (powerpc builtins): Document vec_recip,
1167         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
1168
1169         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
1170         (rs6000_emit_swrsqrt): Ditto.
1171         (rs6000_emit_swdivsf): Delete.
1172         (rs6000_emit_swdivdf): Ditto.
1173         (rs6000_emit_swrsqrtsf): Ditto.
1174
1175         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
1176         describe the reciprocal estimate support for each type.
1177         (recip_options): Map -mrecip=<opt> into option bits.
1178         (gen_2arg_fn_t): New typedef for binary rtx gen function.
1179         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
1180         reciprocal estimate instructions.
1181         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
1182         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
1183         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
1184         cost information if -mdebug=cost or -mdebug=reg.
1185         (rs6000_override_options): Set -mrecip-precision for power6, and
1186         power7 machines.  If -mvsx or -mdfp, enable various options that
1187         came in previous instruction set ISAs, unless the option was
1188         explicitly disabled by the command line option.  Parse
1189         -mrecip=<opt> options.
1190         (rs6000_builtin_vectorized_function): Add support for vectorizing
1191         the reciprocal estimate builtins and expansions.
1192         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
1193         (bdesc_2arg): Add reciprocal estimate builtins.
1194         (bdesc_1arg): Add reciprocal square root estimate builtins.
1195         (rs6000_expand_builtin): Rewrite to use a switch statement,
1196         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
1197         (rs6000_init_builtins): Create declarations for reciprocal
1198         estimate builtins.
1199         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
1200         sized, prefer traditional floating point registers, if integer
1201         vector types, prefer altivec registers.  Don't actually look at
1202         the memory address any more.
1203         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
1204         builtins.
1205         (rs6000_load_constant_and_splat): New helper function to load up
1206         the constant for reciprocal estimate instructions.
1207         (rs6000_emit_madd): New helper function for generating
1208         multiply/add type instructions, based on the current switches.
1209         (rs6000_emit_msub): Ditto.
1210         (rs6000_emit_mnsub): Ditto.
1211         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
1212         replace a divide with a reciprocal estimate and fixup, adding
1213         support for machines with high precision and vectors.
1214         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
1215         low precision machines.
1216         (rs6000_emit_swdiv): New common function to be called to replace a
1217         division with reciprocal estimate and fixup.
1218         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
1219         for double and vector types.  Add support for high precision machines.
1220
1221         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
1222         the reciprocal estimate instructions can be generated.
1223         (TARGET_FRE): Ditto.
1224         (TARGET_FRSQRTES): Ditto.
1225         (TARGET_FRSQRTE): Ditto.
1226         (RS6000_RECIP_*): New macros for reciprocal estimate support.
1227
1228         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
1229         square root estimate on vectors.
1230         (re<mode>2): New insn for reciprocal division estimate on vectors.
1231
1232         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
1233         New builtin.
1234         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
1235         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
1236         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
1237         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
1238         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
1239         (RS6000_BUILTIN_RSQRT): Ditto.
1240         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
1241         floating point builtin.
1242
1243         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1244         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
1245         __RECIP_PRECISION__ based on the command line switches.
1246         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
1247
1248         * config/rs6000/rs6000.opt (-mrecip): Document add support for
1249         replacing division instructions with reciprocal estimate and fixup.
1250         (-mrecip=<opt>): New option.
1251         (-mrecip-precision): Ditto.
1252
1253         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
1254         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
1255         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
1256         precision scalar.
1257
1258         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
1259         (UNSPEC_VREFP): Ditto.
1260         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
1261         conterparts with regard to support of -mno-fused-madd and -ffast-math.
1262         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
1263         reciprocal estimate instructions to be generated.
1264         (altivec_vrefp): Ditto.
1265
1266         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
1267         estimate support.
1268         (rreg): New mode attribute for reciprocal estimate support.
1269         (recip<mode>3): New insn for division using reciprocal estimate
1270         and fixup builtins.
1271         (divide define_split): New define_split to convert floating point
1272         division to use reciprocal estimate if the user used the
1273         appropriate options and the split is run when we can add new
1274         pseudo registers for the fixup.
1275         (rsqrt<mode>2): New insn for reciprocal square root support.
1276         (recipsf3): Move into recip<mode>3.
1277         (recipdf3): Ditto.
1278         (fres): Use TARGET_FRES.
1279         (rsqrtsf2): Move into rsqrt<mode>2.
1280         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
1281         (copysignsf3): Add support for VSX.
1282         (fred): Use TARGET_FRE.
1283         (fred_fpr): Ditto.
1284         (rsqrtdf_internal1): New function for frsqrte instruciton.
1285
1286         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
1287         (vec_rsqrt): Ditto.
1288
1289 2010-06-03  Richard Guenther  <rguenther@suse.de>
1290
1291         PR middle-end/44291
1292         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
1293         (set_user_assembler_libfunc): Likewise.
1294
1295 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
1296
1297         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
1298         defaults.h.
1299         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
1300         to defaults.h
1301         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
1302         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
1303         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
1304         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
1305         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
1306         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
1307         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
1308         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
1309         * defaults.h: Updated for above mentioned changes.
1310
1311 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
1312
1313         * c-common.c: Remove header include of tm_p.h.
1314         * Makefile.in (c-common.o): Remove TM_P_H dependency.
1315
1316 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
1317
1318         * tree.h (struct tree_decl_map): New type.
1319         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
1320         (tree_decl_map_hash): New prototype.
1321         (debug_expr_for_decl, value_expr_for_decl): Change into
1322         tree_decl_map hashtab from tree_map.
1323         (init_ttree): Adjust initialization.
1324         (tree_decl_map_hash): New function.
1325         (decl_debug_expr_lookup, decl_debug_expr_insert,
1326         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
1327
1328 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1329
1330         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
1331         linker emulations.
1332         * configure: Regenerate.
1333         * config.in: Regenerate.
1334
1335         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
1336         (X86_64_EMULATION): Define.
1337         (TARGET_LD_EMULATION): Use them.
1338
1339         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
1340         (SPARC64_EMULATION): Define.
1341         (LINK_ARCH_SPEC): Use them.
1342
1343 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
1344
1345         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
1346         smallest_mode_for_size for computing the precision types of new
1347         graphite IVs.  Do not call lang_hooks.types.type_for_size.
1348
1349 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
1350
1351         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
1352         information.
1353         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
1354
1355 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
1356
1357         PR middle-end/44363
1358         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
1359         return false instead.
1360
1361 2010-06-02  Jan Hubicka  <jh@suse.cz>
1362
1363         PR middle-end/44295
1364         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
1365         create new cgraph node to check callee.
1366
1367 2010-06-02  Richard Guenther  <rguenther@suse.de>
1368
1369         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
1370
1371 2010-06-02  Richard Guenther  <rguenther@suse.de>
1372
1373         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
1374         (lto_wrapper_cleanup): ... this.  Do not exit.
1375         (fatal): Adjust.  Exit here.
1376         (fatal_perror): Likewise.
1377         (fatal_signal): New function.
1378         (main): Set up signal handlers to cleanup temporary files.
1379         * Makefile.in (lto-wrapper.o): Adjust dependencies.
1380
1381 2010-06-02  Richard Guenther  <rguenther@suse.de>
1382
1383         PR tree-optimization/44377
1384         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
1385
1386 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1387
1388         * config/s390/2097.md (z10_fhex): Remove insn reservation.
1389         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
1390         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
1391         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
1392         instruction.
1393         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
1394
1395 2010-06-02  Jan Hubicka  <jh@suse.cz>
1396
1397         * bitmap.c (bitmap_descriptor): Add search_iter.
1398         (bitmap_find_bit): Increment it.
1399         (print_statistics): Print it.
1400
1401 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
1402
1403         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
1404         instead of gimple_build_call_vec.  Delete unnecessary local variable.
1405
1406 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
1407
1408         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
1409         change from yesterday.
1410
1411 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
1412
1413         * c-ada-spec.c: Clean up redundant includes.
1414
1415 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
1416
1417         * gimplify.c: Do not include except.h and optabs.h.
1418         (gimplify_body): Do not initialize RTL profiling.
1419         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
1420         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
1421         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
1422         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
1423         langhooks.h.
1424
1425         * tree-pretty-print.h: Include pretty-print.h.
1426         * gimple-pretty-print.h: Include pretty-print.h.
1427
1428         * tree-pretty-print.c: Do not include diagnostic.h.
1429         * tree-vrp.c: Likewise.
1430         * tree-tailcall.c: Likewise
1431         * tree-scalar-evolution.c: Likewise
1432         * tree-ssa-dse.c: Likewise
1433         * tree-chrec.c: Likewise
1434         * tree-ssa-sccvn.c: Likewise
1435         * tree-ssa-copyrename.c: Likewise
1436         * tree-nomudflap.c: Likewise
1437         * tree-call-cdce.c: Likewise
1438         * tree-stdarg.c: Likewise
1439         * tree-ssa-math-opts.c: Likewise
1440         * tree-nrv.c: Likewise
1441         * tree-ssa-sink.c: Likewise
1442         * tree-browser.c: Likewise
1443         * tree-ssa-loop-ivcanon.c: Likewise
1444         * tree-ssa-loop.c: Likewise
1445         * tree-parloops.c: Likewise
1446         * tree-ssa-address.c: Likewise
1447         * tree-ssa-ifcombine.c: Likewise
1448         * tree-if-conv.c: Likewise
1449         * tree-data-ref.c: Likewise
1450         * tree-affine.c: Likewise
1451         * tree-ssa-phiopt.c: Likewise
1452         * tree-ssa-coalesce.c: Likewise
1453         * tree-ssa-pre.c: Likewise
1454         * tree-ssa-live.c: Likewise
1455         * tree-predcom.c: Likewise
1456         * tree-ssa-forwprop.c: Likewise
1457         * tree-ssa-dce.c: Likewise
1458         * tree-ssa-ter.c: Likewise
1459         * tree-ssa-loop-prefetch.c: Likewise
1460         * tree-optimize.c: Likewise
1461         * tree-ssa-phiprop.c: Likewise
1462         * tree-object-size.c: Likewise
1463         * tree-outof-ssa.c: Likewise
1464         * tree-ssa-structalias.c: Likewise
1465         * tree-switch-conversion.c: Likewise
1466         * tree-ssa-reassoc.c: Likewise
1467         * tree-ssa-operands.c: Likewise
1468         * tree-vectorizer.c: Likewise
1469         * tree-vect-data-refs.c: Likewise
1470         * tree-vect-generic.c: Likewise
1471         * tree-vect-stmts.c: Likewise
1472         * tree-vect-patterns.c: Likewise
1473         * tree-vect-slp.c: Likewise
1474         * tree-vect-loop.c: Likewise
1475         * tree-ssa-loop-ivopts.c: Likewise
1476         * tree-ssa-loop-im.c: Likewise
1477         * tree-ssa-loop-niter.c: Likewise
1478         * tree-ssa-loop-unswitch.c: Likewise
1479         * tree-ssa-loop-manip.c: Likewise
1480         * tree-ssa-loop-ch.c: Likewise
1481         * tree-dump.c: Likewise
1482         * tree-complex.c: Likewise
1483
1484         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
1485         * tree-ssa-uninit.c: Likewise
1486         * tree-ssa-threadupdate.c: Likewise
1487         * tree-ssa-uncprop.c: Likewise
1488         * tree-ssa-ccp.c: Likewise
1489         * tree-ssa-dom.c: Likewise
1490         * tree-ssa-propagate.c: Likewise
1491         * tree-ssa-alias.c: Likewise
1492         * tree-dfa.c: Likewise
1493         * tree-cfgcleanup.c: Likewise
1494         * tree-sra.c: Likewise
1495         * tree-ssa-copy.c: Likewise
1496         * tree-ssa.c: Likewise
1497         * tree-profile.c: Likewise
1498         * tree-cfg.c: Likewise
1499         * tree-ssa-threadedge.c: Likewise
1500         * tree-vect-loop-manip.c: Likewise
1501
1502         * tree-inline.c: Do not include diagnostic.h and expr.h.
1503         Include rtl.h.
1504         (copy_decl_for_dup_finish): Do not use NULL_RTX.
1505
1506         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
1507         * tree-loop-distribution.c: Likewise.
1508
1509 2010-06-01  Jan Hubicka  <jh@suse.cz>
1510
1511         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
1512
1513 2010-06-01  Jan Hubicka  <jh@suse.cz>
1514
1515         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
1516         remove return value.
1517         (split_bbs_on_noreturn_calls) .... here.
1518         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
1519         * tree-flow.h (fixup_noreturn_call): New.
1520
1521 2010-06-01  Jan Hubicka  <jh@suse.cz>
1522
1523         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
1524
1525 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
1526
1527         * tree.h (build_nt_call_list): Delete.
1528         * tree.c (build_nt_call_list): Delete.
1529
1530 2010-06-01  Jan Hubicka  <jh@suse.cz>
1531
1532         * fwprop.c: Make emit-rtl.h include last.
1533         * rtlanal.c: Include emit-rtl.h.
1534         * genautomata.c: Output emit-rtl include into insn-automata.c
1535         * df-scan.c: Include emit-rtl.h.
1536         * haifa-sched.c: Indlude emit-rtl.h.
1537         * mode-switching.c: Indlude emit-rtl.h.
1538         * graph.c: Indlude emit-rtl.h.
1539         * sel-sched.c: Include emit-rtl.h.
1540         * sel-sched-ir.c: Include emit-rtl.h.
1541         * ira-build.c: Include emit-rtl.h.
1542         * emit-rtl.c: (first_insn, last_insn): Remove defines.
1543         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
1544         Move to emit-rtl.h.
1545         (set_new_first_and_last_insn, get_last_insn_anywhere,
1546         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
1547         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
1548         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
1549         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
1550         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
1551         Use accessor functions.
1552         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
1553          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
1554         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
1555         mem_expr_equal_p): Move here from rtl.h.
1556         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
1557         Move here from emit-rtl.c; make inline.
1558         * cfglayout.h: Include emit-rtl.h.
1559         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
1560          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
1561         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
1562         mem_expr_equal_p, get_insns, set_first-insn,
1563         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
1564         * reg-stack.c: Include emit-rtl.h.
1565         * dce.c: Likewise.
1566
1567 2010-06-01  Jan Hubicka  <jh@suse.cz>
1568
1569         * cgraph.h (tree_function_versioning): Update prototype.
1570         (cgraph_function_versioning): Update prototype.
1571         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
1572         bitmap.
1573         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
1574         (cgraph_materialize_clone, save_inline_function_body): Update use of
1575         tree_function_versioning.
1576         * tree-inline.c (copy_bb): Look for previous copied block to link
1577         after; fix debug output.
1578         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
1579         (copy_body): Likewise.
1580         (expand_call_inline): Update use of copy_body.
1581         (tree_function_versioning): Update use of copy body; accept
1582         blocks_to_copy and new_entry.
1583
1584 2010-06-01  Jan Hubicka  <jh@suse.cz>
1585
1586         * gegenrtl.c: Remove unnecesary prototypes.
1587         (gendecl): Remove.
1588         (gendef): Produce static inline.
1589         (gencode): Remove.
1590         (main): Do not decode parameters; generate header only.
1591         * Makefile.in (genrtl.c): Remove.
1592
1593 2010-06-01  Jan Hubicka  <jh@suse.cz>
1594
1595         * tree-switch-conversion.c (build_one_array): Make it readonly.
1596
1597 2010-06-01  Richard Guenther  <rguenther@suse.de>
1598
1599         * optabs.c (init_optabs): Guard all accesses to reinit.
1600         * ipa-pure-const.c (propagate): Fix another typo.
1601         * opts.c (common_handle_option): Split assignment to bool.
1602         * c-opts.c (c_common_handle_option): Likewise.
1603
1604 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
1605             Matthew Gingell  <gingell@adacore.com>
1606
1607         * doc/invoke.texi: Mention -fdump-ada-spec.
1608         * tree-dump.c (dump_files): Add ada-spec.
1609         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
1610         * tree-pass.h (tree_dump_index): Add TDI_ada.
1611         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
1612         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
1613         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
1614         * c-decl.c: Include c-ada-spec.h.
1615         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
1616         functions.
1617         (c_write_global_declarations): Add handling of -fdump-ada-spec.
1618         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
1619         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
1620         * c-ada-spec.h, c-ada-spec.c: New files.
1621
1622 2010-06-01  Richard Guenther  <rguenther@suse.de>
1623
1624         PR lto/43853
1625         * ipa-pure-const.c (get_function_state): Hand back varying state
1626         if we do not have one.
1627         (has_function_state): New function.
1628         (duplicate_node_data): Adjust.
1629         (remove_node_data): Likewise.
1630         (pure_const_write_summary): Likewise.
1631         (propagate): Likewise.  Fix typo.
1632
1633 2010-06-01  Jan Hubicka  <jh@suse.cz>
1634
1635         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
1636         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
1637         (execute_all_ipa_transforms): Do not play with the states.
1638
1639 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
1640
1641         * config/arm/t-linux-androideabi: New.
1642         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
1643
1644 2010-06-01  Jan Hubicka  <jh@suse.cz>
1645
1646         * tree-inline.c (estimate_num_insns): For stdarg functions look
1647         into call statement to count cost of argument passing.
1648
1649 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
1650
1651         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
1652         argument for fprintf.
1653         (ix86_output_addr_diff_elt): Likewise.
1654         (x86_function_profiler): Likewise.
1655         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
1656         (LPREFIX): Likewise.
1657         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1658
1659 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
1660
1661         PR target/44338
1662         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
1663         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
1664         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
1665         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
1666         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
1667         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
1668         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
1669         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
1670         TARGET_FUSED_MADD.
1671
1672 2010-05-31  Jan Hubicka  <jh@suse.cz>
1673
1674         * tree.h (tree_range_check_failed): Declare noreturn.
1675
1676 2010-05-31  Jan Hubicka  <jh@suse.cz>
1677
1678         * gimple.c (gimple_call_builtin_p): New function.
1679         * gimple.h (gimple_call_builtin_p): Declare.
1680         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
1681         to exit.
1682         (execute_warn_function_return): BUILT_IN_RETURN is return.
1683         (split_critical_edges): Return edges are not critical.
1684         (is_ctrl_altering_stmt): Builtin_in_return is altering.
1685         (gimple_verify_flow_info): Handle built_in_return.
1686         (execute_warn_function_return): Handle built_in_return.
1687         * ipa-pure-const.c (check_call): Ignore builtin_return.
1688
1689 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
1690
1691         PR middle-end/44337
1692         * expr.c (expand_assignment): Don't store anything for out-of-bounds
1693         array accesses with non-MEM.
1694
1695         PR tree-optimization/44182
1696         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
1697         newly needs to end a bb is followed by debug stmts, instead return
1698         true from the function at the end.
1699         (maybe_move_debug_stmts_to_successors): New function.
1700         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
1701
1702 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
1703
1704         PR target/44161
1705         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
1706
1707 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
1708
1709         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
1710         for nested functions in non-optimized compilation.
1711
1712 2010-05-31  Richard Guenther  <rguenther@suse.de>
1713
1714         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
1715
1716 2010-05-30  Jan Hubicka  <jh@suse.cz>
1717
1718         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
1719
1720 2010-05-30  Richard Guenther  <rguenther@suse.de>
1721
1722         PR lto/42975
1723         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
1724         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
1725         no longer needed.
1726
1727 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
1728
1729         * config/darwin.c (output_objc_section_asm_op): Add comment.
1730         (name_needs_quotes): Add '_' to list of valid comment chars.
1731         (machopic_output_function_base_name): Remove unneeded quotes.
1732         (darwin_encode_section_info): Adjust asm whitespace.
1733         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
1734         (ASM_OUTPUT_LOCAL): Ditto.
1735         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
1736         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
1737         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
1738
1739 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
1740
1741         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
1742         RS6000_OUTPUT_BASENAME unconditionally.
1743         (rs6000_output_function_epilogue): Likewise.
1744
1745 2010-05-30  Jan Hubicka  <jh@suse.cz>
1746
1747         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
1748         nodes.
1749
1750 2010-05-30  Richard Guenther  <rguenther@suse.de>
1751
1752         * tree-cfg.c (verify_gimple_assign_single): Implement
1753         verification for COND_EXPR rhs.
1754
1755 2010-05-30  Jan Hubicka  <jh@suse.cz>
1756
1757         * cgraph.h (cgraph_dump_file): Declare.
1758         * cgraphunit.c (cgraph_dump_file): Export.
1759         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
1760
1761 2010-05-30  Jan Hubicka  <jh@suse.cz>
1762
1763         * dwarf2out.c (reference_to_unused,
1764         premark_types_used_by_global_vars_helper): Avoid creation of new
1765         varpool nodes.
1766
1767 2010-05-30  Jan Hubicka  <jh@suse.cz>
1768
1769         * cgraph.h (cgraph_node_cannot_return,
1770         cgraph_edge_cannot_lead_to_return): New functions.
1771         * cgraph.c (cgraph_node_cannot_return,
1772         cgraph_edge_cannot_lead_to_return): Use them.
1773         * ipa-pure-const.c (pure_const_names): New static var.
1774         (check_call): Handle calls not leading to return.
1775         (pure_const_read_summary): Dump info read.
1776         (propagate): Dump info about propagation process; ignore side effects
1777         of functions not leading to exit; fix handling of pure functions.
1778
1779 2010-05-30  Jan Hubicka  <jh@suse.cz>
1780
1781         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
1782         for tail call epilogues.
1783
1784 2010-05-30  Jan Hubicka  <jh@suse.cz>
1785
1786         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
1787         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
1788         dump files.
1789
1790 2010-05-29  Jan Hubicka  <jh@suse.cz>
1791
1792         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
1793         node; remove references in node we no longer keep in cgrpah but need
1794         body of.
1795
1796 2010-05-29  Jan Hubicka  <jh@suse.cz>
1797
1798         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
1799
1800 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1801
1802         PR target/44165
1803         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
1804
1805 2010-05-29  Jan Hubicka  <jh@suse.cz>
1806
1807         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
1808         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
1809         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
1810         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
1811         debug_names_replaced_by, debug_update_ssa): Likewise.
1812         * sbitmap.c (debug_sbitmap): Likewise.
1813         * genrecog.c (debug_decision, debug_decision_list): Likewise.
1814         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
1815         debug_tree_chain): Likewise.
1816         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
1817         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
1818         * optabs.c  (debug_optab_libfuncs): Likewise.
1819         (verify_loop_closed_ssa): Likewise.
1820         * value-prof.c (verify_histograms): Likewise.
1821         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
1822         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
1823         * cfghooks.c (verify_flow_info): Likewise.
1824         * fold-const.c (debug_fold_checksum): Likewise.
1825         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
1826         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
1827         Likewise.
1828         * omega.c (debug_omega_problem): Likewise.
1829         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
1830         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
1831         * dominance.c (verify_dominators, debug_dominance_info,
1832         debug_dominance_tree): Likewise.
1833         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
1834         * df_regno_debug, df_ref_debug,
1835         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
1836         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
1837         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
1838         * sel-sched.c (debug_state): Likewise.
1839         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
1840         Likewise.
1841         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
1842         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
1843         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
1844         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
1845         Likewise.
1846         * c-pretty-print.c (debug_c_tree): Likewise.
1847         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
1848         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
1849         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
1850         * ebitmap.c (debug_ebitmap): Likewise.
1851         * function.c (debug_find_var_in_block_tree): Likewise.
1852         * print-rtl.c (debug_rtx): Likewise.
1853         (debug_rtx_count): Likewise.
1854         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
1855         * stor-layout.c (debug_rli): Likewise.
1856         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
1857         * tree-data-ref.c (debug_data_references,
1858         debug_data_dependence_relations, debug_data_reference,
1859         debug_data_dependence_relation, debug_rdg_vertex,
1860         debug_rdg_component, debug_rdg): Likewise.
1861         * tree-affine.c (debug_aff): Likewise.
1862         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
1863         Likewise.
1864         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
1865         * emit-rtl.c (verify_rtl_sharing): Likewise.
1866         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
1867         debug_value_expressions): Likewise.
1868         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
1869         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
1870         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
1871         * cfglayout.c (verify_insn_chain): Likewise.
1872         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
1873         debug_clast_stmt, debug_generated_program): Likewise.
1874         * ggc-page.c (debug_print_page_list): Likewise.
1875         * tree-ssa-ter.c (debug_ter): Likewise.
1876         * graphite-dependences.c (debug_pddr): Likewise.
1877         * sched-deps.c (debug_ds): Likewise.
1878         * tree-ssa.c (verify_ssa): Likewise.
1879         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
1880         debug_scattering_functions, debug_iteration_domains, debug_pdr,
1881         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
1882         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
1883         * tree-inline.c (debug_find_tree): Likewise.
1884         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
1885         debug_ppl_powerset_matrix): Likewise.
1886         * var-tracking.c (debug_dv): Likewise.
1887         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
1888         * cfgloop.c (verify_loop_structure): Likewise.
1889         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
1890         * c-common.c (verify_sequence_points): Likewise.
1891         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
1892         debug_candidates, debug_rgn_dependencies): Likewise.
1893         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
1894         * debug_constraint_graph, debug_solution_for_var,
1895         debug_sa_points_to_info): Likewise.
1896         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
1897         Likewie.
1898         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
1899         debug_loops, debug_loop, debug_loop_num): Likewise.
1900         * passes.c (debug_pass): Likewise.
1901         (dump_properties): Likewise; add cfglayout property.
1902         (debug_properties): Likewise.
1903         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
1904         * varpool.c (debug_varpool): Likewise.
1905         * regcprop.c (debug_value_data): Likewise.
1906         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
1907         debug_immediate_uses_for): Likewise.
1908
1909 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1910
1911         PR bootstrap/44315
1912         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
1913         Filter out insn-flags.h.
1914
1915 2010-05-29  Jan Hubicka  <jh@suse.cz>
1916
1917         * cgraph.h (struct varpool_node_set_def,
1918         struct cgraph_node_set_def): Remove unused AUX pointer.
1919         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
1920         VEC_empty macro.
1921
1922 2010-05-29  Jan Hubicka  <jh@suse.cz>
1923
1924         PR middle-end/44324
1925         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
1926
1927 2010-05-29  Richard Guenther  <rguenther@suse.de>
1928
1929         * lto-streamer.c (cached_bp): New global variable.
1930         (bitpack_create): Return the cached bitpack, if available.
1931         (bitpack_delete): Clear and cache the bitpack, if appropriate.
1932         (bp_pack_value): Remove redundant asserts.
1933
1934 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
1935
1936         PR middle-end/44306
1937         * tree-if-conv.c (is_true_predicate): New.
1938         (is_predicated): Use is_true_predicate.
1939         (add_to_predicate_list): Same.  Do not use unshare_expr.
1940         (add_to_dst_predicate_list): Same.
1941
1942 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
1943
1944         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
1945         field on edges.
1946         (predicate_bbs): Same.
1947         (clean_predicate_lists): Same.
1948         (find_phi_replacement_condition): Do not AND the predicate from
1949         edge->aux.
1950
1951 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1952
1953         PR bootstrap/44315
1954         * Makefile.in (build/gencondmd.o): Add a missing `\'.
1955
1956 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1957
1958         PR target/44261
1959         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
1960         (negdf2): Adjust expander pattern and use negdf2_slow.
1961         (negsf2): Likewise.
1962
1963 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
1964
1965         * basic-block.h (struct control_flow_graph): Move last_label_uid field
1966         up.
1967         * df.h (struct df_base_ref): Move regno field up.
1968         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
1969         * expr.h (struct separate_ops): Move location field up.
1970         * optabs.h (struct optab_d): Move libcall_basename field down.
1971         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
1972         * config/i386/i386.h (struct machine_function): Convert call_abi field
1973         into a bitfield.  Move cfa field to the end of the structure.
1974
1975 2010-05-29  Jan Hubicka  <jh@suse.cz>
1976
1977         * varpool.c (varpool_get_node): Fix lookup.
1978
1979 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
1980
1981         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
1982         RTL specific prototypes with #ifdef RTX_CODE.
1983         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
1984         * config/spu/t-spu-elf: Fix dependencies.
1985
1986         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
1987
1988 2010-05-29  Mike Stump  <mikestump@comcast.net>
1989
1990         PR bootstrap/44315
1991         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
1992         TM_H when building to avoid dependency loops.
1993
1994 2010-05-29  Jan Hubicka  <jh@suse.cz>
1995
1996         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
1997         refs and body; not the whole node for masters of materialized
1998         clones.
1999
2000 2010-05-29  Mike Stump  <mikestump@comcast.net>
2001
2002         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
2003
2004 2010-05-29  Jan Hubicka  <jh@suse.cz>
2005
2006         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
2007         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
2008         use of clone_function_name.
2009         * cgraph.h (cgraph_create_virtual_clone,
2010         cgraph_function_versioning): update prototypes.
2011         (clone_function_name): Declare.
2012         * ipa-cp.c (ipcp_insert_stage): Update call of
2013         cgraph_create_virtual_clone.
2014         * omp-low.c (create_omp_child_function_name): Use
2015         cgraph_create_virtual_clone.
2016         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
2017         (cgraph_function_versioning): Take SUFFIX argument; produce new name
2018         and make decl local.
2019
2020 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
2021
2022         * vec.h: Include statistics.h
2023         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
2024         with VEC_H.
2025
2026 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
2027
2028         * c-lex.c: Do not include c-tree.h.
2029         * c-pretty-print.c: Likewise.
2030         * c-opts.c: Likewise.
2031         * c-gimplify.c: Likewise.
2032         * c-common.c: Likewise.
2033         * c-dump.c: Likewise.  Include c-common.h.
2034
2035 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
2036
2037         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
2038         before including diagnostic-core.h.
2039         (c_cpp_error): New prototype moved from c-tree.h.
2040         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
2041         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
2042         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
2043         (c_cpp_error): Prototype moved to c-common.h.
2044         * Makefile.in: Update dependency for C_COMMON_H.
2045
2046 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
2047
2048         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
2049         * c-common.c (c_register_addr_space): Remove here.
2050         * c-decl.c (c_register_addr_space): Re-add here.
2051
2052 2010-05-28  Mike Stump  <mikestump@comcast.net>
2053
2054         * config/darwin-c.c: Remove c-tree.h include.
2055
2056 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
2057
2058         * gcc.c: Include diagnostic.h.
2059         (error_count): Remove.  All users changed to use errorcount.
2060         (programname): Remove.  All users changed to use progname.
2061         (fancy_abort, internal_error, fatal_error, error, warning, inform,
2062         fnotice): Remove.
2063         (execute): Don't include "Internal error" and bug reporting
2064         information in argument of internal_error call.
2065         (process_command): Don't increment error_count after calling
2066         perror_with_name.
2067         (input_filename): Rename to gcc_input_filename.  All users
2068         changed.
2069         (main): Call diagnostic_initialize.  Register delete_temp_files
2070         with atexit.  Use seen_error to test for errors.
2071         * gcc.h: Include diagnostic-core.h.
2072         (fatal_error, error, warning): Remove.
2073         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
2074         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
2075         (gcc.o): Update dependencies.
2076
2077 2010-05-28  Jeff Law  <law@redhat.com>
2078
2079         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
2080         functions.
2081         * ira.h (ira_bad_reload_regno): Declare
2082         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
2083
2084         * ira-color.c (update_curr_costs): Free updated hard reg costs.
2085         (ira_reassign_conflict_allocnos): Remove bogus asserts.
2086         (allocno_reload_assign): Likewise.
2087
2088 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
2089
2090         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
2091         build1_stat.
2092
2093 2010-05-28  Richard Guenther  <rguenther@suse.de>
2094
2095         PR lto/44312
2096         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
2097         Stream fixed-point constants mode.
2098         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
2099         and TYPE_PRECISION.
2100         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
2101         Stream fixed-point constants mode.
2102         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
2103         and TYPE_PRECISION.
2104
2105 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
2106
2107         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
2108         only place it was called from.
2109         (number_of_latch_executions): Do not return chrec_dont_know when the
2110         may_be_zero is a runtime condition: instead, return a COND_EXPR
2111         including the may_be_zero condition.
2112         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
2113         of nb_iterations.
2114         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
2115         COND_EXPRs.
2116
2117 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
2118
2119         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
2120         generate COND_EXPRs for degenerate_phi_result.
2121
2122 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
2123
2124         PR middle-end/44293
2125         * tree-if-conv.c (if_convertible_loop_p): Check the
2126         if-convertibility of phi nodes in non predicated BBs.
2127
2128 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
2129
2130         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
2131
2132 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
2133
2134         PR driver/15303
2135         * gcc.c (inform, warning, inform): New functions.
2136         (fatal_ice): Rename to internal_error; change cmsgid parameter to
2137         gmsgid.  All callers changed.
2138         (notice): Rename to fnotice; add parameter fp.  All callers
2139         changed.
2140         (fatal_error): Rename to fatal_signal.  All users changed.
2141         (fatal): Rename to fatal_error; change cmsgid parameter to
2142         gmsgid.  All callers changed.
2143         (process_command): Use warning instead of error for warnings.
2144         (end_going_arg): Don't use _() around argument of error.
2145         (do_spec_1): Use inform for message from %n specs.  Use warning
2146         instead of error for warnings.
2147         (main): Use inform for comparison messages.  Use warning for
2148         message about unused linker input.
2149         (error): Increment error_count.  Print "error: ".
2150         * gcc.h (fatal): Change to fatal_error.
2151         (warning): Declare.
2152         * config/darwin-driver.c (darwin_default_min_version): Use warning
2153         instead of fprintf for warnings.
2154         * cppspec.c (lang_specific_driver): Use fatal_error instead of
2155         fatal.
2156
2157 2010-05-28  Julian Brown  <julian@codesourcery.com>
2158
2159         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
2160         (*thumb2_addsi3_compare0_scratch): New.
2161         * config/arm/constraints.md (Pv): New.
2162         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
2163         for ARM mode only.
2164         (*addsi3_compare0_scratch): Likewise.
2165
2166 2010-05-28  Jan Hubicka  <jh@suse.cz>
2167
2168         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
2169         check.
2170         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
2171         only on local statics.
2172
2173 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
2174
2175         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
2176
2177 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2178
2179         PR bootstrap/44314
2180         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
2181         (OPTION_GLIBC): Define.
2182
2183 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
2184
2185         PR debug/41048
2186         * dwarf2out.c (double_int_type_size_in_bits): New function.
2187         (round_up_to_align): Change first argument and return value to
2188         double_int.
2189         (field_byte_offset): Work internally on double_ints.
2190
2191         PR target/43636
2192         * builtins.c (expand_movstr): Use a temporary pseudo instead
2193         of target even when target is not NULL and not const0_rtx, but
2194         fails movstr predicate.
2195         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
2196
2197 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
2198
2199         * final.c (rest_of_clean_state): Use %m in errors instead of
2200         strerror (errno).
2201         * gengtype.c (read_input_list, close_output_files): Use xstrerror
2202         instead of strerror.
2203         * toplev.c (process_options): Use %m in errors instead of strerror
2204         (errno).
2205         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
2206         (errno).
2207
2208 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
2209
2210         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
2211         (ix86_canonical_va_list_type): Make static.  Add declaration.
2212         (ix86_enum_va_list): Make static.  Reindent.
2213         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
2214         (ix86_canonical_va_list_type): Ditto.
2215         (ix86_enum_va_list): Ditto.
2216
2217 2010-05-28  Richard Guenther  <rguenther@suse.de>
2218
2219         * lto-wrapper.c (run_gcc): With -save-temps generate a
2220         user-visible ltrans filename.  Fixup ltrans unit numbering.
2221
2222 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
2223
2224         * c-common.c (c_common_nodes_and_builtins): Replace use
2225         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
2226         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
2227         to ix86_enum_va_list.
2228         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
2229         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
2230         (TARGET_ENUM_VA_LIST_P): Add hook description.
2231         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
2232         * target.h (gcc_target): Add enum_va_list hook.
2233
2234         PR bootstrap/44299
2235         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
2236         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
2237         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
2238
2239 2010-05-28  Alan Modra  <amodra@gmail.com>
2240
2241         PR target/44266
2242         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2243         emit_library_call machinery to set up __tls_get_addr calls.
2244
2245 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2246
2247         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
2248
2249 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
2250
2251         Revert fix for PR c++/44188
2252         * c-common.c (is_typedef_decl): Revert the moving of  this
2253         definition ...
2254         * tree.c (is_typedef_decl): ... here.
2255         (typdef_variant_p): Revert the moving of this  definition
2256         here from gcc/cp/tree.c.
2257         * c-common.h (is_typedef_decl): Revert the moving of this
2258         declaration ...
2259         * tree.h (is_typedef_decl): ... here.
2260         (typedef_variant_p): Revert the moving of this  declaration here
2261         from gcc/cp/cp-tree.h
2262         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
2263         (gen_tagged_type_die): Revert the splitting out of ...
2264         (gen_type_die_with_usage): ... this function. Revert the anonymous
2265         tagged type handling.
2266         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
2267         typedefs naming anonymous tagged types.
2268
2269 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
2270
2271         * config/rs6000/rs6000-modes.def (PSImode): Delete.
2272
2273 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
2274
2275         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
2276         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
2277         throughout.
2278         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
2279         "xer" to "ca".
2280         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
2281         XER_REGS to CA_REGS throughout.
2282         * config/rs6000/rs6000.h: Same.
2283         (ADDITIONAL_REGISTER_NAMES): Add "xer".
2284         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
2285         that mode_iterator "P" is the size for arithmetic carries as well.
2286         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
2287
2288 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
2289
2290         PR bootstrap/44255
2291         * combine.c (struct rtx_subst_pair): Define unconditionally.
2292         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
2293         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
2294         Call make_compound_operation on pair->to.
2295         (propagate_for_debug): Don't call make_compound_operation here.
2296         Always use simplify_replace_fn_rtx.
2297
2298 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
2299
2300         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
2301         * config/xtensa/xtensa.c (override_options): Check
2302           TARGET_FORCE_NO_PIC and set flag_pic.
2303         * config/xtensa/xtensa.opt: Document -mforce-no-pic
2304
2305 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
2306
2307         PR bootstrap/44299
2308         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
2309         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
2310
2311 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
2312
2313         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
2314         toplev.h.
2315         * diagnostic.c: Don't include toplev.h.
2316         (progname): Define.  Moved from toplev.c.
2317         (seen_error): New function.
2318         * diagnostic.h: Include diagnostic-core.h.
2319         (diagnostic_t, emit_diagnostic): Don't declare here.
2320         * toplev.c (progname): Move to toplev.c.
2321         (emit_debug_global_declarations, compile_file, finalize,
2322         do_compile, toplev_main): Use seen_error.
2323         * toplev.h: Include diagnostic-core.h.
2324         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
2325         internal_error, warning, warning_at, error, error_n, error_at,
2326         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
2327         verbatim, fnotice, progname): Move to diagnostic-core.h.
2328         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
2329         (expand_builtin_expect): Use seen_error.
2330         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
2331         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
2332         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
2333         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
2334         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
2335         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
2336         errorcount for errors.
2337         * c-opts.c (c_common_finish): Use seen_error.
2338         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
2339         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
2340         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
2341         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
2342         (get_coverage_counts): Use seen_error.
2343         * dwarf2out.c (dwarf2out_finish): Use seen_error.
2344         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
2345         gimplify_body): Use seen_error.
2346         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
2347         * ipa-pure-const.c (gate_pure_const): Use seen_error.
2348         * ipa-reference.c (gate_reference): Use seen_error.
2349         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
2350         * lambda-code.c: Include diagnostic-core.h instead of
2351         diagnostic.h.
2352         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
2353         * lto-compress.c: Include diagnostic-core.h instead of
2354         diagnostic.h.
2355         * lto-section-in.c: Include diagnostic-core.h instead of
2356         diagnostic.h.
2357         * lto-streamer-out.c: Include diagnostic-core.h instead of
2358         diagnostic.h.
2359         * lto-streamer.c: Include diagnostic-core.h instead of
2360         diagnostic.h.
2361         (gate_lto_out): Use seen_error.
2362         * matrix-reorg.c: Include diagnostic-core.h instead of
2363         diagnostic.h.
2364         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
2365         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
2366         (gate_expand_omp, lower_omp_1): Use seen_error.
2367         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
2368         (rest_of_decl_compilation, rest_of_type_compilation,
2369         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
2370         * tree-cfg.c (label_to_block_fn): Use seen_error.
2371         * tree-inline.c (optimize_inline_calls): Use seen_error.
2372         * tree-mudflap.c (mudflap_finish_file): Use
2373         seen_error.
2374         * tree-optimize.c (gate_all_optimizations,
2375         gate_all_early_local_passes, gate_all_early_optimizations): Use
2376         seen_error.
2377         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
2378         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
2379         (varpool_remove_unreferenced_decls,
2380         varpool_assemble_pending_decls): Use seen_error.
2381         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
2382         (TOPLEV_H, DIAGNOSTIC_H): Update.
2383         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
2384         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
2385         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
2386         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
2387         coverage.o, lambda-code.o): Update dependencies.
2388
2389 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
2390
2391         PR c++/44188
2392         * c-common.c (is_typedef_decl): Move this definition ...
2393         * tree.c (is_typedef_decl): ... here.
2394         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2395         * c-common.h (is_typedef_decl): Move this declaration ...
2396         * tree.h (is_typedef_decl): ... here.
2397         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
2398         * dwarf2out.c (is_naming_typedef_decl): New function.
2399         (gen_tagged_type_die): Split out of ...
2400         (gen_type_die_with_usage): ... this function. When an anonymous
2401         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
2402         is emitted for the typedef.
2403         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
2404         anonymous tagged types.
2405
2406 2010-05-27  Jason Merrill  <jason@redhat.com>
2407
2408         * print-tree.c (debug_vec_tree): New fn.
2409         (print_vec_tree): New fn.
2410         * tree.h: Declare them.
2411         * gdbinit.in (pvt): New command.
2412
2413         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
2414
2415         * gdbinit.in (pdd): New command.
2416
2417 2010-05-27  Jan Hubicka  <jh@suse.cz>
2418
2419         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
2420         (update_caller_keys): Return early if there are no callers;
2421         only update fibheap when decresing the key.
2422         (update_callee_keys): Avoid recursion.
2423         (decide_inlining_of_small_functions): When badness does not match;
2424         re-insert into fibheap.
2425
2426 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
2427
2428         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
2429         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
2430         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
2431         (ALL_HOST_OBJS): Now a union of the above two.
2432         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
2433         all files in ALL_HOST_FRONTEND_OBJS.
2434         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
2435
2436         * c-common.c: Pretend to be a backend file by undefining
2437         IN_GCC_FRONTEND (still need rtl.h here).
2438
2439 2010-05-27  Jan Hubicka  <jh@suse.cz>
2440
2441         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
2442         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
2443
2444 2010-05-27  Jan Hubicka  <jh@suse.cz>
2445
2446         * sched-ebb.c: Rename struct deps to struct deps_desc.
2447         * ddg.c: Likewise.
2448         * sel-sched-ir.c: Likewise.
2449         * sched-deps.c: Likewise.
2450         * sched-int.h: Likewise.
2451         * sched-rgn.c: Likewise.
2452
2453 2010-05-27  Jon Beniston <jon@beniston.com>
2454
2455         PR 43726
2456         * config/lm32/lm32.h: Remove definition of
2457         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
2458
2459 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2460
2461         PR lto/44230
2462         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
2463
2464 2010-05-27  Richard Guenther  <rguenther@suse.de>
2465
2466         PR tree-optimization/44284
2467         * tree-vect-stmts.c (vectorizable_assignment): Handle
2468         sign-changing conversions as simple copy.
2469
2470 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2471
2472         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
2473         Bionic C library.
2474         (__gthread_active_p): Check for pthread_create if compiling against
2475         Bionic C library.
2476
2477 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2478
2479         Support compilation for Android platform.  Reimplement -mandroid.
2480
2481         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
2482         (*android*): Set ANDROID_DEFAULT.
2483         (arm*-*-linux*): Include linux-android.h.
2484         (arm*-*-eabi*): Don't include previous -mandroid implementation.
2485         * config/arm/eabi.h: Remove, move Android-specific parts ...
2486         * config/linux-android.h: ... here.  New file.
2487         * config/arm/eabi.opt: Rename to ...
2488         * config/linux-android.opt: ... this.
2489         (mandroid): Allow -mno-android option.  Initialize based on
2490         ANDROID_DEFAULT.
2491         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
2492         Move logic to corresponding LINUX_TARGET_* macros.
2493         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
2494         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
2495         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
2496         Android definitions.
2497         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
2498         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
2499         Document.
2500
2501 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2502
2503         Add support for Bionic C library
2504
2505         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
2506         macro.
2507         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
2508         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
2509
2510         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
2511         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
2512         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
2513         to support multiple C libraries.  Handle Bionic.
2514         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
2515         (BIONIC_DYNAMIC_LINKER64): Define.
2516         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
2517         Update.
2518         (TARGET_HAS_SINCOS): Enable for Bionic.
2519
2520         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
2521         the last option specified on command line take effect.
2522         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
2523         (mbionic): New.
2524         (mglibc, muclibc): Update.
2525
2526         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
2527         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
2528         DEFAULT_LIBC.
2529
2530         * doc/invoke.texi (-mglibc, -muclibc): Update.
2531         (-mbionic): Document.
2532
2533 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2534
2535         * c-common.h (c_register_addr_space): Add prototype.
2536         (ADDR_SPACE_KEYWORD): Remove.
2537         * c-common.c (c_register_addr_space): New function.
2538         (c_addr_space_name): Reimplement.
2539         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
2540
2541         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
2542         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
2543
2544         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
2545         Remove TARGET_ADDR_SPACE_KEYWORDS.
2546
2547 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
2548
2549         * input.c: New file.
2550         * input.h (main_input_filename): Move declaration to toplev.h.
2551         * toplev.c (input_location, line_table): Move to input.c
2552         * toplev.h (main_input_filename): Move declaration from input.h.
2553         * tree.c (expand_location): Move to input.c.
2554         * Makefile.in (OBJS-common): Add input.o.
2555         (input.o): Add dependencies.
2556
2557 2010-05-27  Richard Guenther  <rguenther@suse.de>
2558
2559         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
2560         for non-existant files.
2561         (fork_execute): Mark args_name file as deleted.
2562
2563 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
2564
2565         PR bootstrp/44287
2566         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
2567         (narrow_signed_type): Likewise.
2568
2569 2010-05-26  Jan Hubicka  <jh@suse.cz>
2570
2571         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
2572         edge only when checking is enabled; check using former_clone_of;
2573         check inline clones too.
2574         (cgraph_materialize_clone): Record former_clone_of pointer.
2575         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
2576         combining redirections; dump args_to_skip bitmap
2577         (cgraph_materialize_all_clones): Do no redirection here.
2578         * ipa-inline.c (inline_transform): Do redirection here.
2579         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
2580         cheking only).
2581
2582 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
2583
2584         * config/avr/avr-c.c: Do not include regs.h.
2585         Include cpplib.h for cpp_define and tree.h for c-common.h.
2586         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
2587         * config/avr/t-avr: Fix dependencies for avr-c.o.
2588
2589 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
2590
2591         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
2592         string instead of SYMBOL_REF rtx.
2593         * rtl.h (set_stack_check_libfunc): Move prototype from here...
2594         * libfuncs.h: ...to here.  Adjust for explow.c change.
2595
2596 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
2597
2598         * pretty-print.c: Don't include ggc.h.
2599         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
2600         (identifier_to_locale): Use them for allocation.
2601         * pretty-print.h (identifier_to_locale_alloc,
2602         identifier_to_locale_free): Declare.
2603         * toplev.c (alloc_for_identifier_to_locale): New.
2604         (general_init): Set identifier_to_locale_alloc and
2605         identifier_to_locale_free.
2606         * Makefile.in (pretty-print.o): Update dependencies.
2607
2608 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2609
2610         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
2611         pointer types if they have different alignment or mode.
2612
2613 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
2614
2615         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2616         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2617         * config/sparc/sparc-protos.h (function_value): Remove declaration.
2618         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
2619         sparc_function_value_regno_p): New functions.
2620         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2621         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2622         (function_value): Rename to...
2623         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
2624         argument to 'outgoing'.
2625         (function_arg_record_value, function_arg_union_value,
2626         function_arg_vector_value): Update comment.
2627
2628 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2629
2630         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
2631         (fde_needed_for_eh_p): New predicate.
2632         (output_call_frame_info): Use it throughout to decide whether FDEs
2633         are needed for EH purpose.
2634         (dwarf2out_begin_prologue): Reorder assignments.
2635
2636 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
2637
2638         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
2639         special case loop->header.
2640         (is_predicated): New.
2641         (if_convertible_loop_p): Call it.
2642
2643 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
2644
2645         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
2646         iterator in parameter.  Do not generate code during the analysis.
2647         (tree_if_convert_cond_stmt): Removed.
2648         (tree_if_convert_stmt): Removed.
2649         (predicate_bbs): New.
2650         (if_convertible_loop_p): Call predicate_bbs.
2651         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
2652         now contains all the analysis part.
2653
2654 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
2655
2656         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
2657         statements in the analysis part.
2658         (tree_if_convert_stmt): Update comment.
2659         (remove_conditions_and_labels): New.
2660         (combine_blocks): Call remove_conditions_and_labels.
2661         (tree_if_conversion): Update comment.
2662
2663 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
2664
2665         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
2666         than 2 predecessors or more than 2 successors.
2667
2668 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
2669
2670         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
2671         of loops in which the data dependence analysis fails.
2672
2673 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
2674
2675         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
2676         CDI_POST_DOMINATORS.
2677         (tree_if_conversion): Same.
2678
2679 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
2680
2681         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
2682
2683 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
2684
2685         * tree-if-conv.c: Update copyright years.  Fix comments.
2686         Fix indentation.
2687
2688 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
2689
2690         * builtin-types.def (BT_INT128): New primitive type.
2691         (BT_UINT128): Likewise.
2692         * c-common.c (c_common_r): Add __int128 keyword.
2693         (c_common_type_for_size): Handle __int128.
2694         (c_common_type_for_mode): Likewise.
2695         (c_common_signed_or_unsigned_type): Likewise.
2696         (c_common_nodes_and_builtins): Add builtin type
2697         if target supports 128-bit integer scalar.
2698         * c-common.h (enum rid): Add RID_INT128.
2699         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
2700         if target supports 128-bit integer scalar.
2701         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
2702         (finish_declspecs): Likewise.
2703         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
2704         (c_token_starts_declspecs): Likewise.
2705         (c_parser_declspecs): Likewise.
2706         (c_parser_attributes): Likewise.
2707         (c_parser_objc_selector): Likewise.
2708         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
2709         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
2710         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
2711         * tree.c (make_or_reuse_type): Likewise.
2712         (make_unsigned_type): Likewise.
2713         (build_common_tree_nodes_2): Likewise.
2714         * tree.h (enum integer_type_kind): Add itk_int128 and
2715         itk_unsigned_int128.
2716         (int128_integer_type_node): New define.
2717         (int128_unsigned_type_node): New define.
2718         * doc/extend.texi: Add documentation about __int128 type.
2719
2720 2010-05-26  Richard Guenther  <rguenther@suse.de>
2721
2722         * tree-ssa-sccvn.c (copy_nary): Adjust.
2723         (copy_phis): Rename to ...
2724         (copy_phi): ... this.  Adjust.
2725         (copy_references): Rename to ...
2726         (copy_reference): ... this.  Adjust.
2727         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
2728         result into the valid table.
2729
2730 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
2731
2732         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
2733         insn-config.h, insn-codes.h, recog.h, and optabs.h.
2734
2735 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2736
2737         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
2738
2739 2010-05-26  Richard Guenther  <rguenther@suse.de>
2740
2741         * opts.c (common_handle_option): Handle OPT_Ofast.
2742
2743 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
2744
2745         * diagnostic.c: Don't include opts.h.
2746         (permissive_error_option): Define.
2747         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
2748         for classify_diagnostic.  Don't use memset for
2749         classify_diagnostic.  Initialize new and recently added fields.
2750         (diagnostic_classify_diagnostic): Use context->n_opts instead of
2751         N_OPTS.
2752         (diagnostic_report_diagnostic): Pass context parameter to
2753         diagnostic_report_warnings_p.  Use option_enabled and option_name
2754         hooks from context.
2755         (emit_diagnostic): Use permissive_error_option.
2756         (permerror): Likewise.
2757         * diagnostic.h: Don't include options.h.
2758         (struct diagnostic_context): Add n_opts, opt_permissive,
2759         inhibit_warnings, warn_system_headers, option_enabled and
2760         option_name fields.  Change classify_diagnostic to a pointer.
2761         * opts-diagnostic.h: New file.
2762         * opts.c: Include opts-diagnostic.h.
2763         (common_handle_option): Set global_dc fields for -Wfatal-errors,
2764         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
2765         (option_name): New function.
2766         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
2767         (c_common_handle_option): Set global_dc->permissive for
2768         -fpermissive.
2769         * c-common.c (c_cpp_error): Save and restore
2770         global_dc->warn_system_headers, not variable warn_system_headers.
2771         * toplev.c: Include opts-diagnostic.h.
2772         (general_init): Update call to diagnostic_initialize.  Set
2773         global_dc->show_column, global_dc->option_enabled and
2774         global_dc->option_name.
2775         (process_options): Don't set global_dc fields here.
2776         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
2777         (diagnostic.o, opts.o, toplev.o): Update dependencies.
2778
2779 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
2780
2781         * config/picochip/picochip.md (movsi): Split a movsi from a
2782         const after reload.
2783
2784 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2785
2786         * ggc-zone.c: Update copyright year.
2787         (poison_region): Mark memory for Valgrind as undefined before
2788         memset () call and inaccessible afterwards.
2789         (ggc_pch_total_size): Change type of i to int.
2790
2791 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2792
2793         * ggc-common.c (ggc_free_overhead): Allow empty slot.
2794
2795 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2796
2797         * ggc-common.c: Update copyright year.
2798         (ggc_rlimit_bound): Remove prototype.  Compile only if
2799         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
2800         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
2801         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
2802         (ggc_min_heapsize_heuristic): Likewise.
2803
2804 2010-05-26  Richard Guenther  <rguenther@suse.de>
2805
2806         PR rtl-optimization/44164
2807         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
2808         no-common access-path disambiguation.
2809         (indirect_ref_may_alias_decl_p): Adjust.
2810         (indirect_refs_may_alias_p): Likewise.
2811         (refs_may_alias_p_1): Likewise.
2812
2813 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
2814
2815         * c-typeck.c: Do not include expr.h.
2816
2817 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
2818
2819         * rtl.h (decl_default_tls_model): Move prototype from here...
2820         * output.h: ...to here.
2821         * c-decl.c: Do not include rtl.h.
2822         * c-pragma.c: Likewise.
2823         * c-parser.c: Likewise.
2824         * c-gimplify.c: Likewise.  And also not hard-reg-set.
2825         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
2826         FIXME note for it.  Add a FIXME note for expr.h.
2827         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
2828         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
2829         defined.
2830
2831 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
2832
2833         PR target/44199
2834         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
2835         or total_size is larger than red zone size for non-V4 ABI, emit a
2836         stack_tie resp. frame_tie insn before stack pointer restore.
2837         * config/rs6000/rs6000.md (frame_tie): New insn.
2838
2839 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2840
2841         * function.h (struct function): Add can_throw_non_call_exceptions bit.
2842         * lto-streamer-in.c (input_function): Stream it in.
2843         * lto-streamer-out.c (output_function): Stream it out.
2844         * function.c (allocate_struct_function): Set it.
2845         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
2846         for flag_non_call_exceptions.
2847         * cfgbuild.c (control_flow_insn_p): Likewise.
2848         (make_edges): Likewise.
2849         * cfgexpand.c (expand_stack_alignment): Likewise.
2850         * combine.c (distribute_notes): Likewise.
2851         * cse.c (cse_extended_basic_block): Likewise.
2852         * except.c (insn_could_throw_p): Likewise.
2853         * gcse.c (simple_mem): Likewise.
2854         * ipa-pure-const.c (check_call): Likewise.
2855         (check_stmt ): Likewise.
2856         * lower-subreg.c (lower-subreg.c): Likewise.
2857         * optabs.c (emit_libcall_block): Likewise.
2858         (prepare_cmp_insn): Likewise.
2859         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
2860         * postreload.c (rest_of_handle_postreload): Likewise.
2861         * reload1.c (reload_as_needed): Likewise.
2862         (emit_input_reload_insns): Likewise.
2863         (emit_output_reload_insns): Likewise.
2864         (fixup_abnormal_edges): Likewise.
2865         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
2866         * store-motion.c (find_moveable_store): Likewise.
2867         * tree-eh.c (stmt_could_throw_p): Likewise.
2868         (tree_could_throw_p): Likewise.
2869         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2870         * config/arm/arm.c (arm_expand_prologue): Likewise.
2871         (thumb1_expand_prologue): Likewise.
2872         * config/rx/rx.md (cbranchsf4): Likewise.
2873         (cmpsf): Likewise.
2874         * config/s390/s390.c (s390_emit_prologue): Likewise.
2875         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
2876         (inline_forbidden_into_p): New predicate.
2877         (expand_call_inline): Use it to forbid inlining.
2878         (tree_can_inline_p): Likewise.
2879
2880 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2881
2882         * config/i386/i386-c.c: Do not include rtl.h.
2883         * config/i386/t-i386: Update dependencies.
2884
2885 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2886
2887         * attribs.c: Do not include rtl.h.
2888         * Makefile.in: Update dependencies.
2889
2890 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
2891
2892         * double-int.h (double_int_and): New.
2893         * combine.c (try_combine): Clean up, use double_int_* and
2894         immed_double_int_const functions.
2895
2896 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2897
2898         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
2899         stderr to /dev/null instead of grep -q.
2900         * configure: Regenerate.
2901
2902 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
2903
2904         * Makefile.in (EXCEPT_H): Fix typo.
2905
2906 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
2907
2908         * ira-build.c (update_conflict_hard_reg_costs): New.
2909         (ira_build): Call update_conflict_hard_reg_costs.
2910
2911 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
2912
2913         PR debug/41371
2914         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
2915         ENABLE_CHECKING.
2916         (intersect_loc_chains): Walk the s2var's loc_chain together
2917         with s1node chain as long as the locations are equal, don't
2918         call find_loc_in_1pdv in that case.
2919
2920         PR debug/42801
2921         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
2922         (copy_bind_expr): ... instead of here.
2923         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
2924         if the block hasn't been remapped.
2925         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
2926         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
2927
2928 2010-05-25  Richard Guenther  <rguenther@suse.de>
2929
2930         PR middle-end/44069
2931         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
2932         out-of-bounds array accesses.
2933
2934 2010-05-25  Richard Guenther  <rguenther@suse.de>
2935
2936         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
2937         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
2938         (run_gcc): Re-organize to make cleanup easier.
2939
2940 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2941
2942         * config/s390/s390.c (optimization_options): Fix and move the
2943         flag_prefetch_loop_arrays override ...
2944         (override_options): ... here.
2945
2946 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
2947
2948         * diagnostic.c: Don't include plugin.h.
2949         (diagnostic_report_diagnostic): Don't handle plugins specially
2950         here.  Pass context to internal_error callback.
2951         * diagnostic.h (struct diagnostic_context): Add context parameter
2952         to internal_error callback.
2953         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
2954         * plugin.h (struct diagnostic_context): Declare.
2955         (warn_if_plugins, plugins_internal_error_function): Declare.
2956         * toplev.c (general_init): Set global_dc->internal_error.
2957         * Makefile.in (diagnostic.o): Update dependencies.
2958
2959 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
2960
2961         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
2962         * config/rs6000/t-darwin64: New.
2963         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
2964         build crt2.
2965
2966 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
2967
2968         PR 44203
2969         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
2970         match the original (and intended) behaviour before r159557.  This
2971         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
2972         in two ways.
2973
2974 2010-05-25  Richard Guenther  <rguenther@suse.de>
2975
2976         * doc/invoke.texi: Document -Ofast.
2977         * target.h (struct gcc_target): Add handle_ofast.
2978         * target-def.h (TARGET_HANDLE_OFAST): Add.
2979         (TARGET_INITIALIZER): Adjust.
2980         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
2981         * common.opt (Ofast): Add.
2982
2983 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
2984
2985         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
2986         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
2987
2988 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
2989
2990         PR target/43610
2991         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
2992         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
2993         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
2994         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
2995
2996 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
2997
2998         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
2999         DW_OP_minus with negated offset instead of DW_OP_plus.
3000         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
3001
3002 2010-05-25  Wei Guozhi  <carrot@google.com>
3003
3004         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
3005         tst instruction and a new alternative.
3006         * config/arm/constraints.md (Pu): New constraint.
3007
3008 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
3009
3010         * function.c (assign_stack_local_1): Initialize variable
3011         to avoid warning when bootstrapping at -O3.
3012
3013 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
3014
3015         * configure.ac (all_lang_makefiles): Remove everything related to it.
3016         * configure: Regenerate.
3017         * Makefile.in: Fix reference to ada Make-lang.in.
3018         Remove support for LANG_MAKEFILES.
3019
3020 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
3021             Sandra Loosemore  <sandra@codesourcery.com>
3022
3023         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
3024         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
3025         description.  Add arm_neon_fp16_ok.
3026         (Add Options): Add arm_neon and arm_neon_fp16.
3027
3028 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
3029
3030         * diagnostic.c: Don't include flags.h.
3031         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
3032         context parameters.  Check flags in the context passed as a parameter.
3033         (diagnostic_build_prefix): Add context parameter.  Check
3034         show_column flag in context.
3035         (diagnostic_action_after_output): Check fatal_errors flag in context.
3036         (diagnostic_report_current_module): Check show_column flag in context.
3037         (default_diagnostic_starter): Update call to
3038         diagnostic_build_prefix.
3039         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
3040         (emit_diagnostic): Pass context to permissive_error_kind.
3041         (permerror): Pass context to permissive_error_kind.
3042         * diagnostic.h (struct diagnostic_context): Add show_column,
3043         pedantic_errors, permissive and fatal_errors fields.
3044         (diagnostic_build_prefix): Update prototype.
3045         * langhooks.c
3046         * toplev.c (process_options): Set flags in global_dc from
3047         flag_show_column, flag_pedantic_errors, flag_permissive,
3048         flag_fatal_errors.
3049         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
3050         to diagnostic_build_prefix.
3051         * Makefile.in (diagnostic.o): Update dependencies.
3052
3053 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3054
3055         * config/i386/ia32intrin.h (__crc32q): Define only if
3056         __SSE4_2__ is defined.
3057
3058 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
3059
3060         PR target/44132
3061         PR middle-end/43602
3062         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
3063         DECL_VISIBILITY_SPECIFIED.
3064         (emutls_decl): Set DECL_PRESERVE_P and copy
3065         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
3066         (emutls_finalize_control_var): New callback.
3067         (emutls_finish): Finalize emutls control variables.
3068         * toplev.c (compile_file): Move the call to emutls_finish ()
3069         before varpool_assemble_pending_decls ().
3070
3071 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
3072
3073         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
3074         added to the preprocessor condition.
3075
3076 2010-05-24  Paul Brook  <paul@codesourcery.com>
3077
3078         * gengtype-lex.l: Add HARD_REG_SET.
3079         * expr.c (expand_expr_real_1): Record writes to hard registers.
3080         * function.c (rtl_data): Add asm_clobbers.
3081         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
3082         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
3083         Use crtl->asm_clobbers.
3084
3085 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3086
3087         * doc/makefile.texi (Makefile): Mention stages 'profile'
3088         and 'feedback' for profiledbootstrap.
3089
3090 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3091
3092         PR target/44245
3093         * config/i386/i386.c (def_builtin): Properly check
3094         OPTION_MASK_ISA_64BIT.
3095
3096 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
3097
3098         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
3099         typedefs with different but compatible types.  Allow duplicate
3100         typedefs with the same type except for pedantic non-C1X, but give
3101         warning for variably modified types.
3102         * c-typeck.c (tagged_types_tu_compatible_p,
3103         function_types_compatible_p, type_lists_compatible_p,
3104         comptypes_internal): Add parameter different_types_p; set
3105         *different_types_p for different but compatible types.  All
3106         callers changed.
3107         (comptypes_check_different_types): New.
3108         * c-tree.h (comptypes_check_different_types): Declare.
3109
3110 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
3111
3112         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
3113         * jump.c: Include basic-block.h.
3114         * profile.c: Likewise.
3115         * tree-profile.c: Likewise.
3116         * coverage.c: Likewise.
3117         * basic-block.h (optimize_function_for_size_p): Move to function.h.
3118         (optimize_function_for_speed_p): Likewise.
3119         * function.h (optimize_function_for_size_p,
3120         optimize_function_for_speed_p): Moved here from basic-block.h.
3121         * Makefile.in: Update dependencies.
3122
3123 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3124
3125         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
3126         before calling make; allow override through $MAKE.
3127         * doc/invoke.texi (Optimize Options): Document override.
3128
3129 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
3130
3131         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
3132         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3133         (rs6000_mode_dependent_address_ptr): Make static.
3134         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3135         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
3136         Remove.
3137
3138 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
3139
3140         PR target/43869
3141         * config/i386/i386.c: Make sure that the correct regparm is passed.
3142
3143 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
3144
3145         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
3146         * sbitmap.c: ...to here to internalize sbitmap element access.
3147         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
3148         Explain why basic-block.h is included.
3149         * function.h: Include tm.h for CUMULATIVE_ARGS.
3150         * Makefile.in: Update dependencies.
3151
3152 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
3153
3154         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
3155         New core types.
3156         * sbitmap.h (struct sbitmap_def): Do not typedef here.
3157         * sbitmap.c: Include sbitmap.h.
3158         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
3159         hard-reg-set.h.  Split everything related to regsets out from here...
3160         * regset.h: ...to here.  New file.
3161         * df.h: Include regset.h and sbitmap.h.
3162         * tree-flow.h: Likewise.
3163         * cfgloop.h: Likewise.
3164         * except.h: Do not include sbitmap.h.  Include hashtab.h.
3165         * cgraph.h: Include vec.h and function.h.
3166         * reload.h (struct insn_chain): Change types of live_throughout
3167         and dead_or_set from regset_head to bitmap_head.
3168         (compute_use_by_pseudos): Be defined also if regset.h is not included.
3169         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
3170         spilled_regs from regset_head to bitmap_head to avoid dependency
3171         in regset.h.
3172         * sel-sched-ir.h: Include regset.h.
3173         * reload.c: Include df.h before reload.h.
3174         * caller-save.c: Likewise.
3175         * reload1.c: Likewise.
3176         * ira.c: Likewise.
3177         (mark_elimination): Update type of r to bitmap, consistent with
3178         DF_LR_IN.
3179         * dominance.c: Include bitmap.h.
3180         * modulo-sched.c: Include df.h.
3181         * cfganal.c: Include bitmap.h and sbitmap.h.
3182         * cfgbuild.c: Include sbitmap.h.
3183         * lcm.c: Include sbitmap.h.
3184         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
3185         * domwalk.c: Include sbitmap.h, exclude ggc.h.
3186         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
3187         * cselib.c: Include bitmap.h.
3188         * tree-optimize.c: Include regset.h.
3189         * stmt.c: Include bitmap.h.
3190         * Makefile.in: Update dependencies.
3191
3192 2010-05-22  Jan Hubicka  <jh@suse.cz>
3193
3194         * cgraph.h (struct varpool_node): Add same_comdat_group.
3195         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
3196         pointer.
3197         (output_varpool): Update call of lto_output_varpool_node.
3198         (input_varpool): Read same_comdat_group pointer.
3199         (input_varpool_1): Fixup same_comdat_group pointer.
3200         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
3201         group is needed, all are.
3202         * varpool.c (varpool_remove_node): Remove node from same comdat group
3203         linklist too.
3204         (varpool_analyze_pending_decls): Walk same comdat groups.
3205
3206 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
3207
3208         * rtl.h (union rtunion_def): Remove rt_bit member.
3209         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
3210         * print-rtl (print_rtx): Do not print the member.
3211         * gengtype.c (adjust_field_rtx_def): Do not handle it.
3212         * gengenrtl.c (type_from_format): Likewise.
3213         (accessor_from_format): Likewise.
3214
3215 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
3216
3217         * dbgcnt.c: Include toplev.h instead of errors.h.
3218         * ira-emit.c: Don't include errors.h.
3219         * ira.c: Include toplev.h instead of errors.h.
3220         * lto-compress.c: Include toplev.h instead of errors.h.
3221         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
3222         ira.o, dbgcnt.o): Update dependencies.
3223
3224 2010-05-22  Richard Guenther  <rguenther@suse.de>
3225
3226         * gimple.c (gimple_types_compatible_p): Check type qualifications
3227         before merging pointer to complete and pointer to incomplete type.
3228         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
3229         we use our own resolution algorithm.  The gold linker plugin
3230         doesn't do the job we want it to do here.
3231
3232 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
3233
3234         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3235         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3236         (sparc_mode_dependent_address_p): New function.
3237
3238 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
3239
3240         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
3241
3242         * timevar.c: Do not include any core headers.
3243         (timevar_print): De-i18n-ize.
3244         (print_time): Likewise.
3245         * timevar.h (timevar_push, timevar_pop): Make inline functions.
3246
3247 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
3248
3249         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
3250         langhooks-def.h.
3251         (diagnostic_initialize): Initialize x_data not last_function.
3252         (diagnostic_report_current_function): Move to tree-diagnostic.c.
3253         (default_diagnostic_starter): Call
3254         diagnostic_report_current_module not
3255         diagnostic_report_current_function.
3256         (diagnostic_report_diagnostic): Initialize x_data not
3257         abstract_origin.
3258         (verbatim): Likewise.
3259         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
3260         x_data.
3261         (struct diagnostic_context): Change last_function to x_data.
3262         (diagnostic_auxiliary_data): Replace with
3263         diagnostic_context_auxiliary_data and
3264         diagnostic_info_auxiliary_data.
3265         (diagnostic_last_function_changed, diagnostic_set_last_function,
3266         diagnostic_report_current_function): Move to tree-diagnostic.h.
3267         (print_declaration, dump_generic_node, print_generic_stmt,
3268         print_generic_stmt_indented, print_generic_expr,
3269         print_generic_decl, debug_c_tree, dump_omp_clauses,
3270         print_call_name, debug_generic_expr, debug_generic_stmt,
3271         debug_tree_chain, default_tree_printer): Move to
3272         tree-pretty-print.h.
3273         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
3274         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
3275         gimple-pretty-print.h.
3276         * pretty-print.c: Don't include tree.h
3277         (pp_base_format): Don't handle %K here.
3278         (pp_base_tree_identifier): Move to tree-pretty-print.c.
3279         * pretty-print.h (text_info): Change abstract_origin to x_data.
3280         (pp_tree_identifier, pp_unsupported_tree,
3281         pp_base_tree_identifier): Move to tree-pretty-print.h.
3282         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
3283         tree-pretty-print.h: New files.
3284         * tree-pretty-print.c: Include tree-pretty-print.h.
3285         (percent_K_format): New.  Moved from pretty-print.c.
3286         (pp_base_tree_identifier): Move from pretty-print.c.
3287         * c-objc-common.c: Include tree-pretty-print.h.
3288         (c_tree_printer): Handle %K here.
3289         * langhooks.c: Include tree-diagnostic.h.
3290         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
3291         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
3292         (default_tree_printer): Handle %K using percent_K_format.
3293         (general_init): Use default_tree_diagnostic_starter.
3294         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
3295         (free_lang_data): Use default_tree_diagnostic_starter.
3296         * c-pretty-print.c: Include tree-pretty-print.h.
3297         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3298         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3299         * dwarf2out.c: Include tree-pretty-print.h.
3300         * except.c: Include tree-pretty-print.h.
3301         * gimple-pretty-print.c: Include tree-pretty-print.h and
3302         gimple-pretty-print.h.
3303         * gimplify.c: Include tree-pretty-print.h.
3304         * graphite-poly.c: Include tree-pretty-print.h and
3305         gimple-pretty-print.h.
3306         * ipa-cp.c: Include tree-pretty-print.h.
3307         * ipa-inline.c: Include gimple-pretty-print.h.
3308         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3309         * ipa-pure-const.c: Include gimple-pretty-print.h.
3310         * ipa-struct-reorg.c: Include tree-pretty-print.h and
3311         gimple-pretty-print.h.
3312         * ipa-type-escape.c: Include tree-pretty-print.h.
3313         * print-rtl.c: Include tree-pretty-print.h.
3314         * print-tree.c: Include gimple-pretty-print.h.
3315         * sese.c: Include tree-pretty-print.h.
3316         * tree-affine.c: Include tree-pretty-print.h.
3317         * tree-browser.c: Include tree-pretty-print.h.
3318         * tree-call-cdce.c: Include gimple-pretty-print.h.
3319         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3320         * tree-chrec.c: Include tree-pretty-print.h.
3321         * tree-data-ref.c: Include tree-pretty-print.h and
3322         gimple-pretty-print.h.
3323         * tree-dfa.c: Include tree-pretty-print.h.
3324         * tree-if-conv.c: Include tree-pretty-print.h and
3325         gimple-pretty-print.h.
3326         * tree-inline.c: Include tree-pretty-print.h.
3327         * tree-into-ssa.c: Include tree-pretty-print.h and
3328         gimple-pretty-print.h.
3329         * tree-nrv.c: Include tree-pretty-print.h.
3330         * tree-object-size.c: Include tree-pretty-print.h and
3331         gimple-pretty-print.h.
3332         * tree-outof-ssa.c: Include tree-pretty-print.h and
3333         gimple-pretty-print.h.
3334         * tree-parloops.c: Include tree-pretty-print.h and
3335         gimple-pretty-print.h.
3336         * tree-predcom.c: Include tree-pretty-print.h and
3337         gimple-pretty-print.h.
3338         * tree-scalar-evolution.c: Include tree-pretty-print.h and
3339         gimple-pretty-print.h.
3340         * tree-sra.c: Include tree-pretty-print.h.
3341         * tree-ssa-address.c: Include tree-pretty-print.h.
3342         * tree-ssa-alias.c: Include tree-pretty-print.h.
3343         * tree-ssa-ccp.c: Include tree-pretty-print.h and
3344         gimple-pretty-print.h.
3345         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
3346         * tree-ssa-copy.c: Include tree-pretty-print.h and
3347         gimple-pretty-print.h.
3348         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
3349         * tree-ssa-dce.c: Include tree-pretty-print.h and
3350         gimple-pretty-print.h.
3351         * tree-ssa-dom.c: Include tree-pretty-print.h and
3352         gimple-pretty-print.h.
3353         * tree-ssa-dse.c: Include gimple-pretty-print.h.
3354         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
3355         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
3356         * tree-ssa-live.c: Include tree-pretty-print.h and
3357         gimple-pretty-print.h.
3358         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
3359         gimple-pretty-print.h.
3360         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
3361         gimple-pretty-print.h.
3362         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
3363         gimple-pretty-print.h.
3364         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
3365         gimple-pretty-print.h.
3366         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
3367         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
3368         * tree-ssa-operands.c: Include tree-pretty-print.h and
3369         gimple-pretty-print.h.
3370         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
3371         gimple-pretty-print.h.
3372         * tree-ssa-pre.c: Include tree-pretty-print.h and
3373         gimple-pretty-print.h.
3374         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
3375         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
3376         gimple-pretty-print.h.
3377         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
3378         gimple-pretty-print.h.
3379         * tree-ssa-sink.c: Include gimple-pretty-print.h.
3380         * tree-ssa-ter.c: Include tree-pretty-print.h and
3381         gimple-pretty-print.h.
3382         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
3383         * tree-ssa.c: Include tree-pretty-print.h and
3384         gimple-pretty-print.h.
3385         * tree-stdarg.c: Include gimple-pretty-print.h.
3386         * tree-switch-conversion.c: Include gimple-pretty-print.h.
3387         * tree-tailcall.c: Include tree-pretty-print.h and
3388         gimple-pretty-print.h.
3389         * tree-vect-data-refs.c: Include tree-pretty-print.h and
3390         gimple-pretty-print.h.
3391         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
3392         gimple-pretty-print.h.
3393         * tree-vect-loop.c: Include tree-pretty-print.h and
3394         gimple-pretty-print.h.
3395         * tree-vect-patterns.c: Include gimple-pretty-print.h.
3396         * tree-vect-slp.c: Include tree-pretty-print.h and
3397         gimple-pretty-print.h.
3398         * tree-vect-stmts.c: Include tree-pretty-print.h and
3399         gimple-pretty-print.h.
3400         * tree-vectorizer.c: Include tree-pretty-print.h.
3401         * tree-vrp.c: Include tree-pretty-print.h and
3402         gimple-pretty-print.h.
3403         * value-prof.c: Include tree-pretty-print.h and
3404         gimple-pretty-print.h.
3405         * var-tracking.c: Include tree-pretty-print.h.
3406         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
3407         (tree-diagnostic.o): New dependencies.
3408         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
3409         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
3410         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
3411         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
3412         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
3413         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
3414         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
3415         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
3416         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
3417         tree-ssa-address.o, tree-ssa-loop-niter.o,
3418         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
3419         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
3420         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
3421         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
3422         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
3423         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
3424         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
3425         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
3426         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
3427         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
3428         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
3429         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
3430         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
3431         tree-switch-conversion.o, var-tracking.o, value-prof.o,
3432         cfgexpand.o, pretty-print.o): Update dependencies.
3433
3434 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
3435
3436         * tree-ssa-structalias.c: Remove tm_p.h from include.
3437
3438 2010-05-21  Jeff Law  <law@redhat.com>
3439
3440         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
3441
3442 2010-05-21  Jason Merrill  <jason@redhat.com>
3443
3444         * tree-eh.c (cleanup_is_dead_in): New.
3445         (lower_try_finally): Don't generate a dead cleanup region.
3446         (lower_cleanup): Likewise.
3447
3448 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
3449
3450         PR debug/44223
3451         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
3452         unchain each use from the cyclic next_regno_use chain first.
3453
3454 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
3455
3456         * real: Do not include gmp.h, mpfr.h, and mpc.h.
3457         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
3458         (real_value_negate, real_value_abs): New prototypes.
3459         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
3460         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
3461         new include file for interface between MPFR and REAL_VALUE_TYPE.
3462         * real.c: Include realmpfr.h.
3463         (real_arithmetic2): Remove legacy function.
3464         (real_value_negate): New.
3465         (real_value_abs): New.
3466         (mfpr_from_real, real_from_mpfr): Move from here...
3467         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
3468         * builtins.c: Include realmpfr.h.
3469         * fold-const.c: Include realmpfr.h.
3470         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
3471         (fold_negate_const): Likewise.
3472         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
3473         * toplev.c: Include realmpfr.h.
3474         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
3475         and real_value_negate.
3476         * fixed-value.c (check_real_for_fixed_mode): Likewise.
3477         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
3478         (vfp3_const_double_index): Likewise.
3479         (arm_print_operand): Likewise.
3480         * Makefile.in: Update dependencies.
3481
3482 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3483
3484         * config/s390/s390.c (override_options): Increase the default
3485         of max-completely-peel-times.
3486
3487 2010-05-21  Julian Brown  <julian@codesourcery.com>
3488             Mark Mitchell  <mark@codesourcery.com>
3489
3490         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
3491         sibling calls for Thumb-1.
3492         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
3493         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
3494         Thumb-2.
3495         (*call_insn, *call_value_insn): Don't use for Thumb-2.
3496         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
3497         for Thumb-2.
3498         (return): New expander.
3499         (*arm_return): New name for ARM return insn.
3500         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
3501
3502 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
3503
3504         * config.gcc (sparc64-*-rtems*): New target.
3505
3506 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
3507
3508         * tree.c (build_function_decl_skip_args): Fix grammar.
3509         (build_function_type_list_1): Fix typos, adjust formatting.
3510
3511 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
3512
3513         * tree.h: Include real.h and fixed-value.h as basic datatypes.
3514         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
3515         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
3516         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
3517         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
3518         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
3519         tree-pretty-print.c, tree-loop-distribution.c,
3520         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
3521         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
3522         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
3523         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
3524         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
3525         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
3526         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
3527         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
3528         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
3529         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
3530         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
3531         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
3532         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
3533         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
3534         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
3535         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
3536         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
3537         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
3538         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
3539         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
3540         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
3541         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
3542         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
3543         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
3544         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
3545         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
3546         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
3547         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
3548         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
3549         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
3550         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
3551         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
3552         config/score/score7.c, config/score/score.c, config/arm/arm.c,
3553         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
3554         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
3555         config/bfin/bfin.c: Clean up redundant includes.
3556         * Makefile.in: Update accordingly.
3557
3558 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
3559
3560         PR middle-end/44204
3561         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
3562         statement has no arguments.
3563
3564 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
3565
3566         PR/44139
3567         * varasm.c (emutls_decl): Merge attributes to new decl.
3568
3569 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
3570
3571         PR middle-end/44101
3572         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
3573         around the uniquized constructor if its type requires a conversion.
3574
3575 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
3576
3577         PR debug/44205
3578         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
3579         at -O0 goto_locus of any of the incoming edges differs from
3580         goto_locus of outgoing edge, or gimple_location of any of the
3581         labels differs.
3582
3583 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
3584
3585         * ira.c (ira_non_ordered_class_hard_regs): Define.
3586         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
3587         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
3588         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
3589         cost of unaligned hard regs when allocating multi-reg pseudos.
3590
3591 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
3592
3593         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
3594         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
3595         for TARGET_NO_FLOAT.
3596         * config/mips/mips.c (mips_file_start): Expand conditional expression
3597         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
3598         (mips_override_options): Move -mno-float override -msoft-float and
3599         -mhard-float.
3600         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
3601         Condition(TARGET_SUPPORTS_NO_FLOAT).
3602         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
3603         __mips_no_float here.
3604         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
3605         (TARGET_SUPPORTS_NO_FLOAT): Define.
3606         * config/mips/sdemtk.opt: Delete.
3607
3608 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
3609
3610         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
3611
3612 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
3613
3614         PR target/43733
3615         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
3616         * configure: Regenerate.
3617         * config.in: Regenerate.
3618         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
3619         instead of sahf only for 64bit targets.
3620
3621 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
3622
3623         PR debug/44178
3624         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
3625         setup_ref_regs for DEBUG_INSNs.
3626
3627 2010-05-20  Jan Hubicka  <jh@suse.cz>
3628
3629         PR middle-end/44197
3630         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
3631
3632 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
3633
3634         PR bootstrap/43870
3635         * df-scan.c (df_ref_compare): Stabilize sort.
3636
3637 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
3638
3639         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
3640         argument.  Don't use DW_OP_piece if offset is non-zero,
3641         put offset into second DW_OP_bit_piece argument.
3642         (dw_sra_loc_expr): Adjust callers.  For memory expressions
3643         compute offset.
3644
3645 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
3646
3647         PR target/44202
3648         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
3649         settings for 16-bit-constant "addo" alternative.
3650
3651 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
3652
3653         * config/mips/mips-dsp.md (add<DSPV:mode>3,
3654         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
3655
3656         PR target/43764
3657         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
3658         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
3659         Use it.
3660
3661 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
3662
3663         * diagnostic.c (FLOAT, FFS): Don't undefine.
3664         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
3665         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
3666         include ordering.
3667
3668 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
3669
3670         * combine.c (propagate_for_debug): Call make_compound_operation
3671         on the source value.
3672         (try_combine): When implementing a split chosen by find_split_point,
3673         either copy i2src or set it to null.  Assert that i2src is not null
3674         before substituting into CALL_INSN_FUNCTION_USAGE.
3675
3676 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
3677
3678         * double-int.h (double_int_ior): New function.
3679         * tree.h (build_int_cst_wide_type): Remove.
3680         * tree.c (build_int_cst_wide_type): Remove.
3681         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
3682         of build_int_cst_wide_type.
3683         * stor-layout.c (set_sizetype): (Ditto.).
3684         * dojump.c (do_jump): Use build_int_cstu instead of
3685         build_int_cst_wide_type.
3686
3687 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3688
3689         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
3690         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
3691         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
3692         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
3693         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
3694         propagate the 'data' argument to copy_tree_r.
3695         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
3696         Propagate 'data' argument to walk_tree.
3697         (copy_if_shared): New function.
3698         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
3699         (unmark_visited): New function.
3700         (unshare_body): Call copy_if_shared instead of doing it manually.
3701         (unvisit_body): Call unmark_visited instead of doing it manually.
3702
3703 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
3704
3705         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
3706         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
3707         * hooks.c: Likewise.
3708         * target-def.h (TARGET_FOLD_BUILTIN): Define to
3709         hook_tree_tree_int_treep_bool_null.
3710         * target.h (struct gcc_target): Update signature of fold_builtin
3711         field.
3712         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
3713         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
3714         instead of the call expression.
3715         (fold_builtin_call_array): Pass n and argarray directly.
3716         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
3717         consing a list.
3718         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
3719         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
3720         `i' and use it in place of `arity'.
3721         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
3722         Dereference `args' directly.
3723         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
3724
3725 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3726
3727         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3728         3dnow, sse3, sse2.
3729         (Directives): Document optional dg-require-effective-target
3730         selector.
3731
3732 2010-05-19  Richard Guenther  <rguenther@suse.de>
3733
3734         PR lto/44196
3735         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
3736
3737 2010-05-19  Richard Guenther  <rguenther@suse.de>
3738
3739         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
3740         * common.opt (fwhopr=): New.
3741         * opts.c (common_handle_option): Handle OPT_fwhopr.
3742         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
3743         * collect2.c (main): Match -fwhopr*.
3744         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
3745         Execute ltrans stage in parallel when jobs is bigger than 1.
3746
3747 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3748
3749         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
3750         pentiumpro on Solaris 8/x86 with Sun as.
3751         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
3752         hidden alias bug.
3753         (gcc_cv_as_ix86_quad): Check for .quad directive.
3754         * configure: Regenerate.
3755         * config.in: Regenerate.
3756         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
3757
3758 2010-05-19  Martin Jambor  <mjambor@suse.cz>
3759
3760         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
3761         also for indirect edges.  Actual printing moved...
3762         (ipa_print_node_jump_functions_for_edge): ...here.
3763         (ipa_compute_jump_functions): Renamed to
3764         ipa_compute_jump_functions_for_edge and made static.
3765         (ipa_compute_jump_functions): New function.
3766         (make_edge_direct_to_target): Check if the number of arguments on
3767         the newly direct edge is the same as the number of parametrs of
3768         the callee.
3769         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
3770         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
3771         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3772         analysis functions unconditionally, call the new
3773         ipa_analyze_params_uses on the node instead of every edge.
3774
3775 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
3776
3777         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
3778         to tree.
3779         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
3780         also checks for a constant int vs.  non-constant but
3781         loop-invariant steps.
3782         (find_or_create_group): Change the sort algorithm to only consider
3783         steps that are constant ints.
3784         (idx_analyze_ref): Adopt code to handle a tree instead of a
3785         HOST_WIDE_INT for step.
3786         (gather_memory_references_ref): Handle tree instead of int and be
3787         prepared to see a NULL_TREE.
3788         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
3789         prefetches if the step cannot be calculated at compile time.
3790         (issue_prefetch_ref): Issue prefetches for non-constant but
3791         loop-invariant steps.
3792
3793 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
3794
3795         Revert:
3796         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
3797
3798         * tree.h (build_call_list): Remove.
3799         * tree.c (build_call_list): Remove.
3800
3801 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
3802
3803         * tree.h (build_call_list): Remove.
3804         * tree.c (build_call_list): Remove.
3805
3806 2010-05-18  Jan Hubicka  <jh@suse.cz>
3807
3808         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
3809
3810 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
3811
3812         PR rtl-optimization/43332
3813         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
3814
3815 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
3816
3817         * tree.h (build_int_cstu): Implement as static inline.
3818         * tree.c (build_int_cstu): Remove function.
3819         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
3820         sign extended.
3821
3822 2010-05-18  Richard Guenther  <rguenther@suse.de>
3823
3824         PR lto/44143
3825         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
3826         (debug): Initialize from -save-temps.
3827         (collect_execute): Print command-line when verbose.
3828         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
3829         for ltrans invocation.  Produce -dumpbase flag again.
3830         (process_args): Remove.
3831         (main): Simplify.
3832         * collect2.c (maybe_run_lto_and_relink): Only pass object
3833         files to lto-wrapper.
3834         * gcc.c (LINK_COMMAND_SPEC): Likewise.
3835
3836 2010-05-18  Jan Hubicka  <jh@suse.cz>
3837
3838         * opts.c (decode_options): Do not disable whopr at ipa_cp.
3839         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
3840
3841 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
3842
3843         PR lto/44184
3844         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
3845         in a GIMPLE_ASM.
3846         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
3847         in a GIMPLE_ASM.
3848
3849 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
3850
3851         PR debug/41371
3852         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
3853         rtx_equal_p inline.
3854
3855 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
3856
3857         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
3858         lto-macho as lto_binary_reader.
3859
3860         * darwin.c (darwin_asm_named_section): Do not add assembler comment
3861         after .section directive; just print it before the directive instead.
3862
3863 2010-05-17  Jan Hubicka  <jh@suse.cz>
3864
3865         * cgraph.c (cgraph_create_virtual_clone): Only check
3866         versionable_function_p when not in wpa and checking is enabled.
3867         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
3868         there are no more functions to materialize.
3869
3870 2010-05-17  Jan Hubicka  <jh@suse.cz>
3871
3872         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
3873         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
3874         New functions.
3875         (output_cgraph): Call output_cgraph_opt_summary.
3876         (input_cgrpah): Call input_cgraph_opt_summary.
3877         (output_cgraph_opt_summary_p, output_node_opt_summary,
3878         input_node_opt_summary, input_cgraph_opt_section): New functions.
3879         * lto-section-in.c (lto_section_name): Add cgraphopt.
3880         * tree-inline.c (tree_function_versioning): Handle parm_num.
3881         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
3882         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
3883
3884 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
3885
3886         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
3887         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
3888         the insn to prefetch ratio heuristic to loops with known trip count.
3889
3890 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
3891
3892         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
3893         (schedule_prefetches): Do not generate a prefetch if the unroll factor
3894         is far from what is required by the prefetch.
3895
3896 2010-05-17  Jan Hubicka  <jh@suse.cz>
3897
3898         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
3899         (ipcp_estimate_growth): Likewise.
3900         (ipcp_const_param_count): Likewise.
3901         (ipcp_insert_stage): Likewise.
3902         * ipa-prop.c (visit_load_for_mod_analysis): New function.
3903         (visit_store_addr_for_mod_analysis): Set used flag.
3904         (ipa_detect_param_modifications): Set used flag for SSE params;
3905         update use of walk_stmt_load_store_addr_ops.
3906         (ipa_print_node_params): Print used flag.
3907         (ipa_write_node_info): Stream used flag.
3908         (ipa_read_node_info): Likewise.
3909         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
3910         (ipa_is_param_used): New function.
3911         (lto_ipa_fixup_call_notes): Remove unused declaration.
3912
3913 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3914
3915         PR target/44074
3916         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
3917         * configure: Regenerate.
3918         * config.in: Regenerate.
3919         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
3920         !HAVE_AS_IX86_REP_LOCK_PREFIX.
3921         Don't emit whitespace.
3922         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
3923         (*rep_movsi): Likewise.
3924         (*rep_movsi_rex64): Likewise.
3925         (*rep_movqi): Likewise.
3926         (*rep_movqi_rex64): Likewise.
3927         (*rep_stosdi_rex64): Likewise.
3928         (*rep_stossi): Likewise.
3929         (*rep_stossi_rex64): Likewise.
3930         (*rep_stosqi): Likewise.
3931         (*rep_stosqi_rex64): Likewise.
3932         (*cmpstrnqi_nz_1): Use {%;} after repz.
3933         (*cmpstrnqi_nz_rex_1): Likewise.
3934         (*cmpstrnqi_1): Likewise.
3935         (*cmpstrnqi_rex_1): Likewise.
3936         (*strlenqi_1): Use {%;} after repnz.
3937         (*strlenqi_rex_1): Likewise.
3938         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
3939         (*sync_compare_and_swap<mode>): Likewise.
3940         (sync_double_compare_and_swap<mode>): Likewise.
3941         (*sync_double_compare_and_swapdi_pic): Likewise.
3942         (sync_old_add<mode>): Likewise.
3943         (sync_add<mode>): Likewise.
3944         (sync_sub<mode>): Likewise.
3945         (sync_<code><mode>): Likewise.
3946
3947 2010-05-17  Martin Jambor  <mjambor@suse.cz>
3948
3949         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
3950         otr_token and polymorphic.
3951         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
3952         (cgraph_clone_edge): Copy the above fields.
3953         * tree.c (get_binfo_at_offset): New function.
3954         * tree.h (get_binfo_at_offset): Declare.
3955         * ipa-prop.h (enum jump_func_type): Added known_type jump function
3956         type, reordered items, updated comments.
3957         (union jump_func_value): Added base_type field, reordered fields.
3958         (enum ipa_lattice_type): Moved down in the file.
3959         (struct ipa_param_descriptor): New field polymorphic.
3960         (ipa_is_param_polymorphic): New function.
3961         * ipa-prop.c: Include gimple.h and gimple-fold.h.
3962         (ipa_print_node_jump_functions): Print known type jump functions.
3963         (compute_complex_pass_through): Renamed to...
3964         (compute_complex_assign_jump_func): this.
3965         (compute_complex_ancestor_jump_func): New function.
3966         (compute_known_type_jump_func): Likewise.
3967         (compute_scalar_jump_functions): Create known type and complex ancestor
3968         jump functions.
3969         (ipa_note_param_call): New parameter polymorphic, set the corresponding
3970         flag in the call note accordingly.
3971         (ipa_analyze_call_uses): Renamed to...
3972         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
3973         variable var only in the block where it is used.
3974         (ipa_analyze_virtual_call_uses): New function.
3975         (ipa_analyze_call_uses): Likewise.
3976         (combine_known_type_and_ancestor_jfs): Likewise.
3977         (update_jump_functions_after_inlining): Implemented handling of a
3978         number of new jump function types combination.
3979         (print_edge_addition_message): Removed.
3980         (make_edge_direct_to_target): New function.
3981         (try_make_edge_direct_simple_call): Likewise.
3982         (try_make_edge_direct_virtual_call): Likewise.
3983         (update_call_notes_after_inlining): Renamed to...
3984         (update_indirect_edges_after_inlining): this.  Moved edge creation for
3985         indirect calls to try_make_edge_direct_simple_call, also calls
3986         try_make_edge_direct_virtual_call for virtual calls.
3987         (ipa_print_node_params): Changed the header message.
3988         (ipa_write_jump_function): Stream also known type jump functions.
3989         (ipa_read_jump_function): Likewise.
3990         (ipa_write_indirect_edge_info): Stream new fields in
3991         cgraph_indirect_call_info.
3992         (ipa_read_indirect_edge_info): Likewise.
3993         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
3994         GIMPLE_FOLD_H.
3995
3996 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3997
3998         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
3999
4000 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
4001
4002         * tree.h (CALL_EXPR_ARGS): Delete.
4003         (call_expr_arglist): Delete.
4004         * tree.c (call_expr_arglist): Delete.
4005         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
4006         targetm.fold_builtin.
4007         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
4008         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
4009         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
4010         arglist parameter.  Use CALL_EXPR_ARG.
4011         (picochip_expand_builtin_3op): Likewise.
4012         (picochip_expand_builtin_2opvoid): Likewise.
4013         (picochip_expand_array_get): Likewise.
4014         (picochip_expand_array_put): Likewise.
4015         (picochip_expand_array_testport): Likewise.
4016         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
4017         rather than arglist.
4018         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
4019         CALL_EXPR_ARGS.
4020         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
4021         than TREE_VALUE and TREE_CHAIN.
4022         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
4023         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
4024         the arglist.
4025
4026 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
4027
4028         PR bootstrap/42347
4029         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
4030         to have no fallthru edge.
4031
4032         PR middle-end/44102
4033         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
4034         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
4035         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
4036         add BARRIER after previous bb if needed.
4037
4038 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
4039
4040         * tree.c (build_function_type_list_1): Remove bogus assert condition.
4041
4042 2010-05-17  Alan Modra  <amodra@gmail.com>
4043
4044         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
4045         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
4046         with copy_reg rtx param.
4047         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
4048         Correct cases where code for ABI_V4 did not initialise the reg
4049         used to access frame.  Also leave frame_reg_rtx as sp for large
4050         frames that save no regs.
4051
4052 2010-05-17  Martin Jambor  <mjambor@suse.cz>
4053
4054         PR middle-end/44133
4055         * tree-sra.c (create_access_replacement): New parameter rename, mark
4056         the replaement for renaming only when it is true.
4057         (get_access_replacement): Pass true in the rename parameter of
4058         create_access_replacement.
4059         (get_unrenamed_access_replacement): New function.
4060         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
4061         replacement declaration from it.
4062
4063 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
4064
4065         * function.c (try_fit_stack_local, add_frame_space): New static
4066         functions.
4067         (assign_stack_local_1): Use them.  Look for opportunities to use
4068         space previously wasted on alignment.
4069         * function.h (struct frame_space): New.
4070         (struct rtl_data): Add FRAME_SPACE_LIST member.
4071         * reload1.c (something_was_spilled): New static variable.
4072         (alter_reg): Set it.
4073         (reload): Test it in addition to testing if the frame size changed.
4074
4075 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
4076
4077         * config/s390/s390.c: Define sane prefetch settings and activate
4078         flag_prefetch_loop_arrays on -O3.
4079         * config/s390/s390.h: Declare that read can use write prefetch.
4080
4081 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
4082
4083         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
4084         build.
4085
4086 2010-05-16  Jan Hubicka  <jh@suse.cz>
4087
4088         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
4089         function body; do not check stdarg field of struct function.
4090
4091 2010-05-16  Jan Hubicka  <jh@suse.cz>
4092
4093         * cgraph.c (dump_cgraph_node): Dump versionable flag.
4094         * cgraph.h (cgraph_local_info): Add versionable flag.
4095         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
4096         (ipcp_versionable_function_p): Use it.
4097         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
4098         versionable flag.
4099
4100 2010-05-16  Jan Hubicka  <jh@suse.cz>
4101
4102         * cgraph.c (cgraph_clone_node): Take decl argument and insert
4103         clone into hash when it is different from orig.
4104         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
4105         * cgraph.h (cgraph_clone_node): Update prototype.
4106         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
4107         (lto_cgraph_encoder_delete): Delete body map.
4108         (lto_cgraph_encoder_size): Move to header.
4109         (lto_cgraph_encoder_encode_body_p,
4110         lto_set_cgraph_encoder_encode_body): New.
4111         (lto_output_node): Do not take written_decls argument; output clone_of
4112         pointer.
4113         (add_node_to): Add include_body_argument; call
4114         lto_set_cgraph_encoder_encode_body on master of the clone.
4115         (add_references): Update use of add_node_to.
4116         (compute_ltrans_boundary): Likewise.
4117         (output_cgraph): Do not create written_decls bitmap.
4118         (input_node): Take nodes argument; stream in clone_of correctly.
4119         (input_cgraph_1): Update use of input_node.
4120         * lto-streamer-out.c (lto_output): Use encoder info to decide
4121         what bodies to output.
4122         * ipa-inline.c (cgraph_clone_inlined_nodes,
4123         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
4124         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
4125         (lto_cgraph_encoder_size): Define here.
4126         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
4127         Declare.
4128
4129 2010-05-16  Richard Guenther  <rguenther@suse.de>
4130
4131         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
4132         -fipa-type-escape.
4133         * ipa-type-escape.c (gate_type_escape_vars): Run when
4134         -fipa-struct-reorg runs.
4135         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
4136         * common.opt (fipa-type-escape): Remove.
4137
4138 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
4139
4140         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
4141         (decode_options): Likewise.
4142         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
4143
4144 2010-05-16  Jan Hubicka  <jh@suse.cz>
4145
4146         * ipa.c (function_and_variable_visibility): Also bring local all
4147         aliases.
4148
4149 2010-05-16  Richard Guenther  <rguenther@suse.de>
4150
4151         * alias.c (nonoverlapping_memrefs_p): Remove use of
4152         IPA type-escape information.
4153
4154 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
4155
4156         * c-common.c (c_common_reswords): Add _Static_assert for C.
4157         * c-parser.c (c_token_starts_declaration,
4158         c_parser_next_token_starts_declaration,
4159         c_parser_static_assert_declaration_no_semi,
4160         c_parser_static_assert_declaration): New.
4161         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
4162         Handle static assertions if static_assert_ok.
4163         (c_parser_external_declaration, c_parser_declaration_or_fndef,
4164         c_parser_compound_statement_nostart, c_parser_label,
4165         c_parser_for_statement, c_parser_objc_methodprotolist,
4166         c_parser_omp_for_loop): All callers of
4167         c_parser_declaration_or_fndef changed.
4168         (c_parser_struct_declaration): Handle static assertions.
4169         (c_parser_compound_statement_nostart): Use
4170         c_parser_next_token_starts_declaration and
4171         c_token_starts_declaration to detect start of declarations.
4172         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
4173         Likewise.
4174
4175 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
4176
4177         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4178         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4179         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4180         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4181         (mmix_function_outgoing_value): Rename to...
4182         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
4183         (mmix_function_value_regno_p): Make static.
4184         (mmix_libcall_value): New function.
4185         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
4186         mmix_function_value_regno_p): Remove declaration.
4187
4188 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
4189
4190         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
4191         BUILT_IN_ALLOCA if stack checking is enabled.
4192
4193 2010-05-16  Richard Guenther  <rguenther@suse.de>
4194
4195         * var-tracking.c (vars_copy_1): Inline ...
4196         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
4197         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
4198         (variable_merge_over_cur): Adjust.  Merge asserts.
4199         (variable_merge_over_src): Likewise.
4200         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
4201         (variable_post_merge_new_vals): Merge asserts.
4202         (variable_post_merge_perm_vals): Likewise.
4203         (find_mem_expr_in_1pdv): Likewise.
4204         (dataflow_set_different_value): Remove.
4205         (onepart_variable_different_p): Merge asserts.
4206         (variable_different_p): Likewise.
4207         (dataflow_set_different_1): Inline ...
4208         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
4209         (emit_notes_for_differences_1): Merge asserts.
4210
4211 2010-05-16  Richard Guenther  <rguenther@suse.de>
4212
4213         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
4214         * optabs.c (libfunc_decl_hash): Likewise.
4215         * varasm.c (emutls_decl): Likewise.
4216
4217 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
4218
4219         * c-decl.c: Don't include gimple.h.
4220         (merge_decls): Do not copy gimple_body.
4221
4222 2010-05-15  Jason Merrill  <jason@redhat.com>
4223
4224         * c.opt: Add -fnothrow-opt.
4225
4226 2010-05-15  Jan Hubicka  <jh@suse.cz>
4227
4228         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
4229         analyzed.
4230         * passes.c (ipa_write_summaries): Write all analyzed nodes.
4231
4232 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
4233
4234         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
4235         * Makefile.in: Add it.
4236         Fix all other Makefile dependencies for changes below.
4237         * tree.h: Include it instead of defining VEC primitives here.
4238         * gimple.h: Likewise.
4239         * rtl.h: Likewise.
4240         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
4241         * except.h: Include vecir.h, break dependence on tree.h.
4242
4243         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
4244         Move from here...
4245         * tree-iterator.c: ...to here.
4246         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
4247
4248         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
4249         tm_p.h.
4250         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
4251         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
4252         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
4253         tree-mudflap.h, and target.h.
4254         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
4255         predict.h, tree-inline.h, gimple.h, and langhooks.h.
4256         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
4257         Add FIXME for why gimple.h is still included (should be unnecessary
4258         since GCC 4.5 gimplification unit-at-a-time).
4259         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
4260         * c-pragma.c: Add FIXME for why function.h needs to be included just
4261         for cfun, at front-end level.
4262         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
4263         Do not include ggc.h, but include vecprim.h for VEC(char).
4264         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
4265         Explain why target.h is included.
4266         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
4267         Explain why gimple.h is included.
4268         * c-ppoutput.c: Do not include tm.h.
4269         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
4270         * c-parses.c: Explain why rtl.h is included, and that this (and only
4271         this) is also why tm.h must be included.
4272         Do not include except.h.
4273         * c-lang.c: Do not include ggc.h.
4274
4275 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
4276
4277         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
4278
4279 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
4280
4281         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
4282         unions by default if those structs and unions have no tags.  Do
4283         not condition anonymous struct and unions handling on flag_iso.
4284         Allow anonymous structs and unions for C1X.
4285         (finish_struct): Do not diagnose lack of named fields when
4286         anonymous structs and unions present for C1X.  Accept flexible
4287         array members in structure with anonymous structs or unions but no
4288         directly named fields.
4289         * doc/extend.texi (Unnamed Fields): Update.
4290
4291 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4292
4293         * gimple.h (compare_field_offset): Rename into...
4294         (gimple_compare_field_offset): ...this.
4295         * gimple.c (compare_field_offset): Rename into...
4296         (gimple_compare_field_offset): ...this.  Compare the full access if
4297         the offset is self-referential.
4298         (gimple_types_compatible_p): Adjust for above renaming.
4299         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
4300         DECL_NONADDRESSABLE_P flag of fields before merging them.
4301
4302 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
4303
4304         * tree.h (ctor_to_list): Delete.
4305         * tree.c (ctor_to_list): Delete.
4306
4307 2010-05-15  Jan Hubicka  <jh@suse.cz>
4308
4309         * ipa-reference.c: Include toplev.h
4310         (is_proper_for_analysis): Only add to all_module_statics
4311         if it is allocated.
4312         (write_node_summary_p, stream_out_bitmap,
4313         ipa_reference_write_optimization_summary,
4314         ipa_reference_read_optimization_summary): New.
4315         (struct ipa_opt_pass_d pass_ipa_reference): Add
4316         optimization summary streaming.
4317         * lto-cgraph.c (referenced_from_this_partition_p,
4318         reachable_from_this_partition_p): New functions.
4319         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4320         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
4321         * opts.c (decode_options): Enable ipa_reference.
4322         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
4323         * lto-streamer.h (referenced_from_this_partition_p,
4324         reachable_from_this_partition_p): Declare.
4325
4326 2010-05-15  Richard Guenther  <rguenther@suse.de>
4327
4328         PR tree-optimization/44038
4329         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
4330         taking the address of a V_C_E of a constant.
4331
4332 2010-05-14  Jan Hubicka  <jh@suse.cz>
4333
4334         * tree.h (memory_identifier_string): Remove.
4335         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
4336         (ipa_reference_global_vars_info_d): Remove statics_not_read and
4337         statics_not_written.
4338         (ipa_reference_optimization_summary_d): New structure.
4339         (ipa_reference_optimization_summary_t): New type and vector.
4340         (ipa_reference_vars_info_d): Embedd structures instead of using
4341         pointers.
4342         (reference_vars_to_consider): Remove out of GGC space.
4343         (module_statics_escape): Remove.
4344         (global_info_obstack): Rename to ...
4345         (optimization_summary_obstack): ... this one.
4346         (initialization_status_t): Remove.
4347         (memory_identifier_string): Remove.
4348         (get_reference_vars_info): Fix indenting.
4349         (set_reference_vars_info): Likewise.
4350         (get_reference_optimization_summary): New.
4351         (set_reference_optimization_summary): New.
4352         (get_global_reference_vars_info): Remove.
4353         (ipa_reference_get_read_global): Remove.
4354         (ipa_reference_get_written_global): Remove.
4355         (ipa_reference_get_not_read_global): Update.
4356         (ipa_reference_get_not_written_global): Update.
4357         (is_proper_for_analysis): Outlaw addressable.
4358         (propagate_bits): Update for new datastructures.
4359         (analyze_variable): Remove.
4360         (init_function_info): Update for new datastructures.
4361         (clean_function_local_data): Remove.
4362         (clean_function): Remove.
4363         (copy_global_bitmap): Use optimizations_summary_obstack.
4364         (duplicate_node_data): Duplicate optimization summary only.
4365         (remove_node_data): Remove optimization summary only.
4366         (generate_summary): Do not analyze variables; do not compute
4367         module_statics_escape; do not prune solutions by it.
4368         (read_write_all_from_decl): Fix typos in comments.
4369         (propagate): Doscover readonly and nonaddressable first;
4370         update for new datastructures; share global bitmaps.
4371         * ipa-reference.h (ipa_reference_get_read_global,
4372         ipa_reference_get_written_global): Remove.
4373         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
4374         * Makefile.in: Remove ipa-refereference from GT files.
4375
4376 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
4377
4378         PR debug/44112
4379         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
4380         for all SYMBOL_REF_DECLs.
4381
4382 2010-05-14  Jan Hubicka  <jh@suse.cz>
4383
4384         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
4385         (varpool_all_refs_explicit_p): New inline function.
4386         * ipa-reference.c: Update comment.
4387         (module_statics_written): Remove.
4388         (get_static_decl): Remove.
4389         (ipa_init): Do not initialize module_statics_written.
4390         (analyze_function): Likewise.
4391         (generate_summary): Likewise; do not compute module_statics_readonly
4392         and do not update variable flags.
4393         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
4394         * ipa.c: Inlucde flags.h
4395         (cgraph_local_node_p): New.
4396         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
4397         promote functions to local.
4398         (ipa_discover_readonly_nonaddressable_vars): New function.
4399         (function_and_variable_visibility): Use cgraph_local_node_p.
4400         * varpool.c (varpool_finalize_decl): Set force_output for
4401         DECL_PRESERVE_P vars.
4402
4403 2010-05-14  Jan Hubicka  <jh@suse.cz>
4404
4405         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
4406
4407 2010-05-14  Richard Guenther  <rguenther@suse.de>
4408
4409         PR tree-optimization/44119
4410         * tree-ssa-pre.c (eliminate): Properly mark replacement of
4411         a PHI node necessary.
4412
4413 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
4414
4415         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
4416
4417 2010-05-14  Jason Merrill  <jason@redhat.com>
4418
4419         PR c++/44127
4420         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
4421         (gimple_call_set_nothrow): New.
4422         * gimple.c (gimple_build_call_from_tree): Call it.
4423         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
4424
4425         PR c++/44127
4426         * gimplify.c (gimplify_seq_add_stmt): No longer static.
4427         * gimple.h: Declare it.
4428         * gimple.c (gimple_build_eh_filter): No ops.
4429
4430 2010-05-14  Jan Hubicka  <jh@suse.cz>
4431
4432         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
4433         nodes already in queue.
4434         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
4435         re-enqueueing node.
4436
4437 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
4438
4439         PR debug/44136
4440         * cfgexpand.c (expand_debug_expr): If non-memory op0
4441         has BLKmode, return NULL.
4442
4443 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
4444
4445         * config.gcc: Add support for --with-cpu option for bdver1.
4446         * config/i386/i386.h (TARGET_BDVER1): New macro.
4447         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
4448         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
4449         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
4450         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
4451         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
4452         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
4453         (processor_type): Add PROCESSOR_BDVER1.
4454         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
4455         processor_type in config/i386/i386.h.
4456         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
4457         movaps <reg, reg> instead of movapd <reg, reg> when replacing
4458         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
4459         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
4460         to emit packed xor instead of packed double/packed integer
4461         xor for SSE and AVX when moving a zero value.
4462         * config/i386/sse.md: Add check for
4463         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
4464         movapd/movdqa for SSE and AVX.
4465         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
4466         single logical operations i.e and, or and xor instead of packed double
4467         logical operations for SSE and AVX.
4468         * config/i386/i386-c.c (ix86_target_macros_internal):
4469         Add PROCESSOR_BDVER1.
4470         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
4471         (has_fma4, has_xop): New.
4472         * config/i386/i386.c (bdver1_cost): New variable.
4473         (m_BDVER1): New macro.
4474         (m_AMD_MULTIPLE): Add m_BDVER1.
4475         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
4476         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
4477         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
4478         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
4479         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
4480         x86_tune_sse_partial_reg_dependency,
4481         x86_tune_sse_unaligned_load_optimal,
4482         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
4483         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
4484         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
4485         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
4486         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
4487         Enable/disable for bdver1.
4488         (processor_target_table): Add bdver1_cost.
4489         (cpu_names): Add bdver1.
4490         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
4491          processor_alias_table.
4492         (ix86_expand_vector_move_misalign): Change.
4493         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
4494         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
4495         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
4496         of movupd/movdqu for SSE and AVX.
4497         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
4498         (ix86_tune_adjust_cost): Add code for bdver1.
4499         (standard_sse_constant_opcode): Add check for
4500         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
4501         of packed double xor for SSE and AVX.
4502
4503 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
4504
4505         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
4506         result to unsigned.
4507
4508 2010-05-14  Tristan Gingold  <gingold@adacore.com>
4509
4510         * toplev.c (default_debug_hooks): Remove this variable.
4511         (process_options): Remove assignments to default_debug_hooks.
4512
4513 2010-05-14  Martin Jambor  <mjambor@suse.cz>
4514
4515         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
4516         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
4517         * langhooks.h (struct lang_hooks_for_decls): Removed field
4518         fold_obj_type_ref.
4519         * tree.c (free_lang_data): Remove assignment to
4520         lang_hooks.fold_obj_type_ref.
4521         * tree.def (OBJ_TYPE_REF): Update comment.
4522
4523 2010-05-14  Richard Guenther  <rguenther@suse.de>
4524
4525         PR tree-optimization/44124
4526         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
4527
4528 2010-05-14  Alan Modra  <amodra@gmail.com>
4529
4530         PR target/44075
4531         * config/rs6000/rs6000.c (struct machine_function): Reorder
4532         fields for better packing.  Add lr_save_state.
4533         (rs6000_ra_ever_killed): Return lr_save_state if set.
4534         (rs6000_emit_eh_reg_restore): Set lr_save_state.
4535
4536 2010-05-13  Jan Hubicka  <jh@suse.cz>
4537
4538         * varpool.c (decide_is_variable_needed): Drop code checking
4539         TREE_SYMBOL_REFERENCED.
4540
4541 2010-05-13  Jan Hubicka  <jh@suse.cz>
4542
4543         * final.c (output_addr_const): Do not call mark_decl_referenced.
4544         * cgraphunit.c (process_function_and_variable_attributes): Use
4545         mark_needed_node dirrectly.
4546         (assemble_thunk): Do not call mark_decl_referenced.
4547
4548 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
4549
4550         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
4551
4552 2010-05-13  Jeff Law  <law@redhat.com>
4553
4554         * ira-conflicts.c (print_allocno_conflicts): New function broken out
4555         from...
4556         (print_conflicts): Call print_allocno_conflicts.
4557
4558 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
4559
4560         PR debug/44104
4561         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
4562         if it is NULL.
4563
4564 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
4565
4566         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
4567         t-mingw-w64 or t-mingw-w32 for multilib configuration.
4568         * config/i386/t-mingw-w32: New.
4569         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
4570
4571 2010-05-13  Martin Jambor  <mjambor@suse.cz>
4572
4573         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
4574         gimple-fold.c).
4575         * gimple-fold.c (get_base_binfo_for_type): New function.
4576         (gimple_get_relevant_ref_binfo): Likewise.
4577         (gimple_fold_obj_type_ref_known_binfo): Likewise.
4578         (gimple_fold_obj_type_ref): Likewise.
4579         (fold_gimple_call): Simplify condition for folding virtual calls
4580         and call gimple_fold_obj_type_ref.
4581         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
4582         (gimple_fold_obj_type_ref_known_binfo): Likewise.
4583
4584 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
4585
4586         * config/rs6000/rs6000-protos.h
4587         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
4588         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
4589         (rs6000_debug_mode_dependent_address)
4590         (rs6000_mode_dependent_address_ptr): Likewise.
4591
4592 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
4593
4594         PR debug/43983
4595         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
4596         by SRA.
4597         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
4598         * tree-sra.c (create_access_replacement): Call unshare_expr before
4599         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
4600         * dwarf2out.c: Include tree-flow.h.
4601         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
4602         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
4603         Handle DW_OP_bit_piece.
4604         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
4605         construct_piece_list, adjust_piece_list): New functions.
4606         (add_var_loc_to_decl): Handle SRA optimized variables.
4607         Adjust for var_loc_note to loc field renaming.
4608         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
4609         in VAR_LOCATION note.
4610         (new_loc_descr_op_bit_piece): New function.
4611         (dw_sra_loc_expr): New function.
4612         (dw_loc_list): Use it.  Don't handle the last range after the
4613         loop, handle it inside of the loop.  Adjust for var_loc_note
4614         to loc field renaming.
4615         (add_location_or_const_value_attribute): Only special case
4616         single entry loc lists if loc is NOTE_P.  Adjust for
4617         var_loc_note to loc field renaming.
4618         (dwarf2out_var_location): Don't set newloc->var_loc_note
4619         and newloc->next here.
4620
4621 2010-05-12  Jan Hubicka  <jh@suse.cz>
4622
4623         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
4624         flag.
4625         * cgraph.h (cgraph_only_called_directly_p,
4626         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
4627         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
4628         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
4629         (assemble
4630         * ipa.c (cgraph_remove_unreachable_nodes): Use
4631         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
4632         flags.
4633         * tree-inline.c (copy_bb): Check address_taken flag.
4634         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
4635         externally_visible flag.
4636
4637 2010-05-12  Jason Merrill  <jason@redhat.com>
4638
4639         PR bootstrap/44048
4640         PR target/44099
4641         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
4642         * sdbout.c (plain_type_1): Likewise.
4643         * dwarf2out.c (is_base_type): Likewise.
4644         (gen_type_die_with_usage): Likewise.  Generate
4645         DW_TAG_unspecified_type for any LANG_TYPE.
4646
4647 2010-05-12  Jan Hubicka  <jh@suse.cz>
4648
4649         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
4650         indrect edges too.
4651         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
4652         (cgraph_clone_edge): Update.
4653         (cgraph_node_remove_callees): Remove indirect calls too.
4654         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
4655         (cgraph_create_indirect_edge): Update prototype.
4656         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
4657         is_proper_for_analysis.
4658         (add_new_function, visited_nodes, function_insertion_hook_holder,
4659         get_local_reference_vars_info, mark_address_taken, mark_address,
4660         mark_load, mark_store, check_asm_memory_clobber, check_call,
4661         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
4662         (ipa_init): Do not initialize visited_nodes;
4663         function_insertion_hook_holder.
4664         (analyze_variable): Rewrite.
4665         (analyze_function): Rewrite.
4666         (copy_local_bitmap): Remove.
4667         (duplicate_node_dat): Do not duplicate local info.
4668         (generate_summary): Simplify to only walk cgraph.
4669         (write_node_summary_p, ipa_reference_write_summary,
4670         ipa_reference_read_summary): Remove.
4671         (propagate): Do not remove function insertion;
4672         generate summary.
4673         (pass_ipa_reference): NULLify summary handling fields.
4674         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
4675         (input_edge): Input ecf_flags.
4676         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
4677         (update_indirect_edges_after_inlining): Ignore edges with unknown
4678         param.
4679
4680 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
4681
4682         * implicit-zee.c: New file.
4683         * tree-pass.h (pass_implicit_zee): Declare.
4684         * passes.c (init_optimization_passes): Add zee pass.
4685         * common.opt (fzee): New flag.
4686         * timevar.def (TV_ZEE): Define.
4687         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
4688         and beyond.
4689         * Makefile.in (implicit-zee.o): Add new build file.
4690
4691 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
4692             Nathan Froyd  <froydnj@codesourcery.com>
4693
4694         * c-common.c (sync_resolve_params): Remove write-only variable.
4695
4696 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
4697
4698         * target.h (struct gcc_target): Add mode_dependent_address_p field.
4699         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
4700         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
4701         * targhooks.c (default_mode_dependent_address_p): New function.
4702         * targhooks.h (default_mode_dependent_address_p): Declare function.
4703         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
4704         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
4705         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
4706         target hook. Change return type to bool.
4707         * recog.h (mode_dependent_address_p): Change return type to bool.
4708
4709 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
4710             Nathan Froyd  <froydnj@codesourcery.com>
4711
4712         * tree-mudflap.c (build_function_type_0, build_function_type_1,
4713         build_function_type_2, build_function_type_3): Remove.
4714         (mudflap_init): Use build_function_type_list.
4715
4716 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
4717             Nathan Froyd  <froydnj@codesourcery.com>
4718
4719         * coverage.c (build_fn_info_value): Call build_constructor instead of
4720         build_constructor_from_list.
4721         (build_ctr_info_value): Likewise.
4722         (build_gcov_info): Likewise.
4723
4724 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
4725
4726         * tree.c (build_constructor): Compute TREE_CONSTANT for the
4727         resultant constructor.
4728         (build_constructor_single): Don't set TREE_CONSTANT.
4729         (build_constructor_from_list): Don't compute TREE_CONSTANT.
4730
4731 2010-05-12  Jan Hubicka  <jh@suse.cz>
4732
4733         * cgraph.h (struct varpool_node): Add aux.
4734         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
4735         * varpool.c (varpool_remove_node): Do not remove initializer.
4736         (varpool_reset_queue): Export.
4737         (varpool_finalize_decl): Volatile vars are forced to be output.
4738         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
4739         replaced decl.
4740         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
4741         process_references, varpool_can_remove_if_no_refs): New functions.
4742         (cgraph_remove_unreachable_nodes): Handle variables too.
4743
4744 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
4745
4746         PR target/44088
4747         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
4748
4749 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
4750
4751         PR middle-end/44085
4752         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
4753         change value of ORT_TASK.
4754         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
4755         (omp_notice_threadprivate_variable): New function.
4756         (omp_notice_variable): Call it for threadprivate variables.
4757         If enclosing ctx is a task, print enclosing task rather than
4758         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
4759         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
4760         if task has untied clause.
4761
4762         PR debug/42278
4763         * dwarf2out.c (base_type_die): Don't add name attribute here.
4764         (modified_type_die): Instead of sizetype use
4765         its underlying original type.  If a DW_TAG_base_type doesn't
4766         have name added, add __unknown__.
4767         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
4768         always call force_type_die instead.
4769
4770 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
4771
4772         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
4773         for __stack_chk_guard.
4774
4775 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
4776
4777         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
4778         don't call start_source_file debug hook here...
4779         (finish_options): ... but here, after outputting predefined and
4780         command line defines and undefs.
4781
4782         PR middle-end/44071
4783         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
4784         no fallthru edge.
4785         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
4786         optimizing away empty bb with no successors, move over its
4787         footer chain to fallthru predecessor.
4788         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
4789         (rtl_split_edge): For asm goto call patch_jump_insn even if
4790         splitting fallthru edge.
4791
4792         PR c++/44059
4793         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
4794         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
4795         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
4796         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
4797         on DW.ref.* decls.
4798
4799         PR c++/44062
4800         * c-parser.c (c_parser_expression): Mark LHS of a comma
4801         expression as read if it is a decl, handled component or
4802         COMPOUND_EXPR with that on the RHS.
4803         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
4804         if it is a decl or handled component.
4805
4806 2010-05-11  Jan Hubicka  <jh@suse.cz>
4807
4808         * lto-symtab.c (lto_symtab_free): New function.
4809         * lto-streamer.h (lto_symtab_free): Declare.
4810
4811 2010-05-11  Jan Hubicka  <jh@suse.cz>
4812
4813         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
4814         that if function is needed it is reachable.
4815         (lto_output_node): See if it the function is reachable or referenced.
4816         (output_cgraph): Update call of lto_output_node.
4817         * lto-streamer.h (reachable_from_other_partition_p): Declare.
4818
4819 2010-05-11  Jan Hubicka  <jh@suse.cz>
4820
4821         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
4822         Mark as used.
4823
4824 2010-05-11  Jan Hubicka  <jh@suse.cz>
4825
4826         PR tree-optimize/44063
4827         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
4828         queue.
4829         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
4830         limits.
4831         (estimate_function_body_sizes): Compute sizes even when disregarding.
4832
4833 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
4834
4835         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
4836
4837 2010-05-11  Jan Hubicka  <jh@suse.cz>
4838
4839         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
4840         into every boundary.
4841
4842 2010-05-11  Jan Hubicka  <jh@suse.cz>
4843
4844         * matrix-reorg.c (matrix_reorg): Rebuild edges.
4845
4846 2010-05-11  Jan Hubicka  <jh@suse.cz>
4847
4848         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
4849         lto_streamer_cache_delete): Put nodes into heap.
4850         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
4851         heap.
4852
4853 2010-05-11  Jan Hubicka  <jh@suse.cz>
4854
4855         * cgraphbuild.c (cgraph_rebuild_references): New.
4856         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
4857         out extern inlines.
4858         * cgraph.h (cgraph_rebuild_references): Declare.
4859         * tree-inline.c (tree_function_versioning): Use it.
4860         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
4861
4862 2010-05-11  Jan Hubicka  <jh@suse.cz>
4863
4864         * cgraph.c: Include ipa-utils.h
4865         (cgraph_create_virtual_clone): Update references.
4866         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
4867
4868 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
4869
4870         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
4871         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
4872         cache size.
4873
4874 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
4875
4876         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
4877
4878 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
4879
4880         * gcc.c (execute): For -### don't quote arguments that
4881         contain just alphanumerics and _/-. characters.
4882         * doc/invoke.texi: Document that change for -###.
4883
4884         PR debug/44023
4885         * df-problems.c (struct dead_debug): Add to_rescan field.
4886         (dead_debug_init): Clear to_rescan field.
4887         (dead_debug_finish): Rescan all debug insns in to_rescan
4888         bitmap and free the bitmap.
4889         (dead_debug_insert_before): Instead of rescanning debug insns
4890         immediately queue their rescanning until dead_debug_finish.
4891         (df_note_bb_compute): After dead_debug_add do continue instead
4892         of break.
4893
4894 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
4895
4896         PR debug/44028
4897         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
4898         clear also INSN_REG_USE_LIST.
4899
4900 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4901
4902         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
4903
4904 2010-05-10  Jan Hubicka  <jh@suse.cz>
4905
4906         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
4907         commited change.
4908
4909 2010-05-10  Jan Hubicka  <jh@suse.cz>
4910
4911         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
4912         Allocate encoders.
4913         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
4914         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
4915         (lto_streamer_cache_create): Init alloc pool.
4916         (lto_streamer_cache_delete): Free alloc pool.
4917         * lto-streamer.h: Include alloc pool.
4918         (lto_streamer_cache_d): Use alloc pool.
4919         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
4920
4921 2010-05-10  Jan Hubicka  <jh@suse.cz>
4922
4923         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
4924         * cgraphbuild.c: Include except.h
4925         (record_type_list, record_eh_tables): New function.
4926         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
4927
4928 2010-05-10  Jan Hubicka  <jh@suse.cz>
4929
4930         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
4931         __frame_dummy_init_array_entry, force_to_data): Attribute as used
4932         rather than unused.
4933
4934 2010-05-10  Michael Matz  <matz@suse.de>
4935
4936         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
4937         (can_reassociate_p): Use FLOAT_TYPE_P.
4938         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
4939         (vect_force_simple_reduction): ... this.
4940         * tree-parloops.c (gather_scalar_reductions): Use
4941         vect_force_simple_reduction.
4942         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
4943         vect_is_simple_reduction, add modify argument, if true rewrite
4944         "a-b" into "a+(-b)".
4945         (vect_is_simple_reduction, vect_force_simple_reduction): New
4946         functions.
4947         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
4948
4949 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
4950             Vladimir Makarov  <vmakarov@redhat.com>
4951
4952         PR rtl-optimization/44012
4953         * ira-build.c (remove_unnecessary_allocnos): Nullify
4954         regno_allocno_map of the removed allocno.
4955
4956 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4957
4958         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
4959         to /dev/null.
4960         * configure: Regenerate.
4961
4962 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4963
4964         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
4965         unused.
4966         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
4967         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
4968         support in Sun ld.
4969         * configure: Regenerate.
4970
4971 2010-05-10  Richard Guenther  <rguenther@suse.de>
4972
4973         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
4974         marked if the entry identifier is marked.
4975
4976 2010-05-10  Richard Guenther  <rguenther@suse.de>
4977
4978         * c-common.c (struct c_common_attributes): Add fnspec attribute.
4979         (handle_fnspec_attribute): New function.
4980         * gimple.h (gimple_call_return_flags): Declare.
4981         (gimple_call_arg_flags): Likewise.
4982         * gimple.c (gimple_call_arg_flags): New function.
4983         (gimple_call_return_flags): Likewise.
4984         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
4985         New argument flags.
4986         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
4987         return value flags.
4988         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
4989         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
4990         main work to ...
4991         (make_heapvar_for): ... this new function.
4992         (handle_rhs_call): Handle fnspec attribute argument specifiers.
4993         (handle_lhs_call): Likewise.
4994         (find_func_aliases): Adjust.
4995
4996 2010-05-10  Richard Guenther  <rguenther@suse.de>
4997
4998         PR tree-optimization/44050
4999         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
5000
5001 2010-05-10  Wei Guozhi  <carrot@google.com>
5002
5003         PR target/42879
5004         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
5005
5006 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
5007
5008         PR c/10676
5009         * c-typeck.c (lookup_field): Take a type directly.  Update
5010         recursive calls.
5011         (build_component_ref): Update call to lookup_field.
5012         (set_init_label): Use lookup_field to find initialized field.
5013         Handle returned list of fields like a sequence of designators.
5014
5015 2010-05-09  Richard Guenther  <rguenther@suse.de>
5016
5017         PR middle-end/44024
5018         * fold-const.c (tree_single_nonzero_warnv_p): Properly
5019         handle &FUNCTION_DECL.
5020
5021 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
5022
5023         PR c/4784
5024         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
5025         structures and unions recursively.
5026         (detect_field_duplicates): Move duplicate detection with a hash to
5027         detect_field_duplicates_hash.  Always use a hash if anonymous
5028         structures or unions are present.
5029         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
5030         give errors.
5031
5032 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5033
5034         PR target/44046
5035         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
5036         detect Atom, Core 2 and Core i7.
5037
5038 2010-05-09  Richard Guenther  <rguenther@suse.de>
5039
5040         * gcc.c (store_arg): Handle temporary file deletion for
5041         joined arguments.
5042
5043 2010-05-09  Richard Guenther  <rguenther@suse.de>
5044
5045         PR middle-end/44043
5046         * ipa-inline.c (estimate_function_body_sizes): Return after
5047         disregarding inline limits.
5048
5049 2010-05-09  Richard Guenther  <rguenther@suse.de>
5050
5051         * gcc.c (store_arg): Revert last change.
5052
5053 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
5054
5055         PR middle-end/28685
5056         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
5057         (optimize_ops_list): Call it.
5058
5059 2010-05-08  Richard Guenther  <rguenther@suse.de>
5060
5061         PR tree-optimization/44030
5062         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
5063         NECESSARY flag if we propagate from a inserted expression.
5064
5065 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
5066
5067         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
5068         domain types as equal if they are both PLACEHOLDER_EXPRs.
5069
5070 2010-05-08  Richard Guenther  <rguenther@suse.de>
5071
5072         * lto-wrapper.c (run_gcc): Remove linker output from
5073         command line for LTRANS invocation.
5074
5075 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
5076
5077         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5078         lto-macho as lto_binary_reader.
5079         * target.h (struct gcc_target): New hooks lto_start and lto_end.
5080         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
5081         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
5082         in lto_start and lto_end calls.
5083         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
5084         magic numbers.
5085         (scan_prog_file): Update is_elf_or_coff call.
5086         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
5087
5088         * collect2.c (main): Fix enum comparison.
5089
5090         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
5091         Add prototypes.
5092         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
5093         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
5094         and TARGET_ASM_LTO_END.
5095         * darwin.c: Include obstack.h and lto-streamer.h.
5096         (lto_section_names_offset, lto_section_names_obstack,
5097         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
5098         global variables.
5099         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
5100         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
5101         to a temporary file.
5102         (darwin_asm_lto_end): New function.  Restore asm_out_file.
5103         (darwin_asm_named_section): For LTO sections, replace the name with
5104         the offset of the section name in a string table, and build this
5105         table.
5106         (darwin_file_start): Initialize global vars for LTO support.
5107         (darwin_file_end): If output to asm_out_file was redirected, append it
5108         to the proper asm_out_file here.  Add the section names section.
5109
5110 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
5111
5112         * c-pragma.c (pending_weak_d, pending_weak): New.
5113         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
5114         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
5115         handle_pragma_weak): Update the uses of pending_weaks.
5116
5117 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5118
5119         PR documentation/44016
5120         * doc/standards.texi (Standards): Link to unversioned
5121         cxx0x_status.html page.
5122
5123 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
5124
5125         PR target/43708
5126         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
5127         in addition to TREE_USED, to avoid "set but unused" warnings.
5128
5129 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
5130
5131         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
5132         (is_loop_prefetching_profitable): Do not insert prefetches
5133         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
5134         times the prefetch ahead distance.
5135
5136 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
5137
5138         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
5139         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
5140         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
5141         the unroll_factor.
5142
5143 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
5144
5145         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
5146         a diagnostic info when the insn-to-mem ratio is too small.
5147
5148 2010-05-07  Richard Guenther <rguenther@suse.de>
5149
5150         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
5151         the linker plugin.
5152         (store_arg): Queue temp_filename for deletion instead of
5153         the whole argument.
5154
5155 2010-05-07  Richard Guenther  <rguenther@suse.de>
5156
5157         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
5158         (run_gcc): Handle LTRANS phase invocation.
5159         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
5160
5161 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
5162
5163         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
5164         this is also meaningful on PARM_DECLs and RESULT_DECLs.
5165
5166 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5167
5168         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
5169
5170 2010-05-07  Richard Guenther  <rguenther@suse.de>
5171
5172         PR tree-optimization/44020
5173         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
5174         code when PRE is not yet initialized.
5175
5176 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5177
5178         * config/mips/dbxmdebug.h: Remove.
5179         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
5180
5181 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
5182
5183         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
5184         with null pointer and also warn about ordered comparison of zero with
5185         pointer if -Wextra.
5186
5187 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5188
5189         * graphite-blocking.c
5190         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
5191         * graphite-clast-to-gimple.c
5192         (clast_to_gcc_expression): Same.
5193         (precision_for_value): Same.
5194         (precision_for_interval): Same.
5195         (gcc_type_for_interval): Same.
5196         (graphite_create_new_guard): Same.
5197         (compute_bounds_for_level): Same.
5198         (graphite_create_new_loop_guard): Same.
5199         * graphite-interchange.c
5200         (build_linearized_memory_access): Same.
5201         (pdr_stride_in_loop): Same.
5202         (memory_strides_in_loop_1): Same.
5203         (memory_strides_in_loop): Same.
5204         (extend_scattering): Same.
5205         (psct_scattering_dim_for_loop_depth): Same.
5206         (pbb_number_of_iterations): Same.
5207         * graphite-poly.h
5208         (debug_iteration_domains): Same.
5209         * graphite-ppl.c
5210         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5211         (ppl_set_inhomogeneous_gmp): Same.
5212         (ppl_strip_loop): Same.
5213         (ppl_lexico_compare_linear_expressions): Same.
5214         (ppl_read_polyhedron_matrix): Same.
5215         (ppl_max_for_le_pointset): Same.
5216         * graphite-ppl.h
5217         (ppl_read_polyhedron_matrix): Same.
5218         (tree_int_to_gmp): Same.
5219         (gmp_cst_to_tree): Same.
5220         (ppl_set_inhomogeneous): Same.
5221         (ppl_set_inhomogeneous_tree): Same.
5222         (ppl_set_coef): Same.
5223         (ppl_set_coef_tree): Same.
5224         * graphite-sese-to-poly.c
5225         (build_pbb_scattering_polyhedrons): Same.
5226         (build_scop_scattering): Same.
5227         (scan_tree_for_params_right_scev): Same.
5228         (scan_tree_for_params): Same.
5229         (find_params_in_bb): Same.
5230         (find_scop_parameters): Same.
5231         (add_upper_bounds_from_estimated_nit): Same.
5232         (build_loop_iteration_domains): Same.
5233         (add_condition_to_domain): Same.
5234         (pdr_add_memory_accesses): Same.
5235
5236 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5237
5238         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
5239         CLooG's value_* macros to their respective mpz_* counterparts.
5240         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
5241         (graphite_create_new_loop_guard): Same.
5242         * graphite-interchange.c (build_linearized_memory_access): Same.
5243         (pdr_stride_in_loop): Same.
5244         (memory_strides_in_loop_1): Same.
5245         (1st_interchange_profitable_p): Same.
5246         * graphite-poly.c (extend_scattering): Same.
5247         (psct_scattering_dim_for_loop_depth): Same.
5248         (pbb_number_of_iterations): Same.
5249         (pbb_number_of_iterations_at_time): Same.
5250         * graphite-poly.h (new_1st_loop): Same.
5251         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
5252         (oppose_constraint): Same.
5253         (insert_constraint_into_matrix): Same.
5254         (ppl_set_inhomogeneous_gmp): Same.
5255         (ppl_set_coef_gmp): Same.
5256         (ppl_strip_loop): Same.
5257         (ppl_lexico_compare_linear_expressions): Same.
5258         (ppl_max_for_le_pointset): Same.
5259         (ppl_min_for_le_pointset): Same.
5260         (ppl_build_realtion): Same.
5261         * graphite-ppl.h (gmp_cst_to_tree): Same.
5262         (ppl_set_inhomogeneous): Same.
5263         (ppl_set_inhomogeneous_tree): Same.
5264         (ppl_set_coef): Same.
5265         (ppl_set_coef_tree): Same.
5266         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
5267         (build_scop_scattering): Same.
5268         (add_value_to_dim): Same.
5269         (scan_tree_for_params_right_scev): Same.
5270         (scan_tree_for_params_int): Same.
5271         (scan_tree_for_params): Same.
5272         (find_params_in_bb): Same.
5273         (find_scop_parameters): Same.
5274         (add_upper_bounds_from_estimated_nit): Same.
5275         (build_loop_iteration_domains): Same.
5276         (create_linear_expr_from_tree): Same.
5277         (add_condition_to_domain): Same.
5278         (pdr_add_memory_accesses): Same.
5279
5280 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
5281             Jason Merrill  <jason@redhat.com>
5282
5283         * c-common.c (c_common_reswords): Add nullptr.
5284         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
5285         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
5286         (gen_type_die_with_usage): Likewise.
5287         * dbxout.c (dbxout_type): Likewise.
5288         * sdbout.c (plain_type_1): Likewise.
5289
5290 2010-05-06  Jason Merrill  <jason@redhat.com>
5291
5292         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
5293         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
5294         ret appropriately.
5295         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
5296
5297         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
5298         stripping WITH_SIZE_EXPR.
5299         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
5300         change.
5301
5302 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5303
5304         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
5305         list of obsolete configurations.
5306         Disabled check for obsolete configurations.
5307         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
5308         Removed support for previous versions.
5309         * config/mips/iris.h: Removed.
5310         * config/mips/iris5.h: Removed.
5311         * config/mips/iris6.h: Merged old iris.h contents.
5312         (TARGET_IRIX): Removed.
5313         (DRIVER_SELF_SPECS): Removed mabi=32.
5314         (IDENT_ASM_OP): Removed undef.
5315         (STARTFILE_SPEC): Removed mabi=32.
5316         (ENDFILE_SPEC): Likewise.
5317         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
5318         (MACHINE_TYPE): Update for IRIX 6.5.
5319         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
5320         TARGET_IRIX by TARGET_IRIX6.
5321         (mips_file_start): Likewise.
5322         (mips_output_external): Remove IRIX 5/6 O32 support.
5323         (mips_output_function_prologue): Likewise.
5324         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
5325         TARGET_IRIX6.
5326         (TARGET_CPU_CPP_BUILTINS): Likewise.
5327         (TARGET_IRIX): Removed.
5328         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
5329         (MULTILIB_DIRNAMES): Removed 32.
5330         (MULTILIB_OSDIRNAMES): Removed ../lib.
5331         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
5332         (Specific, mips-sgi-irix5): Document removal.
5333         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
5334         Remove references to older IRIX 6 releases and the O32 ABI.
5335
5336 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
5337
5338         PR bootstrap/43994
5339         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
5340         instead of DF_REF_REAL_REG.
5341
5342 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
5343
5344         PR target/43888
5345         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
5346         handling to still return true for x64 targets.
5347
5348 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5349
5350         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
5351
5352 2010-05-06  Jan Hubicka  <jh@suse.cz>
5353
5354         PR tree-optimization/43791
5355         * ipa-inline.c (update_caller_keys): Remove bogus
5356         disregard_inline_limits check.
5357
5358 2010-05-06  Michael Matz  <matz@suse.de>
5359
5360         PR tree-optimization/43984
5361         * tree-ssa-pre.c (inserted_phi_names): Remove.
5362         (inserted_exprs): Change to bitmap.
5363         (create_expression_by_pieces): Set bits, don't append to vector.
5364         (insert_into_preds_of_block): Don't handle inserted_phi_names.
5365         (eliminate): Don't look at inserted_phi_names, remove deleted
5366         insns from inserted_exprs.
5367         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
5368         (init_pre, fini_pre): Allocate and free bitmaps.
5369         (execute_pre): Insert insns on edges before elimination.
5370
5371 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5372
5373         * tree.c (initializer_zerop): Handle STRING_CST.
5374
5375 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5376
5377         PR 40989
5378         * doc/invoke.texi (Wimplicit): Document as C only.
5379         * opts.c (common_handle_option): Add argument kind.
5380         (handle_option): Rename as read_cmdline_option. Factor out code to...
5381         (handle_option): ... here. New.
5382         (handle_options): Rename as read_cmdline_options.
5383         (decode_options): Update call.
5384         (set_option): Use option index instead of option pointer. Classify
5385         diagnostics correctly.
5386         (enable_warning_as_error): Call handle_option.
5387         * opts.h (set_option): Update declaration.
5388         (handle_option): Declare.
5389         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
5390         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
5391         * c-opts.c (set_Wimplicit): Delete.
5392         (c_family_lang_mask): New static constant.
5393         (c_common_handle_option): Add argument kind. Use handle_option
5394         instead of set_Wimplicit.
5395         (c_common_post_options): warn_implicit and warn_implicit_int
5396         are disabled by default.
5397         * c-common.c (warn_implicit): Do not define here.
5398         * c-common.h (warn_implicit): Do not declare here.
5399         (c_common_handle_option): Update declaration.
5400         * lto-opts.c (lto_reissue_options): Update call to set_option.
5401
5402 2010-05-06  Richard Guenther  <rguenther@suse.de>
5403
5404         PR tree-optimization/43571
5405         * domwalk.c (walk_dominator_tree): Walk the dominator
5406         sons in more optimal order.
5407
5408 2010-05-06  Richard Guenther  <rguenther@suse.de>
5409
5410         PR tree-optimization/43934
5411         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
5412         (stmt_cost): Likewise.
5413         (extract_true_false_args_from_phi): New helper.
5414         (determine_max_movement): For PHI nodes verify we can hoist them
5415         and compute their cost.
5416         (determine_invariantness_stmt): Handle PHI nodes.
5417         (move_computations_stmt): Likewise.  Hoist PHI nodes in
5418         if-converted form using COND_EXPRs.
5419         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
5420         (tree_ssa_lim): Likewise.
5421         * tree-flow.h (tree_ssa_lim): Adjust prototype.
5422         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
5423
5424 2010-05-06  Richard Guenther  <rguenther@suse.de>
5425
5426         PR tree-optimization/43987
5427         * tree-ssa-structalias.c (could_have_pointers): For possibly
5428         address-taken variables force pointers to be recorded.
5429         (create_variable_info_for_1): Likewise.
5430         (push_fields_onto_fieldstack): Pass in wheter all fields
5431         must have pointers.
5432         (find_func_aliases): Query types instead of vars whether
5433         they contain pointers where appropriate.
5434
5435 2010-05-06  Jan Hubicka  <jh@suse.cz>
5436
5437         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
5438         (record_reference, mark_address, mark_load, mark_store): Record
5439         references.
5440         (record_references_in_initializer): Update call of record_references.
5441         (rebuild_cgraph_edges): Remove all references before rebuiding.
5442         * cgraph.c (cgraph_create_node): Clear ref list.
5443         (cgraph_remove_node): Remove references.
5444         (dump_cgraph_node): Dump references.
5445         (cgraph_clone_node): Clone references.
5446         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
5447         (struct cgraph_node, varpool_node): Add ref_lst.
5448         * ipa-ref.c: New file.
5449         * ipa-ref.h: New file.
5450         * ipa-ref-inline.h: New file.
5451         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
5452         (referenced_from_other_partition_p): New function.
5453         (lto_output_varpool_node): Take set arugment; call
5454         referenced_from_other_partition.
5455         (lto_output_ref): New.
5456         (add_references): New.
5457         (output_refs): New.
5458         (output_cgraph): Compute boundary based on references; output refs.
5459         (output_varpool): Accept cgraph_node_set argument.
5460         (input_ref): New.
5461         (input_refs): New.
5462         (input_cgraph): Call input_refs.
5463         * lto-section-in.c (lto_section_name): Add refs.
5464         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
5465         (ipa-ref.o): New file.
5466         * varpool.c (varpool_node): Clear ipa ref list.
5467         (varpool_remove_node): Remove references.
5468         (dump_varpool_node): Dump references.
5469         (varpool_assemble_decl): Only compile finalized ones.
5470         (varpool_extra_name_alias): Initialize ref list.
5471         * lto-streamer.c (lto-get_section_name): Add .refs section.
5472         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
5473         (referenced_from_other_partition_p): Declared.
5474
5475 2010-05-06  Ira Rosen  <irar@il.ibm.com>
5476
5477         PR tree-optimization/43901
5478         * tree-vect-stmts.c (vectorizable_call): Assert that vector
5479         type is not NULL if it's transformation phase, and return
5480         FALSE if it's analysis.
5481         (vectorizable_conversion, vectorizable_operation,
5482         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
5483
5484 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
5485
5486         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
5487         Delete.
5488         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
5489         New define.
5490         * config/mips/mips-protos.h
5491         (mips_small_register_classes_for_mode_p): Delete prototype.
5492
5493 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
5494
5495         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
5496         * config/arm/arm.c (multiple_operation_profitable_p,
5497         compute_offset_order): New static functions.
5498         (load_multiple_sequence, store_multiple_sequence): Use them.
5499         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
5500         memory offsets, not register numbers.
5501         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
5502
5503 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
5504
5505         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
5506         (get_pending_sizes, put_pending_size, put_pending_sizes):
5507         Update the uses of pending_sizes.
5508         * c-decl.c (store_parm_decls): Likewise.
5509         * c-tree.h (struct c_arg_info): Likewise.
5510         * tree.h: Update the prototype for get_pending_sizes and
5511         put_pending_sizes.
5512
5513 2010-05-05  Jason Merrill  <jason@redhat.com>
5514
5515         PR debug/43370
5516         * c-common.c (handle_aligned_attribute): Respect
5517         ATTR_FLAG_TYPE_IN_PLACE.
5518
5519         PR testsuite/43758
5520         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
5521         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5522         (TARGET_INITIALIZER): Use it.
5523         * c-common.c (attribute_takes_identifier_p): Call it.
5524         * c-common.h: Update prototype.
5525         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
5526         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5527
5528 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
5529
5530         PR debug/43950
5531         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
5532         DW_ID_down_case for Fortran compilation units.
5533
5534 2010-05-05  Jan Hubicka  <jh@suse.cz>
5535
5536         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
5537         handle aliases.
5538
5539 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
5540
5541         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
5542         a variable-sized RESULT_DECL.
5543
5544 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
5545
5546         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
5547
5548 2010-05-05  Jason Merrill  <jason@redhat.com>
5549
5550         PR c++/43787
5551         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
5552         returns GS_OK.
5553         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
5554
5555 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
5556             Jakub Jelinek  <jakub@redhat.com>
5557
5558         PR debug/43478
5559         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
5560         (dead_debug_init, dead_debug_finish): New functions.
5561         (dead_debug_add, dead_debug_insert_before): Likewise.
5562         (df_note_bb_compute): Initialize a dead_debug object, add dead
5563         debug uses to it, insert debug bind insns before death insns,
5564         reset debug insns that refer to pending uses at the end.
5565         * rtl.h (make_debug_expr_from_rtl): New prototype.
5566         * varasm.c (make_debug_expr_from_rtl): New function.
5567
5568 2010-05-05  Jan Hubicka  <jh@suse.cz>
5569
5570         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
5571         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
5572         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
5573         lto_varpool_encoder_deref, lto_varpool_encoder_size,
5574         lto_varpool_encoder_encode_initializer_p,
5575         lto_set_varpool_encoder_encode_initializer): New functions.
5576         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
5577         call output_varpool.
5578         (input_varpool_node): Do not always set analyzed.
5579         (input_cgraph_1): Return vector of cgraph nodes.
5580         (input_varpool_1): Return vector of varpools.
5581         (input_cgraph): Free the vectors.
5582         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5583         output only initializers needed.
5584         (lto_output): Only call output_cgraph.
5585         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
5586         * lto-section-out.c (lto_new_out_decl_state): Initialize
5587         state->varpool_node_encoder.
5588         * lto-streamer.h (lto_varpool_encoder_d): New.
5589         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
5590         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
5591         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
5592         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
5593         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
5594         Declare.
5595         (output_varpool, input_varpool): Remove declarations.
5596
5597 2010-05-05  Jan Hubicka  <jh@suse.cz>
5598
5599         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
5600         with body can prevail.
5601
5602 2010-05-05  Jan Hubicka  <jh@suse.cz>
5603
5604         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
5605         size.
5606
5607 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5608
5609         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
5610
5611         * gengtype.h (erro_at_line): Constify pos argument.
5612
5613         * gengtype.c: Include hashtab.h.
5614         (enum gc_used): Document GC_MAYBE_POINTED_TO.
5615         (error_at_line): Constify pos argument.
5616         (do_typedef): Initialize p->opt field.
5617         (get_file_gtfilename): Fix comment typo.
5618         (struct walk_type_data): Constify line field.
5619         (get_output_file_for_structure): New function.
5620         (write_local_func_for_structure): Constify orig_s argument.
5621         Use get_output_file_for_structure.
5622         (write_func_for_structure): Use get_output_file_for_structure.
5623         (INDENT): New define.
5624         (dump_pair, dump_type, dump_type_list, dump_typekind)
5625         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
5626         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
5627         functions.
5628         (seen_types): New variable.
5629         (main): New variable do_dump.  Process "-d" command line option.
5630         Call dump_everything if dump requested.
5631
5632 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
5633
5634         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
5635         in a temporary instead of invoking the macro multiple times.
5636         (track_expr_p): Likewise.
5637
5638 2010-05-04  Neil Vachharajani <nvachhar@google.com>
5639
5640         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
5641         per new semantics.
5642         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
5643         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
5644         conditions for printing notes.
5645         * common.opt (-Wcoverage-mismatch): Allow negative, default to
5646         true, update documentation.
5647         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
5648
5649 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
5650
5651         PR c/43981
5652         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
5653         on dimen.
5654
5655 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
5656
5657         PR target/43799
5658         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
5659         (*sse_prologue_save_insn1): Likewise.
5660         (SSE prologue save splitter): Likewise.
5661
5662 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
5663
5664         * tree.c (free_lang_data_in_one_sizepos): New inline function.
5665         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
5666         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
5667         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
5668         all decls.  Call it on DECL_FIELD_OFFSET of fields.
5669         (find_decls_types_r): Follow DECL_VALUE_EXPR.
5670         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
5671
5672 2010-05-04  Martin Jambor  <mjambor@suse.cz>
5673
5674         * tree-sra.c (build_access_from_expr_1): The first parameter type
5675         changed to simple tree.
5676         (build_access_from_expr): Likewise, gsi parameter was eliminated.
5677         (scan_assign_result): Renamed to assignment_mod_result, enum elements
5678         renamed as well.
5679         (build_accesses_from_assign): Removed all parameters except for a
5680         simple gimple statement.  Now returns a simple bool.
5681         (scan_function): All non-analysis parts moved to separate functions
5682         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
5683         parameters and updated both callers.
5684         (sra_modify_expr): Removed parameter data.
5685         (sra_modify_function_body): New function.
5686         (perform_intra_sra): Call sra_modify_function_body to modify the
5687         function body.
5688         (replace_removed_params_ssa_names): Parameter data changed into
5689         adjustments vector.
5690         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
5691         changed the parameter dont_convert to convert with the opposite
5692         meaning.
5693         (sra_ipa_modify_assign): Parameter data changed into adjustments
5694         vector, return value changed to bool.
5695         (ipa_sra_modify_function_body): New function.
5696         (sra_ipa_reset_debug_stmts): Updated a comment.
5697         (modify_function): Use ipa_sra_modify_function_body to modify function
5698         body.
5699
5700 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
5701
5702         PR middle-end/43671
5703         * alias.c (true_dependence): Handle the same VALUE in x and mem.
5704         (canon_true_dependence): Likewise.
5705         (write_dependence_p): Likewise.
5706
5707 2010-05-04  Jan Hubicka  <jh@suse.cz>
5708
5709         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
5710         * cgraphbuild.c: Include ipa-utils.h
5711         (record_reference_ctx): New struct.
5712         (record_reference): Simplify to work on initializers; not statements.
5713         (mark_address, mark_load, mark_store): New.
5714         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
5715         walk PHI nodes too.
5716         (record_references_in_initializer): Update use of record_reference.
5717         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
5718         walk PHI nodes too.
5719
5720 2010-05-04  Jan Hubicka  <jh@suse.cz>
5721
5722         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
5723         node will be removed anyway.
5724         (lto_varpool_replace_node): Allow also unanalyzed nodes;
5725         relink aliases of node into prevailing node.
5726         * varpool.c (varpool_remove_node): Remove aliases properly;
5727         when removing node, remove all its aliases too; remove DECL_INITIAL
5728         of removed node; ggc_free the varpool node.
5729
5730 2010-05-04  Richard Guenther  <rguenther@suse.de>
5731
5732         PR tree-optimization/43879
5733         * tree-ssa-structalias.c (alias_get_name): Use
5734         DECL_ASSEMBLER_NAME if available.
5735         (create_function_info_for): Return the varinfo node.
5736         (ipa_pta_execute): Associate same-body aliases and extra names
5737         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
5738
5739 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
5740
5741         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
5742
5743 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
5744
5745         PR bootstrap/43964
5746         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
5747         only if HONOR_REG_ALLOC_ORDER is not defined.
5748
5749 2010-05-04  Richard Guenther  <rguenther@suse.de>
5750
5751         PR tree-optimization/43949
5752         * tree-vrp.c (extract_range_from_binary_expr): Only handle
5753         TRUNC_MOD_EXPR.
5754
5755 2010-04-26  Jason Merrill  <jason@redhat.com>
5756
5757         * c.opt (-fstrict-enums): New.
5758         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
5759
5760 2010-05-03  David Ung <davidu@mips.com>
5761             James E. Wilson  <wilson@codesourcery.com>
5762
5763         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
5764         emit the trap instruction before the divide for TUNE_74K.
5765
5766 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
5767
5768         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
5769         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
5770         based on the above, for new target hook.
5771
5772         * hooks.c (hook_bool_mode_true): New generic hook.
5773         * hooks.h (hook_bool_mode_true): Add prototype.
5774
5775         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
5776         target hook.
5777         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
5778         target hook, set to hook_bool_mode_false.
5779         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
5780         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
5781         with targetm.small_register_classes_for_mode_p.
5782         (find_reusable_reload): Likewise.
5783         (combine_reloads): Likewise.
5784         * reload1.c (reload_as_needed): Likewise.
5785         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
5786         * ifcvt.c (noce_process_if_block, check_cond_move_block,
5787         dead_or_predicable): Likewise.
5788         * regmove.c (optimize_reg_copy_1): Likewise.
5789         * calls.c (prepare_call_address): Likewise.
5790         (precompute_register_parameters): Likewise.
5791
5792         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
5793         hook definition.
5794         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
5795         implementation of the hook that considers all register classes
5796         small except for SH64.
5797         (sh_override_options): Use the new hook.
5798         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
5799         Add prototype.
5800
5801         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
5802         hook definition.
5803         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
5804         implementation of the hook that considers all register classes
5805         small for THUMB1.
5806         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
5807         Add prototype.
5808
5809         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
5810         hook definition.
5811         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
5812         implementation of the hook that considers all register classes
5813         small for MIPS16.
5814         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
5815         Add prototype.
5816
5817         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
5818         hook definition.
5819         * config/m32c/m32c.h: Likewise.
5820         * config/pdp11/pdp11.h: Likewise.
5821         * config/avr/avr.h: Likewise.
5822         * config/xtensa/xtensa.h: Likewise.
5823         * config/m68hc11/m68hc11.h: Likewise.
5824         * config/mn10300/mn10300.h: Likewise.
5825         * config/mcore/mcore.h: Likewise.
5826         * config/h8300/h8300.h: Likewise.
5827         * config/bfin/bfin.h: Likewise.
5828
5829         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
5830         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
5831
5832 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
5833
5834         * double-int.h (tree_to_double_int): Remove macro.
5835         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
5836         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
5837         (tree_to_double_int): New function.
5838         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
5839         Move ...
5840         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
5841
5842 2010-05-03  Richard Guenther  <rguenther@suse.de>
5843
5844         PR tree-optimization/43971
5845         * tree-ssa-structalias.c (get_constraint_for_1): Fix
5846         constraints in the !flag_delete_null_pointer_checks case.
5847
5848 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
5849
5850         PR debug/43972
5851         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
5852         result mode matches original rtl mode.
5853
5854 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
5855
5856         PR target/43888
5857         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
5858
5859 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
5860
5861         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
5862         when processing flag options.
5863
5864 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
5865
5866         * gcov-iov.c (main): Change format string placeholder
5867         from %#08x to 0x%08x.
5868         * genchecksum.c (dosum): Change format string placeholder
5869         from %#02x to 0x%02x.
5870
5871 2010-05-02  Richard Guenther  <rguenther@suse.de>
5872
5873         PR tree-optimization/43879
5874         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
5875
5876 2010-05-02  Bruno Haible  <bruno@clisp.org>
5877
5878         * doc/extend.texi (Function Attributes): Fix a typo.
5879
5880 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
5881
5882         Revert:
5883         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
5884         placeholder from 0x%x to %#x.
5885         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
5886         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5887         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5888         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5889         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5890         * config/i386/i386.c (ix86_target_string): Ditto.
5891         * config/i386/i386.c (output_pic_addr_const): Ditto.
5892         (print_operand): Ditto.
5893
5894 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
5895
5896         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
5897         placeholder from 0x%x to %#x.
5898         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
5899         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
5900         (ASM_OUTPUT_DEBUG_DATA): Ditto.
5901         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
5902         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
5903         * optc-gen.awk: Ditto.
5904         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
5905         (HOST_WIDE_INT_PRINT_HEX): Ditto.
5906         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
5907         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
5908
5909 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
5910
5911         * target.h (struct calls): Add function_value_regno_p field.
5912         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
5913         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
5914         * targhooks.c (default_function_value_regno_p): New function.
5915         * targhooks.h (default_function_value_regno_p): Declare function.
5916         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
5917         * builtins.c. (apply_result_size): (Ditto.).
5918         * combine.c. (likely_spilled_retval_p): (Ditto.).
5919         * mode-switching.c. Include 'target.h'.
5920         (create_pre_exit): Use function_value_regno_p hook.
5921         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
5922         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
5923         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
5924
5925         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
5926         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
5927         (ix86_function_value_regno_p): Declare as static, change argument
5928         type to const unsigned int.
5929         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
5930
5931 2010-05-01  Richard Guenther  <rguenther@suse.de>
5932
5933         PR tree-optimization/43949
5934         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
5935         types.
5936         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
5937
5938 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
5939
5940         * rtl.h (CONST_DOUBLE_P): Define.
5941         (rtx_to_double_int): Declare.
5942         * emit-rtl.c (rtx_to_double_int): New function.
5943         * dwarf2out.c (insert_double): New function.
5944         (loc_descriptor, add_const_value_attribute): Clean up, use
5945         rtx_to_double_int and insert_double functions.
5946
5947 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
5948
5949         * doc/extend.texi (Inline): Add missing return keyword to examples.
5950         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
5951         "command-line".
5952
5953 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
5954
5955         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
5956         the variable part of the offset as well.  Use highest_pow2_factor for
5957         all alignment checks.
5958
5959 2010-04-30  Richard Guenther  <rguenther@suse.de>
5960
5961         PR tree-optimization/43879
5962         * tree-ssa-structalias.c (type_could_have_pointers): Functions
5963         can have pointers.
5964
5965 2010-04-30  Jan Hubicka  <jh@suse.cz>
5966
5967         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
5968         varpool.
5969         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
5970
5971 2010-04-30  Jan Hubicka  <jh@suse.cz>
5972
5973         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
5974         New.
5975         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
5976         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
5977         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
5978         cgraph_node_set_needs_ltrans_p): Remove.
5979
5980 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
5981
5982         * sdbout.c: Include vec.h, do not include varray.h.
5983         (deferred_global_decls, sdbout_global_decl,
5984         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
5985         * toplev.c: Do not include varray.h.
5986         (dump_memory_report): Do not dump VARRAY statistics.
5987         * gengtype.c (open_base_file): Ignore varray.h.
5988         * Makefile.in: Update for abovementioned changes.
5989         Remove all traces of varray.c and varray.h.
5990         * varray.c: Remove file.
5991         * varray.h: Remove file.
5992
5993 2010-04-30  Jan Hubicka  <jh@suse.cz>
5994
5995         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
5996         references.
5997
5998 2010-04-30  Jan Hubicka  <jh@suse.cz>
5999
6000         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
6001         needed.
6002
6003 2010-04-30  Richard Guenther  <rguenther@suse.de>
6004
6005         * tree-ssa-structalias.c (get_constraint_for_1): Generate
6006         constraints for CONSTRUCTOR.
6007
6008 2010-04-30  Richard Guenther  <rguenther@suse.de>
6009
6010         PR lto/43946
6011         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
6012         first after all lowering passes.
6013
6014 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
6015
6016         * toplev.c: Include varray.h for statistics dumping.
6017         * tree.h: Do not declare varray_head_tag.
6018         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
6019         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
6020         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
6021         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
6022         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
6023         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
6024         c-common.c, c-common.h, reg-stack.c, basic-block.h,
6025         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
6026         include varray.h.
6027         * Makefile.in: Update for abovementioned changes.
6028
6029 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
6030
6031         PR debug/43942
6032         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
6033
6034 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
6035
6036         * config/picochip/picochip.c (picochip_legitimize_address): Define.
6037         Use this function to do machine-specific conversion.
6038         (picochip_legitimize_reload_address): Likewise.
6039         (picochip_legitimate_address_p): Check valid base register only if
6040         strict.
6041         (picochip_check_conditional_copy): Check for modw only if opnd is
6042         register.
6043         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
6044         to call the function in c.
6045         * config/picochip/picochip-protos.h
6046         (picochip_legitimize_reload_address): Define.
6047         * config/picochip/picochip.md (supported_compare1): Define.
6048
6049 2010-04-30  Jan Hubicka  <jh@suse.cz>
6050
6051         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
6052         (cgraph_global_info): Remove inlined.
6053         (LTO_cgraph_tag_names): Remove.
6054         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
6055         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
6056         simplify cgraph tags and document.
6057         (lto_output_node): Use only LTO_cgraph_unavail_node and
6058         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
6059         for_functions_valid, global info, process and output flags.
6060         (input_overwrite_node): Initialize estimated stack size and
6061         estimated growth.  Do not read flags we no longer store.
6062         (input_node): Likewise do not read info no longer stored.
6063         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
6064         flag.
6065
6066 2010-04-30  Richard Guenther  <rguenther@suse.de>
6067
6068         PR tree-optimization/43879
6069         * tree-ssa-structalias.c (get_constraint_for_1): Properly
6070         handle non-zero initializers.
6071
6072 2010-04-30  Richard Guenther  <rguenther@suse.de>
6073
6074         * builtins.c (fold_builtin_1): Delete free (0).
6075
6076 2010-04-29  Jan Hubicka  <jh@suse.cz>
6077
6078         * gengtype.c (open_base_files): Add lto-streamer.h
6079         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
6080         (pass_ipa_cp): GGC collect.
6081         * toplev. (compile_file): Do not output symbols.
6082         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
6083         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
6084         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
6085         * lto-section-in.c: Include ggc.h
6086         (lto_new_in_decl_state): Alloc in GGC.
6087         (lto_delete_in_decl_state): Likewise.
6088         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
6089         Collect.
6090
6091 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
6092
6093         PR target/42895
6094         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
6095         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
6096         (HONOR_REG_ALLOC_ORDER): Describe new macro.
6097         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
6098         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
6099         account only if HONOR_REG_ALLOC_ORDER is not defined.
6100         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
6101         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
6102
6103 2010-04-29  Jon Grant  <04@jguk.org>
6104
6105         * collect2.c (vflag): Change type from int to bool.
6106         (debug): Likewise.
6107         (helpflag): New global bool.
6108         (main): Set vflag and debug with boolean, not integer truth values.
6109         Accept new "--help" option and output usage text if found.
6110         * collect2.h (vflag): Update prototype.
6111         (debug): Likewise.
6112
6113 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
6114
6115         PR bootstrap/43936
6116         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
6117
6118 2010-04-29  Richard Guenther  <rguenther@suse.de>
6119
6120         PR bootstrap/43935
6121         * plugin.h (invoke_plugin_callbacks): Annotate arguments
6122         with ATTRIBUTE_UNUSED.
6123
6124 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
6125
6126         PR target/43921
6127         * config/i386/i386.c (get_some_local_dynamic_name): Replace
6128         INSN_P with NONDEBUG_INSN_P.
6129         (distance_non_agu_define): Likewise.
6130         (distance_agu_use): Likewise.
6131
6132 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
6133
6134         From Dominique d'Humieres <dominiq@lps.ens.fr>
6135         PR bootstrap/43858
6136         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
6137         test_set.
6138
6139 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
6140
6141         * plugin.h (invoke_plugin_callbacks): New inline function.
6142         * plugin.c (flag_plugin_added): New global flag.
6143         (add_new_plugin): Initialize above flag.
6144         (invoke_plugin_callbacks): Rename to ...
6145         (invoke_plugin_callbacks_full): ... this.
6146
6147 2010-04-28  Jan Hubicka  <jh@suse.cz>
6148
6149         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
6150         (lto_varpool_replace_node): New.
6151         (lto_symtab_resolve_symbols): Resolve varpool nodes.
6152         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
6153         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
6154         * cgraph.h (varpool_node_ptr): New type.
6155         (varpool_node_ptr): New vector.
6156         (varpool_node_set_def): New structure.
6157         (varpool_node_set): New type.
6158         (varpool_node_set): New vector.
6159         (varpool_node_set_element_def): New structure.
6160         (varpool_node_set_element, const_varpool_node_set_element): New types.
6161         (varpool_node_set_iterator): New type.
6162         (varpool_node): Add prev pointers, add used_from_other_partition,
6163         in_other_partition.
6164         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
6165         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
6166         varpool_get_node, varpool_remove_node): Declare.
6167         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
6168         varpool_node_set_size): New inlines.
6169         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
6170         * tree-pass.h (varpool_node_set_def): Forward declare.
6171         (ipa_opt_pass_d): Summary writting takes vnode sets too.
6172         (ipa_write_optimization_summaries): Update prototype.
6173         * ipa-cp.c (ipcp_write_summary): Update.
6174         * ipa-reference.c (ipa_reference_write_summary): Update.
6175         * lto-cgraph.c (lto_output_varpool_node): New static function.
6176         (output_varpool): New function.
6177         (input_varpool_node): New static function.
6178         (input_varpool_1): New function.
6179         (input_cgraph): Input varpool.
6180         * ipa-pure-const.c (pure_const_write_summary): Update.
6181         * lto-streamer-out.c (lto_output): Update, output varpool too.
6182         (write_global_stream): Kill WPA hack.
6183         (produce_asm_for_decls): Update.
6184         (output_alias_pair_p): Handle variables.
6185         (output_unreferenced_globals): Output only needed partition of varpool.
6186         * ipa-inline.c (inline_write_summary): Update.
6187         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
6188         cgraph.
6189         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
6190         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
6191         varpool_node_set_new, varpool_node_set_add,
6192         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
6193         debug_varpool_node_set): New functions.
6194         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
6195         (execute_one_pass): Process new decls too.
6196         (ipa_write_summaries_2): Pass around vsets.
6197         (ipa_write_summaries_1): Likewise.
6198         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
6199         to add.
6200         (ipa_write_optimization_summaries_1): Pass around vsets.
6201         (ipa_write_optimization_summaries): Likewise.
6202         * varpool.c (varpool_get_node): New.
6203         (varpool_node): Update doubly linked lists.
6204         (varpool_remove_node): New.
6205         (dump_varpool_node): More dumping.
6206         (varpool_enqueue_needed_node): Update doubly linked lists.
6207         (decide_is_variable_needed): Kill ltrans hack.
6208         (varpool_finalize_decl): Kill lto hack.
6209         (varpool_assemble_decl): Skip decls in other partitions.
6210         (varpool_assemble_pending_decls): Update doubly linkes lists.
6211         (varpool_empty_needed_queue): Likewise.
6212         (varpool_extra_name_alias): Likewise.
6213         * lto-streamer.c (lto_get_section_name): Add vars section.
6214         * lto-streamer.h (lto_section_type): Update.
6215         (output_varpool, input_varpool): Declare.
6216
6217 2010-04-28  Mike Stump  <mikestump@comcast.net>
6218
6219         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
6220
6221 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
6222
6223         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
6224         record or union type with RECORD_OR_UNION_TYPE_P predicate.
6225         (lto_input_ts_type_tree_pointers): Likewise.
6226         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
6227         (lto_output_ts_type_tree_pointers): Likewise.
6228
6229 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
6230
6231         Uniquization of constants at the Tree level
6232         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
6233         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
6234         bit to the end.
6235         (tree_output_constant_def): Declare.
6236         * gimplify.c (gimplify_init_constructor): When using block copy, first
6237         uniquize the constant constructor on the RHS.
6238         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
6239         DECL_IN_CONSTANT_POOL flag.
6240         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
6241         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
6242         constant pool.
6243         (assemble_variable): Deal with symbols belonging to the tree constant
6244         pool.
6245         (get_constant_section): Add ALIGN parameter and simplify.
6246         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
6247         (assemble_constant_contents): Use the expression of the VAR_DECL.
6248         (output_constant_def_contents): Use the alignment of the VAR_DECL.
6249         (tree_output_constant_def): New global function.
6250         (mark_constant): Use the expression of the VAR_DECL.
6251         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
6252         its expression.
6253         (output_object_block): Likewise and assemble the expression.
6254
6255 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
6256
6257         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
6258         hash_tree, eq_tree): New tree hash table.
6259         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
6260         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
6261         lto_orig_address_remove): Reimplement.
6262
6263 2010-04-28  Xinliang David Li  <davidxl@google.com>
6264
6265         PR c/42643
6266         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
6267         (compute_uninit_opnds_pos): New function.
6268         (is_non_loop_exit_postdominating): New function.
6269         (compute_control_dep_chain): New function.
6270         (find_pdom): New function.
6271         (convert_control_dep_chain_into_preds): New function.
6272         (find_predicates): New function.
6273         (find_control_equiv_block): New function.
6274         (collect_phi_def_edges): New function.
6275         (find_def_preds): New function.
6276         (find_dom): New function.
6277         (dump_predicates): New function.
6278         (get_cmp_code): New function.
6279         (is_value_included_in): New function.
6280         (find_matching_predicate_in_rest_chains): New function.
6281         (use_pred_not_overlap_with_undef_path_pred): New function.
6282         (is_use_properly_guarded): New function.
6283         (normalize_cond_1): New function.
6284         (is_and_or_or): New function.
6285         (normalize_cond): New function.
6286         (is_gcond_subset_of): New function.
6287         (is_subset_of_any): New function.
6288         (is_or_set_subset_of): New function.
6289         (is_and_set_subset_of): New function.
6290         (is_norm_cond_subset_of): New function.
6291         (is_pred_expr_subset_of): New function.
6292         (is_pred_chain_subset_of): New function.
6293         (is_included_in): New function.
6294         (is_superset_of): New function.
6295         (find_uninit_use): New function.
6296         (warn_uninitialized_phi): New function.
6297         (compute_possibly_undefined_names): New function.
6298         (ssa_undefined_value_p): New function.
6299         (execute_late_warn_uninitialized): New function.
6300         * tree-ssa.c (ssa_undefined_value_p): Removed.
6301         (warn_uninit): Changed to extern.
6302         (warn_uninitialized_phi): Removed.
6303         (warn_uninitialized_vars): Changed to extern.
6304         (execute_late_warn_uninitialized): Removed
6305         * tree-flow.h: Add new prototypes.
6306         * timevar.def: Add new time variable.
6307         * Makefile.in: Add new build file.
6308
6309 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
6310
6311         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
6312         type if available.
6313
6314 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6315
6316         PR target/22224
6317         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
6318
6319 2010-04-28  Martin Jambor  <mjambor@suse.cz>
6320
6321         * cgraph.h (struct cgraph_node): New field indirect_calls.
6322         (struct cgraph_indirect_call_info): New type.
6323         (struct cgraph_edge): Removed field indirect_call. New fields
6324         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
6325         (cgraph_create_indirect_edge): Declare.
6326         (cgraph_make_edge_direct): Likewise.
6327         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
6328         * ipa-prop.h (struct ipa_param_call_note): Removed.
6329         (struct ipa_node_params): Removed field param_calls.
6330         (ipa_create_all_structures_for_iinln): Declare.
6331         * cgraph.c: Described indirect edges and uids in initial comment.
6332         (cgraph_add_edge_to_call_site_hash): New function.
6333         (cgraph_edge): Search also among the indirect edges, use
6334         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
6335         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
6336         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
6337         site hash.
6338         (initialize_inline_failed): Assign a reason to indirect edges.
6339         (cgraph_create_edge_1): New function.
6340         (cgraph_create_edge): Moved some functionality to
6341         cgraph_create_edge_1.
6342         (cgraph_create_indirect_edge): New function.
6343         (cgraph_edge_remove_callee): Add an assert checking for
6344         non-indirectness.
6345         (cgraph_edge_remove_caller): Special-case indirect edges.
6346         (cgraph_remove_edge): Likewise.
6347         (cgraph_set_edge_callee): New function.
6348         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
6349         (cgraph_make_edge_direct): New function.
6350         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
6351         the declaration of the call statement matches.
6352         (cgraph_node_remove_callees): Special-case indirect edges.
6353         (cgraph_clone_edge): Likewise.
6354         (cgraph_clone_node): Clone also the indirect edges.
6355         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
6356         indirect_call, dump count of indirect_calls edges.
6357         * ipa-prop.c (iinlining_processed_edges): New variable.
6358         (ipa_note_param_call): Create indirect edges instead of
6359         creating notes.  New parameter node.
6360         (ipa_analyze_call_uses): New parameter node, pass it on to
6361         ipa_note_param_call.
6362         (ipa_analyze_stmt_uses): Likewise.
6363         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
6364         (print_edge_addition_message): Work on edges rather than on notes.
6365         (update_call_notes_after_inlining): Likewise, renamed to
6366         update_indirect_edges_after_inlining.
6367         (ipa_create_all_structures_for_iinln): New function.
6368         (ipa_free_node_params_substructures): Do not free notes.
6369         (ipa_edge_duplication_hook): Propagate bits within
6370         iinlining_processed_edges bitmap.
6371         (ipa_node_duplication_hook): Do not duplicate notes.
6372         (free_all_ipa_structures_after_ipa_cp): Renamed to
6373         ipa_free_all_structures_after_ipa_cp.
6374         (free_all_ipa_structures_after_iinln): Renamed to
6375         ipa_free_all_structures_after_iinln.
6376         (ipa_write_param_call_note): Removed.
6377         (ipa_read_param_call_note): Removed.
6378         (ipa_write_indirect_edge_info): New function.
6379         (ipa_read_indirect_edge_info): Likewise.
6380         (ipa_write_node_info): Do not stream notes, do stream information
6381         in indirect edges.
6382         (ipa_read_node_info): Likewise.
6383         (lto_ipa_fixup_call_notes): Removed.
6384         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
6385         * ipa-inline.c (pass_ipa_inline): Likewise.
6386         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
6387         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
6388         * tree-inline.c (copy_bb): Removed an unnecessary double check for
6389         is_gimple_call.
6390         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
6391         edges.
6392         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
6393         (output_cgraph): Stream also indirect edges.
6394         (lto_output_edge): Added capability to stream indirect edges.
6395         (input_edge): Likewise.
6396         (input_cgraph_1): Likewise.
6397         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
6398         of indirect edges.
6399
6400 2010-04-28  Richard Guenther  <rguenther@suse.de>
6401
6402         PR tree-optimization/43879
6403         PR tree-optimization/43909
6404         * tree-ssa-structalias.c (struct variable_info): Add
6405         only_restrict_pointers flag.
6406         (new_var_info): Initialize it.  Increment stats.total_vars here.
6407         (create_function_info_for): Do not increment stats.total_vars here.
6408         (get_function_part_constraint): Fix build with C++.
6409         (insert_into_field_list): Remove.
6410         (push_fields_onto_fieldstack): Properly merge fields.
6411         (create_variable_info_for): Split and simplify.
6412         (create_variable_info_for_1): New piece.
6413         (intra_create_variable_infos): Properly make restrict constraints
6414         from parameters.
6415
6416 2010-04-28  Richard Guenther  <rguenther@suse.de>
6417
6418         PR c++/43880
6419         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
6420
6421 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6422             Jan Hubicka <hubicka@ucw.cz>
6423
6424         * doc/invoke.texi (-Wsuggest-attribute=const,
6425         -Wsuggest-attribute=pure): Document.
6426         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
6427         (function_always_visible_to_compiler_p,
6428         suggest_attribute, warn_function_pure, warn_function_const):
6429         New functions.
6430         (check_call): Improve debug info.
6431         (analyze_function): Do not check availability.
6432         (add_new_function): Check availability.
6433         (propagate): Output warnings.
6434         (skip_function_for_local_pure_const): New function.
6435         (local_pure_const): Use it; output warnings.
6436         * common.opt (Wsuggest-attribute=const,
6437         Wsuggest-attribute=pure): New.
6438
6439 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
6440
6441         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
6442         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
6443         or DW_CFA_def_cfa_offset{,_sf}.
6444
6445 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
6446
6447         * tree.h: Fix truncated long macros.
6448
6449 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
6450
6451         * collect2.c (TARGET_64BIT): Redefine to target's default.
6452         * tlink.c: Likewise.
6453         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
6454         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
6455         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
6456         for underscoring __USER_LABEL_PREFIX__.
6457         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
6458         (SUB_LINK_ENTRY32): New.
6459         (SUB_LINK_ENTRY64): New.
6460         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
6461         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
6462         (SUB_LINK_ENTRY64): New.
6463         (SUB_LINK_ENTRY): New.
6464         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
6465         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
6466         x64 target is choosen.
6467         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
6468         * configure: Regenerated.
6469         * configure.ac (leading-mingw64-underscores): Option added.
6470
6471 2010-04-27  Jan Hubicka  <jh@suse.cz>
6472
6473         * doc/invoke.texi (-fipa-profile): Document.
6474         * opts.c (decode_options): Enable ipa-profile at -O1.
6475         * timevar.def (TV_IPA_PROFILE): Define.
6476         * common.opt (fipa-profile): Add.
6477         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
6478         flag for clones.
6479         (cgraph_propagate_frequency): Handle only local ones.
6480         * tree-pass.h (pass_ipa_profile): Declare.
6481         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
6482         (pass_ipa_profile): Use TV_IPA_PROFILE.
6483         * ipa.c (ipa_profile): New function.
6484         (gate_ipa_profile): Likewise.
6485         (pass_ipa_profile): New global variable.
6486         * passes.c (pass_ipa_profile): New.
6487
6488 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
6489
6490         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
6491
6492 2010-04-27  Martin Jambor  <mjambor@suse.cz>
6493
6494         PR middle-end/43812
6495         * ipa.c (dissolve_same_comdat_group_list): New function.
6496         (function_and_variable_visibility): Call
6497         dissolve_same_comdat_group_list when comdat group contains external or
6498         newly local nodes.
6499         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
6500         lists are circular and that they contain only DECL_ONE_ONLY nodes.
6501
6502 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
6503
6504         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
6505         (const_hash_1) <VECTOR_CST>: New case.
6506         (compare_constant) <VECTOR_CST>: Likewise.
6507         <ADDR_EXPR>: Deal with LABEL_REFs.
6508         (copy_constant) <VECTOR_CST>: New case.
6509
6510 2010-04-27  Jan Hubicka  <jh@suse.cz>
6511
6512         * cgraph.c (cgraph_propagate_frequency): New function.
6513         * cgraph.h (cgraph_propagate_frequency): Declare.
6514         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
6515         cgraph_propagate_frequency.
6516
6517 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
6518
6519         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
6520
6521 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
6522
6523         PR target/40657
6524         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
6525         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
6526         here to determine which regs to push and how much stack to reserve.
6527
6528 2010-04-27  Jie Zhang  <jie@codesourcery.com>
6529
6530         * doc/gimple.texi (gimple_statement_with_ops): Remove
6531         addresses_taken field.
6532         (gimple_statement_with_memory_ops): Likewise.
6533
6534 2010-04-27  Jan Hubicka  <jh@suse.cz>
6535
6536         * tree-inline.c (eni_inlining_weights): Remove.
6537         (estimate_num_insns): Special case more builtins.
6538
6539 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
6540
6541         PR c/32207
6542         * c-typeck.c (build_binary_op): Move forward check for comparison
6543         pointer with null pointer constant and adjust the diagnostic message.
6544
6545 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
6546
6547         PR lto/42776
6548         * configure.ac (gcc_cv_as_section_has_align): Set if installed
6549         binutils supports extended .section directive needed by LTO, or
6550         warn if older binutils found.
6551         (LTO_BINARY_READER): New AC_SUBST'd variable.
6552         (LTO_USE_LIBELF): Likewise.
6553         * gcc/config.gcc (lto_binary_reader): New target-specific configure
6554         variable.
6555         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
6556         (LTO_USE_LIBELF): Likewise.
6557         * configure: Regenerate.
6558
6559         * collect2.c (is_elf): Rename from this ...
6560         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
6561          object files in addition to ELF-formatted ones.
6562         (scan_prog_file): Caller updated.  Also allow for LTO info marker
6563         symbol to be prefixed or not by an extra underscore.
6564
6565         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
6566         * config/i386/winnt.c: Also #include lto-streamer.h
6567         (i386_pe_asm_named_section): Specify 1-byte section alignment for
6568         LTO named sections.
6569         (i386_pe_asm_output_aligned_decl_common): Add comment.
6570         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
6571
6572 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
6573
6574         PR target/43889
6575         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
6576         Add missing earlyclobber for second alternative.
6577
6578 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
6579
6580         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
6581         bits for artificial defs at the top of the block.
6582         * fwprop.c (single_def_use_enter_block): Don't call it.
6583
6584 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
6585
6586         PR 43715
6587         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
6588         instead of "$gcc_cv_objdump -T".
6589         Use "-undefined dynamic_lookup" on darwin.
6590         * gcc/configure: Regenerate.
6591
6592 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
6593
6594         PR c/43893
6595         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
6596
6597 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
6598
6599         * c-parser.c (struct c_token): Move location field up.
6600         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
6601         (struct c_declspecs): Convert typespec_word, storage_class, and
6602         default_int_p into bitfields.
6603         (struct c_declarator): Move loc field up.
6604
6605 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
6606
6607         * cfgloop.h (struct loop): Move can_be_parallel field up.
6608         * ipa-prop.h (struct ip_node_params): Move bitfields up.
6609         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
6610         down.
6611         (struct iv_cand): Convert pos field into a bitfield.
6612         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
6613         field up.
6614         (struct _stmt_vec_info): Shuffle fields for better packing.
6615
6616 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
6617
6618         * varasm.c (IN_NAMED_SECTION): Remove guard.
6619         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
6620         (IN_NAMED_SECTION_P): ...this.
6621         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
6622         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6623
6624 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
6625
6626         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
6627         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
6628         of shadowing it.  Fix comments.
6629
6630 2010-04-26  Jan Hubicka  <jh@suse.cz>
6631
6632         * cgraph.c (cgraph_create_node): Set node frequency to normal.
6633         (cgraph_clone_node): Copy function frequency.
6634         * cgraph.h (node_frequency): New enum
6635         (struct cgraph_node): Add.
6636         * final.c (rest_of_clean_state): Update.
6637         * lto-cgraph.c (lto_output_node): Output node frequency.
6638         (input_overwrite_node): Input node frequency.
6639         * tre-ssa-loop-ivopts (computation_cost): Update.
6640         * lto-streamer-out.c (output_function): Do not output function
6641         frequency.
6642         * predict.c (maybe_hot_frequency_p): Update and handle functions
6643         executed once.
6644         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
6645         attribute lookup.
6646         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
6647         (compute_function_frequency): Set noreturn functions to be executed
6648         once.
6649         (choose_function_section): Update.
6650         * lto-streamer-in.c (input_function): Do not input function frequency.
6651         * function.c (allocate_struct_function): Do not initialize function
6652         frequency.
6653         * function.h (function_frequency): Remove.
6654         (struct function): Remove function frequency.
6655         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
6656         (try_update): Update.
6657         * tree-inline.c (initialize_cfun): Do not update function frequency.
6658         * passes.c (pass_init_dump_file): Update.
6659         * i386.c (ix86_compute_frame_layout): Update.
6660         (ix86_pad_returns): Update.
6661
6662 2010-04-26  Jie Zhang  <jie@codesourcery.com>
6663
6664         PR tree-optimization/43833
6665         * tree-vrp.c (range_int_cst_p): New.
6666         (range_int_cst_singleton_p): New.
6667         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
6668         when both operands are constants.  Use range_int_cst_p in
6669         BIT_IOR_EXPR case.
6670
6671 2010-04-26  Jan Hubicka  <jh@suse.cz>
6672
6673         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
6674
6675 2010-04-26  Richard Guenther  <rguenther@suse.de>
6676
6677         PR lto/43080
6678         * gimple.c (gimple_decl_printable_name): Deal gracefully
6679         with a NULL DECL_NAME.
6680
6681 2010-04-26  Richard Guenther  <rguenther@suse.de>
6682
6683         PR lto/42425
6684         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
6685         if emitting debug information and it is either a function
6686         or a namespace decl.
6687
6688 2010-04-26  Ira Rosen  <irar@il.ibm.com>
6689
6690         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
6691         determine if the statement is vectorizable, and a macro to access it.
6692         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6693         Skip statements that can't be vectorized. If the analysis fails,
6694         mark the statement as unvectorizable if vectorizing basic block.
6695         (vect_compute_data_refs_alignment): Likewise.
6696         (vect_verify_datarefs_alignment): Skip statements marked as
6697         unvectorizable. Add print.
6698         (vect_analyze_group_access): Skip statements that can't be
6699         vectorized. If the analysis fails, mark the statement as
6700         unvectorizable if vectorizing basic block.
6701         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
6702         * tree-vect-stmts.c (vectorizable_store): Fix the number of
6703         generated stmts for SLP.
6704         (new_stmt_vec_info): Initialize the new field.
6705         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
6706         statements marked as unvectorizable.
6707
6708 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
6709
6710         * c-common.c (flag_isoc1x): New.
6711         (flag_isoc99): Update comment.
6712         * c-common.h (flag_isoc1x): New.
6713         (flag_isoc99): Update comment.
6714         * c-cppbuiltin.c (builtin_define_float_constants): Also define
6715         __<type>_DECIMAL_DIG__.
6716         * c-opts.c (set_std_c1x): New.
6717         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
6718         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
6719         * c.opt (-std=c1x, -std=gnu1x): New options.
6720         * doc/cpp.texi: Mention -std=c1x.
6721         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
6722         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
6723         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
6724         * doc/standards.texi: Mention C1X.
6725         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
6726         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
6727         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
6728         Define for C1X.
6729
6730 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
6731
6732         * config/i386/gmon-sol2.c (_mcleanup): Change format string
6733         placeholder from 0x%x to %#x.
6734         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
6735         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
6736         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
6737         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
6738         * config/i386/i386.c (ix86_target_string): Ditto.
6739         (output_pic_addr_const): Ditto.
6740         (print_operand): Ditto.
6741
6742 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
6743
6744         * combine.c (find_split_point): Add third argument.  Use it
6745         to find nested multiply-accumulate instructions.  Adjust calls.
6746         (try_combine): Adjust call to find_split_point.
6747
6748 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
6749
6750         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
6751
6752 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
6753
6754         PR tree-optimization/41442
6755         * fold-const.c (merge_truthop_with_opposite_arm): New function.
6756         (fold_binary_loc): Call it.
6757
6758 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6759
6760         * toplev.c (general_init): Set default for fdiagnostics-show-option.
6761         * opts.c (common_handle_option): Allow disabling it.
6762         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
6763
6764 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6765
6766         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
6767         between modes if both types are integral.
6768
6769 2010-04-23  Richard Guenther  <rguenther@suse.de>
6770
6771         PR tree-optimization/43572
6772         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
6773
6774 2010-04-23  Richard Guenther  <rguenther@suse.de>
6775
6776         PR lto/43455
6777         * tree-inline.c (tree_can_inline_p): Also check compatibility
6778         of return types.
6779
6780 2010-04-23  Martin Jambor  <mjambor@suse.cz>
6781
6782         PR tree-optimization/43846
6783         * tree-sra.c (struct access): New flag grp_assignment_read.
6784         (build_accesses_from_assign): Set grp_assignment_read.
6785         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
6786         (enum mark_read_status): New type.
6787         (analyze_access_subtree): Propagate grp_assignment_read, create
6788         accesses also if both direct_read and root->grp_assignment_read.
6789
6790 2010-04-23  Martin Jambor  <mjambor@suse.cz>
6791
6792         PR middle-end/43835
6793         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
6794         function does not have type attributes.
6795
6796 2010-04-23  Richard Guenther  <rguenther@suse.de>
6797
6798         PR lto/42653
6799         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
6800         of FUNCTION_DECLs.
6801
6802 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6803
6804         * sese.h (create_if_region_on_edge): Remove.
6805
6806         * sese.c (create_if_region_on_edge): Make static.
6807
6808         * tree-inline.c: Do not include ggc.h.
6809
6810         * expr.c: Do not include ggc.h.
6811
6812         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
6813         dependencies.
6814
6815 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6816
6817         PR target/43744
6818         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6819         in the middle of insns for casesi_worker_2.
6820
6821 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
6822
6823         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
6824
6825 2010-04-22  Ira Rosen  <irar@il.ibm.com>
6826
6827         PR tree-optimization/43842
6828         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
6829         loop unrolling in update of exit phis. Fix comment.
6830         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
6831         least two reduction statements in the loop before starting SLP
6832         analysis.
6833
6834 2010-04-22  Nick Clifton  <nickc@redhat.com>
6835
6836         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
6837
6838 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
6839
6840         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
6841         to simplify a + ~a.
6842
6843 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6844
6845         * tree-parloops.c (loop_parallel_p): New argument
6846         parloop_obstack.  Pass it down.
6847         (parallelize_loops): New variable parloop_obstack.  Initialize it,
6848         pass it down, free it.
6849
6850         * tree-loop-linear.c (linear_transform_loops): Pass down
6851         lambda_obstack.
6852
6853         * tree-data-ref.h (lambda_compute_access_matrices): New argument
6854         of type struct obstack *.
6855
6856         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
6857         scratch_obstack.  Initialize it, pass down, free it.
6858
6859         * lambda.h (lambda_loop_new): Remove.
6860         (lambda_matrix_new, lambda_matrix_inverse)
6861         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
6862         argument of type struct obstack *.
6863
6864         * lambda-trans.c (lambda_trans_matrix_new): New argument
6865         lambda_obstack.  Pass it down, use obstack allocation for ret.
6866         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
6867         it down.
6868
6869         * lambda-mat.c (lambda_matrix_get_column)
6870         (lambda_matrix_project_to_null): Remove.
6871         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
6872         allocation for mat.
6873         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
6874         lambda_obstack.
6875
6876         * lambda-code.c (lambda_loop_new): New function.
6877         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
6878         (lambda_compute_auxillary_space, lambda_compute_target_space)
6879         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
6880         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
6881         (build_access_matrix): New argument lambda_obstack.  Use obstack
6882         allocation for am.
6883         (lambda_compute_step_signs, lambda_compute_access_matrices): New
6884         argument lambda_obstack.  Pass it down.
6885
6886 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
6887
6888         * optabs.h (expand_widening_mult): Declare.
6889
6890 2010-04-22  Richard Guenther  <rguenther@suse.de>
6891
6892         PR tree-optimization/43845
6893         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
6894         lookup the CALL_EXPR function and arguments.
6895
6896 2010-04-22  Nick Clifton  <nickc@redhat.com>
6897
6898         * config/stormy16/stormy16.c
6899         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
6900         * config/stormy16/stormy16.h: Tidy up formatting.
6901         (DONT_USE_BUILTIN_SETJMP): Remove definition.
6902         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
6903         (ineqbranchsi): Delete pattern.
6904         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
6905         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
6906         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6907         stormy16-lib2-ucmpsi2.c.
6908
6909 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
6910
6911         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
6912         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
6913         extra set merge_set_noclobber, and use it to relax the final test
6914         slightly.
6915         * df.h (df_simulate_find_noclobber_defs): Declare.
6916         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
6917         conditional defs.
6918         (df_simulate_find_noclobber_defs): New function.
6919
6920 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
6921
6922         * config/i386/i386.md: Use {} around multi-line preparation statements.
6923
6924 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6925
6926         * c-tree.h (push_init_level, pop_init_level, set_init_index)
6927         (process_init_element): New argument of type struct obstack *.
6928
6929         * c-typeck.c (push_init_level, pop_init_level, set_designator)
6930         (set_init_index, set_init_label, set_nonincremental_init)
6931         (set_nonincremental_init_from_string, find_init_member)
6932         (output_init_element, output_pending_init_elements)
6933         (process_init_element): New argument braced_init_obstack.  Pass it
6934         down.
6935         (push_range_stack, add_pending_init): New argument
6936         braced_init_obstack.  Use obstack allocation.
6937
6938         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
6939         braced_init_obstack.  Pass it down.
6940         (c_parser_braced_init): New variables ret, braced_init_obstack.
6941         Initialize obstack, pass it down and finally free it.
6942
6943 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
6944
6945         PR middle-end/29274
6946         * tree-pass.h (pass_optimize_widening_mul): Declare.
6947         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
6948         gate_optimize_widening_mul): New static functions.
6949         (pass_optimize_widening_mul): New.
6950         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
6951         <case MULT_EXPR>: Remove support for widening multiplies.
6952         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
6953         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
6954         simplify_gen_unary rather than directly building extensions.
6955         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
6956         WIDEN_MULT_EXPR.
6957         * expmed.c (expand_widening_mult): New function.
6958         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
6959
6960 2010-04-21  Jan Hubicka  <jh@suse.cz>
6961
6962         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
6963         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
6964         * lto-wpa-fixup.c: Remove.
6965         * Makefile.in (lto-wpa-fixup.o): Remove.
6966         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
6967         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
6968         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
6969
6970 2010-04-21  Jan Hubicka  <jh@suse.cz>
6971
6972         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
6973         add write_optimization_summary, read_optimization_summary.
6974         (ipa_write_summaries_of_cgraph_node_set): Remove.
6975         (ipa_write_optimization_summaries): Declare.
6976         (ipa_read_optimization_summaries): Declare.
6977         * ipa-cp.c (pass_ipa_cp): Update.
6978         * ipa-reference.c (pass_ipa_reference): Update.
6979         * ipa-pure-const.c (pass_ipa_pure_const): Update.
6980         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
6981         Update.
6982         * ipa-inline.c (pass_ipa_inline): Update.
6983         * ipa.c (pass_ipa_whole_program): Update.
6984         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
6985         * passes.c (ipa_write_summaries_1): Do not test wpa.
6986         (ipa_write_optimization_summaries_1): New.
6987         (ipa_write_optimization_summaries): New.
6988         (ipa_read_summaries): Do not test ltrans.
6989         (ipa_read_optimization_summaries_1): New.
6990         (ipa_read_optimization_summaries): New.
6991
6992 2010-04-21  Jan Hubicka  <jh@suse.cz>
6993
6994         * lto-cgraph.c (lto_output_node): Do not output comdat groups
6995         for boundary nodes.
6996         (output_cgraph): Do not arrange comdat groups for boundary nodes.
6997
6998 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
6999
7000         PR debug/40040
7001         * dwarf2out.c (add_name_and_src_coords_attributes): Add
7002         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
7003
7004 2010-04-21  Jan Hubicka  <jh@suse.cz>
7005
7006         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
7007
7008 2010-04-21  Jan Hubicka  <jh@suse.cz>
7009
7010         * varpool.c (decide_is_variable_needed): Variable is always needed
7011         during ltrans.
7012
7013 2010-04-21  Jan Hubicka  <jh@suse.cz>
7014
7015         * opts.c (decode_options): Enable pure-const pass for whopr.
7016
7017 2010-04-21  Jan Hubicka  <jh@suse.cz>
7018
7019         * cgraph.c (dump_cgraph_node): Dump also assembler name.
7020         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
7021         at WPA dumping.
7022         (cgraph_decide_inlining): Do not expect callee to be removed in all
7023         cases.
7024
7025 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
7026
7027         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
7028
7029 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
7030
7031         * config/i386/i386.md (x86_shrd): Add athlon_decode and
7032         amdfam10_decode attributes.
7033
7034 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
7035
7036         PR middle-end/43570
7037         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
7038         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
7039         (lower_copyprivate_clauses): Use private var in outer
7040         context instead of original var.  Make sure the types
7041         are correct for VLAs.
7042
7043 2010-04-21  Richard Guenther  <rguenther@suse.de>
7044
7045         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
7046         to non-pointer objects.
7047
7048 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
7049
7050         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
7051         last chain entry if it starts with the still current label.
7052         (add_location_or_const_value_attribute): Check that
7053         loc_list->first->next is NULL instead of comparing ->first with ->last.
7054         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
7055         to add_var_loc_to_decl.
7056
7057         * dwarf2out.c (output_call_frame_info): For dw_cie_version
7058         >= 4 add also address size and segment size fields into CIE header.
7059
7060         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
7061         long as address size is the same as sizeof (void *) and
7062         segment size is 0.
7063         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
7064         address size or segment size is unexpected, return DW_EH_PE_omit.
7065         (classify_object_over_fdes): If get_cie_encoding returned
7066         DW_EH_PE_omit, return -1.
7067         (init_object): If classify_object_over_fdes returned -1,
7068         pretend there were no FDEs at all.
7069
7070 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
7071
7072         * config/i386/i386.md (bswap<mode>2): Macroize expander from
7073         bswap{si,di}2 using SWI48 mode iterator.
7074         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
7075         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
7076         set modrm attribute of bswap insn to 0 and remove length attribute.
7077         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
7078         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
7079         set mode attribute to <MODE> and remove length attribute.
7080
7081 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
7082
7083         PR rtl-optimization/43520
7084         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
7085         zero available registers.
7086
7087 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7088
7089         * builtins.c (fold_builtin_cproj): Fold more cases.
7090
7091 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7092
7093         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
7094         (fold_builtin_1): Fold builtin cproj.
7095         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
7096         Use ATTR_CONST_NOTHROW_LIST.
7097
7098 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
7099
7100         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
7101         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
7102         ffsi2_no_cmove for !TARGET_CMOVE.
7103         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
7104         (ffssi2): Remove expander.
7105         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
7106         mode iterator.
7107         (ctz<mode>2): Ditto from ctz{si,di}2.
7108         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
7109         mode iterator.
7110         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
7111         mode iterator.
7112
7113 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
7114
7115         * dwarf2out.c (AT_linkage_name): Define.
7116         (clone_as_declaration): Handle DW_AT_linkage_name.
7117         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
7118         of DW_AT_MIPS_linkage_name.
7119         (move_linkage_attr): Likewise.
7120         (dwarf2out_finish): Likewise.
7121
7122 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
7123
7124         PR middle-end/41952
7125         * fold-const.c (fold_comparison): New folding rule.
7126
7127 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
7128
7129         * double-int.h (double_int_setbit): Declare.
7130         * double-int.c (double_int_setbit): New function.
7131         * rtl.h (immed_double_int_const): Declare.
7132         * emit-rtl.c (immed_double_int_const): New function.
7133         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
7134         and immed_double_int_const functions.
7135         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
7136         expand_copysign_bit):  (Ditto.).
7137         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
7138         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
7139         * dojump.c (prefer_and_bit_test): (Ditto.).
7140         * expr.c (convert_modes, reduce_to_bit_field_precision,
7141         const_vector_from_tree): (Ditto.).
7142         * expmed.c (mask_rtx, lshift_value): (Ditto.).
7143
7144 2010-04-20  Jan Hubicka  <jh@suse.cz>
7145
7146         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
7147         (dump_cgraph_node): Dump new flags.
7148         * cgraph.h (struct cgraph_node): Add flags
7149         reachable_from_other_partition and in_other_partition.
7150         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
7151         other partition can not be removed.
7152         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
7153         the other partition must be output; silence sanity checking on
7154         leaking functions bodies from other paritition.
7155         * lto-cgraph.c (reachable_from_other_partition_p): New function.
7156         (lto_output_node): Output new flags; do not sanity check that inline
7157         clones are output; drop lto_forced_extern_inline_p code; do not mock
7158         visibility flags at partition boundaries.
7159         (add_node_to): New function.
7160         (output_cgraph): Use it to sort functions so masters appear before
7161         clones.
7162         (input_overwrite_node): Input new flags.
7163         * passes.c (ipa_write_summaries): Do not call
7164         lto_new_extern_inline_states.
7165         * lto-section-out.c (forced_extern_inline,
7166         lto_new_extern_inline_states lto_delete_extern_inline_states,
7167         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
7168         * lto-streamer.h (lto_new_extern_inline_states,
7169         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
7170         lto_forced_extern_inline_p): Kill.
7171
7172 2010-04-20  Richard Guenther  <rguenther@suse.de>
7173
7174         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
7175         from vars that can have pointers.
7176         (process_constraint): Dump useless constraints.
7177
7178 2010-04-20  Richard Guenther  <rguenther@suse.de>
7179
7180         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
7181         (dump_sa_points_to_info): Remove asserts.
7182         (init_base_vars): nothing_id isn't an escape point nor does it
7183         have pointers.
7184
7185 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
7186
7187         * tree.h (TYPE_REF_IS_RVALUE): Define.
7188         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
7189         should_move_die_to_comdat, prune_unused_types_walk): Handle
7190         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
7191         (modified_type_die, gen_reference_type_die): Emit
7192         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
7193         if TYPE_REF_IS_RVALUE and -gdwarf-4.
7194
7195 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7196
7197         PR target/43635
7198         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
7199         calls for -fpic -m31 if they have been sibcall optimized.
7200
7201 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
7202
7203         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
7204         ar.lc fixed and call-used.
7205
7206         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
7207
7208 2010-04-19  Jan Hubicka  <jh@suse.cz>
7209
7210         * opts.c (decode_options): Disable whpr incompatible passes.
7211         * lto/lto.c (lto_1_to_1_map): Skip clones.
7212         (read_cgraph_and_symbols): Do not mark everything as needed.
7213         (do_whole_program_analysis): Do map only after optimizing;
7214         set proper cgraph_state; use passmanager.
7215
7216 2010-04-19  DJ Delorie  <dj@redhat.com>
7217
7218         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
7219         POINTER_PLUS_EXPR and fix them.
7220
7221 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
7222
7223         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
7224         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
7225         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
7226         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
7227         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
7228         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
7229         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
7230         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
7231         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
7232         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
7233         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
7234
7235 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
7236
7237         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
7238         (check_cond_move_block): Likewise.
7239         (cond_move_process_if_block): Likewise.
7240         (noce_find_if_block): Improve formatting.
7241         (find_if_header): Pass 0 to memset and tweak conditions.
7242         (cond_exec_find_if_block): Fix long lines and tweak conditions.
7243
7244 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
7245
7246         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
7247         for -gdwarf-4.
7248
7249         PR middle-end/43337
7250         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
7251         with non-local decl doesn't need chain.
7252
7253 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
7254
7255         * ira-color.c (allocno_reload_assign): Avoid accumulating
7256         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
7257
7258 2010-04-19  Martin Jambor  <mjambor@suse.cz>
7259
7260         * gimple.h (create_tmp_reg): Declare.
7261         * gimplify.c (create_tmp_reg): New function.
7262         (gimplify_return_expr): Use create_tmp_reg.
7263         (gimplify_omp_atomic): Likewise.
7264         (gimple_regimplify_operands): Likewise.
7265         * tree-dfa.c (make_rename_temp): Likewise.
7266         * tree-predcom.c (predcom_tmp_var): Likewise.
7267         (reassociate_to_the_same_stmt): Likewise.
7268         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
7269         (get_replaced_param_substitute): Likewise.
7270         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
7271         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
7272         * tree-ssa-pre.c (get_representative_for): Likewise.
7273         (create_expression_by_pieces): Likewise.
7274         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
7275         (create_tailcall_accumulator): Likewise.
7276
7277 2010-04-19  Martin Jambor  <mjambor@suse.cz>
7278
7279         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
7280         new_stmt.
7281         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
7282
7283 2010-04-19  Richard Guenther  <rguenther@suse.de>
7284
7285         PR tree-optimization/43796
7286         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
7287         from SCEV in the lattice.
7288         (vrp_visit_phi_node): Dump change.
7289
7290 2010-04-19  Richard Guenther  <rguenther@suse.de>
7291
7292         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
7293         * configure: Re-generated.
7294
7295 2010-04-19  Richard Guenther  <rguenther@suse.de>
7296
7297         PR tree-optimization/43783
7298         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
7299         constant ARRAY_REF operands two and three if possible.
7300
7301 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
7302
7303         PR target/43766
7304         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
7305
7306 2010-04-19  Jie Zhang  <jie@codesourcery.com>
7307
7308         PR target/43662
7309         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
7310
7311 2010-04-19  Ira Rosen  <irar@il.ibm.com>
7312
7313         PR tree-optimization/37027
7314         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
7315         and macro to access it.
7316         (vectorizable_reduction): Add argument.
7317         (vect_get_slp_defs): Likewise.
7318         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
7319         statements for possible use in SLP.
7320         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
7321         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
7322         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
7323         add new argument.
7324         (vectorizable_reduction): Likewise.
7325         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
7326         vect_get_slp_defs.
7327         (vectorizable_type_demotion, vectorizable_type_promotion,
7328         vectorizable_store): Likewise.
7329         (vect_analyze_stmt): Update call to vectorizable_reduction.
7330         (vect_transform_stmt): Likewise.
7331         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
7332         (vect_build_slp_tree): Fix indentation. Check that there are no loads
7333         from different interleaving chains in same node.
7334         (vect_slp_rearrange_stmts): New function.
7335         (vect_supported_load_permutation_p): Allow load permutations for
7336         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
7337         inside SLP nodes if necessary.
7338         (vect_analyze_slp_instance): Handle reductions.
7339         (vect_analyze_slp): Try to build SLP instances originating from groups
7340         of reductions.
7341         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
7342         (vect_get_constant_vectors): Create initial vectors for reductions
7343         according to reduction code. Add new argument.
7344         (vect_get_slp_defs): Add new argument, pass it to
7345         vect_get_constant_vectors.
7346         (vect_schedule_slp_instance): Remove SLP tree root statements.
7347
7348 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
7349
7350         * tree.h (ENUM_IS_SCOPED): Define.
7351         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
7352         for ENUM_IS_SCOPED enums.
7353
7354 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7355
7356         * fold-const.c (fold_comparison): Use ssizetype.
7357         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7358         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
7359         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
7360         * tree-object-size.c (compute_object_sizes): Use size_type_node.
7361
7362         * tree.h (initialize_sizetypes): Remove parameter.
7363         (build_common_tree_nodes): Remove second parameter.
7364         * stor-layout.c (initialize_sizetypes): Remove parameter.
7365         Always create an unsigned type.
7366         (set_sizetype): Assert that the passed type is unsigned and simplify.
7367         * tree.c (build_common_tree_nodes): Remove second parameter.
7368         Adjust call to initialize_sizetypes.
7369         * c-decl.c (c_init_decl_processing): Remove second argument in call to
7370         build_common_tree_nodes.
7371
7372 2010-04-18  Matthias Klose  <doko@ubuntu.com>
7373
7374         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
7375
7376 2010-04-18  Ira Rosen  <irar@il.ibm.com>
7377
7378         PR tree-optimization/43771
7379         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
7380         load permutation doesn't have gaps.
7381
7382 2010-04-18  Jan Hubicka  <jh@suse.cz>
7383
7384         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
7385         (sse_prologue_save_insn expander): Use new pattern.
7386         (sse_prologue_save_insn1): New pattern and splitter.
7387         (sse_prologue_save_insn): Update to deal also with 64bit aligned
7388         blocks.
7389         * i386.c (setup_incoming_varargs_64): Do not compute jump
7390         destination here.
7391         (ix86_gimplify_va_arg): Update alignment needed.
7392         (ix86_local_alignment): Do not align all local arrays to 128bit.
7393
7394 2010-04-17  Jan Hubicka  <jh@suse.cz>
7395
7396         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
7397
7398 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
7399
7400         * arm.md (negdi2): Remove redundant code to force values into a
7401         register.
7402
7403 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
7404
7405         * arm/bpabi.S: Add EABI alignment attributes to objects.
7406         * arm/bpabi-v6m.S: Likewise.
7407         * arm/crti.asm: Likewise.
7408         * arm/crtn.asm: Likewise.
7409         * arm/lib1funcs.asm: Likewise.
7410         * arm/libunwind.S: Likewise.
7411
7412 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
7413
7414         * arm-protos.h (tune_params): New structure.
7415         * arm.c (current_tune): New variable.
7416         (arm_constant_limit): Delete.
7417         (struct processors): Add pointer to the tune parameters.
7418         (arm_slowmul_tune): New tuning option.
7419         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
7420         (all_cores): Adjust to pick up the tuning model.
7421         (arm_constant_limit): New function.
7422         (arm_override_options): Select the appropriate tuning model.  Delete
7423         initialization of arm_const_limit.
7424         (arm_split_constant): Use the new constant-limit model.
7425         (arm_rtx_costs): Pick up the current tuning model.
7426         * arm.md (is_strongarm, is_xscale): Delete.
7427         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
7428         for Xscale variant architectures.
7429         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
7430
7431 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7432
7433         * config/arm/arm.c (arm_gen_constant): Remove unused variable
7434         can_shift.
7435         (arm_rtx_costs_1): Remove unused variable extra_cost.
7436         (arm_unwind_emit_set): Use variable offset.
7437         (thumb1_output_casesi): Remove unused variable flags.
7438
7439 2010-04-16  Jeff Law  <law@redhat.com>
7440
7441         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
7442         needing assignment rather than doing a two-phase assignment.  Remove
7443         unused variable 'm'.
7444
7445 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
7446
7447         PR bootstrap/43767
7448         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
7449
7450 2010-04-16  Doug Kwan  <dougkwan@google.com>
7451
7452         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
7453         (next_operand_entry_id): New static variable.
7454         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
7455         (add_to_ops_vec): Assigned unique ID to operand entry.
7456         (struct oecount_s): New field ID.
7457         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
7458         (undistribute_ops_list): Assign unique IDs to oecounts.
7459         (init_reassoc): reset next_operand_entry_id.
7460
7461 2010-04-16  Doug Kwan  <dougkwan@google.com>
7462
7463         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
7464         missing left parenthesis.
7465
7466 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
7467
7468         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
7469         *btdi_rex64 using SWI48 mode iterator.
7470         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
7471         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
7472         *jcc_btdi_mask_rex64.
7473
7474 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
7475
7476         * double-int.h (tree_to_double_int): Convert to macro.
7477         * double-int.c (tree_to_double_int): Remove.
7478
7479 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
7480
7481         PR debug/43762
7482         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
7483         with want_address 2 and in case a single element list might be
7484         possible, call it again with want_address 0.
7485
7486 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
7487
7488         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
7489         case 'W' print operands for HI mode.
7490         * config/h8300/h8300.h (Y0, Y2) : New constraints.
7491         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
7492         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
7493         * config/h8300/predicate.md (bit_register_indirect_operand): New.
7494
7495         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
7496
7497         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
7498         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
7499         #xx:3 and #xx:4 mode.
7500
7501         * config/h8300/h8300.md (inverted load with HImode dest): Add
7502         support for H8300SX.
7503
7504         * config/h8300/predicate.md (bit_operand): Allow immediate values that
7505         satisfy 'U' constraint.
7506
7507 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7508
7509         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
7510         * configure: Regenerate.
7511         * config.in: Regenerate.
7512         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
7513         works.
7514
7515 2010-04-16  Richard Guenther  <rguenther@suse.de>
7516
7517         * tree.h (struct tree_decl_minimal): Move pt_uid ...
7518         (struct tree_decl_common): ... here.
7519         (DECL_PT_UID): Adjust.
7520         (SET_DECL_PT_UID): Likewise.
7521         (DECL_PT_UID_SET_P): Likewise.
7522
7523 2010-04-16  Richard Guenther  <rguenther@suse.de>
7524
7525         PR tree-optimization/43572
7526         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
7527         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
7528         * tree-flow.h (is_call_clobbered): Remove.
7529         * tree-flow-inline.h (is_call_clobbered): Likewise.
7530         * tree-dfa.c (dump_variable): Do not dump call clobber state.
7531         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
7532         (execute_return_slot_opt): Adjust.
7533         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
7534         check for call clobbered vars here.
7535         (find_tail_calls): Move tailcall verification to the
7536         proper place.
7537
7538 2010-04-16  Diego Novillo  <dnovillo@google.com>
7539
7540         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
7541
7542 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
7543
7544         PR target/40603
7545         * config/arm/arm.md (cbranchqi4): New pattern.
7546         * config/arm/predicates.md (const0_operand,
7547         cbranchqi4_comparison_operator): New predicates.
7548
7549 2010-04-16  Richard Guenther  <rguenther@suse.de>
7550
7551         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
7552         (dump_gimple_stmt): Likewise.
7553
7554 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
7555
7556         * recog.h (struct recog_data): New field is_operator.
7557         (struct insn_operand_data): New field is_operator.
7558         * recog.c (extract_insn): Set recog_data.is_operator.
7559         * genoutput.c (output_operand_data): Emit code to set the
7560         is_operator field.
7561         * reload.c (find_reloads): Use it rather than testing for an
7562         empty constraint string.
7563
7564         PR target/41514
7565         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
7566         If the previous insn is a cbranchsi4_insn with the same arguments,
7567         omit the compare instruction.
7568
7569         * config/arm/arm.md (addsi3_cbranch): If destination is a high
7570         register, inputs must be low registers and we need a low register
7571         scratch.  Handle alternative 2 like alternative 3.
7572
7573 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
7574
7575         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
7576         don't call get_addr on both.  If one expression is a VALUE and
7577         the other a REG, check VALUE's locs if the REG isn't among them.
7578
7579 2010-04-16  Christian Bruel  <christian.bruel@st.com>
7580
7581         * config/sh/sh.h (sh_frame_pointer_required): New function.
7582         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
7583         (flag_omit_frame_pointer) Set.
7584         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
7585         (rounded_frame_size): Adjust size with outgoing_args_size.
7586         (sh_set_return_address): Must return from stack pointer.
7587         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
7588         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
7589         (ACCUMULATE_OUTGOING_ARGS): Define.
7590         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
7591         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
7592
7593 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7594
7595         PR target/43471
7596         * config/sh/sh.c (sh_legitimize_reload_address): Use
7597         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
7598         Remove a unneeded check for offset_base.
7599
7600 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
7601
7602         * configure: Regenerated.
7603
7604 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7605
7606         * config/s390/s390.c (s390_call_save_register_used): Switch back
7607         to HARD_REGNO_NREGS.
7608
7609 2010-04-15  Richard Guenther  <rguenther@suse.de>
7610
7611         * alias.c (alias_set_subset_of): Handle alias-set zero
7612         child properly.
7613
7614 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
7615             Julian Brown  <julian@codesourcery.com>
7616
7617         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
7618         alternatives according to use of high and low regs.
7619         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7620         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
7621         optimizing for size on Thumb-2.
7622
7623 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
7624
7625         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
7626
7627 2010-04-15  Richard Guenther  <rguenther@suse.de>
7628
7629         * tree-ssa-structalias.c (struct variable_info): Add
7630         is_fn_info flag.
7631         (new_var_info): Initialize it.
7632         (dump_constraints): Support printing last added constraints.
7633         (debug_constraints): Adjust.
7634         (dump_constraint_graph): Likewise.
7635         (make_heapvar_for): Check for NULL cfun.
7636         (get_function_part_constraint): New function.
7637         (get_fi_for_callee): Likewise.
7638         (find_func_aliases): Properly implement IPA PTA constraints.
7639         (process_ipa_clobber): New function.
7640         (find_func_clobbers): Likewise.
7641         (insert_into_field_list_sorted): Remove.
7642         (create_function_info_for): Properly allocate vars for IPA mode.
7643         Do not use insert_into_field_list_sorted.
7644         (create_variable_info_for): Properly generate constraints for
7645         global vars in IPA mode.
7646         (dump_solution_for_var): Always dump the solution.
7647         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
7648         (find_what_var_points_to): Adjust.
7649         (pt_solution_set): Change.
7650         (pt_solution_ior_into): New function.
7651         (pt_solution_empty_p): Export.
7652         (pt_solution_includes_global): Adjust.
7653         (pt_solution_includes_1): Likewise.
7654         (pt_solutions_intersect_1): Likewise.
7655         (dump_sa_points_to_info): Check some invariants.
7656         (solve_constraints): Move constraint dumping ...
7657         (compute_points_to_sets): ... here.
7658         (ipa_pta_execute): ... and here.
7659         (compute_may_aliases): Do not re-compute points-to info
7660         locally if IPA info is available.
7661         (ipa_escaped_pt): New global var.
7662         (ipa_pta_execute): Properly implement IPA PTA.
7663         * tree-into-ssa.c (dump_decl_set): Support dumping
7664         decls not in referenced-vars.
7665         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
7666         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
7667         (dump_points_to_solution): Likewise.
7668         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
7669         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
7670         (remap_gimple_stmt): Reset call clobber/use information if necessary.
7671         (copy_decl_to_var): Copy DECL_PT_UID.
7672         (copy_result_decl_to_var): Likewise.
7673         * tree.c (make_node_stat): Initialize DECL_PT_UID.
7674         (copy_node_stat): Copy it.
7675         * tree.h (DECL_PT_UID): New macro.
7676         (SET_DECL_PT_UID): Likewise.
7677         (DECL_PT_UID_SET_P): Likewise.
7678         (struct tree_decl_minimal): Add pt_uid member.
7679         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
7680         (pt_solution_empty_p): Declare.
7681         (pt_solution_set): Adjust.
7682         (ipa_escaped_pt): Declare.
7683         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
7684         * gimple-pretty-print.c (pp_points_to_solution): New function.
7685         (dump_gimple_call): Dump call clobber/use information.
7686         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
7687         * tree-pass.h (TDF_ALIAS): New dump option.
7688         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
7689         * doc/invoke.texi (-fipa-pta): Update documentation.
7690
7691 2010-04-15  Richard Guenther  <rguenther@suse.de>
7692
7693         * Makefile.in (OBJS-common): Add gimple-fold.o.
7694         (gimple-fold.o): New rule.
7695         * tree.h (maybe_fold_offset_to_reference,
7696         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
7697         prototypes ...
7698         * gimple.h: ... here.
7699         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
7700         may_propagate_address_into_dereference): Move prototypes ...
7701         * gimple.h: ... here.
7702         * tree-ssa-ccp.c (get_symbol_constant_value,
7703         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
7704         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
7705         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
7706         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
7707         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
7708         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
7709         gimplify_and_update_call_from_tree): Move ...
7710         * gimple-fold.c: ... here.  New file.
7711         (ccp_fold_builtin): Rename to ...
7712         (gimple_fold_builtin): ... this.
7713         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
7714
7715 2010-04-15  Richard Guenther  <rguenther@suse.de>
7716
7717         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
7718         fit_double_type, force_fit_type_double, add_double_with_sign,
7719         neg_double, mul_double_with_sign, lshift_double, rshift_double,
7720         lrotate_double, rrotate_double, div_and_round_double): Move ...
7721         * double-int.c: ... here.
7722         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
7723         add_double, neg_double, mul_double_with_sign, mul_double,
7724         lshift_double, rshift_double, lrotate_double, rrotate_double,
7725         div_and_round_double): Move prototypes ...
7726         * double-int.h: ... here.
7727
7728 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
7729
7730         PR target/43742
7731         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
7732         matching constraints to ensure inputs match the output.
7733
7734 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7735
7736         PR target/43742
7737         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
7738         in an input-only operand.
7739
7740 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
7741
7742         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
7743         (double_int_not, double_int_lshift, double_int_rshift): Declare.
7744         (double_int_negative_p): Convert to static inline function.
7745         * double-int.c (double_int_lshift, double_int_lshift): New functions.
7746         (double_int_negative_p): Remove.
7747         * tree.h (lshift_double, rshift_double):
7748         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
7749         * fold-const.c (fold_convert_const_int_from_real,
7750         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
7751         (lshift_double): Change type of arith argument to bool.
7752         (rshift_double): Change type of arith argument to bool. Correct
7753         comment.
7754         * expmed.c (mask_rtx, lshift_value): (Ditto.).
7755
7756 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
7757
7758         PR target/21803
7759         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
7760         at the start and end of the then/else blocks, and omit them from the
7761         conversion.
7762         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
7763         argument; all callers changed.  Pass zero to old_insns_match_p instead.
7764         (flow_find_head_matching_sequence): New function.
7765         (old_insns_match_p): Check REG_EH_REGION notes for calls.
7766         * basic-block.h (flow_find_cross_jump,
7767         flow_find_head_matching_sequence): Declare functions.
7768
7769 2010-04-14  Jason Merrill  <jason@redhat.com>
7770
7771         PR c++/36625
7772         * c-common.c (attribute_takes_identifier_p): New fn.
7773         * c-common.h: Declare it.
7774
7775 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
7776
7777         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
7778         splitter condition.
7779         (*udivmod<mode>4): Ditto.
7780
7781 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
7782
7783         * config/i386/i386.md (maxmin_int): Rename code attribute from
7784         maxminiprefix and update all users.
7785         (maxmin_float): Ditto from maxminfprefix.
7786         (logic): Ditto from logicprefix.
7787         (absneg_mnemonic): Ditto from absnegprefix.
7788         * config/i386/mmx.md: Update all users of maxminiprefix,
7789         maxminfprefix and logicprefix for rename.
7790         * config/i386/sse.md: Ditto.
7791         * config/i386/sync.md (sync_<code><mode>): Update for
7792         logicprefix rename.
7793
7794 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7795
7796         PR 42966
7797         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
7798         warnings converted to errors.
7799
7800 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
7801
7802         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
7803         used insn_type variable.
7804         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
7805         to avoid set-but-not-used warning.
7806
7807 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
7808
7809         * df-core.c (df_ref_debug): Change format string placeholder
7810         from 0x%x to %#x.
7811         * dwarf2asm.c (dw2_asm_output_data_raw,
7812         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
7813         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
7814         * dwarf2out.c (output_cfi, output_cfi_directive,
7815         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
7816         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
7817         Ditto.
7818         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
7819         * print-rtl.c (print_rtx): Ditto.
7820
7821 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7822
7823         PR middle-end/42694
7824         * builtins.c (expand_builtin_pow_root): New function to expand pow
7825         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
7826         series of sqrt and cbrt calls under -ffast-math.
7827         (expand_builtin_pow): Call it.
7828
7829 2010-04-14  Michael Matz  <matz@suse.de>
7830
7831         PR tree-optimization/42963
7832         * tree-cfg.c (touched_switch_bbs): New static variable.
7833         (group_case_labels_stmt): New function broken out from ...
7834         (group_case_labels): ... here, use the above.
7835         (start_recording_case_labels): Allocate touched_switch_bbs.
7836         (end_recording_case_labels): Deallocate it, call
7837         group_case_labels_stmt.
7838         (gimple_redirect_edge_and_branch): Remember index of affected BB.
7839
7840 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
7841
7842         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
7843         from insn template.
7844
7845 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
7846
7847         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
7848
7849 2010-04-13  Jan Hubicka  <jh@suse.cz>
7850
7851         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
7852         of optimized out static functions.
7853         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
7854         cost computation.  Also sanity check for overflows.
7855         (update_caller_keys): Update cgraph_edge_badness call; properly
7856         update fibheap and sanity check that it is up to date.
7857         (add_new_edges_to_heap): Update cgraph_edge_badness.
7858         (cgraph_decide_inlining_of_small_function): Likewise;
7859         add sanity checking that badness in heap is up to date;
7860         improve dumping of reason; Update badness of calls to the
7861         offline copy of function currently inlined; dump badness
7862         of functions not inlined because of unit growth limits.
7863
7864 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
7865
7866         PR middle-end/32628
7867         * c-common.c (pointer_int_sum): Disregard overflow that occured only
7868         because of sign-extension change when converting to sizetype here...
7869         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
7870
7871         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
7872         the folding to constants.  Remove redundant final conversion.
7873         (fold_binary) <associate>: Do not associate if the re-association of
7874         constants alone overflows.
7875         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
7876         to the end of the list.
7877         (multiple_of_p) <COND_EXPR>: New case.
7878
7879 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7880
7881         * opt-functions.awk (opt_sanitized_name): New.
7882         (opt_enum): New.
7883         * optc-gen.awk: Use it
7884         * opth-gen.awk: Use it.
7885
7886 2010-04-13  Martin Jambor  <mjambor@suse.cz>
7887
7888         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
7889         (sra_modify_assign): Delete stmts loading dead data even if racc has no
7890         children.  Call replace_uses_with_default_def_ssa_name to handle
7891         SSA_NAES on lhs.
7892
7893 2010-04-13  Michael Matz  <matz@suse.de>
7894
7895         PR middle-end/43730
7896         * builtins.c (expand_builtin_interclass_mathfn): Also create
7897         a register if the predicate doesn't match.
7898
7899 2010-04-13  Diego Novillo  <dnovillo@google.com>
7900
7901         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
7902         * c-pch.c: Include timevar.h.
7903         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
7904         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
7905         * ggc-common.c: Include timevar.h.
7906         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
7907         * timevar.def (TV_PCH_SAVE): Define.
7908         (TV_PCH_CPP_SAVE): Define.
7909         (TV_PCH_PTR_REALLOC): Define.
7910         (TV_PCH_PTR_SORT): Define.
7911         (TV_PCH_RESTORE): Define.
7912         (TV_PCH_CPP_RESTORE): Define.
7913
7914 2010-04-13  Michael Matz  <matz@suse.de>
7915
7916         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
7917         into MINUS_EXPRs.
7918         (can_reassociate_p): New function.
7919         (break_up_subtract_bb, reassociate_bb): Use it.
7920
7921 2010-04-13  Richard Guenther  <rguenther@suse.de>
7922
7923         PR bootstrap/43737
7924         * builtins.c (c_readstr): Fix assert.
7925
7926 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
7927
7928         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
7929         when generating cltd insn.
7930
7931         (*ashl<mode>3_1): Remove special handling for register operand 2.
7932         (*ashlsi3_1_zext): Ditto.
7933         (*ashlhi3_1): Ditto.
7934         (*ashlhi3_1_lea): Ditto.
7935         (*ashlqi3_1): Ditto.
7936         (*ashlqi3_1_lea): Ditto.
7937         (*<shiftrt_insn><mode>3_1): Ditto.
7938         (*<shiftrt_insn>si3_1_zext): Ditto.
7939         (*<shiftrt_insn>qi3_1_slp): Ditto.
7940         (*<rotate_insn><mode>3_1): Ditto.
7941         (*<rotate_insn>si3_1_zext): Ditto.
7942         (*<rotate_insn>qi3_1_slp): Ditto.
7943
7944 2010-04-13  Richard Guenther  <rguenther@suse.de>
7945
7946         * tree-ssa-structalias.c (callused_id): Remove.
7947         (call_stmt_vars): New.
7948         (get_call_vi): Likewise.
7949         (lookup_call_use_vi): Likewise.
7950         (lookup_call_clobber_vi): Likewise.
7951         (get_call_use_vi): Likewise.
7952         (get_call_clobber_vi): Likewise.
7953         (make_transitive_closure_constraints): Likewise.
7954         (handle_const_call): Adjust to do per-call call-used handling.
7955         (handle_pure_call): Likewise.
7956         (find_what_var_points_to): Remove general callused handling.
7957         (init_base_vars): Likewise.
7958         (init_alias_vars): Initialize call_stmt_vars.
7959         (compute_points_to_sets): Process call-used and call-clobbered
7960         vars for call statements.
7961         (delete_points_to_sets): Free call_stmt_vars.
7962
7963 2010-04-13  Richard Guenther  <rguenther@suse.de>
7964
7965         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7966         Only add RW dependence for dependence distance zero.
7967         Adjust maximal vectorization factor according to dependences.
7968         Move alignment handling ...
7969         (vect_find_same_alignment_drs): ... here.  New function.
7970         (vect_analyze_data_ref_dependences): Adjust.
7971         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
7972         (vect_analyze_data_refs): Adjust minimal vectorization factor
7973         according to data references.
7974         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
7975         dependences before determining the vectorization factor.
7976         Analyze alignment after determining the vectorization factor.
7977         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
7978         dependences before alignment.
7979         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
7980         Adjust prototype.
7981         (vect_analyze_data_refs): Likewise.
7982         (MAX_VECTORIZATION_FACTOR): New define.
7983
7984 2010-04-13  Duncan Sands  <baldrick@free.fr>
7985
7986         * except.h (lang_eh_type_covers): Remove.
7987         * except.c (lang_eh_type_covers): Likewise.
7988
7989 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7990             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7991
7992         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
7993         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
7994         UNITS_PER_LONG where it is ABI relevant.
7995         (s390_return_addr_rtx): Likewise.
7996         (s390_back_chain_rtx): Likewise.
7997         (s390_frame_area): Likewise.
7998         (s390_frame_info): Likewise.
7999         (s390_initial_elimination_offset): Likewise.
8000         (save_gprs): Likewise.
8001         (s390_emit_prologue): Likewise.
8002         (s390_emit_epilogue): Likewise.
8003         (s390_function_arg_advance): Likewise.
8004         (s390_function_arg): Likewise.
8005         (s390_va_start): Likewise.
8006         (s390_gimplify_va_arg): Likewise.
8007         (s390_function_profiler): Likewise.
8008         (s390_optimize_prologue): Likewise.
8009         (s390_rtx_costs): Likewise.
8010         (s390_secondary_reload): Likewise.
8011         (s390_promote_function_mode): Likewise.
8012         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
8013         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
8014         registers available.
8015         (s390_unwind_word_mode): New function.
8016         (s390_function_value): Split 64 bit values into register pair if
8017         used as return value.
8018         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
8019         function call parameters.  Handle parallels.
8020         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
8021         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
8022         (DWARF_CIE_DATA_ALIGNMENT): New macro.
8023         (s390_expand_setmem): Remove unused variable src_addr.
8024         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
8025         deal with 64 bit registers.
8026         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
8027         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
8028         (UNITS_PER_LONG): New macro.
8029         * libjava/include/s390-signal.h: Define extended ucontext
8030         structure containing the upper halfs of the 64 bit registers.
8031
8032 2010-04-13  Simon Baldwin  <simonb@google.com>
8033
8034         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
8035
8036 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
8037
8038         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
8039         rvalue on the RHS if the LHS is of a non-renamable type.
8040         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
8041
8042 2010-04-13  Matthias Klose  <doko@ubuntu.com>
8043
8044         * gcc.c (cc1_options): Handle -iplugindir before processing
8045         the cc1 spec. Only add -iplugindir once.
8046         (cpp_unique_options): Add -iplugindir option if -fplugin* options
8047         found.
8048         * common.opt (iplugindir): Remove `Separate' property, initialize.
8049         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
8050         option.
8051         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
8052         (distclean): Remove plugin dir.
8053         * doc/invoke.texi: Document -iplugindir.
8054
8055 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
8056
8057         * doc/plugins.texi (Loading Plugins): Document short
8058         -fplugin=foo option.
8059         (Plugin API): Mention default_plugin_dir_name function.
8060
8061         * gcc.c (find_file_spec_function): Add new declaration.
8062         (static_spec_func): Use it for "find-file".
8063         (find_file_spec_function): Add new function.
8064         (cc1_options): Add -iplugindir option if -fplugin* options found.
8065
8066         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
8067
8068         * plugin.c (add_new_plugin): Updated comment, and handle short
8069         plugin name.
8070         (default_plugin_dir_name): Added new function.
8071
8072         * common.opt (iplugindir): New option to set the plugin directory.
8073
8074 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
8075
8076         * config/i386/i386.md (any_rotate): New code iterator.
8077         (rotate_insn): New code attribute.
8078         (rotate): Ditto.
8079         (SWIM124): New mode iterator.
8080         (<rotate_insn>ti3): New expander.
8081         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
8082         any_rotate code iterator.
8083         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
8084         using any_rotate code iterator and SWIM124 mode iterator.
8085         (ix86_rotlti3): New insn_and_split pattern.
8086         (ix86_rotrti3): Ditto.
8087         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
8088         ix86_rotl{di,ti}3 patterns.
8089         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
8090         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
8091         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
8092         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
8093         code iterator and SWI mode iterator.
8094         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
8095         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
8096         code iterator.
8097         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
8098         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
8099         (bswap rotatert splitter): Add splitter.
8100         (bswap splitter): Macroize splitter using any_rotate code iterator.
8101         Add insn predicate to split only for TARGET_USE_XCHGB or when
8102         optimizing function for size.
8103
8104 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
8105
8106         * config/pa/pa.c (emit_move_sequence): Remove use of
8107         deleted variable flag_argument_noalias.
8108
8109 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8110
8111         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
8112         configurations.
8113         Add to unsupported targets list.
8114         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
8115         sparc*-sun-solaris2.[567]* from target lists.
8116         * configure: Regenerate.
8117         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
8118         removal.
8119         Remove Solaris 7 patch references.
8120         (Specific, sparc-sun-solaris2.7): Removed.
8121         (sparc-sun-solaris2*): Update Solaris 7 example.
8122         (sparc64-*-solaris2*): Likewise.
8123
8124 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8125
8126         * config.build (alpha*-dec-osf4*): Remove.
8127         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
8128         of obsolete configurations.
8129         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
8130         support.
8131         * config/alpha/t-osf4: Renamed to ...
8132         * config/alpha/t-osf5: ... this.
8133         * config/alpha/osf.h: Renamed to ...
8134         * config/alpha/osf5.h: ... this.
8135         Merged old osf5.h contents.
8136         Update comments.
8137         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
8138         (EXTRA_SPECS): Removed.
8139         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
8140         reflect removal of Tru64 UNIX V4.0/V5.0 support.
8141         Document that.
8142
8143 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8144
8145         * doc/contrib.texi (Contributors, Rainer Orth): Update.
8146
8147 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
8148
8149         PR/43702
8150         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
8151         __thiscall convention.
8152
8153 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
8154
8155         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
8156         orig_base.
8157         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
8158
8159 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
8160
8161         * function.c (assign_parms_initialize_all): Add unused attribute
8162         to fntype.
8163
8164 2010-04-12  Richard Guenther  <rguenther@suse.de>
8165
8166         * gsstruct.def (GSS_CALL): New.
8167         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
8168         * gimple.h: Include tree-ssa-alias.h.
8169         (struct gimple_statement_call): New.
8170         (union gimple_statement_struct_d): Add gimple_call member.
8171         (gimple_call_reset_alias_info): Declare.
8172         (gimple_call_use_set): New function.
8173         (gimple_call_clobber_set): Likewise.
8174         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
8175         * gimple.c (gimple_call_reset_alias_info): New function.
8176         (gimple_build_call_1): Call it.
8177         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8178         * tree-inline.c (remap_gimple_stmt): Likewise.
8179         (expand_call_inline): Remove callused handling.
8180         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
8181         * tree-dfa.c (dump_variable): Likewise.
8182         * tree-parloops.c (parallelize_loops): Likewise.
8183         * tree-ssa.c (init_tree_ssa): Likewise.
8184         (delete_tree_ssa): Likewise.
8185         * tree-flow-inline.h (is_call_used): Remove.
8186         * tree-flow.h (struct gimple_df): Remove callused member.
8187         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
8188         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
8189         (ref_maybe_used_by_call_p_1): Simplify.
8190         (call_may_clobber_ref_p_1): Likewise.
8191         * tree-ssa-structalias.c (compute_points_to_sets): Set
8192         the call stmt used and clobbered sets.
8193         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
8194         (find_tail_calls): Verify the tail call.
8195
8196 2010-04-12  Richard Guenther  <rguenther@suse.de>
8197
8198         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
8199         single-iteration always-inline inlining.
8200         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
8201         (cgraph_decide_inlining): Do not handle always-inline specially.
8202         (try_inline): Remove always-inline cycle detection special case.
8203         Do not recurse on always-inlines.
8204         (cgraph_early_inlining): Do not iterate if not optimizing.
8205         (cgraph_gate_early_inlining): remove.
8206         (pass_early_inline): Run unconditionally.
8207         (gate_cgraph_decide_inlining): New function.
8208         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
8209         not inlining or optimizing.
8210         (cgraph_decide_inlining_of_small_functions): Also consider
8211         always-inline functions.
8212         (cgraph_default_inline_p): Return true for nodes which should
8213         disregard inline limits.
8214         (estimate_function_body_sizes): Assume zero size and time for
8215         nodes which are marked as disregarding inline limits.
8216         (cgraph_decide_recursive_inlining): Do not perform recursive
8217         inlining on always-inline nodes.
8218
8219 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
8220
8221         PR bootstrap/43699
8222         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
8223         for exprs satisfying handled_component_p.
8224
8225 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
8226
8227         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
8228         non-constant aggregate elements.
8229
8230         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
8231         is a real initialization.
8232
8233 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
8234
8235         PR c/36774
8236         * c-decl.c (start_function): Move forward check for nested function.
8237
8238 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
8239
8240         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
8241         * config/sh/sh.c: Include reload.h.
8242         (sh_legitimize_reload_address): New.
8243         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
8244         sh_legitimize_reload_address.
8245
8246 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
8247
8248         * config/sh/sh.md (*movqi_pop): New insn pattern.
8249         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
8250
8251 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
8252
8253         * config/i386/i386.md (any_shiftrt): New code iterator.
8254         (shiftrt_insn): New code attribute.
8255         (shiftrt): Ditto.
8256         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
8257         using any_shiftrt code iterator.
8258         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
8259         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
8260         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
8261         pattern from corresponding peephole2 patterns.
8262         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
8263         using any_shiftrt code iterator.
8264         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
8265         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
8266         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
8267         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
8268         *{ashr,lshr}<mode>3_cmp_zext.
8269         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
8270
8271 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
8272
8273         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
8274         scratch register.
8275         (*lshr<mode>3_cconly): Ditto.
8276
8277 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
8278
8279         * config/i386/i386.md (lshr<mode>3): Macroize expander from
8280         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
8281         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
8282         pattern from *lshr{di,ti}3_1 and corresponding splitters using
8283         DWI mode iterator.
8284         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
8285         from corresponding peephole2 patterns.
8286         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
8287         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
8288         and *lshrdi3_1_rex64 using SWI mode iterator.
8289         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
8290         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
8291         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
8292         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
8293         and *lshrdi3_cmp_rex64 using SWI mode iterator.
8294         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
8295         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
8296         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
8297         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
8298         SWI mode iterator.
8299
8300 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
8301
8302         * config/i386/i386.md (ashr<mode>3): Macroize expander from
8303         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
8304         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
8305         pattern from *ashr{di,ti}3_1 and corresponding splitters using
8306         DWI mode iterator.
8307         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
8308         from corresponding peephole2 patterns.
8309         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
8310         (ashrsi3_cvt): Rename from ashrsi3_31.
8311         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
8312         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
8313         and x86_64_shift_adj_3 using SWI48 mode iterator.
8314         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
8315         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
8316         and *ashrdi3_1_rex64 using SWI mode iterator.
8317         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
8318         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
8319         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
8320         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
8321         and *ashrdi3_cmp_rex64 using SWI mode iterator.
8322         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
8323         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
8324         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
8325         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
8326         SWI mode iterator.
8327         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
8328         * config/i386/i386.c (ix86_split_ashr): Update for renamed
8329         x86_shift<mode>_adj_3 expanders.
8330
8331 2010-04-10  Wei Guozhi  <carrot@google.com>
8332
8333         PR target/42601
8334         * config/arm/arm.c (arm_pic_static_addr): New function.
8335         (legitimize_pic_address): Call arm_pic_static_addr when it detects
8336         a static symbol.
8337         (arm_output_addr_const_extra): Output expression for new pattern.
8338         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
8339
8340 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
8341
8342         * ira-costs.c (record_reg_classes): Ignore alternatives that are
8343         not enabled.
8344
8345         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
8346         * web.c: Include "insn-config.h" and "recog.h".
8347         (union_match_dups): New function.
8348         (web_main): Call it.
8349         (union_defs): Don't try to recognize match_dups.
8350
8351         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
8352         if doing so would replace the entire pattern.
8353
8354 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
8355
8356         PR target/43707
8357         PR target/43709
8358         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
8359         and splitter pattern.  Change splitter operand 1 predicate to
8360         nonmemory_operand.
8361
8362 2010-04-09  Martin Jambor  <mjambor@suse.cz>
8363
8364         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
8365         lattices are addresses of CONST_DECLs with the same initial value.
8366         (ipcp_print_all_lattices): Print values of CONST_DECLs.
8367         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
8368
8369 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
8370             Bernd Schmidt  <bernds@codesourcery.com>
8371
8372         * loop-invariant.c (replace_uses): New static function.
8373         (move_invariant_reg): Use it to ensure we can replace the uses.
8374
8375 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
8376
8377         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
8378         function template.
8379         (picochip_override_options): Enable section anchors only above -O1.
8380         (picochip_reorg): Fixed a couple of build warnings.
8381
8382 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8383
8384         * configure.ac (plugin -rdynamic test): Log result.
8385         * configure: Regenerate.
8386         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
8387         (RDYNAMIC_SPEC): Define.
8388         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
8389
8390 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8391
8392         * configure.ac: Determine Sun ld version numbers.
8393         (comdat_group): Restrict GNU ld version checks to gld.
8394         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
8395         (enable_comdat): Support --enable-comdat.
8396         * configure: Regenerate.
8397         * doc/install.texi (Configuration): Document --enable-comdat.
8398
8399 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8400
8401         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
8402         * config/sol2-gld.h: ... here.
8403         * config.gcc (sparc*-*-solaris2*): Reflect this.
8404         (i[34567]86-*-solaris2*): Use it.
8405
8406 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
8407
8408         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
8409         setup_clocks_p.
8410         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
8411
8412 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8413
8414         PR 42965
8415         * diagnostic.c (diagnostic_initialize): Initialize
8416         some_warnings_are_errors.
8417         (diagnostic_finish): New.
8418         (diagnostic_action_after_output): Call it before exiting.
8419         (diagnostic_report_diagnostic): Do not print message here. Set
8420         some_warnings_are_errors.
8421         * diagnostic.h (diagnostic_context): Delete
8422         issue_warnings_are_errors_message. Add some_warnings_are_errors.
8423         (diagnostic_finish): Declare.
8424         * toplev.c (toplev_main): Call it before exit.
8425
8426 2010-04-09  Jason Merrill  <jason@redhat.com>
8427
8428         PR c++/42623
8429         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
8430         for incomplete type.
8431
8432         PR c++/41788
8433         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
8434         based on a warning flag.
8435
8436 2010-04-09  Richard Guenther  <rguenther@suse.de>
8437
8438         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
8439
8440 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
8441
8442         PR bootstrap/43684
8443         * varasm.c (default_assemble_visibility): Wrap vars that are
8444         set, but unused, by targets without GAS.
8445         * config/rs6000/rs6000.c (paired_emit_vector_compare):
8446         Remove set, but unused, vars.
8447         (rs6000_legitimize_tls_address): Likewise.
8448         (altivec_expand_dst_builtin): Likewise.
8449         * config/darwin.c (machopic_classify_symbol): Likewise.
8450         (machopic_indirection_name): Likewise.
8451
8452 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
8453
8454         * config/i386/i386.md (DWI): New mode iterator.
8455         (S): New mode attribute.
8456         (shift_operand): Ditto.
8457         (shift_immediate_operand): Ditto.
8458         (ashl_input_operand): Ditto.
8459         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
8460         using SDWIM mode iterator.
8461         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
8462         pattern from *ashl{di,ti}3_1 and corresponding splitters using
8463         DWI mode iterator.
8464         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
8465         from corresponding peephole2 patterns.
8466         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
8467         and x86_64_shift_adj_1 using SWI48 mode iterator.
8468         (x86_shift<mode>_adj_2): Ditto.
8469         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
8470         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
8471         using SWI48 mode iterator.
8472         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
8473         *ashldi3_cmp_rex64 using SWI mode iterator.
8474         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
8475         *ashldi3_cconly_rex64 using SWI mode iterator.
8476         * config/i386/i386.c (ix86_split_ashl): Update for renamed
8477         x86_shift<mode>_adj_{1,2}.
8478         (ix86_split_ashr): Ditto.
8479         (ix86_split_lshr): Ditto.
8480
8481 2010-04-09  Richard Guenther  <rguenther@suse.de>
8482
8483         * target.h (builtin_conversion): Pass in input and output types.
8484         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
8485         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
8486         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
8487         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
8488
8489         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
8490         Handle AVX modes.
8491         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
8492
8493 2010-04-09  Richard Guenther  <rguenther@suse.de>
8494
8495         PR target/43152
8496         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
8497
8498 2010-04-09  Richard Guenther  <rguenther@suse.de>
8499
8500         * tree-vectorizer.h (struct _stmt_vec_info): Document
8501         that vectype is the type of the LHS.
8502         (supportable_widening_operation, supportable_narrowing_operation):
8503         Get both input and output vector types as arguments.
8504         (vect_is_simple_use_1): Declare.
8505         (get_same_sized_vectype): Likewise.
8506         * tree-vect-loop.c (vect_determine_vectorization_factor):
8507         Set STMT_VINFO_VECTYPE to the vector type of the def.
8508         (vectorizable_reduction): Adjust.
8509         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
8510         Adjust.  Specify the output vector type.
8511         (vect_pattern_recog_1): Adjust.
8512         * tree-vect-stmts.c (get_same_sized_vectype): New function.
8513         (vectorizable_call): Adjust.
8514         (vectorizable_conversion): Likewise.
8515         (vectorizable_operation): Likewise.
8516         (vectorizable_type_demotion): Likewise.
8517         (vectorizable_type_promotion): Likewise.
8518         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
8519         the def.
8520         (vect_is_simple_use_1): New function.
8521         (supportable_widening_operation): Get both input and output
8522         vector types.
8523         (supportable_narrowing_operation): Likewise.
8524         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
8525
8526 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
8527
8528         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
8529         __thiscall and _thiscall as predefined macros.
8530         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
8531         thiscall attribute handling.
8532         (ix86_comp_type_attributes): Likewise.
8533         (ix86_function_regparm): Likewise.
8534         (ix86_return_pops_args): Likewise.
8535         (init_cumulative_args): Likewise.
8536         (find_drap_reg): Likewise.
8537         (ix86_static_chain): Likewise.
8538         (x86_this_parameter): Likewise.
8539         (x86_output_mi_thunk): Likewise.
8540         (ix86_attribute_table): Add description for thiscall attribute.
8541         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
8542         * doc/extend.texi: Add documentation for thiscall.
8543
8544 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8545
8546         PR c++/28584
8547         * c.opt (Wint-to-pointer-cast): Available in C++.
8548         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
8549
8550 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
8551
8552         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
8553         * calls.c (expand_call): Pass the function type to aggregate_value_p.
8554         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
8555         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
8556         function type instead.  Reorder and simplify checks.
8557
8558         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
8559
8560 2010-04-08  Jing Yu  <jingyu@google.com>
8561             Zdenek Dvorak  <ook@ucw.cz>
8562
8563         PR tree-optimization/42720
8564         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
8565         loop unswitch conditions here from ...
8566         (tree_unswitch_single_loop): ... here.
8567
8568 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
8569
8570         * tree-if-conv.c: Fix comments and simplify logic.
8571
8572 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
8573
8574         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
8575         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
8576         (main_tree_if_conversion): Update call to tree_if_conversion.
8577
8578 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8579
8580         PR 42485
8581         * doc/invoke.texi (-b,-V): Delete.
8582         * doc/tm.texi: Do not mention -b.
8583         * gcc.c (display_help): Delete -b and -V.
8584         (process_command): Delete -b and -V.
8585         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
8586
8587 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
8588             Wolfgang Gellerich  <gellerich@de.ibm.com>
8589
8590         Implement target hook for loop unrolling
8591         * target.h (loop_unroll_adjust): Add a new target hook function.
8592         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
8593         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
8594         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
8595         (s390_loop_unroll_adjust): Implement the new target hook for s390.
8596         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
8597         target hook.
8598         (decide_unroll_stupid): Likewise.
8599
8600 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8601
8602         PR target/43643
8603         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
8604
8605 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8606
8607         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
8608         (Specific, *-*-solaris2*): Likewise.
8609         Don't prefer Sun as over GNU as.
8610
8611 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
8612
8613         * config/s390/s390.c (override_options): Adjust the z10 defaults
8614         for max-unroll-times, max-completely-peeled-insns
8615         and max-completely-peel-times.
8616
8617 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8618
8619         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
8620         instructions for z10.
8621         (s390_expand_setmem): Likewise.
8622         (s390_expand_cmpmem): Likewise.
8623
8624 2010-04-08  Richard Guenther  <rguenther@suse.de>
8625
8626         PR tree-optimization/43679
8627         * tree-ssa-pre.c (eliminate): Only propagate copies.
8628
8629 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
8630
8631         PR bootstrap/43681
8632         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
8633         set but not used variable warning.
8634
8635 2010-04-08  Wei Guozhi  <carrot@google.com>
8636
8637         PR target/41653
8638         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
8639         (arm_size_rtx_costs): Call the new function when optimized for size.
8640
8641 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
8642
8643         PR debug/43670
8644         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
8645         op0 is not a MEM, just return NULL instead of assertion
8646         failure.
8647         (discover_nonconstant_array_refs): Don't walk debug stmts.
8648
8649 2010-04-08  Doug Kwan  <dougkwan@google.com>
8650
8651         * configure.ac: Recognize gold and do not use its version number
8652         to test ld features.
8653         * configure: Regenerate.
8654
8655 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
8656
8657         PR middle-end/40815
8658         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
8659         (negate_value): Move code to push elements to broken_up_substracts ...
8660         (eliminate_plus_minus_pair): ... here.  Push operands that have no
8661         negative pair to plus_negates.
8662         (repropagate_negates, init_reassoc, fini_reassoc): Update.
8663
8664 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8665
8666         * doc/install.texi (Configuration): Move description of
8667         --enable-lto, --with-libelf*, --enable-gold from Java section to
8668         general section.
8669
8670         * doc/generic.texi (Working with declarations)
8671         (Function Properties, C and C++ Trees): Fix typos.
8672         * doc/sourcebuild.texi (Top Level): Likewise.
8673
8674 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
8675
8676         PR c/18624
8677         * tree.h (DECL_READ_P): Define.
8678         (struct tree_decl_common): Add decl_read_flag.
8679         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
8680         a set but not used warning.
8681         (merge_decls): Merge DECL_READ_P flag.
8682         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
8683         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
8684         * c-common.c (handle_used_attribute, handle_unused_attribute):
8685         Likewise.
8686         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
8687         New prototypes.
8688         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
8689         New functions.
8690         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
8691         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
8692         c_parser_binary_expression, c_parser_cast_expression,
8693         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
8694         Call default_function_array_read_conversion instead of
8695         default_function_array_conversion where needed.
8696         (c_parser_unary_expression, c_parser_conditional_expression,
8697         c_parser_postfix_expression_after_primary, c_parser_initelt):
8698         Likewise.  Call mark_exp_read where needed.
8699         (c_parser_statement_after_labels, c_parser_asm_operands,
8700         c_parser_typeof_specifier, c_parser_sizeof_expression,
8701         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
8702         where needed.
8703         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
8704         New.
8705         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
8706         (warn_unused_but_set_parameter): Default to warn_unused
8707         && extra_warnings.
8708         * doc/invoke.texi: Document -Wunused-but-set-variable and
8709         -Wunused-but-set-parameter.
8710
8711         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
8712         used count variable.
8713         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
8714         when operandN variables aren't used in the body of the expander
8715         or splitter.
8716         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
8717         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
8718         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
8719         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
8720         FOR_EACH_IMM_USE_ON_STMT): Likewise.
8721         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
8722         * tree.c (PROCESS_ARG): Likewise.
8723
8724 2010-04-07  Simon Baldwin  <simonb@google.com>
8725
8726         * diagnostic.h (diagnostic_override_option_index): New macro to
8727         set a diagnostic's option_index.
8728         * c-tree.h (c_cpp_error): Add warning reason argument.
8729         * opts.c (_warning_as_error_callback): New.
8730         (register_warning_as_error_callback): Store callback for
8731         warnings enabled via enable_warning_as_error.
8732         (enable_warning_as_error): Call callback, minor code tidy.
8733         * opts.h (register_warning_as_error_callback): Declare.
8734         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
8735         response to -Werror=.
8736         (c_common_init_options): Register warning_as_error_callback in opts.c.
8737         * common.opt: Add -Wno-cpp option.
8738         * c-common.c (struct reason_option_codes_t): Map cpp warning
8739         reason codes to gcc option indexes.
8740         * (c_option_controlling_cpp_error): New function, lookup the gcc
8741         option index for a cpp warning reason code.
8742         * (c_cpp_error): Add warning reason argument, call
8743         c_option_controlling_cpp_error for diagnostic_override_option_index.
8744         * doc/invoke.texi: Document -Wno-cpp.
8745
8746 2010-04-07  Richard Guenther  <rguenther@suse.de>
8747
8748         * ipa-reference.c (mark_load): Use get_base_address.
8749         (mark_store): Likewise.
8750
8751         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
8752         inserting GIMPLE_NOPs into the IL.
8753         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8754         Explicitly strip handled components and indirect references.
8755
8756         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
8757         folding address expressions.
8758         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
8759         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
8760         operand_equal_p to compare decls.
8761         (ptr_deref_may_alias_decl_p): Likewise.
8762         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
8763         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
8764         Handle reversed comparison ops.
8765         * tree-sra.c (asm_visit_addr): Use get_base_address.
8766         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
8767         * ipa-reference.c (mark_address): Use get_base_address.
8768
8769 2010-04-07  Richard Guenther  <rguenther@suse.de>
8770
8771         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
8772         Propagate constants everywhere.
8773
8774 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
8775
8776         PR debug/43516
8777         * tree.c (MAX_INT_CACHED_PREC): Define.
8778         (nonstandard_integer_type_cache): New array.
8779         (build_nonstandard_integer_type): Cache results for precision
8780         <= MAX_INT_CACHED_PREC.
8781
8782 2010-04-07  Richard Guenther  <rguenther@suse.de>
8783
8784         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
8785         -fargument-noalias-global, -fargument-noalias-anything): Remove.
8786         * common.opt: Likewise.
8787         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
8788         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
8789         (nonoverlapping_memrefs_p): Likewise.
8790         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8791         * opts.c (common_handle_option): Handle OPT_fargument_alias,
8792         OPT_fargument_noalias, OPT_fargument_noalias_anything and
8793         OPT_fargument_noalias_global for backward compatibility.
8794
8795 2010-04-07  Richard Guenther  <rguenther@suse.de>
8796
8797         PR tree-optimization/43270
8798         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
8799         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
8800         * tree-ssa-pre.c (phi_translate_1): Adjust.
8801         (fully_constant_expression): Split out vn_reference handling to ...
8802         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
8803         Fold reads from constant strings.
8804         (vn_reference_lookup): Handle fully constant references.
8805         (vn_reference_lookup_pieces): Likewise.
8806         * Makefile.in (expmed.o-warn): Add -Wno-error.
8807
8808 2010-04-07  Martin Jambor  <mjambor@suse.cz>
8809
8810         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
8811
8812 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
8813
8814         PR driver/41594
8815         * gcc.c: Add -static-libstdc++ to list of recognized options.
8816
8817 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8818
8819         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
8820
8821 2010-04-07  Richard Guenther  <rguenther@suse.de>
8822
8823         PR middle-end/42617
8824         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
8825         bases build simple mem attributes to retain points-to information.
8826
8827 2010-04-07  Richard Guenther  <rguenther@suse.de>
8828
8829         PR middle-end/42617
8830         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
8831         preserve points-to related information.
8832
8833 2010-04-07  Richard Guenther  <rguenther@suse.de>
8834
8835         PR middle-end/42617
8836         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
8837         discard plain indirect references.
8838         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
8839         * tree.c (tree_nop_conversion): Likewise.
8840
8841 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
8842
8843         PR debug/43628
8844         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
8845
8846 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
8847
8848         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
8849         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
8850
8851 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
8852
8853         * tree-if-conv.c: Fix indentation and comments.
8854
8855 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
8856
8857         * tree-if-conv.c: Sort static functions in topological order.
8858
8859 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
8860
8861         * tree-if-conv.c: Fix indentation and comments.
8862
8863 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
8864
8865         PR middle-end/43519
8866         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
8867         lang_hooks.types.type_for_size instead of
8868         build_nonstandard_integer_type.
8869         When converting an unsigned type to signed, double its precision.
8870         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
8871         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
8872         (graphite_create_new_loop_guard): When ub + 1 wraps around,
8873         use lb <= ub.
8874
8875 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
8876
8877         PR middle-end/43519
8878         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
8879         POINTER_PLUS_EXPR for pointer types.
8880
8881 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
8882
8883         PR middle-end/43519
8884         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
8885         * graphite-clast-to-gimple.c: Include langhooks.h.
8886         (max_signed_precision_type): New.
8887         (max_precision_type): Takes two types as arguments.
8888         (precision_for_value): New.
8889         (precision_for_interval): New.
8890         (gcc_type_for_interval): New.
8891         (gcc_type_for_value): New.
8892         (gcc_type_for_clast_term): New.
8893         (gcc_type_for_clast_red): New.
8894         (gcc_type_for_clast_bin): New.
8895         (gcc_type_for_clast_expr): Split up into several functions.
8896         (gcc_type_for_clast_eq): Rewritten.
8897         (compute_bounds_for_level): New.
8898         (compute_type_for_level_1): New.
8899         (compute_type_for_level): New.
8900         (gcc_type_for_cloog_iv): Removed.
8901         (gcc_type_for_iv_of_clast_loop): Rewritten.
8902         (graphite_create_new_loop): Compute the lower and upper bound types
8903         with gcc_type_for_clast_expr.
8904         (graphite_create_new_loop_guard): Same.
8905         (find_cloog_iv_in_expr): Removed.
8906         (compute_cloog_iv_types_1): Removed.
8907         (compute_cloog_iv_types): Removed.
8908         (gloog): Do not call compute_cloog_iv_types.
8909         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
8910         GBB_CLOOG_IV_TYPES.
8911         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
8912         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
8913         (GBB_CLOOG_IV_TYPES): Removed.
8914
8915 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
8916
8917         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
8918         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
8919         (detect_commutative_reduction): Same.
8920
8921 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
8922
8923         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
8924         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
8925         argument.
8926         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
8927         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
8928         (rewrite_commutative_reductions_out_of_ssa): Same.
8929         * passes.c (execute_function_todo): Call verify_ssa for every pass
8930         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
8931         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
8932         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
8933         with an extra argument.
8934         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
8935         verify_ssa only when the extra argument is true.
8936         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
8937         with an extra argument.
8938         (tree_transform_and_unroll_loop): Same.
8939
8940 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
8941
8942         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
8943         for all the passes of the LNO having LOOP_CLOSED_SSA.
8944         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
8945         * tree-loop-distribution.c (pass_loop_distribution): Same.
8946         * tree-pass.h (TODO_verify_loops): Removed.
8947         * tree-ssa-loop.c (pass_tree_loop_init): Same.
8948         (pass_lim): Same.
8949         (pass_tree_unswitch): Same.
8950         (pass_predcom): Same.
8951         (pass_vectorize): Same.
8952         (pass_linear_transform): Same.
8953         (pass_graphite_transforms): Same.
8954         (pass_iv_canon): Same.
8955         (pass_complete_unroll): Same.
8956         (pass_complete_unrolli): Same.
8957         (pass_parallelize_loops): Same.
8958         (pass_loop_prefetch): Same.
8959         (pass_iv_optimize): Same.
8960
8961 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
8962
8963         PR middle-end/32824
8964         * passes.c (init_optimization_passes): Move pass_lim before
8965         pass_copy_prop and pass_dce_loop.
8966
8967 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
8968
8969         PR target/43667
8970         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
8971         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
8972         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
8973         MULTI_* defines for 4 argument vpermil2p* builtins.
8974
8975 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
8976
8977         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
8978         * config/i386/i386.c (x86_maybe_negate_const_int): New.
8979         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
8980         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
8981         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
8982         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
8983         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
8984         Use x86_maybe_negate_const_int to output insn mnemonic.
8985         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
8986         check from instruction predicate.  Update comments.
8987         * config/i386/sync.md (sync_add<mode>): Use
8988         x86_maybe_negate_const_int to output insn mnemonic.
8989
8990 2010-04-06  Jan Hubicka  <jh@suse.cz>
8991
8992         PR tree-optimization/42906
8993         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
8994         IGNORE_SELF argument.  Set visited_control_parents for fully
8995         processed BBs.
8996         (find_obviously_necessary_stmts): Update call of
8997         mark_control_dependent_edges_necessary.
8998         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
8999
9000 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
9001
9002         * config/i386/i386.md: Remove comment about 'e' and 'E'
9003         operand modifier.
9004
9005 2010-04-06  Richard Guenther  <rguenther@suse.de>
9006
9007         PR tree-optimization/43627
9008         * tree-vrp.c (extract_range_from_unary_expr): Widenings
9009         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
9010         not varying.
9011
9012 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
9013
9014         * BASE-VER: Change to 4.6.0.
9015
9016         PR target/43638
9017         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
9018         handling.
9019
9020 2010-04-06  Richard Guenther  <rguenther@suse.de>
9021
9022         PR middle-end/43661
9023         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
9024
9025 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9026
9027         * doc/invoke.texi (Optimize Options): Document that LTO
9028         won't remove object access purely due to incompatible
9029         declarations.
9030
9031 2010-04-04  Matthias Klose  <doko@ubuntu.com>
9032
9033         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
9034         Initialize variable.
9035
9036 2010-04-03  Richard Guenther  <rguenther@suse.de>
9037
9038         PR middle-end/42509
9039         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
9040         require a non-NULL MEM_OFFSET.
9041
9042 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
9043
9044         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
9045         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
9046         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
9047         config/alpha/predicates.md, config/arm/arm.md,
9048         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
9049         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
9050         config/darwin9.h, config/darwin.c, config/darwin.h,
9051         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
9052         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
9053         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
9054         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
9055         config/mips/mips.md, config/mn10300/mn10300.c,
9056         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
9057         config/rs6000/aix.h, config/rs6000/dfp.md,
9058         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
9059         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
9060         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
9061         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
9062         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
9063         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
9064         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
9065         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
9066         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
9067         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
9068         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
9069         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
9070         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
9071         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
9072         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
9073         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
9074         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
9075         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
9076         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
9077         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
9078         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
9079         opt-functions.awk, opth-gen.awk, params.def, passes.c,
9080         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
9081         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
9082         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
9083         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
9084         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
9085         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9086         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
9087         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
9088         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
9089         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
9090         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
9091         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
9092         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
9093         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
9094
9095 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9096
9097         PR other/43620
9098         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
9099         * aclocal.m4: Regenerate.
9100
9101 2010-04-02  Richard Guenther  <rguenther@suse.de>
9102
9103         PR tree-optimization/43629
9104         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
9105         if we have seen a constant value.
9106
9107 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
9108
9109         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
9110
9111 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
9112
9113         PR target/43469
9114         * arm.c (legitimize_tls_address): Adjust call to
9115         gen_tls_load_dot_plus_four.
9116         (arm_note_pic_base): New function.
9117         (arm_cannot_copy_insn_p): Use it.
9118         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
9119         constraint.
9120
9121 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9122
9123         PR bootstrap/43531
9124
9125         Revert:
9126         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9127
9128         * Makefile.in ($(out_object_file)): Depend on
9129         gt-$(basename $(notdir $(out_file))).h.
9130
9131 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
9132
9133         * config.gcc (lm32-*-rtems*): Add t-lm32.
9134
9135 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
9136
9137         * config.gcc: Add lm32-*-rtems*.
9138         * config/lm32/rtems.h: New file.
9139
9140 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
9141
9142         PR target/42609
9143         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
9144
9145 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
9146
9147         * dwarf2out.c (output_compilation_unit_header): For
9148         -gdwarf-4 use version 4 instead of version 3.
9149         (output_line_info): For version 4 and above emit additional
9150         maximum ops per insn header field.
9151         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
9152
9153         * dwarf2out.c (is_c_family, is_java): Remove.
9154         (lower_bound_default): New function.
9155         (add_bound_info, gen_descr_array_type_die): Use it.
9156
9157 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
9158
9159         PR debug/43325
9160         * dwarf2out.c (gen_variable_die): Allow debug info for variable
9161         re-declaration when it happens in a function.
9162
9163 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
9164
9165         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
9166         (cgraph_remove_function_insertion_hook): Same.
9167         (cgraph_call_function_insertion_hooks): Same.
9168
9169 2010-04-01  Richard Guenther  <rguenther@suse.de>
9170
9171         PR middle-end/43614
9172         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
9173         and TREE_THIS_VOLATILE.
9174         (copy_ref_info): Likewise.
9175         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
9176         * tree.c (build6_stat): Ignore side-effects of all but arg5
9177         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
9178         TARGET_MEM_REF.
9179
9180 2010-04-01  Richard Guenther  <rguenther@suse.de>
9181
9182         PR tree-optimization/43607
9183         * ipa-type-escape.c (check_call): Do not access non-existing
9184         arguments.
9185
9186 2010-04-01  Richard Guenther  <rguenther@suse.de>
9187
9188         PR middle-end/43602
9189         Revert
9190         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
9191                     Jack Howarth <howarth@bromo.med.uc.edu>
9192
9193         * tree-profile.c (tree_init_ic_make_global_vars): Make static
9194         variables TLS.
9195
9196 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9197
9198         * doc/install.texi (Prerequisites): Document libelf usability on
9199         IRIX 5/6 and Solaris 2.
9200         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
9201         Update GNU as, GNU ld requirements.
9202         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
9203         Document Sun Studio compiler download.
9204         Update and simplify as, ld recommendations.
9205         (Specific, *-*-solaris2.7): Note obsoletion, removal.
9206
9207 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9208
9209         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
9210         with_tune_32 to pentium4.
9211
9212 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
9213
9214         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
9215
9216 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9217
9218         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
9219         obsoletion, removal.
9220         Update IDO URL.
9221         Document GNU as requirement.
9222         Update configure requirements.
9223         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
9224         Recomment IRIX 6.5.18+.
9225         Document IDF/IDL requirement.
9226         Document GNU as requirement.
9227         Document GNU ld bootstrap failure.
9228         Remove freeware.sgi.com reference.
9229
9230 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9231
9232         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
9233         UNIX V4.0, V5.0 obsoletion, removal.
9234         Remove --with-gc=simple reference.
9235         Update VM requirements during bootstrap.
9236         Remove -oldas bootstrap description.
9237         Update binutils reference.
9238         Remove comparison failure note.
9239
9240 2010-03-31  Richard Guenther  <rguenther@suse.de>
9241             Zdenek Dvorak  <ook@ucw.cz>
9242             Sebastian Pop  <sebastian.pop@amd.com>
9243
9244         PR middle-end/43464
9245         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
9246         with multiple arguments.
9247         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
9248
9249 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
9250
9251         * graphite-dependences.c (print_pddr): Call print_pdr with an
9252         extra argument.
9253         * graphite-poly.c (debug_pdr): Add an extra argument for the
9254         verbosity level.
9255         (print_pdr): Same.
9256         (print_pbb_domain): Same.
9257         (print_pbb): Same.
9258         (print_scop_context): Same.
9259         (print_scop): Same.
9260         (print_cloog): Same.
9261         (debug_pbb_domain): Same.
9262         (debug_pbb): Same.
9263         (print_pdrs): Same.
9264         (debug_pdrs): Same.
9265         (debug_scop_context): Same.
9266         (debug_scop): Same.
9267         (debug_cloog): Same.
9268         (print_scop_params): Same.
9269         (debug_scop_params): Same.
9270         (print_iteration_domain): Same.
9271         (print_iteration_domains): Same.
9272         (debug_iteration_domain): Same.
9273         (debug_iteration_domains): Same.
9274         (print_scattering_function): Same.
9275         (print_scattering_functions): Same.
9276         (debug_scattering_function): Same.
9277         (debug_scattering_functions): Same.
9278         * graphite-poly.h (debug_pdr): Update declaration.
9279         (print_pdr): Same.
9280         (print_pbb_domain): Same.
9281         (print_pbb): Same.
9282         (print_scop_context): Same.
9283         (print_scop): Same.
9284         (print_cloog): Same.
9285         (debug_pbb_domain): Same.
9286         (debug_pbb): Same.
9287         (print_pdrs): Same.
9288         (debug_pdrs): Same.
9289         (debug_scop_context): Same.
9290         (debug_scop): Same.
9291         (debug_cloog): Same.
9292         (print_scop_params): Same.
9293         (debug_scop_params): Same.
9294         (print_iteration_domain): Same.
9295         (print_iteration_domains): Same.
9296         (debug_iteration_domain): Same.
9297         (debug_iteration_domains): Same.
9298         (print_scattering_function): Same.
9299         (print_scattering_functions): Same.
9300         (debug_scattering_function): Same.
9301         (debug_scattering_functions): Same.
9302
9303 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
9304
9305         * graphite-poly.c (print_scattering_function_1): New.
9306         (print_scattering_function): Call it.
9307         (print_scop_params): Remove spaces at the end of lines.
9308         (print_cloog): New.
9309         (debug_cloog): New.
9310         * graphite-poly.h (print_cloog): Declared.
9311         (debug_cloog): Declared.
9312
9313 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
9314
9315         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
9316         in loop->header.
9317         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
9318         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
9319         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
9320         to switch between adding the IV bump in loop->latch or in loop->header.
9321
9322 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
9323
9324         * graphite-poly.c (print_scattering_function): Pretty print following
9325         the scoplib format.
9326         (print_pdr): Same.
9327         (print_pbb_domain): Same.
9328         (dump_gbb_cases): Same.
9329         (dump_gbb_conditions): Same.
9330         (print_pdrs): Same.
9331         (print_pbb): Same.
9332         (print_scop_params): Same.
9333         (print_scop_context): Same.
9334         (print_scop): Same.
9335         (print_pbb_body): New.
9336         (lst_indent_to): New.
9337         (print_lst): Start new lines with a #.
9338         * graphite-poly.h (pbb_bb): New.
9339         (pbb_index): Use pbb_bb.
9340         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
9341         disjuncts.
9342         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
9343
9344 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
9345
9346         * dwarf2out.c (size_of_die): For -gdwarf-4 use
9347         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
9348         and 0 instead of 1 for dw_val_class_flag.
9349         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
9350         dw_val_class_range_list, dw_val_class_loc_list,
9351         dw_val_class_lineptr and dw_val_class_macptr, use
9352         DW_FORM_flag_present for dw_val_class_flag and
9353         DW_FORM_exprloc for dw_val_class_loc.
9354         (output_die): For -gdwarf-4 print dw_val_class_loc
9355         size as uleb128 instead of 1 or 2 bytes and don't print
9356         anything for dw_val_class_flag.
9357
9358         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
9359         instead of cselib_lookup following by tweaking locs->setting_insn.
9360
9361         PR bootstrap/43596
9362         * cselib.c (cselib_process_insn): Clear cselib_current_insn
9363         even before returning from label, setjmp call or volatile asm
9364         handling.
9365
9366 2010-03-31  Richard Guenther  <rguenther@suse.de>
9367
9368         PR middle-end/43600
9369         * cgraphunit.c (cgraph_output_in_order): Do not allocate
9370         temporary data on stack.
9371
9372 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9373
9374         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
9375         (PUSHSECTION_ASM_OP): Remove.
9376         (POPSECTION_ASM_OP): Remove.
9377         (PUSHSECTION_FORMAT): Remove.
9378         * config/sol2.h (PUSHSECTION_FORMAT): Define.
9379         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
9380         * config/sol2.c (solaris_output_init_fini): Use it.
9381
9382 2010-03-31  Jie Zhang  <jie@codesourcery.com>
9383
9384         PR 43574
9385         * opt-functions.awk (var_type_struct): Use signed char type
9386         for simple variables.
9387
9388 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9389
9390         * config/sol2.c: Include output.h.
9391         (solaris_assemble_visibility): New function.
9392         * config/t-sol2 (sol2.o): Add output.h dependency.
9393         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
9394         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
9395         Redefine.
9396
9397 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
9398
9399         PR target/43580
9400         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
9401         V2SImode or XFmode on PRE_DEC.
9402
9403         PR debug/43557
9404         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
9405         BLKmode.
9406
9407 2010-03-31  Jie Zhang  <jie@codesourcery.com>
9408
9409         PR 43562
9410         * reload.h (caller_save_initialized_p): Declare.
9411         * toplev.c (backend_init_target): Don't call
9412         init_caller_save but set caller_save_initialized_p to false.
9413         * caller-save.c (caller_save_initialized_p): Define.
9414         (init_caller_save): Check caller_save_initialized_p.
9415         * ira.c (ira): Call init_caller_save if flag_caller_saves.
9416
9417 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9418
9419         PR target/39048
9420         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
9421         and soft-fp/t-softfp to tmake_file.
9422         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
9423         (LIBGCC2_TF_CEXT): Define.
9424         (TF_SIZE): Define.
9425
9426 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
9427
9428         PR debug/42977
9429         * cselib.c (n_useless_values): Document handling of debug locs.
9430         (n_useless_debug_values, n_debug_values): New variables.
9431         (new_elt_loc_list): Don't add to debug values, keep count.
9432         (promote_debug_loc): New.
9433         (cselib_reset_table): Zero new variables.
9434         (entry_and_rtx_equal_p): Promote debug locs.
9435         (discard_useless_locs): Increment n_useless_debug_values for
9436         debug values.
9437         (remove_useless_values): Adjust n_useless_values and n_debug_values
9438         with n_useless_debug_values.
9439         (add_mem_for_addr): Promote debug locs.
9440         (cselib_lookup_mem): Likewise.
9441         (cselib_lookup_addr): Renamed to...
9442         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
9443         (cselib_log_lookup): ... this.  Turn into...
9444         (cselib_lookup_addr): ... new wrapper.
9445         (cselib_lookup_from_insn): New.
9446         (cselib_invalidate_regno): Increment n_useless_debug_values for
9447         debug values.
9448         (cselib_invalidate_mem): Likewise.
9449         (cselib_process_insn): Take n_deleted and n_debug_values into
9450         account to guard remove_useless_value call.
9451         (cselib_finish): Zero n_useless_debug_values.
9452         * cselib.h (cselib_lookup_from_insn): Declare.
9453         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
9454         (sched_analyze_2): Likewise.
9455
9456 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
9457
9458         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
9459         functions.
9460         (adjust_mems): Replace narrowing SUBREG of expression containing
9461         just PLUS, MINUS, MULT and ASHIFT of registers and constants
9462         with operations in the narrower mode.
9463
9464         PR debug/43593
9465         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
9466         regs_invalidated_by_call instead all call_used_reg_set registers.
9467
9468 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
9469
9470         PR middle-end/43430
9471         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
9472         pointer comparisons with types_compatible_p.
9473         * tree-vect-stmts.c (vectorizable_call): Same.
9474         (vectorizable_condition): Same.
9475
9476 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9477
9478         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
9479         stack check if the mask would be zero.
9480
9481 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
9482             Jack Howarth <howarth@bromo.med.uc.edu>
9483
9484         * tree-profile.c (tree_init_ic_make_global_vars): Make static
9485         variables TLS.
9486
9487 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
9488
9489         PR other/25232
9490         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
9491         and __unordtf2.
9492         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
9493         Include ___unordxf2 and ___unordtf2.
9494         * config/i386/libgcc-glibc.ver: Do not define inheritance from
9495         GCC_4.4.0 here.
9496
9497 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
9498
9499         * config/lm32/t-lm32: New file.
9500         * config.gcc: Use the above file when targetting lm32.
9501
9502 2010-03-28  Duncan Sands  <baldrick@free.fr>
9503
9504         * Makefile.in (PLUGIN_HEADERS): Add except.h.
9505
9506 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
9507
9508         PR middle-end/43431
9509         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
9510         Improve vectorization cost model diagnostic.
9511
9512 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
9513
9514         PR middle-end/43436
9515         * tree-vect-data-refs.c (vect_analyze_data_refs): When
9516         compute_data_dependences_for_loop returns false, early exit
9517         and output an extra diagnostic for the failed data reference
9518         analysis.
9519
9520 2010-03-29  Richard Guenther  <rguenther@suse.de>
9521
9522         PR tree-optimization/43560
9523         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
9524         (can_sm_ref_p): Treat stores to readonly locations as trapping.
9525
9526 2010-03-29  Jie Zhang  <jie@codesourcery.com>
9527
9528         PR 43564
9529         * toplev.c (process_options): Set optimization_default_node
9530         and optimization_current_node.
9531         * opts.c (decode_options): Don't set optimization_default_node
9532         and optimization_current_node.
9533
9534 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
9535
9536         * config/rtems.h: Abandon -qrtems_debug.
9537
9538 2010-03-28  Jan Hubicka  <jh@suse.cz>
9539
9540         PR tree-optimization/43505
9541         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
9542         map should not be copied.
9543
9544 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9545
9546         PR middle-end/41674
9547         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
9548         cdtors, set DECL_PRESERVE_P.
9549         * ipa.c (cgraph_externally_visible_p): Return true if declaration
9550         should be preseved.
9551
9552 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
9553
9554         PR tree-optimization/43528
9555         * stor-layout.c (place_field): Check that constant fits into
9556         unsigned HWI when skipping calculation of MS bitfield layout.
9557
9558 2010-03-27  Jan Hubicka  <jh@suse.cz>
9559
9560         PR middle-end/43391
9561         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
9562         notice_global_symbol work.
9563
9564 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
9565
9566         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
9567         instead of dwarf2out_decl.
9568         (struct var_loc_node): Remove section_label field.
9569         (dwarf2out_function_decl): New function.
9570         (dwarf2out_var_location): Don't set section_label field.
9571         (dwarf2out_begin_function): Don't empty decl_loc_table here.
9572
9573 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
9574
9575         PR tree-optimization/43544
9576         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9577         First argument for builtin vectorized function hook is now a
9578         tree to be able to distinguish between machine specific and
9579         standard builtins.
9580         * targhooks.c (default_builtin_vectorized_function): Ditto.
9581         * targhooks.h (default_builtin_vectorized_function): Ditto.
9582         * target.h (struct gcc_target): Ditto.
9583         * tree-vect-stmts.c (vectorizable_function): Ditto.
9584         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
9585         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9586         Ditto.
9587
9588 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
9589
9590         PR c/43381
9591         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
9592         nested binding iff it is a FUNCTION_DECL.
9593         (store_parm_decls_newstyle): Pass nested=true to bind for
9594         FUNCTION_DECLs amongst parameters.
9595
9596 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
9597
9598         * var-tracking.c (vt_expand_loc_callback): Don't run
9599         cselib_expand_value_rtx_cb in dummy mode if
9600         cselib_dummy_expand_value_rtx_cb returned false.
9601
9602         * var-tracking.c (emit_note_insn_var_location): For one part
9603         notes with offset 0, don't add EXPR_LIST around the location.
9604         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
9605         add_location_or_const_value_attribute): Adjust for that change.
9606
9607         PR debug/43540
9608         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
9609         into first operand and location into second.
9610         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
9611         dw_cfi_oprnd_loc for DW_CFA_expression.
9612         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
9613         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
9614         assume first argument is regnum and second argument is location.
9615
9616 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
9617
9618         PR target/42113
9619         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
9620         of scratch register to DImode.  Split to DImode comparison operator.
9621         Use SImode subreg of scratch register in the multiplication.
9622         (*cmp_sadd_sidi): Ditto.
9623         (*cmp_ssub_si): Ditto.
9624         (*cmp_ssub_sidi): Ditto.
9625
9626 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
9627
9628         PR target/43524
9629         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
9630         Remove invalid assert and wrong comment.
9631
9632 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
9633
9634         PR debug/43516
9635         * flags.h (final_insns_dump_p): New extern.
9636         * final.c (final_insns_dump_p): New variable.
9637         (rest_of_clean_state): Set it before -fdump-final-insns=
9638         dumping, clear afterwards.
9639         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
9640         MEM_ALIAS_SET on MEMs.
9641
9642 2010-03-26  David S. Miller  <davem@davemloft.net>
9643
9644         * configure.ac: Fix sparc GOTDATA_OP bug check.
9645         * configure: Rebuild.
9646
9647 2010-03-26  Alan Modra  <amodra@gmail.com>
9648
9649         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
9650
9651 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9652
9653         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
9654         TLS_SECTION_ASM_FLAG.
9655
9656 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
9657
9658         PR bootstrap/43511
9659         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
9660         Clear first_function_block_is_cold.
9661
9662         PR c/43385
9663         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
9664         argument if the argument is truth_value_p.
9665
9666 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9667
9668         * config/rs6000/constraints.md: Update copyright year for my changes.
9669
9670         PR target/43484
9671         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
9672         used in reg+reg addressing, swap registers.
9673
9674 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
9675
9676         PR debug/43293
9677         * target.h (struct gcc_target): Add code_end hook.
9678         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
9679         if not yet defined.
9680         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
9681         * toplev.c (compile_file): Call targetm.asm_out.code_end
9682         hook before unwind info/debug info output.
9683         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
9684         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
9685         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
9686         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
9687         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
9688         * config/i386/i386.c (ix86_file_end): Renamed to...
9689         (ix86_code_end): ... this.  Make static.  Don't call
9690         file_end_indicate_exec_stack.  Emit unwind info using
9691         final_start_function/final_end_function.
9692         (darwin_x86_file_end): Remove.
9693         (TARGET_ASM_CODE_END): Define.
9694         * config/i386/i386.h (TARGET_ASM_FILE_END,
9695         NEED_INDICATE_EXEC_STACK): Don't define.
9696         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
9697         (TARGET_ASM_FILE_END): Define to darwin_file_end.
9698         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
9699         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
9700
9701         PR target/43498
9702         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
9703         at the beginning and final_end_function at the end.
9704         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
9705
9706 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9707
9708         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
9709         and Sun as TLS syntax.
9710         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
9711         * configure: Regenerate.
9712         * config.in: Regenerate.
9713         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
9714         (default_elf_asm_named_section): Use it.
9715         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
9716         (i386_output_dwarf_dtprel): Likewise.
9717         (output_addr_const_extra): Likewise.
9718         (output_pic_addr_const): Lowercase @GOTTPOFF.
9719         (output_addr_const_extra): Likewise.
9720         (output_pic_addr_const): Lowercase @GOTNTPOFF.
9721         (output_addr_const_extra): Likewise.
9722         (output_pic_addr_const): Lowercase @INDNTPOFF.
9723         (output_addr_const_extra): Likewise.
9724         (output_pic_addr_const): Lowercase @NTPOFF.
9725         (output_addr_const_extra): Likewise.
9726         (output_pic_addr_const): Lowercase @TPOFF.
9727         (output_addr_const_extra): Likewise.
9728         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
9729         (*tls_global_dynamic_64): Likewise.
9730         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
9731         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
9732
9733         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
9734         (ASM_OUTPUT_TLS_COMMON): Use it.
9735         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
9736
9737         PR target/38118
9738         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
9739         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
9740         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
9741         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
9742         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
9743         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
9744
9745 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9746
9747         * config/i386/i386.c (override_options): Don't accept
9748         -mtls-dialect=sun any longer.
9749         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
9750         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
9751         (*tls_local_dynamic_base_32_sun): Likewise.
9752         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
9753
9754 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
9755
9756         PR debug/43508
9757         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
9758         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
9759
9760         PR debug/43479
9761         * ira.c (adjust_cleared_regs): New function.
9762         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
9763
9764         PR debug/19192
9765         PR debug/43479
9766         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
9767         from gimple_block.
9768         * expr.c (expand_expr_real): Restore previous
9769         curr_insn_source_location and curr_insn_block after
9770         expand_expr_real_1 call.
9771         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
9772         instead of expand_expr_real_1.
9773
9774 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
9775
9776         PR rtl-optimization/43413
9777         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
9778         hard regs too.
9779
9780 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
9781
9782         PR target/43348
9783         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
9784         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
9785
9786 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9787
9788         * config/i386/i386.c (ix86_target_string): Add -mfma.
9789         Fix a typo in comment.
9790
9791 2010-03-22  Mike Stump  <mikestump@comcast.net>
9792
9793         PR target/23071
9794         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
9795         Don't overly align based upon packed packed fields.
9796
9797 2010-03-22  Jason Merrill  <jason@redhat.com>
9798
9799         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
9800         Use () rather than [], and move before the element type.
9801
9802 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9803
9804         * doc/configfiles.texi (Configuration Files): Removed
9805         fixinc/Makefile*, intl/Makefile.*.
9806         * doc/makefile.texi: Fixed markup. Abstract from version
9807         control system used.
9808         (Makefile): Removed obsolete gcc/java/parse.y example.
9809         * doc/sourcebuild.texi: Likewise.
9810         (Top Level): Added config, gnattools, libdecnumber, libgcc,
9811         libgomp, libssp.  Removed fastjar.
9812         (Miscellaneous Docs): Clarify location.
9813         Added COPYING3, COPYING3.LIB.
9814         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
9815
9816 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9817
9818         PR target/38085
9819         * config/i386/i386.c (x86_function_profiler)
9820         [!NO_PROFILE_COUNTERS]: Fix typo.
9821         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
9822         instead of callq.
9823
9824 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
9825             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9826
9827         * doc/sourcebuild.texi (Test Directives): Split into six
9828         subsections, with most of the current text in new subsections
9829         Directives, Selectors, and Final Actions.
9830         (Directives): Split list of test directives into multiple
9831         subsubsections.
9832         (Selectors): Describe use and syntax of selectors.
9833         (Effective-Target Keywords): Describe all existing keywords.
9834         (Add Options): Describe features for dg-add-options.
9835         (Require Support): Describe variants of dg-require-support.
9836         (Final Actions): Describe commands to use in dg-final.
9837
9838 2010-03-22  Michael Matz  <matz@suse.de>
9839
9840         PR middle-end/43475
9841         * recog.c (validate_replace_rtx_group): Replace also in
9842         REG_EQUAL and REG_EQUIV notes.
9843
9844 2010-03-22  Richard Guenther  <rguenther@suse.de>
9845
9846         PR tree-optimization/43390
9847         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
9848         sure vector extracts are type correct.
9849
9850 2010-03-22  Richard Guenther  <rguenther@suse.de>
9851
9852         PR middle-end/40106
9853         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
9854         x * sqrt (x) even when optimizing for size if the target
9855         has native support for sqrt.
9856
9857 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
9858
9859         * varasm.c (make_decl_rtl_for_debug): Also clear
9860         flag_mudflap for the duration of make_decl_rtl call.
9861
9862         PR debug/43443
9863         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
9864         locs from preserved VALUEs.
9865
9866 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9867
9868         PR middle-end/42718
9869         * pa.md (movmemsi): Set align to one if zero.
9870         (movmemdi): Likewise.
9871
9872 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
9873
9874         PR target/42321
9875         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
9876         with their corresponding prologue pushes.
9877
9878 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
9879
9880         PR target/43156
9881         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
9882         at the begining or end.
9883         (spu_expand_epilogue): Likewise.
9884
9885 2010-03-20  Richard Guenther  <rguenther@suse.de>
9886
9887         PR rtl-optimization/43438
9888         * combine.c (make_extraction): Properly zero-/sign-extend an
9889         extraction of the low part of a CONST_INT.  Also handle
9890         CONST_DOUBLE.
9891
9892 2010-03-19  Mike Stump  <mikestump@comcast.net>
9893
9894         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
9895         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
9896         (override_options): Use SUBTARGET32_DEFAULT_CPU.
9897
9898 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
9899
9900         PR c/43211
9901         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
9902         an error.
9903
9904 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
9905
9906         PR rtl-optimization/42258
9907         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
9908         use that may match DEF.
9909
9910         PR target/40697
9911         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
9912         the cost of loading the constant rather than assuming
9913         COSTS_N_INSNS (1).
9914         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
9915         outer code is AND, do the same tests as the andsi3 expander and
9916         return COSTS_N_INSNS (1) if and is cheap.
9917
9918         * optabs.c (avoid_expensive_constant): Fix formatting.
9919
9920 2010-03-19  Michael Matz  <matz@suse.de>
9921
9922         PR c++/43116
9923         * attribs.c (decl_attributes): When rebuilding a function pointer
9924         type use the same qualifiers as the original pointer type.
9925
9926 2010-03-19  Martin Jambor  <mjambor@suse.cz>
9927
9928         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
9929         and is_gimple_ip_invariant_address.
9930
9931 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9932
9933         Revert
9934         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9935
9936         * config/arm/arm.c (arm_override_options): Turn off
9937         flag_dwarf2_cfi_asm for AAPCS variants.
9938
9939 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9940
9941         PR target/43399
9942         * config/arm/arm.c (emit_multi_reg_push): Update comments.
9943         Use PRE_MODIFY instead of PRE_DEC.
9944         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
9945         (vfp_emit_fstmd): Likewise.
9946
9947 2010-03-19  Michael Matz  <matz@suse.de>
9948
9949         PR target/43305
9950         * builtins.c (expand_builtin_interclass_mathfn,
9951         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
9952         if that fails.
9953
9954 2010-03-19  Richard Guenther  <rguenther@suse.de>
9955
9956         PR tree-optimization/43415
9957         * tree-ssa-pre.c (phi_translate): Split out worker to ...
9958         (phi_translate_1): ... this.
9959         (phi_translate): Move all caching here.  Cache all NARY
9960         and REFERENCE translations.
9961
9962 2010-03-19  David S. Miller  <davem@davemloft.net>
9963
9964         With help from Eric Botcazou.
9965         * config/sparc/sparc.c: Include dwarf2out.h.
9966         (emit_pic_helper): Delete.
9967         (pic_helper_symbol_name): Delete.
9968         (pic_helper_emitted_p): Delete.
9969         (pic_helper_needed): New.
9970         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
9971         (get_pc_thunk_name): New.
9972         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
9973         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
9974         Set pic_helper_needed to true.  Don't call emit_pic_helper.
9975         (sparc_expand_prologue): Update load_pic_register call.
9976         (sparc_output_mi_thunk): Likewise.
9977         (sparc_file_end): Emit a hidden comdat symbol for the PIC
9978         thunk if possible.  Output CFI information as needed.
9979
9980 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9981             Jack Howarth <howarth@bromo.med.uc.edu>
9982
9983         PR target/36399
9984         * config/i386/i386.h: Fix ABI on darwin x86-32.
9985
9986 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
9987
9988         * tree.h: Declare make_decl_rtl_for_debug.
9989         * varasm.c (make_decl_rtl_for_debug): New.
9990         * dwarf2out.c (rtl_for_decl_location): Call it.
9991         * cfgexpand.c (expand_debug_expr): Call it.
9992
9993 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
9994
9995         PR bootstrap/43399
9996         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
9997         mem_mode.
9998
9999         PR bootstrap/43403
10000         * var-tracking.c (vt_init_cfa_base): Do nothing if
10001         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
10002
10003 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
10004
10005         PR debug/42873
10006         * var-tracking.c (canonicalize_vars_star): New.
10007         (dataflow_post_merge_adjust): Use it.
10008
10009 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
10010
10011         PR debug/43058
10012         * var-tracking.c (non_suitable_const): New function.
10013         (add_uses): For DEBUG_INSNs with constants, don't record any
10014         value, instead just the constant value itself.
10015         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
10016         is not VAR_LOC_UNKNOWN_P, set var to the constant.
10017         (emit_notes_in_bb): Likewise.
10018         (emit_note_insn_var_location): For onepart variables if
10019         cur_loc is a VOIDmode constant, use DECL_MODE.
10020
10021 2010-03-18  Martin Jambor  <mjambor@suse.cz>
10022
10023         PR middle-end/42450
10024         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
10025         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
10026         all non-clones.  Moved call redirection...
10027         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
10028         (cgraph_materialize_all_clones): Dispose of all
10029         combined_args_to_skip bitmaps.
10030         (verify_cgraph_node): Do not check for edges pointing to wrong
10031         nodes in inline clones.
10032         * tree-inline.c (copy_bb): Call
10033         cgraph_redirect_edge_call_stmt_to_callee.
10034         * ipa.c (cgraph_remove_unreachable_nodes): Call
10035         cgraph_node_remove_callees even when there are used clones.
10036
10037 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
10038
10039         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
10040
10041 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
10042
10043         PR target/43383
10044         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
10045         for 32bit.
10046
10047 2010-03-18  Michael Matz  <matz@suse.de>
10048
10049         PR middle-end/43419
10050         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
10051         into sqrt(x) if we need to preserve signed zeros.
10052
10053 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
10054             Eric Botcazou  <ebotcazou@adacore.com>
10055
10056         PR rtl-optimization/43360
10057         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
10058         note if we don't know its invariant status.
10059
10060 2010-03-18  Michael Matz  <matz@suse.de>
10061
10062         PR tree-optimization/43402
10063         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
10064         PHI chains of ssa names registered for update.
10065
10066 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
10067
10068         PR target/42427
10069         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
10070         non-offsettable and pre_modify update addressing.
10071         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
10072         and "2" alternatives "#".
10073         (*movdd_softfloat32): Make all alternatives "#";
10074         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
10075         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
10076         (*movdf_softfloat32): Make all alternatives "#";
10077         (movdi): Use the new DIFD mode iterator to create a common splitter
10078         for movdi, movdf and movdd patterns.
10079
10080 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
10081
10082         * common.opt (dumpdir): Remove redundant tab.
10083
10084 2010-03-17  Martin Jambor  <mjambor@suse.cz>
10085
10086         PR tree-optimization/43347
10087         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
10088         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
10089
10090 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
10091
10092         PR rtl-optimization/42216
10093         * regrename.c (create_new_chain): New function, broken out from...
10094         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
10095         appending a use to an empty chain.
10096         (build_def_use): Remove previous changes that convert OP_INOUT to
10097         OP_OUT operands; instead detect the case where an OP_INOUT operand
10098         uses a previously untracked register and create an empty chain for it.
10099
10100 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10101
10102         * doc/extend.texi (Function Attributes): Rewrite unfinished
10103         sentence in ms_abi documentation.
10104
10105 2010-03-17  Alan Modra  <amodra@gmail.com>
10106
10107         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
10108         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
10109         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
10110         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
10111
10112 2010-03-16  Richard Henderson  <rth@redhat.com>
10113
10114         PR middle-end/43365
10115         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
10116         (lower_try_finally): Save and restore eh_seq around the expansion
10117         of the try-finally.
10118
10119 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
10120
10121         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
10122         statements before splitting block.
10123
10124 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10125
10126         * doc/sourcebuild.texi (Testsuites): Fix markup.
10127         Use pathnames relative to gcc/testsuite.
10128         (Test Directives): Move description of how timeout is determined.
10129         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
10130         (C Tests): Correct gcc.misc-tests directory.
10131         Framework tests now live in gcc.test-framework.
10132
10133 2010-03-16  Richard Guenther  <rguenther@suse.de>
10134
10135         PR middle-end/43379
10136         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
10137         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
10138
10139 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
10140             Alexandre Oliva  <aoliva@redhat.com>
10141
10142         PR tree-optimization/42917
10143         * lambda-code.c (remove_iv): Skip debug statements.
10144         (lambda_loopnest_to_gcc_loopnest): Likewise.
10145         (not_interesting_stmt): Debug statements are not interesting.
10146
10147 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
10148
10149         PR debug/43051
10150         PR debug/43092
10151         * cselib.c (cselib_preserve_constants,
10152         cfa_base_preserved_val): New static variables.
10153         (preserve_only_constants): New function.
10154         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
10155         clear its REG_VALUES.  If cselib_preserve_constants, don't
10156         empty the whole hash table, but preserve there VALUEs with constants,
10157         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
10158         (cselib_preserve_cfa_base_value): New function.
10159         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
10160         (cselib_init): Change argument to int bitfield.  Set
10161         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
10162         is in it.
10163         (cselib_finish): Clear cselib_preserve_constants and
10164         cfa_base_preserved_val.
10165         * cselib.h (enum cselib_record_what): New enum.
10166         (cselib_init): Change argument to int.
10167         (cselib_preserve_cfa_base_value): New prototype.
10168         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
10169         * dse.c (dse_step1): Likewise.
10170         * cfgcleanup.c (thread_jump): Likewise.
10171         * sched-deps.c (sched_analyze): Likewise.
10172         * gcse.c (local_cprop_pass): Likewise.
10173         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
10174         If FN is non-NULL, call the callback always and whenever it returns
10175         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
10176         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
10177         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
10178         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
10179         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
10180         * var-tracking.c: Include recog.h.
10181         (bb_stack_adjust_offset): Remove.
10182         (vt_stack_adjustments): Don't call it, instead just gather the
10183         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
10184         (adjust_stack_reference): Remove.
10185         (compute_cfa_pointer): New function.
10186         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
10187         (struct adjust_mem_data): New type.
10188         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
10189         functions.
10190         (get_address_mode): New function.
10191         (replace_expr_with_values): Use it.
10192         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
10193         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
10194         (adjust_sets): Remove.
10195         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
10196         Use get_address_mode.
10197         (get_adjusted_src): Remove.
10198         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
10199         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
10200         (add_with_sets): Don't call adjust_sets.
10201         (fp_setter, vt_init_cfa_base): New functions.
10202         (vt_initialize): Change return type to bool.  Move most of pool etc.
10203         initialization to the beginning of the function from end.  Pass
10204         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
10205         If !frame_pointer_needed, call vt_stack_adjustment before mos
10206         vector is filled, call vt_init_cfa_base if argp/framep has been
10207         eliminated to sp.  If frame_pointer_needed and argp/framep has
10208         been eliminated to hard frame pointer, set
10209         hard_frame_pointer_adjustment and call vt_init_cfa_base after
10210         encountering fp setter in the prologue.  For MO_ADJUST, call
10211         log_op_type before pusing the op into mos vector, not afterwards.
10212         Call adjust_insn before cselib_process_insn/add_with_sets,
10213         call cancel_changes (0) afterwards.
10214         (variable_tracking_main_1): Adjust for vt_initialize calling
10215         vt_stack_adjustments and returning whether it succeeded or not.
10216
10217 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
10218
10219         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
10220         debug statements.
10221
10222 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
10223
10224         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
10225         has been set.
10226         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
10227         drap_reg has not been set.
10228
10229 2010-03-15  Michael Matz  <matz@suse.de>
10230
10231         PR middle-end/43300
10232         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
10233         use it to expand block copies.
10234         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
10235         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
10236         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
10237
10238 2010-03-15  Richard Guenther  <rguenther@suse.de>
10239
10240         PR tree-optimization/43367
10241         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
10242         elimination check.
10243
10244 2010-03-15  Richard Guenther  <rguenther@suse.de>
10245
10246         PR tree-optimization/43317
10247         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
10248
10249 2010-03-15  Martin Jambor  <mjambor@suse.cz>
10250
10251         PR tree-optimization/43141
10252         * tree-sra.c (create_abstract_origin): New function.
10253         (modify_function): Call create_abstract_origin.
10254
10255 2010-03-15  Chris Demetriou  <cgd@google.com>
10256
10257         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
10258         wasn't copied.
10259
10260 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
10261
10262         PR middle-end/43354
10263         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
10264         call insert_out_of_ssa_copy for default definitions.
10265
10266 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
10267
10268         * graphite-clast-to-gimple.c (my_long_long): Defined.
10269         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
10270         * graphite-sese-to-poly.c (my_long_long): Defined.
10271         (scop_ivs_can_be_represented): Use it.
10272
10273 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
10274
10275         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
10276         graphite-max-bbs-per-function, and loop-block-tile-size.
10277         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
10278         with "maximum".
10279         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
10280
10281 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
10282
10283         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
10284         forward declaration.
10285         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
10286         (add_upper_bounds_from_estimated_nit): New.
10287         (build_loop_iteration_domains): Use it.
10288
10289 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
10290
10291         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
10292
10293 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
10294
10295         PR middle-end/43306
10296         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
10297         should be an INTEGER_CST.  Also handle CASE_CONVERT.
10298
10299 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
10300
10301         * graphite.c (graphite_initialize): To bound the number of bbs per
10302         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10303         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
10304         * doc/invoke.texi: Document it.
10305
10306 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
10307
10308         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
10309         * graphite-sese-to-poly.h (build_poly_scop): Same.
10310
10311 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
10312
10313         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
10314         the number of parameters in the scop.  Use as an upper bound
10315         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
10316         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
10317         * doc/invoke.texi: Document it.
10318
10319 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
10320
10321         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
10322         * doc/c-tree.texi: Remove.
10323         * doc/generic.texi: Merge c-tree.texi here.
10324         * doc/gccint.texi (Trees): Remove menu entry.
10325         (c-tree.texi): Remove @include.
10326         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
10327         * doc/languages.texi (Reading RTL): Ditto.
10328
10329 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
10330
10331         PR target/42869
10332         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
10333
10334 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10335
10336         PR middle-end/42431
10337         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
10338         code added to work around reload clobbering CONST insns.
10339
10340 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
10341
10342         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
10343         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
10344         (cselib_preserve_only_values): Remove retain argument, don't
10345         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
10346         * cselib.h (cselib_preserve_only_values): Remove retain argument.
10347         * var-tracking.c (micro_operation): Move insn field before union.
10348         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
10349         (struct variable_tracking_info_def): Remove n_mos field, change
10350         mos into a vector of micro_operations.
10351         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
10352         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
10353         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
10354         changing into a vector.
10355         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
10356         come before all other uops generated by add_stores.
10357         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
10358         argument removal.
10359         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
10360         a vector.  Run just one pass over the bbs instead of separate counting
10361         and computation phase.
10362         (vt_finalize): Free VTI (bb)->mos vector instead of array.
10363
10364         PR debug/43329
10365         * tree-inline.c (remap_decls): Put old_var rather than origin_var
10366         into *nonlocalized_list vector.
10367         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
10368         even if origin is non-NULL.
10369         (gen_variable_die): Likewise.
10370         (process_scope_var): Don't change origin.
10371         (gen_decl_die): Likewise.
10372         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
10373         before adding new edges instead of after it, fix moving over
10374         debug stmts.
10375
10376 2010-03-11  David S. Miller  <davem@davemloft.net>
10377
10378         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
10379         of four.
10380         * configure: Rebuild.
10381
10382 2010-03-11  Martin Jambor  <mjambor@suse.cz>
10383
10384         PR tree-optimization/43257
10385         * tree.c (assign_assembler_name_if_neeeded): New function.
10386         (free_lang_data_in_cgraph): Assembler name assignment moved to the
10387         above new function.
10388         * tree.h (assign_assembler_name_if_neeeded): Declare.
10389         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
10390         the function if needed.
10391
10392 2010-03-11  Chris Demetriou  <cgd@google.com>
10393
10394         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
10395         include/stdint-gcc.h, and include/stdint.h world-readable.
10396
10397 2010-03-11  Richard Guenther  <rguenther@suse.de>
10398
10399         PR tree-optimization/43255
10400         * tree-vrp.c (process_assert_insertions_for): Do not insert
10401         asserts for trivial conditions.
10402
10403 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10404
10405         PR tree-optimization/43280
10406         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
10407         generation.  Move calculation of size out of the if branch.
10408         (find_bswap): Modify compare number generation.
10409
10410 2010-03-11  Richard Guenther  <rguenther@suse.de>
10411
10412         PR lto/43200
10413         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
10414         (input_gimple_stmt): Fixup handled component types during
10415         operand read.  Also fix up decls in ADDR_EXPRs.
10416
10417 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
10418
10419         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
10420         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
10421
10422 2010-03-10  Jan Hubicka  <jh@suse.cz>
10423
10424         PR c/43288
10425         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
10426         * varasm.c (get_variable_section): Don't do that here...
10427         (make_decl_rtl): ... and here.
10428         (do_assemble_alias): Produce decl RTL.
10429         (assemble_alias): Likewise.
10430
10431 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
10432
10433         PR debug/43290
10434         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
10435         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
10436         of fde->vdrap_reg.
10437         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
10438         (based_loc_descr): Only express drap or vdrap regno based expressions
10439         using DW_OP_fbreg when not optimizing.
10440         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
10441         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
10442         REG_CFA_SET_VDRAP note.
10443
10444 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
10445
10446         PR tree-optimization/43236
10447         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
10448         error in calculation of base address in reverse iteration case.
10449         (generate_builtin): Take number of latch executions if the statement
10450         is in the latch.
10451
10452 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
10453
10454         PR middle-end/42859
10455         * tree-eh.c: Include pointer-set.h.
10456         (lower_eh_dispatch): Filter out duplicate case labels and
10457         remove the unneeded edge when the label is unused.  Return
10458         true when some edges are removed.
10459         (execute_lower_eh_dispatch): When any lowering resulted in
10460         removing an edge, also delete unreachable blocks.
10461
10462 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
10463
10464         PR bootstrap/43287
10465         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10466         UNSPEC_MACHOPIC_OFFSET.
10467
10468 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
10469
10470         PR target/43294
10471         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
10472         (m68k_delegitimize_address): New function.
10473
10474 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
10475
10476         PR debug/43299
10477         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
10478
10479         PR debug/43299
10480         * var-tracking.c (adjust_sets): New function.
10481         (count_with_sets, add_with_sets): Use it.
10482         (get_adjusted_src): New inline function.
10483         (add_stores): Use it.
10484
10485         PR debug/43304
10486         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
10487         call cselib_dummy_expand_value_rtx_cb instead of
10488         cselib_expand_value_rtx_cb.
10489
10490         PR debug/43293
10491         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
10492         * config/i386/i386.c: Include debug.h and dwarf2out.h.
10493         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
10494         and .cfi_endproc around the pic thunks.
10495         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
10496         all queued unwind info register saves are saved before the call.
10497         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
10498         considered as sp-=4 for unwind info and the pop as sp+=4 which
10499         also clobbers dest, but doesn't actually restore it.
10500
10501         PR debug/43290
10502         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
10503         RTX_FRAME_RELATED_P.
10504
10505 2010-03-09  Jie Zhang  <jie@codesourcery.com>
10506
10507         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
10508         whitespaces in output template.
10509
10510 2010-03-09  Jie Zhang  <jie@codesourcery.com>
10511
10512         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
10513         out array boundary.
10514
10515 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
10516
10517         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
10518         builtins.exp in a separate job.
10519
10520 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10521
10522         * graphite-sese-to-poly.c (add_param_constraints): Use
10523         lower_bound_in_type and upper_bound_in_type.
10524
10525 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10526
10527         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
10528         instead of unsigned_type_node.
10529
10530 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10531             Reza Yazdani  <reza.yazdani@amd.com>
10532
10533         PR middle-end/43065
10534         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
10535         on pointer type parameters.
10536
10537 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
10538
10539         PR middle-end/42644
10540         PR middle-end/42130
10541         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
10542         handle conversions from pointer to integers.
10543         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
10544         induction variable, to be able to work with code generated by CLooG.
10545         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
10546         (build_poly_scop): Bail out if we cannot codegen a loop.
10547
10548 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
10549
10550         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
10551         code generation with gloog_error.
10552
10553 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10554
10555         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
10556         Call fold_convert on all the returned values.
10557         (expand_scalar_variables_expr): Pass to
10558         expand_scalar_variables_ssa_name the type of the resulting expression.
10559
10560 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10561
10562         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
10563         ppl_min_for_le_pointset.
10564         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
10565         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
10566
10567 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10568
10569         * graphite-dependences.c (map_into_dep_poly): Removed.
10570         (dependence_polyhedron_1): Use combine_context_id_scat.
10571
10572 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10573
10574         * graphite-poly.h (struct poly_scattering): Add layout documentation.
10575         (struct poly_bb): Same.
10576         (combine_context_id_scat): New.
10577
10578 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10579
10580         PR middle-end/42326
10581         * sese.c (name_defined_in_loop_p): Return false for default
10582         definitions.
10583
10584 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10585
10586         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
10587         and clean up the logic.
10588
10589 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
10590
10591         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
10592         early return.
10593
10594 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
10595
10596         * var-tracking.c (remove_cselib_value_chains): Define only for
10597         ENABLE_CHECKING.
10598         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
10599         delete_slot_part, emit_notes_for_differences_1): Don't call
10600         remove_cselib_value_chains here.
10601         (set_slot_part, emit_notes_for_differences_2): Don't call
10602         add_cselib_value_chains here.
10603         (preserved_values): New vector.
10604         (preserve_value): New function.
10605         (add_uses, add_stores, vt_add_function_parameters): Use it
10606         instead of cselib_preserve_value.
10607         (changed_values_stack): New vector.
10608         (check_changed_vars_0): New function.
10609         (check_changed_vars_1, check_changed_vars_2): Use it.
10610         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
10611         changed_values_stack VALUEs.
10612         (vt_emit_notes): For all preserved_values call
10613         add_cselib_value_chains.  If ENABLE_CHECKING call
10614         remove_cselib_value_chains before verifying value_chains is empty.
10615         Initialize and free changed_values_stack.
10616         (vt_initialize): Initialize preserved_values.
10617         (vt_finalize): Free preserved_values.
10618
10619 2010-03-08  Richard Guenther  <rguenther@suse.de>
10620
10621         PR tree-optimization/43269
10622         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
10623         region detection.
10624
10625 2010-03-08  Martin Jambor  <mjambor@suse.cz>
10626
10627         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
10628         (ipa_is_param_called): Removed.
10629         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
10630         (ipa_print_node_params): Do not print the called flag.
10631         (ipa_write_node_info): Do not stream the called flag.
10632         (ipa_read_node_info): Likewise.
10633
10634 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
10635
10636         PR debug/43176
10637         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
10638         * cselib.c (struct expand_value_data): Add dummy field.
10639         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
10640         dummy to false.
10641         (cselib_dummy_expand_value_rtx_cb): New function.
10642         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
10643         any rtl.
10644         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
10645         * var-tracking.c: Include pointer-set.h.
10646         (variable): Change n_var_parts to char from int.  Add
10647         cur_loc_changed and in_changed_variables fields.
10648         (variable_canonicalize): Remove.
10649         (shared_var_p): New inline function.
10650         (unshare_variable): Maintain cur_loc_changed and
10651         in_changed_variables fields.  If var was in changed_variables,
10652         replace it there with new_var.  Just copy cur_loc instead of
10653         resetting it to something else.
10654         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
10655         (dataflow_set_union): Don't call variable_canonicalize.
10656         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
10657         of their DEBUG_EXPR_TREE_DECLs.
10658         (canonicalize_loc_order_check): Verify that cur_loc is NULL
10659         and in_changed_variables and cur_loc_changed is false.
10660         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
10661         and cur_loc_changed.  Don't update cur_loc here.
10662         (variable_merge_over_src): Don't call variable_canonicalize.
10663         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
10664         removing loc that is equal to cur_loc, clear cur_loc,
10665         set cur_loc_changed and ensure variable_was_changed is called.
10666         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
10667         compare pointers in cur_loc check, if it is equal to loc,
10668         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
10669         (variable_different_p): Remove compare_current_location argument,
10670         don't compare cur_loc.
10671         (dataflow_set_different_1): Adjust variable_different_p caller.
10672         (variable_was_changed): If dv had some var in changed_variables
10673         already, reset in_changed_variables flag for it and propagate
10674         cur_loc_changed over to the new variable.  On empty var
10675         always set cur_loc_changed.  Set in_changed_variables on whatever
10676         var is added to changed_variables.
10677         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
10678         Use shared_var_p.  When removing loc that is equal to cur_loc,
10679         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
10680         end, don't set it to something else, just call variable_was_changed.
10681         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
10682         loc being removed, clear cur_loc and set cur_loc_changed.
10683         Set cur_loc_changed if all locations have been removed.
10684         (struct expand_loc_callback_data): New type.
10685         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
10686         allocated.  Always create SUBREGs if simplify_subreg failed.
10687         Prefer to use cur_loc, when that fails and still in
10688         changed_variables (and seen first time) recompute it.  Set
10689         cur_loc_changed of variables which had to change cur_loc and
10690         compute elcd->cur_loc_changed if any of the subexpressions used
10691         had to change cur_loc.
10692         (vt_expand_loc): Adjust to pass arguments in
10693         expand_loc_callback_data structure.
10694         (vt_expand_loc_dummy): New function.
10695         (emitted_notes): New variable.
10696         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
10697         that weren't used for any other decl in current
10698         emit_notes_for_changes call call vt_expand_loc_dummy to update
10699         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
10700         first loc_chain location if NULL before.  Always use just
10701         cur_loc instead of first loc_chain location.  When cur_loc_changed
10702         is false, when not --enable-checking=rtl just don't emit any note.
10703         When rtl checking, compute the note and assert it is the same
10704         as previous note.  Clear cur_loc_changed and in_changed_variables
10705         at the end before removing from changed_variables.
10706         (check_changed_vars_3): New function.
10707         (emit_notes_for_changes): Traverse changed_vars to call
10708         check_changed_vars_3 on each changed var.
10709         (emit_notes_for_differences_1): Clear cur_loc_changed and
10710         in_changed_variables.  Recompute cur_loc of new_var.
10711         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
10712         (vt_emit_notes): Initialize and destroy emitted_notes.
10713
10714 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
10715
10716         PR rtl-optimization/42220
10717         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
10718         Use verify_reg_tracked to determine if we should use OP_OUT rather
10719         than OP_INOUT.
10720         (build_def_use): If we see an in-out operand for a register that we
10721         know nothing about, treat is an output if possible, fail the block if
10722         not.
10723
10724 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
10725
10726         PR debug/42897
10727         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
10728         permanently.
10729
10730 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
10731
10732         PR debug/42897
10733         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
10734         uses of relevant DEFs that are dead outside the loop too.
10735
10736 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
10737
10738         * var-tracking.c (dataflow_set_merge): Swap src and src2.
10739         Reverted:
10740         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
10741         PR debug/41371
10742         * var-tracking.c (values_to_unmark): New variable.
10743         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
10744         values_to_unmark vector.  Moved body to...
10745         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
10746         instead queue it into values_to_unmark vector.
10747         (vt_find_locations): Free values_to_unmark vector.
10748
10749 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
10750
10751         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
10752         (site.exp): Export them when plugins are enabled.
10753
10754 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
10755
10756         PR middle-end/42326
10757         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
10758         that contain scevs.
10759         (chrec_fold_multiply): Same.
10760
10761 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
10762
10763         PR c/43248
10764         * c-decl.c (build_compound_literal): Return early if init is
10765         an error_mark_node.
10766
10767 2010-03-04  Martin Jambor  <mjambor@suse.cz>
10768
10769         PR tree-optimization/43164
10770         PR tree-optimization/43191
10771         * tree-sra.c (type_consists_of_records_p): Reject records with
10772         zero-size bit-fields at the end.
10773
10774 2010-03-04  Mike Stump  <mikestump@comcast.net>
10775
10776         * Makefile.in (TAGS): Remove *.y.
10777
10778 2010-03-04  Richard Guenther  <rguenther@suse.de>
10779
10780         PR tree-optimization/40761
10781         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
10782         in reverse order.
10783         (my_rev_post_order_compute): New function.
10784         (init_pre): Call it.
10785
10786 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10787
10788         PR middle-end/43209
10789         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
10790         decrease the cost of an IV candidate when the cost is infinite.
10791
10792 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10793
10794         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
10795         Use '3DNow!' for the extension of that name, ensure normal space
10796         after the string.
10797         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
10798
10799 2010-03-03  Jeff Law  <law@redhat.com>
10800
10801         * PR middle-end/32693
10802         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
10803         than gen_rtx_SUBREG.
10804         (extract_bit_field_1): Likewise.
10805
10806 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
10807
10808         * doc/sourcebuild.texi (Test directives): Document that arguments
10809         include-opts and exclude-opts are now optional for dg-skip-if,
10810         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
10811
10812 2010-03-03  Jason Merrill  <jason@redhat.com>
10813
10814         PR c++/12909
10815         * cgraph.h (varpool_node): Add extra_name field.
10816         * varpool.c (varpool_extra_name_alias): New.
10817         (varpool_assemble_decl): Emit extra name aliases.
10818         (varpool_mark_needed_node): Look past an extra name alias.
10819         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
10820         * lto-streamer-in.c (lto_input_tree): Read it.
10821         * lto-streamer-out.c (output_unreferenced_globals): Write it.
10822
10823 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
10824
10825         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
10826         (sparc*-*-solaris2*): ...this.
10827
10828 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
10829
10830         PR debug/43229
10831         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
10832         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
10833         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
10834         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
10835
10836         PR debug/43237
10837         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
10838         fallthrough to default handling, just with want_address 0 instead of 2.
10839         For single element lists, add_AT_loc directly, otherwise create an
10840         artificial variable DIE and stick location list to it.
10841
10842         PR debug/43177
10843         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
10844         (VAL_EXPR_HAS_REVERSE): Define.
10845         (reverse_op): New function.
10846         (add_stores): For reversible operations add an extra MO_VAL_USE.
10847
10848 2010-03-02  Jason Merrill  <jason@redhat.com>
10849
10850         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
10851
10852 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
10853
10854         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
10855         (sparc64-*-linux*): Likewise.
10856         (sparc64-*-solaris2*): Include assembler files before linker ones.
10857         (sparc-*-solaris2*): Simplify and reorder to match previous case.
10858         * config/sparc/gas.h: Delete.
10859         * config/sparc/sol2-64.h: Add copyright notice.
10860         * config/sparc/sol2-gas-bi.h: Likewise.
10861         * config/sparc/sol2-gld.h: Likewise.
10862         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
10863         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
10864         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
10865         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
10866         (sparc_elf_asm_named_section): Rename into...
10867         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
10868
10869 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
10870
10871         * config/alpha/alpha.c (override_options): Fix -mtune error message.
10872
10873 2010-03-02  Jeff Law  <law@redhat.com>
10874
10875         PR middle-end/42431
10876         * reload1.c (rtx_p, substitute_stack): Declare.
10877         (substitute): Record addresses of changed rtxs.
10878         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
10879         Restore the original rtx when complete.
10880         (reload): Free subsitute_stack when complete.
10881
10882 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
10883
10884         * doc/gccint.texi (menu): Add Testsuites as a chapter.
10885         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
10886         new chapter.
10887         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
10888         LTO Testing, gcov Testing, profopt Testing, compat Testing,
10889         Torture Tests): Change from subsection to section.
10890
10891 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
10892             Steven Bosscher  <steven@gcc.gnu.org>
10893
10894         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
10895         instead of bb.
10896
10897 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
10898
10899         PR middle-end/42640
10900         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
10901         the assignment from the new induction variable to the assignment
10902         of the value from the original loop PHI function.
10903
10904 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
10905             Daniel Jacobowitz  <dan@codesourcery.com>
10906
10907         * doc/sourcebuild.texi (Test directives): Clarify options to
10908         dg-skip-if.
10909
10910 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10911
10912         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
10913         Disable cfi directives unless GCC and gas agree on using read-only
10914         .eh_frame sections for 64-bit.
10915         * configure: Regenerate.
10916
10917 2010-03-01  Richard Guenther  <rguenther@suse.de>
10918
10919         PR tree-optimization/43220
10920         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
10921         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
10922
10923 2010-03-01  Richard Guenther  <rguenther@suse.de>
10924             Martin Jambor  <mjambor@suse.cz>
10925
10926         PR middle-end/41250
10927         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
10928         gimplified parameters.
10929
10930 2010-03-01  Christian Bruel  <christian.bruel@st.com>
10931
10932         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
10933
10934 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
10935
10936         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
10937
10938 2010-03-01  Richard Guenther  <rguenther@suse.de>
10939
10940         PR middle-end/43213
10941         * expr.c (expand_assignment): Use the alias-oracle to tell
10942         if the rhs aliases the result decl.
10943
10944 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10945
10946         PR pch/14940
10947         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
10948         to sol_gt_pch_get_address.
10949         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
10950         64-bit, SPARC and x86.
10951         (sol_gt_pch_get_address): New function.
10952
10953 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
10954
10955         * toplev.h (inform_n, error_n): Declare.
10956         * diagnostic.c (inform_n, error_n): New function.
10957
10958 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
10959
10960         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
10961         has no rtl yet when processing local_decls, queue it and recheck
10962         if deferred stack allocation hasn't assigned it rtl.
10963
10964 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
10965
10966         * config/sh/sh.c (unspec_bbr_uid): New.
10967         (gen_block_redirect): Use it instead of INSN_UID.
10968         (gen_far_branch): Likewise.
10969
10970 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
10971
10972         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
10973         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
10974
10975 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10976
10977         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
10978         (Warning Options): -Wno-conversion-null is valid for
10979         Objective-C++ as well.
10980         * doc/tm.texi (Named Address Spaces): Likewise.
10981         * doc/plugins.texi (Plugins): Replace TABs with spaces.
10982         * doc/tree-ssa.texi (Tree SSA): Likewise.
10983
10984 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
10985
10986         PR bootstrap/43202
10987         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
10988         by default.  Don't set the default arch for
10989         i[34567]86-*-darwin*|x86_64-*-darwin*.
10990
10991 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
10992
10993         PR bootstrap/43202
10994         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
10995         default.  Set the default 32bit/64bit archs with $with_arch
10996         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
10997
10998 2010-02-27  Richard Guenther  <rguenther@suse.de>
10999
11000         PR tree-optimization/43186
11001         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
11002         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
11003         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
11004         unroller iterations.
11005
11006 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
11007
11008         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
11009         required and i[34567]86-*-* targets don't support 64bit ISA.
11010
11011 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
11012
11013         PR ada/43096
11014         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
11015         the same alias set.
11016
11017 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
11018
11019         * config.gcc: Set the default arch at least to Prescott for
11020         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
11021         if SSE math is enabled.
11022
11023 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11024
11025         * diagnostic.c (diagnostic_initialize): Update.
11026         (diagnostic_report_diagnostic): Test inhibit_notes_p for
11027         informative notes.
11028         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
11029         (diagnostic_inhibit_notes): New.
11030         * toplev.c (process_options): inhibit notes with -fcompare-debug.
11031
11032 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11033
11034         PR c/20631
11035         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
11036         * doc/standards.texi: Likewise.
11037         * doc/extend.texi: Likewise.
11038         * doc/trouble.texi: Likewise.
11039         * doc/cppopts.texi: Likewise.
11040         * doc/install.texi: Likewise.
11041         * c.opt (std=c90,std=gnu90): New options.
11042         * c-opts.c (c_common_handle_option): Handle them.
11043
11044 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11045
11046         PR c/24577
11047         * c-decl.c (undeclared_variable): Use an informative note.
11048
11049 2010-02-26  Richard Guenther  <rguenther@suse.de>
11050
11051         PR tree-optimization/43186
11052         * gimple.h (gimple_fold): Remove.
11053         * gimple.c (gimple_fold): Remove.  Inline into single user ...
11054         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
11055         Try harder for conditions.
11056
11057 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
11058
11059         PR debug/43190
11060         * function.c (used_types_insert): Don't skip through named pointer
11061         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
11062         and it is different from the main variant's type.
11063
11064 2010-02-26  Nick Clifton  <nickc@redhat.com>
11065
11066         * config/rx/rx.md (sminsi3): Remove bogus alternative.
11067
11068 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
11069
11070         * config.gcc: Support --with-fpmath=sse for x86.
11071
11072         * config/i386/ssemath.h: New.
11073
11074         * doc/install.texi (--with-fpmath=sse): Documented.
11075
11076 2010-02-26  Richard Guenther  <rguenther@suse.de>
11077
11078         PR tree-optimization/43188
11079         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
11080         vector types of over-aligned element type.
11081
11082 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
11083
11084         PR target/43175
11085         * config/i386/i386.c (expand_vec_perm_blend): Use correct
11086         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
11087
11088 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11089
11090         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
11091
11092 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
11093
11094         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
11095         * var-tracking.c: Include diagnostic.h.
11096         (debug_dv): New function.
11097         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
11098
11099         PR debug/43160
11100         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
11101         (add_value_chain, add_value_chains, remove_value_chain,
11102         remove_value_chains): Handle DEBUG_EXPRs.
11103         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
11104
11105         PR debug/43161
11106         * regcprop.c (struct queued_debug_insn_change): New type.
11107         (struct value_data_entry): Add debug_insn_changes field.
11108         (struct value_data): Add n_debug_insn_changes field.
11109         (debug_insn_changes_pool): New variable.
11110         (free_debug_insn_changes, apply_debug_insn_changes,
11111         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
11112         (kill_value_one_regno): Call free_debug_insn_changes if needed.
11113         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
11114         fields.
11115         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
11116         changes for them.
11117         (copyprop_hardreg_forward_1): Don't call apply_change_group for
11118         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
11119         changes, call cprop_find_used_regs via note_stores.
11120         (copyprop_hardreg_forward): When copying vd from predecessor
11121         which has any queued DEBUG_INSN changes, make sure the pointers are
11122         cleared.  At the end call df_analyze and then if there are any
11123         DEBUG_INSN changes queued at the end of some basic block for still
11124         live registers, apply them.
11125         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
11126
11127 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
11128
11129         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
11130         (arm*-*-*): Ditto.
11131
11132 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
11133
11134         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
11135         targets.  Set the default with_cpu/with_arch from arch/cpu.
11136         Allow x86-64 and native for with_cpu/with_arch.
11137
11138 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
11139
11140         * ebitmap.c: Change calls to verify_popcount with calls to
11141         sbitmap_verify_popcount.
11142         (ebitmap_clear_bit): Fixed map->cacheindex test and
11143         map>cache update when bit clearing results in an empty
11144         element.
11145
11146 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11147
11148         PR target/43154
11149         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
11150         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
11151         and support both V2DF and V2DI modes.
11152         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
11153         support both V2DF and V2DI modes.
11154         (general): Delete trailing whitespace from a few patterns.
11155
11156         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11157         V2DF/V2DI interleave high/low builtins.
11158
11159         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
11160         new VSX builtins.
11161
11162         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
11163         interleave high/low functions.
11164
11165 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11166
11167         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
11168         #pragma extern_prefix.
11169
11170 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
11171
11172         PR debug/43166
11173         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
11174         BLKmode, assert op0 is a MEM and just adjust its mode.
11175
11176         PR debug/43165
11177         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
11178         if bitpos isn't multiple of mode's bitsize.
11179
11180 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11181
11182         * c.opt (-ftemplate-depth=): New.
11183         (-ftemplate-depth-): Deprecate.
11184         * optc-gen.awk: Handle -ftemplate-depth=.
11185         * opth-gen.awk: Likewise.
11186         * c-opts.c (c_common_handle_option): Likewise.
11187         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
11188
11189 2010-02-24  Jason Merrill  <jason@redhat.com>
11190
11191         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
11192
11193 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11194
11195         * cfg.c (alloc_aux_for_block): Remove inline.
11196         (alloc_aux_for_edge): Likewise.
11197
11198 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11199
11200         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
11201
11202 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11203
11204         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
11205         * config/i386/sol2-gas.h: New file.
11206         * config.gcc (i[34567]86-*-solaris2*): Use it.
11207
11208 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11209
11210         PR c/43128
11211         * c-typeck.c (ep_convert_and_check): New.
11212         (build_conditional_expr): Use it.
11213         (build_binary_op): Likewise.
11214
11215 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
11216
11217         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
11218
11219         PR debug/43150
11220         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
11221         bounds even for -O+.
11222         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
11223         expr needs to have DECL_NAME set.
11224
11225 2010-02-24  Nick Clifton  <nickc@redhat.com>
11226
11227         * config/mep/mep.c: Include gimple.h.
11228         (mep_function_uses_sp): Delete unused function.
11229         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
11230         parameters.  Use unsigned integers to count args.  Return a
11231         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
11232
11233 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
11234
11235         PR target/43107
11236         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
11237         greater or equal to nelt instead of 2 * nelt.
11238         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
11239         with nelt - 1.
11240
11241 2010-02-23  Jason Merrill  <jason@redhat.com>
11242
11243         PR debug/42800
11244         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
11245         in cfun->local_decls even if they have register types.
11246
11247         PR c++/42837
11248         * stor-layout.c (place_field): Don't warn about unnecessary
11249         DECL_PACKED if the type is packed.
11250
11251 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
11252
11253         PR target/43139
11254         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
11255         GOTOFF relocs, even when the base reg isn't pic pointer.
11256
11257 2010-02-23  Michael Matz  <matz@suse.de>
11258
11259         PR debug/43077
11260         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
11261         (expand_gimple_basic_block): Generate and use debug temps if there
11262         are debug uses left after the last real use of TERed ssa names.
11263         Unlink debug immediate uses when they are expanded.
11264
11265 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11266
11267         PR 43123
11268         * config/i386/i386.c (override_options): Reorganise to provide
11269         better error messages.
11270
11271 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11272
11273         PR middle-end/43083
11274         * graphite-scop-detection.c (create_single_exit_edge): Move
11275         the call to find_single_exit_edge to....
11276         (create_sese_edges): ...here.  Don't handle multiple edges
11277         exiting the function.
11278         (build_graphite_scops): Don't handle multiple edges
11279         exiting the function.
11280
11281 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11282
11283         PR middle-end/43097
11284         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
11285         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
11286
11287 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11288
11289         PR middle-end/43026
11290         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
11291
11292 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11293
11294         PR c++/43126
11295         * c-typeck.c (convert_arguments): Print declaration location.
11296         * c-common.c (validate_nargs): Rename as
11297         builtin_function_validate_nargs.
11298         (check_builtin_function_arguments): Update.
11299
11300 2010-02-22  Richard Guenther  <rguenther@suse.de>
11301
11302         PR lto/43045
11303         * tree-inline.c (declare_return_variable): Use the type of
11304         the call stmt lhs if available.
11305
11306 2010-02-22  Duncan Sands  <baldrick@free.fr>
11307
11308         * passes.c (register_pass): Always consider all pass lists when
11309         ref_pass_instance_number is zero.
11310
11311 2010-02-22  Richard Guenther  <rguenther@suse.de>
11312
11313         PR tree-optimization/42749
11314         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
11315         parameter.  Do arithmetic in the original type.
11316         (update_accumulator_with_ops): Likewise.
11317         (adjust_accumulator_values): Adjust.
11318
11319 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11320
11321         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
11322         (QI to BLKmode splitter): New splitter.
11323
11324 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
11325
11326         * config/i386/i386.c (initial_ix86_tune_features): Turn on
11327         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
11328
11329 2010-02-22  Richard Guenther  <rguenther@suse.de>
11330
11331         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
11332
11333 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
11334
11335         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
11336         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
11337         ($(T)crti.o, $(T)crtn.o): Remove rules.
11338
11339 2010-02-21  Tobias Burnus  <burnus@net-b.de>
11340
11341         PR fortran/35259
11342         * doc/invoke.texi (-fassociative-math): Document that this
11343         option is automatically enabled for Fortran.
11344
11345 2010-02-20  David S. Miller  <davem@davemloft.net>
11346
11347         * configure.ac: Test if linker and assembler properly support
11348         GOTDATA_OP relocations.
11349         * configure: Rebuild.
11350         * config.in: Likewise.
11351         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
11352         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
11353         (movsi_high_pic): Likewise.
11354         (movdi_lo_sum_pic): Likewise.
11355         (movdi_high_pic): Likewise.
11356         (movsi_pic_gotdata_op): New pattern.
11357         (movdi_pic_gotdata_op): Likewise.
11358         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
11359         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
11360
11361 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
11362
11363         PR target/43067
11364         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
11365         attribute to ssemul.
11366         (xop_mulv2div2di3_high): Ditto.
11367
11368 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11369
11370         PR c++/35669
11371         * c.opt (Wconversion-null): New option.
11372         * doc/invoke.texi (Wconversion-null): Document.
11373
11374 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11375
11376         * common.opt (Wlarger-than-): Add Undocumented.
11377
11378 2010-02-19  Mike Stump  <mikestump@comcast.net>
11379
11380         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
11381
11382 2010-02-19  Jason Merrill  <jason@redhat.com>
11383
11384         PR target/40332
11385         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
11386         * configure: Likewise.
11387
11388 2010-02-20  Alan Modra  <amodra@gmail.com>
11389
11390         PR middle-end/42344
11391         * cgraph.h (cgraph_make_decl_local): Declare.
11392         * cgraph.c (cgraph_make_decl_local): New function.
11393         (cgraph_make_node_local): Use it.
11394         * cgraphunit.c (cgraph_function_versioning): Likewise.
11395         * ipa.c (function_and_variable_visibility): Likewise.
11396
11397 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
11398
11399         PR bootstrap/43121
11400         * except.c (sjlj_emit_function_enter): Don't call
11401         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
11402         directly.
11403         * rtl.h (add_reg_br_prob_note): Remove prototype.
11404
11405 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11406
11407         PR 41779
11408         * c-common.c (conversion_warning): Remove widening conversions
11409         before checking the conversion of integers to reals.
11410
11411 2010-02-19  Mike Stump  <mikestump@comcast.net>
11412
11413         PR middle-end/43125
11414         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
11415
11416         PR objc/43061
11417         * cgraphunit.c (process_function_and_variable_attributes): Check
11418         DECL_PRESERVE_P instead of looking up attribute "used".
11419         * ipa-pure-const.c (check_decl): Likewise.
11420         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
11421         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
11422         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
11423         instead of attribute "used".
11424         * config/sol2-c.c (solaris_pragma_init): Likewise.
11425         (solaris_pragma_fini): Likewise.
11426
11427 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
11428
11429         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
11430         Use XCNEW instead of xcalloc.
11431         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
11432         XNEW instead of xmalloc.
11433         (get_fields): Use XNEWVEC instead of xmalloc.
11434
11435         PR debug/43084
11436         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
11437         populate vars array.
11438         (create_new_general_access): For debug stmts just reset value.
11439         (get_stmt_accesses): For accesses within debug stmts just record them
11440         using add_access_to_acc_sites instead of preventing the peeling or
11441         counting them as accesses.
11442
11443         PR middle-end/42233
11444         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
11445
11446 2010-02-19  Richard Guenther  <rguenther@suse.de>
11447
11448         PR tree-optimization/42916
11449         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
11450         instructions.
11451
11452 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11453
11454         * configure.ac: Replace all uses of changequote in macro arguments
11455         with proper quoting.
11456
11457 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
11458
11459         PR middle-end/42233
11460         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
11461
11462 2010-02-19  Richard Guenther  <rguenther@suse.de>
11463
11464         PR tree-optimization/42944
11465         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
11466         test for aliasing with errno.
11467
11468 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
11469
11470         PR middle-end/42233
11471         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
11472         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
11473         * dojump.c: Include output.h.
11474         (inv): New inline function.
11475         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
11476         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
11477         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
11478         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
11479         argument, pass it down to other calls.
11480         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
11481         add REG_BR_PROB note to the conditional jump.
11482         * cfgexpand.c (add_reg_br_prob_note): Removed.
11483         (expand_gimple_cond): Don't call it, add the probability
11484         as last argument to jumpif_1/jumpifnot_1.
11485         * Makefile.in (dojump.o): Depend on output.h.
11486         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
11487         callers.
11488         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
11489         * stmt.c (do_jump_if_equal): Likewise.
11490         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
11491         * loop-unswitch.c (compare_and_jump_seq): Likewise.
11492         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
11493         Likewise.
11494         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
11495         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
11496         jumpifnot_1 callers.
11497         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
11498         callers.
11499         (store_expr): Adjust jumpifnot caller.
11500         (store_constructor): Adjust jumpif caller.
11501
11502         PR middle-end/42233
11503         * gimplify.c (gimple_boolify): For __builtin_expect call
11504         gimple_boolify also on its first argument.
11505
11506 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
11507
11508         * configure.ac (gnu-unique-object): Wrap regexps using [] in
11509         changequote block.
11510         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
11511         * configure: Regenerated.
11512
11513 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11514
11515         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
11516         lang_hooks.types_compatible_p instead of comptypes.
11517
11518 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
11519
11520         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
11521         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
11522         if __prefer_thumb__ is defined.
11523
11524 2010-02-18  Martin Jambor  <mjambor@suse.cz>
11525
11526         PR tree-optimization/43066
11527         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
11528         array with zero-sized element type.
11529
11530 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
11531
11532         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
11533         rtx, allocate struct var_loc_node here and return it to the
11534         caller, and only if it is actually needed.
11535         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
11536         move it earlier and return immediately if it returns NULL.
11537
11538 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
11539
11540         * config/sparc/gas.h: New file.  Restore
11541         TARGET_ASM_NAMED_SECTION to its ELF default.
11542         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
11543         check !HAVE_GNU_AS.
11544         * config/sparc/sparc.c (sparc_elf_asm_named_section):
11545         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
11546         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
11547         after sparc/sysv4.h.
11548
11549 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
11550
11551         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
11552
11553 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
11554
11555         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
11556         patterns from predicated pattern.
11557
11558 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
11559
11560         PR target/43103
11561         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
11562         for insn mnemonic suffix.
11563
11564 2010-02-17  Richard Guenther  <rguenther@suse.de>
11565
11566         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
11567         to loop PHI nodes.
11568
11569 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
11570
11571         PR debug/42918
11572         * caller-save.c (save_call_clobbered_regs): If BB ends with
11573         a DEBUG_INSN, move any notes in between last real insn and the last
11574         DEBUG_INSN after the last DEBUG_INSN.
11575
11576 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
11577
11578         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
11579         Fix return type.  Fix argument type.  Explain meaning of return value.
11580
11581 2010-02-16  Richard Guenther  <rguenther@suse.de>
11582
11583         PR tree-optimization/41043
11584         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
11585         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
11586         statements ...
11587         (vrp_visit_phi_node): ... but only for loop PHI nodes.
11588
11589 2010-02-16  Ira Rosen  <irar@il.ibm.com>
11590
11591         PR tree-optimization/43074
11592         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
11593         * tree-vect-loop.c (vect_analyze_loop_operations): Add
11594         vectorizable cycles in hybrid SLP check.
11595         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
11596
11597 2010-02-16  Richard Guenther  <rguenther@suse.de>
11598
11599         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
11600         (true_dependence): If memrefs_conflict_p computes must-alias
11601         trust it.  Move TBAA check after offset-based disambiguation.
11602         (canon_true_dependence): Likewise.
11603
11604 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
11605
11606         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
11607         * doc/invoke.texi: Document it.
11608         * var-tracking.c: Include toplev.h and params.h.
11609         (vt_find_locations): Return bool indicating success.  Compute
11610         hash sizes unconditionally.  Check new parameter, report.
11611         (variable_tracking_main_1): Check vt_find_locations results and
11612         retry.  Renamed from...
11613         (variable_tracking_main): ... this.  New wrapper to preserve
11614         flag_var_tracking_assignments.
11615         * Makefile.in (var-tracking.o): Adjust dependencies.
11616
11617 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
11618             Jakub Jelinek <jakub@redhat.com>
11619
11620         PR target/42854
11621         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
11622         if weak_import attribute is present.
11623         * config/darwin.c (machopic_select_section): Likewise.
11624
11625 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
11626
11627         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
11628         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
11629         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
11630         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
11631
11632         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
11633         types.
11634
11635         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11636         Fix argument types.
11637
11638         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
11639         Rewrite text to refer to the names.
11640
11641 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
11642
11643         * config/i386/i386-builtin-types.def
11644         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
11645         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
11646         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
11647         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
11648         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
11649         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
11650         IX86_BUILTIN_VPERMIL2PS256.
11651         (MULTI_ARG_4_DF2_DI_I): Defined.
11652         (MULTI_ARG_4_DF2_DI_I1): Defined.
11653         (MULTI_ARG_4_SF2_SI_I): Defined.
11654         (MULTI_ARG_4_SF2_SI_I1): Defined.
11655         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
11656         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
11657         __builtin_ia32_vpermil2ps256.
11658         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
11659         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
11660         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
11661         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
11662         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
11663         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
11664         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
11665         CODE_FOR_xop_vpermil2v8sf3.
11666         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
11667         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
11668         * config/i386/xopintrin.h (_mm_permute2_pd): New.
11669         (_mm256_permute2_pd): New.
11670         (_mm_permute2_ps): New.
11671         (_mm256_permute2_ps): New.
11672
11673 2010-02-15  Nick Clifton  <nickc@redhat.com>
11674
11675         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
11676         boolean parameters.  Use emit_jump_insn when emitting a pop
11677         instruction containing a return insn.
11678         (push): Use 'true' rather than '1' as second parameter to F.
11679         (h8300_expand_prologue): Likewise.
11680         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
11681         (h8300_expand_epilogue): Likewise.
11682
11683 2010-02-15  Richard Guenther  <rguenther@suse.de>
11684
11685         PR middle-end/43068
11686         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
11687         if that is zero.
11688
11689 2010-02-15  Nick Clifton  <nickc@redhat.com>
11690
11691         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
11692         delta.
11693
11694 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
11695
11696         * intl.c (fake_ngettext): New function.
11697         * intl.h (fake_ngettext): Declare.
11698         (ngettext): Define macro.
11699         * collect2.c (notice_translated): New function.
11700         (main): Use notice_translated and ngettext.
11701         * collect2.h (notice_translated): Declare.
11702
11703 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
11704
11705         * reorg.c (delete_computation): Comment fixes.
11706         * caller-save.c (setup_save_areas): Idem.
11707         * sel-sched-dump.c (dump_lv_set): Idem.
11708         * rtl.def: Idem.
11709
11710 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11711
11712         * config/s390/s390.c (s390_sched_init): New function.
11713         (TARGET_SCHED_INIT): Target hook defined.
11714
11715 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
11716             Jack Howarth  <howarth@bromo.med.uc.edu>
11717             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11718
11719         PR target/42982
11720         Partial revert of unintended change in fix for PR41605.
11721         * config/darwin.h: Fix typo.
11722         * config/darwin9.h: Same.
11723
11724 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
11725
11726         * c-pch.c (pch_init): Clear v.
11727
11728 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
11729
11730         PR middle-end/42930
11731         * graphite-scop-detection.c (graphite_can_represent_scev): Call
11732         graphite_can_represent_init for MULT_EXPR.
11733
11734 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
11735
11736         PR middle-end/42914
11737         PR middle-end/42530
11738         * graphite-sese-to-poly.c (remove_phi): New.
11739         (translate_scalar_reduction_to_array): Call remove_phi.
11740
11741 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
11742
11743         PR middle-end/42771
11744         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
11745         * graphite-clast-to-gimple.h (gloog): Update declaration.
11746         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
11747         * graphite-poly.h (struct poly_bb): Add missing comments.
11748         (struct scop): Add poly_scop_p field.
11749         (POLY_SCOP_P): New.
11750         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
11751         * graphite.c (graphite_transform_loops): Build the polyhedral
11752         representation for each scop before code generation.
11753         * sese.c (rename_variables_in_operand): Removed.
11754         (rename_variables_in_expr): Return the renamed expression.
11755         (rename_sese_parameters): New.
11756         * sese.h (rename_sese_parameters): Declared.
11757
11758 2010-02-11  Richard Guenther  <rguenther@suse.de>
11759
11760         PR tree-optimization/42998
11761         * tree-ssa-pre.c (create_expression_by_pieces): Treat
11762         POINTER_PLUS_EXPR properly.
11763
11764 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
11765             Changpeng Fang  <changpeng.fang@amd.com>
11766
11767         PR middle-end/40886
11768         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
11769         the cost of an IV candidate when the IV is used in a test against zero.
11770
11771         * gcc.dg/tree-ssa/ivopts-3.c: New.
11772
11773 2010-02-11  Richard Guenther  <rguenther@suse.de>
11774
11775         PR lto/41664
11776         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
11777         pointer-vs-decl case by swapping refs.  Handle some cases
11778         of pointer-vs-decl disambiguations more conservatively.
11779         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
11780         to false after expanding.
11781
11782 2010-02-11  Richard Guenther  <rguenther@suse.de>
11783
11784         PR driver/43021
11785         * gcc.c (process_command): Handle LTO file@offset case more
11786         appropriately.
11787
11788 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
11789
11790         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
11791         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
11792         of DEBUG_INSNs.
11793         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
11794
11795         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
11796         if MEM's mode size isn't DWARF2_ADDR_SIZE.
11797         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
11798         Optimize eq/ne comparisons when both arguments are known to be
11799         zero-extended.
11800         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
11801         Don't mask operands unnecessarily if they are known to be already
11802         zero-extended.
11803
11804 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
11805
11806         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
11807         instead of loop.
11808
11809 2010-02-10  Richard Guenther  <rguenther@suse.de>
11810
11811         PR tree-optimization/43017
11812         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
11813         for wrapping signed arithmetic.
11814
11815 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
11816
11817         PR debug/43010
11818         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
11819         if no debug info should be emitted for it.
11820
11821 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
11822
11823         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
11824         note when flag_exceptions is set.
11825
11826 2010-02-10  Duncan Sands  <baldrick@free.fr>
11827
11828         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
11829
11830 2010-02-10  Richard Guenther  <rguenther@suse.de>
11831
11832         PR c/43007
11833         * tree.c (get_unwidened): Handle constants.
11834         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
11835
11836 2010-02-10  Martin Jambor  <mjambor@suse.cz>
11837
11838         PR lto/42985
11839         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
11840         check for variable argument counts independently.
11841
11842 2010-02-10  Christian Bruel  <christian.bruel@st.com>
11843
11844         PR target/42841
11845         * config/sh/sh.c (find_barrier): Increase length for non delayed
11846         conditional branches.
11847
11848 2010-02-10  Christian Bruel  <christian.bruel@st.com>
11849
11850         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
11851
11852 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
11853
11854         * builtins.c (set_builtin_user_assembler_name): Also handle
11855         ffs if int is smaller than word.
11856
11857 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
11858
11859         PR middle-end/42973
11860         * ira-conflicts.c (get_dup): Remove.
11861         (process_reg_shuffles): Add new parameter.  Use it as an
11862         additional guard for copy generation.
11863         (add_insn_allocno_copies): Rewrite.
11864
11865 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
11866
11867         * common.opt (fsched2-use-traces): Preserved for backward
11868         compatibility.
11869         * doc/invoke.texi: Remove the documentation about option
11870         -fsched2-use-traces.
11871         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
11872         flag_sched2_use_traces.
11873         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
11874         the backward compatibility flag section.
11875
11876 2010-02-09  Richard Guenther  <rguenther@suse.de>
11877
11878         PR tree-optimization/43008
11879         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
11880         make HEAP variables initialized from global memory if they
11881         are not known builtin functions.
11882         (find_func_aliases): Adjust.
11883
11884 2010-02-09  Richard Guenther  <rguenther@suse.de>
11885
11886         PR tree-optimization/43000
11887         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
11888         arithmetic manually.
11889
11890 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
11891
11892         PR tree-optimization/42931
11893         * tree-loop-linear.c (try_interchange_loops): Don't call
11894         double_int_mul if estimated_loop_iterations failed.
11895
11896 2010-02-08  Martin Jambor  <mjambor@suse.cz>
11897
11898         PR middle-end/42898
11899         * tree-sra.c (build_accesses_from_assign): Do not mark in
11900         should_scalarize_away_bitmap if stmt has volatile ops.
11901         (sra_modify_assign): Do not process assigns piecemeal if if stmt
11902         has volatile ops.
11903
11904 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
11905
11906         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
11907
11908 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
11909
11910         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
11911         before the pattern.
11912
11913 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
11914
11915         PR middle-end/42946
11916         * df-core.c (df_finish_pass): Change type of saved_flags to int.
11917
11918 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
11919
11920         PR middle-end/42988
11921         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
11922         to unknown_dependence.
11923         (graphite_legal_transform_dr): Handle the unknown_dependence.
11924         (graphite_carried_dependence_level_k): Same.
11925
11926 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
11927
11928         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
11929
11930 2010-02-07  Richard Guenther  <rguenther@suse.de>
11931
11932         PR middle-end/42991
11933         * expr.c (get_inner_reference): Always initialize *pbitsize.
11934
11935 2010-02-07  Richard Guenther  <rguenther@suse.de>
11936
11937         PR middle-end/42956
11938         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
11939         new ARRAY_REFs on variable size element or minimal index arrays.
11940         Complete.
11941         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
11942         gimple_fold_indirect_ref.
11943
11944 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
11945
11946         PR target/42957
11947         * arm.c (arm_override_options): Just return if the user has specified
11948         an invalid fpu name.
11949
11950 2010-02-03  Jason Merrill  <jason@redhat.com>
11951
11952         PR c++/42870
11953         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
11954         i386_pe_maybe_record_exported_symbol.
11955
11956 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
11957
11958         PR target/42924
11959         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
11960         (pa_delegitimize_address): New function.
11961
11962 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
11963
11964         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
11965         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
11966
11967 2010-02-05  Richard Guenther  <rguenther@suse.de>
11968
11969         PR lto/42762
11970         * lto-streamer-in.c (get_resolution): Deal with references
11971         to undefined functions.
11972
11973 2010-02-05  Richard Guenther  <rguenther@suse.de>
11974
11975         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
11976         (fold_const_aggregate_ref): Likewise.
11977         (ccp_fold_stmt): Substitute loads.
11978         (maybe_fold_reference): Verify types before substituting.
11979         Unshare properly.
11980         (fold_gimple_assign): Unshare properly.
11981         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
11982
11983 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
11984
11985         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
11986         for rs6000_gen_cell_microcode.
11987
11988 2010-02-04  Richard Guenther  <rguenther@suse.de>
11989
11990         PR rtl-optimization/42952
11991         * dse.c (const_or_frame_p): Remove MEM handling.
11992
11993 2010-02-04  Nick Clifton  <nickc@redhat.com>
11994
11995         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
11996         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11997         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
11998         (mn10300_asm_output_mi_thunk): New function.
11999         (mn10300_can_output_mu_thunk): New function.
12000         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
12001         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
12002         (FUNCTION_ARG): Delete incorrect comment.
12003
12004 2010-02-03  Jason Merrill  <jason@redhat.com>
12005
12006         PR c++/40138
12007         * fold-const.c (operand_equal_p): Handle erroneous types.
12008
12009 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12010
12011         * config/h8300/h8300.md (can_delay): Fix attibute condition.
12012
12013 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
12014
12015         PR rtl-optimization/42941
12016         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
12017         of xmalloc.
12018
12019 2010-02-03  Jason Merrill  <jason@redhat.com>
12020
12021         PR c++/35652
12022         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
12023
12024 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
12025
12026         PR debug/42896
12027         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
12028         (cselib_reset_table): Renamed from...
12029         (cselib_reset_table_with_next_value): ... this.
12030         (cselib_get_next_uid): Renamed from...
12031         (cselib_get_next_unknown_value): ... this.
12032         * cselib.c (next_uid): Renamed from...
12033         (next_unknown_value): ... this.
12034         (cselib_clear_table): Adjust.
12035         (cselib_reset_table): Adjust.  Renamed from...
12036         (cselib_reset_table_with_next_value): ... this.
12037         (cselib_get_next_uid): Adjust.  Renamed from...
12038         (cselib_get_next_unknown_value): ... this.
12039         (get_value_hash): Use hash.
12040         (cselib_hash_rtx): Likewise.
12041         (new_cselib_val): Adjust.  Set and dump uid.
12042         (cselib_lookup_mem): Pass next_uid as hash.
12043         (cselib_subst_to_values): Likewise.
12044         (cselib_log_lookup): Dump uid.
12045         (cselib_lookup): Pass next_uid as hash.  Adjust.
12046         (cselib_process_insn): Adjust.
12047         (cselib_init): Initialize next_uid.
12048         (cselib_finish): Adjust.
12049         (dump_cselib_table): Likewise.
12050         * dse.c (canon_address): Dump value uid.
12051         * print-rtl.c (print_rtx): Print value uid.
12052         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
12053         (dvuid): New type.
12054         (dv_uid): New function, sort of renamed from...
12055         (dv_htab_hash): ... this, reimplemented in terms of it and...
12056         (dv_uid2hash): ... this.  New.
12057         (variable_htab_eq): Drop excess assertions.
12058         (tie_break_pointers): Removed.
12059         (canon_value_cmp): Compare uids.
12060         (variable_post_merge_New_vals): Print uids.
12061         (vt_add_function_parameters): Adjust.
12062         (vt_initialize): Reset table.  Adjust.
12063
12064 2010-02-03  Richard Guenther  <rguenther@suse.de>
12065
12066         PR tree-optimization/42944
12067         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
12068         (call_may_clobber_ref_p_1): Likewise.  Properly handle
12069         malloc and calloc clobbering errno.
12070
12071 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
12072
12073         * doc/invoke.texi: Fix name of sched1 dump.
12074
12075         * opts.c (decode_options): Set flag_tree_switch_conversion
12076         only conditionally on optimize >= 2.
12077
12078         * gcse.c: Assorted comment fixes in pass description.
12079
12080 2010-02-03  Anthony Green  <green@moxielogic.com>
12081
12082         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
12083         nop padding in order to maintain alignment of storage location of
12084         target function address.
12085         (moxie_trampoline_init): Store target function address at newly
12086         aligned location.
12087         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
12088         to 32.
12089         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
12090
12091 2010-02-03  Richard Guenther  <rguenther@suse.de>
12092
12093         PR middle-end/42927
12094         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
12095
12096 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12097
12098         * config.gcc: Reenable check for obsolete targets.
12099         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
12100         mips-sgi-irix6.[0-4]*.
12101
12102 2010-02-02  Nick Clifton  <nickc@redhat.com>
12103
12104         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
12105         constant size of 4 as being the same as 0.
12106         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
12107         can take values in the range 0..4.
12108
12109 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
12110
12111         PR java/41991
12112         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
12113         as _darwin10_Unwind_FindEnclosingFunction().
12114         * libgcc-libsystem.ver: New.
12115
12116 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
12117
12118         PR target/41399
12119         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
12120         implicitly set registers.
12121
12122 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
12123
12124         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
12125         (arm_override_options): Allow automatic selection of the thread
12126         pointer register if thumb2.
12127         (legitimize_pic_address): Improve code sequences for Thumb2.
12128         (arm_call_tls_get_addr): Likewise.
12129         (legitimize_tls_address): Likewise.
12130         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
12131         (pic_load_addr_32bit): ... this.  New named pattern.
12132         * thumb2.md (pic_load_addr_thumb2): Delete.
12133         (pic_load_dot_plus_four): Delete.
12134         (tls_load_dot_plus_four): New named pattern.
12135
12136 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12137
12138         PR libgomp/29986
12139         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
12140         Document fix for TLS bug.
12141
12142 2010-01-31  Richard Guenther  <rguenther@suse.de>
12143
12144         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
12145         conservatively correct.
12146
12147 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12148
12149         PR target/42850
12150         Revert:
12151         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12152
12153         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12154
12155 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12156
12157         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
12158
12159 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
12160
12161         * config.gcc: Adjust order of makefile fragments for mingw targets.
12162
12163 2010-01-31  Richard Guenther  <rguenther@suse.de>
12164
12165         PR middle-end/42898
12166         * gimplify.c (gimplify_init_constructor): For volatile LHS
12167         initialize a temporary.
12168
12169 2010-01-31  Matthias Klose  <doko@ubuntu.com>
12170
12171         * configure.ac: Fix __stack_chk_fail check for cross builds configured
12172         --with-headers
12173         * configure: Regenerate.
12174
12175 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
12176
12177         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
12178         the same alias set and their sizes different constantness.
12179         (aliasing_component_refs_p): Revert 2009-10-24 change.
12180
12181 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12182
12183         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
12184         unused.
12185
12186 2010-01-29  Richard Guenther  <rguenther@suse.de>
12187
12188         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
12189         Assert we successfully updated the call.
12190
12191 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
12192
12193         PR rtl-optimization/42889
12194         * df.h (df_set_bb_dirty_nonlr): New prototype.
12195         * df-core.c (df_set_bb_dirty_nonlr): New function.
12196         * df-scan.c (df_insn_rescan): Call it instead of
12197         df_set_bb_dirty for DEBUG_INSNs.
12198
12199 2010-01-29  Richard Guenther  <rguenther@suse.de>
12200
12201         PR middle-end/37448
12202         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
12203         quadratic behavior in most cases.
12204
12205 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
12206
12207         PR target/42891
12208         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
12209         in the call to gen_x86_movsicc_0_m1.
12210
12211 2010-01-28  Richard Guenther  <rguenther@suse.de>
12212
12213         PR tree-optimization/42871
12214         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
12215
12216 2010-01-28  Richard Guenther  <rguenther@suse.de>
12217
12218         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
12219         into call arguments.
12220
12221 2010-01-28  Richard Guenther  <rguenther@suse.de>
12222
12223         PR middle-end/42883
12224         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
12225         the forwarder if the destination is an EH landing pad.
12226
12227 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
12228
12229         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
12230         block list passed to gimple_duplicate_sese_tail.
12231         (parallelize_loops): Avoid parallelization when the function
12232         has_nonlocal_label.
12233         Avoid parallelization when the preheader is IRREDUCIBLE.
12234         Try to optimize when estimated_loop_iterations_int is unresolved.
12235         Add the loop's location to the dump file.
12236         * tree-cfg.c (add_phi_args_after_redirect): Remove.
12237         (gimple_duplicate_sese_tail): Remove the check for the latch.
12238         Redirect nexits to the exit block.
12239         Remove handling of the incoming edges to the latch.
12240         Redirect the backedge from the copied latch to the exit bb.
12241
12242 2010-01-28  Michael Matz  <matz@suse.de>
12243
12244         PR target/42881
12245         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
12246         Wrap force_reg into a sequence, emit it before user.
12247
12248 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
12249
12250         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
12251         (arm_rev): New.
12252         (arm_legacy_rev): Likewise.
12253         (thumb_legacy_rev): Likewise.
12254
12255 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
12256
12257         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
12258         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
12259         on MEM's address failed, try avoid_constant_pool_reference and
12260         recurse if it returned something different.
12261         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
12262         address, try avoid_constant_pool_reference and recurse if it
12263         returned something different.
12264         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
12265         address and avoid_constant_pool_reference returned something
12266         different, don't set have_address.
12267
12268 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
12269
12270         PR debug/42861
12271         * var-tracking.c (val_store): Add modified argument, obey it.
12272         Adjust callers.
12273         (count_uses): Move down logging of main.
12274         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
12275         don't need resolution.
12276         (emit_notes_in_bb): Likewise.
12277
12278 2010-01-27  Richard Guenther  <rguenther@suse.de>
12279
12280         PR middle-end/42878
12281         * tree-inline.c (remap_decl): Delay remapping of SSA name
12282         default definitions until we need them.
12283
12284 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
12285
12286         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
12287         (rs6000_delegitimize_address): New function.
12288
12289         * config/s390/s390.c (s390_delegitimize_address): Call
12290         delegitimize_mem_from_attrs.
12291
12292         PR middle-end/42874
12293         * tree-inline.c (cannot_copy_type_1): Removed.
12294         (copy_forbidden): Don't forbid copying of functions containing
12295         records/unions with variable length fields.
12296
12297 2010-01-27  Christian Bruel  <christian.bruel@st.com>
12298
12299         Revert:
12300         PR target/42841
12301         * config/sh/sh.c (find_barrier): Increase length for non delayed
12302         conditional branches.
12303
12304 2010-01-27  Matthias Klose  <doko@ubuntu.com>
12305
12306         * configure.ac (gnu-unique-object): Fix ldd version check.
12307         * configure: Regenerate.
12308
12309 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12310
12311         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
12312         HAVE_GNU_AS value.
12313         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
12314         Test for HAVE_GNU_AS value.
12315
12316 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12317
12318         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
12319         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
12320         INT64_TYPE): Define.
12321         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
12322         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
12323         INT_LEAST64_TYPE): Define.
12324         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
12325         UINT_LEAST64_TYPE): Define.
12326         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
12327         INT_FAST64_TYPE): Define.
12328         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
12329         UINT_FAST64_TYPE): Define.
12330         (INTMAX_TYPE, UINTMAX_TYPE): Define.
12331         (INTPTR_TYPE, UINTPTR_TYPE): Define.
12332         (SIG_ATOMIC_TYPE): Define.
12333
12334 2010-01-26  Richard Guenther  <rguenther@suse.de>
12335
12336         * df-scan.c (df_scan_set_bb_info): Remove assert.
12337         (df_insn_rescan_debug_internal): Merge asserts.
12338         (df_install_ref): Likewise.
12339         (df_mark_reg): Use bitmap_set_range.
12340         (df_hard_reg_used_p): Remove assert.
12341         (df_hard_reg_used_count): Likewise.
12342
12343 2010-01-26  Richard Guenther  <rguenther@suse.de>
12344
12345         PR rtl-optimization/42685
12346         * web.c (web_main): Ignore DEBUG_INSNs.
12347
12348 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
12349
12350         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
12351
12352         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
12353         Fix types of fndecl and arglist parameters.
12354
12355 2010-01-26  Richard Guenther  <rguenther@suse.de>
12356
12357         PR middle-end/42806
12358         * tree-eh.c (unsplit_eh): Skip debug insns.
12359
12360 2010-01-26  Richard Guenther  <rguenther@suse.de>
12361
12362         PR tree-optimization/42250
12363         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
12364
12365 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
12366
12367         PR fortran/42866
12368         * omp-low.c (expand_omp_sections): Only use single_pred if
12369         l2_bb is single_pred_p.
12370
12371 2010-01-25  Christian Bruel  <christian.bruel@st.com>
12372
12373         PR target/42841
12374         * config/sh/sh.c (find_barrier): Increase length for non delayed
12375         conditional branches.
12376         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
12377
12378 2010-01-24  David S. Miller  <davem@davemloft.net>
12379
12380         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
12381         define if not using GAS.
12382         * config/sparc/sparc.c (sparc_elf_asm_named_section):
12383         Likewise.  Delete SECTION_MERGE code, which is only applicable
12384         when using GAS.
12385
12386 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
12387
12388         PR c++/42748
12389         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
12390         mangling of va_list in system headers.
12391
12392 2010-01-23  Toon Moene  <toon@moene.org>
12393
12394         * tree-predcom.c (combine_chains): Return NULL, not false.
12395
12396 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
12397
12398         * tree-loop-distribution.c (distribute_loop): Fix declaration and
12399         initialization of variable res to agree with return type.
12400
12401 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
12402
12403         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
12404         * tree-sra.c: Add include of expr.h.
12405
12406 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
12407
12408         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
12409         insert the debug stmt on the single non-EH edge from the stmt.
12410
12411 2010-01-22  Richard Henderson  <rth@redhat.com>
12412
12413         PR tree-opt/42833
12414         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
12415         the RHS until after generate_subtree_copies has insertted its
12416         code before the current statement.
12417
12418 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
12419
12420         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
12421
12422         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
12423
12424 2010-01-21  Martin Jambor  <mjambor@suse.cz>
12425
12426         PR tree-optimization/42585
12427         * tree-sra.c (struct access): New field grp_total_scalarization.
12428         (dump_access): Dump the new field.
12429         (should_scalarize_away_bitmap): New variable.
12430         (cannot_scalarize_away_bitmap): Likewise.
12431         (sra_initialize): Allocate new bitmaps.
12432         (sra_deinitialize): Free new bitmaps.
12433         (create_access_1): New function.
12434         (create_access): Parts moved to create_access_1.
12435         (type_consists_of_records_p): New function.
12436         (completely_scalarize_record): Likewise.
12437         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
12438         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
12439         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
12440         access.
12441         (analyze_all_variable_accesses): Completely scalarize small eligible
12442         records.
12443
12444 2010-01-21  Martin Jambor  <mjambor@suse.cz>
12445
12446         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
12447
12448 2010-01-21  Andrew Haley  <aph@redhat.com>
12449
12450         * gcc.c (process_command): Move lang_specific_driver before
12451         setting cc_libexec_prefix.
12452
12453 2010-01-21  Richard Guenther  <rguenther@suse.de>
12454
12455         PR middle-end/19988
12456         * fold-const.c (negate_expr_p): Pretend only negative
12457         real constants are easily negatable.
12458
12459 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
12460             Jason Merrill  <jason@redhat.com>
12461
12462         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
12463         (TYPE_TRANSPARENT_AGGR): this, for union and record.
12464         * calls.c (initialize argument_information): Handle it.
12465         * c-common.c (handle_transparent_union_attribute): Use new name.
12466         * c-decl.c (finish_struct): Ditto.
12467         * c-typeck.c (type_lists_compatible_p): Ditto.
12468         (convert_for_assignment): Use new name and also handle record.
12469         * function.c (aggregate_value_p): Handle it.
12470         (pass_by_reference): Ditto.
12471         (assign_parm_data_types): Ditto.
12472         * print-tree.c (print_node): Ditto.
12473         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
12474         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
12475         * tree.c (first_field): New fn.
12476
12477 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
12478
12479         PR target/42818
12480         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
12481         even when linking statically, for now.
12482
12483 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
12484
12485         PR debug/42715
12486         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
12487         without a cselib val.
12488         (count_uses): Accept MO_VAL_SET with no val on stores.
12489         (add_stores): Likewise.
12490
12491 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
12492
12493         * var-tracking.c (check_value_val): Add a compile time assertion.
12494         (dv_is_decl_p): Simplify.
12495         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
12496         gcc_assert if ENABLE_CHECKING.
12497
12498 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
12499
12500         PR debug/42782
12501         * var-tracking.c: Include tree-flow.h.
12502         (mem_dies_at_call): New.
12503         (dataflow_set_preserve_mem_locs): Use it.
12504         (dataflow_set_remove_mem_locs): Likewise.
12505         (dump_var): Renamed from dump_variable.  Adjust all callers.
12506         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
12507         * Makefile.in (var-tracking.o): Adjust deps.
12508
12509 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
12510
12511         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
12512
12513 2010-01-20  Richard Guenther  <rguenther@suse.de>
12514
12515         PR tree-optimization/42717
12516         * tree-ssa-dce.c (get_live_post_dom): Remove.
12517         (forward_edge_to_pdom): Take an arbitrary edge to copy
12518         degenerate PHI args from.
12519         (remove_dead_stmt): Use the first post-dominator even if it
12520         does not contain live statements as redirection destination.
12521
12522 2010-01-20  Richard Guenther  <rguenther@suse.de>
12523
12524         * tree-inline.c (estimate_num_insns): Handle EH builtins.
12525
12526 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
12527
12528         * sel-sched.c (create_speculation_check): Remove set but not used
12529         variable twin.
12530         (try_transformation_cache): Remove set but not used variable ds.
12531         (calculate_privileged_insns): Remove set but not used variables
12532         cur_insn and min_spec_insn.
12533         (find_best_expr): Remove set but not used variable avail_n.
12534         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
12535         variable e.
12536         * cgraphunit.c (assemble_thunk): Remove set but not used variable
12537         false_label.
12538         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
12539         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
12540         new_scop_exit_edge.
12541
12542 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
12543
12544         PR bootstrap/42786
12545         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
12546         cpu types.  Add support for *-sse3 cpu types.
12547         (x86_64-*-*): Ditto.
12548
12549 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
12550
12551         PR middle-end/42803
12552         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
12553         argument, call initializer_constant_valid_p_1 instead of
12554         initializer_constant_valid_p, pass CACHE to it, return NULL
12555         immediately if first call returns NULL.
12556         (initializer_constant_valid_p_1): New function.
12557         (initializer_constant_valid_p): Use it.
12558
12559 2010-01-20  Thomas Quinot  <quinot@adacore.com>
12560
12561         * tree.def (PLACEHOLDER_EXPR): Fix comment.
12562
12563 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
12564
12565         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
12566         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
12567         (loc_list_from_tree): Don't handle unsigned division.  Handle
12568         signed modulo using DW_OP_{over,over,div,mul,minus}.
12569         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
12570         modulo instead of signed.
12571
12572 2010-01-20  DJ Delorie  <dj@redhat.com>
12573
12574         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
12575         (Fpa): Pass it
12576         (h8300_emit_stack_adjustment): Propogate it.
12577         (push): Pass it.
12578         (h8300_expand_prologue): Likewise.
12579         (h8300_expand_epilogue): Likewise.
12580
12581 2010-01-19  Michael Matz  <matz@suse.de>
12582
12583         PR tree-optimization/41783
12584         * tree-data-ref.c (toplevel): Include flags.h.
12585         (dump_data_dependence_relation):  Also dump the inputs if the
12586         result will be unknown.
12587         (split_constant_offset_1): Look through some conversions.
12588         * tree-predcom.c (determine_roots_comp): Restart a new chain if
12589         the offset from last element is too large.
12590         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
12591         (reassociate_to_the_same_stmt): Handle vector registers.
12592         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
12593         (e.g. conversions).
12594         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
12595         wide_prolog_niters argument, emit widening instructions.
12596         (vect_do_peeling_for_alignment): Adjust caller, use widened
12597         variant of the iteration cound.
12598         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
12599
12600 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12601
12602         PR target/38697
12603         * config/arm/neon-testgen.m (emit_automatics): New parameter
12604         features. Adjust for Fixed_return_reg feature.
12605         (test_intrinsic): Call emit_automatics with new feature.
12606         * config/arm/neon.ml: Update copyright years.
12607         (features): New Fixed_return_reg feature.
12608         (ops): Update feature for Vget_low.
12609
12610 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
12611
12612         PR tree-optimization/42719
12613         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
12614         stmt uses.
12615
12616         PR debug/42728
12617         * fwprop.c (all_uses_available_at): Return false if def_set dest
12618         is a REG that is used in def_insn.
12619
12620 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
12621
12622         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
12623
12624         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
12625         Add argument names.
12626
12627         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
12628
12629         * target.h (struct gcc_target) <secondary_reload>: Change type
12630         of last argument to secondary_reload_info *.
12631
12632 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
12633
12634         PR target/42774
12635         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
12636         memory references with unaligned offsets.  Remove CQImode handling.
12637         (unaligned_memory_operand): Return 1 for memory references with
12638         unaligned offsets.  Remove CQImode handling.
12639
12640 2010-01-18  Richard Guenther  <rguenther@suse.de>
12641
12642         PR middle-end/39954
12643         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
12644         builtin calls.
12645
12646 2010-01-18  Richard Guenther  <rguenther@suse.de>
12647
12648         PR tree-optimization/42781
12649         * tree-ssa-structalias.c (find_what_var_points_to): Skip
12650         restrict processing only if the original variable was artificial.
12651
12652 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
12653
12654         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
12655         find number of popped argument bytes.
12656
12657         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
12658         Fix the text that describes the return value for invalid insns.
12659
12660         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
12661
12662         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
12663         Clarify what 'cost of the -dependence' is.  Fix quoting.
12664
12665         * toplev.c (default_get_pch_validity): Rename argument to "sz".
12666         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
12667
12668 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
12669
12670         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12671         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
12672
12673 2010-01-17  Richard Guenther  <rguenther@suse.de>
12674
12675         PR middle-end/42248
12676         * function.c (split_complex_args): Take a VEC to modify.
12677         (assign_parms_augmented_arg_list): Build a VEC instead of
12678         a chain of PARM_DECLs.
12679         (assign_parms_unsplit_complex): Take a VEC of arguments.
12680         Do not fixup unmodified parms.
12681         (assign_parms): Deal with the VEC.
12682         (gimplify_parameters): Likewise.
12683
12684 2010-01-17  Richard Guenther  <rguenther@suse.de>
12685
12686         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
12687         node existence check.
12688         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
12689         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
12690         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
12691         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
12692         (gimple_execute_on_growing_pred): Likewise.
12693
12694 2010-01-17  Richard Guenther  <rguenther@suse.de>
12695
12696         PR tree-optimization/42773
12697         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
12698         (compute_antic_aux): Likewise.
12699         (compute_partial_antic_aux): Likewise.
12700
12701 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
12702
12703         PR debug/42767
12704         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
12705         and US_TRUNCATE.
12706
12707 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
12708
12709         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
12710         appearance.
12711
12712         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
12713         Fix markup for strict argument.
12714
12715         (TARGET_SCHED_REORDER2): Fix argument types.
12716
12717         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
12718         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
12719
12720         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
12721         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
12722
12723         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
12724         Add argument name.
12725
12726         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
12727         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
12728         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
12729         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
12730         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
12731
12732         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
12733
12734         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
12735
12736         (TARGET_ASM_RELOC_RW_MASK): Add return type.
12737         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
12738
12739         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
12740
12741         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
12742         Use prototype.
12743
12744         (TARGET_ASM_NAMED_SECTION): Fix argument list.
12745
12746         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
12747         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
12748
12749         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
12750
12751         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
12752
12753         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
12754         referring to it.  Fix language.
12755
12756         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
12757
12758         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
12759
12760         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
12761
12762         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
12763
12764         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
12765         '@var{stream}.  Remove stray 'and'.
12766
12767         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
12768
12769         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
12770
12771         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
12772
12773         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
12774         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
12775
12776         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
12777         Fix description of return value.
12778         Rename argument "sz" to "len."
12779
12780         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
12781         Clarify meaning of 'true' return value.
12782
12783         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
12784
12785         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
12786         rep_mode versus mode_rep.
12787
12788         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
12789
12790         (TARGET_BUILTIN_DECL): Fix name.
12791
12792         (TARGET_COMMUTATIVE_P): Fix type of first argument.
12793
12794         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
12795
12796         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
12797
12798         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
12799
12800         (TARGET_RELAXED_ORDERING): Use @deftypevr.
12801
12802         (TARGET_GET_DRAP_RTX): Note that this is a hook.
12803         Clarify language.
12804
12805         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
12806         Rename argument tm_fn to md_fn.
12807
12808         (TARGET_OPTION_PRINT): Fix argument list.
12809
12810 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
12811
12812         PR target/42664
12813         * config/i386/i386.c (ix86_fixup_binary_operands):
12814         Revert FMA4 fixup of operands.
12815
12816 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12817
12818         PR gcc/42525
12819         * Makefile.in (write_entries_to_file, install-plugin):
12820         Use \012 instead of \n with tr.
12821
12822 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
12823
12824         * configure.ac (HAVE_AS_REF): New C macro.
12825         * configure: Regenerate.
12826         * config.in: Likewise.
12827         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
12828         if HAVE_AS_REF.
12829         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
12830         if HAVE_AS_REF.
12831
12832 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
12833
12834         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
12835
12836         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
12837
12838         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
12839
12840         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
12841
12842         (TARGET_IN_SMALL_DATA_P): Fix argument type.
12843
12844         (TARGET_BINDS_LOCAL_P): Fix argument type.
12845
12846         (TARGET_ASM_FILE_END): Use prototype.
12847
12848         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
12849
12850         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
12851
12852         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
12853
12854         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
12855
12856         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
12857         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
12858
12859         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
12860         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
12861
12862         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
12863         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
12864         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
12865         (TARGET_ADDR_SPACE_CONVERT): Likewise.
12866
12867         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
12868
12869         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
12870
12871         (TARGET_INIT_BUILTINS): Use prototype.
12872
12873         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
12874         Put 'const char *' in braces.  Fix parameter types.
12875         (TARGET_INVALID_CONVERSION): Fix parameter types.
12876         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
12877         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
12878
12879         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
12880         Fix argument type.
12881
12882         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
12883
12884         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
12885
12886 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
12887
12888         * doc/tm.texi (TARGET_HELP): Fix return type.
12889
12890         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
12891         in braces.  Fix argument types.
12892
12893         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
12894
12895         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
12896
12897         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
12898
12899         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
12900         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
12901
12902         (TARGET_MANGLE_TYPE): Fix argument types.
12903
12904         (TARGET_IRA_COVER_CLASSES): Use prototype.
12905
12906         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
12907
12908         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
12909
12910         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
12911
12912         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
12913
12914         (TARGET_CALLEE_COPIES): Fix argument types.
12915
12916         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
12917
12918         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
12919
12920         (TARGET_FUNCTION_VALUE): Fix argument types.
12921
12922         (TARGET_RETURN_IN_MSB): Fix argument type.
12923
12924         (TARGET_RETURN_IN_MEMORY): Fix argument types.
12925
12926         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
12927
12928         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
12929
12930         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
12931         agree with return type.
12932
12933         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
12934
12935 2010-01-15  Jing Yu  <jingyu@google.com>
12936
12937         PR rtl-optimization/42691
12938         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
12939         a pseudo to a constant and are merged, and adjust comments.
12940
12941 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12942
12943         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
12944
12945 2010-01-15  Richard Guenther  <rguenther@suse.de>
12946
12947         PR middle-end/42739
12948         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
12949         labels of computed or non-local gotos to the destination.
12950         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
12951         landing pad label is the first label.
12952
12953 2010-01-15  Richard Guenther  <rguenther@suse.de>
12954
12955         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
12956
12957 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12958
12959         PR target/42747
12960         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
12961         to allow generation of the xssqrtdp instruction on power7.
12962         (sqrtdf2_fpr): Ditto.
12963
12964 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
12965
12966         PR middle-end/42674
12967         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
12968         functions with noreturn attribute.
12969
12970         PR c++/42608
12971         * varasm.c (declare_weak): Add weak attribute to decl if it
12972         doesn't have one already.
12973         (assemble_external): Only add decls to weak_decls if they also
12974         have weak attribute.
12975
12976 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
12977
12978         * var-tracking.c (var_reg_delete): Don't delete the association
12979         between REGs and values or one-part variables if the register
12980         isn't clobbered.
12981
12982 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
12983
12984         PR debug/42657
12985         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
12986         because its first operand is a non-localized variable.
12987
12988 2010-01-14  Martin Jambor  <mjambor@suse.cz>
12989
12990         PR tree-optimization/42706
12991         * tree-sra.c (encountered_recursive_call): New variable.
12992         (encountered_unchangable_recursive_call): Likewise.
12993         (sra_initialize): Initialize both new variables.
12994         (callsite_has_enough_arguments_p): New function.
12995         (scan_function): Call decl and flags check only for IPA-SRA, check
12996         whether there is a recursive call and whether it has enough arguments.
12997         (all_callers_have_enough_arguments_p): New function.
12998         (convert_callers): Look for recursive calls only when
12999         encountered_recursive_call is set.
13000         (ipa_early_sra): Bail out either if
13001         !all_callers_have_enough_arguments_p or
13002         encountered_unchangable_recursive_call.
13003
13004 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
13005
13006         * sel-sched.c: Add 2010 to copyright years.
13007         * sel-sched-ir.c: Likewise.
13008         * sel-sched-ir.h: Likewise.
13009
13010 2010-01-14  Martin Jambor  <mjambor@suse.cz>
13011
13012         PR tree-optimization/42714
13013         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
13014         constructors specially.
13015
13016 2010-01-14  Andi Kleen  <ak@linux.intel.com>
13017
13018         * config/i386/drivers-i386.c (detect_caches_intel):
13019         Add l2sizekb parameter and fill in.
13020         (host_detect_local_cpu): Add l2sizekb, fill in.
13021         Add Atom small cache heuristic.
13022
13023 2010-01-14  Andi Kleen  <ak@linux.intel.com>
13024
13025         * config/i386/drivers-i386.c (detect_caches_cpuid4):
13026         Add level3 parameter and fill in.
13027         (detect_caches_intel): Handle level3 cache.
13028
13029 2010-01-14  Andi Kleen  <ak@linux.intel.com>
13030
13031         * config/i386/drivers-i386.c (host_detect_local_cpu):
13032         Fix core duo detection.
13033
13034 2010-01-14  Andi Kleen  <ak@linux.intel.com>
13035
13036         * config/i386/drivers-i386.c (host_detect_local_cpu):
13037         Fix Atom detection.
13038
13039 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
13040
13041         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
13042         (rs6000_variable_issue_1): this.  Use...
13043         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
13044
13045 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
13046
13047         * sel-sched-ir.c (sel_restore_other_notes): Rename to
13048         sel_restore_notes.  Update all callers.  Call reemit_notes
13049         for all insns.
13050
13051 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
13052
13053         PR rtl-optimization/42246
13054         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
13055         loops.
13056
13057 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
13058
13059         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
13060         all successors is the same as number of successors in current region.
13061
13062 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
13063
13064         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
13065         to rename is not separable.  Otherwise check that its LHS is not NULL.
13066
13067 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
13068
13069         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
13070
13071 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
13072
13073         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
13074         available registers when failed to discover LHS register class.
13075         Fix indentation.  Update comment.
13076
13077 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
13078             Alexander Monakov  <amonakov@ispras.ru>
13079
13080         PR rtl-optimization/42389
13081         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
13082         to can_issue_more.
13083         (advance_state_on_fence): Likewise.
13084         (sel_target_adjust_priority): Print debug output only when
13085         sched_verbose >= 4, not 2.
13086         (get_expr_cost): Do not issue all unique insns on the next cycle.
13087         (fill_insns): Initialize can_issue_more from the value saved
13088         with the fence.
13089         * sel-sched-ir.c (flist_add): New parameter issue_more.
13090         Init FENCE_ISSUE_MORE with it.
13091         (merge_fences): Likewise.
13092         (init_fences): Update call to flist_add.
13093         (add_to_fences, add_clean_fence_to_fences)
13094         (add_dirty_fence_to_fences): Likewise.
13095         (move_fence_to_fences): Update call to merge_fences.
13096         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
13097         sched groups.
13098         * sel-sched-ir.h (struct _fence): New field issue_more.
13099         (FENCE_ISSUE_MORE): New accessor macro.
13100
13101 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
13102
13103         PR rtl-optimization/42388
13104         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
13105         that have no predecessors nor successors.  Do not call move_bb_info
13106         for empty blocks outside of current region.
13107
13108 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
13109
13110         PR rtl-optimization/42294
13111         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
13112         * sel-sched.c (move_exprs_to_boundary): Transitively add all
13113         originators' originators.
13114
13115 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
13116
13117         PR rtl-optimization/39453
13118         PR rtl-optimization/42246
13119         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
13120         for pipelining_p.
13121         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
13122
13123 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
13124             Alexander Monakov  <amonakov@ispras.ru>
13125
13126         PR middle-end/42245
13127         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
13128         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
13129         argument.  Update all callers.
13130         (tidy_control_flow): ... and here.  Recompute topological order
13131         of basic blocks in region if necessary.
13132         (sel_redirect_edge_and_branch): Change return type.  Return true
13133         if topological order might have been invalidated.
13134         (purge_empty_blocks): Export and move from...
13135         * sel-sched.c (purge_empty_blocks): ... here.
13136         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
13137         (maybe_tidy_empty_bb): Delete prototype.
13138         (purge_empty_blocks): Declare.
13139
13140 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
13141
13142         PR rtl-optimization/42249
13143         * sel-sched.c (try_replace_dest_reg): When chosen register
13144         and original register is the same, do not bail out early, but
13145         still check all original insns for validity of replacing destination
13146         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
13147         in this case.
13148
13149 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
13150
13151         PR c/42721
13152         Port from no-undefined-overflow branch:
13153         2009-03-09  Richard Guenther  <rguenther@suse.de>
13154
13155         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
13156
13157 2010-01-14  Richard Guenther  <rguenther@suse.de>
13158
13159         PR lto/42665
13160         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
13161
13162 2010-01-14  Ira Rosen  <irar@il.ibm.com>
13163
13164         PR tree-optimization/42709
13165         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
13166         as scalar type in creation of constant vector operand.
13167
13168 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13169
13170         PR testsuite/42414
13171         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
13172         (check-parallel-%): Match `testsuite' directory component only
13173         at the end.
13174
13175 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
13176
13177         PR translation/39521
13178         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
13179         strings with _().
13180
13181 2010-01-13  Richard Guenther  <rguenther@suse.de>
13182
13183         PR tree-optimization/42730
13184         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
13185         offset zero.
13186
13187 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
13188
13189         PR target/pr42542
13190         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
13191         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
13192         them signed.
13193
13194 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
13195
13196         * config/bfin/libgcc-bfin.ver: Regenerate based on current
13197         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
13198         ___umulsi3_highpart.
13199
13200         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
13201         rather than schedule_insns if the pass is enabled.
13202
13203 2010-01-13  Martin Jambor  <mjambor@suse.cz>
13204
13205         PR tree-optimization/42704
13206         * tree-sra.c (sra_modify_assign): Do not delete assignments to
13207         SSA_NAMEs.
13208
13209 2010-01-13  Martin Jambor  <mjambor@suse.cz>
13210
13211         PR tree-optimization/42703
13212         * tree-sra.c (analyze_access_subtree): Check that we can build a
13213         reference to the original data within the aggregate.
13214
13215 2010-01-13  Richard Guenther  <rguenther@suse.de>
13216
13217         PR tree-optimization/42705
13218         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
13219
13220 2010-01-13  Richard Guenther  <rguenther@suse.de>
13221
13222         PR middle-end/42716
13223         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
13224
13225 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
13226
13227         PR debug/41371
13228         * var-tracking.c (values_to_unmark): New variable.
13229         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13230         values_to_unmark vector.  Moved body to...
13231         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
13232         instead queue it into values_to_unmark vector.
13233         (vt_find_locations): Free values_to_unmark vector.
13234
13235 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
13236
13237         * config/s390/s390.c (override_options): Set
13238         default of max-pending-list-length to 256
13239
13240 2010-01-13  Richard Guenther  <rguenther@suse.de>
13241
13242         PR lto/42678
13243         * tree-pass.h (PROP_gimple_lcx): New.
13244         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
13245         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
13246         before the final cleanup_eh.
13247         (dump_properties): Dump PROP_gimple_lcx.
13248         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
13249         (tree_lower_complex_O0): Remove.
13250         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
13251         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
13252         tree_lower_complex, schedule TODO_update_ssa.
13253         * lto-streamer-out.c (output_function): Stream the functions
13254         properties.
13255         * lto-streamer-in.c (input_function): Likewise.
13256         (lto_read_body): Do not override them here.
13257
13258 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
13259
13260         PR c/42708
13261         * c-typeck.c (build_c_cast): Fold value cast to union type before
13262         wrapping it in a CONSTRUCTOR.
13263
13264 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
13265
13266         PR rtl-optimization/42699
13267         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
13268         involved.
13269
13270 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13271
13272         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
13273         SUBTARGET_WARN_UNUSED_SPEC): Move ...
13274         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
13275         SUBTARGET_WARN_UNUSED_SPEC): ... here
13276         * config/mips/iris5.h (LIBGCC_SPEC): Define.
13277
13278 2010-01-12  Julian Brown  <julian@codesourcery.com>
13279
13280         * config/arm/neon-schedgen.ml (Utils): Don't try to
13281         open missing module.
13282         (find_with_result): New.
13283
13284 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
13285
13286         PR debug/42662
13287         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
13288         sharing when canonicalizing ({lt,ge}u (plus a b) b).
13289
13290         PR tree-optimization/42645
13291         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
13292         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
13293         decl_map, set processing_debug_stmt to -1 and return name without
13294         any remapping.
13295
13296 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
13297
13298         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
13299         binutils version, and reword target configuration description.
13300
13301 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
13302
13303         * config/avr/avr.h (LINKER_NAME): Remove.
13304
13305 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
13306
13307         PR target/42416
13308         * config/rs6000/rs6000.c (rs6000_override_options): On targets
13309         that support VSX, warn for -mno-altivec if vsx is not disabled,
13310         and disable vsx.
13311
13312 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
13313             Shujing Zhao  <pearly.zhao@oracle.com>
13314
13315         PR translation/42469
13316         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
13317         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
13318         character between option name and help text.
13319         * c.opt (imultilib): Likewise.
13320
13321 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
13322
13323         * lto-streamer-out.c (output_unreferenced_globals): Output static
13324         variables.
13325
13326 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
13327
13328         PR rtl-optimization/42621
13329         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
13330         optimizing for size.
13331         (duplicate_computed_gotos): Remove now-redundant check.
13332
13333 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
13334
13335         PR target/37454
13336         * configure.ac: Save and restore LDFLAGS and LIBS
13337         * configure: Regenerate.
13338
13339 2010-01-10  Richard Guenther  <rguenther@suse.de>
13340
13341         PR middle-end/42667
13342         * builtins.c (fold_builtin_strlen): Add type argument and
13343         convert the resulting length to it.
13344         (fold_builtin_1): Adjust.
13345
13346 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
13347
13348         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
13349         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
13350         1 insn.
13351         (num_insns_constant_wide): Adjust for that change.
13352
13353 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
13354
13355         PR debug/42631
13356         * web.c (union_defs): Add used argument, to combine uses of
13357         uninitialized regs.
13358         (entry_register): Adjust type and tests of used argument.
13359         (web_main): Widen used for new use.  Pass it to union_defs.
13360         * df.h (union_defs): Adjust prototype.
13361
13362 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
13363
13364         PR debug/42630
13365         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
13366         uses in new incoming argument.  Free body.
13367         (reset_debug_uses_in_loop): New.
13368         (analyze_insn_to_expand_var): Call the latter if the former found
13369         anything.  Fix whitespace.  Reject invalid dest overlaps before
13370         going through all insns in the loop.
13371
13372 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
13373
13374         PR debug/42629
13375         * haifa-sched.c (dying_use_p): Debug insns don't count.
13376
13377 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
13378
13379         PR middle-end/42363
13380         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
13381         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
13382         (verify_gimple_call): Reject LHS in noreturn calls.
13383
13384 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
13385
13386         PR debug/42604
13387         PR debug/42395
13388         * tree-vect-loop-manip.c (adjust_info): New type.
13389         (adjust_vec): New pointer to vector.
13390         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
13391         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
13392         (slpeel_update_phis_for_duplicate_loop): Use them.
13393         (slpeel_update_phi_nodes_for_guard1): Likewise.
13394         (slpeel_update_phi_nodes_for_guard2): Likewise.
13395         (slpeel_tree_peel_loop_to_edge): Likewise.
13396         (vect_update_ivs_after_vectorizer): Likewise.
13397
13398 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
13399
13400         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
13401         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13402
13403 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
13404
13405         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
13406         bogus uninitialized warning.
13407
13408 2010-01-09  Richard Guenther  <rguenther@suse.de>
13409
13410         PR middle-end/42512
13411         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
13412         the evolution is compatible with the initial condition.
13413
13414 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
13415
13416         * gcc.c (process_command): Update copyright notice dates.
13417         * gcov.c (print_version): Likewise.
13418         * gcov-dump.c (print_version): Likewise.
13419         * mips-tfile.c (main): Likewise.
13420         * mips-tdump.c (main): Likewise.
13421
13422 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
13423
13424         PR target/41885
13425         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
13426         (rotlhi3): Delete.
13427         (rotlhi3_8): Delete.
13428         (rotlsi3): Delete.
13429         (rotlsi3_8): Delete.
13430         (rotlsi3_16): Delete.
13431         (rotlsi3_24): Delete.
13432         (rotl<mode>3): New.
13433         (*rotw<mode>3): New.
13434         (*rotb<mode>3): New.
13435         * config/avr/avr.c (avr_rotate_bytes): New function.
13436         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
13437
13438 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
13439
13440         PR target/37454
13441         * configure.ac: Modify -rdynamic check.
13442         * configure: Regenerate.
13443
13444 2010-01-08  DJ Delorie  <dj@redhat.com>
13445
13446         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
13447         register popping order.
13448
13449 2010-01-08  Richard Guenther  <rguenther@suse.de>
13450
13451         PR lto/42528
13452         * c.opt (fsigned-char): Also let LTO handle this option.
13453         (funsigned-char): Likewise.
13454
13455 2010-01-07  Richard Guenther  <rguenther@suse.de>
13456
13457         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
13458         (gimple_op): Likewise.
13459         (gimple_op_ptr): Likewise.
13460         (gimple_assign_set_lhs): Remove gcc_assert.
13461         (gimple_assign_set_rhs1): Likewise.
13462         (gimple_assign_set_rhs2): Likewise.
13463         (gimple_call_set_lhs): Likewise.
13464         (gimple_call_set_fn): Likewise.
13465         (gimple_call_set_fndecl): Likewise.
13466         (gimple_call_fndecl): Likewise.
13467         (gimple_call_return_type): Likewise.
13468         (gimple_call_set_chain): Likewise.
13469         (gimple_call_num_args): Likewise.
13470         (gimple_call_set_arg): Likewise.
13471         (gimple_cond_set_code): Likewise.
13472         (gimple_cond_set_lhs): Likewise.
13473         (gimple_cond_set_rhs): Likewise.
13474         (gimple_cond_set_true_label): Likewise.
13475         (gimple_cond_set_false_label): Likewise.
13476         (gimple_label_set_label): Likewise.
13477         (gimple_goto_set_dest): Likewise.
13478         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
13479         (gimple_debug_bind_get_value): Likewise.
13480         (gimple_debug_bind_get_value_ptr): Likewise.
13481         (gimple_debug_bind_set_var): Likewise.
13482         (gimple_debug_bind_set_value): Likewise.
13483         (gimple_debug_bind_reset_value): Likewise.
13484         (gimple_debug_bind_has_value_p): Likewise.
13485         (gimple_return_retval_ptr): Remove gcc_assert.
13486         (gimple_return_retval): Likewise.
13487         (gimple_return_set_retval): Likewise.
13488         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
13489         (safe_referenced_var_iterator): Remove.
13490         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
13491         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
13492         (fill_referenced_var_vec): Remove.
13493         (first_readonly_imm_use): Remove redundant gcc_assert.
13494         (phi_arg_index_from_use): Combine gcc_asserts.
13495         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
13496         (first_imm_use_stmt): Remove redundant gcc_assert.
13497         * tree-cfg.c (verify_gimple_call): Verify function and chain
13498         operands.  Verify arguments.
13499         (verify_types_in_gimple_stmt): Verify condition code and labels.
13500
13501 2010-01-07  Richard Guenther  <rguenther@suse.de>
13502
13503         PR tree-optimization/42641
13504         * sese.c (rename_map_elt_info): Use the SSA name version, do
13505         not hash pointers.
13506
13507 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
13508
13509         PR tree-optimization/42625
13510         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
13511         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
13512
13513 2010-01-07  Duncan Sands  <baldrick@free.fr>
13514
13515         * Makefile.in (PLUGIN_HEADERS): Add version.h.
13516
13517 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
13518
13519         PR target/42511
13520         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
13521         note itself is not function_invariant_p.
13522
13523 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
13524
13525         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
13526         Do not add the DF_NOTE problem.
13527         * store-motion.c (execute_rtl_store_motion): Likewise.
13528
13529 2010-01-07  Martin Jambor  <mjambor@suse.cz>
13530
13531         PR tree-optimization/42157
13532         * tree-sra.c (compare_access_positions): Stabilize sort if both
13533         accesses have integer types, return zero immediately if they are the
13534         same.
13535
13536 2010-01-06  Richard Henderson  <rth@redhat.com>
13537
13538         PR middle-end/41883
13539         * haifa-sched.c (add_to_note_list): Merge into ...
13540         (concat_note_lists): ... here, and ...
13541         (unlink_other_notes, rm_other_notes): Merge into...
13542         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
13543         NOTE_INSN_EPILOGUE_BEG.
13544
13545 2010-01-06  Richard Guenther  <rguenther@suse.de>
13546
13547         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
13548         not inline regular functions into always-inline functions.
13549
13550 2010-01-06  Nick Clifton  <nickc@redhat.com>
13551
13552         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
13553         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
13554         used together.
13555         (OVERRIDE_OPTIONS): Delete.
13556         (OPTIMIZATION_OPTIONS): Define.
13557         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
13558         * config/rx/rx.c (rx_handle_option): Issue an error message if
13559         -mcpu=rx200 and -fpu are used together.
13560         (rx_set_optimization_options): New function.  Issue an error
13561         message if an optimization attribute attempts to reset the FPU/
13562         math optimization pairing.
13563         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
13564         * config/rx/rx.opt: Set the default to 32-bit doubles.
13565         * config/rx/t-rx: Add multilibs for -nofpu option.
13566         * doc/invoke.texi: Update documentation of RX options.
13567
13568 2010-01-06  Richard Guenther  <rguenther@suse.de>
13569
13570         * tree-ssa-pre.c (name_to_id): New global.
13571         (alloc_expression_id): Simplify SSA name handling.
13572         (lookup_expression_id): Likewise.
13573         (init_pre): Zero name_to_id.
13574         (fini_pre): Free it.
13575
13576 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
13577
13578         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
13579
13580 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
13581
13582         PR target/42542
13583         * config/i386/sse.md (smaxv2di3): New.
13584         (umaxv2di3): Likewise.
13585         (sminv2di3): Likewise.
13586         (uminv2di3): Likewise.
13587
13588 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13589
13590         PR target/42564
13591         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
13592         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
13593         (legitimize_tls_address): Likewise.
13594         (sparc_tls_referenced_p): Likewise.
13595         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
13596         and adjust calls to legitimize_pic_address.
13597         (legitimate_constant_p) Use sparc_tls_referenced_p.
13598         (legitimate_pic_operand_p): Likewise.
13599         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
13600         (sparc_tls_symbol_ref_1): Delete.
13601         (sparc_tls_referenced_p): Make static, recognize specific patterns.
13602         (legitimize_tls_address): Make static, handle CONST patterns.
13603         (legitimize_pic_address): Make static, remove unused parameter and
13604         adjust recursive calls.
13605         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
13606         and adjust call to legitimize_pic_address.
13607         (sparc_output_mi_thunk): Likewise.
13608
13609 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
13610             H.J. Lu  <hongjiu.lu@intel.com>
13611
13612         PR target/42542
13613         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
13614         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
13615         operands to make them signed.
13616
13617         Revert:
13618         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13619
13620         PR target/42542
13621         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
13622         GTU to GT for V4SI and V2DI.
13623
13624         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
13625         (umin<mode>3): Removed.
13626         (uminv8hi3): New.
13627         (uminv4si3): Likewise.
13628
13629 2010-01-05  Martin Jambor  <mjambor@suse.cz>
13630
13631         PR tree-optimization/42462
13632         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
13633         current_function_decl to helper functions and macros.
13634
13635 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13636
13637         PR bootstrap/41771
13638         * flags.h: Don't include real.h.
13639         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
13640         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
13641         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
13642         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
13643         * dominance.c: Update copyright.
13644         * gimple.c (walk_gimple_op): Remove inline.
13645         * tree-ssa-reassoc.c: Include real.h.
13646         * Makefile.in (FLAGS_H): Remove $(REAL_H).
13647         (tree-ssa-reassoc.o): Depend on $(REAL_H).
13648
13649 2010-01-05  Nick Clifton  <nickc@redhat.com>
13650
13651         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
13652         register to push into the stack frame when the accumulator has to
13653         be saved during interrupts.
13654
13655 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
13656
13657         * doc/invoke.texi: Remove the documentation about option
13658         -Wunreachable-code.
13659         * common.opt (Wunreachable-code):  Preserved for backward
13660         compatibility.
13661         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
13662         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
13663         the backward compatibility flag section.
13664
13665 2010-01-05  Richard Guenther  <rguenther@suse.de>
13666
13667         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
13668
13669 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
13670
13671         PR other/42611
13672         * cfgexpand.c (expand_one_var): Diagnose too large variables.
13673
13674         PR tree-optimization/42508
13675         * tree-sra.c (convert_callers): Check for recursive call
13676         by comparing cgraph nodes instead of decls.
13677         (modify_function): Call ipa_modify_formal_parameters also
13678         on all same_body aliases.
13679
13680         * cgraphunit.c (cgraph_materialize_all_clones): Compare
13681         cgraph nodes when checking for same_body aliases.
13682
13683 2010-01-05  Richard Guenther  <rguenther@suse.de>
13684
13685         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
13686         allocation and lookup.
13687         (get_or_alloc_expr_for_constant): Likewise.
13688         (phi_translate): Sink allocation.
13689
13690 2010-01-04  Richard Guenther  <rguenther@suse.de>
13691
13692         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
13693         a new entry only if needed.
13694         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
13695         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
13696         hashtable lookup.
13697         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
13698         the result array.
13699         (phi_translate): Handle CONSTANTs early.
13700
13701 2010-01-04  Martin Jambor  <mjambor@suse.cz>
13702
13703         PR tree-optimization/42398
13704         * tree-sra.c (struct access): Removed flag grp_different_types.
13705         (dump_access): Do not dump the removed flag.
13706         (sort_and_splice_var_accesses): Do not set the removed flag.
13707         (sra_modify_expr): Check for type compatibility directly.
13708
13709 2010-01-04  Martin Jambor  <mjambor@suse.cz>
13710
13711         PR tree-optimization/42366
13712         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
13713         edges with variable number of parameters.
13714         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
13715         flag instead of asserting it.
13716         (ipa_read_node_info): Read uses_analysis_done flag.
13717
13718 2010-01-04  Richard Guenther  <rguenther@suse.de>
13719
13720         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
13721         iterative_hash_* as intended.
13722         (vn_reference_compute_hash): Likewise.  Simplify hashing
13723         SSA names.
13724         (vn_reference_lookup_2): Likewise.
13725         (vn_nary_op_compute_hash): Likewise.
13726         (vn_phi_compute_hash): Likewise.
13727         (expressions_equal_p): Remove strange code.
13728         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
13729         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
13730         (bitmap_insert_into_set_1): Take value-id as parameter.
13731         (add_to_value): Pass it.
13732         (bitmap_insert_into_set): Likewise.
13733         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
13734
13735 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
13736
13737         PR driver/42442
13738         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
13739         (do_self_spec): For switches with SWITCH_IGNORE set set also
13740         SWITCH_IGNORE_PERMANENTLY.
13741         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
13742         of SWITCH_IGNORE.
13743
13744 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
13745
13746         * lto-streamer-out.c (output_unreferenced_globals): Output the full
13747         tree of an unreferenced global var.
13748
13749 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13750
13751         PR target/42542
13752         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
13753         GTU to GT for V4SI and V2DI.
13754
13755         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
13756         (umin<mode>3): Removed.
13757         (uminv8hi3): New.
13758         (uminv4si3): Likewise.
13759
13760 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13761
13762         PR lto/42581
13763         * collect2.c (main): Turn on trace in collect2 if -v is passed
13764         to gcc with LTO.
13765
13766 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
13767
13768         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
13769         description of expression operand.
13770
13771 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
13772
13773         * configure.ac: Add install-html to target_list for Make-hooks.
13774         * configure: Regenerate.
13775         * fortran/Make-lang.in (F95_HTMLFILES): New.
13776         (fortran.html): Use it.
13777         (fortran.install-html): New.
13778         * Makefile.in (install-html): Add lang.install-html.
13779         * java/Make-lang.in (JAVA_HTMLFILES): New.
13780         (java.html): Use it.
13781         (java.install-html): New.
13782         * objc/Make-lang.in (objc.install-html): New.
13783         * objcp/Make-lang.in (obj-c++.install-html): New.
13784         * cp/Make-lang.in (c++.install-html): New.
13785         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
13786         * lto/Make-lang.in (lto.install-html): New.
13787
13788 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13789
13790         PR lto/42520
13791         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
13792
13793 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
13794
13795         PR rtl-optimization/41862
13796         * store-motion.c (store_killed_in_insn, compute_store_table,
13797         remove_reachable_equiv_notes, replace_store_insn,
13798         build_store_vectors): Ignore all DEBUG_INSNs.
13799
13800 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13801
13802         PR lto/41564
13803         * common.opt: Add dumpdir.
13804
13805         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
13806         isn't specified.
13807         (option_map): Add --dumpdir.
13808
13809         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
13810
13811         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
13812
13813         * opts.c (decode_options): Try dump_dir_name first if
13814         dump_base_name isn't an absolute path.
13815         (common_handle_option): Handle OPT_dumpdir.
13816
13817         * toplev.c (dump_dir_name): New.
13818         (print_switch_values): Also ignore -dumpdir.
13819
13820         * toplev.h (dump_dir_name): New.
13821
13822 2010-01-03  Richard Guenther  <rguenther@suse.de>
13823
13824         PR tree-optimization/42589
13825         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
13826         double-word expansion of bswap32.
13827
13828 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
13829
13830         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
13831         with BLOCK_FOR_INSN.
13832         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
13833         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
13834         noce_process_if_block): Likewise.
13835         * gcse.c (compute_local_properties, insert_expr_in_table,
13836         insert_set_in_table, canon_list_insert, find_avail_set,
13837         pre_insert_copy_insn): Likewise.
13838
13839         * basic-block.h (BLOCK_NUM): Move from here...
13840         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
13841
13842 2010-01-03  Richard Guenther  <rguenther@suse.de>
13843
13844         PR tree-optimization/42438
13845         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
13846         contains_may_not_return_call flag.
13847         (BB_MAY_NOTRETURN): New.
13848         (valid_in_sets): Trapping nary operations are not valid
13849         in blocks that may not return.
13850         (insert_into_preds_of_block): Remove check for trapping expressions.
13851         (compute_avail): Compute also BB_MAY_NOTRETURN.
13852
13853 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
13854
13855         * doc/invoke.texi: Add 2010 to copyright years.
13856
13857 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13858
13859         * config/sparc/sparc.c: Fix formatting nits.
13860
13861 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
13862             Alexander Monakov  <amonakov@ispras.ru>
13863
13864         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
13865
13866 2010-01-02  Richard Guenther  <rguenther@suse.de>
13867
13868         PR middle-end/42577
13869         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
13870         (simplify_switch_using_ranges): Mark to be removed edges
13871         as non-executable.
13872
13873 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13874
13875         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
13876
13877         * collect2.c (scan_libraries): Add missing argument in call to
13878         scan_prog_file.
13879
13880 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
13881
13882         PR target/42448
13883         * config/alpha/predicates.md (aligned_memory_operand): Return false
13884         for CQImode.
13885         (unaligned_memory_operand): Return true for CQImode.
13886         * config/alpha/alpha.c (get_aligned_mem): Assert that location
13887         doesn not cross aligned SImode word boundary.
13888
13889 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
13890
13891         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
13892         Remove.
13893         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
13894         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
13895
13896 2010-01-02  Richard Guenther  <rguenther@suse.de>
13897
13898         PR lto/41597
13899         * toplev.c (compile_file): Emit LTO marker properly.  Change
13900         it to __gnu_lto_v1.
13901         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
13902
13903 2010-01-01  Richard Guenther  <rguenther@suse.de>
13904
13905         PR debug/42455
13906         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
13907
13908 2010-01-01  Richard Guenther  <rguenther@suse.de>
13909
13910         PR c/42570
13911         * c-decl.c (grokdeclarator): For zero-size arrays force
13912         structural equality checks as layout_type does.
13913
13914 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
13915
13916         * builtins.c: Update copyright to 2010.
13917
13918 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
13919
13920         PR lto/42531
13921         * lto-streamer-out.c (produce_asm): Revert the last change.
13922         (copy_function): Likewise.
13923
13924         * lto-streamer.c (lto_get_section_name): Skip any leading
13925         asterisk in name.
13926
13927 2010-01-01  Richard Guenther  <rguenther@suse.de>
13928
13929         PR middle-end/42559
13930         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
13931         for LABEL_DECLs.
13932
13933 \f
13934 Copyright (C) 2010 Free Software Foundation, Inc.
13935
13936 Copying and distribution of this file, with or without modification,
13937 are permitted in any medium without royalty provided the copyright
13938 notice and this notice are preserved.