OSDN Git Service

a87a41da66abfa49d827becbc5f6899cd6021164
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-06-01  Jan Hubicka  <jh@suse.cz>
2
3         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
4
5 2010-06-01  Jan Hubicka  <jh@suse.cz>
6
7         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
8         remove return value.
9         (split_bbs_on_noreturn_calls) .... here.
10         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11         * tree-flow.h (fixup_noreturn_call): New.
12
13 2010-06-01  Jan Hubicka  <jh@suse.cz>
14
15         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
16
17 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
18
19         * tree.h (build_nt_call_list): Delete.
20         * tree.c (build_nt_call_list): Delete.
21
22 2010-06-01  Jan Hubicka  <jh@suse.cz>
23
24         * fwprop.c: Make emit-rtl.h include last.
25         * rtlanal.c: Include emit-rtl.h.
26         * genautomata.c: Output emit-rtl include into insn-automata.c
27         * df-scan.c: Include emit-rtl.h.
28         * haifa-sched.c: Indlude emit-rtl.h.
29         * mode-switching.c: Indlude emit-rtl.h.
30         * graph.c: Indlude emit-rtl.h.
31         * sel-sched.c: Include emit-rtl.h.
32         * sel-sched-ir.c: Include emit-rtl.h.
33         * ira-build.c: Include emit-rtl.h.
34         * emit-rtl.c: (first_insn, last_insn): Remove defines.
35         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
36         Move to emit-rtl.h.
37         (set_new_first_and_last_insn, get_last_insn_anywhere, get_first_nonnote_insn,
38         get_last_nonnote_insn, try_split, make_call_insn_raw, add_insn_after,
39         add_insn_before, remove_insn, delete_insns_since, reorder_insns_nobb,
40         emit_insn_after_1, emit_debug_insn_before, emit_insn, start_sequence,
41         push_to_sequence, push_to_sequence2, push_topmost_sequence, end_sequence,
42         copy_insn): Use accessor functions.
43         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
44          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
45         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
46         mem_expr_equal_p): Move here from rtl.h
47         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
48         Move here from emit-rtl.c; make inline.
49         * cfglayout.h: Include emit-rtl.h
50         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
51          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
52         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
53         mem_expr_equal_p, get_insns, set_first-insn, get_last_insn, set_last_insn,
54         get_max_uid): Move to emit-rtl.h.
55         * reg-stack.c: Include emit-rtl.h
56         * dce.c: Likewise.
57
58 2010-06-01  Jan Hubicka  <jh@suse.cz>
59
60         * cgraph.h (tree_function_versioning): Update prototype.
61         (cgraph_function_versioning): Update prototype.
62         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
63         bitmap.
64         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy. 
65         (cgraph_materialize_clone, save_inline_function_body): Update use of
66         tree_function_versioning.
67         * tree-inline.c (copy_bb): Look for previous copied block to link after;
68         fix debug output.
69         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
70         (copy_body): Likewise.
71         (expand_call_inline): Update use of copy_body.
72         (tree_function_versioning): Update use of copy body; accept
73         blocks_to_copy and new_entry.
74
75 2010-06-01  Jan Hubicka  <jh@suse.cz>
76
77         * gegenrtl.c: Remove unnecesary prototypes.
78         (gendecl): Remove.
79         (gendef): Produce static inline.
80         (gencode): Remove.
81         (main): Do not decode parameters; generate header only.
82         * Makefile.in (genrtl.c): Remove.
83
84 2010-06-01  Jan Hubicka  <jh@suse.cz>
85
86         * tree-switch-conversion.c (build_one_array): Make it readonly.
87
88 2010-06-01  Richard Guenther  <rguenther@suse.de>
89
90         * optabs.c (init_optabs): Guard all accesses to reinit.
91         * ipa-pure-const.c (propagate): Fix another typo.
92         * opts.c (common_handle_option): Split assignment to bool.
93         * c-opts.c (c_common_handle_option): Likewise.
94
95 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
96             Matthew Gingell  <gingell@adacore.com>
97
98         * doc/invoke.texi: Mention -fdump-ada-spec.
99         * tree-dump.c (dump_files): Add ada-spec.
100         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
101         * tree-pass.h (tree_dump_index): Add TDI_ada.
102         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
103         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
104         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
105         * c-decl.c: Include c-ada-spec.h.
106         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
107         functions.
108         (c_write_global_declarations): Add handling of -fdump-ada-spec.
109         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
110         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
111         * c-ada-spec.h, c-ada-spec.c: New files.
112
113 2010-06-01  Richard Guenther  <rguenther@suse.de>
114
115         PR lto/43853
116         * ipa-pure-const.c (get_function_state): Hand back varying state
117         if we do not have one.
118         (has_function_state): New function.
119         (duplicate_node_data): Adjust.
120         (remove_node_data): Likewise.
121         (pure_const_write_summary): Likewise.
122         (propagate): Likewise.  Fix typo.
123
124 2010-06-01  Jan Hubicka  <jh@suse.cz>
125
126         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
127         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
128         (execute_all_ipa_transforms): Do not play with the states.
129
130 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
131
132         * config/arm/t-linux-androideabi: New.
133         * config.gcc (arm*-*-linux-androideabi): Include multilib configuration.
134
135 2010-06-01  Jan Hubicka  <jh@suse.cz>
136
137         * tree-inline.c (estimate_num_insns): For stdarg functions look
138         into call statement to count cost of argument passing.
139
140 2010-06-01  Kai Tietz
141
142         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
143         argument for fprintf.
144         (ix86_output_addr_diff_elt): Likewise.
145         (x86_function_profiler): Likewise.
146         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix
147         for x64 no-underscore.
148         (LPREFIX): Likewise.
149         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
150
151 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
152
153         PR target/44338
154         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
155         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
156         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
157         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
158         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
159         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
160         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
161         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
162         TARGET_FUSED_MADD.
163
164 2010-05-31  Jan Hubicka  <jh@suse.cz>
165
166         * tree.h (tree_range_check_failed): Declare noreturn.
167
168 2010-05-31  Jan Hubicka  <jh@suse.cz>
169
170         * gimple.c (gimple_call_builtin_p): New function.
171         * gimple.h (gimple_call_builtin_p): Declare.
172         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
173         to exit.
174         (execute_warn_function_return): BUILT_IN_RETURN is return.
175         (split_critical_edges): Return edges are not critical.
176         (is_ctrl_altering_stmt): Builtin_in_return is altering.
177         (gimple_verify_flow_info): Handle built_in_return.
178         (execute_warn_function_return): Handle built_in_return.
179         * ipa-pure-const.c (check_call): Ignore builtin_return.
180
181 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
182
183         PR middle-end/44337
184         * expr.c (expand_assignment): Don't store anything for out-of-bounds
185         array accesses with non-MEM.
186
187         PR tree-optimization/44182
188         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
189         newly needs to end a bb is followed by debug stmts, instead return
190         true from the function at the end.
191         (maybe_move_debug_stmts_to_successors): New function.
192         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
193
194 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
195
196         PR target/44161
197         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
198         flag_pic.
199
200 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
201
202         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
203         for nested functions in non-optimized compilation.
204
205 2010-05-31  Richard Guenther  <rguenther@suse.de>
206
207         * tree-ssa-structalias.c (find_func_aliases): Handle
208         BUILT_IN_RETURN.
209
210 2010-05-30  Jan Hubicka  <jh@suse.cz>
211
212         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
213
214 2010-05-30  Richard Guenther  <rguenther@suse.de>
215
216         PR lto/42975
217         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
218         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
219         no longer needed.
220
221 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
222
223         * config/darwin.c (output_objc_section_asm_op): Add comment.
224         (name_needs_quotes): Add '_' to list of valid comment chars.
225         (machopic_output_function_base_name): Remove unneeded quotes.
226         (darwin_encode_section_info): Adjust asm whitespace.
227         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
228         (ASM_OUTPUT_LOCAL): Ditto.
229         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
230         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
231         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
232         
233 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
234
235         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
236         RS6000_OUTPUT_BASENAME unconditionally.
237         (rs6000_output_function_epilogue): Likewise.
238
239 2010-05-30  Jan Hubicka  <jh@suse.cz>
240
241         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
242         nodes.
243
244 2010-05-30  Richard Guenther  <rguenther@suse.de>
245
246         * tree-cfg.c (verify_gimple_assign_single): Implement
247         verification for COND_EXPR rhs.
248
249 2010-05-30  Jan Hubicka  <jh@suse.cz>
250
251         * cgraph.h (cgraph_dump_file): Declare.
252         * cgraphunit.c (cgraph_dump_file): Export.
253         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less
254         verbose.
255
256 2010-05-30  Jan Hubicka  <jh@suse.cz>
257
258         * dwarf2out.c (reference_to_unused,
259         premark_types_used_by_global_vars_helper): Avoid creation of new
260         varpool nodes.
261
262 2010-05-30  Jan Hubicka  <jh@suse.cz>
263
264         * cgraph.h (cgraph_node_cannot_return,
265         cgraph_edge_cannot_lead_to_return): New functions.
266         * cgraph.c (cgraph_node_cannot_return,
267         cgraph_edge_cannot_lead_to_return): Use them.
268         * ipa-pure-const.c (pure_const_names): New static var.
269         (check_call): Handle calls not leading to return.
270         (pure_const_read_summary): Dump info read.
271         (propagate): Dump info about propagation process; ignore side
272         effects of functions not leading to exit; fix handling of
273         pure functions.
274
275 2010-05-30  Jan Hubicka  <jh@suse.cz>
276
277         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
278         for tail call epilogues.
279
280 2010-05-30  Jan Hubicka  <jh@suse.cz>
281
282         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
283         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
284         dump files.
285
286 2010-05-29  Jan Hubicka  <jh@suse.cz>
287
288         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
289         node; remove references in node we no longer keep in cgrpah but need
290         body of.
291
292 2010-05-29  Jan Hubicka  <jh@suse.cz>
293
294         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
295
296 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
297
298         PR target/44165
299         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
300
301 2010-05-29  Jan Hubicka  <jh@suse.cz>
302
303         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
304         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
305         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
306         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
307         debug_names_replaced_by, debug_update_ssa): Likewise.   
308         * sbitmap.c (debug_sbitmap): Likewise.
309         * genrecog.c (debug_decision, debug_decision_list): Likewise.
310         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
311         debug_tree_chain): Likewise.
312         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
313         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
314         * optabs.c  (debug_optab_libfuncs): Likewise.
315         (verify_loop_closed_ssa): Likewise.
316         * value-prof.c (verify_histograms): Likewise.
317         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
318         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
319         * cfghooks.c (verify_flow_info): Likewise.
320         * fold-const.c (debug_fold_checksum): Likewise.
321         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
322         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
323         Likewise.
324         * omega.c (debug_omega_problem): Likewise.
325         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
326         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
327         * dominance.c (verify_dominators, debug_dominance_info,
328         debug_dominance_tree): Likewise.
329         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
330         * df_regno_debug, df_ref_debug,
331         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
332         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
333         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
334         * sel-sched.c (debug_state): Likewise.
335         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
336         Likewise.
337         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
338         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
339         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
340         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
341         Likewise.
342         * c-pretty-print.c (debug_c_tree): Likewise.
343         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
344         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
345         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
346         * ebitmap.c (debug_ebitmap): Likewise.
347         * function.c (debug_find_var_in_block_tree): Likewise.
348         * print-rtl.c (debug_rtx): Likewise.
349         (debug_rtx_count): Likewise.
350         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
351         * stor-layout.c (debug_rli): Likewise.
352         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
353         * tree-data-ref.c (debug_data_references,
354         debug_data_dependence_relations, debug_data_reference,
355         debug_data_dependence_relation, debug_rdg_vertex,
356         debug_rdg_component, debug_rdg): Likewise.
357         * tree-affine.c (debug_aff): Likewise.
358         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
359         Likewise.
360         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
361         * emit-rtl.c (verify_rtl_sharing): Likewise.
362         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
363         debug_value_expressions): Likewise.
364         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
365         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
366         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
367         * cfglayout.c (verify_insn_chain): Likewise.
368         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
369         debug_clast_stmt, debug_generated_program): Likewise.
370         * ggc-page.c (debug_print_page_list): Likewise.
371         * tree-ssa-ter.c (debug_ter): Likewise.
372         * graphite-dependences.c (debug_pddr): Likewise.
373         * sched-deps.c (debug_ds): Likewise.
374         * tree-ssa.c (verify_ssa): Likewise.
375         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
376         debug_scattering_functions, debug_iteration_domains, debug_pdr,
377         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
378         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
379         * tree-inline.c (debug_find_tree): Likewise.
380         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
381         debug_ppl_powerset_matrix): Likewise.
382         * var-tracking.c (debug_dv): Likewise.
383         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
384         * cfgloop.c (verify_loop_structure): Likewise.
385         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
386         * c-common.c (verify_sequence_points): Likewise.
387         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
388         debug_candidates, debug_rgn_dependencies): Likewise.
389         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
390         * debug_constraint_graph, debug_solution_for_var,
391         debug_sa_points_to_info): Likewise.
392         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
393         Likewie.
394         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
395         debug_loops, debug_loop, debug_loop_num): Likewise.
396         * passes.c (debug_pass): Likewise.
397         (dump_properties): Likewise; add cfglayout property.
398         (debug_properties): Likewise.
399         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
400         * varpool.c (debug_varpool): Likewise.
401         * regcprop.c (debug_value_data): Likewise.
402         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
403         debug_immediate_uses_for): Likewise.
404
405 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
406
407         PR bootstrap/44315
408         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
409         Filter out insn-flags.h.
410
411 2010-05-29  Jan Hubicka  <jh@suse.cz>
412
413         * cgraph.h (struct varpool_node_set_def,
414         struct cgraph_node_set_def): Remove unused AUX pointer.
415         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
416         VEC_empty macro.
417
418 2010-05-29  Jan Hubicka  <jh@suse.cz>
419
420         PR middle-end/44324
421         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
422
423 2010-05-29  Richard Guenther  <rguenther@suse.de>
424
425         * lto-streamer.c (cached_bp): New global variable.
426         (bitpack_create): Return the cached bitpack, if available.
427         (bitpack_delete): Clear and cache the bitpack, if appropriate.
428         (bp_pack_value): Remove redundant asserts.
429
430 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
431
432         PR middle-end/44306
433         * tree-if-conv.c (is_true_predicate): New.
434         (is_predicated): Use is_true_predicate.
435         (add_to_predicate_list): Same.  Do not use unshare_expr.
436         (add_to_dst_predicate_list): Same.
437
438 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
439
440         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
441         field on edges.
442         (predicate_bbs): Same.
443         (clean_predicate_lists): Same.
444         (find_phi_replacement_condition): Do not AND the predicate from
445         edge->aux.
446
447 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
448
449         PR bootstrap/44315
450         * Makefile.in (build/gencondmd.o): Add a missing `\'.
451
452 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
453
454         PR target/44261
455         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
456         (negdf2): Adjust expander pattern and use negdf2_slow.
457         (negsf2): Likewise.
458
459 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
460
461         * basic-block.h (struct control_flow_graph): Move last_label_uid field
462         up.
463         * df.h (struct df_base_ref): Move regno field up.
464         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
465         * expr.h (struct separate_ops): Move location field up.
466         * optabs.h (struct optab_d): Move libcall_basename field down.
467         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
468         * config/i386/i386.h (struct machine_function): Convert call_abi field
469         into a bitfield.  Move cfa field to the end of the structure.
470
471 2010-05-29  Jan Hubicka  <jh@suse.cz>
472
473         * varpool.c (varpool_get_node): Fix lookup.
474
475 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
476
477         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
478         RTL specific prototypes with #ifdef RTX_CODE.
479         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
480         * config/spu/t-spu-elf: Fix dependencies.
481
482         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
483
484 2010-05-29  Mike Stump  <mikestump@comcast.net>
485
486         PR bootstrap/44315
487         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
488         TM_H when building to avoid dependency loops.
489
490 2010-05-29  Jan Hubicka  <jh@suse.cz>
491
492         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
493         refs and body; not the whole node for masters of materialized
494         clones.
495
496 2010-05-29  Mike Stump  <mikestump@comcast.net>
497
498         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
499
500 2010-05-29  Jan Hubicka  <jh@suse.cz>
501
502         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
503         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
504         use of clone_function_name.
505         * cgraph.h (cgraph_create_virtual_clone, 
506         cgraph_function_versioning): update prototypes.
507         (clone_function_name): Declare.
508         * ipa-cp.c (ipcp_insert_stage): Update call of
509         cgraph_create_virtual_clone.
510         * omp-low.c (create_omp_child_function_name): Use
511         cgraph_create_virtual_clone.
512         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
513         (cgraph_function_versioning): Take SUFFIX argument; produce new name
514         and make decl local.
515
516 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
517
518         * vec.h: Include statistics.h
519         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
520         with VEC_H.
521
522 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
523
524         * c-lex.c: Do not include c-tree.h.
525         * c-pretty-print.c: Likewise.
526         * c-opts.c: Likewise.
527         * c-gimplify.c: Likewise.
528         * c-common.c: Likewise.
529         * c-dump.c: Likewise.  Include c-common.h.
530
531 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
532
533         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
534         before including diagnostic-core.h.
535         (c_cpp_error): New prototype moved from c-tree.h.
536         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
537         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
538         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
539         (c_cpp_error): Prototype moved to c-common.h.
540         * Makefile.in: Update dependency for C_COMMON_H.
541
542 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
543
544         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
545         * c-common.c (c_register_addr_space): Remove here.
546         * c-decl.c (c_register_addr_space): Re-add here.
547
548 2010-05-28  Mike Stump  <mikestump@comcast.net>
549
550         * config/darwin-c.c: Remove c-tree.h include.
551
552 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
553
554         * gcc.c: Include diagnostic.h.
555         (error_count): Remove.  All users changed to use errorcount.
556         (programname): Remove.  All users changed to use progname.
557         (fancy_abort, internal_error, fatal_error, error, warning, inform,
558         fnotice): Remove.
559         (execute): Don't include "Internal error" and bug reporting
560         information in argument of internal_error call.
561         (process_command): Don't increment error_count after calling
562         perror_with_name.
563         (input_filename): Rename to gcc_input_filename.  All users
564         changed.
565         (main): Call diagnostic_initialize.  Register delete_temp_files
566         with atexit.  Use seen_error to test for errors.
567         * gcc.h: Include diagnostic-core.h.
568         (fatal_error, error, warning): Remove.
569         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
570         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
571         (gcc.o): Update dependencies.
572
573 2010-05-28  Jeff Law  <law@redhat.com>
574
575         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
576         functions.
577         * ira.h (ira_bad_reload_regno): Declare
578         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
579
580         * ira-color.c (update_curr_costs): Free updated hard reg costs.
581         (ira_reassign_conflict_allocnos): Remove bogus asserts.
582         (allocno_reload_assign): Likewise.
583
584 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
585
586         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
587         build1_stat.
588
589 2010-05-28  Richard Guenther  <rguenther@suse.de>
590
591         PR lto/44312
592         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
593         Stream fixed-point constants mode.
594         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
595         and TYPE_PRECISION.
596         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
597         Stream fixed-point constants mode.
598         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
599         and TYPE_PRECISION.
600
601 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
602
603         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
604         only place it was called from.
605         (number_of_latch_executions): Do not return chrec_dont_know when the
606         may_be_zero is a runtime condition: instead, return a COND_EXPR
607         including the may_be_zero condition.
608         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
609         of nb_iterations.
610         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
611         COND_EXPRs.
612
613 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
614
615         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
616         generate COND_EXPRs for degenerate_phi_result.
617
618 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
619
620         PR middle-end/44293
621         * tree-if-conv.c (if_convertible_loop_p): Check the
622         if-convertibility of phi nodes in non predicated BBs.
623
624 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
625
626         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
627
628 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
629
630         PR driver/15303
631         * gcc.c (inform, warning, inform): New functions.
632         (fatal_ice): Rename to internal_error; change cmsgid parameter to
633         gmsgid.  All callers changed.
634         (notice): Rename to fnotice; add parameter fp.  All callers
635         changed.
636         (fatal_error): Rename to fatal_signal.  All users changed.
637         (fatal): Rename to fatal_error; change cmsgid parameter to
638         gmsgid.  All callers changed.
639         (process_command): Use warning instead of error for warnings.
640         (end_going_arg): Don't use _() around argument of error.
641         (do_spec_1): Use inform for message from %n specs.  Use warning
642         instead of error for warnings.
643         (main): Use inform for comparison messages.  Use warning for
644         message about unused linker input.
645         (error): Increment error_count.  Print "error: ".
646         * gcc.h (fatal): Change to fatal_error.
647         (warning): Declare.
648         * config/darwin-driver.c (darwin_default_min_version): Use warning
649         instead of fprintf for warnings.
650         * cppspec.c (lang_specific_driver): Use fatal_error instead of
651         fatal.
652
653 2010-05-28  Julian Brown  <julian@codesourcery.com>
654
655         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
656         (*thumb2_addsi3_compare0_scratch): New.
657         * config/arm/constraints.md (Pv): New.
658         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
659         for ARM mode only.
660         (*addsi3_compare0_scratch): Likewise.
661
662 2010-05-28  Jan Hubicka  <jh@suse.cz>
663
664         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
665         check.
666         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
667         only on local statics.
668
669 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
670
671         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
672
673 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
674
675         PR bootstrap/44314
676         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
677         (OPTION_GLIBC): Define.
678
679 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
680
681         PR debug/41048
682         * dwarf2out.c (double_int_type_size_in_bits): New function.
683         (round_up_to_align): Change first argument and return value to
684         double_int.
685         (field_byte_offset): Work internally on double_ints.
686
687         PR target/43636
688         * builtins.c (expand_movstr): Use a temporary pseudo instead
689         of target even when target is not NULL and not const0_rtx, but
690         fails movstr predicate.
691         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
692
693 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
694
695         * final.c (rest_of_clean_state): Use %m in errors instead of
696         strerror (errno).
697         * gengtype.c (read_input_list, close_output_files): Use xstrerror
698         instead of strerror.
699         * toplev.c (process_options): Use %m in errors instead of strerror
700         (errno).
701         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
702         (errno).
703
704 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
705
706         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
707         (ix86_canonical_va_list_type): Make static.  Add declaration.
708         (ix86_enum_va_list): Make static.  Reindent.
709         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
710         (ix86_canonical_va_list_type): Ditto.
711         (ix86_enum_va_list): Ditto.
712
713 2010-05-28  Richard Guenther  <rguenther@suse.de>
714
715         * lto-wrapper.c (run_gcc): With -save-temps generate a
716         user-visible ltrans filename.  Fixup ltrans unit numbering.
717
718 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
719
720         * c-common.c (c_common_nodes_and_builtins): Replace use
721         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
722         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
723         to ix86_enum_va_list.
724         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
725         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
726         (TARGET_ENUM_VA_LIST_P): Add hook description.
727         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
728         * target.h (gcc_target): Add enum_va_list hook.
729
730         PR bootstrap/44299
731         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
732         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
733         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
734
735 2010-05-28  Alan Modra  <amodra@gmail.com>
736
737         PR target/44266
738         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
739         emit_library_call machinery to set up __tls_get_addr calls.
740
741 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
742
743         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
744
745 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
746
747         Revert fix for PR c++/44188
748         * c-common.c (is_typedef_decl): Revert the moving of  this
749         definition ...
750         * tree.c (is_typedef_decl): ... here.
751         (typdef_variant_p): Revert the moving of this  definition
752         here from gcc/cp/tree.c.
753         * c-common.h (is_typedef_decl): Revert the moving of this
754         declaration ...
755         * tree.h (is_typedef_decl): ... here.
756         (typedef_variant_p): Revert the moving of this  declaration here
757         from gcc/cp/cp-tree.h
758         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
759         (gen_tagged_type_die): Revert the splitting out of ...
760         (gen_type_die_with_usage): ... this function. Revert the anonymous
761         tagged type handling.
762         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
763         typedefs naming anonymous tagged types.
764
765 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
766
767         * config/rs6000/rs6000-modes.def (PSImode): Delete.
768
769 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
770
771         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
772         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
773         throughout.
774         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
775         "xer" to "ca".
776         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
777         XER_REGS to CA_REGS throughout.
778         * config/rs6000/rs6000.h: Same.
779         (ADDITIONAL_REGISTER_NAMES): Add "xer".
780         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
781         that mode_iterator "P" is the size for arithmetic carries as well.
782         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
783
784 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
785
786         PR bootstrap/44255
787         * combine.c (struct rtx_subst_pair): Define unconditionally.
788         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
789         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
790         Call make_compound_operation on pair->to.
791         (propagate_for_debug): Don't call make_compound_operation here.
792         Always use simplify_replace_fn_rtx.
793
794 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
795
796         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
797         * config/xtensa/xtensa.c (override_options): Check
798           TARGET_FORCE_NO_PIC and set flag_pic.
799         * config/xtensa/xtensa.opt: Document -mforce-no-pic
800
801 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
802
803         PR bootstrap/44299
804         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
805         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
806
807 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
808
809         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
810         toplev.h.
811         * diagnostic.c: Don't include toplev.h.
812         (progname): Define.  Moved from toplev.c.
813         (seen_error): New function.
814         * diagnostic.h: Include diagnostic-core.h.
815         (diagnostic_t, emit_diagnostic): Don't declare here.
816         * toplev.c (progname): Move to toplev.c.
817         (emit_debug_global_declarations, compile_file, finalize,
818         do_compile, toplev_main): Use seen_error.
819         * toplev.h: Include diagnostic-core.h.
820         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
821         internal_error, warning, warning_at, error, error_n, error_at,
822         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
823         verbatim, fnotice, progname): Move to diagnostic-core.h.
824         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
825         (expand_builtin_expect): Use seen_error.
826         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
827         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
828         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
829         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
830         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
831         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
832         errorcount for errors.
833         * c-opts.c (c_common_finish): Use seen_error.
834         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
835         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
836         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
837         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
838         (get_coverage_counts): Use seen_error.
839         * dwarf2out.c (dwarf2out_finish): Use seen_error.
840         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
841         gimplify_body): Use seen_error.
842         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
843         * ipa-pure-const.c (gate_pure_const): Use seen_error.
844         * ipa-reference.c (gate_reference): Use seen_error.
845         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
846         * lambda-code.c: Include diagnostic-core.h instead of
847         diagnostic.h.
848         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
849         * lto-compress.c: Include diagnostic-core.h instead of
850         diagnostic.h.
851         * lto-section-in.c: Include diagnostic-core.h instead of
852         diagnostic.h.
853         * lto-streamer-out.c: Include diagnostic-core.h instead of
854         diagnostic.h.
855         * lto-streamer.c: Include diagnostic-core.h instead of
856         diagnostic.h.
857         (gate_lto_out): Use seen_error.
858         * matrix-reorg.c: Include diagnostic-core.h instead of
859         diagnostic.h.
860         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
861         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
862         (gate_expand_omp, lower_omp_1): Use seen_error.
863         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
864         (rest_of_decl_compilation, rest_of_type_compilation,
865         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
866         * tree-cfg.c (label_to_block_fn): Use seen_error.
867         * tree-inline.c (optimize_inline_calls): Use seen_error.
868         * tree-mudflap.c (mudflap_finish_file): Use
869         seen_error.
870         * tree-optimize.c (gate_all_optimizations,
871         gate_all_early_local_passes, gate_all_early_optimizations): Use
872         seen_error.
873         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
874         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
875         (varpool_remove_unreferenced_decls,
876         varpool_assemble_pending_decls): Use seen_error.
877         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
878         (TOPLEV_H, DIAGNOSTIC_H): Update.
879         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
880         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
881         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
882         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
883         coverage.o, lambda-code.o): Update dependencies.
884
885 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
886
887         PR c++/44188
888         * c-common.c (is_typedef_decl): Move this definition ...
889         * tree.c (is_typedef_decl): ... here.
890         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
891         * c-common.h (is_typedef_decl): Move this declaration ...
892         * tree.h (is_typedef_decl): ... here.
893         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
894         * dwarf2out.c (is_naming_typedef_decl): New function.
895         (gen_tagged_type_die): Split out of ...
896         (gen_type_die_with_usage): ... this function. When an anonymous
897         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
898         is emitted for the typedef.
899         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
900         anonymous tagged types.
901
902 2010-05-27  Jason Merrill  <jason@redhat.com>
903
904         * print-tree.c (debug_vec_tree): New fn.
905         (print_vec_tree): New fn.
906         * tree.h: Declare them.
907         * gdbinit.in (pvt): New command.
908
909         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
910
911         * gdbinit.in (pdd): New command.
912
913 2010-05-27  Jan Hubicka  <jh@suse.cz>
914
915         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
916         (update_caller_keys): Return early if there are no callers;
917         only update fibheap when decresing the key.
918         (update_callee_keys): Avoid recursion.
919         (decide_inlining_of_small_functions): When badness does not match;
920         re-insert into fibheap.
921
922 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
923
924         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
925         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
926         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
927         (ALL_HOST_OBJS): Now a union of the above two.
928         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
929         all files in ALL_HOST_FRONTEND_OBJS.
930         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
931
932         * c-common.c: Pretend to be a backend file by undefining
933         IN_GCC_FRONTEND (still need rtl.h here).
934
935 2010-05-27  Jan Hubicka  <jh@suse.cz>
936
937         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
938         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
939
940 2010-05-27  Jan Hubicka  <jh@suse.cz>
941
942         * sched-ebb.c: Rename struct deps to struct deps_desc.
943         * ddg.c: Likewise.
944         * sel-sched-ir.c: Likewise.
945         * sched-deps.c: Likewise.
946         * sched-int.h: Likewise.
947         * sched-rgn.c: Likewise.
948
949 2010-05-27  Jon Beniston <jon@beniston.com>
950
951         PR 43726
952         * config/lm32/lm32.h: Remove definition of 
953         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
954
955 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
956
957         PR lto/44230
958         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
959
960 2010-05-27  Richard Guenther  <rguenther@suse.de>
961
962         PR tree-optimization/44284
963         * tree-vect-stmts.c (vectorizable_assignment): Handle
964         sign-changing conversions as simple copy.
965
966 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
967
968         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
969         Bionic C library.
970         (__gthread_active_p): Check for pthread_create if compiling against
971         Bionic C library.
972
973 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
974
975         Support compilation for Android platform.  Reimplement -mandroid.
976
977         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
978         (*android*): Set ANDROID_DEFAULT.
979         (arm*-*-linux*): Include linux-android.h.
980         (arm*-*-eabi*): Don't include previous -mandroid implementation.
981         * config/arm/eabi.h: Remove, move Android-specific parts ...
982         * config/linux-android.h: ... here.  New file.
983         * config/arm/eabi.opt: Rename to ...
984         * config/linux-android.opt: ... this.
985         (mandroid): Allow -mno-android option.  Initialize based on
986         ANDROID_DEFAULT.
987         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
988         Move logic to corresponding LINUX_TARGET_* macros.
989         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
990         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
991         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
992         Android definitions.
993         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
994         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
995         Document.
996
997 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
998
999         Add support for Bionic C library
1000
1001         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
1002         macro.
1003         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
1004         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
1005
1006         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
1007         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
1008         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
1009         to support multiple C libraries.  Handle Bionic.
1010         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
1011         (BIONIC_DYNAMIC_LINKER64): Define.
1012         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
1013         Update.
1014         (TARGET_HAS_SINCOS): Enable for Bionic.
1015
1016         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
1017         the last option specified on command line take effect.
1018         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
1019         (mbionic): New.
1020         (mglibc, muclibc): Update.
1021
1022         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
1023         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
1024         DEFAULT_LIBC.
1025
1026         * doc/invoke.texi (-mglibc, -muclibc): Update.
1027         (-mbionic): Document.
1028
1029 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1030
1031         * c-common.h (c_register_addr_space): Add prototype.
1032         (ADDR_SPACE_KEYWORD): Remove.
1033         * c-common.c (c_register_addr_space): New function.
1034         (c_addr_space_name): Reimplement.
1035         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
1036
1037         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
1038         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
1039
1040         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
1041         Remove TARGET_ADDR_SPACE_KEYWORDS.
1042
1043 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
1044
1045         * input.c: New file.
1046         * input.h (main_input_filename): Move declaration to toplev.h.
1047         * toplev.c (input_location, line_table): Move to input.c
1048         * toplev.h (main_input_filename): Move declaration from input.h.
1049         * tree.c (expand_location): Move to input.c.
1050         * Makefile.in (OBJS-common): Add input.o.
1051         (input.o): Add dependencies.
1052
1053 2010-05-27  Richard Guenther  <rguenther@suse.de>
1054
1055         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
1056         for non-existant files.
1057         (fork_execute): Mark args_name file as deleted.
1058
1059 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
1060
1061         PR bootstrp/44287
1062         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
1063         (narrow_signed_type): Likewise.
1064
1065 2010-05-26  Jan Hubicka  <jh@suse.cz>
1066
1067         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
1068         edge only when checking is enabled; check using former_clone_of;
1069         check inline clones too.
1070         (cgraph_materialize_clone): Record former_clone_of pointer.
1071         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
1072         combining redirections; dump args_to_skip bitmap
1073         (cgraph_materialize_all_clones): Do no redirection here.
1074         * ipa-inline.c (inline_transform): Do redirection here.
1075         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
1076         cheking only).
1077
1078 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1079
1080         * config/avr/avr-c.c: Do not include regs.h.
1081         Include cpplib.h for cpp_define and tree.h for c-common.h.
1082         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
1083         * config/avr/t-avr: Fix dependencies for avr-c.o.
1084
1085 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1086
1087         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
1088         string instead of SYMBOL_REF rtx.
1089         * rtl.h (set_stack_check_libfunc): Move prototype from here...
1090         * libfuncs.h: ...to here.  Adjust for explow.c change.
1091
1092 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
1093
1094         * pretty-print.c: Don't include ggc.h.
1095         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
1096         (identifier_to_locale): Use them for allocation.
1097         * pretty-print.h (identifier_to_locale_alloc,
1098         identifier_to_locale_free): Declare.
1099         * toplev.c (alloc_for_identifier_to_locale): New.
1100         (general_init): Set identifier_to_locale_alloc and
1101         identifier_to_locale_free.
1102         * Makefile.in (pretty-print.o): Update dependencies.
1103
1104 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1105
1106         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
1107         pointer types if they have different alignment or mode.
1108
1109 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
1110
1111         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1112         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1113         * config/sparc/sparc-protos.h (function_value): Remove declaration.
1114         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
1115         sparc_function_value_regno_p): New functions.
1116         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1117         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1118         (function_value): Rename to...
1119         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
1120         argument to 'outgoing'.
1121         (function_arg_record_value, function_arg_union_value,
1122         function_arg_vector_value): Update comment.
1123
1124 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1125
1126         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
1127         (fde_needed_for_eh_p): New predicate.
1128         (output_call_frame_info): Use it throughout to decide whether FDEs
1129         are needed for EH purpose.
1130         (dwarf2out_begin_prologue): Reorder assignments.
1131
1132 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1133
1134         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
1135         special case loop->header.
1136         (is_predicated): New.
1137         (if_convertible_loop_p): Call it.
1138
1139 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1140
1141         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
1142         iterator in parameter.  Do not generate code during the analysis.
1143         (tree_if_convert_cond_stmt): Removed.
1144         (tree_if_convert_stmt): Removed.
1145         (predicate_bbs): New.
1146         (if_convertible_loop_p): Call predicate_bbs.
1147         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
1148         now contains all the analysis part.
1149
1150 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1151
1152         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
1153         statements in the analysis part.
1154         (tree_if_convert_stmt): Update comment.
1155         (remove_conditions_and_labels): New.
1156         (combine_blocks): Call remove_conditions_and_labels.
1157         (tree_if_conversion): Update comment.
1158
1159 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1160
1161         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
1162         than 2 predecessors or more than 2 successors.
1163
1164 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1165
1166         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
1167         of loops in which the data dependence analysis fails.
1168
1169 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1170
1171         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
1172         CDI_POST_DOMINATORS.
1173         (tree_if_conversion): Same.
1174
1175 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1176
1177         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
1178
1179 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1180
1181         * tree-if-conv.c: Update copyright years.  Fix comments.
1182         Fix indentation.
1183
1184 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
1185
1186         * builtin-types.def (BT_INT128): New primitive type.
1187         (BT_UINT128): Likewise.
1188         * c-common.c (c_common_r): Add __int128 keyword.
1189         (c_common_type_for_size): Handle __int128.
1190         (c_common_type_for_mode): Likewise.
1191         (c_common_signed_or_unsigned_type): Likewise.
1192         (c_common_nodes_and_builtins): Add builtin type
1193         if target supports 128-bit integer scalar.
1194         * c-common.h (enum rid): Add RID_INT128.
1195         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
1196         if target supports 128-bit integer scalar.
1197         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
1198         (finish_declspecs): Likewise.
1199         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
1200         (c_token_starts_declspecs): Likewise.
1201         (c_parser_declspecs): Likewise.
1202         (c_parser_attributes): Likewise.
1203         (c_parser_objc_selector): Likewise.
1204         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1205         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1206         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1207         * tree.c (make_or_reuse_type): Likewise.
1208         (make_unsigned_type): Likewise.
1209         (build_common_tree_nodes_2): Likewise.
1210         * tree.h (enum integer_type_kind): Add itk_int128 and
1211         itk_unsigned_int128.
1212         (int128_integer_type_node): New define.
1213         (int128_unsigned_type_node): New define.
1214         * doc/extend.texi: Add documentation about __int128 type.
1215
1216 2010-05-26  Richard Guenther  <rguenther@suse.de>
1217
1218         * tree-ssa-sccvn.c (copy_nary): Adjust.
1219         (copy_phis): Rename to ...
1220         (copy_phi): ... this.  Adjust.
1221         (copy_references): Rename to ...
1222         (copy_reference): ... this.  Adjust.
1223         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1224         result into the valid table.
1225
1226 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1227
1228         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1229         insn-config.h, insn-codes.h, recog.h, and optabs.h.
1230
1231 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1232
1233         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1234
1235 2010-05-26  Richard Guenther  <rguenther@suse.de>
1236
1237         * opts.c (common_handle_option): Handle OPT_Ofast.
1238
1239 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
1240
1241         * diagnostic.c: Don't include opts.h.
1242         (permissive_error_option): Define.
1243         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
1244         for classify_diagnostic.  Don't use memset for
1245         classify_diagnostic.  Initialize new and recently added fields.
1246         (diagnostic_classify_diagnostic): Use context->n_opts instead of
1247         N_OPTS.
1248         (diagnostic_report_diagnostic): Pass context parameter to
1249         diagnostic_report_warnings_p.  Use option_enabled and option_name
1250         hooks from context.
1251         (emit_diagnostic): Use permissive_error_option.
1252         (permerror): Likewise.
1253         * diagnostic.h: Don't include options.h.
1254         (struct diagnostic_context): Add n_opts, opt_permissive,
1255         inhibit_warnings, warn_system_headers, option_enabled and
1256         option_name fields.  Change classify_diagnostic to a pointer.
1257         * opts-diagnostic.h: New file.
1258         * opts.c: Include opts-diagnostic.h.
1259         (common_handle_option): Set global_dc fields for -Wfatal-errors,
1260         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1261         (option_name): New function.
1262         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1263         (c_common_handle_option): Set global_dc->permissive for
1264         -fpermissive.
1265         * c-common.c (c_cpp_error): Save and restore
1266         global_dc->warn_system_headers, not variable warn_system_headers.
1267         * toplev.c: Include opts-diagnostic.h.
1268         (general_init): Update call to diagnostic_initialize.  Set
1269         global_dc->show_column, global_dc->option_enabled and
1270         global_dc->option_name.
1271         (process_options): Don't set global_dc fields here.
1272         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1273         (diagnostic.o, opts.o, toplev.o): Update dependencies.
1274
1275 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
1276
1277         * config/picochip/picochip.md (movsi): Split a movsi from a
1278         const after reload.
1279
1280 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1281
1282         * ggc-zone.c: Update copyright year.
1283         (poison_region): Mark memory for Valgrind as undefined before
1284         memset () call and inaccessible afterwards.
1285         (ggc_pch_total_size): Change type of i to int.
1286
1287 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1288
1289         * ggc-common.c (ggc_free_overhead): Allow empty slot.
1290
1291 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1292
1293         * ggc-common.c: Update copyright year.
1294         (ggc_rlimit_bound): Remove prototype.  Compile only if
1295         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1296         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1297         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
1298         (ggc_min_heapsize_heuristic): Likewise.
1299
1300 2010-05-26  Richard Guenther  <rguenther@suse.de>
1301
1302         PR rtl-optimization/44164
1303         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1304         no-common access-path disambiguation.
1305         (indirect_ref_may_alias_decl_p): Adjust.
1306         (indirect_refs_may_alias_p): Likewise.
1307         (refs_may_alias_p_1): Likewise.
1308
1309 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1310
1311         * c-typeck.c: Do not include expr.h.
1312
1313 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1314
1315         * rtl.h (decl_default_tls_model): Move prototype from here...
1316         * output.h: ...to here.
1317         * c-decl.c: Do not include rtl.h.
1318         * c-pragma.c: Likewise.
1319         * c-parser.c: Likewise.
1320         * c-gimplify.c: Likewise.  And also not hard-reg-set.
1321         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
1322         FIXME note for it.  Add a FIXME note for expr.h.
1323         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1324         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1325         defined.
1326
1327 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
1328
1329         PR target/44199
1330         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1331         or total_size is larger than red zone size for non-V4 ABI, emit a
1332         stack_tie resp. frame_tie insn before stack pointer restore.
1333         * config/rs6000/rs6000.md (frame_tie): New insn.
1334
1335 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1336
1337         * function.h (struct function): Add can_throw_non_call_exceptions bit.
1338         * lto-streamer-in.c (input_function): Stream it in.
1339         * lto-streamer-out.c (output_function): Stream it out.
1340         * function.c (allocate_struct_function): Set it.
1341         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1342         for flag_non_call_exceptions.
1343         * cfgbuild.c (control_flow_insn_p): Likewise.
1344         (make_edges): Likewise.
1345         * cfgexpand.c (expand_stack_alignment): Likewise.
1346         * combine.c (distribute_notes): Likewise.
1347         * cse.c (cse_extended_basic_block): Likewise.
1348         * except.c (insn_could_throw_p): Likewise.
1349         * gcse.c (simple_mem): Likewise.
1350         * ipa-pure-const.c (check_call): Likewise.
1351         (check_stmt ): Likewise.
1352         * lower-subreg.c (lower-subreg.c): Likewise.
1353         * optabs.c (emit_libcall_block): Likewise.
1354         (prepare_cmp_insn): Likewise.
1355         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1356         * postreload.c (rest_of_handle_postreload): Likewise.
1357         * reload1.c (reload_as_needed): Likewise.
1358         (emit_input_reload_insns): Likewise.
1359         (emit_output_reload_insns): Likewise.
1360         (fixup_abnormal_edges): Likewise.
1361         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1362         * store-motion.c (find_moveable_store): Likewise.
1363         * tree-eh.c (stmt_could_throw_p): Likewise.
1364         (tree_could_throw_p): Likewise.
1365         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1366         * config/arm/arm.c (arm_expand_prologue): Likewise.
1367         (thumb1_expand_prologue): Likewise.
1368         * config/rx/rx.md (cbranchsf4): Likewise.
1369         (cmpsf): Likewise.
1370         * config/s390/s390.c (s390_emit_prologue): Likewise.
1371         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1372         (inline_forbidden_into_p): New predicate.
1373         (expand_call_inline): Use it to forbid inlining.
1374         (tree_can_inline_p): Likewise.
1375
1376 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1377
1378         * config/i386/i386-c.c: Do not include rtl.h.
1379         * config/i386/t-i386: Update dependencies.
1380
1381 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1382
1383         * attribs.c: Do not include rtl.h.
1384         * Makefile.in: Update dependencies.
1385
1386 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
1387
1388         * double-int.h (double_int_and): New.
1389         * combine.c (try_combine): Clean up, use double_int_* and
1390         immed_double_int_const functions.
1391
1392 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1393
1394         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1395         stderr to /dev/null instead of grep -q.
1396         * configure: Regenerate.
1397
1398 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1399
1400         * Makefile.in (EXCEPT_H): Fix typo.
1401
1402 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
1403
1404         * ira-build.c (update_conflict_hard_reg_costs): New.
1405         (ira_build): Call update_conflict_hard_reg_costs.
1406
1407 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
1408
1409         PR debug/41371
1410         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
1411         ENABLE_CHECKING.
1412         (intersect_loc_chains): Walk the s2var's loc_chain together
1413         with s1node chain as long as the locations are equal, don't
1414         call find_loc_in_1pdv in that case.
1415
1416         PR debug/42801
1417         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
1418         (copy_bind_expr): ... instead of here.
1419         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
1420         if the block hasn't been remapped.
1421         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
1422         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1423
1424 2010-05-25  Richard Guenther  <rguenther@suse.de>
1425
1426         PR middle-end/44069
1427         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1428         out-of-bounds array accesses.
1429
1430 2010-05-25  Richard Guenther  <rguenther@suse.de>
1431
1432         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1433         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1434         (run_gcc): Re-organize to make cleanup easier.
1435
1436 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1437
1438         * config/s390/s390.c (optimization_options): Fix and move the
1439         flag_prefetch_loop_arrays override ...
1440         (override_options): ... here.
1441
1442 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
1443
1444         * diagnostic.c: Don't include plugin.h.
1445         (diagnostic_report_diagnostic): Don't handle plugins specially
1446         here.  Pass context to internal_error callback.
1447         * diagnostic.h (struct diagnostic_context): Add context parameter
1448         to internal_error callback.
1449         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1450         * plugin.h (struct diagnostic_context): Declare.
1451         (warn_if_plugins, plugins_internal_error_function): Declare.
1452         * toplev.c (general_init): Set global_dc->internal_error.
1453         * Makefile.in (diagnostic.o): Update dependencies.
1454
1455 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
1456
1457         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1458         * config/rs6000/t-darwin64: New.
1459         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1460         build crt2.
1461
1462 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
1463
1464         PR 44203
1465         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1466         match the original (and intended) behaviour before r159557.  This
1467         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1468         in two ways.
1469
1470 2010-05-25  Richard Guenther  <rguenther@suse.de>
1471
1472         * doc/invoke.texi: Document -Ofast.
1473         * target.h (struct gcc_target): Add handle_ofast.
1474         * target-def.h (TARGET_HANDLE_OFAST): Add.
1475         (TARGET_INITIALIZER): Adjust.
1476         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
1477         * common.opt (Ofast): Add.
1478
1479 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
1480
1481         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1482         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1483
1484 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
1485
1486         PR target/43610
1487         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1488         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
1489         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
1490         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1491
1492 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
1493
1494         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1495         DW_OP_minus with negated offset instead of DW_OP_plus.
1496         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1497
1498 2010-05-25  Wei Guozhi  <carrot@google.com>
1499
1500         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1501         tst instruction and a new alternative.
1502         * config/arm/constraints.md (Pu): New constraint.
1503
1504 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
1505
1506         * function.c (assign_stack_local_1): Initialize variable
1507         to avoid warning when bootstrapping at -O3.
1508
1509 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
1510
1511         * configure.ac (all_lang_makefiles): Remove everything related to it.
1512         * configure: Regenerate.
1513         * Makefile.in: Fix reference to ada Make-lang.in.
1514         Remove support for LANG_MAKEFILES.
1515
1516 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
1517             Sandra Loosemore  <sandra@codesourcery.com>
1518
1519         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1520         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1521         description.  Add arm_neon_fp16_ok.
1522         (Add Options): Add arm_neon and arm_neon_fp16.
1523
1524 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
1525
1526         * diagnostic.c: Don't include flags.h.
1527         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1528         context parameters.  Check flags in the context passed as a parameter.
1529         (diagnostic_build_prefix): Add context parameter.  Check
1530         show_column flag in context.
1531         (diagnostic_action_after_output): Check fatal_errors flag in context.
1532         (diagnostic_report_current_module): Check show_column flag in context.
1533         (default_diagnostic_starter): Update call to
1534         diagnostic_build_prefix.
1535         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1536         (emit_diagnostic): Pass context to permissive_error_kind.
1537         (permerror): Pass context to permissive_error_kind.
1538         * diagnostic.h (struct diagnostic_context): Add show_column,
1539         pedantic_errors, permissive and fatal_errors fields.
1540         (diagnostic_build_prefix): Update prototype.
1541         * langhooks.c
1542         * toplev.c (process_options): Set flags in global_dc from
1543         flag_show_column, flag_pedantic_errors, flag_permissive,
1544         flag_fatal_errors.
1545         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1546         to diagnostic_build_prefix.
1547         * Makefile.in (diagnostic.o): Update dependencies.
1548
1549 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1550
1551         * config/i386/ia32intrin.h (__crc32q): Define only if
1552         __SSE4_2__ is defined.
1553
1554 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
1555
1556         PR target/44132
1557         PR middle-end/43602
1558         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1559         DECL_VISIBILITY_SPECIFIED.
1560         (emutls_decl): Set DECL_PRESERVE_P and copy
1561         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1562         (emutls_finalize_control_var): New callback.
1563         (emutls_finish): Finalize emutls control variables.
1564         * toplev.c (compile_file): Move the call to emutls_finish ()
1565         before varpool_assemble_pending_decls ().
1566
1567 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
1568
1569         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1570         added to the preprocessor condition.
1571
1572 2010-05-24  Paul Brook  <paul@codesourcery.com>
1573
1574         * gengtype-lex.l: Add HARD_REG_SET.
1575         * expr.c (expand_expr_real_1): Record writes to hard registers.
1576         * function.c (rtl_data): Add asm_clobbers.
1577         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1578         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1579         Use crtl->asm_clobbers.
1580
1581 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1582
1583         * doc/makefile.texi (Makefile): Mention stages 'profile'
1584         and 'feedback' for profiledbootstrap.
1585
1586 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1587
1588         PR target/44245
1589         * config/i386/i386.c (def_builtin): Properly check
1590         OPTION_MASK_ISA_64BIT.
1591
1592 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
1593
1594         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1595         typedefs with different but compatible types.  Allow duplicate
1596         typedefs with the same type except for pedantic non-C1X, but give
1597         warning for variably modified types.
1598         * c-typeck.c (tagged_types_tu_compatible_p,
1599         function_types_compatible_p, type_lists_compatible_p,
1600         comptypes_internal): Add parameter different_types_p; set
1601         *different_types_p for different but compatible types.  All
1602         callers changed.
1603         (comptypes_check_different_types): New.
1604         * c-tree.h (comptypes_check_different_types): Declare.
1605
1606 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1607
1608         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
1609         * jump.c: Include basic-block.h.
1610         * profile.c: Likewise.
1611         * tree-profile.c: Likewise.
1612         * coverage.c: Likewise.
1613         * basic-block.h (optimize_function_for_size_p): Move to function.h.
1614         (optimize_function_for_speed_p): Likewise.
1615         * function.h (optimize_function_for_size_p,
1616         optimize_function_for_speed_p): Moved here from basic-block.h.
1617         * Makefile.in: Update dependencies.
1618
1619 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1620
1621         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1622         before calling make; allow override through $MAKE.
1623         * doc/invoke.texi (Optimize Options): Document override.
1624
1625 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
1626
1627         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1628         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1629         (rs6000_mode_dependent_address_ptr): Make static.
1630         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1631         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1632         Remove.
1633
1634 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
1635
1636         PR target/43869
1637         * config/i386/i386.c: Make sure that the correct regparm is passed.
1638
1639 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1640
1641         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1642         * sbitmap.c: ...to here to internalize sbitmap element access.
1643         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1644         Explain why basic-block.h is included.
1645         * function.h: Include tm.h for CUMULATIVE_ARGS.
1646         * Makefile.in: Update dependencies.
1647
1648 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1649
1650         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1651         New core types.
1652         * sbitmap.h (struct sbitmap_def): Do not typedef here.
1653         * sbitmap.c: Include sbitmap.h.
1654         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1655         hard-reg-set.h.  Split everything related to regsets out from here...
1656         * regset.h: ...to here.  New file.
1657         * df.h: Include regset.h and sbitmap.h.
1658         * tree-flow.h: Likewise.
1659         * cfgloop.h: Likewise.
1660         * except.h: Do not include sbitmap.h.  Include hashtab.h.
1661         * cgraph.h: Include vec.h and function.h.
1662         * reload.h (struct insn_chain): Change types of live_throughout
1663         and dead_or_set from regset_head to bitmap_head.
1664         (compute_use_by_pseudos): Be defined also if regset.h is not included.
1665         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1666         spilled_regs from regset_head to bitmap_head to avoid dependency
1667         in regset.h.
1668         * sel-sched-ir.h: Include regset.h.
1669         * reload.c: Include df.h before reload.h.
1670         * caller-save.c: Likewise.
1671         * reload1.c: Likewise.
1672         * ira.c: Likewise.
1673         (mark_elimination): Update type of r to bitmap, consistent with
1674         DF_LR_IN.
1675         * dominance.c: Include bitmap.h.
1676         * modulo-sched.c: Include df.h.
1677         * cfganal.c: Include bitmap.h and sbitmap.h.
1678         * cfgbuild.c: Include sbitmap.h.
1679         * lcm.c: Include sbitmap.h.
1680         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1681         * domwalk.c: Include sbitmap.h, exclude ggc.h.
1682         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1683         * cselib.c: Include bitmap.h.
1684         * tree-optimize.c: Include regset.h.
1685         * stmt.c: Include bitmap.h.
1686         * Makefile.in: Update dependencies.
1687
1688 2010-05-22  Jan Hubicka  <jh@suse.cz>
1689
1690         * cgraph.h (struct varpool_node): Add same_comdat_group.
1691         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1692         pointer.
1693         (output_varpool): Update call of lto_output_varpool_node.
1694         (input_varpool): Read same_comdat_group pointer.
1695         (input_varpool_1): Fixup same_comdat_group pointer.
1696         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1697         group is needed, all are.
1698         * varpool.c (varpool_remove_node): Remove node from same comdat group
1699         linklist too.
1700         (varpool_analyze_pending_decls): Walk same comdat groups.
1701
1702 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1703
1704         * rtl.h (union rtunion_def): Remove rt_bit member.
1705         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1706         * print-rtl (print_rtx): Do not print the member.
1707         * gengtype.c (adjust_field_rtx_def): Do not handle it.
1708         * gengenrtl.c (type_from_format): Likewise.
1709         (accessor_from_format): Likewise.
1710
1711 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
1712
1713         * dbgcnt.c: Include toplev.h instead of errors.h.
1714         * ira-emit.c: Don't include errors.h.
1715         * ira.c: Include toplev.h instead of errors.h.
1716         * lto-compress.c: Include toplev.h instead of errors.h.
1717         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1718         ira.o, dbgcnt.o): Update dependencies.
1719
1720 2010-05-22  Richard Guenther  <rguenther@suse.de>
1721
1722         * gimple.c (gimple_types_compatible_p): Check type qualifications
1723         before merging pointer to complete and pointer to incomplete type.
1724         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1725         we use our own resolution algorithm.  The gold linker plugin
1726         doesn't do the job we want it to do here.
1727
1728 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
1729
1730         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1731         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1732         (sparc_mode_dependent_address_p): New function.
1733
1734 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1735
1736         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1737
1738         * timevar.c: Do not include any core headers.
1739         (timevar_print): De-i18n-ize.
1740         (print_time): Likewise.
1741         * timevar.h (timevar_push, timevar_pop): Make inline functions.
1742
1743 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
1744
1745         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1746         langhooks-def.h.
1747         (diagnostic_initialize): Initialize x_data not last_function.
1748         (diagnostic_report_current_function): Move to tree-diagnostic.c.
1749         (default_diagnostic_starter): Call
1750         diagnostic_report_current_module not
1751         diagnostic_report_current_function.
1752         (diagnostic_report_diagnostic): Initialize x_data not
1753         abstract_origin.
1754         (verbatim): Likewise.
1755         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1756         x_data.
1757         (struct diagnostic_context): Change last_function to x_data.
1758         (diagnostic_auxiliary_data): Replace with
1759         diagnostic_context_auxiliary_data and
1760         diagnostic_info_auxiliary_data.
1761         (diagnostic_last_function_changed, diagnostic_set_last_function,
1762         diagnostic_report_current_function): Move to tree-diagnostic.h.
1763         (print_declaration, dump_generic_node, print_generic_stmt,
1764         print_generic_stmt_indented, print_generic_expr,
1765         print_generic_decl, debug_c_tree, dump_omp_clauses,
1766         print_call_name, debug_generic_expr, debug_generic_stmt,
1767         debug_tree_chain, default_tree_printer): Move to
1768         tree-pretty-print.h.
1769         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1770         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1771         gimple-pretty-print.h.
1772         * pretty-print.c: Don't include tree.h
1773         (pp_base_format): Don't handle %K here.
1774         (pp_base_tree_identifier): Move to tree-pretty-print.c.
1775         * pretty-print.h (text_info): Change abstract_origin to x_data.
1776         (pp_tree_identifier, pp_unsupported_tree,
1777         pp_base_tree_identifier): Move to tree-pretty-print.h.
1778         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1779         tree-pretty-print.h: New files.
1780         * tree-pretty-print.c: Include tree-pretty-print.h.
1781         (percent_K_format): New.  Moved from pretty-print.c.
1782         (pp_base_tree_identifier): Move from pretty-print.c.
1783         * c-objc-common.c: Include tree-pretty-print.h.
1784         (c_tree_printer): Handle %K here.
1785         * langhooks.c: Include tree-diagnostic.h.
1786         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1787         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1788         (default_tree_printer): Handle %K using percent_K_format.
1789         (general_init): Use default_tree_diagnostic_starter.
1790         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1791         (free_lang_data): Use default_tree_diagnostic_starter.
1792         * c-pretty-print.c: Include tree-pretty-print.h.
1793         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1794         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1795         * dwarf2out.c: Include tree-pretty-print.h.
1796         * except.c: Include tree-pretty-print.h.
1797         * gimple-pretty-print.c: Include tree-pretty-print.h and
1798         gimple-pretty-print.h.
1799         * gimplify.c: Include tree-pretty-print.h.
1800         * graphite-poly.c: Include tree-pretty-print.h and
1801         gimple-pretty-print.h.
1802         * ipa-cp.c: Include tree-pretty-print.h.
1803         * ipa-inline.c: Include gimple-pretty-print.h.
1804         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1805         * ipa-pure-const.c: Include gimple-pretty-print.h.
1806         * ipa-struct-reorg.c: Include tree-pretty-print.h and
1807         gimple-pretty-print.h.
1808         * ipa-type-escape.c: Include tree-pretty-print.h.
1809         * print-rtl.c: Include tree-pretty-print.h.
1810         * print-tree.c: Include gimple-pretty-print.h.
1811         * sese.c: Include tree-pretty-print.h.
1812         * tree-affine.c: Include tree-pretty-print.h.
1813         * tree-browser.c: Include tree-pretty-print.h.
1814         * tree-call-cdce.c: Include gimple-pretty-print.h.
1815         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1816         * tree-chrec.c: Include tree-pretty-print.h.
1817         * tree-data-ref.c: Include tree-pretty-print.h and
1818         gimple-pretty-print.h.
1819         * tree-dfa.c: Include tree-pretty-print.h.
1820         * tree-if-conv.c: Include tree-pretty-print.h and
1821         gimple-pretty-print.h.
1822         * tree-inline.c: Include tree-pretty-print.h.
1823         * tree-into-ssa.c: Include tree-pretty-print.h and
1824         gimple-pretty-print.h.
1825         * tree-nrv.c: Include tree-pretty-print.h.
1826         * tree-object-size.c: Include tree-pretty-print.h and
1827         gimple-pretty-print.h.
1828         * tree-outof-ssa.c: Include tree-pretty-print.h and
1829         gimple-pretty-print.h.
1830         * tree-parloops.c: Include tree-pretty-print.h and
1831         gimple-pretty-print.h.
1832         * tree-predcom.c: Include tree-pretty-print.h and
1833         gimple-pretty-print.h.
1834         * tree-scalar-evolution.c: Include tree-pretty-print.h and
1835         gimple-pretty-print.h.
1836         * tree-sra.c: Include tree-pretty-print.h.
1837         * tree-ssa-address.c: Include tree-pretty-print.h.
1838         * tree-ssa-alias.c: Include tree-pretty-print.h.
1839         * tree-ssa-ccp.c: Include tree-pretty-print.h and
1840         gimple-pretty-print.h.
1841         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1842         * tree-ssa-copy.c: Include tree-pretty-print.h and
1843         gimple-pretty-print.h.
1844         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1845         * tree-ssa-dce.c: Include tree-pretty-print.h and
1846         gimple-pretty-print.h.
1847         * tree-ssa-dom.c: Include tree-pretty-print.h and
1848         gimple-pretty-print.h.
1849         * tree-ssa-dse.c: Include gimple-pretty-print.h.
1850         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1851         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1852         * tree-ssa-live.c: Include tree-pretty-print.h and
1853         gimple-pretty-print.h.
1854         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1855         gimple-pretty-print.h.
1856         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1857         gimple-pretty-print.h.
1858         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1859         gimple-pretty-print.h.
1860         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1861         gimple-pretty-print.h.
1862         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1863         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1864         * tree-ssa-operands.c: Include tree-pretty-print.h and
1865         gimple-pretty-print.h.
1866         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1867         gimple-pretty-print.h.
1868         * tree-ssa-pre.c: Include tree-pretty-print.h and
1869         gimple-pretty-print.h.
1870         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1871         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1872         gimple-pretty-print.h.
1873         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1874         gimple-pretty-print.h.
1875         * tree-ssa-sink.c: Include gimple-pretty-print.h.
1876         * tree-ssa-ter.c: Include tree-pretty-print.h and
1877         gimple-pretty-print.h.
1878         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
1879         * tree-ssa.c: Include tree-pretty-print.h and
1880         gimple-pretty-print.h.
1881         * tree-stdarg.c: Include gimple-pretty-print.h.
1882         * tree-switch-conversion.c: Include gimple-pretty-print.h.
1883         * tree-tailcall.c: Include tree-pretty-print.h and
1884         gimple-pretty-print.h.
1885         * tree-vect-data-refs.c: Include tree-pretty-print.h and
1886         gimple-pretty-print.h.
1887         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
1888         gimple-pretty-print.h.
1889         * tree-vect-loop.c: Include tree-pretty-print.h and
1890         gimple-pretty-print.h.
1891         * tree-vect-patterns.c: Include gimple-pretty-print.h.
1892         * tree-vect-slp.c: Include tree-pretty-print.h and
1893         gimple-pretty-print.h.
1894         * tree-vect-stmts.c: Include tree-pretty-print.h and
1895         gimple-pretty-print.h.
1896         * tree-vectorizer.c: Include tree-pretty-print.h.
1897         * tree-vrp.c: Include tree-pretty-print.h and
1898         gimple-pretty-print.h.
1899         * value-prof.c: Include tree-pretty-print.h and
1900         gimple-pretty-print.h.
1901         * var-tracking.c: Include tree-pretty-print.h.
1902         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
1903         (tree-diagnostic.o): New dependencies.
1904         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
1905         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
1906         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
1907         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
1908         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
1909         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
1910         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1911         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
1912         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
1913         tree-ssa-address.o, tree-ssa-loop-niter.o,
1914         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
1915         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
1916         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
1917         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
1918         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
1919         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
1920         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
1921         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
1922         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
1923         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
1924         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
1925         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
1926         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
1927         tree-switch-conversion.o, var-tracking.o, value-prof.o,
1928         cfgexpand.o, pretty-print.o): Update dependencies.
1929
1930 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
1931
1932         * tree-ssa-structalias.c: Remove tm_p.h from include.
1933
1934 2010-05-21  Jeff Law  <law@redhat.com>
1935
1936         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
1937
1938 2010-05-21  Jason Merrill  <jason@redhat.com>
1939
1940         * tree-eh.c (cleanup_is_dead_in): New.
1941         (lower_try_finally): Don't generate a dead cleanup region.
1942         (lower_cleanup): Likewise.
1943
1944 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
1945
1946         PR debug/44223
1947         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
1948         unchain each use from the cyclic next_regno_use chain first.
1949
1950 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1951
1952         * real: Do not include gmp.h, mpfr.h, and mpc.h.
1953         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
1954         (real_value_negate, real_value_abs): New prototypes.
1955         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
1956         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
1957         new include file for interface between MPFR and REAL_VALUE_TYPE.
1958         * real.c: Include realmpfr.h.
1959         (real_arithmetic2): Remove legacy function.
1960         (real_value_negate): New.
1961         (real_value_abs): New.
1962         (mfpr_from_real, real_from_mpfr): Move from here...
1963         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
1964         * builtins.c: Include realmpfr.h.
1965         * fold-const.c: Include realmpfr.h.
1966         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
1967         (fold_negate_const): Likewise.
1968         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
1969         * toplev.c: Include realmpfr.h.
1970         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
1971         and real_value_negate.
1972         * fixed-value.c (check_real_for_fixed_mode): Likewise.
1973         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
1974         (vfp3_const_double_index): Likewise.
1975         (arm_print_operand): Likewise.
1976         * Makefile.in: Update dependencies.
1977
1978 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1979
1980         * config/s390/s390.c (override_options): Increase the default
1981         of max-completely-peel-times.
1982
1983 2010-05-21  Julian Brown  <julian@codesourcery.com>
1984             Mark Mitchell  <mark@codesourcery.com>
1985
1986         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
1987         sibling calls for Thumb-1.
1988         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
1989         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
1990         Thumb-2.
1991         (*call_insn, *call_value_insn): Don't use for Thumb-2.
1992         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
1993         for Thumb-2.
1994         (return): New expander.
1995         (*arm_return): New name for ARM return insn.
1996         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
1997
1998 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
1999
2000         * config.gcc (sparc64-*-rtems*): New target.
2001
2002 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
2003
2004         * tree.c (build_function_decl_skip_args): Fix grammar.
2005         (build_function_type_list_1): Fix typos, adjust formatting.
2006
2007 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
2008
2009         * tree.h: Include real.h and fixed-value.h as basic datatypes.
2010         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
2011         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
2012         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
2013         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
2014         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
2015         tree-pretty-print.c, tree-loop-distribution.c,
2016         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
2017         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
2018         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
2019         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
2020         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
2021         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
2022         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
2023         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
2024         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
2025         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
2026         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
2027         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
2028         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
2029         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
2030         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
2031         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
2032         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
2033         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
2034         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
2035         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
2036         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
2037         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
2038         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
2039         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
2040         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
2041         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
2042         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
2043         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
2044         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
2045         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
2046         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
2047         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
2048         config/score/score7.c, config/score/score.c, config/arm/arm.c,
2049         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
2050         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
2051         config/bfin/bfin.c: Clean up redundant includes.
2052         * Makefile.in: Update accordingly.
2053
2054 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
2055
2056         PR middle-end/44204
2057         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
2058         statement has no arguments.
2059
2060 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
2061
2062         PR/44139
2063         * varasm.c (emutls_decl): Merge attributes to new decl.
2064
2065 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2066
2067         PR middle-end/44101
2068         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
2069         around the uniquized constructor if its type requires a conversion.
2070
2071 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
2072
2073         PR debug/44205
2074         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
2075         at -O0 goto_locus of any of the incoming edges differs from
2076         goto_locus of outgoing edge, or gimple_location of any of the
2077         labels differs.
2078
2079 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
2080
2081         * ira.c (ira_non_ordered_class_hard_regs): Define.
2082         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
2083         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
2084         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
2085         cost of unaligned hard regs when allocating multi-reg pseudos.
2086
2087 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
2088
2089         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
2090         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
2091         for TARGET_NO_FLOAT.
2092         * config/mips/mips.c (mips_file_start): Expand conditional expression
2093         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
2094         (mips_override_options): Move -mno-float override -msoft-float and
2095         -mhard-float.
2096         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
2097         Condition(TARGET_SUPPORTS_NO_FLOAT).
2098         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
2099         __mips_no_float here.
2100         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
2101         (TARGET_SUPPORTS_NO_FLOAT): Define.
2102         * config/mips/sdemtk.opt: Delete.
2103
2104 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
2105
2106         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
2107
2108 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
2109
2110         PR target/43733
2111         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
2112         * configure: Regenerate.
2113         * config.in: Regenerate.
2114         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
2115         instead of sahf only for 64bit targets.
2116
2117 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
2118
2119         PR debug/44178
2120         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
2121         setup_ref_regs for DEBUG_INSNs.
2122
2123 2010-05-20  Jan Hubicka  <jh@suse.cz>
2124
2125         PR middle-end/44197
2126         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
2127
2128 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2129
2130         PR bootstrap/43870
2131         * df-scan.c (df_ref_compare): Stabilize sort.
2132
2133 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
2134
2135         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
2136         argument.  Don't use DW_OP_piece if offset is non-zero,
2137         put offset into second DW_OP_bit_piece argument.
2138         (dw_sra_loc_expr): Adjust callers.  For memory expressions
2139         compute offset.
2140
2141 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
2142
2143         PR target/44202
2144         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
2145         settings for 16-bit-constant "addo" alternative.
2146
2147 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
2148
2149         * config/mips/mips-dsp.md (add<DSPV:mode>3,
2150         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
2151
2152         PR target/43764
2153         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
2154         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
2155         Use it.
2156
2157 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
2158
2159         * diagnostic.c (FLOAT, FFS): Don't undefine.
2160         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
2161         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
2162         include ordering.
2163
2164 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2165
2166         * combine.c (propagate_for_debug): Call make_compound_operation
2167         on the source value.
2168         (try_combine): When implementing a split chosen by find_split_point,
2169         either copy i2src or set it to null.  Assert that i2src is not null
2170         before substituting into CALL_INSN_FUNCTION_USAGE.
2171
2172 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
2173
2174         * double-int.h (double_int_ior): New function.
2175         * tree.h (build_int_cst_wide_type): Remove.
2176         * tree.c (build_int_cst_wide_type): Remove.
2177         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
2178         of build_int_cst_wide_type.
2179         * stor-layout.c (set_sizetype): (Ditto.).
2180         * dojump.c (do_jump): Use build_int_cstu instead of
2181         build_int_cst_wide_type.
2182
2183 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2184
2185         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
2186         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
2187         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
2188         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
2189         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
2190         propagate the 'data' argument to copy_tree_r.
2191         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
2192         Propagate 'data' argument to walk_tree.
2193         (copy_if_shared): New function.
2194         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
2195         (unmark_visited): New function.
2196         (unshare_body): Call copy_if_shared instead of doing it manually.
2197         (unvisit_body): Call unmark_visited instead of doing it manually.
2198
2199 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
2200
2201         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
2202         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
2203         * hooks.c: Likewise.
2204         * target-def.h (TARGET_FOLD_BUILTIN): Define to
2205         hook_tree_tree_int_treep_bool_null.
2206         * target.h (struct gcc_target): Update signature of fold_builtin
2207         field.
2208         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2209         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2210         instead of the call expression.
2211         (fold_builtin_call_array): Pass n and argarray directly.
2212         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2213         consing a list.
2214         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
2215         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
2216         `i' and use it in place of `arity'.
2217         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2218         Dereference `args' directly.
2219         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2220
2221 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2222
2223         * doc/sourcebuild.texi (Effective-Target Keywords): Document
2224         3dnow, sse3, sse2.
2225         (Directives): Document optional dg-require-effective-target
2226         selector.
2227
2228 2010-05-19  Richard Guenther  <rguenther@suse.de>
2229
2230         PR lto/44196
2231         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2232
2233 2010-05-19  Richard Guenther  <rguenther@suse.de>
2234
2235         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2236         * common.opt (fwhopr=): New.
2237         * opts.c (common_handle_option): Handle OPT_fwhopr.
2238         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2239         * collect2.c (main): Match -fwhopr*.
2240         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2241         Execute ltrans stage in parallel when jobs is bigger than 1.
2242
2243 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2244
2245         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2246         pentiumpro on Solaris 8/x86 with Sun as.
2247         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2248         hidden alias bug.
2249         (gcc_cv_as_ix86_quad): Check for .quad directive.
2250         * configure: Regenerate.
2251         * config.in: Regenerate.
2252         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2253
2254 2010-05-19  Martin Jambor  <mjambor@suse.cz>
2255
2256         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2257         also for indirect edges.  Actual printing moved...
2258         (ipa_print_node_jump_functions_for_edge): ...here.
2259         (ipa_compute_jump_functions): Renamed to
2260         ipa_compute_jump_functions_for_edge and made static.
2261         (ipa_compute_jump_functions): New function.
2262         (make_edge_direct_to_target): Check if the number of arguments on
2263         the newly direct edge is the same as the number of parametrs of
2264         the callee.
2265         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2266         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
2267         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2268         analysis functions unconditionally, call the new
2269         ipa_analyze_params_uses on the node instead of every edge.
2270
2271 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2272
2273         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2274         to tree.
2275         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
2276         also checks for a constant int vs.  non-constant but
2277         loop-invariant steps.
2278         (find_or_create_group): Change the sort algorithm to only consider
2279         steps that are constant ints.
2280         (idx_analyze_ref): Adopt code to handle a tree instead of a
2281         HOST_WIDE_INT for step.
2282         (gather_memory_references_ref): Handle tree instead of int and be
2283         prepared to see a NULL_TREE.
2284         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2285         prefetches if the step cannot be calculated at compile time.
2286         (issue_prefetch_ref): Issue prefetches for non-constant but
2287         loop-invariant steps.
2288
2289 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2290
2291         Revert:
2292         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2293
2294         * tree.h (build_call_list): Remove.
2295         * tree.c (build_call_list): Remove.
2296
2297 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2298
2299         * tree.h (build_call_list): Remove.
2300         * tree.c (build_call_list): Remove.
2301
2302 2010-05-18  Jan Hubicka  <jh@suse.cz>
2303
2304         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2305
2306 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
2307
2308         PR rtl-optimization/43332
2309         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2310
2311 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
2312
2313         * tree.h (build_int_cstu): Implement as static inline.
2314         * tree.c (build_int_cstu): Remove function.
2315         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2316         sign extended.
2317
2318 2010-05-18  Richard Guenther  <rguenther@suse.de>
2319
2320         PR lto/44143
2321         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
2322         (debug): Initialize from -save-temps.
2323         (collect_execute): Print command-line when verbose.
2324         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
2325         for ltrans invocation.  Produce -dumpbase flag again.
2326         (process_args): Remove.
2327         (main): Simplify.
2328         * collect2.c (maybe_run_lto_and_relink): Only pass object
2329         files to lto-wrapper.
2330         * gcc.c (LINK_COMMAND_SPEC): Likewise.
2331
2332 2010-05-18  Jan Hubicka  <jh@suse.cz>
2333
2334         * opts.c (decode_options): Do not disable whopr at ipa_cp.
2335         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2336
2337 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
2338
2339         PR lto/44184
2340         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2341         in a GIMPLE_ASM.
2342         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2343         in a GIMPLE_ASM.
2344
2345 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
2346
2347         PR debug/41371
2348         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2349         rtx_equal_p inline.
2350
2351 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
2352
2353         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2354         lto-macho as lto_binary_reader.
2355
2356         * darwin.c (darwin_asm_named_section): Do not add assembler comment
2357         after .section directive; just print it before the directive instead.
2358
2359 2010-05-17  Jan Hubicka  <jh@suse.cz>
2360
2361         * cgraph.c (cgraph_create_virtual_clone): Only check
2362         versionable_function_p when not in wpa and checking is enabled.
2363         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2364         there are no more functions to materialize.
2365
2366 2010-05-17  Jan Hubicka  <jh@suse.cz>
2367
2368         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2369         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2370         New functions.
2371         (output_cgraph): Call output_cgraph_opt_summary.
2372         (input_cgrpah): Call input_cgraph_opt_summary.
2373         (output_cgraph_opt_summary_p, output_node_opt_summary,
2374         input_node_opt_summary, input_cgraph_opt_section): New functions.
2375         * lto-section-in.c (lto_section_name): Add cgraphopt.
2376         * tree-inline.c (tree_function_versioning): Handle parm_num.
2377         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2378         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2379
2380 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
2381
2382         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2383         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2384         the insn to prefetch ratio heuristic to loops with known trip count.
2385
2386 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
2387
2388         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2389         (schedule_prefetches): Do not generate a prefetch if the unroll factor
2390         is far from what is required by the prefetch.
2391
2392 2010-05-17  Jan Hubicka  <jh@suse.cz>
2393
2394         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
2395         (ipcp_estimate_growth): Likewise.
2396         (ipcp_const_param_count): Likewise.
2397         (ipcp_insert_stage): Likewise.
2398         * ipa-prop.c (visit_load_for_mod_analysis): New function.
2399         (visit_store_addr_for_mod_analysis): Set used flag.
2400         (ipa_detect_param_modifications): Set used flag for SSE params;
2401         update use of walk_stmt_load_store_addr_ops.
2402         (ipa_print_node_params): Print used flag.
2403         (ipa_write_node_info): Stream used flag.
2404         (ipa_read_node_info): Likewise.
2405         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
2406         (ipa_is_param_used): New function.
2407         (lto_ipa_fixup_call_notes): Remove unused declaration.
2408
2409 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2410
2411         PR target/44074
2412         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
2413         * configure: Regenerate.
2414         * config.in: Regenerate.
2415         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
2416         !HAVE_AS_IX86_REP_LOCK_PREFIX.
2417         Don't emit whitespace.
2418         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
2419         (*rep_movsi): Likewise.
2420         (*rep_movsi_rex64): Likewise.
2421         (*rep_movqi): Likewise.
2422         (*rep_movqi_rex64): Likewise.
2423         (*rep_stosdi_rex64): Likewise.
2424         (*rep_stossi): Likewise.
2425         (*rep_stossi_rex64): Likewise.
2426         (*rep_stosqi): Likewise.
2427         (*rep_stosqi_rex64): Likewise.
2428         (*cmpstrnqi_nz_1): Use {%;} after repz.
2429         (*cmpstrnqi_nz_rex_1): Likewise.
2430         (*cmpstrnqi_1): Likewise.
2431         (*cmpstrnqi_rex_1): Likewise.
2432         (*strlenqi_1): Use {%;} after repnz.
2433         (*strlenqi_rex_1): Likewise.
2434         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2435         (*sync_compare_and_swap<mode>): Likewise.
2436         (sync_double_compare_and_swap<mode>): Likewise.
2437         (*sync_double_compare_and_swapdi_pic): Likewise.
2438         (sync_old_add<mode>): Likewise.
2439         (sync_add<mode>): Likewise.
2440         (sync_sub<mode>): Likewise.
2441         (sync_<code><mode>): Likewise.
2442
2443 2010-05-17  Martin Jambor  <mjambor@suse.cz>
2444
2445         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2446         otr_token and polymorphic.
2447         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2448         (cgraph_clone_edge): Copy the above fields.
2449         * tree.c (get_binfo_at_offset): New function.
2450         * tree.h (get_binfo_at_offset): Declare.
2451         * ipa-prop.h (enum jump_func_type): Added known_type jump function
2452         type, reordered items, updated comments.
2453         (union jump_func_value): Added base_type field, reordered fields.
2454         (enum ipa_lattice_type): Moved down in the file.
2455         (struct ipa_param_descriptor): New field polymorphic.
2456         (ipa_is_param_polymorphic): New function.
2457         * ipa-prop.c: Include gimple.h and gimple-fold.h.
2458         (ipa_print_node_jump_functions): Print known type jump functions.
2459         (compute_complex_pass_through): Renamed to...
2460         (compute_complex_assign_jump_func): this.
2461         (compute_complex_ancestor_jump_func): New function.
2462         (compute_known_type_jump_func): Likewise.
2463         (compute_scalar_jump_functions): Create known type and complex ancestor
2464         jump functions.
2465         (ipa_note_param_call): New parameter polymorphic, set the corresponding
2466         flag in the call note accordingly.
2467         (ipa_analyze_call_uses): Renamed to...
2468         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
2469         variable var only in the block where it is used.
2470         (ipa_analyze_virtual_call_uses): New function.
2471         (ipa_analyze_call_uses): Likewise.
2472         (combine_known_type_and_ancestor_jfs): Likewise.
2473         (update_jump_functions_after_inlining): Implemented handling of a
2474         number of new jump function types combination.
2475         (print_edge_addition_message): Removed.
2476         (make_edge_direct_to_target): New function.
2477         (try_make_edge_direct_simple_call): Likewise.
2478         (try_make_edge_direct_virtual_call): Likewise.
2479         (update_call_notes_after_inlining): Renamed to...
2480         (update_indirect_edges_after_inlining): this.  Moved edge creation for
2481         indirect calls to try_make_edge_direct_simple_call, also calls
2482         try_make_edge_direct_virtual_call for virtual calls.
2483         (ipa_print_node_params): Changed the header message.
2484         (ipa_write_jump_function): Stream also known type jump functions.
2485         (ipa_read_jump_function): Likewise.
2486         (ipa_write_indirect_edge_info): Stream new fields in
2487         cgraph_indirect_call_info.
2488         (ipa_read_indirect_edge_info): Likewise.
2489         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2490         GIMPLE_FOLD_H.
2491
2492 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2493
2494         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2495
2496 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
2497
2498         * tree.h (CALL_EXPR_ARGS): Delete.
2499         (call_expr_arglist): Delete.
2500         * tree.c (call_expr_arglist): Delete.
2501         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2502         targetm.fold_builtin.
2503         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2504         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2505         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2506         arglist parameter.  Use CALL_EXPR_ARG.
2507         (picochip_expand_builtin_3op): Likewise.
2508         (picochip_expand_builtin_2opvoid): Likewise.
2509         (picochip_expand_array_get): Likewise.
2510         (picochip_expand_array_put): Likewise.
2511         (picochip_expand_array_testport): Likewise.
2512         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
2513         rather than arglist.
2514         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2515         CALL_EXPR_ARGS.
2516         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2517         than TREE_VALUE and TREE_CHAIN.
2518         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2519         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2520         the arglist.
2521
2522 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2523
2524         PR bootstrap/42347
2525         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2526         to have no fallthru edge.
2527
2528         PR middle-end/44102
2529         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2530         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2531         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2532         add BARRIER after previous bb if needed.
2533
2534 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
2535
2536         * tree.c (build_function_type_list_1): Remove bogus assert condition.
2537
2538 2010-05-17  Alan Modra  <amodra@gmail.com>
2539
2540         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2541         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
2542         with copy_reg rtx param.
2543         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2544         Correct cases where code for ABI_V4 did not initialise the reg
2545         used to access frame.  Also leave frame_reg_rtx as sp for large
2546         frames that save no regs.
2547
2548 2010-05-17  Martin Jambor  <mjambor@suse.cz>
2549
2550         PR middle-end/44133
2551         * tree-sra.c (create_access_replacement): New parameter rename, mark
2552         the replaement for renaming only when it is true.
2553         (get_access_replacement): Pass true in the rename parameter of
2554         create_access_replacement.
2555         (get_unrenamed_access_replacement): New function.
2556         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2557         replacement declaration from it.
2558
2559 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
2560
2561         * function.c (try_fit_stack_local, add_frame_space): New static
2562         functions.
2563         (assign_stack_local_1): Use them.  Look for opportunities to use
2564         space previously wasted on alignment.
2565         * function.h (struct frame_space): New.
2566         (struct rtl_data): Add FRAME_SPACE_LIST member.
2567         * reload1.c (something_was_spilled): New static variable.
2568         (alter_reg): Set it.
2569         (reload): Test it in addition to testing if the frame size changed.
2570
2571 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
2572
2573         * config/s390/s390.c: Define sane prefetch settings and activate
2574         flag_prefetch_loop_arrays on -O3.
2575         * config/s390/s390.h: Declare that read can use write prefetch.
2576
2577 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2578
2579         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2580         build.
2581
2582 2010-05-16  Jan Hubicka  <jh@suse.cz>
2583
2584         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2585         function body; do not check stdarg field of struct function.
2586
2587 2010-05-16  Jan Hubicka  <jh@suse.cz>
2588
2589         * cgraph.c (dump_cgraph_node): Dump versionable flag.
2590         * cgraph.h (cgraph_local_info): Add versionable flag.
2591         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2592         (ipcp_versionable_function_p): Use it.
2593         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2594         versionable flag.
2595
2596 2010-05-16  Jan Hubicka  <jh@suse.cz>
2597
2598         * cgraph.c (cgraph_clone_node): Take decl argument and insert
2599         clone into hash when it is different from orig.
2600         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2601         * cgraph.h (cgraph_clone_node): Update prototype.
2602         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2603         (lto_cgraph_encoder_delete): Delete body map.
2604         (lto_cgraph_encoder_size): Move to header.
2605         (lto_cgraph_encoder_encode_body_p,
2606         lto_set_cgraph_encoder_encode_body): New.
2607         (lto_output_node): Do not take written_decls argument; output clone_of
2608         pointer.
2609         (add_node_to): Add include_body_argument; call
2610         lto_set_cgraph_encoder_encode_body on master of the clone.
2611         (add_references): Update use of add_node_to.
2612         (compute_ltrans_boundary): Likewise.
2613         (output_cgraph): Do not create written_decls bitmap.
2614         (input_node): Take nodes argument; stream in clone_of correctly.
2615         (input_cgraph_1): Update use of input_node.
2616         * lto-streamer-out.c (lto_output): Use encoder info to decide
2617         what bodies to output.
2618         * ipa-inline.c (cgraph_clone_inlined_nodes,
2619         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2620         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2621         (lto_cgraph_encoder_size): Define here.
2622         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2623         Declare.
2624
2625 2010-05-16  Richard Guenther  <rguenther@suse.de>
2626
2627         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2628         -fipa-type-escape.
2629         * ipa-type-escape.c (gate_type_escape_vars): Run when
2630         -fipa-struct-reorg runs.
2631         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2632         * common.opt (fipa-type-escape): Remove.
2633
2634 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2635
2636         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2637         (decode_options): Likewise.
2638         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2639
2640 2010-05-16  Jan Hubicka  <jh@suse.cz>
2641
2642         * ipa.c (function_and_variable_visibility): Also bring local all
2643         aliases.
2644
2645 2010-05-16  Richard Guenther  <rguenther@suse.de>
2646
2647         * alias.c (nonoverlapping_memrefs_p): Remove use of
2648         IPA type-escape information.
2649
2650 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
2651
2652         * c-common.c (c_common_reswords): Add _Static_assert for C.
2653         * c-parser.c (c_token_starts_declaration,
2654         c_parser_next_token_starts_declaration,
2655         c_parser_static_assert_declaration_no_semi,
2656         c_parser_static_assert_declaration): New.
2657         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2658         Handle static assertions if static_assert_ok.
2659         (c_parser_external_declaration, c_parser_declaration_or_fndef,
2660         c_parser_compound_statement_nostart, c_parser_label,
2661         c_parser_for_statement, c_parser_objc_methodprotolist,
2662         c_parser_omp_for_loop): All callers of
2663         c_parser_declaration_or_fndef changed.
2664         (c_parser_struct_declaration): Handle static assertions.
2665         (c_parser_compound_statement_nostart): Use
2666         c_parser_next_token_starts_declaration and
2667         c_token_starts_declaration to detect start of declarations.
2668         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2669         Likewise.
2670
2671 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
2672
2673         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2674         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2675         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2676         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2677         (mmix_function_outgoing_value): Rename to...
2678         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2679         (mmix_function_value_regno_p): Make static.
2680         (mmix_libcall_value): New function.
2681         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2682         mmix_function_value_regno_p): Remove declaration.
2683
2684 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2685
2686         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2687         BUILT_IN_ALLOCA if stack checking is enabled.
2688
2689 2010-05-16  Richard Guenther  <rguenther@suse.de>
2690
2691         * var-tracking.c (vars_copy_1): Inline ...
2692         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2693         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
2694         (variable_merge_over_cur): Adjust.  Merge asserts.
2695         (variable_merge_over_src): Likewise.
2696         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2697         (variable_post_merge_new_vals): Merge asserts.
2698         (variable_post_merge_perm_vals): Likewise.
2699         (find_mem_expr_in_1pdv): Likewise.
2700         (dataflow_set_different_value): Remove.
2701         (onepart_variable_different_p): Merge asserts.
2702         (variable_different_p): Likewise.
2703         (dataflow_set_different_1): Inline ...
2704         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2705         (emit_notes_for_differences_1): Merge asserts.
2706
2707 2010-05-16  Richard Guenther  <rguenther@suse.de>
2708
2709         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2710         * optabs.c (libfunc_decl_hash): Likewise.
2711         * varasm.c (emutls_decl): Likewise.
2712
2713 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
2714
2715         * c-decl.c: Don't include gimple.h.
2716         (merge_decls): Do not copy gimple_body.
2717
2718 2010-05-15  Jason Merrill  <jason@redhat.com>
2719
2720         * c.opt: Add -fnothrow-opt.
2721
2722 2010-05-15  Jan Hubicka  <jh@suse.cz>
2723
2724         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2725         analyzed.
2726         * passes.c (ipa_write_summaries): Write all analyzed nodes.
2727
2728 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
2729
2730         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2731         * Makefile.in: Add it.
2732         Fix all other Makefile dependencies for changes below.
2733         * tree.h: Include it instead of defining VEC primitives here.
2734         * gimple.h: Likewise.
2735         * rtl.h: Likewise.
2736         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2737         * except.h: Include vecir.h, break dependence on tree.h.
2738
2739         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2740         Move from here...
2741         * tree-iterator.c: ...to here.
2742         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
2743
2744         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
2745         tm_p.h.
2746         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2747         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2748         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2749         tree-mudflap.h, and target.h.
2750         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2751         predict.h, tree-inline.h, gimple.h, and langhooks.h.
2752         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2753         Add FIXME for why gimple.h is still included (should be unnecessary
2754         since GCC 4.5 gimplification unit-at-a-time).
2755         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2756         * c-pragma.c: Add FIXME for why function.h needs to be included just
2757         for cfun, at front-end level.
2758         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2759         Do not include ggc.h, but include vecprim.h for VEC(char).
2760         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2761         Explain why target.h is included.
2762         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2763         Explain why gimple.h is included.
2764         * c-ppoutput.c: Do not include tm.h.
2765         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
2766         * c-parses.c: Explain why rtl.h is included, and that this (and only
2767         this) is also why tm.h must be included.
2768         Do not include except.h.
2769         * c-lang.c: Do not include ggc.h.
2770
2771 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
2772
2773         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2774
2775 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
2776
2777         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2778         unions by default if those structs and unions have no tags.  Do
2779         not condition anonymous struct and unions handling on flag_iso.
2780         Allow anonymous structs and unions for C1X.
2781         (finish_struct): Do not diagnose lack of named fields when
2782         anonymous structs and unions present for C1X.  Accept flexible
2783         array members in structure with anonymous structs or unions but no
2784         directly named fields.
2785         * doc/extend.texi (Unnamed Fields): Update.
2786
2787 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
2788
2789         * gimple.h (compare_field_offset): Rename into...
2790         (gimple_compare_field_offset): ...this.
2791         * gimple.c (compare_field_offset): Rename into...
2792         (gimple_compare_field_offset): ...this.  Compare the full access if
2793         the offset is self-referential.
2794         (gimple_types_compatible_p): Adjust for above renaming.
2795         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
2796         DECL_NONADDRESSABLE_P flag of fields before merging them.
2797
2798 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
2799
2800         * tree.h (ctor_to_list): Delete.
2801         * tree.c (ctor_to_list): Delete.
2802
2803 2010-05-15  Jan Hubicka  <jh@suse.cz>
2804
2805         * ipa-reference.c: Include toplev.h
2806         (is_proper_for_analysis): Only add to all_module_statics
2807         if it is allocated.
2808         (write_node_summary_p, stream_out_bitmap,
2809         ipa_reference_write_optimization_summary,
2810         ipa_reference_read_optimization_summary): New.
2811         (struct ipa_opt_pass_d pass_ipa_reference): Add
2812         optimization summary streaming.
2813         * lto-cgraph.c (referenced_from_this_partition_p,
2814         reachable_from_this_partition_p): New functions.
2815         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2816         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2817         * opts.c (decode_options): Enable ipa_reference.
2818         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2819         * lto-streamer.h (referenced_from_this_partition_p,
2820         reachable_from_this_partition_p): Declare.
2821
2822 2010-05-15  Richard Guenther  <rguenther@suse.de>
2823
2824         PR tree-optimization/44038
2825         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2826         taking the address of a V_C_E of a constant.
2827
2828 2010-05-14  Jan Hubicka  <jh@suse.cz>
2829
2830         * tree.h (memory_identifier_string): Remove.
2831         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2832         (ipa_reference_global_vars_info_d): Remove statics_not_read and
2833         statics_not_written.
2834         (ipa_reference_optimization_summary_d): New structure.
2835         (ipa_reference_optimization_summary_t): New type and vector.
2836         (ipa_reference_vars_info_d): Embedd structures instead of using
2837         pointers.
2838         (reference_vars_to_consider): Remove out of GGC space.
2839         (module_statics_escape): Remove.
2840         (global_info_obstack): Rename to ...
2841         (optimization_summary_obstack): ... this one.
2842         (initialization_status_t): Remove.
2843         (memory_identifier_string): Remove.
2844         (get_reference_vars_info): Fix indenting.
2845         (set_reference_vars_info): Likewise.
2846         (get_reference_optimization_summary): New.
2847         (set_reference_optimization_summary): New.
2848         (get_global_reference_vars_info): Remove.
2849         (ipa_reference_get_read_global): Remove.
2850         (ipa_reference_get_written_global): Remove.
2851         (ipa_reference_get_not_read_global): Update.
2852         (ipa_reference_get_not_written_global): Update.
2853         (is_proper_for_analysis): Outlaw addressable.
2854         (propagate_bits): Update for new datastructures.
2855         (analyze_variable): Remove.
2856         (init_function_info): Update for new datastructures.
2857         (clean_function_local_data): Remove.
2858         (clean_function): Remove.
2859         (copy_global_bitmap): Use optimizations_summary_obstack.
2860         (duplicate_node_data): Duplicate optimization summary only.
2861         (remove_node_data): Remove optimization summary only.
2862         (generate_summary): Do not analyze variables; do not compute
2863         module_statics_escape; do not prune solutions by it.
2864         (read_write_all_from_decl): Fix typos in comments.
2865         (propagate): Doscover readonly and nonaddressable first;
2866         update for new datastructures; share global bitmaps.
2867         * ipa-reference.h (ipa_reference_get_read_global,
2868         ipa_reference_get_written_global): Remove.
2869         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2870         * Makefile.in: Remove ipa-refereference from GT files.
2871
2872 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
2873
2874         PR debug/44112
2875         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
2876         for all SYMBOL_REF_DECLs.
2877
2878 2010-05-14  Jan Hubicka  <jh@suse.cz>
2879
2880         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
2881         (varpool_all_refs_explicit_p): New inline function.
2882         * ipa-reference.c: Update comment.
2883         (module_statics_written): Remove.
2884         (get_static_decl): Remove.
2885         (ipa_init): Do not initialize module_statics_written.
2886         (analyze_function): Likewise.
2887         (generate_summary): Likewise; do not compute module_statics_readonly
2888         and do not update variable flags.
2889         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
2890         * ipa.c: Inlucde flags.h
2891         (cgraph_local_node_p): New.
2892         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
2893         promote functions to local.
2894         (ipa_discover_readonly_nonaddressable_vars): New function.
2895         (function_and_variable_visibility): Use cgraph_local_node_p.
2896         * varpool.c (varpool_finalize_decl): Set force_output for
2897         DECL_PRESERVE_P vars.
2898
2899 2010-05-14  Jan Hubicka  <jh@suse.cz>
2900
2901         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
2902
2903 2010-05-14  Richard Guenther  <rguenther@suse.de>
2904
2905         PR tree-optimization/44119
2906         * tree-ssa-pre.c (eliminate): Properly mark replacement of
2907         a PHI node necessary.
2908
2909 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2910
2911         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
2912
2913 2010-05-14  Jason Merrill  <jason@redhat.com>
2914
2915         PR c++/44127
2916         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
2917         (gimple_call_set_nothrow): New.
2918         * gimple.c (gimple_build_call_from_tree): Call it.
2919         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
2920
2921         PR c++/44127
2922         * gimplify.c (gimplify_seq_add_stmt): No longer static.
2923         * gimple.h: Declare it.
2924         * gimple.c (gimple_build_eh_filter): No ops.
2925
2926 2010-05-14  Jan Hubicka  <jh@suse.cz>
2927
2928         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
2929         nodes already in queue.
2930         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
2931         re-enqueueing node.
2932
2933 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
2934
2935         PR debug/44136
2936         * cfgexpand.c (expand_debug_expr): If non-memory op0
2937         has BLKmode, return NULL.
2938
2939 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
2940
2941         * config.gcc: Add support for --with-cpu option for bdver1.
2942         * config/i386/i386.h (TARGET_BDVER1): New macro.
2943         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
2944         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2945         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
2946         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2947         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
2948         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
2949         (processor_type): Add PROCESSOR_BDVER1.
2950         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
2951         processor_type in config/i386/i386.h.
2952         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
2953         movaps <reg, reg> instead of movapd <reg, reg> when replacing
2954         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
2955         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
2956         to emit packed xor instead of packed double/packed integer
2957         xor for SSE and AVX when moving a zero value.
2958         * config/i386/sse.md: Add check for
2959         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
2960         movapd/movdqa for SSE and AVX.
2961         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
2962         single logical operations i.e and, or and xor instead of packed double
2963         logical operations for SSE and AVX.
2964         * config/i386/i386-c.c (ix86_target_macros_internal):
2965         Add PROCESSOR_BDVER1.
2966         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
2967         (has_fma4, has_xop): New.
2968         * config/i386/i386.c (bdver1_cost): New variable.
2969         (m_BDVER1): New macro.
2970         (m_AMD_MULTIPLE): Add m_BDVER1.
2971         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
2972         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
2973         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
2974         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
2975         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
2976         x86_tune_sse_partial_reg_dependency,
2977         x86_tune_sse_unaligned_load_optimal,
2978         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
2979         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
2980         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
2981         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
2982         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
2983         Enable/disable for bdver1.
2984         (processor_target_table): Add bdver1_cost.
2985         (cpu_names): Add bdver1.
2986         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
2987          processor_alias_table.
2988         (ix86_expand_vector_move_misalign): Change.
2989         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
2990         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
2991         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
2992         of movupd/movdqu for SSE and AVX.
2993         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
2994         (ix86_tune_adjust_cost): Add code for bdver1.
2995         (standard_sse_constant_opcode): Add check for
2996         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
2997         of packed double xor for SSE and AVX.
2998
2999 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
3000
3001         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
3002         result to unsigned.
3003
3004 2010-05-14  Tristan Gingold  <gingold@adacore.com>
3005
3006         * toplev.c (default_debug_hooks): Remove this variable.
3007         (process_options): Remove assignments to default_debug_hooks.
3008
3009 2010-05-14  Martin Jambor  <mjambor@suse.cz>
3010
3011         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
3012         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
3013         * langhooks.h (struct lang_hooks_for_decls): Removed field
3014         fold_obj_type_ref.
3015         * tree.c (free_lang_data): Remove assignment to
3016         lang_hooks.fold_obj_type_ref.
3017         * tree.def (OBJ_TYPE_REF): Update comment.
3018
3019 2010-05-14  Richard Guenther  <rguenther@suse.de>
3020
3021         PR tree-optimization/44124
3022         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
3023
3024 2010-05-14  Alan Modra  <amodra@gmail.com>
3025
3026         PR target/44075
3027         * config/rs6000/rs6000.c (struct machine_function): Reorder
3028         fields for better packing.  Add lr_save_state.
3029         (rs6000_ra_ever_killed): Return lr_save_state if set.
3030         (rs6000_emit_eh_reg_restore): Set lr_save_state.
3031
3032 2010-05-13  Jan Hubicka  <jh@suse.cz>
3033
3034         * varpool.c (decide_is_variable_needed): Drop code checking
3035         TREE_SYMBOL_REFERENCED.
3036
3037 2010-05-13  Jan Hubicka  <jh@suse.cz>
3038
3039         * final.c (output_addr_const): Do not call mark_decl_referenced.
3040         * cgraphunit.c (process_function_and_variable_attributes): Use
3041         mark_needed_node dirrectly.
3042         (assemble_thunk): Do not call mark_decl_referenced.
3043
3044 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
3045
3046         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
3047
3048 2010-05-13  Jeff Law  <law@redhat.com>
3049
3050         * ira-conflicts.c (print_allocno_conflicts): New function broken out
3051         from...
3052         (print_conflicts): Call print_allocno_conflicts.
3053
3054 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
3055
3056         PR debug/44104
3057         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
3058         if it is NULL.
3059
3060 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
3061
3062         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
3063         t-mingw-w64 or t-mingw-w32 for multilib configuration.
3064         * config/i386/t-mingw-w32: New.
3065         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
3066
3067 2010-05-13  Martin Jambor  <mjambor@suse.cz>
3068
3069         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
3070         gimple-fold.c).
3071         * gimple-fold.c (get_base_binfo_for_type): New function.
3072         (gimple_get_relevant_ref_binfo): Likewise.
3073         (gimple_fold_obj_type_ref_known_binfo): Likewise.
3074         (gimple_fold_obj_type_ref): Likewise.
3075         (fold_gimple_call): Simplify condition for folding virtual calls
3076         and call gimple_fold_obj_type_ref.
3077         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
3078         (gimple_fold_obj_type_ref_known_binfo): Likewise.
3079
3080 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
3081
3082         * config/rs6000/rs6000-protos.h
3083         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
3084         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
3085         (rs6000_debug_mode_dependent_address)
3086         (rs6000_mode_dependent_address_ptr): Likewise.
3087
3088 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
3089
3090         PR debug/43983
3091         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
3092         by SRA.
3093         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
3094         * tree-sra.c (create_access_replacement): Call unshare_expr before
3095         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
3096         * dwarf2out.c: Include tree-flow.h.
3097         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
3098         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3099         Handle DW_OP_bit_piece.
3100         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
3101         construct_piece_list, adjust_piece_list): New functions.
3102         (add_var_loc_to_decl): Handle SRA optimized variables.
3103         Adjust for var_loc_note to loc field renaming.
3104         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
3105         in VAR_LOCATION note.
3106         (new_loc_descr_op_bit_piece): New function.
3107         (dw_sra_loc_expr): New function.
3108         (dw_loc_list): Use it.  Don't handle the last range after the
3109         loop, handle it inside of the loop.  Adjust for var_loc_note
3110         to loc field renaming.
3111         (add_location_or_const_value_attribute): Only special case
3112         single entry loc lists if loc is NOTE_P.  Adjust for
3113         var_loc_note to loc field renaming.
3114         (dwarf2out_var_location): Don't set newloc->var_loc_note
3115         and newloc->next here.
3116
3117 2010-05-12  Jan Hubicka  <jh@suse.cz>
3118
3119         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
3120         flag.
3121         * cgraph.h (cgraph_only_called_directly_p,
3122         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
3123         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
3124         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
3125         (assemble
3126         * ipa.c (cgraph_remove_unreachable_nodes): Use
3127         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
3128         flags.
3129         * tree-inline.c (copy_bb): Check address_taken flag.
3130         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
3131         externally_visible flag.
3132
3133 2010-05-12  Jason Merrill  <jason@redhat.com>
3134
3135         PR bootstrap/44048
3136         PR target/44099
3137         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
3138         * sdbout.c (plain_type_1): Likewise.
3139         * dwarf2out.c (is_base_type): Likewise.
3140         (gen_type_die_with_usage): Likewise.  Generate
3141         DW_TAG_unspecified_type for any LANG_TYPE.
3142
3143 2010-05-12  Jan Hubicka  <jh@suse.cz>
3144
3145         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
3146         indrect edges too.
3147         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
3148         (cgraph_clone_edge): Update.
3149         (cgraph_node_remove_callees): Remove indirect calls too.
3150         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
3151         (cgraph_create_indirect_edge): Update prototype.
3152         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
3153         is_proper_for_analysis.
3154         (add_new_function, visited_nodes, function_insertion_hook_holder,
3155         get_local_reference_vars_info, mark_address_taken, mark_address,
3156         mark_load, mark_store, check_asm_memory_clobber, check_call,
3157         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
3158         (ipa_init): Do not initialize visited_nodes;
3159         function_insertion_hook_holder.
3160         (analyze_variable): Rewrite.
3161         (analyze_function): Rewrite.
3162         (copy_local_bitmap): Remove.
3163         (duplicate_node_dat): Do not duplicate local info.
3164         (generate_summary): Simplify to only walk cgraph.
3165         (write_node_summary_p, ipa_reference_write_summary,
3166         ipa_reference_read_summary): Remove.
3167         (propagate): Do not remove function insertion;
3168         generate summary.
3169         (pass_ipa_reference): NULLify summary handling fields.
3170         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
3171         (input_edge): Input ecf_flags.
3172         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
3173         (update_indirect_edges_after_inlining): Ignore edges with unknown
3174         param.
3175
3176 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
3177
3178         * implicit-zee.c: New file.
3179         * tree-pass.h (pass_implicit_zee): Declare.
3180         * passes.c (init_optimization_passes): Add zee pass.
3181         * common.opt (fzee): New flag.
3182         * timevar.def (TV_ZEE): Define.
3183         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
3184         and beyond.
3185         * Makefile.in (implicit-zee.o): Add new build file.
3186
3187 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3188             Nathan Froyd  <froydnj@codesourcery.com>
3189
3190         * c-common.c (sync_resolve_params): Remove write-only variable.
3191
3192 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
3193
3194         * target.h (struct gcc_target): Add mode_dependent_address_p field.
3195         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3196         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
3197         * targhooks.c (default_mode_dependent_address_p): New function.
3198         * targhooks.h (default_mode_dependent_address_p): Declare function.
3199         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3200         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
3201         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
3202         target hook. Change return type to bool.
3203         * recog.h (mode_dependent_address_p): Change return type to bool.
3204
3205 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3206             Nathan Froyd  <froydnj@codesourcery.com>
3207
3208         * tree-mudflap.c (build_function_type_0, build_function_type_1,
3209         build_function_type_2, build_function_type_3): Remove.
3210         (mudflap_init): Use build_function_type_list.
3211
3212 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3213             Nathan Froyd  <froydnj@codesourcery.com>
3214
3215         * coverage.c (build_fn_info_value): Call build_constructor instead of
3216         build_constructor_from_list.
3217         (build_ctr_info_value): Likewise.
3218         (build_gcov_info): Likewise.
3219
3220 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
3221
3222         * tree.c (build_constructor): Compute TREE_CONSTANT for the
3223         resultant constructor.
3224         (build_constructor_single): Don't set TREE_CONSTANT.
3225         (build_constructor_from_list): Don't compute TREE_CONSTANT.
3226
3227 2010-05-12  Jan Hubicka  <jh@suse.cz>
3228
3229         * cgraph.h (struct varpool_node): Add aux.
3230         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3231         * varpool.c (varpool_remove_node): Do not remove initializer.
3232         (varpool_reset_queue): Export.
3233         (varpool_finalize_decl): Volatile vars are forced to be output.
3234         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3235         replaced decl.
3236         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3237         process_references, varpool_can_remove_if_no_refs): New functions.
3238         (cgraph_remove_unreachable_nodes): Handle variables too.
3239
3240 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
3241
3242         PR target/44088
3243         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3244
3245 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
3246
3247         PR middle-end/44085
3248         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3249         change value of ORT_TASK.
3250         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3251         (omp_notice_threadprivate_variable): New function.
3252         (omp_notice_variable): Call it for threadprivate variables.
3253         If enclosing ctx is a task, print enclosing task rather than
3254         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
3255         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3256         if task has untied clause.
3257
3258         PR debug/42278
3259         * dwarf2out.c (base_type_die): Don't add name attribute here.
3260         (modified_type_die): Instead of sizetype use
3261         its underlying original type.  If a DW_TAG_base_type doesn't
3262         have name added, add __unknown__.
3263         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3264         always call force_type_die instead.
3265
3266 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
3267
3268         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3269         for __stack_chk_guard.
3270
3271 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
3272
3273         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3274         don't call start_source_file debug hook here...
3275         (finish_options): ... but here, after outputting predefined and
3276         command line defines and undefs.
3277
3278         PR middle-end/44071
3279         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3280         no fallthru edge.
3281         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3282         optimizing away empty bb with no successors, move over its
3283         footer chain to fallthru predecessor.
3284         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3285         (rtl_split_edge): For asm goto call patch_jump_insn even if
3286         splitting fallthru edge.
3287
3288         PR c++/44059
3289         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3290         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3291         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3292         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3293         on DW.ref.* decls.
3294
3295         PR c++/44062
3296         * c-parser.c (c_parser_expression): Mark LHS of a comma
3297         expression as read if it is a decl, handled component or
3298         COMPOUND_EXPR with that on the RHS.
3299         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3300         if it is a decl or handled component.
3301
3302 2010-05-11  Jan Hubicka  <jh@suse.cz>
3303
3304         * lto-symtab.c (lto_symtab_free): New function.
3305         * lto-streamer.h (lto_symtab_free): Declare.
3306
3307 2010-05-11  Jan Hubicka  <jh@suse.cz>
3308
3309         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3310         that if function is needed it is reachable.
3311         (lto_output_node): See if it the function is reachable or referenced.
3312         (output_cgraph): Update call of lto_output_node.
3313         * lto-streamer.h (reachable_from_other_partition_p): Declare.
3314
3315 2010-05-11  Jan Hubicka  <jh@suse.cz>
3316
3317         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3318         Mark as used.
3319
3320 2010-05-11  Jan Hubicka  <jh@suse.cz>
3321
3322         PR tree-optimize/44063
3323         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3324         queue.
3325         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3326         limits.
3327         (estimate_function_body_sizes): Compute sizes even when disregarding.
3328
3329 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
3330
3331         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3332
3333 2010-05-11  Jan Hubicka  <jh@suse.cz>
3334
3335         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3336         into every boundary.
3337
3338 2010-05-11  Jan Hubicka  <jh@suse.cz>
3339
3340         * matrix-reorg.c (matrix_reorg): Rebuild edges.
3341
3342 2010-05-11  Jan Hubicka  <jh@suse.cz>
3343
3344         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3345         lto_streamer_cache_delete): Put nodes into heap.
3346         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3347         heap.
3348
3349 2010-05-11  Jan Hubicka  <jh@suse.cz>
3350
3351         * cgraphbuild.c (cgraph_rebuild_references): New.
3352         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3353         out extern inlines.
3354         * cgraph.h (cgraph_rebuild_references): Declare.
3355         * tree-inline.c (tree_function_versioning): Use it.
3356         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3357
3358 2010-05-11  Jan Hubicka  <jh@suse.cz>
3359
3360         * cgraph.c: Include ipa-utils.h
3361         (cgraph_create_virtual_clone): Update references.
3362         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3363
3364 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
3365
3366         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3367         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3368         cache size.
3369
3370 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
3371
3372         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3373
3374 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
3375
3376         * gcc.c (execute): For -### don't quote arguments that
3377         contain just alphanumerics and _/-. characters.
3378         * doc/invoke.texi: Document that change for -###.
3379
3380         PR debug/44023
3381         * df-problems.c (struct dead_debug): Add to_rescan field.
3382         (dead_debug_init): Clear to_rescan field.
3383         (dead_debug_finish): Rescan all debug insns in to_rescan
3384         bitmap and free the bitmap.
3385         (dead_debug_insert_before): Instead of rescanning debug insns
3386         immediately queue their rescanning until dead_debug_finish.
3387         (df_note_bb_compute): After dead_debug_add do continue instead
3388         of break.
3389
3390 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
3391
3392         PR debug/44028
3393         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
3394         clear also INSN_REG_USE_LIST.
3395
3396 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3397
3398         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
3399
3400 2010-05-10  Jan Hubicka  <jh@suse.cz>
3401
3402         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
3403         commited change.
3404
3405 2010-05-10  Jan Hubicka  <jh@suse.cz>
3406
3407         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
3408         Allocate encoders.
3409         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
3410         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
3411         (lto_streamer_cache_create): Init alloc pool.
3412         (lto_streamer_cache_delete): Free alloc pool.
3413         * lto-streamer.h: Include alloc pool.
3414         (lto_streamer_cache_d): Use alloc pool.
3415         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
3416
3417 2010-05-10  Jan Hubicka  <jh@suse.cz>
3418
3419         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
3420         * cgraphbuild.c: Include except.h
3421         (record_type_list, record_eh_tables): New function.
3422         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3423
3424 2010-05-10  Jan Hubicka  <jh@suse.cz>
3425
3426         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3427         __frame_dummy_init_array_entry, force_to_data): Attribute as used
3428         rather than unused.
3429
3430 2010-05-10  Michael Matz  <matz@suse.de>
3431
3432         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3433         (can_reassociate_p): Use FLOAT_TYPE_P.
3434         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3435         (vect_force_simple_reduction): ... this.
3436         * tree-parloops.c (gather_scalar_reductions): Use
3437         vect_force_simple_reduction.
3438         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3439         vect_is_simple_reduction, add modify argument, if true rewrite
3440         "a-b" into "a+(-b)".
3441         (vect_is_simple_reduction, vect_force_simple_reduction): New
3442         functions.
3443         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3444
3445 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3446             Vladimir Makarov  <vmakarov@redhat.com>
3447
3448         PR rtl-optimization/44012
3449         * ira-build.c (remove_unnecessary_allocnos): Nullify
3450         regno_allocno_map of the removed allocno.
3451
3452 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3453
3454         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3455         to /dev/null.
3456         * configure: Regenerate.
3457
3458 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3459
3460         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3461         unused.
3462         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3463         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3464         support in Sun ld.
3465         * configure: Regenerate.
3466
3467 2010-05-10  Richard Guenther  <rguenther@suse.de>
3468
3469         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3470         marked if the entry identifier is marked.
3471
3472 2010-05-10  Richard Guenther  <rguenther@suse.de>
3473
3474         * c-common.c (struct c_common_attributes): Add fnspec attribute.
3475         (handle_fnspec_attribute): New function.
3476         * gimple.h (gimple_call_return_flags): Declare.
3477         (gimple_call_arg_flags): Likewise.
3478         * gimple.c (gimple_call_arg_flags): New function.
3479         (gimple_call_return_flags): Likewise.
3480         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3481         New argument flags.
3482         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3483         return value flags.
3484         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3485         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3486         main work to ...
3487         (make_heapvar_for): ... this new function.
3488         (handle_rhs_call): Handle fnspec attribute argument specifiers.
3489         (handle_lhs_call): Likewise.
3490         (find_func_aliases): Adjust.
3491
3492 2010-05-10  Richard Guenther  <rguenther@suse.de>
3493
3494         PR tree-optimization/44050
3495         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3496
3497 2010-05-10  Wei Guozhi  <carrot@google.com>
3498
3499         PR target/42879
3500         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3501
3502 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
3503
3504         PR c/10676
3505         * c-typeck.c (lookup_field): Take a type directly.  Update
3506         recursive calls.
3507         (build_component_ref): Update call to lookup_field.
3508         (set_init_label): Use lookup_field to find initialized field.
3509         Handle returned list of fields like a sequence of designators.
3510
3511 2010-05-09  Richard Guenther  <rguenther@suse.de>
3512
3513         PR middle-end/44024
3514         * fold-const.c (tree_single_nonzero_warnv_p): Properly
3515         handle &FUNCTION_DECL.
3516
3517 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
3518
3519         PR c/4784
3520         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
3521         structures and unions recursively.
3522         (detect_field_duplicates): Move duplicate detection with a hash to
3523         detect_field_duplicates_hash.  Always use a hash if anonymous
3524         structures or unions are present.
3525         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3526         give errors.
3527
3528 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3529
3530         PR target/44046
3531         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3532         detect Atom, Core 2 and Core i7.
3533
3534 2010-05-09  Richard Guenther  <rguenther@suse.de>
3535
3536         * gcc.c (store_arg): Handle temporary file deletion for
3537         joined arguments.
3538
3539 2010-05-09  Richard Guenther  <rguenther@suse.de>
3540
3541         PR middle-end/44043
3542         * ipa-inline.c (estimate_function_body_sizes): Return after
3543         disregarding inline limits.
3544
3545 2010-05-09  Richard Guenther  <rguenther@suse.de>
3546
3547         * gcc.c (store_arg): Revert last change.
3548
3549 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
3550
3551         PR middle-end/28685
3552         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3553         (optimize_ops_list): Call it.
3554
3555 2010-05-08  Richard Guenther  <rguenther@suse.de>
3556
3557         PR tree-optimization/44030
3558         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
3559         NECESSARY flag if we propagate from a inserted expression.
3560
3561 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3562
3563         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3564         domain types as equal if they are both PLACEHOLDER_EXPRs.
3565
3566 2010-05-08  Richard Guenther  <rguenther@suse.de>
3567
3568         * lto-wrapper.c (run_gcc): Remove linker output from
3569         command line for LTRANS invocation.
3570
3571 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3572
3573         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3574         lto-macho as lto_binary_reader.
3575         * target.h (struct gcc_target): New hooks lto_start and lto_end.
3576         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3577         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3578         in lto_start and lto_end calls.
3579         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
3580         magic numbers.
3581         (scan_prog_file): Update is_elf_or_coff call.
3582         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3583
3584         * collect2.c (main): Fix enum comparison.
3585
3586         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3587         Add prototypes.
3588         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3589         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
3590         and TARGET_ASM_LTO_END.
3591         * darwin.c: Include obstack.h and lto-streamer.h.
3592         (lto_section_names_offset, lto_section_names_obstack,
3593         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3594         global variables.
3595         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3596         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
3597         to a temporary file.
3598         (darwin_asm_lto_end): New function.  Restore asm_out_file.
3599         (darwin_asm_named_section): For LTO sections, replace the name with
3600         the offset of the section name in a string table, and build this
3601         table.
3602         (darwin_file_start): Initialize global vars for LTO support.
3603         (darwin_file_end): If output to asm_out_file was redirected, append it
3604         to the proper asm_out_file here.  Add the section names section.
3605
3606 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3607
3608         * c-pragma.c (pending_weak_d, pending_weak): New.
3609         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3610         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3611         handle_pragma_weak): Update the uses of pending_weaks.
3612
3613 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3614
3615         PR documentation/44016
3616         * doc/standards.texi (Standards): Link to unversioned
3617         cxx0x_status.html page.
3618
3619 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
3620
3621         PR target/43708
3622         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3623         in addition to TREE_USED, to avoid "set but unused" warnings.
3624
3625 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3626
3627         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3628         (is_loop_prefetching_profitable): Do not insert prefetches
3629         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3630         times the prefetch ahead distance.
3631
3632 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3633
3634         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3635         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3636         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3637         the unroll_factor.
3638
3639 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3640
3641         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3642         a diagnostic info when the insn-to-mem ratio is too small.
3643
3644 2010-05-07  Richard Guenther <rguenther@suse.de>
3645
3646         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3647         the linker plugin.
3648         (store_arg): Queue temp_filename for deletion instead of
3649         the whole argument.
3650
3651 2010-05-07  Richard Guenther  <rguenther@suse.de>
3652
3653         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3654         (run_gcc): Handle LTRANS phase invocation.
3655         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3656
3657 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
3658
3659         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3660         this is also meaningful on PARM_DECLs and RESULT_DECLs.
3661
3662 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3663
3664         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3665
3666 2010-05-07  Richard Guenther  <rguenther@suse.de>
3667
3668         PR tree-optimization/44020
3669         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3670         code when PRE is not yet initialized.
3671
3672 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3673
3674         * config/mips/dbxmdebug.h: Remove.
3675         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3676
3677 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
3678
3679         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3680         with null pointer and also warn about ordered comparison of zero with
3681         pointer if -Wextra.
3682
3683 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3684
3685         * graphite-blocking.c
3686         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3687         * graphite-clast-to-gimple.c
3688         (clast_to_gcc_expression): Same.
3689         (precision_for_value): Same.
3690         (precision_for_interval): Same.
3691         (gcc_type_for_interval): Same.
3692         (graphite_create_new_guard): Same.
3693         (compute_bounds_for_level): Same.
3694         (graphite_create_new_loop_guard): Same.
3695         * graphite-interchange.c
3696         (build_linearized_memory_access): Same.
3697         (pdr_stride_in_loop): Same.
3698         (memory_strides_in_loop_1): Same.
3699         (memory_strides_in_loop): Same.
3700         (extend_scattering): Same.
3701         (psct_scattering_dim_for_loop_depth): Same.
3702         (pbb_number_of_iterations): Same.
3703         * graphite-poly.h
3704         (debug_iteration_domains): Same.
3705         * graphite-ppl.c
3706         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3707         (ppl_set_inhomogeneous_gmp): Same.
3708         (ppl_strip_loop): Same.
3709         (ppl_lexico_compare_linear_expressions): Same.
3710         (ppl_read_polyhedron_matrix): Same.
3711         (ppl_max_for_le_pointset): Same.
3712         * graphite-ppl.h
3713         (ppl_read_polyhedron_matrix): Same.
3714         (tree_int_to_gmp): Same.
3715         (gmp_cst_to_tree): Same.
3716         (ppl_set_inhomogeneous): Same.
3717         (ppl_set_inhomogeneous_tree): Same.
3718         (ppl_set_coef): Same.
3719         (ppl_set_coef_tree): Same.
3720         * graphite-sese-to-poly.c
3721         (build_pbb_scattering_polyhedrons): Same.
3722         (build_scop_scattering): Same.
3723         (scan_tree_for_params_right_scev): Same.
3724         (scan_tree_for_params): Same.
3725         (find_params_in_bb): Same.
3726         (find_scop_parameters): Same.
3727         (add_upper_bounds_from_estimated_nit): Same.
3728         (build_loop_iteration_domains): Same.
3729         (add_condition_to_domain): Same.
3730         (pdr_add_memory_accesses): Same.
3731
3732 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3733
3734         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3735         CLooG's value_* macros to their respective mpz_* counterparts.
3736         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3737         (graphite_create_new_loop_guard): Same.
3738         * graphite-interchange.c (build_linearized_memory_access): Same.
3739         (pdr_stride_in_loop): Same.
3740         (memory_strides_in_loop_1): Same.
3741         (1st_interchange_profitable_p): Same.
3742         * graphite-poly.c (extend_scattering): Same.
3743         (psct_scattering_dim_for_loop_depth): Same.
3744         (pbb_number_of_iterations): Same.
3745         (pbb_number_of_iterations_at_time): Same.
3746         * graphite-poly.h (new_1st_loop): Same.
3747         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3748         (oppose_constraint): Same.
3749         (insert_constraint_into_matrix): Same.
3750         (ppl_set_inhomogeneous_gmp): Same.
3751         (ppl_set_coef_gmp): Same.
3752         (ppl_strip_loop): Same.
3753         (ppl_lexico_compare_linear_expressions): Same.
3754         (ppl_max_for_le_pointset): Same.
3755         (ppl_min_for_le_pointset): Same.
3756         (ppl_build_realtion): Same.
3757         * graphite-ppl.h (gmp_cst_to_tree): Same.
3758         (ppl_set_inhomogeneous): Same.
3759         (ppl_set_inhomogeneous_tree): Same.
3760         (ppl_set_coef): Same.
3761         (ppl_set_coef_tree): Same.
3762         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3763         (build_scop_scattering): Same.
3764         (add_value_to_dim): Same.
3765         (scan_tree_for_params_right_scev): Same.
3766         (scan_tree_for_params_int): Same.
3767         (scan_tree_for_params): Same.
3768         (find_params_in_bb): Same.
3769         (find_scop_parameters): Same.
3770         (add_upper_bounds_from_estimated_nit): Same.
3771         (build_loop_iteration_domains): Same.
3772         (create_linear_expr_from_tree): Same.
3773         (add_condition_to_domain): Same.
3774         (pdr_add_memory_accesses): Same.
3775
3776 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
3777             Jason Merrill  <jason@redhat.com>
3778
3779         * c-common.c (c_common_reswords): Add nullptr.
3780         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
3781         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3782         (gen_type_die_with_usage): Likewise.
3783         * dbxout.c (dbxout_type): Likewise.
3784         * sdbout.c (plain_type_1): Likewise.
3785
3786 2010-05-06  Jason Merrill  <jason@redhat.com>
3787
3788         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3789         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
3790         ret appropriately.
3791         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3792
3793         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3794         stripping WITH_SIZE_EXPR.
3795         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3796         change.
3797
3798 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3799
3800         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3801         list of obsolete configurations.
3802         Disabled check for obsolete configurations.
3803         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3804         Removed support for previous versions.
3805         * config/mips/iris.h: Removed.
3806         * config/mips/iris5.h: Removed.
3807         * config/mips/iris6.h: Merged old iris.h contents.
3808         (TARGET_IRIX): Removed.
3809         (DRIVER_SELF_SPECS): Removed mabi=32.
3810         (IDENT_ASM_OP): Removed undef.
3811         (STARTFILE_SPEC): Removed mabi=32.
3812         (ENDFILE_SPEC): Likewise.
3813         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3814         (MACHINE_TYPE): Update for IRIX 6.5.
3815         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3816         TARGET_IRIX by TARGET_IRIX6.
3817         (mips_file_start): Likewise.
3818         (mips_output_external): Remove IRIX 5/6 O32 support.
3819         (mips_output_function_prologue): Likewise.
3820         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3821         TARGET_IRIX6.
3822         (TARGET_CPU_CPP_BUILTINS): Likewise.
3823         (TARGET_IRIX): Removed.
3824         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3825         (MULTILIB_DIRNAMES): Removed 32.
3826         (MULTILIB_OSDIRNAMES): Removed ../lib.
3827         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3828         (Specific, mips-sgi-irix5): Document removal.
3829         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3830         Remove references to older IRIX 6 releases and the O32 ABI.
3831
3832 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
3833
3834         PR bootstrap/43994
3835         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3836         instead of DF_REF_REAL_REG.
3837
3838 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
3839
3840         PR target/43888
3841         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3842         handling to still return true for x64 targets.
3843
3844 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3845
3846         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3847
3848 2010-05-06  Jan Hubicka  <jh@suse.cz>
3849
3850         PR tree-optimization/43791
3851         * ipa-inline.c (update_caller_keys): Remove bogus
3852         disregard_inline_limits check.
3853
3854 2010-05-06  Michael Matz  <matz@suse.de>
3855
3856         PR tree-optimization/43984
3857         * tree-ssa-pre.c (inserted_phi_names): Remove.
3858         (inserted_exprs): Change to bitmap.
3859         (create_expression_by_pieces): Set bits, don't append to vector.
3860         (insert_into_preds_of_block): Don't handle inserted_phi_names.
3861         (eliminate): Don't look at inserted_phi_names, remove deleted
3862         insns from inserted_exprs.
3863         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3864         (init_pre, fini_pre): Allocate and free bitmaps.
3865         (execute_pre): Insert insns on edges before elimination.
3866
3867 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3868
3869         * tree.c (initializer_zerop): Handle STRING_CST.
3870
3871 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3872
3873         PR 40989
3874         * doc/invoke.texi (Wimplicit): Document as C only.
3875         * opts.c (common_handle_option): Add argument kind.
3876         (handle_option): Rename as read_cmdline_option. Factor out code to...
3877         (handle_option): ... here. New.
3878         (handle_options): Rename as read_cmdline_options.
3879         (decode_options): Update call.
3880         (set_option): Use option index instead of option pointer. Classify
3881         diagnostics correctly.
3882         (enable_warning_as_error): Call handle_option.
3883         * opts.h (set_option): Update declaration.
3884         (handle_option): Declare.
3885         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
3886         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
3887         * c-opts.c (set_Wimplicit): Delete.
3888         (c_family_lang_mask): New static constant.
3889         (c_common_handle_option): Add argument kind. Use handle_option
3890         instead of set_Wimplicit.
3891         (c_common_post_options): warn_implicit and warn_implicit_int
3892         are disabled by default.
3893         * c-common.c (warn_implicit): Do not define here.
3894         * c-common.h (warn_implicit): Do not declare here.
3895         (c_common_handle_option): Update declaration.
3896         * lto-opts.c (lto_reissue_options): Update call to set_option.
3897
3898 2010-05-06  Richard Guenther  <rguenther@suse.de>
3899
3900         PR tree-optimization/43571
3901         * domwalk.c (walk_dominator_tree): Walk the dominator
3902         sons in more optimal order.
3903
3904 2010-05-06  Richard Guenther  <rguenther@suse.de>
3905
3906         PR tree-optimization/43934
3907         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
3908         (stmt_cost): Likewise.
3909         (extract_true_false_args_from_phi): New helper.
3910         (determine_max_movement): For PHI nodes verify we can hoist them
3911         and compute their cost.
3912         (determine_invariantness_stmt): Handle PHI nodes.
3913         (move_computations_stmt): Likewise.  Hoist PHI nodes in
3914         if-converted form using COND_EXPRs.
3915         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
3916         (tree_ssa_lim): Likewise.
3917         * tree-flow.h (tree_ssa_lim): Adjust prototype.
3918         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
3919
3920 2010-05-06  Richard Guenther  <rguenther@suse.de>
3921
3922         PR tree-optimization/43987
3923         * tree-ssa-structalias.c (could_have_pointers): For possibly
3924         address-taken variables force pointers to be recorded.
3925         (create_variable_info_for_1): Likewise.
3926         (push_fields_onto_fieldstack): Pass in wheter all fields
3927         must have pointers.
3928         (find_func_aliases): Query types instead of vars whether
3929         they contain pointers where appropriate.
3930
3931 2010-05-06  Jan Hubicka  <jh@suse.cz>
3932
3933         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
3934         (record_reference, mark_address, mark_load, mark_store): Record
3935         references.
3936         (record_references_in_initializer): Update call of record_references.
3937         (rebuild_cgraph_edges): Remove all references before rebuiding.
3938         * cgraph.c (cgraph_create_node): Clear ref list.
3939         (cgraph_remove_node): Remove references.
3940         (dump_cgraph_node): Dump references.
3941         (cgraph_clone_node): Clone references.
3942         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
3943         (struct cgraph_node, varpool_node): Add ref_lst.
3944         * ipa-ref.c: New file.
3945         * ipa-ref.h: New file.
3946         * ipa-ref-inline.h: New file.
3947         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
3948         (referenced_from_other_partition_p): New function.
3949         (lto_output_varpool_node): Take set arugment; call
3950         referenced_from_other_partition.
3951         (lto_output_ref): New.
3952         (add_references): New.
3953         (output_refs): New.
3954         (output_cgraph): Compute boundary based on references; output refs.
3955         (output_varpool): Accept cgraph_node_set argument.
3956         (input_ref): New.
3957         (input_refs): New.
3958         (input_cgraph): Call input_refs.
3959         * lto-section-in.c (lto_section_name): Add refs.
3960         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
3961         (ipa-ref.o): New file.
3962         * varpool.c (varpool_node): Clear ipa ref list.
3963         (varpool_remove_node): Remove references.
3964         (dump_varpool_node): Dump references.
3965         (varpool_assemble_decl): Only compile finalized ones.
3966         (varpool_extra_name_alias): Initialize ref list.
3967         * lto-streamer.c (lto-get_section_name): Add .refs section.
3968         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
3969         (referenced_from_other_partition_p): Declared.
3970
3971 2010-05-06  Ira Rosen  <irar@il.ibm.com>
3972
3973         PR tree-optimization/43901
3974         * tree-vect-stmts.c (vectorizable_call): Assert that vector
3975         type is not NULL if it's transformation phase, and return
3976         FALSE if it's analysis.
3977         (vectorizable_conversion, vectorizable_operation,
3978         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
3979
3980 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
3981
3982         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3983         Delete.
3984         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3985         New define.
3986         * config/mips/mips-protos.h
3987         (mips_small_register_classes_for_mode_p): Delete prototype.
3988
3989 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
3990
3991         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
3992         * config/arm/arm.c (multiple_operation_profitable_p,
3993         compute_offset_order): New static functions.
3994         (load_multiple_sequence, store_multiple_sequence): Use them.
3995         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
3996         memory offsets, not register numbers.
3997         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
3998
3999 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4000
4001         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
4002         (get_pending_sizes, put_pending_size, put_pending_sizes):
4003         Update the uses of pending_sizes.
4004         * c-decl.c (store_parm_decls): Likewise.
4005         * c-tree.h (struct c_arg_info): Likewise.
4006         * tree.h: Update the prototype for get_pending_sizes and
4007         put_pending_sizes.
4008
4009 2010-05-05  Jason Merrill  <jason@redhat.com>
4010
4011         PR debug/43370
4012         * c-common.c (handle_aligned_attribute): Respect
4013         ATTR_FLAG_TYPE_IN_PLACE.
4014
4015         PR testsuite/43758
4016         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
4017         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4018         (TARGET_INITIALIZER): Use it.
4019         * c-common.c (attribute_takes_identifier_p): Call it.
4020         * c-common.h: Update prototype.
4021         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
4022         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4023
4024 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
4025
4026         PR debug/43950
4027         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
4028         DW_ID_down_case for Fortran compilation units.
4029
4030 2010-05-05  Jan Hubicka  <jh@suse.cz>
4031
4032         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
4033         handle aliases.
4034
4035 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4036
4037         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
4038         a variable-sized RESULT_DECL.
4039
4040 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
4041
4042         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
4043
4044 2010-05-05  Jason Merrill  <jason@redhat.com>
4045
4046         PR c++/43787
4047         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
4048         returns GS_OK.
4049         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
4050
4051 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
4052             Jakub Jelinek  <jakub@redhat.com>
4053
4054         PR debug/43478
4055         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
4056         (dead_debug_init, dead_debug_finish): New functions.
4057         (dead_debug_add, dead_debug_insert_before): Likewise.
4058         (df_note_bb_compute): Initialize a dead_debug object, add dead
4059         debug uses to it, insert debug bind insns before death insns,
4060         reset debug insns that refer to pending uses at the end.
4061         * rtl.h (make_debug_expr_from_rtl): New prototype.
4062         * varasm.c (make_debug_expr_from_rtl): New function.
4063
4064 2010-05-05  Jan Hubicka  <jh@suse.cz>
4065
4066         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
4067         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
4068         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
4069         lto_varpool_encoder_deref, lto_varpool_encoder_size,
4070         lto_varpool_encoder_encode_initializer_p,
4071         lto_set_varpool_encoder_encode_initializer): New functions.
4072         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
4073         call output_varpool.
4074         (input_varpool_node): Do not always set analyzed.
4075         (input_cgraph_1): Return vector of cgraph nodes.
4076         (input_varpool_1): Return vector of varpools.
4077         (input_cgraph): Free the vectors.
4078         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4079         output only initializers needed.
4080         (lto_output): Only call output_cgraph.
4081         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
4082         * lto-section-out.c (lto_new_out_decl_state): Initialize
4083         state->varpool_node_encoder.
4084         * lto-streamer.h (lto_varpool_encoder_d): New.
4085         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
4086         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
4087         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
4088         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
4089         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
4090         Declare.
4091         (output_varpool, input_varpool): Remove declarations.
4092
4093 2010-05-05  Jan Hubicka  <jh@suse.cz>
4094
4095         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
4096         with body can prevail.
4097
4098 2010-05-05  Jan Hubicka  <jh@suse.cz>
4099
4100         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
4101         size.
4102
4103 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4104
4105         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
4106
4107         * gengtype.h (erro_at_line): Constify pos argument.
4108
4109         * gengtype.c: Include hashtab.h.
4110         (enum gc_used): Document GC_MAYBE_POINTED_TO.
4111         (error_at_line): Constify pos argument.
4112         (do_typedef): Initialize p->opt field.
4113         (get_file_gtfilename): Fix comment typo.
4114         (struct walk_type_data): Constify line field.
4115         (get_output_file_for_structure): New function.
4116         (write_local_func_for_structure): Constify orig_s argument.
4117         Use get_output_file_for_structure.
4118         (write_func_for_structure): Use get_output_file_for_structure.
4119         (INDENT): New define.
4120         (dump_pair, dump_type, dump_type_list, dump_typekind)
4121         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
4122         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
4123         functions.
4124         (seen_types): New variable.
4125         (main): New variable do_dump.  Process "-d" command line option.
4126         Call dump_everything if dump requested.
4127
4128 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
4129
4130         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
4131         in a temporary instead of invoking the macro multiple times.
4132         (track_expr_p): Likewise.
4133
4134 2010-05-04  Neil Vachharajani <nvachhar@google.com>
4135
4136         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
4137         per new semantics.
4138         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
4139         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
4140         conditions for printing notes.
4141         * common.opt (-Wcoverage-mismatch): Allow negative, default to
4142         true, update documentation.
4143         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
4144
4145 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
4146
4147         PR c/43981
4148         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
4149         on dimen.
4150
4151 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4152
4153         PR target/43799
4154         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
4155         (*sse_prologue_save_insn1): Likewise.
4156         (SSE prologue save splitter): Likewise.
4157
4158 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4159
4160         * tree.c (free_lang_data_in_one_sizepos): New inline function.
4161         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
4162         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
4163         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
4164         all decls.  Call it on DECL_FIELD_OFFSET of fields.
4165         (find_decls_types_r): Follow DECL_VALUE_EXPR.
4166         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
4167
4168 2010-05-04  Martin Jambor  <mjambor@suse.cz>
4169
4170         * tree-sra.c (build_access_from_expr_1): The first parameter type
4171         changed to simple tree.
4172         (build_access_from_expr): Likewise, gsi parameter was eliminated.
4173         (scan_assign_result): Renamed to assignment_mod_result, enum elements
4174         renamed as well.
4175         (build_accesses_from_assign): Removed all parameters except for a
4176         simple gimple statement.  Now returns a simple bool.
4177         (scan_function): All non-analysis parts moved to separate functions
4178         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
4179         parameters and updated both callers.
4180         (sra_modify_expr): Removed parameter data.
4181         (sra_modify_function_body): New function.
4182         (perform_intra_sra): Call sra_modify_function_body to modify the
4183         function body.
4184         (replace_removed_params_ssa_names): Parameter data changed into
4185         adjustments vector.
4186         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
4187         changed the parameter dont_convert to convert with the opposite
4188         meaning.
4189         (sra_ipa_modify_assign): Parameter data changed into adjustments
4190         vector, return value changed to bool.
4191         (ipa_sra_modify_function_body): New function.
4192         (sra_ipa_reset_debug_stmts): Updated a comment.
4193         (modify_function): Use ipa_sra_modify_function_body to modify function
4194         body.
4195
4196 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4197
4198         PR middle-end/43671
4199         * alias.c (true_dependence): Handle the same VALUE in x and mem.
4200         (canon_true_dependence): Likewise.
4201         (write_dependence_p): Likewise.
4202
4203 2010-05-04  Jan Hubicka  <jh@suse.cz>
4204
4205         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4206         * cgraphbuild.c: Include ipa-utils.h
4207         (record_reference_ctx): New struct.
4208         (record_reference): Simplify to work on initializers; not statements.
4209         (mark_address, mark_load, mark_store): New.
4210         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4211         walk PHI nodes too.
4212         (record_references_in_initializer): Update use of record_reference.
4213         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4214         walk PHI nodes too.
4215
4216 2010-05-04  Jan Hubicka  <jh@suse.cz>
4217
4218         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4219         node will be removed anyway.
4220         (lto_varpool_replace_node): Allow also unanalyzed nodes;
4221         relink aliases of node into prevailing node.
4222         * varpool.c (varpool_remove_node): Remove aliases properly;
4223         when removing node, remove all its aliases too; remove DECL_INITIAL
4224         of removed node; ggc_free the varpool node.
4225
4226 2010-05-04  Richard Guenther  <rguenther@suse.de>
4227
4228         PR tree-optimization/43879
4229         * tree-ssa-structalias.c (alias_get_name): Use
4230         DECL_ASSEMBLER_NAME if available.
4231         (create_function_info_for): Return the varinfo node.
4232         (ipa_pta_execute): Associate same-body aliases and extra names
4233         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
4234
4235 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4236
4237         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4238
4239 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
4240
4241         PR bootstrap/43964
4242         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4243         only if HONOR_REG_ALLOC_ORDER is not defined.
4244
4245 2010-05-04  Richard Guenther  <rguenther@suse.de>
4246
4247         PR tree-optimization/43949
4248         * tree-vrp.c (extract_range_from_binary_expr): Only handle
4249         TRUNC_MOD_EXPR.
4250
4251 2010-04-26  Jason Merrill  <jason@redhat.com>
4252
4253         * c.opt (-fstrict-enums): New.
4254         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4255
4256 2010-05-03  David Ung <davidu@mips.com>
4257             James E. Wilson  <wilson@codesourcery.com>
4258
4259         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4260         emit the trap instruction before the divide for TUNE_74K.
4261
4262 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
4263
4264         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4265         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4266         based on the above, for new target hook.
4267
4268         * hooks.c (hook_bool_mode_true): New generic hook.
4269         * hooks.h (hook_bool_mode_true): Add prototype.
4270
4271         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4272         target hook.
4273         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4274         target hook, set to hook_bool_mode_false.
4275         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4276         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4277         with targetm.small_register_classes_for_mode_p.
4278         (find_reusable_reload): Likewise.
4279         (combine_reloads): Likewise.
4280         * reload1.c (reload_as_needed): Likewise.
4281         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4282         * ifcvt.c (noce_process_if_block, check_cond_move_block,
4283         dead_or_predicable): Likewise.
4284         * regmove.c (optimize_reg_copy_1): Likewise.
4285         * calls.c (prepare_call_address): Likewise.
4286         (precompute_register_parameters): Likewise.
4287
4288         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4289         hook definition.
4290         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4291         implementation of the hook that considers all register classes
4292         small except for SH64.
4293         (sh_override_options): Use the new hook.
4294         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4295         Add prototype.
4296
4297         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4298         hook definition.
4299         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4300         implementation of the hook that considers all register classes
4301         small for THUMB1.
4302         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4303         Add prototype.
4304
4305         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4306         hook definition.
4307         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4308         implementation of the hook that considers all register classes
4309         small for MIPS16.
4310         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4311         Add prototype.
4312
4313         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4314         hook definition.
4315         * config/m32c/m32c.h: Likewise.
4316         * config/pdp11/pdp11.h: Likewise.
4317         * config/avr/avr.h: Likewise.
4318         * config/xtensa/xtensa.h: Likewise.
4319         * config/m68hc11/m68hc11.h: Likewise.
4320         * config/mn10300/mn10300.h: Likewise.
4321         * config/mcore/mcore.h: Likewise.
4322         * config/h8300/h8300.h: Likewise.
4323         * config/bfin/bfin.h: Likewise.
4324
4325         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4326         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4327
4328 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
4329
4330         * double-int.h (tree_to_double_int): Remove macro.
4331         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4332         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4333         (tree_to_double_int): New function.
4334         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4335         Move ...
4336         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4337
4338 2010-05-03  Richard Guenther  <rguenther@suse.de>
4339
4340         PR tree-optimization/43971
4341         * tree-ssa-structalias.c (get_constraint_for_1): Fix
4342         constraints in the !flag_delete_null_pointer_checks case.
4343
4344 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
4345
4346         PR debug/43972
4347         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4348         result mode matches original rtl mode.
4349
4350 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
4351
4352         PR target/43888
4353         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4354
4355 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4356
4357         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4358         when processing flag options.
4359
4360 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4361
4362         * gcov-iov.c (main): Change format string placeholder
4363         from %#08x to 0x%08x.
4364         * genchecksum.c (dosum): Change format string placeholder
4365         from %#02x to 0x%02x.
4366
4367 2010-05-02  Richard Guenther  <rguenther@suse.de>
4368
4369         PR tree-optimization/43879
4370         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4371
4372 2010-05-02  Bruno Haible  <bruno@clisp.org>
4373
4374         * doc/extend.texi (Function Attributes): Fix a typo.
4375
4376 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4377
4378         Revert:
4379         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4380         placeholder from 0x%x to %#x.
4381         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4382         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4383         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4384         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4385         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4386         * config/i386/i386.c (ix86_target_string): Ditto.
4387         * config/i386/i386.c (output_pic_addr_const): Ditto.
4388         (print_operand): Ditto.
4389
4390 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4391
4392         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
4393         placeholder from 0x%x to %#x.
4394         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
4395         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
4396         (ASM_OUTPUT_DEBUG_DATA): Ditto.
4397         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
4398         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
4399         * optc-gen.awk: Ditto.
4400         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
4401         (HOST_WIDE_INT_PRINT_HEX): Ditto.
4402         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
4403         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4404
4405 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
4406
4407         * target.h (struct calls): Add function_value_regno_p field.
4408         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4409         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
4410         * targhooks.c (default_function_value_regno_p): New function.
4411         * targhooks.h (default_function_value_regno_p): Declare function.
4412         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
4413         * builtins.c. (apply_result_size): (Ditto.).
4414         * combine.c. (likely_spilled_retval_p): (Ditto.).
4415         * mode-switching.c. Include 'target.h'.
4416         (create_pre_exit): Use function_value_regno_p hook.
4417         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
4418         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
4419         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
4420
4421         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
4422         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4423         (ix86_function_value_regno_p): Declare as static, change argument
4424         type to const unsigned int.
4425         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4426
4427 2010-05-01  Richard Guenther  <rguenther@suse.de>
4428
4429         PR tree-optimization/43949
4430         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4431         types.
4432         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4433
4434 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
4435
4436         * rtl.h (CONST_DOUBLE_P): Define.
4437         (rtx_to_double_int): Declare.
4438         * emit-rtl.c (rtx_to_double_int): New function.
4439         * dwarf2out.c (insert_double): New function.
4440         (loc_descriptor, add_const_value_attribute): Clean up, use
4441         rtx_to_double_int and insert_double functions.
4442
4443 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
4444
4445         * doc/extend.texi (Inline): Add missing return keyword to examples.
4446         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4447         "command-line".
4448
4449 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
4450
4451         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4452         the variable part of the offset as well.  Use highest_pow2_factor for
4453         all alignment checks.
4454
4455 2010-04-30  Richard Guenther  <rguenther@suse.de>
4456
4457         PR tree-optimization/43879
4458         * tree-ssa-structalias.c (type_could_have_pointers): Functions
4459         can have pointers.
4460
4461 2010-04-30  Jan Hubicka  <jh@suse.cz>
4462
4463         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4464         varpool.
4465         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4466
4467 2010-04-30  Jan Hubicka  <jh@suse.cz>
4468
4469         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4470         New.
4471         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4472         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4473         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4474         cgraph_node_set_needs_ltrans_p): Remove.
4475
4476 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
4477
4478         * sdbout.c: Include vec.h, do not include varray.h.
4479         (deferred_global_decls, sdbout_global_decl,
4480         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4481         * toplev.c: Do not include varray.h.
4482         (dump_memory_report): Do not dump VARRAY statistics.
4483         * gengtype.c (open_base_file): Ignore varray.h.
4484         * Makefile.in: Update for abovementioned changes.
4485         Remove all traces of varray.c and varray.h.
4486         * varray.c: Remove file.
4487         * varray.h: Remove file.
4488
4489 2010-04-30  Jan Hubicka  <jh@suse.cz>
4490
4491         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4492         references.
4493
4494 2010-04-30  Jan Hubicka  <jh@suse.cz>
4495
4496         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4497         needed.
4498
4499 2010-04-30  Richard Guenther  <rguenther@suse.de>
4500
4501         * tree-ssa-structalias.c (get_constraint_for_1): Generate
4502         constraints for CONSTRUCTOR.
4503
4504 2010-04-30  Richard Guenther  <rguenther@suse.de>
4505
4506         PR lto/43946
4507         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4508         first after all lowering passes.
4509
4510 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
4511
4512         * toplev.c: Include varray.h for statistics dumping.
4513         * tree.h: Do not declare varray_head_tag.
4514         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4515         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4516         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4517         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4518         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4519         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4520         c-common.c, c-common.h, reg-stack.c, basic-block.h,
4521         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4522         include varray.h.
4523         * Makefile.in: Update for abovementioned changes.
4524
4525 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
4526
4527         PR debug/43942
4528         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4529
4530 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
4531
4532         * config/picochip/picochip.c (picochip_legitimize_address): Define.
4533         Use this function to do machine-specific conversion.
4534         (picochip_legitimize_reload_address): Likewise.
4535         (picochip_legitimate_address_p): Check valid base register only if
4536         strict.
4537         (picochip_check_conditional_copy): Check for modw only if opnd is
4538         register.
4539         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4540         to call the function in c.
4541         * config/picochip/picochip-protos.h
4542         (picochip_legitimize_reload_address): Define.
4543         * config/picochip/picochip.md (supported_compare1): Define.
4544
4545 2010-04-30  Jan Hubicka  <jh@suse.cz>
4546
4547         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4548         (cgraph_global_info): Remove inlined.
4549         (LTO_cgraph_tag_names): Remove.
4550         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4551         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4552         simplify cgraph tags and document.
4553         (lto_output_node): Use only LTO_cgraph_unavail_node and
4554         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4555         for_functions_valid, global info, process and output flags.
4556         (input_overwrite_node): Initialize estimated stack size and
4557         estimated growth.  Do not read flags we no longer store.
4558         (input_node): Likewise do not read info no longer stored.
4559         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4560         flag.
4561
4562 2010-04-30  Richard Guenther  <rguenther@suse.de>
4563
4564         PR tree-optimization/43879
4565         * tree-ssa-structalias.c (get_constraint_for_1): Properly
4566         handle non-zero initializers.
4567
4568 2010-04-30  Richard Guenther  <rguenther@suse.de>
4569
4570         * builtins.c (fold_builtin_1): Delete free (0).
4571
4572 2010-04-29  Jan Hubicka  <jh@suse.cz>
4573
4574         * gengtype.c (open_base_files): Add lto-streamer.h
4575         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4576         (pass_ipa_cp): GGC collect.
4577         * toplev. (compile_file): Do not output symbols.
4578         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4579         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4580         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4581         * lto-section-in.c: Include ggc.h
4582         (lto_new_in_decl_state): Alloc in GGC.
4583         (lto_delete_in_decl_state): Likewise.
4584         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4585         Collect.
4586
4587 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4588
4589         PR target/42895
4590         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4591         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
4592         (HONOR_REG_ALLOC_ORDER): Describe new macro.
4593         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4594         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4595         account only if HONOR_REG_ALLOC_ORDER is not defined.
4596         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4597         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4598
4599 2010-04-29  Jon Grant  <04@jguk.org>
4600
4601         * collect2.c (vflag): Change type from int to bool.
4602         (debug): Likewise.
4603         (helpflag): New global bool.
4604         (main): Set vflag and debug with boolean, not integer truth values.
4605         Accept new "--help" option and output usage text if found.
4606         * collect2.h (vflag): Update prototype.
4607         (debug): Likewise.
4608
4609 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4610
4611         PR bootstrap/43936
4612         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4613
4614 2010-04-29  Richard Guenther  <rguenther@suse.de>
4615
4616         PR bootstrap/43935
4617         * plugin.h (invoke_plugin_callbacks): Annotate arguments
4618         with ATTRIBUTE_UNUSED.
4619
4620 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4621
4622         PR target/43921
4623         * config/i386/i386.c (get_some_local_dynamic_name): Replace
4624         INSN_P with NONDEBUG_INSN_P.
4625         (distance_non_agu_define): Likewise.
4626         (distance_agu_use): Likewise.
4627
4628 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4629
4630         From Dominique d'Humieres <dominiq@lps.ens.fr>
4631         PR bootstrap/43858
4632         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4633         test_set.
4634
4635 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
4636
4637         * plugin.h (invoke_plugin_callbacks): New inline function.
4638         * plugin.c (flag_plugin_added): New global flag.
4639         (add_new_plugin): Initialize above flag.
4640         (invoke_plugin_callbacks): Rename to ...
4641         (invoke_plugin_callbacks_full): ... this.
4642
4643 2010-04-28  Jan Hubicka  <jh@suse.cz>
4644
4645         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4646         (lto_varpool_replace_node): New.
4647         (lto_symtab_resolve_symbols): Resolve varpool nodes.
4648         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4649         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4650         * cgraph.h (varpool_node_ptr): New type.
4651         (varpool_node_ptr): New vector.
4652         (varpool_node_set_def): New structure.
4653         (varpool_node_set): New type.
4654         (varpool_node_set): New vector.
4655         (varpool_node_set_element_def): New structure.
4656         (varpool_node_set_element, const_varpool_node_set_element): New types.
4657         (varpool_node_set_iterator): New type.
4658         (varpool_node): Add prev pointers, add used_from_other_partition,
4659         in_other_partition.
4660         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4661         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4662         varpool_get_node, varpool_remove_node): Declare.
4663         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4664         varpool_node_set_size): New inlines.
4665         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4666         * tree-pass.h (varpool_node_set_def): Forward declare.
4667         (ipa_opt_pass_d): Summary writting takes vnode sets too.
4668         (ipa_write_optimization_summaries): Update prototype.
4669         * ipa-cp.c (ipcp_write_summary): Update.
4670         * ipa-reference.c (ipa_reference_write_summary): Update.
4671         * lto-cgraph.c (lto_output_varpool_node): New static function.
4672         (output_varpool): New function.
4673         (input_varpool_node): New static function.
4674         (input_varpool_1): New function.
4675         (input_cgraph): Input varpool.
4676         * ipa-pure-const.c (pure_const_write_summary): Update.
4677         * lto-streamer-out.c (lto_output): Update, output varpool too.
4678         (write_global_stream): Kill WPA hack.
4679         (produce_asm_for_decls): Update.
4680         (output_alias_pair_p): Handle variables.
4681         (output_unreferenced_globals): Output only needed partition of varpool.
4682         * ipa-inline.c (inline_write_summary): Update.
4683         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4684         cgraph.
4685         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4686         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4687         varpool_node_set_new, varpool_node_set_add,
4688         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4689         debug_varpool_node_set): New functions.
4690         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4691         (execute_one_pass): Process new decls too.
4692         (ipa_write_summaries_2): Pass around vsets.
4693         (ipa_write_summaries_1): Likewise.
4694         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4695         to add.
4696         (ipa_write_optimization_summaries_1): Pass around vsets.
4697         (ipa_write_optimization_summaries): Likewise.
4698         * varpool.c (varpool_get_node): New.
4699         (varpool_node): Update doubly linked lists.
4700         (varpool_remove_node): New.
4701         (dump_varpool_node): More dumping.
4702         (varpool_enqueue_needed_node): Update doubly linked lists.
4703         (decide_is_variable_needed): Kill ltrans hack.
4704         (varpool_finalize_decl): Kill lto hack.
4705         (varpool_assemble_decl): Skip decls in other partitions.
4706         (varpool_assemble_pending_decls): Update doubly linkes lists.
4707         (varpool_empty_needed_queue): Likewise.
4708         (varpool_extra_name_alias): Likewise.
4709         * lto-streamer.c (lto_get_section_name): Add vars section.
4710         * lto-streamer.h (lto_section_type): Update.
4711         (output_varpool, input_varpool): Declare.
4712
4713 2010-04-28  Mike Stump  <mikestump@comcast.net>
4714
4715         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4716
4717 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4718
4719         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4720         record or union type with RECORD_OR_UNION_TYPE_P predicate.
4721         (lto_input_ts_type_tree_pointers): Likewise.
4722         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4723         (lto_output_ts_type_tree_pointers): Likewise.
4724
4725 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4726
4727         Uniquization of constants at the Tree level
4728         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4729         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4730         bit to the end.
4731         (tree_output_constant_def): Declare.
4732         * gimplify.c (gimplify_init_constructor): When using block copy, first
4733         uniquize the constant constructor on the RHS.
4734         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4735         DECL_IN_CONSTANT_POOL flag.
4736         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4737         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4738         constant pool.
4739         (assemble_variable): Deal with symbols belonging to the tree constant
4740         pool.
4741         (get_constant_section): Add ALIGN parameter and simplify.
4742         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4743         (assemble_constant_contents): Use the expression of the VAR_DECL.
4744         (output_constant_def_contents): Use the alignment of the VAR_DECL.
4745         (tree_output_constant_def): New global function.
4746         (mark_constant): Use the expression of the VAR_DECL.
4747         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4748         its expression.
4749         (output_object_block): Likewise and assemble the expression.
4750
4751 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4752
4753         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4754         hash_tree, eq_tree): New tree hash table.
4755         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4756         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4757         lto_orig_address_remove): Reimplement.
4758
4759 2010-04-28  Xinliang David Li  <davidxl@google.com>
4760
4761         PR c/42643
4762         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4763         (compute_uninit_opnds_pos): New function.
4764         (is_non_loop_exit_postdominating): New function.
4765         (compute_control_dep_chain): New function.
4766         (find_pdom): New function.
4767         (convert_control_dep_chain_into_preds): New function.
4768         (find_predicates): New function.
4769         (find_control_equiv_block): New function.
4770         (collect_phi_def_edges): New function.
4771         (find_def_preds): New function.
4772         (find_dom): New function.
4773         (dump_predicates): New function.
4774         (get_cmp_code): New function.
4775         (is_value_included_in): New function.
4776         (find_matching_predicate_in_rest_chains): New function.
4777         (use_pred_not_overlap_with_undef_path_pred): New function.
4778         (is_use_properly_guarded): New function.
4779         (normalize_cond_1): New function.
4780         (is_and_or_or): New function.
4781         (normalize_cond): New function.
4782         (is_gcond_subset_of): New function.
4783         (is_subset_of_any): New function.
4784         (is_or_set_subset_of): New function.
4785         (is_and_set_subset_of): New function.
4786         (is_norm_cond_subset_of): New function.
4787         (is_pred_expr_subset_of): New function.
4788         (is_pred_chain_subset_of): New function.
4789         (is_included_in): New function.
4790         (is_superset_of): New function.
4791         (find_uninit_use): New function.
4792         (warn_uninitialized_phi): New function.
4793         (compute_possibly_undefined_names): New function.
4794         (ssa_undefined_value_p): New function.
4795         (execute_late_warn_uninitialized): New function.
4796         * tree-ssa.c (ssa_undefined_value_p): Removed.
4797         (warn_uninit): Changed to extern.
4798         (warn_uninitialized_phi): Removed.
4799         (warn_uninitialized_vars): Changed to extern.
4800         (execute_late_warn_uninitialized): Removed
4801         * tree-flow.h: Add new prototypes.
4802         * timevar.def: Add new time variable.
4803         * Makefile.in: Add new build file.
4804
4805 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
4806
4807         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4808         type if available.
4809
4810 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4811
4812         PR target/22224
4813         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4814
4815 2010-04-28  Martin Jambor  <mjambor@suse.cz>
4816
4817         * cgraph.h (struct cgraph_node): New field indirect_calls.
4818         (struct cgraph_indirect_call_info): New type.
4819         (struct cgraph_edge): Removed field indirect_call. New fields
4820         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4821         (cgraph_create_indirect_edge): Declare.
4822         (cgraph_make_edge_direct): Likewise.
4823         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4824         * ipa-prop.h (struct ipa_param_call_note): Removed.
4825         (struct ipa_node_params): Removed field param_calls.
4826         (ipa_create_all_structures_for_iinln): Declare.
4827         * cgraph.c: Described indirect edges and uids in initial comment.
4828         (cgraph_add_edge_to_call_site_hash): New function.
4829         (cgraph_edge): Search also among the indirect edges, use
4830         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4831         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4832         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4833         site hash.
4834         (initialize_inline_failed): Assign a reason to indirect edges.
4835         (cgraph_create_edge_1): New function.
4836         (cgraph_create_edge): Moved some functionality to
4837         cgraph_create_edge_1.
4838         (cgraph_create_indirect_edge): New function.
4839         (cgraph_edge_remove_callee): Add an assert checking for
4840         non-indirectness.
4841         (cgraph_edge_remove_caller): Special-case indirect edges.
4842         (cgraph_remove_edge): Likewise.
4843         (cgraph_set_edge_callee): New function.
4844         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4845         (cgraph_make_edge_direct): New function.
4846         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4847         the declaration of the call statement matches.
4848         (cgraph_node_remove_callees): Special-case indirect edges.
4849         (cgraph_clone_edge): Likewise.
4850         (cgraph_clone_node): Clone also the indirect edges.
4851         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4852         indirect_call, dump count of indirect_calls edges.
4853         * ipa-prop.c (iinlining_processed_edges): New variable.
4854         (ipa_note_param_call): Create indirect edges instead of
4855         creating notes.  New parameter node.
4856         (ipa_analyze_call_uses): New parameter node, pass it on to
4857         ipa_note_param_call.
4858         (ipa_analyze_stmt_uses): Likewise.
4859         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4860         (print_edge_addition_message): Work on edges rather than on notes.
4861         (update_call_notes_after_inlining): Likewise, renamed to
4862         update_indirect_edges_after_inlining.
4863         (ipa_create_all_structures_for_iinln): New function.
4864         (ipa_free_node_params_substructures): Do not free notes.
4865         (ipa_edge_duplication_hook): Propagate bits within
4866         iinlining_processed_edges bitmap.
4867         (ipa_node_duplication_hook): Do not duplicate notes.
4868         (free_all_ipa_structures_after_ipa_cp): Renamed to
4869         ipa_free_all_structures_after_ipa_cp.
4870         (free_all_ipa_structures_after_iinln): Renamed to
4871         ipa_free_all_structures_after_iinln.
4872         (ipa_write_param_call_note): Removed.
4873         (ipa_read_param_call_note): Removed.
4874         (ipa_write_indirect_edge_info): New function.
4875         (ipa_read_indirect_edge_info): Likewise.
4876         (ipa_write_node_info): Do not stream notes, do stream information
4877         in indirect edges.
4878         (ipa_read_node_info): Likewise.
4879         (lto_ipa_fixup_call_notes): Removed.
4880         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
4881         * ipa-inline.c (pass_ipa_inline): Likewise.
4882         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
4883         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
4884         * tree-inline.c (copy_bb): Removed an unnecessary double check for
4885         is_gimple_call.
4886         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
4887         edges.
4888         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
4889         (output_cgraph): Stream also indirect edges.
4890         (lto_output_edge): Added capability to stream indirect edges.
4891         (input_edge): Likewise.
4892         (input_cgraph_1): Likewise.
4893         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
4894         of indirect edges.
4895
4896 2010-04-28  Richard Guenther  <rguenther@suse.de>
4897
4898         PR tree-optimization/43879
4899         PR tree-optimization/43909
4900         * tree-ssa-structalias.c (struct variable_info): Add
4901         only_restrict_pointers flag.
4902         (new_var_info): Initialize it.  Increment stats.total_vars here.
4903         (create_function_info_for): Do not increment stats.total_vars here.
4904         (get_function_part_constraint): Fix build with C++.
4905         (insert_into_field_list): Remove.
4906         (push_fields_onto_fieldstack): Properly merge fields.
4907         (create_variable_info_for): Split and simplify.
4908         (create_variable_info_for_1): New piece.
4909         (intra_create_variable_infos): Properly make restrict constraints
4910         from parameters.
4911
4912 2010-04-28  Richard Guenther  <rguenther@suse.de>
4913
4914         PR c++/43880
4915         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
4916
4917 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4918             Jan Hubicka <hubicka@ucw.cz>
4919
4920         * doc/invoke.texi (-Wsuggest-attribute=const,
4921         -Wsuggest-attribute=pure): Document.
4922         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
4923         (function_always_visible_to_compiler_p,
4924         suggest_attribute, warn_function_pure, warn_function_const):
4925         New functions.
4926         (check_call): Improve debug info.
4927         (analyze_function): Do not check availability.
4928         (add_new_function): Check availability.
4929         (propagate): Output warnings.
4930         (skip_function_for_local_pure_const): New function.
4931         (local_pure_const): Use it; output warnings.
4932         * common.opt (Wsuggest-attribute=const,
4933         Wsuggest-attribute=pure): New.
4934
4935 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
4936
4937         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
4938         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
4939         or DW_CFA_def_cfa_offset{,_sf}.
4940
4941 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4942
4943         * tree.h: Fix truncated long macros.
4944
4945 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
4946
4947         * collect2.c (TARGET_64BIT): Redefine to target's default.
4948         * tlink.c: Likewise.
4949         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
4950         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
4951         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
4952         for underscoring __USER_LABEL_PREFIX__.
4953         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
4954         (SUB_LINK_ENTRY32): New.
4955         (SUB_LINK_ENTRY64): New.
4956         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
4957         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
4958         (SUB_LINK_ENTRY64): New.
4959         (SUB_LINK_ENTRY): New.
4960         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
4961         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
4962         x64 target is choosen.
4963         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
4964         * configure: Regenerated.
4965         * configure.ac (leading-mingw64-underscores): Option added.
4966
4967 2010-04-27  Jan Hubicka  <jh@suse.cz>
4968
4969         * doc/invoke.texi (-fipa-profile): Document.
4970         * opts.c (decode_options): Enable ipa-profile at -O1.
4971         * timevar.def (TV_IPA_PROFILE): Define.
4972         * common.opt (fipa-profile): Add.
4973         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
4974         flag for clones.
4975         (cgraph_propagate_frequency): Handle only local ones.
4976         * tree-pass.h (pass_ipa_profile): Declare.
4977         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
4978         (pass_ipa_profile): Use TV_IPA_PROFILE.
4979         * ipa.c (ipa_profile): New function.
4980         (gate_ipa_profile): Likewise.
4981         (pass_ipa_profile): New global variable.
4982         * passes.c (pass_ipa_profile): New.
4983
4984 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
4985
4986         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
4987
4988 2010-04-27  Martin Jambor  <mjambor@suse.cz>
4989
4990         PR middle-end/43812
4991         * ipa.c (dissolve_same_comdat_group_list): New function.
4992         (function_and_variable_visibility): Call
4993         dissolve_same_comdat_group_list when comdat group contains external or
4994         newly local nodes.
4995         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
4996         lists are circular and that they contain only DECL_ONE_ONLY nodes.
4997
4998 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4999
5000         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
5001         (const_hash_1) <VECTOR_CST>: New case.
5002         (compare_constant) <VECTOR_CST>: Likewise.
5003         <ADDR_EXPR>: Deal with LABEL_REFs.
5004         (copy_constant) <VECTOR_CST>: New case.
5005
5006 2010-04-27  Jan Hubicka  <jh@suse.cz>
5007
5008         * cgraph.c (cgraph_propagate_frequency): New function.
5009         * cgraph.h (cgraph_propagate_frequency): Declare.
5010         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
5011         cgraph_propagate_frequency.
5012
5013 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
5014
5015         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
5016
5017 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
5018
5019         PR target/40657
5020         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
5021         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
5022         here to determine which regs to push and how much stack to reserve.
5023
5024 2010-04-27  Jie Zhang  <jie@codesourcery.com>
5025
5026         * doc/gimple.texi (gimple_statement_with_ops): Remove
5027         addresses_taken field.
5028         (gimple_statement_with_memory_ops): Likewise.
5029
5030 2010-04-27  Jan Hubicka  <jh@suse.cz>
5031
5032         * tree-inline.c (eni_inlining_weights): Remove.
5033         (estimate_num_insns): Special case more builtins.
5034
5035 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
5036
5037         PR c/32207
5038         * c-typeck.c (build_binary_op): Move forward check for comparison
5039         pointer with null pointer constant and adjust the diagnostic message.
5040
5041 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
5042
5043         PR lto/42776
5044         * configure.ac (gcc_cv_as_section_has_align): Set if installed
5045         binutils supports extended .section directive needed by LTO, or
5046         warn if older binutils found.
5047         (LTO_BINARY_READER): New AC_SUBST'd variable.
5048         (LTO_USE_LIBELF): Likewise.
5049         * gcc/config.gcc (lto_binary_reader): New target-specific configure
5050         variable.
5051         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
5052         (LTO_USE_LIBELF): Likewise.
5053         * configure: Regenerate.
5054
5055         * collect2.c (is_elf): Rename from this ...
5056         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
5057          object files in addition to ELF-formatted ones.
5058         (scan_prog_file): Caller updated.  Also allow for LTO info marker
5059         symbol to be prefixed or not by an extra underscore.
5060
5061         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
5062         * config/i386/winnt.c: Also #include lto-streamer.h
5063         (i386_pe_asm_named_section): Specify 1-byte section alignment for
5064         LTO named sections.
5065         (i386_pe_asm_output_aligned_decl_common): Add comment.
5066         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
5067
5068 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
5069
5070         PR target/43889
5071         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
5072         Add missing earlyclobber for second alternative.
5073
5074 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
5075
5076         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
5077         bits for artificial defs at the top of the block.
5078         * fwprop.c (single_def_use_enter_block): Don't call it.
5079
5080 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
5081
5082         PR 43715
5083         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
5084         instead of "$gcc_cv_objdump -T".
5085         Use "-undefined dynamic_lookup" on darwin.
5086         * gcc/configure: Regenerate.
5087
5088 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
5089
5090         PR c/43893
5091         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
5092
5093 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
5094
5095         * c-parser.c (struct c_token): Move location field up.
5096         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
5097         (struct c_declspecs): Convert typespec_word, storage_class, and
5098         default_int_p into bitfields.
5099         (struct c_declarator): Move loc field up.
5100
5101 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
5102
5103         * cfgloop.h (struct loop): Move can_be_parallel field up.
5104         * ipa-prop.h (struct ip_node_params): Move bitfields up.
5105         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
5106         down.
5107         (struct iv_cand): Convert pos field into a bitfield.
5108         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
5109         field up.
5110         (struct _stmt_vec_info): Shuffle fields for better packing.
5111
5112 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
5113
5114         * varasm.c (IN_NAMED_SECTION): Remove guard.
5115         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
5116         (IN_NAMED_SECTION_P): ...this.
5117         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
5118         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5119
5120 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
5121
5122         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
5123         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
5124         of shadowing it.  Fix comments.
5125
5126 2010-04-26  Jan Hubicka  <jh@suse.cz>
5127
5128         * cgraph.c (cgraph_create_node): Set node frequency to normal.
5129         (cgraph_clone_node): Copy function frequency.
5130         * cgraph.h (node_frequency): New enum
5131         (struct cgraph_node): Add.
5132         * final.c (rest_of_clean_state): Update.
5133         * lto-cgraph.c (lto_output_node): Output node frequency.
5134         (input_overwrite_node): Input node frequency.
5135         * tre-ssa-loop-ivopts (computation_cost): Update.
5136         * lto-streamer-out.c (output_function): Do not output function
5137         frequency.
5138         * predict.c (maybe_hot_frequency_p): Update and handle functions
5139         executed once.
5140         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
5141         attribute lookup.
5142         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
5143         (compute_function_frequency): Set noreturn functions to be executed
5144         once.
5145         (choose_function_section): Update.
5146         * lto-streamer-in.c (input_function): Do not input function frequency.
5147         * function.c (allocate_struct_function): Do not initialize function
5148         frequency.
5149         * function.h (function_frequency): Remove.
5150         (struct function): Remove function frequency.
5151         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
5152         (try_update): Update.
5153         * tree-inline.c (initialize_cfun): Do not update function frequency.
5154         * passes.c (pass_init_dump_file): Update.
5155         * i386.c (ix86_compute_frame_layout): Update.
5156         (ix86_pad_returns): Update.
5157
5158 2010-04-26  Jie Zhang  <jie@codesourcery.com>
5159
5160         PR tree-optimization/43833
5161         * tree-vrp.c (range_int_cst_p): New.
5162         (range_int_cst_singleton_p): New.
5163         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
5164         when both operands are constants.  Use range_int_cst_p in
5165         BIT_IOR_EXPR case.
5166
5167 2010-04-26  Jan Hubicka  <jh@suse.cz>
5168
5169         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
5170
5171 2010-04-26  Richard Guenther  <rguenther@suse.de>
5172
5173         PR lto/43080
5174         * gimple.c (gimple_decl_printable_name): Deal gracefully
5175         with a NULL DECL_NAME.
5176
5177 2010-04-26  Richard Guenther  <rguenther@suse.de>
5178
5179         PR lto/42425
5180         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
5181         if emitting debug information and it is either a function
5182         or a namespace decl.
5183
5184 2010-04-26  Ira Rosen  <irar@il.ibm.com>
5185
5186         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
5187         determine if the statement is vectorizable, and a macro to access it.
5188         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5189         Skip statements that can't be vectorized. If the analysis fails,
5190         mark the statement as unvectorizable if vectorizing basic block.
5191         (vect_compute_data_refs_alignment): Likewise.
5192         (vect_verify_datarefs_alignment): Skip statements marked as
5193         unvectorizable. Add print.
5194         (vect_analyze_group_access): Skip statements that can't be
5195         vectorized. If the analysis fails, mark the statement as
5196         unvectorizable if vectorizing basic block.
5197         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
5198         * tree-vect-stmts.c (vectorizable_store): Fix the number of
5199         generated stmts for SLP.
5200         (new_stmt_vec_info): Initialize the new field.
5201         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
5202         statements marked as unvectorizable.
5203
5204 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
5205
5206         * c-common.c (flag_isoc1x): New.
5207         (flag_isoc99): Update comment.
5208         * c-common.h (flag_isoc1x): New.
5209         (flag_isoc99): Update comment.
5210         * c-cppbuiltin.c (builtin_define_float_constants): Also define
5211         __<type>_DECIMAL_DIG__.
5212         * c-opts.c (set_std_c1x): New.
5213         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5214         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5215         * c.opt (-std=c1x, -std=gnu1x): New options.
5216         * doc/cpp.texi: Mention -std=c1x.
5217         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5218         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5219         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5220         * doc/standards.texi: Mention C1X.
5221         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5222         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5223         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5224         Define for C1X.
5225
5226 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
5227
5228         * config/i386/gmon-sol2.c (_mcleanup): Change format string
5229         placeholder from 0x%x to %#x.
5230         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5231         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5232         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5233         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5234         * config/i386/i386.c (ix86_target_string): Ditto.
5235         (output_pic_addr_const): Ditto.
5236         (print_operand): Ditto.
5237
5238 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
5239
5240         * combine.c (find_split_point): Add third argument.  Use it
5241         to find nested multiply-accumulate instructions.  Adjust calls.
5242         (try_combine): Adjust call to find_split_point.
5243
5244 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
5245
5246         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5247
5248 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
5249
5250         PR tree-optimization/41442
5251         * fold-const.c (merge_truthop_with_opposite_arm): New function.
5252         (fold_binary_loc): Call it.
5253
5254 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5255
5256         * toplev.c (general_init): Set default for fdiagnostics-show-option.
5257         * opts.c (common_handle_option): Allow disabling it.
5258         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5259
5260 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5261
5262         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5263         between modes if both types are integral.
5264
5265 2010-04-23  Richard Guenther  <rguenther@suse.de>
5266
5267         PR tree-optimization/43572
5268         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5269
5270 2010-04-23  Richard Guenther  <rguenther@suse.de>
5271
5272         PR lto/43455
5273         * tree-inline.c (tree_can_inline_p): Also check compatibility
5274         of return types.
5275
5276 2010-04-23  Martin Jambor  <mjambor@suse.cz>
5277
5278         PR tree-optimization/43846
5279         * tree-sra.c (struct access): New flag grp_assignment_read.
5280         (build_accesses_from_assign): Set grp_assignment_read.
5281         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5282         (enum mark_read_status): New type.
5283         (analyze_access_subtree): Propagate grp_assignment_read, create
5284         accesses also if both direct_read and root->grp_assignment_read.
5285
5286 2010-04-23  Martin Jambor  <mjambor@suse.cz>
5287
5288         PR middle-end/43835
5289         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5290         function does not have type attributes.
5291
5292 2010-04-23  Richard Guenther  <rguenther@suse.de>
5293
5294         PR lto/42653
5295         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5296         of FUNCTION_DECLs.
5297
5298 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5299
5300         * sese.h (create_if_region_on_edge): Remove.
5301
5302         * sese.c (create_if_region_on_edge): Make static.
5303
5304         * tree-inline.c: Do not include ggc.h.
5305
5306         * expr.c: Do not include ggc.h.
5307
5308         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5309         dependencies.
5310
5311 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5312
5313         PR target/43744
5314         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5315         in the middle of insns for casesi_worker_2.
5316
5317 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
5318
5319         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5320
5321 2010-04-22  Ira Rosen  <irar@il.ibm.com>
5322
5323         PR tree-optimization/43842
5324         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5325         loop unrolling in update of exit phis. Fix comment.
5326         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5327         least two reduction statements in the loop before starting SLP
5328         analysis.
5329
5330 2010-04-22  Nick Clifton  <nickc@redhat.com>
5331
5332         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5333
5334 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
5335
5336         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5337         to simplify a + ~a.
5338
5339 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5340
5341         * tree-parloops.c (loop_parallel_p): New argument
5342         parloop_obstack.  Pass it down.
5343         (parallelize_loops): New variable parloop_obstack.  Initialize it,
5344         pass it down, free it.
5345
5346         * tree-loop-linear.c (linear_transform_loops): Pass down
5347         lambda_obstack.
5348
5349         * tree-data-ref.h (lambda_compute_access_matrices): New argument
5350         of type struct obstack *.
5351
5352         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5353         scratch_obstack.  Initialize it, pass down, free it.
5354
5355         * lambda.h (lambda_loop_new): Remove.
5356         (lambda_matrix_new, lambda_matrix_inverse)
5357         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5358         argument of type struct obstack *.
5359
5360         * lambda-trans.c (lambda_trans_matrix_new): New argument
5361         lambda_obstack.  Pass it down, use obstack allocation for ret.
5362         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
5363         it down.
5364
5365         * lambda-mat.c (lambda_matrix_get_column)
5366         (lambda_matrix_project_to_null): Remove.
5367         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
5368         allocation for mat.
5369         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5370         lambda_obstack.
5371
5372         * lambda-code.c (lambda_loop_new): New function.
5373         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5374         (lambda_compute_auxillary_space, lambda_compute_target_space)
5375         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5376         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5377         (build_access_matrix): New argument lambda_obstack.  Use obstack
5378         allocation for am.
5379         (lambda_compute_step_signs, lambda_compute_access_matrices): New
5380         argument lambda_obstack.  Pass it down.
5381
5382 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5383
5384         * optabs.h (expand_widening_mult): Declare.
5385
5386 2010-04-22  Richard Guenther  <rguenther@suse.de>
5387
5388         PR tree-optimization/43845
5389         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5390         lookup the CALL_EXPR function and arguments.
5391
5392 2010-04-22  Nick Clifton  <nickc@redhat.com>
5393
5394         * config/stormy16/stormy16.c
5395         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
5396         * config/stormy16/stormy16.h: Tidy up formatting.
5397         (DONT_USE_BUILTIN_SETJMP): Remove definition.
5398         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
5399         (ineqbranchsi): Delete pattern.
5400         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
5401         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
5402         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
5403         stormy16-lib2-ucmpsi2.c.
5404
5405 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5406
5407         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
5408         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
5409         extra set merge_set_noclobber, and use it to relax the final test
5410         slightly.
5411         * df.h (df_simulate_find_noclobber_defs): Declare.
5412         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
5413         conditional defs.
5414         (df_simulate_find_noclobber_defs): New function.
5415
5416 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
5417
5418         * config/i386/i386.md: Use {} around multi-line preparation statements.
5419
5420 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5421
5422         * c-tree.h (push_init_level, pop_init_level, set_init_index)
5423         (process_init_element): New argument of type struct obstack *.
5424
5425         * c-typeck.c (push_init_level, pop_init_level, set_designator)
5426         (set_init_index, set_init_label, set_nonincremental_init)
5427         (set_nonincremental_init_from_string, find_init_member)
5428         (output_init_element, output_pending_init_elements)
5429         (process_init_element): New argument braced_init_obstack.  Pass it
5430         down.
5431         (push_range_stack, add_pending_init): New argument
5432         braced_init_obstack.  Use obstack allocation.
5433
5434         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5435         braced_init_obstack.  Pass it down.
5436         (c_parser_braced_init): New variables ret, braced_init_obstack.
5437         Initialize obstack, pass it down and finally free it.
5438
5439 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5440
5441         PR middle-end/29274
5442         * tree-pass.h (pass_optimize_widening_mul): Declare.
5443         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5444         gate_optimize_widening_mul): New static functions.
5445         (pass_optimize_widening_mul): New.
5446         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5447         <case MULT_EXPR>: Remove support for widening multiplies.
5448         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5449         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5450         simplify_gen_unary rather than directly building extensions.
5451         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5452         WIDEN_MULT_EXPR.
5453         * expmed.c (expand_widening_mult): New function.
5454         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5455
5456 2010-04-21  Jan Hubicka  <jh@suse.cz>
5457
5458         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5459         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5460         * lto-wpa-fixup.c: Remove.
5461         * Makefile.in (lto-wpa-fixup.o): Remove.
5462         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5463         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5464         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5465
5466 2010-04-21  Jan Hubicka  <jh@suse.cz>
5467
5468         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5469         add write_optimization_summary, read_optimization_summary.
5470         (ipa_write_summaries_of_cgraph_node_set): Remove.
5471         (ipa_write_optimization_summaries): Declare.
5472         (ipa_read_optimization_summaries): Declare.
5473         * ipa-cp.c (pass_ipa_cp): Update.
5474         * ipa-reference.c (pass_ipa_reference): Update.
5475         * ipa-pure-const.c (pass_ipa_pure_const): Update.
5476         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5477         Update.
5478         * ipa-inline.c (pass_ipa_inline): Update.
5479         * ipa.c (pass_ipa_whole_program): Update.
5480         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5481         * passes.c (ipa_write_summaries_1): Do not test wpa.
5482         (ipa_write_optimization_summaries_1): New.
5483         (ipa_write_optimization_summaries): New.
5484         (ipa_read_summaries): Do not test ltrans.
5485         (ipa_read_optimization_summaries_1): New.
5486         (ipa_read_optimization_summaries): New.
5487
5488 2010-04-21  Jan Hubicka  <jh@suse.cz>
5489
5490         * lto-cgraph.c (lto_output_node): Do not output comdat groups
5491         for boundary nodes.
5492         (output_cgraph): Do not arrange comdat groups for boundary nodes.
5493
5494 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5495
5496         PR debug/40040
5497         * dwarf2out.c (add_name_and_src_coords_attributes): Add
5498         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5499
5500 2010-04-21  Jan Hubicka  <jh@suse.cz>
5501
5502         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5503
5504 2010-04-21  Jan Hubicka  <jh@suse.cz>
5505
5506         * varpool.c (decide_is_variable_needed): Variable is always needed
5507         during ltrans.
5508
5509 2010-04-21  Jan Hubicka  <jh@suse.cz>
5510
5511         * opts.c (decode_options): Enable pure-const pass for whopr.
5512
5513 2010-04-21  Jan Hubicka  <jh@suse.cz>
5514
5515         * cgraph.c (dump_cgraph_node): Dump also assembler name.
5516         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5517         at WPA dumping.
5518         (cgraph_decide_inlining): Do not expect callee to be removed in all
5519         cases.
5520
5521 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
5522
5523         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5524
5525 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5526
5527         * config/i386/i386.md (x86_shrd): Add athlon_decode and
5528         amdfam10_decode attributes.
5529
5530 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5531
5532         PR middle-end/43570
5533         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5534         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5535         (lower_copyprivate_clauses): Use private var in outer
5536         context instead of original var.  Make sure the types
5537         are correct for VLAs.
5538
5539 2010-04-21  Richard Guenther  <rguenther@suse.de>
5540
5541         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5542         to non-pointer objects.
5543
5544 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5545
5546         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
5547         last chain entry if it starts with the still current label.
5548         (add_location_or_const_value_attribute): Check that
5549         loc_list->first->next is NULL instead of comparing ->first with ->last.
5550         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5551         to add_var_loc_to_decl.
5552
5553         * dwarf2out.c (output_call_frame_info): For dw_cie_version
5554         >= 4 add also address size and segment size fields into CIE header.
5555
5556         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5557         long as address size is the same as sizeof (void *) and
5558         segment size is 0.
5559         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
5560         address size or segment size is unexpected, return DW_EH_PE_omit.
5561         (classify_object_over_fdes): If get_cie_encoding returned
5562         DW_EH_PE_omit, return -1.
5563         (init_object): If classify_object_over_fdes returned -1,
5564         pretend there were no FDEs at all.
5565
5566 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5567
5568         * config/i386/i386.md (bswap<mode>2): Macroize expander from
5569         bswap{si,di}2 using SWI48 mode iterator.
5570         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5571         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
5572         set modrm attribute of bswap insn to 0 and remove length attribute.
5573         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5574         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
5575         set mode attribute to <MODE> and remove length attribute.
5576
5577 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
5578
5579         PR rtl-optimization/43520
5580         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5581         zero available registers.
5582
5583 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5584
5585         * builtins.c (fold_builtin_cproj): Fold more cases.
5586
5587 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5588
5589         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5590         (fold_builtin_1): Fold builtin cproj.
5591         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5592         Use ATTR_CONST_NOTHROW_LIST.
5593
5594 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
5595
5596         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5597         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
5598         ffsi2_no_cmove for !TARGET_CMOVE.
5599         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
5600         (ffssi2): Remove expander.
5601         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5602         mode iterator.
5603         (ctz<mode>2): Ditto from ctz{si,di}2.
5604         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5605         mode iterator.
5606         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5607         mode iterator.
5608
5609 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5610
5611         * dwarf2out.c (AT_linkage_name): Define.
5612         (clone_as_declaration): Handle DW_AT_linkage_name.
5613         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5614         of DW_AT_MIPS_linkage_name.
5615         (move_linkage_attr): Likewise.
5616         (dwarf2out_finish): Likewise.
5617
5618 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
5619
5620         PR middle-end/41952
5621         * fold-const.c (fold_comparison): New folding rule.
5622
5623 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
5624
5625         * double-int.h (double_int_setbit): Declare.
5626         * double-int.c (double_int_setbit): New function.
5627         * rtl.h (immed_double_int_const): Declare.
5628         * emit-rtl.c (immed_double_int_const): New function.
5629         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5630         and immed_double_int_const functions.
5631         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5632         expand_copysign_bit):  (Ditto.).
5633         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5634         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5635         * dojump.c (prefer_and_bit_test): (Ditto.).
5636         * expr.c (convert_modes, reduce_to_bit_field_precision,
5637         const_vector_from_tree): (Ditto.).
5638         * expmed.c (mask_rtx, lshift_value): (Ditto.).
5639
5640 2010-04-20  Jan Hubicka  <jh@suse.cz>
5641
5642         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5643         (dump_cgraph_node): Dump new flags.
5644         * cgraph.h (struct cgraph_node): Add flags
5645         reachable_from_other_partition and in_other_partition.
5646         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5647         other partition can not be removed.
5648         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5649         the other partition must be output; silence sanity checking on
5650         leaking functions bodies from other paritition.
5651         * lto-cgraph.c (reachable_from_other_partition_p): New function.
5652         (lto_output_node): Output new flags; do not sanity check that inline
5653         clones are output; drop lto_forced_extern_inline_p code; do not mock
5654         visibility flags at partition boundaries.
5655         (add_node_to): New function.
5656         (output_cgraph): Use it to sort functions so masters appear before
5657         clones.
5658         (input_overwrite_node): Input new flags.
5659         * passes.c (ipa_write_summaries): Do not call
5660         lto_new_extern_inline_states.
5661         * lto-section-out.c (forced_extern_inline,
5662         lto_new_extern_inline_states lto_delete_extern_inline_states,
5663         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5664         * lto-streamer.h (lto_new_extern_inline_states,
5665         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5666         lto_forced_extern_inline_p): Kill.
5667
5668 2010-04-20  Richard Guenther  <rguenther@suse.de>
5669
5670         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5671         from vars that can have pointers.
5672         (process_constraint): Dump useless constraints.
5673
5674 2010-04-20  Richard Guenther  <rguenther@suse.de>
5675
5676         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5677         (dump_sa_points_to_info): Remove asserts.
5678         (init_base_vars): nothing_id isn't an escape point nor does it
5679         have pointers.
5680
5681 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5682
5683         * tree.h (TYPE_REF_IS_RVALUE): Define.
5684         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5685         should_move_die_to_comdat, prune_unused_types_walk): Handle
5686         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5687         (modified_type_die, gen_reference_type_die): Emit
5688         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5689         if TYPE_REF_IS_RVALUE and -gdwarf-4.
5690
5691 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5692
5693         PR target/43635
5694         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5695         calls for -fpic -m31 if they have been sibcall optimized.
5696
5697 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
5698
5699         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5700         ar.lc fixed and call-used.
5701
5702         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5703
5704 2010-04-19  Jan Hubicka  <jh@suse.cz>
5705
5706         * opts.c (decode_options): Disable whpr incompatible passes.
5707         * lto/lto.c (lto_1_to_1_map): Skip clones.
5708         (read_cgraph_and_symbols): Do not mark everything as needed.
5709         (do_whole_program_analysis): Do map only after optimizing;
5710         set proper cgraph_state; use passmanager.
5711
5712 2010-04-19  DJ Delorie  <dj@redhat.com>
5713
5714         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5715         POINTER_PLUS_EXPR and fix them.
5716
5717 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
5718
5719         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5720         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5721         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5722         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5723         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5724         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5725         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5726         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5727         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5728         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5729         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5730
5731 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5732
5733         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5734         (check_cond_move_block): Likewise.
5735         (cond_move_process_if_block): Likewise.
5736         (noce_find_if_block): Improve formatting.
5737         (find_if_header): Pass 0 to memset and tweak conditions.
5738         (cond_exec_find_if_block): Fix long lines and tweak conditions.
5739
5740 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5741
5742         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5743         for -gdwarf-4.
5744
5745         PR middle-end/43337
5746         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5747         with non-local decl doesn't need chain.
5748
5749 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5750
5751         * ira-color.c (allocno_reload_assign): Avoid accumulating
5752         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5753
5754 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5755
5756         * gimple.h (create_tmp_reg): Declare.
5757         * gimplify.c (create_tmp_reg): New function.
5758         (gimplify_return_expr): Use create_tmp_reg.
5759         (gimplify_omp_atomic): Likewise.
5760         (gimple_regimplify_operands): Likewise.
5761         * tree-dfa.c (make_rename_temp): Likewise.
5762         * tree-predcom.c (predcom_tmp_var): Likewise.
5763         (reassociate_to_the_same_stmt): Likewise.
5764         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5765         (get_replaced_param_substitute): Likewise.
5766         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5767         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5768         * tree-ssa-pre.c (get_representative_for): Likewise.
5769         (create_expression_by_pieces): Likewise.
5770         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5771         (create_tailcall_accumulator): Likewise.
5772
5773 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5774
5775         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5776         new_stmt.
5777         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5778
5779 2010-04-19  Richard Guenther  <rguenther@suse.de>
5780
5781         PR tree-optimization/43796
5782         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5783         from SCEV in the lattice.
5784         (vrp_visit_phi_node): Dump change.
5785
5786 2010-04-19  Richard Guenther  <rguenther@suse.de>
5787
5788         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5789         * configure: Re-generated.
5790
5791 2010-04-19  Richard Guenther  <rguenther@suse.de>
5792
5793         PR tree-optimization/43783
5794         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5795         constant ARRAY_REF operands two and three if possible.
5796
5797 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
5798
5799         PR target/43766
5800         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5801
5802 2010-04-19  Jie Zhang  <jie@codesourcery.com>
5803
5804         PR target/43662
5805         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5806
5807 2010-04-19  Ira Rosen  <irar@il.ibm.com>
5808
5809         PR tree-optimization/37027
5810         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5811         and macro to access it.
5812         (vectorizable_reduction): Add argument.
5813         (vect_get_slp_defs): Likewise.
5814         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5815         statements for possible use in SLP.
5816         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5817         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5818         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5819         add new argument.
5820         (vectorizable_reduction): Likewise.
5821         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5822         vect_get_slp_defs.
5823         (vectorizable_type_demotion, vectorizable_type_promotion,
5824         vectorizable_store): Likewise.
5825         (vect_analyze_stmt): Update call to vectorizable_reduction.
5826         (vect_transform_stmt): Likewise.
5827         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5828         (vect_build_slp_tree): Fix indentation. Check that there are no loads
5829         from different interleaving chains in same node.
5830         (vect_slp_rearrange_stmts): New function.
5831         (vect_supported_load_permutation_p): Allow load permutations for
5832         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5833         inside SLP nodes if necessary.
5834         (vect_analyze_slp_instance): Handle reductions.
5835         (vect_analyze_slp): Try to build SLP instances originating from groups
5836         of reductions.
5837         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5838         (vect_get_constant_vectors): Create initial vectors for reductions
5839         according to reduction code. Add new argument.
5840         (vect_get_slp_defs): Add new argument, pass it to
5841         vect_get_constant_vectors.
5842         (vect_schedule_slp_instance): Remove SLP tree root statements.
5843
5844 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5845
5846         * tree.h (ENUM_IS_SCOPED): Define.
5847         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5848         for ENUM_IS_SCOPED enums.
5849
5850 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5851
5852         * fold-const.c (fold_comparison): Use ssizetype.
5853         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5854         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5855         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5856         * tree-object-size.c (compute_object_sizes): Use size_type_node.
5857
5858         * tree.h (initialize_sizetypes): Remove parameter.
5859         (build_common_tree_nodes): Remove second parameter.
5860         * stor-layout.c (initialize_sizetypes): Remove parameter.
5861         Always create an unsigned type.
5862         (set_sizetype): Assert that the passed type is unsigned and simplify.
5863         * tree.c (build_common_tree_nodes): Remove second parameter.
5864         Adjust call to initialize_sizetypes.
5865         * c-decl.c (c_init_decl_processing): Remove second argument in call to
5866         build_common_tree_nodes.
5867
5868 2010-04-18  Matthias Klose  <doko@ubuntu.com>
5869
5870         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5871
5872 2010-04-18  Ira Rosen  <irar@il.ibm.com>
5873
5874         PR tree-optimization/43771
5875         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
5876         load permutation doesn't have gaps.
5877
5878 2010-04-18  Jan Hubicka  <jh@suse.cz>
5879
5880         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
5881         (sse_prologue_save_insn expander): Use new pattern.
5882         (sse_prologue_save_insn1): New pattern and splitter.
5883         (sse_prologue_save_insn): Update to deal also with 64bit aligned
5884         blocks.
5885         * i386.c (setup_incoming_varargs_64): Do not compute jump
5886         destination here.
5887         (ix86_gimplify_va_arg): Update alignment needed.
5888         (ix86_local_alignment): Do not align all local arrays to 128bit.
5889
5890 2010-04-17  Jan Hubicka  <jh@suse.cz>
5891
5892         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
5893
5894 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5895
5896         * arm.md (negdi2): Remove redundant code to force values into a
5897         register.
5898
5899 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5900
5901         * arm/bpabi.S: Add EABI alignment attributes to objects.
5902         * arm/bpabi-v6m.S: Likewise.
5903         * arm/crti.asm: Likewise.
5904         * arm/crtn.asm: Likewise.
5905         * arm/lib1funcs.asm: Likewise.
5906         * arm/libunwind.S: Likewise.
5907
5908 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5909
5910         * arm-protos.h (tune_params): New structure.
5911         * arm.c (current_tune): New variable.
5912         (arm_constant_limit): Delete.
5913         (struct processors): Add pointer to the tune parameters.
5914         (arm_slowmul_tune): New tuning option.
5915         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
5916         (all_cores): Adjust to pick up the tuning model.
5917         (arm_constant_limit): New function.
5918         (arm_override_options): Select the appropriate tuning model.  Delete
5919         initialization of arm_const_limit.
5920         (arm_split_constant): Use the new constant-limit model.
5921         (arm_rtx_costs): Pick up the current tuning model.
5922         * arm.md (is_strongarm, is_xscale): Delete.
5923         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
5924         for Xscale variant architectures.
5925         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
5926
5927 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5928
5929         * config/arm/arm.c (arm_gen_constant): Remove unused variable
5930         can_shift.
5931         (arm_rtx_costs_1): Remove unused variable extra_cost.
5932         (arm_unwind_emit_set): Use variable offset.
5933         (thumb1_output_casesi): Remove unused variable flags.
5934
5935 2010-04-16  Jeff Law  <law@redhat.com>
5936
5937         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
5938         needing assignment rather than doing a two-phase assignment.  Remove
5939         unused variable 'm'.
5940
5941 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5942
5943         PR bootstrap/43767
5944         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
5945
5946 2010-04-16  Doug Kwan  <dougkwan@google.com>
5947
5948         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
5949         (next_operand_entry_id): New static variable.
5950         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
5951         (add_to_ops_vec): Assigned unique ID to operand entry.
5952         (struct oecount_s): New field ID.
5953         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
5954         (undistribute_ops_list): Assign unique IDs to oecounts.
5955         (init_reassoc): reset next_operand_entry_id.
5956
5957 2010-04-16  Doug Kwan  <dougkwan@google.com>
5958
5959         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
5960         missing left parenthesis.
5961
5962 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
5963
5964         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
5965         *btdi_rex64 using SWI48 mode iterator.
5966         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
5967         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
5968         *jcc_btdi_mask_rex64.
5969
5970 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
5971
5972         * double-int.h (tree_to_double_int): Convert to macro.
5973         * double-int.c (tree_to_double_int): Remove.
5974
5975 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5976
5977         PR debug/43762
5978         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
5979         with want_address 2 and in case a single element list might be
5980         possible, call it again with want_address 0.
5981
5982 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5983
5984         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
5985         case 'W' print operands for HI mode.
5986         * config/h8300/h8300.h (Y0, Y2) : New constraints.
5987         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
5988         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
5989         * config/h8300/predicate.md (bit_register_indirect_operand): New.
5990
5991         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
5992
5993         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
5994         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
5995         #xx:3 and #xx:4 mode.
5996
5997         * config/h8300/h8300.md (inverted load with HImode dest): Add
5998         support for H8300SX.
5999
6000         * config/h8300/predicate.md (bit_operand): Allow immediate values that
6001         satisfy 'U' constraint.
6002
6003 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6004
6005         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
6006         * configure: Regenerate.
6007         * config.in: Regenerate.
6008         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
6009         works.
6010
6011 2010-04-16  Richard Guenther  <rguenther@suse.de>
6012
6013         * tree.h (struct tree_decl_minimal): Move pt_uid ...
6014         (struct tree_decl_common): ... here.
6015         (DECL_PT_UID): Adjust.
6016         (SET_DECL_PT_UID): Likewise.
6017         (DECL_PT_UID_SET_P): Likewise.
6018
6019 2010-04-16  Richard Guenther  <rguenther@suse.de>
6020
6021         PR tree-optimization/43572
6022         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
6023         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
6024         * tree-flow.h (is_call_clobbered): Remove.
6025         * tree-flow-inline.h (is_call_clobbered): Likewise.
6026         * tree-dfa.c (dump_variable): Do not dump call clobber state.
6027         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
6028         (execute_return_slot_opt): Adjust.
6029         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
6030         check for call clobbered vars here.
6031         (find_tail_calls): Move tailcall verification to the
6032         proper place.
6033
6034 2010-04-16  Diego Novillo  <dnovillo@google.com>
6035
6036         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
6037
6038 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
6039
6040         PR target/40603
6041         * config/arm/arm.md (cbranchqi4): New pattern.
6042         * config/arm/predicates.md (const0_operand,
6043         cbranchqi4_comparison_operator): New predicates.
6044
6045 2010-04-16  Richard Guenther  <rguenther@suse.de>
6046
6047         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
6048         (dump_gimple_stmt): Likewise.
6049
6050 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
6051
6052         * recog.h (struct recog_data): New field is_operator.
6053         (struct insn_operand_data): New field is_operator.
6054         * recog.c (extract_insn): Set recog_data.is_operator.
6055         * genoutput.c (output_operand_data): Emit code to set the
6056         is_operator field.
6057         * reload.c (find_reloads): Use it rather than testing for an
6058         empty constraint string.
6059
6060         PR target/41514
6061         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
6062         If the previous insn is a cbranchsi4_insn with the same arguments,
6063         omit the compare instruction.
6064
6065         * config/arm/arm.md (addsi3_cbranch): If destination is a high
6066         register, inputs must be low registers and we need a low register
6067         scratch.  Handle alternative 2 like alternative 3.
6068
6069 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
6070
6071         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
6072         don't call get_addr on both.  If one expression is a VALUE and
6073         the other a REG, check VALUE's locs if the REG isn't among them.
6074
6075 2010-04-16  Christian Bruel  <christian.bruel@st.com>
6076
6077         * config/sh/sh.h (sh_frame_pointer_required): New function.
6078         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
6079         (flag_omit_frame_pointer) Set.
6080         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
6081         (rounded_frame_size): Adjust size with outgoing_args_size.
6082         (sh_set_return_address): Must return from stack pointer.
6083         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
6084         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
6085         (ACCUMULATE_OUTGOING_ARGS): Define.
6086         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
6087         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
6088
6089 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6090
6091         PR target/43471
6092         * config/sh/sh.c (sh_legitimize_reload_address): Use
6093         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
6094         Remove a unneeded check for offset_base.
6095
6096 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
6097
6098         * configure: Regenerated.
6099
6100 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6101
6102         * config/s390/s390.c (s390_call_save_register_used): Switch back
6103         to HARD_REGNO_NREGS.
6104
6105 2010-04-15  Richard Guenther  <rguenther@suse.de>
6106
6107         * alias.c (alias_set_subset_of): Handle alias-set zero
6108         child properly.
6109
6110 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
6111             Julian Brown  <julian@codesourcery.com>
6112
6113         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
6114         alternatives according to use of high and low regs.
6115         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
6116         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
6117         optimizing for size on Thumb-2.
6118
6119 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
6120
6121         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
6122
6123 2010-04-15  Richard Guenther  <rguenther@suse.de>
6124
6125         * tree-ssa-structalias.c (struct variable_info): Add
6126         is_fn_info flag.
6127         (new_var_info): Initialize it.
6128         (dump_constraints): Support printing last added constraints.
6129         (debug_constraints): Adjust.
6130         (dump_constraint_graph): Likewise.
6131         (make_heapvar_for): Check for NULL cfun.
6132         (get_function_part_constraint): New function.
6133         (get_fi_for_callee): Likewise.
6134         (find_func_aliases): Properly implement IPA PTA constraints.
6135         (process_ipa_clobber): New function.
6136         (find_func_clobbers): Likewise.
6137         (insert_into_field_list_sorted): Remove.
6138         (create_function_info_for): Properly allocate vars for IPA mode.
6139         Do not use insert_into_field_list_sorted.
6140         (create_variable_info_for): Properly generate constraints for
6141         global vars in IPA mode.
6142         (dump_solution_for_var): Always dump the solution.
6143         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
6144         (find_what_var_points_to): Adjust.
6145         (pt_solution_set): Change.
6146         (pt_solution_ior_into): New function.
6147         (pt_solution_empty_p): Export.
6148         (pt_solution_includes_global): Adjust.
6149         (pt_solution_includes_1): Likewise.
6150         (pt_solutions_intersect_1): Likewise.
6151         (dump_sa_points_to_info): Check some invariants.
6152         (solve_constraints): Move constraint dumping ...
6153         (compute_points_to_sets): ... here.
6154         (ipa_pta_execute): ... and here.
6155         (compute_may_aliases): Do not re-compute points-to info
6156         locally if IPA info is available.
6157         (ipa_escaped_pt): New global var.
6158         (ipa_pta_execute): Properly implement IPA PTA.
6159         * tree-into-ssa.c (dump_decl_set): Support dumping
6160         decls not in referenced-vars.
6161         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
6162         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
6163         (dump_points_to_solution): Likewise.
6164         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
6165         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
6166         (remap_gimple_stmt): Reset call clobber/use information if necessary.
6167         (copy_decl_to_var): Copy DECL_PT_UID.
6168         (copy_result_decl_to_var): Likewise.
6169         * tree.c (make_node_stat): Initialize DECL_PT_UID.
6170         (copy_node_stat): Copy it.
6171         * tree.h (DECL_PT_UID): New macro.
6172         (SET_DECL_PT_UID): Likewise.
6173         (DECL_PT_UID_SET_P): Likewise.
6174         (struct tree_decl_minimal): Add pt_uid member.
6175         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
6176         (pt_solution_empty_p): Declare.
6177         (pt_solution_set): Adjust.
6178         (ipa_escaped_pt): Declare.
6179         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
6180         * gimple-pretty-print.c (pp_points_to_solution): New function.
6181         (dump_gimple_call): Dump call clobber/use information.
6182         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
6183         * tree-pass.h (TDF_ALIAS): New dump option.
6184         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
6185         * doc/invoke.texi (-fipa-pta): Update documentation.
6186
6187 2010-04-15  Richard Guenther  <rguenther@suse.de>
6188
6189         * Makefile.in (OBJS-common): Add gimple-fold.o.
6190         (gimple-fold.o): New rule.
6191         * tree.h (maybe_fold_offset_to_reference,
6192         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
6193         prototypes ...
6194         * gimple.h: ... here.
6195         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
6196         may_propagate_address_into_dereference): Move prototypes ...
6197         * gimple.h: ... here.
6198         * tree-ssa-ccp.c (get_symbol_constant_value,
6199         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
6200         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
6201         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
6202         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
6203         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6204         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6205         gimplify_and_update_call_from_tree): Move ...
6206         * gimple-fold.c: ... here.  New file.
6207         (ccp_fold_builtin): Rename to ...
6208         (gimple_fold_builtin): ... this.
6209         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6210
6211 2010-04-15  Richard Guenther  <rguenther@suse.de>
6212
6213         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6214         fit_double_type, force_fit_type_double, add_double_with_sign,
6215         neg_double, mul_double_with_sign, lshift_double, rshift_double,
6216         lrotate_double, rrotate_double, div_and_round_double): Move ...
6217         * double-int.c: ... here.
6218         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6219         add_double, neg_double, mul_double_with_sign, mul_double,
6220         lshift_double, rshift_double, lrotate_double, rrotate_double,
6221         div_and_round_double): Move prototypes ...
6222         * double-int.h: ... here.
6223
6224 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
6225
6226         PR target/43742
6227         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
6228         matching constraints to ensure inputs match the output.
6229
6230 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6231
6232         PR target/43742
6233         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6234         in an input-only operand.
6235
6236 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
6237
6238         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6239         (double_int_not, double_int_lshift, double_int_rshift): Declare.
6240         (double_int_negative_p): Convert to static inline function.
6241         * double-int.c (double_int_lshift, double_int_lshift): New functions.
6242         (double_int_negative_p): Remove.
6243         * tree.h (lshift_double, rshift_double):
6244         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6245         * fold-const.c (fold_convert_const_int_from_real,
6246         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6247         (lshift_double): Change type of arith argument to bool.
6248         (rshift_double): Change type of arith argument to bool. Correct
6249         comment.
6250         * expmed.c (mask_rtx, lshift_value): (Ditto.).
6251
6252 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
6253
6254         PR target/21803
6255         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6256         at the start and end of the then/else blocks, and omit them from the
6257         conversion.
6258         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
6259         argument; all callers changed.  Pass zero to old_insns_match_p instead.
6260         (flow_find_head_matching_sequence): New function.
6261         (old_insns_match_p): Check REG_EH_REGION notes for calls.
6262         * basic-block.h (flow_find_cross_jump,
6263         flow_find_head_matching_sequence): Declare functions.
6264
6265 2010-04-14  Jason Merrill  <jason@redhat.com>
6266
6267         PR c++/36625
6268         * c-common.c (attribute_takes_identifier_p): New fn.
6269         * c-common.h: Declare it.
6270
6271 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6272
6273         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6274         splitter condition.
6275         (*udivmod<mode>4): Ditto.
6276
6277 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6278
6279         * config/i386/i386.md (maxmin_int): Rename code attribute from
6280         maxminiprefix and update all users.
6281         (maxmin_float): Ditto from maxminfprefix.
6282         (logic): Ditto from logicprefix.
6283         (absneg_mnemonic): Ditto from absnegprefix.
6284         * config/i386/mmx.md: Update all users of maxminiprefix,
6285         maxminfprefix and logicprefix for rename.
6286         * config/i386/sse.md: Ditto.
6287         * config/i386/sync.md (sync_<code><mode>): Update for
6288         logicprefix rename.
6289
6290 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6291
6292         PR 42966
6293         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6294         warnings converted to errors.
6295
6296 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6297
6298         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6299         used insn_type variable.
6300         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6301         to avoid set-but-not-used warning.
6302
6303 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6304
6305         * df-core.c (df_ref_debug): Change format string placeholder
6306         from 0x%x to %#x.
6307         * dwarf2asm.c (dw2_asm_output_data_raw,
6308         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6309         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6310         * dwarf2out.c (output_cfi, output_cfi_directive,
6311         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6312         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6313         Ditto.
6314         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6315         * print-rtl.c (print_rtx): Ditto.
6316
6317 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6318
6319         PR middle-end/42694
6320         * builtins.c (expand_builtin_pow_root): New function to expand pow
6321         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6322         series of sqrt and cbrt calls under -ffast-math.
6323         (expand_builtin_pow): Call it.
6324
6325 2010-04-14  Michael Matz  <matz@suse.de>
6326
6327         PR tree-optimization/42963
6328         * tree-cfg.c (touched_switch_bbs): New static variable.
6329         (group_case_labels_stmt): New function broken out from ...
6330         (group_case_labels): ... here, use the above.
6331         (start_recording_case_labels): Allocate touched_switch_bbs.
6332         (end_recording_case_labels): Deallocate it, call
6333         group_case_labels_stmt.
6334         (gimple_redirect_edge_and_branch): Remember index of affected BB.
6335
6336 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6337
6338         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6339         from insn template.
6340
6341 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6342
6343         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6344
6345 2010-04-13  Jan Hubicka  <jh@suse.cz>
6346
6347         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6348         of optimized out static functions.
6349         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6350         cost computation.  Also sanity check for overflows.
6351         (update_caller_keys): Update cgraph_edge_badness call; properly
6352         update fibheap and sanity check that it is up to date.
6353         (add_new_edges_to_heap): Update cgraph_edge_badness.
6354         (cgraph_decide_inlining_of_small_function): Likewise;
6355         add sanity checking that badness in heap is up to date;
6356         improve dumping of reason; Update badness of calls to the
6357         offline copy of function currently inlined; dump badness
6358         of functions not inlined because of unit growth limits.
6359
6360 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6361
6362         PR middle-end/32628
6363         * c-common.c (pointer_int_sum): Disregard overflow that occured only
6364         because of sign-extension change when converting to sizetype here...
6365         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6366
6367         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6368         the folding to constants.  Remove redundant final conversion.
6369         (fold_binary) <associate>: Do not associate if the re-association of
6370         constants alone overflows.
6371         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6372         to the end of the list.
6373         (multiple_of_p) <COND_EXPR>: New case.
6374
6375 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6376
6377         * opt-functions.awk (opt_sanitized_name): New.
6378         (opt_enum): New.
6379         * optc-gen.awk: Use it
6380         * opth-gen.awk: Use it.
6381
6382 2010-04-13  Martin Jambor  <mjambor@suse.cz>
6383
6384         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6385         (sra_modify_assign): Delete stmts loading dead data even if racc has no
6386         children.  Call replace_uses_with_default_def_ssa_name to handle
6387         SSA_NAES on lhs.
6388
6389 2010-04-13  Michael Matz  <matz@suse.de>
6390
6391         PR middle-end/43730
6392         * builtins.c (expand_builtin_interclass_mathfn): Also create
6393         a register if the predicate doesn't match.
6394
6395 2010-04-13  Diego Novillo  <dnovillo@google.com>
6396
6397         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
6398         * c-pch.c: Include timevar.h.
6399         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
6400         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
6401         * ggc-common.c: Include timevar.h.
6402         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
6403         * timevar.def (TV_PCH_SAVE): Define.
6404         (TV_PCH_CPP_SAVE): Define.
6405         (TV_PCH_PTR_REALLOC): Define.
6406         (TV_PCH_PTR_SORT): Define.
6407         (TV_PCH_RESTORE): Define.
6408         (TV_PCH_CPP_RESTORE): Define.
6409
6410 2010-04-13  Michael Matz  <matz@suse.de>
6411
6412         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
6413         into MINUS_EXPRs.
6414         (can_reassociate_p): New function.
6415         (break_up_subtract_bb, reassociate_bb): Use it.
6416
6417 2010-04-13  Richard Guenther  <rguenther@suse.de>
6418
6419         PR bootstrap/43737
6420         * builtins.c (c_readstr): Fix assert.
6421
6422 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
6423
6424         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6425         when generating cltd insn.
6426
6427         (*ashl<mode>3_1): Remove special handling for register operand 2.
6428         (*ashlsi3_1_zext): Ditto.
6429         (*ashlhi3_1): Ditto.
6430         (*ashlhi3_1_lea): Ditto.
6431         (*ashlqi3_1): Ditto.
6432         (*ashlqi3_1_lea): Ditto.
6433         (*<shiftrt_insn><mode>3_1): Ditto.
6434         (*<shiftrt_insn>si3_1_zext): Ditto.
6435         (*<shiftrt_insn>qi3_1_slp): Ditto.
6436         (*<rotate_insn><mode>3_1): Ditto.
6437         (*<rotate_insn>si3_1_zext): Ditto.
6438         (*<rotate_insn>qi3_1_slp): Ditto.
6439
6440 2010-04-13  Richard Guenther  <rguenther@suse.de>
6441
6442         * tree-ssa-structalias.c (callused_id): Remove.
6443         (call_stmt_vars): New.
6444         (get_call_vi): Likewise.
6445         (lookup_call_use_vi): Likewise.
6446         (lookup_call_clobber_vi): Likewise.
6447         (get_call_use_vi): Likewise.
6448         (get_call_clobber_vi): Likewise.
6449         (make_transitive_closure_constraints): Likewise.
6450         (handle_const_call): Adjust to do per-call call-used handling.
6451         (handle_pure_call): Likewise.
6452         (find_what_var_points_to): Remove general callused handling.
6453         (init_base_vars): Likewise.
6454         (init_alias_vars): Initialize call_stmt_vars.
6455         (compute_points_to_sets): Process call-used and call-clobbered
6456         vars for call statements.
6457         (delete_points_to_sets): Free call_stmt_vars.
6458
6459 2010-04-13  Richard Guenther  <rguenther@suse.de>
6460
6461         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6462         Only add RW dependence for dependence distance zero.
6463         Adjust maximal vectorization factor according to dependences.
6464         Move alignment handling ...
6465         (vect_find_same_alignment_drs): ... here.  New function.
6466         (vect_analyze_data_ref_dependences): Adjust.
6467         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6468         (vect_analyze_data_refs): Adjust minimal vectorization factor
6469         according to data references.
6470         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6471         dependences before determining the vectorization factor.
6472         Analyze alignment after determining the vectorization factor.
6473         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6474         dependences before alignment.
6475         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6476         Adjust prototype.
6477         (vect_analyze_data_refs): Likewise.
6478         (MAX_VECTORIZATION_FACTOR): New define.
6479
6480 2010-04-13  Duncan Sands  <baldrick@free.fr>
6481
6482         * except.h (lang_eh_type_covers): Remove.
6483         * except.c (lang_eh_type_covers): Likewise.
6484
6485 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6486             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6487
6488         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6489         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6490         UNITS_PER_LONG where it is ABI relevant.
6491         (s390_return_addr_rtx): Likewise.
6492         (s390_back_chain_rtx): Likewise.
6493         (s390_frame_area): Likewise.
6494         (s390_frame_info): Likewise.
6495         (s390_initial_elimination_offset): Likewise.
6496         (save_gprs): Likewise.
6497         (s390_emit_prologue): Likewise.
6498         (s390_emit_epilogue): Likewise.
6499         (s390_function_arg_advance): Likewise.
6500         (s390_function_arg): Likewise.
6501         (s390_va_start): Likewise.
6502         (s390_gimplify_va_arg): Likewise.
6503         (s390_function_profiler): Likewise.
6504         (s390_optimize_prologue): Likewise.
6505         (s390_rtx_costs): Likewise.
6506         (s390_secondary_reload): Likewise.
6507         (s390_promote_function_mode): Likewise.
6508         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6509         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6510         registers available.
6511         (s390_unwind_word_mode): New function.
6512         (s390_function_value): Split 64 bit values into register pair if
6513         used as return value.
6514         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6515         function call parameters.  Handle parallels.
6516         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6517         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6518         (DWARF_CIE_DATA_ALIGNMENT): New macro.
6519         (s390_expand_setmem): Remove unused variable src_addr.
6520         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6521         deal with 64 bit registers.
6522         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6523         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6524         (UNITS_PER_LONG): New macro.
6525         * libjava/include/s390-signal.h: Define extended ucontext
6526         structure containing the upper halfs of the 64 bit registers.
6527
6528 2010-04-13  Simon Baldwin  <simonb@google.com>
6529
6530         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6531
6532 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6533
6534         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6535         rvalue on the RHS if the LHS is of a non-renamable type.
6536         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6537
6538 2010-04-13  Matthias Klose  <doko@ubuntu.com>
6539
6540         * gcc.c (cc1_options): Handle -iplugindir before processing
6541         the cc1 spec. Only add -iplugindir once.
6542         (cpp_unique_options): Add -iplugindir option if -fplugin* options
6543         found.
6544         * common.opt (iplugindir): Remove `Separate' property, initialize.
6545         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6546         option.
6547         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6548         (distclean): Remove plugin dir.
6549         * doc/invoke.texi: Document -iplugindir.
6550
6551 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
6552
6553         * doc/plugins.texi (Loading Plugins): Document short
6554         -fplugin=foo option.
6555         (Plugin API): Mention default_plugin_dir_name function.
6556
6557         * gcc.c (find_file_spec_function): Add new declaration.
6558         (static_spec_func): Use it for "find-file".
6559         (find_file_spec_function): Add new function.
6560         (cc1_options): Add -iplugindir option if -fplugin* options found.
6561
6562         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6563
6564         * plugin.c (add_new_plugin): Updated comment, and handle short
6565         plugin name.
6566         (default_plugin_dir_name): Added new function.
6567
6568         * common.opt (iplugindir): New option to set the plugin directory.
6569
6570 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
6571
6572         * config/i386/i386.md (any_rotate): New code iterator.
6573         (rotate_insn): New code attribute.
6574         (rotate): Ditto.
6575         (SWIM124): New mode iterator.
6576         (<rotate_insn>ti3): New expander.
6577         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6578         any_rotate code iterator.
6579         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6580         using any_rotate code iterator and SWIM124 mode iterator.
6581         (ix86_rotlti3): New insn_and_split pattern.
6582         (ix86_rotrti3): Ditto.
6583         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6584         ix86_rotl{di,ti}3 patterns.
6585         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6586         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6587         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6588         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6589         code iterator and SWI mode iterator.
6590         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6591         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6592         code iterator.
6593         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6594         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6595         (bswap rotatert splitter): Add splitter.
6596         (bswap splitter): Macroize splitter using any_rotate code iterator.
6597         Add insn predicate to split only for TARGET_USE_XCHGB or when
6598         optimizing function for size.
6599
6600 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6601
6602         * config/pa/pa.c (emit_move_sequence): Remove use of
6603         deleted variable flag_argument_noalias.
6604
6605 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6606
6607         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6608         configurations.
6609         Add to unsupported targets list.
6610         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6611         sparc*-sun-solaris2.[567]* from target lists.
6612         * configure: Regenerate.
6613         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6614         removal.
6615         Remove Solaris 7 patch references.
6616         (Specific, sparc-sun-solaris2.7): Removed.
6617         (sparc-sun-solaris2*): Update Solaris 7 example.
6618         (sparc64-*-solaris2*): Likewise.
6619
6620 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6621
6622         * config.build (alpha*-dec-osf4*): Remove.
6623         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6624         of obsolete configurations.
6625         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6626         support.
6627         * config/alpha/t-osf4: Renamed to ...
6628         * config/alpha/t-osf5: ... this.
6629         * config/alpha/osf.h: Renamed to ...
6630         * config/alpha/osf5.h: ... this.
6631         Merged old osf5.h contents.
6632         Update comments.
6633         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6634         (EXTRA_SPECS): Removed.
6635         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6636         reflect removal of Tru64 UNIX V4.0/V5.0 support.
6637         Document that.
6638
6639 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6640
6641         * doc/contrib.texi (Contributors, Rainer Orth): Update.
6642
6643 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
6644
6645         PR/43702
6646         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6647         __thiscall convention.
6648
6649 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6650
6651         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6652         orig_base.
6653         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6654
6655 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6656
6657         * function.c (assign_parms_initialize_all): Add unused attribute
6658         to fntype.
6659
6660 2010-04-12  Richard Guenther  <rguenther@suse.de>
6661
6662         * gsstruct.def (GSS_CALL): New.
6663         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6664         * gimple.h: Include tree-ssa-alias.h.
6665         (struct gimple_statement_call): New.
6666         (union gimple_statement_struct_d): Add gimple_call member.
6667         (gimple_call_reset_alias_info): Declare.
6668         (gimple_call_use_set): New function.
6669         (gimple_call_clobber_set): Likewise.
6670         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6671         * gimple.c (gimple_call_reset_alias_info): New function.
6672         (gimple_build_call_1): Call it.
6673         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6674         * tree-inline.c (remap_gimple_stmt): Likewise.
6675         (expand_call_inline): Remove callused handling.
6676         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6677         * tree-dfa.c (dump_variable): Likewise.
6678         * tree-parloops.c (parallelize_loops): Likewise.
6679         * tree-ssa.c (init_tree_ssa): Likewise.
6680         (delete_tree_ssa): Likewise.
6681         * tree-flow-inline.h (is_call_used): Remove.
6682         * tree-flow.h (struct gimple_df): Remove callused member.
6683         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6684         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6685         (ref_maybe_used_by_call_p_1): Simplify.
6686         (call_may_clobber_ref_p_1): Likewise.
6687         * tree-ssa-structalias.c (compute_points_to_sets): Set
6688         the call stmt used and clobbered sets.
6689         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6690         (find_tail_calls): Verify the tail call.
6691
6692 2010-04-12  Richard Guenther  <rguenther@suse.de>
6693
6694         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6695         single-iteration always-inline inlining.
6696         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6697         (cgraph_decide_inlining): Do not handle always-inline specially.
6698         (try_inline): Remove always-inline cycle detection special case.
6699         Do not recurse on always-inlines.
6700         (cgraph_early_inlining): Do not iterate if not optimizing.
6701         (cgraph_gate_early_inlining): remove.
6702         (pass_early_inline): Run unconditionally.
6703         (gate_cgraph_decide_inlining): New function.
6704         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
6705         not inlining or optimizing.
6706         (cgraph_decide_inlining_of_small_functions): Also consider
6707         always-inline functions.
6708         (cgraph_default_inline_p): Return true for nodes which should
6709         disregard inline limits.
6710         (estimate_function_body_sizes): Assume zero size and time for
6711         nodes which are marked as disregarding inline limits.
6712         (cgraph_decide_recursive_inlining): Do not perform recursive
6713         inlining on always-inline nodes.
6714
6715 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
6716
6717         PR bootstrap/43699
6718         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6719         for exprs satisfying handled_component_p.
6720
6721 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
6722
6723         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6724         non-constant aggregate elements.
6725
6726         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6727         is a real initialization.
6728
6729 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
6730
6731         PR c/36774
6732         * c-decl.c (start_function): Move forward check for nested function.
6733
6734 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
6735
6736         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6737         * config/sh/sh.c: Include reload.h.
6738         (sh_legitimize_reload_address): New.
6739         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6740         sh_legitimize_reload_address.
6741
6742 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6743
6744         * config/sh/sh.md (*movqi_pop): New insn pattern.
6745         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6746
6747 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6748
6749         * config/i386/i386.md (any_shiftrt): New code iterator.
6750         (shiftrt_insn): New code attribute.
6751         (shiftrt): Ditto.
6752         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6753         using any_shiftrt code iterator.
6754         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6755         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6756         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6757         pattern from corresponding peephole2 patterns.
6758         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6759         using any_shiftrt code iterator.
6760         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6761         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6762         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6763         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6764         *{ashr,lshr}<mode>3_cmp_zext.
6765         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6766
6767 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6768
6769         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6770         scratch register.
6771         (*lshr<mode>3_cconly): Ditto.
6772
6773 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6774
6775         * config/i386/i386.md (lshr<mode>3): Macroize expander from
6776         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6777         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6778         pattern from *lshr{di,ti}3_1 and corresponding splitters using
6779         DWI mode iterator.
6780         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6781         from corresponding peephole2 patterns.
6782         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6783         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6784         and *lshrdi3_1_rex64 using SWI mode iterator.
6785         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6786         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6787         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6788         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6789         and *lshrdi3_cmp_rex64 using SWI mode iterator.
6790         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6791         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6792         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6793         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6794         SWI mode iterator.
6795
6796 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
6797
6798         * config/i386/i386.md (ashr<mode>3): Macroize expander from
6799         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6800         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6801         pattern from *ashr{di,ti}3_1 and corresponding splitters using
6802         DWI mode iterator.
6803         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6804         from corresponding peephole2 patterns.
6805         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6806         (ashrsi3_cvt): Rename from ashrsi3_31.
6807         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6808         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6809         and x86_64_shift_adj_3 using SWI48 mode iterator.
6810         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6811         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6812         and *ashrdi3_1_rex64 using SWI mode iterator.
6813         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6814         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6815         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6816         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6817         and *ashrdi3_cmp_rex64 using SWI mode iterator.
6818         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6819         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6820         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6821         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6822         SWI mode iterator.
6823         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6824         * config/i386/i386.c (ix86_split_ashr): Update for renamed
6825         x86_shift<mode>_adj_3 expanders.
6826
6827 2010-04-10  Wei Guozhi  <carrot@google.com>
6828
6829         PR target/42601
6830         * config/arm/arm.c (arm_pic_static_addr): New function.
6831         (legitimize_pic_address): Call arm_pic_static_addr when it detects
6832         a static symbol.
6833         (arm_output_addr_const_extra): Output expression for new pattern.
6834         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6835
6836 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
6837
6838         * ira-costs.c (record_reg_classes): Ignore alternatives that are
6839         not enabled.
6840
6841         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6842         * web.c: Include "insn-config.h" and "recog.h".
6843         (union_match_dups): New function.
6844         (web_main): Call it.
6845         (union_defs): Don't try to recognize match_dups.
6846
6847         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6848         if doing so would replace the entire pattern.
6849
6850 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
6851
6852         PR target/43707
6853         PR target/43709
6854         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6855         and splitter pattern.  Change splitter operand 1 predicate to
6856         nonmemory_operand.
6857
6858 2010-04-09  Martin Jambor  <mjambor@suse.cz>
6859
6860         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6861         lattices are addresses of CONST_DECLs with the same initial value.
6862         (ipcp_print_all_lattices): Print values of CONST_DECLs.
6863         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6864
6865 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
6866             Bernd Schmidt  <bernds@codesourcery.com>
6867
6868         * loop-invariant.c (replace_uses): New static function.
6869         (move_invariant_reg): Use it to ensure we can replace the uses.
6870
6871 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
6872
6873         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
6874         function template.
6875         (picochip_override_options): Enable section anchors only above -O1.
6876         (picochip_reorg): Fixed a couple of build warnings.
6877
6878 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6879
6880         * configure.ac (plugin -rdynamic test): Log result.
6881         * configure: Regenerate.
6882         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
6883         (RDYNAMIC_SPEC): Define.
6884         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
6885
6886 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6887
6888         * configure.ac: Determine Sun ld version numbers.
6889         (comdat_group): Restrict GNU ld version checks to gld.
6890         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
6891         (enable_comdat): Support --enable-comdat.
6892         * configure: Regenerate.
6893         * doc/install.texi (Configuration): Document --enable-comdat.
6894
6895 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6896
6897         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
6898         * config/sol2-gld.h: ... here.
6899         * config.gcc (sparc*-*-solaris2*): Reflect this.
6900         (i[34567]86-*-solaris2*): Use it.
6901
6902 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
6903
6904         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
6905         setup_clocks_p.
6906         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
6907
6908 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6909
6910         PR 42965
6911         * diagnostic.c (diagnostic_initialize): Initialize
6912         some_warnings_are_errors.
6913         (diagnostic_finish): New.
6914         (diagnostic_action_after_output): Call it before exiting.
6915         (diagnostic_report_diagnostic): Do not print message here. Set
6916         some_warnings_are_errors.
6917         * diagnostic.h (diagnostic_context): Delete
6918         issue_warnings_are_errors_message. Add some_warnings_are_errors.
6919         (diagnostic_finish): Declare.
6920         * toplev.c (toplev_main): Call it before exit.
6921
6922 2010-04-09  Jason Merrill  <jason@redhat.com>
6923
6924         PR c++/42623
6925         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
6926         for incomplete type.
6927
6928         PR c++/41788
6929         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
6930         based on a warning flag.
6931
6932 2010-04-09  Richard Guenther  <rguenther@suse.de>
6933
6934         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
6935
6936 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
6937
6938         PR bootstrap/43684
6939         * varasm.c (default_assemble_visibility): Wrap vars that are
6940         set, but unused, by targets without GAS.
6941         * config/rs6000/rs6000.c (paired_emit_vector_compare):
6942         Remove set, but unused, vars.
6943         (rs6000_legitimize_tls_address): Likewise.
6944         (altivec_expand_dst_builtin): Likewise.
6945         * config/darwin.c (machopic_classify_symbol): Likewise.
6946         (machopic_indirection_name): Likewise.
6947
6948 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
6949
6950         * config/i386/i386.md (DWI): New mode iterator.
6951         (S): New mode attribute.
6952         (shift_operand): Ditto.
6953         (shift_immediate_operand): Ditto.
6954         (ashl_input_operand): Ditto.
6955         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
6956         using SDWIM mode iterator.
6957         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6958         pattern from *ashl{di,ti}3_1 and corresponding splitters using
6959         DWI mode iterator.
6960         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
6961         from corresponding peephole2 patterns.
6962         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
6963         and x86_64_shift_adj_1 using SWI48 mode iterator.
6964         (x86_shift<mode>_adj_2): Ditto.
6965         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
6966         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
6967         using SWI48 mode iterator.
6968         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
6969         *ashldi3_cmp_rex64 using SWI mode iterator.
6970         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
6971         *ashldi3_cconly_rex64 using SWI mode iterator.
6972         * config/i386/i386.c (ix86_split_ashl): Update for renamed
6973         x86_shift<mode>_adj_{1,2}.
6974         (ix86_split_ashr): Ditto.
6975         (ix86_split_lshr): Ditto.
6976
6977 2010-04-09  Richard Guenther  <rguenther@suse.de>
6978
6979         * target.h (builtin_conversion): Pass in input and output types.
6980         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
6981         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
6982         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
6983         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
6984
6985         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
6986         Handle AVX modes.
6987         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
6988
6989 2010-04-09  Richard Guenther  <rguenther@suse.de>
6990
6991         PR target/43152
6992         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
6993
6994 2010-04-09  Richard Guenther  <rguenther@suse.de>
6995
6996         * tree-vectorizer.h (struct _stmt_vec_info): Document
6997         that vectype is the type of the LHS.
6998         (supportable_widening_operation, supportable_narrowing_operation):
6999         Get both input and output vector types as arguments.
7000         (vect_is_simple_use_1): Declare.
7001         (get_same_sized_vectype): Likewise.
7002         * tree-vect-loop.c (vect_determine_vectorization_factor):
7003         Set STMT_VINFO_VECTYPE to the vector type of the def.
7004         (vectorizable_reduction): Adjust.
7005         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
7006         Adjust.  Specify the output vector type.
7007         (vect_pattern_recog_1): Adjust.
7008         * tree-vect-stmts.c (get_same_sized_vectype): New function.
7009         (vectorizable_call): Adjust.
7010         (vectorizable_conversion): Likewise.
7011         (vectorizable_operation): Likewise.
7012         (vectorizable_type_demotion): Likewise.
7013         (vectorizable_type_promotion): Likewise.
7014         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
7015         the def.
7016         (vect_is_simple_use_1): New function.
7017         (supportable_widening_operation): Get both input and output
7018         vector types.
7019         (supportable_narrowing_operation): Likewise.
7020         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
7021
7022 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
7023
7024         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
7025         __thiscall and _thiscall as predefined macros.
7026         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
7027         thiscall attribute handling.
7028         (ix86_comp_type_attributes): Likewise.
7029         (ix86_function_regparm): Likewise.
7030         (ix86_return_pops_args): Likewise.
7031         (init_cumulative_args): Likewise.
7032         (find_drap_reg): Likewise.
7033         (ix86_static_chain): Likewise.
7034         (x86_this_parameter): Likewise.
7035         (x86_output_mi_thunk): Likewise.
7036         (ix86_attribute_table): Add description for thiscall attribute.
7037         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
7038         * doc/extend.texi: Add documentation for thiscall.
7039
7040 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7041
7042         PR c++/28584
7043         * c.opt (Wint-to-pointer-cast): Available in C++.
7044         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
7045
7046 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7047
7048         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
7049         * calls.c (expand_call): Pass the function type to aggregate_value_p.
7050         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
7051         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
7052         function type instead.  Reorder and simplify checks.
7053
7054         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
7055
7056 2010-04-08  Jing Yu  <jingyu@google.com>
7057             Zdenek Dvorak  <ook@ucw.cz>
7058
7059         PR tree-optimization/42720
7060         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
7061         loop unswitch conditions here from ...
7062         (tree_unswitch_single_loop): ... here.
7063
7064 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
7065
7066         * tree-if-conv.c: Fix comments and simplify logic.
7067
7068 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
7069
7070         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
7071         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
7072         (main_tree_if_conversion): Update call to tree_if_conversion.
7073
7074 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7075
7076         PR 42485
7077         * doc/invoke.texi (-b,-V): Delete.
7078         * doc/tm.texi: Do not mention -b.
7079         * gcc.c (display_help): Delete -b and -V.
7080         (process_command): Delete -b and -V.
7081         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
7082
7083 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
7084             Wolfgang Gellerich  <gellerich@de.ibm.com>
7085
7086         Implement target hook for loop unrolling
7087         * target.h (loop_unroll_adjust): Add a new target hook function.
7088         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
7089         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
7090         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
7091         (s390_loop_unroll_adjust): Implement the new target hook for s390.
7092         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
7093         target hook.
7094         (decide_unroll_stupid): Likewise.
7095
7096 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7097
7098         PR target/43643
7099         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
7100
7101 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7102
7103         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
7104         (Specific, *-*-solaris2*): Likewise.
7105         Don't prefer Sun as over GNU as.
7106
7107 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
7108
7109         * config/s390/s390.c (override_options): Adjust the z10 defaults
7110         for max-unroll-times, max-completely-peeled-insns
7111         and max-completely-peel-times.
7112
7113 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7114
7115         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
7116         instructions for z10.
7117         (s390_expand_setmem): Likewise.
7118         (s390_expand_cmpmem): Likewise.
7119
7120 2010-04-08  Richard Guenther  <rguenther@suse.de>
7121
7122         PR tree-optimization/43679
7123         * tree-ssa-pre.c (eliminate): Only propagate copies.
7124
7125 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
7126
7127         PR bootstrap/43681
7128         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
7129         set but not used variable warning.
7130
7131 2010-04-08  Wei Guozhi  <carrot@google.com>
7132
7133         PR target/41653
7134         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
7135         (arm_size_rtx_costs): Call the new function when optimized for size.
7136
7137 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
7138
7139         PR debug/43670
7140         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
7141         op0 is not a MEM, just return NULL instead of assertion
7142         failure.
7143         (discover_nonconstant_array_refs): Don't walk debug stmts.
7144
7145 2010-04-08  Doug Kwan  <dougkwan@google.com>
7146
7147         * configure.ac: Recognize gold and do not use its version number
7148         to test ld features.
7149         * configure: Regenerate.
7150
7151 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
7152
7153         PR middle-end/40815
7154         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
7155         (negate_value): Move code to push elements to broken_up_substracts ...
7156         (eliminate_plus_minus_pair): ... here.  Push operands that have no
7157         negative pair to plus_negates.
7158         (repropagate_negates, init_reassoc, fini_reassoc): Update.
7159
7160 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7161
7162         * doc/install.texi (Configuration): Move description of
7163         --enable-lto, --with-libelf*, --enable-gold from Java section to
7164         general section.
7165
7166         * doc/generic.texi (Working with declarations)
7167         (Function Properties, C and C++ Trees): Fix typos.
7168         * doc/sourcebuild.texi (Top Level): Likewise.
7169
7170 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
7171
7172         PR c/18624
7173         * tree.h (DECL_READ_P): Define.
7174         (struct tree_decl_common): Add decl_read_flag.
7175         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
7176         a set but not used warning.
7177         (merge_decls): Merge DECL_READ_P flag.
7178         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
7179         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
7180         * c-common.c (handle_used_attribute, handle_unused_attribute):
7181         Likewise.
7182         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
7183         New prototypes.
7184         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
7185         New functions.
7186         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
7187         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
7188         c_parser_binary_expression, c_parser_cast_expression,
7189         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
7190         Call default_function_array_read_conversion instead of
7191         default_function_array_conversion where needed.
7192         (c_parser_unary_expression, c_parser_conditional_expression,
7193         c_parser_postfix_expression_after_primary, c_parser_initelt):
7194         Likewise.  Call mark_exp_read where needed.
7195         (c_parser_statement_after_labels, c_parser_asm_operands,
7196         c_parser_typeof_specifier, c_parser_sizeof_expression,
7197         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
7198         where needed.
7199         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
7200         New.
7201         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
7202         (warn_unused_but_set_parameter): Default to warn_unused
7203         && extra_warnings.
7204         * doc/invoke.texi: Document -Wunused-but-set-variable and
7205         -Wunused-but-set-parameter.
7206
7207         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7208         used count variable.
7209         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7210         when operandN variables aren't used in the body of the expander
7211         or splitter.
7212         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7213         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7214         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7215         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7216         FOR_EACH_IMM_USE_ON_STMT): Likewise.
7217         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7218         * tree.c (PROCESS_ARG): Likewise.
7219
7220 2010-04-07  Simon Baldwin  <simonb@google.com>
7221
7222         * diagnostic.h (diagnostic_override_option_index): New macro to
7223         set a diagnostic's option_index.
7224         * c-tree.h (c_cpp_error): Add warning reason argument.
7225         * opts.c (_warning_as_error_callback): New.
7226         (register_warning_as_error_callback): Store callback for
7227         warnings enabled via enable_warning_as_error.
7228         (enable_warning_as_error): Call callback, minor code tidy.
7229         * opts.h (register_warning_as_error_callback): Declare.
7230         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7231         response to -Werror=.
7232         (c_common_init_options): Register warning_as_error_callback in opts.c.
7233         * common.opt: Add -Wno-cpp option.
7234         * c-common.c (struct reason_option_codes_t): Map cpp warning
7235         reason codes to gcc option indexes.
7236         * (c_option_controlling_cpp_error): New function, lookup the gcc
7237         option index for a cpp warning reason code.
7238         * (c_cpp_error): Add warning reason argument, call
7239         c_option_controlling_cpp_error for diagnostic_override_option_index.
7240         * doc/invoke.texi: Document -Wno-cpp.
7241
7242 2010-04-07  Richard Guenther  <rguenther@suse.de>
7243
7244         * ipa-reference.c (mark_load): Use get_base_address.
7245         (mark_store): Likewise.
7246
7247         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7248         inserting GIMPLE_NOPs into the IL.
7249         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7250         Explicitly strip handled components and indirect references.
7251
7252         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7253         folding address expressions.
7254         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7255         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7256         operand_equal_p to compare decls.
7257         (ptr_deref_may_alias_decl_p): Likewise.
7258         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7259         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7260         Handle reversed comparison ops.
7261         * tree-sra.c (asm_visit_addr): Use get_base_address.
7262         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7263         * ipa-reference.c (mark_address): Use get_base_address.
7264
7265 2010-04-07  Richard Guenther  <rguenther@suse.de>
7266
7267         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7268         Propagate constants everywhere.
7269
7270 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
7271
7272         PR debug/43516
7273         * tree.c (MAX_INT_CACHED_PREC): Define.
7274         (nonstandard_integer_type_cache): New array.
7275         (build_nonstandard_integer_type): Cache results for precision
7276         <= MAX_INT_CACHED_PREC.
7277
7278 2010-04-07  Richard Guenther  <rguenther@suse.de>
7279
7280         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7281         -fargument-noalias-global, -fargument-noalias-anything): Remove.
7282         * common.opt: Likewise.
7283         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7284         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7285         (nonoverlapping_memrefs_p): Likewise.
7286         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7287         * opts.c (common_handle_option): Handle OPT_fargument_alias,
7288         OPT_fargument_noalias, OPT_fargument_noalias_anything and
7289         OPT_fargument_noalias_global for backward compatibility.
7290
7291 2010-04-07  Richard Guenther  <rguenther@suse.de>
7292
7293         PR tree-optimization/43270
7294         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7295         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7296         * tree-ssa-pre.c (phi_translate_1): Adjust.
7297         (fully_constant_expression): Split out vn_reference handling to ...
7298         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7299         Fold reads from constant strings.
7300         (vn_reference_lookup): Handle fully constant references.
7301         (vn_reference_lookup_pieces): Likewise.
7302         * Makefile.in (expmed.o-warn): Add -Wno-error.
7303
7304 2010-04-07  Martin Jambor  <mjambor@suse.cz>
7305
7306         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7307
7308 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
7309
7310         PR driver/41594
7311         * gcc.c: Add -static-libstdc++ to list of recognized options.
7312
7313 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7314
7315         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7316
7317 2010-04-07  Richard Guenther  <rguenther@suse.de>
7318
7319         PR middle-end/42617
7320         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7321         bases build simple mem attributes to retain points-to information.
7322
7323 2010-04-07  Richard Guenther  <rguenther@suse.de>
7324
7325         PR middle-end/42617
7326         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7327         preserve points-to related information.
7328
7329 2010-04-07  Richard Guenther  <rguenther@suse.de>
7330
7331         PR middle-end/42617
7332         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7333         discard plain indirect references.
7334         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7335         * tree.c (tree_nop_conversion): Likewise.
7336
7337 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
7338
7339         PR debug/43628
7340         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7341
7342 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
7343
7344         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7345         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7346
7347 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7348
7349         * tree-if-conv.c: Fix indentation and comments.
7350
7351 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7352
7353         * tree-if-conv.c: Sort static functions in topological order.
7354
7355 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7356
7357         * tree-if-conv.c: Fix indentation and comments.
7358
7359 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7360
7361         PR middle-end/43519
7362         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7363         lang_hooks.types.type_for_size instead of
7364         build_nonstandard_integer_type.
7365         When converting an unsigned type to signed, double its precision.
7366         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7367         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7368         (graphite_create_new_loop_guard): When ub + 1 wraps around,
7369         use lb <= ub.
7370
7371 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7372
7373         PR middle-end/43519
7374         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7375         POINTER_PLUS_EXPR for pointer types.
7376
7377 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7378
7379         PR middle-end/43519
7380         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7381         * graphite-clast-to-gimple.c: Include langhooks.h.
7382         (max_signed_precision_type): New.
7383         (max_precision_type): Takes two types as arguments.
7384         (precision_for_value): New.
7385         (precision_for_interval): New.
7386         (gcc_type_for_interval): New.
7387         (gcc_type_for_value): New.
7388         (gcc_type_for_clast_term): New.
7389         (gcc_type_for_clast_red): New.
7390         (gcc_type_for_clast_bin): New.
7391         (gcc_type_for_clast_expr): Split up into several functions.
7392         (gcc_type_for_clast_eq): Rewritten.
7393         (compute_bounds_for_level): New.
7394         (compute_type_for_level_1): New.
7395         (compute_type_for_level): New.
7396         (gcc_type_for_cloog_iv): Removed.
7397         (gcc_type_for_iv_of_clast_loop): Rewritten.
7398         (graphite_create_new_loop): Compute the lower and upper bound types
7399         with gcc_type_for_clast_expr.
7400         (graphite_create_new_loop_guard): Same.
7401         (find_cloog_iv_in_expr): Removed.
7402         (compute_cloog_iv_types_1): Removed.
7403         (compute_cloog_iv_types): Removed.
7404         (gloog): Do not call compute_cloog_iv_types.
7405         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
7406         GBB_CLOOG_IV_TYPES.
7407         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
7408         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
7409         (GBB_CLOOG_IV_TYPES): Removed.
7410
7411 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7412
7413         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
7414         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
7415         (detect_commutative_reduction): Same.
7416
7417 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7418
7419         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
7420         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
7421         argument.
7422         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7423         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7424         (rewrite_commutative_reductions_out_of_ssa): Same.
7425         * passes.c (execute_function_todo): Call verify_ssa for every pass
7426         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
7427         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7428         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7429         with an extra argument.
7430         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
7431         verify_ssa only when the extra argument is true.
7432         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7433         with an extra argument.
7434         (tree_transform_and_unroll_loop): Same.
7435
7436 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7437
7438         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7439         for all the passes of the LNO having LOOP_CLOSED_SSA.
7440         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7441         * tree-loop-distribution.c (pass_loop_distribution): Same.
7442         * tree-pass.h (TODO_verify_loops): Removed.
7443         * tree-ssa-loop.c (pass_tree_loop_init): Same.
7444         (pass_lim): Same.
7445         (pass_tree_unswitch): Same.
7446         (pass_predcom): Same.
7447         (pass_vectorize): Same.
7448         (pass_linear_transform): Same.
7449         (pass_graphite_transforms): Same.
7450         (pass_iv_canon): Same.
7451         (pass_complete_unroll): Same.
7452         (pass_complete_unrolli): Same.
7453         (pass_parallelize_loops): Same.
7454         (pass_loop_prefetch): Same.
7455         (pass_iv_optimize): Same.
7456
7457 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
7458
7459         PR middle-end/32824
7460         * passes.c (init_optimization_passes): Move pass_lim before
7461         pass_copy_prop and pass_dce_loop.
7462
7463 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
7464
7465         PR target/43667
7466         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7467         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7468         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7469         MULTI_* defines for 4 argument vpermil2p* builtins.
7470
7471 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
7472
7473         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7474         * config/i386/i386.c (x86_maybe_negate_const_int): New.
7475         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7476         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7477         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7478         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7479         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7480         Use x86_maybe_negate_const_int to output insn mnemonic.
7481         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
7482         check from instruction predicate.  Update comments.
7483         * config/i386/sync.md (sync_add<mode>): Use
7484         x86_maybe_negate_const_int to output insn mnemonic.
7485
7486 2010-04-06  Jan Hubicka  <jh@suse.cz>
7487
7488         PR tree-optimization/42906
7489         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7490         IGNORE_SELF argument.  Set visited_control_parents for fully
7491         processed BBs.
7492         (find_obviously_necessary_stmts): Update call of
7493         mark_control_dependent_edges_necessary.
7494         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
7495
7496 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
7497
7498         * config/i386/i386.md: Remove comment about 'e' and 'E'
7499         operand modifier.
7500
7501 2010-04-06  Richard Guenther  <rguenther@suse.de>
7502
7503         PR tree-optimization/43627
7504         * tree-vrp.c (extract_range_from_unary_expr): Widenings
7505         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7506         not varying.
7507
7508 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
7509
7510         * BASE-VER: Change to 4.6.0.
7511
7512         PR target/43638
7513         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7514         handling.
7515
7516 2010-04-06  Richard Guenther  <rguenther@suse.de>
7517
7518         PR middle-end/43661
7519         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7520
7521 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7522
7523         * doc/invoke.texi (Optimize Options): Document that LTO
7524         won't remove object access purely due to incompatible
7525         declarations.
7526
7527 2010-04-04  Matthias Klose  <doko@ubuntu.com>
7528
7529         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7530         Initialize variable.
7531
7532 2010-04-03  Richard Guenther  <rguenther@suse.de>
7533
7534         PR middle-end/42509
7535         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7536         require a non-NULL MEM_OFFSET.
7537
7538 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
7539
7540         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7541         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7542         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7543         config/alpha/predicates.md, config/arm/arm.md,
7544         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7545         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7546         config/darwin9.h, config/darwin.c, config/darwin.h,
7547         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7548         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7549         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7550         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7551         config/mips/mips.md, config/mn10300/mn10300.c,
7552         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7553         config/rs6000/aix.h, config/rs6000/dfp.md,
7554         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7555         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7556         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7557         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7558         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7559         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7560         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7561         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7562         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7563         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7564         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7565         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7566         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7567         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7568         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7569         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7570         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7571         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7572         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7573         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7574         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7575         opt-functions.awk, opth-gen.awk, params.def, passes.c,
7576         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7577         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7578         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7579         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7580         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7581         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7582         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7583         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7584         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7585         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7586         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7587         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7588         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7589         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7590
7591 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7592
7593         PR other/43620
7594         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7595         * aclocal.m4: Regenerate.
7596
7597 2010-04-02  Richard Guenther  <rguenther@suse.de>
7598
7599         PR tree-optimization/43629
7600         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7601         if we have seen a constant value.
7602
7603 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
7604
7605         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7606
7607 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
7608
7609         PR target/43469
7610         * arm.c (legitimize_tls_address): Adjust call to
7611         gen_tls_load_dot_plus_four.
7612         (arm_note_pic_base): New function.
7613         (arm_cannot_copy_insn_p): Use it.
7614         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7615         constraint.
7616
7617 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7618
7619         PR bootstrap/43531
7620
7621         Revert:
7622         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7623
7624         * Makefile.in ($(out_object_file)): Depend on
7625         gt-$(basename $(notdir $(out_file))).h.
7626
7627 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
7628
7629         * config.gcc (lm32-*-rtems*): Add t-lm32.
7630
7631 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
7632
7633         * config.gcc: Add lm32-*-rtems*.
7634         * config/lm32/rtems.h: New file.
7635
7636 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
7637
7638         PR target/42609
7639         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7640
7641 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
7642
7643         * dwarf2out.c (output_compilation_unit_header): For
7644         -gdwarf-4 use version 4 instead of version 3.
7645         (output_line_info): For version 4 and above emit additional
7646         maximum ops per insn header field.
7647         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7648
7649         * dwarf2out.c (is_c_family, is_java): Remove.
7650         (lower_bound_default): New function.
7651         (add_bound_info, gen_descr_array_type_die): Use it.
7652
7653 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
7654
7655         PR debug/43325
7656         * dwarf2out.c (gen_variable_die): Allow debug info for variable
7657         re-declaration when it happens in a function.
7658
7659 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
7660
7661         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7662         (cgraph_remove_function_insertion_hook): Same.
7663         (cgraph_call_function_insertion_hooks): Same.
7664
7665 2010-04-01  Richard Guenther  <rguenther@suse.de>
7666
7667         PR middle-end/43614
7668         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7669         and TREE_THIS_VOLATILE.
7670         (copy_ref_info): Likewise.
7671         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7672         * tree.c (build6_stat): Ignore side-effects of all but arg5
7673         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
7674         TARGET_MEM_REF.
7675
7676 2010-04-01  Richard Guenther  <rguenther@suse.de>
7677
7678         PR tree-optimization/43607
7679         * ipa-type-escape.c (check_call): Do not access non-existing
7680         arguments.
7681
7682 2010-04-01  Richard Guenther  <rguenther@suse.de>
7683
7684         PR middle-end/43602
7685         Revert
7686         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
7687                     Jack Howarth <howarth@bromo.med.uc.edu>
7688
7689         * tree-profile.c (tree_init_ic_make_global_vars): Make static
7690         variables TLS.
7691
7692 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7693
7694         * doc/install.texi (Prerequisites): Document libelf usability on
7695         IRIX 5/6 and Solaris 2.
7696         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7697         Update GNU as, GNU ld requirements.
7698         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7699         Document Sun Studio compiler download.
7700         Update and simplify as, ld recommendations.
7701         (Specific, *-*-solaris2.7): Note obsoletion, removal.
7702
7703 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7704
7705         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7706         with_tune_32 to pentium4.
7707
7708 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
7709
7710         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7711
7712 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7713
7714         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7715         obsoletion, removal.
7716         Update IDO URL.
7717         Document GNU as requirement.
7718         Update configure requirements.
7719         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7720         Recomment IRIX 6.5.18+.
7721         Document IDF/IDL requirement.
7722         Document GNU as requirement.
7723         Document GNU ld bootstrap failure.
7724         Remove freeware.sgi.com reference.
7725
7726 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7727
7728         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7729         UNIX V4.0, V5.0 obsoletion, removal.
7730         Remove --with-gc=simple reference.
7731         Update VM requirements during bootstrap.
7732         Remove -oldas bootstrap description.
7733         Update binutils reference.
7734         Remove comparison failure note.
7735
7736 2010-03-31  Richard Guenther  <rguenther@suse.de>
7737             Zdenek Dvorak  <ook@ucw.cz>
7738             Sebastian Pop  <sebastian.pop@amd.com>
7739
7740         PR middle-end/43464
7741         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7742         with multiple arguments.
7743         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7744
7745 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7746
7747         * graphite-dependences.c (print_pddr): Call print_pdr with an
7748         extra argument.
7749         * graphite-poly.c (debug_pdr): Add an extra argument for the
7750         verbosity level.
7751         (print_pdr): Same.
7752         (print_pbb_domain): Same.
7753         (print_pbb): Same.
7754         (print_scop_context): Same.
7755         (print_scop): Same.
7756         (print_cloog): Same.
7757         (debug_pbb_domain): Same.
7758         (debug_pbb): Same.
7759         (print_pdrs): Same.
7760         (debug_pdrs): Same.
7761         (debug_scop_context): Same.
7762         (debug_scop): Same.
7763         (debug_cloog): Same.
7764         (print_scop_params): Same.
7765         (debug_scop_params): Same.
7766         (print_iteration_domain): Same.
7767         (print_iteration_domains): Same.
7768         (debug_iteration_domain): Same.
7769         (debug_iteration_domains): Same.
7770         (print_scattering_function): Same.
7771         (print_scattering_functions): Same.
7772         (debug_scattering_function): Same.
7773         (debug_scattering_functions): Same.
7774         * graphite-poly.h (debug_pdr): Update declaration.
7775         (print_pdr): Same.
7776         (print_pbb_domain): Same.
7777         (print_pbb): Same.
7778         (print_scop_context): Same.
7779         (print_scop): Same.
7780         (print_cloog): Same.
7781         (debug_pbb_domain): Same.
7782         (debug_pbb): Same.
7783         (print_pdrs): Same.
7784         (debug_pdrs): Same.
7785         (debug_scop_context): Same.
7786         (debug_scop): Same.
7787         (debug_cloog): Same.
7788         (print_scop_params): Same.
7789         (debug_scop_params): Same.
7790         (print_iteration_domain): Same.
7791         (print_iteration_domains): Same.
7792         (debug_iteration_domain): Same.
7793         (debug_iteration_domains): Same.
7794         (print_scattering_function): Same.
7795         (print_scattering_functions): Same.
7796         (debug_scattering_function): Same.
7797         (debug_scattering_functions): Same.
7798
7799 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7800
7801         * graphite-poly.c (print_scattering_function_1): New.
7802         (print_scattering_function): Call it.
7803         (print_scop_params): Remove spaces at the end of lines.
7804         (print_cloog): New.
7805         (debug_cloog): New.
7806         * graphite-poly.h (print_cloog): Declared.
7807         (debug_cloog): Declared.
7808
7809 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7810
7811         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7812         in loop->header.
7813         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7814         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7815         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7816         to switch between adding the IV bump in loop->latch or in loop->header.
7817
7818 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7819
7820         * graphite-poly.c (print_scattering_function): Pretty print following
7821         the scoplib format.
7822         (print_pdr): Same.
7823         (print_pbb_domain): Same.
7824         (dump_gbb_cases): Same.
7825         (dump_gbb_conditions): Same.
7826         (print_pdrs): Same.
7827         (print_pbb): Same.
7828         (print_scop_params): Same.
7829         (print_scop_context): Same.
7830         (print_scop): Same.
7831         (print_pbb_body): New.
7832         (lst_indent_to): New.
7833         (print_lst): Start new lines with a #.
7834         * graphite-poly.h (pbb_bb): New.
7835         (pbb_index): Use pbb_bb.
7836         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7837         disjuncts.
7838         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7839
7840 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
7841
7842         * dwarf2out.c (size_of_die): For -gdwarf-4 use
7843         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7844         and 0 instead of 1 for dw_val_class_flag.
7845         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7846         dw_val_class_range_list, dw_val_class_loc_list,
7847         dw_val_class_lineptr and dw_val_class_macptr, use
7848         DW_FORM_flag_present for dw_val_class_flag and
7849         DW_FORM_exprloc for dw_val_class_loc.
7850         (output_die): For -gdwarf-4 print dw_val_class_loc
7851         size as uleb128 instead of 1 or 2 bytes and don't print
7852         anything for dw_val_class_flag.
7853
7854         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7855         instead of cselib_lookup following by tweaking locs->setting_insn.
7856
7857         PR bootstrap/43596
7858         * cselib.c (cselib_process_insn): Clear cselib_current_insn
7859         even before returning from label, setjmp call or volatile asm
7860         handling.
7861
7862 2010-03-31  Richard Guenther  <rguenther@suse.de>
7863
7864         PR middle-end/43600
7865         * cgraphunit.c (cgraph_output_in_order): Do not allocate
7866         temporary data on stack.
7867
7868 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7869
7870         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7871         (PUSHSECTION_ASM_OP): Remove.
7872         (POPSECTION_ASM_OP): Remove.
7873         (PUSHSECTION_FORMAT): Remove.
7874         * config/sol2.h (PUSHSECTION_FORMAT): Define.
7875         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
7876         * config/sol2.c (solaris_output_init_fini): Use it.
7877
7878 2010-03-31  Jie Zhang  <jie@codesourcery.com>
7879
7880         PR 43574
7881         * opt-functions.awk (var_type_struct): Use signed char type
7882         for simple variables.
7883
7884 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7885
7886         * config/sol2.c: Include output.h.
7887         (solaris_assemble_visibility): New function.
7888         * config/t-sol2 (sol2.o): Add output.h dependency.
7889         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
7890         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
7891         Redefine.
7892
7893 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
7894
7895         PR target/43580
7896         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
7897         V2SImode or XFmode on PRE_DEC.
7898
7899         PR debug/43557
7900         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
7901         BLKmode.
7902
7903 2010-03-31  Jie Zhang  <jie@codesourcery.com>
7904
7905         PR 43562
7906         * reload.h (caller_save_initialized_p): Declare.
7907         * toplev.c (backend_init_target): Don't call
7908         init_caller_save but set caller_save_initialized_p to false.
7909         * caller-save.c (caller_save_initialized_p): Define.
7910         (init_caller_save): Check caller_save_initialized_p.
7911         * ira.c (ira): Call init_caller_save if flag_caller_saves.
7912
7913 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7914
7915         PR target/39048
7916         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
7917         and soft-fp/t-softfp to tmake_file.
7918         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
7919         (LIBGCC2_TF_CEXT): Define.
7920         (TF_SIZE): Define.
7921
7922 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
7923
7924         PR debug/42977
7925         * cselib.c (n_useless_values): Document handling of debug locs.
7926         (n_useless_debug_values, n_debug_values): New variables.
7927         (new_elt_loc_list): Don't add to debug values, keep count.
7928         (promote_debug_loc): New.
7929         (cselib_reset_table): Zero new variables.
7930         (entry_and_rtx_equal_p): Promote debug locs.
7931         (discard_useless_locs): Increment n_useless_debug_values for
7932         debug values.
7933         (remove_useless_values): Adjust n_useless_values and n_debug_values
7934         with n_useless_debug_values.
7935         (add_mem_for_addr): Promote debug locs.
7936         (cselib_lookup_mem): Likewise.
7937         (cselib_lookup_addr): Renamed to...
7938         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
7939         (cselib_log_lookup): ... this.  Turn into...
7940         (cselib_lookup_addr): ... new wrapper.
7941         (cselib_lookup_from_insn): New.
7942         (cselib_invalidate_regno): Increment n_useless_debug_values for
7943         debug values.
7944         (cselib_invalidate_mem): Likewise.
7945         (cselib_process_insn): Take n_deleted and n_debug_values into
7946         account to guard remove_useless_value call.
7947         (cselib_finish): Zero n_useless_debug_values.
7948         * cselib.h (cselib_lookup_from_insn): Declare.
7949         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
7950         (sched_analyze_2): Likewise.
7951
7952 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
7953
7954         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
7955         functions.
7956         (adjust_mems): Replace narrowing SUBREG of expression containing
7957         just PLUS, MINUS, MULT and ASHIFT of registers and constants
7958         with operations in the narrower mode.
7959
7960         PR debug/43593
7961         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
7962         regs_invalidated_by_call instead all call_used_reg_set registers.
7963
7964 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
7965
7966         PR middle-end/43430
7967         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
7968         pointer comparisons with types_compatible_p.
7969         * tree-vect-stmts.c (vectorizable_call): Same.
7970         (vectorizable_condition): Same.
7971
7972 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7973
7974         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
7975         stack check if the mask would be zero.
7976
7977 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
7978             Jack Howarth <howarth@bromo.med.uc.edu>
7979
7980         * tree-profile.c (tree_init_ic_make_global_vars): Make static
7981         variables TLS.
7982
7983 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
7984
7985         PR other/25232
7986         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
7987         and __unordtf2.
7988         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
7989         Include ___unordxf2 and ___unordtf2.
7990         * config/i386/libgcc-glibc.ver: Do not define inheritance from
7991         GCC_4.4.0 here.
7992
7993 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
7994
7995         * config/lm32/t-lm32: New file.
7996         * config.gcc: Use the above file when targetting lm32.
7997
7998 2010-03-28  Duncan Sands  <baldrick@free.fr>
7999
8000         * Makefile.in (PLUGIN_HEADERS): Add except.h.
8001
8002 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
8003
8004         PR middle-end/43431
8005         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
8006         Improve vectorization cost model diagnostic.
8007
8008 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
8009
8010         PR middle-end/43436
8011         * tree-vect-data-refs.c (vect_analyze_data_refs): When
8012         compute_data_dependences_for_loop returns false, early exit
8013         and output an extra diagnostic for the failed data reference
8014         analysis.
8015
8016 2010-03-29  Richard Guenther  <rguenther@suse.de>
8017
8018         PR tree-optimization/43560
8019         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
8020         (can_sm_ref_p): Treat stores to readonly locations as trapping.
8021
8022 2010-03-29  Jie Zhang  <jie@codesourcery.com>
8023
8024         PR 43564
8025         * toplev.c (process_options): Set optimization_default_node
8026         and optimization_current_node.
8027         * opts.c (decode_options): Don't set optimization_default_node
8028         and optimization_current_node.
8029
8030 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
8031
8032         * config/rtems.h: Abandon -qrtems_debug.
8033
8034 2010-03-28  Jan Hubicka  <jh@suse.cz>
8035
8036         PR tree-optimization/43505
8037         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
8038         map should not be copied.
8039
8040 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8041
8042         PR middle-end/41674
8043         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
8044         cdtors, set DECL_PRESERVE_P.
8045         * ipa.c (cgraph_externally_visible_p): Return true if declaration
8046         should be preseved.
8047
8048 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
8049
8050         PR tree-optimization/43528
8051         * stor-layout.c (place_field): Check that constant fits into
8052         unsigned HWI when skipping calculation of MS bitfield layout.
8053
8054 2010-03-27  Jan Hubicka  <jh@suse.cz>
8055
8056         PR middle-end/43391
8057         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
8058         notice_global_symbol work.
8059
8060 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
8061
8062         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
8063         instead of dwarf2out_decl.
8064         (struct var_loc_node): Remove section_label field.
8065         (dwarf2out_function_decl): New function.
8066         (dwarf2out_var_location): Don't set section_label field.
8067         (dwarf2out_begin_function): Don't empty decl_loc_table here.
8068
8069 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8070
8071         PR tree-optimization/43544
8072         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8073         First argument for builtin vectorized function hook is now a
8074         tree to be able to distinguish between machine specific and
8075         standard builtins.
8076         * targhooks.c (default_builtin_vectorized_function): Ditto.
8077         * targhooks.h (default_builtin_vectorized_function): Ditto.
8078         * target.h (struct gcc_target): Ditto.
8079         * tree-vect-stmts.c (vectorizable_function): Ditto.
8080         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
8081         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8082         Ditto.
8083
8084 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
8085
8086         PR c/43381
8087         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
8088         nested binding iff it is a FUNCTION_DECL.
8089         (store_parm_decls_newstyle): Pass nested=true to bind for
8090         FUNCTION_DECLs amongst parameters.
8091
8092 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
8093
8094         * var-tracking.c (vt_expand_loc_callback): Don't run
8095         cselib_expand_value_rtx_cb in dummy mode if
8096         cselib_dummy_expand_value_rtx_cb returned false.
8097
8098         * var-tracking.c (emit_note_insn_var_location): For one part
8099         notes with offset 0, don't add EXPR_LIST around the location.
8100         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
8101         add_location_or_const_value_attribute): Adjust for that change.
8102
8103         PR debug/43540
8104         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
8105         into first operand and location into second.
8106         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
8107         dw_cfi_oprnd_loc for DW_CFA_expression.
8108         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
8109         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
8110         assume first argument is regnum and second argument is location.
8111
8112 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
8113
8114         PR target/42113
8115         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
8116         of scratch register to DImode.  Split to DImode comparison operator.
8117         Use SImode subreg of scratch register in the multiplication.
8118         (*cmp_sadd_sidi): Ditto.
8119         (*cmp_ssub_si): Ditto.
8120         (*cmp_ssub_sidi): Ditto.
8121
8122 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
8123
8124         PR target/43524
8125         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
8126         Remove invalid assert and wrong comment.
8127
8128 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
8129
8130         PR debug/43516
8131         * flags.h (final_insns_dump_p): New extern.
8132         * final.c (final_insns_dump_p): New variable.
8133         (rest_of_clean_state): Set it before -fdump-final-insns=
8134         dumping, clear afterwards.
8135         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
8136         MEM_ALIAS_SET on MEMs.
8137
8138 2010-03-26  David S. Miller  <davem@davemloft.net>
8139
8140         * configure.ac: Fix sparc GOTDATA_OP bug check.
8141         * configure: Rebuild.
8142
8143 2010-03-26  Alan Modra  <amodra@gmail.com>
8144
8145         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
8146
8147 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8148
8149         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
8150         TLS_SECTION_ASM_FLAG.
8151
8152 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
8153
8154         PR bootstrap/43511
8155         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
8156         Clear first_function_block_is_cold.
8157
8158         PR c/43385
8159         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
8160         argument if the argument is truth_value_p.
8161
8162 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8163
8164         * config/rs6000/constraints.md: Update copyright year for my changes.
8165
8166         PR target/43484
8167         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
8168         used in reg+reg addressing, swap registers.
8169
8170 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
8171
8172         PR debug/43293
8173         * target.h (struct gcc_target): Add code_end hook.
8174         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
8175         if not yet defined.
8176         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
8177         * toplev.c (compile_file): Call targetm.asm_out.code_end
8178         hook before unwind info/debug info output.
8179         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
8180         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
8181         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8182         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
8183         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8184         * config/i386/i386.c (ix86_file_end): Renamed to...
8185         (ix86_code_end): ... this.  Make static.  Don't call
8186         file_end_indicate_exec_stack.  Emit unwind info using
8187         final_start_function/final_end_function.
8188         (darwin_x86_file_end): Remove.
8189         (TARGET_ASM_CODE_END): Define.
8190         * config/i386/i386.h (TARGET_ASM_FILE_END,
8191         NEED_INDICATE_EXEC_STACK): Don't define.
8192         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
8193         (TARGET_ASM_FILE_END): Define to darwin_file_end.
8194         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
8195         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
8196
8197         PR target/43498
8198         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
8199         at the beginning and final_end_function at the end.
8200         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8201
8202 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8203
8204         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8205         and Sun as TLS syntax.
8206         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8207         * configure: Regenerate.
8208         * config.in: Regenerate.
8209         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8210         (default_elf_asm_named_section): Use it.
8211         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8212         (i386_output_dwarf_dtprel): Likewise.
8213         (output_addr_const_extra): Likewise.
8214         (output_pic_addr_const): Lowercase @GOTTPOFF.
8215         (output_addr_const_extra): Likewise.
8216         (output_pic_addr_const): Lowercase @GOTNTPOFF.
8217         (output_addr_const_extra): Likewise.
8218         (output_pic_addr_const): Lowercase @INDNTPOFF.
8219         (output_addr_const_extra): Likewise.
8220         (output_pic_addr_const): Lowercase @NTPOFF.
8221         (output_addr_const_extra): Likewise.
8222         (output_pic_addr_const): Lowercase @TPOFF.
8223         (output_addr_const_extra): Likewise.
8224         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8225         (*tls_global_dynamic_64): Likewise.
8226         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8227         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8228
8229         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8230         (ASM_OUTPUT_TLS_COMMON): Use it.
8231         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8232
8233         PR target/38118
8234         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8235         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8236         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8237         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8238         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8239         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8240
8241 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8242
8243         * config/i386/i386.c (override_options): Don't accept
8244         -mtls-dialect=sun any longer.
8245         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8246         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8247         (*tls_local_dynamic_base_32_sun): Likewise.
8248         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8249
8250 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
8251
8252         PR debug/43508
8253         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8254         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8255
8256         PR debug/43479
8257         * ira.c (adjust_cleared_regs): New function.
8258         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8259
8260         PR debug/19192
8261         PR debug/43479
8262         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8263         from gimple_block.
8264         * expr.c (expand_expr_real): Restore previous
8265         curr_insn_source_location and curr_insn_block after
8266         expand_expr_real_1 call.
8267         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8268         instead of expand_expr_real_1.
8269
8270 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
8271
8272         PR rtl-optimization/43413
8273         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8274         hard regs too.
8275
8276 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
8277
8278         PR target/43348
8279         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8280         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8281
8282 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8283
8284         * config/i386/i386.c (ix86_target_string): Add -mfma.
8285         Fix a typo in comment.
8286
8287 2010-03-22  Mike Stump  <mikestump@comcast.net>
8288
8289         PR target/23071
8290         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8291         Don't overly align based upon packed packed fields.
8292
8293 2010-03-22  Jason Merrill  <jason@redhat.com>
8294
8295         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8296         Use () rather than [], and move before the element type.
8297
8298 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8299
8300         * doc/configfiles.texi (Configuration Files): Removed
8301         fixinc/Makefile*, intl/Makefile.*.
8302         * doc/makefile.texi: Fixed markup. Abstract from version
8303         control system used.
8304         (Makefile): Removed obsolete gcc/java/parse.y example.
8305         * doc/sourcebuild.texi: Likewise.
8306         (Top Level): Added config, gnattools, libdecnumber, libgcc,
8307         libgomp, libssp.  Removed fastjar.
8308         (Miscellaneous Docs): Clarify location.
8309         Added COPYING3, COPYING3.LIB.
8310         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8311
8312 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8313
8314         PR target/38085
8315         * config/i386/i386.c (x86_function_profiler)
8316         [!NO_PROFILE_COUNTERS]: Fix typo.
8317         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8318         instead of callq.
8319
8320 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
8321             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8322
8323         * doc/sourcebuild.texi (Test Directives): Split into six
8324         subsections, with most of the current text in new subsections
8325         Directives, Selectors, and Final Actions.
8326         (Directives): Split list of test directives into multiple
8327         subsubsections.
8328         (Selectors): Describe use and syntax of selectors.
8329         (Effective-Target Keywords): Describe all existing keywords.
8330         (Add Options): Describe features for dg-add-options.
8331         (Require Support): Describe variants of dg-require-support.
8332         (Final Actions): Describe commands to use in dg-final.
8333
8334 2010-03-22  Michael Matz  <matz@suse.de>
8335
8336         PR middle-end/43475
8337         * recog.c (validate_replace_rtx_group): Replace also in
8338         REG_EQUAL and REG_EQUIV notes.
8339
8340 2010-03-22  Richard Guenther  <rguenther@suse.de>
8341
8342         PR tree-optimization/43390
8343         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8344         sure vector extracts are type correct.
8345
8346 2010-03-22  Richard Guenther  <rguenther@suse.de>
8347
8348         PR middle-end/40106
8349         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8350         x * sqrt (x) even when optimizing for size if the target
8351         has native support for sqrt.
8352
8353 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
8354
8355         * varasm.c (make_decl_rtl_for_debug): Also clear
8356         flag_mudflap for the duration of make_decl_rtl call.
8357
8358         PR debug/43443
8359         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8360         locs from preserved VALUEs.
8361
8362 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8363
8364         PR middle-end/42718
8365         * pa.md (movmemsi): Set align to one if zero.
8366         (movmemdi): Likewise.
8367
8368 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
8369
8370         PR target/42321
8371         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8372         with their corresponding prologue pushes.
8373
8374 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
8375
8376         PR target/43156
8377         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8378         at the begining or end.
8379         (spu_expand_epilogue): Likewise.
8380
8381 2010-03-20  Richard Guenther  <rguenther@suse.de>
8382
8383         PR rtl-optimization/43438
8384         * combine.c (make_extraction): Properly zero-/sign-extend an
8385         extraction of the low part of a CONST_INT.  Also handle
8386         CONST_DOUBLE.
8387
8388 2010-03-19  Mike Stump  <mikestump@comcast.net>
8389
8390         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8391         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
8392         (override_options): Use SUBTARGET32_DEFAULT_CPU.
8393
8394 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
8395
8396         PR c/43211
8397         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
8398         an error.
8399
8400 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
8401
8402         PR rtl-optimization/42258
8403         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
8404         use that may match DEF.
8405
8406         PR target/40697
8407         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
8408         the cost of loading the constant rather than assuming
8409         COSTS_N_INSNS (1).
8410         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
8411         outer code is AND, do the same tests as the andsi3 expander and
8412         return COSTS_N_INSNS (1) if and is cheap.
8413
8414         * optabs.c (avoid_expensive_constant): Fix formatting.
8415
8416 2010-03-19  Michael Matz  <matz@suse.de>
8417
8418         PR c++/43116
8419         * attribs.c (decl_attributes): When rebuilding a function pointer
8420         type use the same qualifiers as the original pointer type.
8421
8422 2010-03-19  Martin Jambor  <mjambor@suse.cz>
8423
8424         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8425         and is_gimple_ip_invariant_address.
8426
8427 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8428
8429         Revert
8430         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8431
8432         * config/arm/arm.c (arm_override_options): Turn off
8433         flag_dwarf2_cfi_asm for AAPCS variants.
8434
8435 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8436
8437         PR target/43399
8438         * config/arm/arm.c (emit_multi_reg_push): Update comments.
8439         Use PRE_MODIFY instead of PRE_DEC.
8440         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8441         (vfp_emit_fstmd): Likewise.
8442
8443 2010-03-19  Michael Matz  <matz@suse.de>
8444
8445         PR target/43305
8446         * builtins.c (expand_builtin_interclass_mathfn,
8447         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8448         if that fails.
8449
8450 2010-03-19  Richard Guenther  <rguenther@suse.de>
8451
8452         PR tree-optimization/43415
8453         * tree-ssa-pre.c (phi_translate): Split out worker to ...
8454         (phi_translate_1): ... this.
8455         (phi_translate): Move all caching here.  Cache all NARY
8456         and REFERENCE translations.
8457
8458 2010-03-19  David S. Miller  <davem@davemloft.net>
8459
8460         With help from Eric Botcazou.
8461         * config/sparc/sparc.c: Include dwarf2out.h.
8462         (emit_pic_helper): Delete.
8463         (pic_helper_symbol_name): Delete.
8464         (pic_helper_emitted_p): Delete.
8465         (pic_helper_needed): New.
8466         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8467         (get_pc_thunk_name): New.
8468         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
8469         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8470         Set pic_helper_needed to true.  Don't call emit_pic_helper.
8471         (sparc_expand_prologue): Update load_pic_register call.
8472         (sparc_output_mi_thunk): Likewise.
8473         (sparc_file_end): Emit a hidden comdat symbol for the PIC
8474         thunk if possible.  Output CFI information as needed.
8475
8476 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8477             Jack Howarth <howarth@bromo.med.uc.edu>
8478
8479         PR target/36399
8480         * config/i386/i386.h: Fix ABI on darwin x86-32.
8481
8482 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
8483
8484         * tree.h: Declare make_decl_rtl_for_debug.
8485         * varasm.c (make_decl_rtl_for_debug): New.
8486         * dwarf2out.c (rtl_for_decl_location): Call it.
8487         * cfgexpand.c (expand_debug_expr): Call it.
8488
8489 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
8490
8491         PR bootstrap/43399
8492         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8493         mem_mode.
8494
8495         PR bootstrap/43403
8496         * var-tracking.c (vt_init_cfa_base): Do nothing if
8497         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8498
8499 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
8500
8501         PR debug/42873
8502         * var-tracking.c (canonicalize_vars_star): New.
8503         (dataflow_post_merge_adjust): Use it.
8504
8505 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
8506
8507         PR debug/43058
8508         * var-tracking.c (non_suitable_const): New function.
8509         (add_uses): For DEBUG_INSNs with constants, don't record any
8510         value, instead just the constant value itself.
8511         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8512         is not VAR_LOC_UNKNOWN_P, set var to the constant.
8513         (emit_notes_in_bb): Likewise.
8514         (emit_note_insn_var_location): For onepart variables if
8515         cur_loc is a VOIDmode constant, use DECL_MODE.
8516
8517 2010-03-18  Martin Jambor  <mjambor@suse.cz>
8518
8519         PR middle-end/42450
8520         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8521         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8522         all non-clones.  Moved call redirection...
8523         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8524         (cgraph_materialize_all_clones): Dispose of all
8525         combined_args_to_skip bitmaps.
8526         (verify_cgraph_node): Do not check for edges pointing to wrong
8527         nodes in inline clones.
8528         * tree-inline.c (copy_bb): Call
8529         cgraph_redirect_edge_call_stmt_to_callee.
8530         * ipa.c (cgraph_remove_unreachable_nodes): Call
8531         cgraph_node_remove_callees even when there are used clones.
8532
8533 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8534
8535         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8536
8537 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8538
8539         PR target/43383
8540         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8541         for 32bit.
8542
8543 2010-03-18  Michael Matz  <matz@suse.de>
8544
8545         PR middle-end/43419
8546         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8547         into sqrt(x) if we need to preserve signed zeros.
8548
8549 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
8550             Eric Botcazou  <ebotcazou@adacore.com>
8551
8552         PR rtl-optimization/43360
8553         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8554         note if we don't know its invariant status.
8555
8556 2010-03-18  Michael Matz  <matz@suse.de>
8557
8558         PR tree-optimization/43402
8559         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8560         PHI chains of ssa names registered for update.
8561
8562 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
8563
8564         PR target/42427
8565         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8566         non-offsettable and pre_modify update addressing.
8567         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8568         and "2" alternatives "#".
8569         (*movdd_softfloat32): Make all alternatives "#";
8570         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8571         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8572         (*movdf_softfloat32): Make all alternatives "#";
8573         (movdi): Use the new DIFD mode iterator to create a common splitter
8574         for movdi, movdf and movdd patterns.
8575
8576 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
8577
8578         * common.opt (dumpdir): Remove redundant tab.
8579
8580 2010-03-17  Martin Jambor  <mjambor@suse.cz>
8581
8582         PR tree-optimization/43347
8583         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8584         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8585
8586 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
8587
8588         PR rtl-optimization/42216
8589         * regrename.c (create_new_chain): New function, broken out from...
8590         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
8591         appending a use to an empty chain.
8592         (build_def_use): Remove previous changes that convert OP_INOUT to
8593         OP_OUT operands; instead detect the case where an OP_INOUT operand
8594         uses a previously untracked register and create an empty chain for it.
8595
8596 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8597
8598         * doc/extend.texi (Function Attributes): Rewrite unfinished
8599         sentence in ms_abi documentation.
8600
8601 2010-03-17  Alan Modra  <amodra@gmail.com>
8602
8603         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8604         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8605         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8606         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8607
8608 2010-03-16  Richard Henderson  <rth@redhat.com>
8609
8610         PR middle-end/43365
8611         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8612         (lower_try_finally): Save and restore eh_seq around the expansion
8613         of the try-finally.
8614
8615 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8616
8617         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8618         statements before splitting block.
8619
8620 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8621
8622         * doc/sourcebuild.texi (Testsuites): Fix markup.
8623         Use pathnames relative to gcc/testsuite.
8624         (Test Directives): Move description of how timeout is determined.
8625         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8626         (C Tests): Correct gcc.misc-tests directory.
8627         Framework tests now live in gcc.test-framework.
8628
8629 2010-03-16  Richard Guenther  <rguenther@suse.de>
8630
8631         PR middle-end/43379
8632         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8633         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8634
8635 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8636             Alexandre Oliva  <aoliva@redhat.com>
8637
8638         PR tree-optimization/42917
8639         * lambda-code.c (remove_iv): Skip debug statements.
8640         (lambda_loopnest_to_gcc_loopnest): Likewise.
8641         (not_interesting_stmt): Debug statements are not interesting.
8642
8643 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
8644
8645         PR debug/43051
8646         PR debug/43092
8647         * cselib.c (cselib_preserve_constants,
8648         cfa_base_preserved_val): New static variables.
8649         (preserve_only_constants): New function.
8650         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8651         clear its REG_VALUES.  If cselib_preserve_constants, don't
8652         empty the whole hash table, but preserve there VALUEs with constants,
8653         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8654         (cselib_preserve_cfa_base_value): New function.
8655         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8656         (cselib_init): Change argument to int bitfield.  Set
8657         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8658         is in it.
8659         (cselib_finish): Clear cselib_preserve_constants and
8660         cfa_base_preserved_val.
8661         * cselib.h (enum cselib_record_what): New enum.
8662         (cselib_init): Change argument to int.
8663         (cselib_preserve_cfa_base_value): New prototype.
8664         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8665         * dse.c (dse_step1): Likewise.
8666         * cfgcleanup.c (thread_jump): Likewise.
8667         * sched-deps.c (sched_analyze): Likewise.
8668         * gcse.c (local_cprop_pass): Likewise.
8669         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8670         If FN is non-NULL, call the callback always and whenever it returns
8671         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
8672         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8673         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8674         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8675         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8676         * var-tracking.c: Include recog.h.
8677         (bb_stack_adjust_offset): Remove.
8678         (vt_stack_adjustments): Don't call it, instead just gather the
8679         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8680         (adjust_stack_reference): Remove.
8681         (compute_cfa_pointer): New function.
8682         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8683         (struct adjust_mem_data): New type.
8684         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8685         functions.
8686         (get_address_mode): New function.
8687         (replace_expr_with_values): Use it.
8688         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8689         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
8690         (adjust_sets): Remove.
8691         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8692         Use get_address_mode.
8693         (get_adjusted_src): Remove.
8694         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
8695         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
8696         (add_with_sets): Don't call adjust_sets.
8697         (fp_setter, vt_init_cfa_base): New functions.
8698         (vt_initialize): Change return type to bool.  Move most of pool etc.
8699         initialization to the beginning of the function from end.  Pass
8700         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8701         If !frame_pointer_needed, call vt_stack_adjustment before mos
8702         vector is filled, call vt_init_cfa_base if argp/framep has been
8703         eliminated to sp.  If frame_pointer_needed and argp/framep has
8704         been eliminated to hard frame pointer, set
8705         hard_frame_pointer_adjustment and call vt_init_cfa_base after
8706         encountering fp setter in the prologue.  For MO_ADJUST, call
8707         log_op_type before pusing the op into mos vector, not afterwards.
8708         Call adjust_insn before cselib_process_insn/add_with_sets,
8709         call cancel_changes (0) afterwards.
8710         (variable_tracking_main_1): Adjust for vt_initialize calling
8711         vt_stack_adjustments and returning whether it succeeded or not.
8712
8713 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
8714
8715         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8716         debug statements.
8717
8718 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
8719
8720         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8721         has been set.
8722         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8723         drap_reg has not been set.
8724
8725 2010-03-15  Michael Matz  <matz@suse.de>
8726
8727         PR middle-end/43300
8728         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8729         use it to expand block copies.
8730         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8731         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8732         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8733
8734 2010-03-15  Richard Guenther  <rguenther@suse.de>
8735
8736         PR tree-optimization/43367
8737         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8738         elimination check.
8739
8740 2010-03-15  Richard Guenther  <rguenther@suse.de>
8741
8742         PR tree-optimization/43317
8743         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8744
8745 2010-03-15  Martin Jambor  <mjambor@suse.cz>
8746
8747         PR tree-optimization/43141
8748         * tree-sra.c (create_abstract_origin): New function.
8749         (modify_function): Call create_abstract_origin.
8750
8751 2010-03-15  Chris Demetriou  <cgd@google.com>
8752
8753         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8754         wasn't copied.
8755
8756 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8757
8758         PR middle-end/43354
8759         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8760         call insert_out_of_ssa_copy for default definitions.
8761
8762 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8763
8764         * graphite-clast-to-gimple.c (my_long_long): Defined.
8765         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8766         * graphite-sese-to-poly.c (my_long_long): Defined.
8767         (scop_ivs_can_be_represented): Use it.
8768
8769 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8770
8771         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8772         graphite-max-bbs-per-function, and loop-block-tile-size.
8773         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8774         with "maximum".
8775         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8776
8777 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8778
8779         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8780         forward declaration.
8781         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8782         (add_upper_bounds_from_estimated_nit): New.
8783         (build_loop_iteration_domains): Use it.
8784
8785 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8786
8787         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8788
8789 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8790
8791         PR middle-end/43306
8792         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8793         should be an INTEGER_CST.  Also handle CASE_CONVERT.
8794
8795 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8796
8797         * graphite.c (graphite_initialize): To bound the number of bbs per
8798         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8799         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8800         * doc/invoke.texi: Document it.
8801
8802 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8803
8804         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8805         * graphite-sese-to-poly.h (build_poly_scop): Same.
8806
8807 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8808
8809         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8810         the number of parameters in the scop.  Use as an upper bound
8811         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8812         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8813         * doc/invoke.texi: Document it.
8814
8815 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
8816
8817         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8818         * doc/c-tree.texi: Remove.
8819         * doc/generic.texi: Merge c-tree.texi here.
8820         * doc/gccint.texi (Trees): Remove menu entry.
8821         (c-tree.texi): Remove @include.
8822         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8823         * doc/languages.texi (Reading RTL): Ditto.
8824
8825 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
8826
8827         PR target/42869
8828         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8829
8830 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8831
8832         PR middle-end/42431
8833         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8834         code added to work around reload clobbering CONST insns.
8835
8836 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
8837
8838         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8839         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8840         (cselib_preserve_only_values): Remove retain argument, don't
8841         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8842         * cselib.h (cselib_preserve_only_values): Remove retain argument.
8843         * var-tracking.c (micro_operation): Move insn field before union.
8844         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8845         (struct variable_tracking_info_def): Remove n_mos field, change
8846         mos into a vector of micro_operations.
8847         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8848         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8849         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8850         changing into a vector.
8851         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
8852         come before all other uops generated by add_stores.
8853         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8854         argument removal.
8855         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
8856         a vector.  Run just one pass over the bbs instead of separate counting
8857         and computation phase.
8858         (vt_finalize): Free VTI (bb)->mos vector instead of array.
8859
8860         PR debug/43329
8861         * tree-inline.c (remap_decls): Put old_var rather than origin_var
8862         into *nonlocalized_list vector.
8863         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8864         even if origin is non-NULL.
8865         (gen_variable_die): Likewise.
8866         (process_scope_var): Don't change origin.
8867         (gen_decl_die): Likewise.
8868         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8869         before adding new edges instead of after it, fix moving over
8870         debug stmts.
8871
8872 2010-03-11  David S. Miller  <davem@davemloft.net>
8873
8874         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
8875         of four.
8876         * configure: Rebuild.
8877
8878 2010-03-11  Martin Jambor  <mjambor@suse.cz>
8879
8880         PR tree-optimization/43257
8881         * tree.c (assign_assembler_name_if_neeeded): New function.
8882         (free_lang_data_in_cgraph): Assembler name assignment moved to the
8883         above new function.
8884         * tree.h (assign_assembler_name_if_neeeded): Declare.
8885         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
8886         the function if needed.
8887
8888 2010-03-11  Chris Demetriou  <cgd@google.com>
8889
8890         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
8891         include/stdint-gcc.h, and include/stdint.h world-readable.
8892
8893 2010-03-11  Richard Guenther  <rguenther@suse.de>
8894
8895         PR tree-optimization/43255
8896         * tree-vrp.c (process_assert_insertions_for): Do not insert
8897         asserts for trivial conditions.
8898
8899 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8900
8901         PR tree-optimization/43280
8902         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
8903         generation.  Move calculation of size out of the if branch.
8904         (find_bswap): Modify compare number generation.
8905
8906 2010-03-11  Richard Guenther  <rguenther@suse.de>
8907
8908         PR lto/43200
8909         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
8910         (input_gimple_stmt): Fixup handled component types during
8911         operand read.  Also fix up decls in ADDR_EXPRs.
8912
8913 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
8914
8915         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
8916         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
8917
8918 2010-03-10  Jan Hubicka  <jh@suse.cz>
8919
8920         PR c/43288
8921         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
8922         * varasm.c (get_variable_section): Don't do that here...
8923         (make_decl_rtl): ... and here.
8924         (do_assemble_alias): Produce decl RTL.
8925         (assemble_alias): Likewise.
8926
8927 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
8928
8929         PR debug/43290
8930         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
8931         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
8932         of fde->vdrap_reg.
8933         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
8934         (based_loc_descr): Only express drap or vdrap regno based expressions
8935         using DW_OP_fbreg when not optimizing.
8936         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
8937         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
8938         REG_CFA_SET_VDRAP note.
8939
8940 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
8941
8942         PR tree-optimization/43236
8943         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
8944         error in calculation of base address in reverse iteration case.
8945         (generate_builtin): Take number of latch executions if the statement
8946         is in the latch.
8947
8948 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
8949
8950         PR middle-end/42859
8951         * tree-eh.c: Include pointer-set.h.
8952         (lower_eh_dispatch): Filter out duplicate case labels and
8953         remove the unneeded edge when the label is unused.  Return
8954         true when some edges are removed.
8955         (execute_lower_eh_dispatch): When any lowering resulted in
8956         removing an edge, also delete unreachable blocks.
8957
8958 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
8959
8960         PR bootstrap/43287
8961         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8962         UNSPEC_MACHOPIC_OFFSET.
8963
8964 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
8965
8966         PR target/43294
8967         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8968         (m68k_delegitimize_address): New function.
8969
8970 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
8971
8972         PR debug/43299
8973         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
8974
8975         PR debug/43299
8976         * var-tracking.c (adjust_sets): New function.
8977         (count_with_sets, add_with_sets): Use it.
8978         (get_adjusted_src): New inline function.
8979         (add_stores): Use it.
8980
8981         PR debug/43304
8982         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
8983         call cselib_dummy_expand_value_rtx_cb instead of
8984         cselib_expand_value_rtx_cb.
8985
8986         PR debug/43293
8987         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
8988         * config/i386/i386.c: Include debug.h and dwarf2out.h.
8989         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
8990         and .cfi_endproc around the pic thunks.
8991         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
8992         all queued unwind info register saves are saved before the call.
8993         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
8994         considered as sp-=4 for unwind info and the pop as sp+=4 which
8995         also clobbers dest, but doesn't actually restore it.
8996
8997         PR debug/43290
8998         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
8999         RTX_FRAME_RELATED_P.
9000
9001 2010-03-09  Jie Zhang  <jie@codesourcery.com>
9002
9003         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
9004         whitespaces in output template.
9005
9006 2010-03-09  Jie Zhang  <jie@codesourcery.com>
9007
9008         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
9009         out array boundary.
9010
9011 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
9012
9013         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
9014         builtins.exp in a separate job.
9015
9016 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9017
9018         * graphite-sese-to-poly.c (add_param_constraints): Use
9019         lower_bound_in_type and upper_bound_in_type.
9020
9021 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9022
9023         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
9024         instead of unsigned_type_node.
9025
9026 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9027             Reza Yazdani  <reza.yazdani@amd.com>
9028
9029         PR middle-end/43065
9030         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
9031         on pointer type parameters.
9032
9033 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
9034
9035         PR middle-end/42644
9036         PR middle-end/42130
9037         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
9038         handle conversions from pointer to integers.
9039         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
9040         induction variable, to be able to work with code generated by CLooG.
9041         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
9042         (build_poly_scop): Bail out if we cannot codegen a loop.
9043
9044 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
9045
9046         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
9047         code generation with gloog_error.
9048
9049 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9050
9051         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
9052         Call fold_convert on all the returned values.
9053         (expand_scalar_variables_expr): Pass to
9054         expand_scalar_variables_ssa_name the type of the resulting expression.
9055
9056 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9057
9058         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
9059         ppl_min_for_le_pointset.
9060         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
9061         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
9062
9063 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9064
9065         * graphite-dependences.c (map_into_dep_poly): Removed.
9066         (dependence_polyhedron_1): Use combine_context_id_scat.
9067
9068 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9069
9070         * graphite-poly.h (struct poly_scattering): Add layout documentation.
9071         (struct poly_bb): Same.
9072         (combine_context_id_scat): New.
9073
9074 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9075
9076         PR middle-end/42326
9077         * sese.c (name_defined_in_loop_p): Return false for default
9078         definitions.
9079
9080 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9081
9082         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
9083         and clean up the logic.
9084
9085 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9086
9087         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
9088         early return.
9089
9090 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
9091
9092         * var-tracking.c (remove_cselib_value_chains): Define only for
9093         ENABLE_CHECKING.
9094         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
9095         delete_slot_part, emit_notes_for_differences_1): Don't call
9096         remove_cselib_value_chains here.
9097         (set_slot_part, emit_notes_for_differences_2): Don't call
9098         add_cselib_value_chains here.
9099         (preserved_values): New vector.
9100         (preserve_value): New function.
9101         (add_uses, add_stores, vt_add_function_parameters): Use it
9102         instead of cselib_preserve_value.
9103         (changed_values_stack): New vector.
9104         (check_changed_vars_0): New function.
9105         (check_changed_vars_1, check_changed_vars_2): Use it.
9106         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
9107         changed_values_stack VALUEs.
9108         (vt_emit_notes): For all preserved_values call
9109         add_cselib_value_chains.  If ENABLE_CHECKING call
9110         remove_cselib_value_chains before verifying value_chains is empty.
9111         Initialize and free changed_values_stack.
9112         (vt_initialize): Initialize preserved_values.
9113         (vt_finalize): Free preserved_values.
9114
9115 2010-03-08  Richard Guenther  <rguenther@suse.de>
9116
9117         PR tree-optimization/43269
9118         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
9119         region detection.
9120
9121 2010-03-08  Martin Jambor  <mjambor@suse.cz>
9122
9123         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
9124         (ipa_is_param_called): Removed.
9125         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
9126         (ipa_print_node_params): Do not print the called flag.
9127         (ipa_write_node_info): Do not stream the called flag.
9128         (ipa_read_node_info): Likewise.
9129
9130 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
9131
9132         PR debug/43176
9133         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
9134         * cselib.c (struct expand_value_data): Add dummy field.
9135         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
9136         dummy to false.
9137         (cselib_dummy_expand_value_rtx_cb): New function.
9138         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
9139         any rtl.
9140         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
9141         * var-tracking.c: Include pointer-set.h.
9142         (variable): Change n_var_parts to char from int.  Add
9143         cur_loc_changed and in_changed_variables fields.
9144         (variable_canonicalize): Remove.
9145         (shared_var_p): New inline function.
9146         (unshare_variable): Maintain cur_loc_changed and
9147         in_changed_variables fields.  If var was in changed_variables,
9148         replace it there with new_var.  Just copy cur_loc instead of
9149         resetting it to something else.
9150         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
9151         (dataflow_set_union): Don't call variable_canonicalize.
9152         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
9153         of their DEBUG_EXPR_TREE_DECLs.
9154         (canonicalize_loc_order_check): Verify that cur_loc is NULL
9155         and in_changed_variables and cur_loc_changed is false.
9156         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
9157         and cur_loc_changed.  Don't update cur_loc here.
9158         (variable_merge_over_src): Don't call variable_canonicalize.
9159         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
9160         removing loc that is equal to cur_loc, clear cur_loc,
9161         set cur_loc_changed and ensure variable_was_changed is called.
9162         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
9163         compare pointers in cur_loc check, if it is equal to loc,
9164         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
9165         (variable_different_p): Remove compare_current_location argument,
9166         don't compare cur_loc.
9167         (dataflow_set_different_1): Adjust variable_different_p caller.
9168         (variable_was_changed): If dv had some var in changed_variables
9169         already, reset in_changed_variables flag for it and propagate
9170         cur_loc_changed over to the new variable.  On empty var
9171         always set cur_loc_changed.  Set in_changed_variables on whatever
9172         var is added to changed_variables.
9173         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
9174         Use shared_var_p.  When removing loc that is equal to cur_loc,
9175         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
9176         end, don't set it to something else, just call variable_was_changed.
9177         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
9178         loc being removed, clear cur_loc and set cur_loc_changed.
9179         Set cur_loc_changed if all locations have been removed.
9180         (struct expand_loc_callback_data): New type.
9181         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
9182         allocated.  Always create SUBREGs if simplify_subreg failed.
9183         Prefer to use cur_loc, when that fails and still in
9184         changed_variables (and seen first time) recompute it.  Set
9185         cur_loc_changed of variables which had to change cur_loc and
9186         compute elcd->cur_loc_changed if any of the subexpressions used
9187         had to change cur_loc.
9188         (vt_expand_loc): Adjust to pass arguments in
9189         expand_loc_callback_data structure.
9190         (vt_expand_loc_dummy): New function.
9191         (emitted_notes): New variable.
9192         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
9193         that weren't used for any other decl in current
9194         emit_notes_for_changes call call vt_expand_loc_dummy to update
9195         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
9196         first loc_chain location if NULL before.  Always use just
9197         cur_loc instead of first loc_chain location.  When cur_loc_changed
9198         is false, when not --enable-checking=rtl just don't emit any note.
9199         When rtl checking, compute the note and assert it is the same
9200         as previous note.  Clear cur_loc_changed and in_changed_variables
9201         at the end before removing from changed_variables.
9202         (check_changed_vars_3): New function.
9203         (emit_notes_for_changes): Traverse changed_vars to call
9204         check_changed_vars_3 on each changed var.
9205         (emit_notes_for_differences_1): Clear cur_loc_changed and
9206         in_changed_variables.  Recompute cur_loc of new_var.
9207         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9208         (vt_emit_notes): Initialize and destroy emitted_notes.
9209
9210 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9211
9212         PR rtl-optimization/42220
9213         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9214         Use verify_reg_tracked to determine if we should use OP_OUT rather
9215         than OP_INOUT.
9216         (build_def_use): If we see an in-out operand for a register that we
9217         know nothing about, treat is an output if possible, fail the block if
9218         not.
9219
9220 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
9221
9222         PR debug/42897
9223         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9224         permanently.
9225
9226 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
9227
9228         PR debug/42897
9229         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9230         uses of relevant DEFs that are dead outside the loop too.
9231
9232 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
9233
9234         * var-tracking.c (dataflow_set_merge): Swap src and src2.
9235         Reverted:
9236         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
9237         PR debug/41371
9238         * var-tracking.c (values_to_unmark): New variable.
9239         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9240         values_to_unmark vector.  Moved body to...
9241         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
9242         instead queue it into values_to_unmark vector.
9243         (vt_find_locations): Free values_to_unmark vector.
9244
9245 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
9246
9247         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9248         (site.exp): Export them when plugins are enabled.
9249
9250 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
9251
9252         PR middle-end/42326
9253         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9254         that contain scevs.
9255         (chrec_fold_multiply): Same.
9256
9257 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
9258
9259         PR c/43248
9260         * c-decl.c (build_compound_literal): Return early if init is
9261         an error_mark_node.
9262
9263 2010-03-04  Martin Jambor  <mjambor@suse.cz>
9264
9265         PR tree-optimization/43164
9266         PR tree-optimization/43191
9267         * tree-sra.c (type_consists_of_records_p): Reject records with
9268         zero-size bit-fields at the end.
9269
9270 2010-03-04  Mike Stump  <mikestump@comcast.net>
9271
9272         * Makefile.in (TAGS): Remove *.y.
9273
9274 2010-03-04  Richard Guenther  <rguenther@suse.de>
9275
9276         PR tree-optimization/40761
9277         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9278         in reverse order.
9279         (my_rev_post_order_compute): New function.
9280         (init_pre): Call it.
9281
9282 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9283
9284         PR middle-end/43209
9285         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9286         decrease the cost of an IV candidate when the cost is infinite.
9287
9288 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9289
9290         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9291         Use '3DNow!' for the extension of that name, ensure normal space
9292         after the string.
9293         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9294
9295 2010-03-03  Jeff Law  <law@redhat.com>
9296
9297         * PR middle-end/32693
9298         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9299         than gen_rtx_SUBREG.
9300         (extract_bit_field_1): Likewise.
9301
9302 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
9303
9304         * doc/sourcebuild.texi (Test directives): Document that arguments
9305         include-opts and exclude-opts are now optional for dg-skip-if,
9306         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9307
9308 2010-03-03  Jason Merrill  <jason@redhat.com>
9309
9310         PR c++/12909
9311         * cgraph.h (varpool_node): Add extra_name field.
9312         * varpool.c (varpool_extra_name_alias): New.
9313         (varpool_assemble_decl): Emit extra name aliases.
9314         (varpool_mark_needed_node): Look past an extra name alias.
9315         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9316         * lto-streamer-in.c (lto_input_tree): Read it.
9317         * lto-streamer-out.c (output_unreferenced_globals): Write it.
9318
9319 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
9320
9321         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9322         (sparc*-*-solaris2*): ...this.
9323
9324 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
9325
9326         PR debug/43229
9327         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9328         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
9329         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9330         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9331
9332         PR debug/43237
9333         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9334         fallthrough to default handling, just with want_address 0 instead of 2.
9335         For single element lists, add_AT_loc directly, otherwise create an
9336         artificial variable DIE and stick location list to it.
9337
9338         PR debug/43177
9339         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9340         (VAL_EXPR_HAS_REVERSE): Define.
9341         (reverse_op): New function.
9342         (add_stores): For reversible operations add an extra MO_VAL_USE.
9343
9344 2010-03-02  Jason Merrill  <jason@redhat.com>
9345
9346         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9347
9348 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
9349
9350         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9351         (sparc64-*-linux*): Likewise.
9352         (sparc64-*-solaris2*): Include assembler files before linker ones.
9353         (sparc-*-solaris2*): Simplify and reorder to match previous case.
9354         * config/sparc/gas.h: Delete.
9355         * config/sparc/sol2-64.h: Add copyright notice.
9356         * config/sparc/sol2-gas-bi.h: Likewise.
9357         * config/sparc/sol2-gld.h: Likewise.
9358         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9359         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9360         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9361         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9362         (sparc_elf_asm_named_section): Rename into...
9363         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
9364
9365 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
9366
9367         * config/alpha/alpha.c (override_options): Fix -mtune error message.
9368
9369 2010-03-02  Jeff Law  <law@redhat.com>
9370
9371         PR middle-end/42431
9372         * reload1.c (rtx_p, substitute_stack): Declare.
9373         (substitute): Record addresses of changed rtxs.
9374         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9375         Restore the original rtx when complete.
9376         (reload): Free subsitute_stack when complete.
9377
9378 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
9379
9380         * doc/gccint.texi (menu): Add Testsuites as a chapter.
9381         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9382         new chapter.
9383         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9384         LTO Testing, gcov Testing, profopt Testing, compat Testing,
9385         Torture Tests): Change from subsection to section.
9386
9387 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
9388             Steven Bosscher  <steven@gcc.gnu.org>
9389
9390         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
9391         instead of bb.
9392
9393 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
9394
9395         PR middle-end/42640
9396         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
9397         the assignment from the new induction variable to the assignment
9398         of the value from the original loop PHI function.
9399
9400 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
9401             Daniel Jacobowitz  <dan@codesourcery.com>
9402
9403         * doc/sourcebuild.texi (Test directives): Clarify options to
9404         dg-skip-if.
9405
9406 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9407
9408         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
9409         Disable cfi directives unless GCC and gas agree on using read-only
9410         .eh_frame sections for 64-bit.
9411         * configure: Regenerate.
9412
9413 2010-03-01  Richard Guenther  <rguenther@suse.de>
9414
9415         PR tree-optimization/43220
9416         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
9417         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
9418
9419 2010-03-01  Richard Guenther  <rguenther@suse.de>
9420             Martin Jambor  <mjambor@suse.cz>
9421
9422         PR middle-end/41250
9423         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9424         gimplified parameters.
9425
9426 2010-03-01  Christian Bruel  <christian.bruel@st.com>
9427
9428         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9429
9430 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9431
9432         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9433
9434 2010-03-01  Richard Guenther  <rguenther@suse.de>
9435
9436         PR middle-end/43213
9437         * expr.c (expand_assignment): Use the alias-oracle to tell
9438         if the rhs aliases the result decl.
9439
9440 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9441
9442         PR pch/14940
9443         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9444         to sol_gt_pch_get_address.
9445         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9446         64-bit, SPARC and x86.
9447         (sol_gt_pch_get_address): New function.
9448
9449 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
9450
9451         * toplev.h (inform_n, error_n): Declare.
9452         * diagnostic.c (inform_n, error_n): New function.
9453
9454 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
9455
9456         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9457         has no rtl yet when processing local_decls, queue it and recheck
9458         if deferred stack allocation hasn't assigned it rtl.
9459
9460 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
9461
9462         * config/sh/sh.c (unspec_bbr_uid): New.
9463         (gen_block_redirect): Use it instead of INSN_UID.
9464         (gen_far_branch): Likewise.
9465
9466 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
9467
9468         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9469         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9470
9471 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9472
9473         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9474         (Warning Options): -Wno-conversion-null is valid for
9475         Objective-C++ as well.
9476         * doc/tm.texi (Named Address Spaces): Likewise.
9477         * doc/plugins.texi (Plugins): Replace TABs with spaces.
9478         * doc/tree-ssa.texi (Tree SSA): Likewise.
9479
9480 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9481
9482         PR bootstrap/43202
9483         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9484         by default.  Don't set the default arch for
9485         i[34567]86-*-darwin*|x86_64-*-darwin*.
9486
9487 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9488
9489         PR bootstrap/43202
9490         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9491         default.  Set the default 32bit/64bit archs with $with_arch
9492         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9493
9494 2010-02-27  Richard Guenther  <rguenther@suse.de>
9495
9496         PR tree-optimization/43186
9497         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9498         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9499         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9500         unroller iterations.
9501
9502 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9503
9504         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9505         required and i[34567]86-*-* targets don't support 64bit ISA.
9506
9507 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
9508
9509         PR ada/43096
9510         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9511         the same alias set.
9512
9513 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
9514
9515         * config.gcc: Set the default arch at least to Prescott for
9516         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9517         if SSE math is enabled.
9518
9519 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9520
9521         * diagnostic.c (diagnostic_initialize): Update.
9522         (diagnostic_report_diagnostic): Test inhibit_notes_p for
9523         informative notes.
9524         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9525         (diagnostic_inhibit_notes): New.
9526         * toplev.c (process_options): inhibit notes with -fcompare-debug.
9527
9528 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9529
9530         PR c/20631
9531         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9532         * doc/standards.texi: Likewise.
9533         * doc/extend.texi: Likewise.
9534         * doc/trouble.texi: Likewise.
9535         * doc/cppopts.texi: Likewise.
9536         * doc/install.texi: Likewise.
9537         * c.opt (std=c90,std=gnu90): New options.
9538         * c-opts.c (c_common_handle_option): Handle them.
9539
9540 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9541
9542         PR c/24577
9543         * c-decl.c (undeclared_variable): Use an informative note.
9544
9545 2010-02-26  Richard Guenther  <rguenther@suse.de>
9546
9547         PR tree-optimization/43186
9548         * gimple.h (gimple_fold): Remove.
9549         * gimple.c (gimple_fold): Remove.  Inline into single user ...
9550         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9551         Try harder for conditions.
9552
9553 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9554
9555         PR debug/43190
9556         * function.c (used_types_insert): Don't skip through named pointer
9557         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
9558         and it is different from the main variant's type.
9559
9560 2010-02-26  Nick Clifton  <nickc@redhat.com>
9561
9562         * config/rx/rx.md (sminsi3): Remove bogus alternative.
9563
9564 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
9565
9566         * config.gcc: Support --with-fpmath=sse for x86.
9567
9568         * config/i386/ssemath.h: New.
9569
9570         * doc/install.texi (--with-fpmath=sse): Documented.
9571
9572 2010-02-26  Richard Guenther  <rguenther@suse.de>
9573
9574         PR tree-optimization/43188
9575         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9576         vector types of over-aligned element type.
9577
9578 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
9579
9580         PR target/43175
9581         * config/i386/i386.c (expand_vec_perm_blend): Use correct
9582         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
9583
9584 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9585
9586         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9587
9588 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9589
9590         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9591         * var-tracking.c: Include diagnostic.h.
9592         (debug_dv): New function.
9593         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9594
9595         PR debug/43160
9596         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9597         (add_value_chain, add_value_chains, remove_value_chain,
9598         remove_value_chains): Handle DEBUG_EXPRs.
9599         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9600
9601         PR debug/43161
9602         * regcprop.c (struct queued_debug_insn_change): New type.
9603         (struct value_data_entry): Add debug_insn_changes field.
9604         (struct value_data): Add n_debug_insn_changes field.
9605         (debug_insn_changes_pool): New variable.
9606         (free_debug_insn_changes, apply_debug_insn_changes,
9607         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9608         (kill_value_one_regno): Call free_debug_insn_changes if needed.
9609         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9610         fields.
9611         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9612         changes for them.
9613         (copyprop_hardreg_forward_1): Don't call apply_change_group for
9614         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
9615         changes, call cprop_find_used_regs via note_stores.
9616         (copyprop_hardreg_forward): When copying vd from predecessor
9617         which has any queued DEBUG_INSN changes, make sure the pointers are
9618         cleared.  At the end call df_analyze and then if there are any
9619         DEBUG_INSN changes queued at the end of some basic block for still
9620         live registers, apply them.
9621         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9622
9623 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
9624
9625         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9626         (arm*-*-*): Ditto.
9627
9628 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
9629
9630         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9631         targets.  Set the default with_cpu/with_arch from arch/cpu.
9632         Allow x86-64 and native for with_cpu/with_arch.
9633
9634 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
9635
9636         * ebitmap.c: Change calls to verify_popcount with calls to
9637         sbitmap_verify_popcount.
9638         (ebitmap_clear_bit): Fixed map->cacheindex test and
9639         map>cache update when bit clearing results in an empty
9640         element.
9641
9642 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
9643
9644         PR target/43154
9645         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9646         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9647         and support both V2DF and V2DI modes.
9648         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9649         support both V2DF and V2DI modes.
9650         (general): Delete trailing whitespace from a few patterns.
9651
9652         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9653         V2DF/V2DI interleave high/low builtins.
9654
9655         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9656         new VSX builtins.
9657
9658         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9659         interleave high/low functions.
9660
9661 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9662
9663         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9664         #pragma extern_prefix.
9665
9666 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
9667
9668         PR debug/43166
9669         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9670         BLKmode, assert op0 is a MEM and just adjust its mode.
9671
9672         PR debug/43165
9673         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9674         if bitpos isn't multiple of mode's bitsize.
9675
9676 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9677
9678         * c.opt (-ftemplate-depth=): New.
9679         (-ftemplate-depth-): Deprecate.
9680         * optc-gen.awk: Handle -ftemplate-depth=.
9681         * opth-gen.awk: Likewise.
9682         * c-opts.c (c_common_handle_option): Likewise.
9683         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9684
9685 2010-02-24  Jason Merrill  <jason@redhat.com>
9686
9687         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9688
9689 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9690
9691         * cfg.c (alloc_aux_for_block): Remove inline.
9692         (alloc_aux_for_edge): Likewise.
9693
9694 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9695
9696         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9697
9698 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9699
9700         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9701         * config/i386/sol2-gas.h: New file.
9702         * config.gcc (i[34567]86-*-solaris2*): Use it.
9703
9704 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9705
9706         PR c/43128
9707         * c-typeck.c (ep_convert_and_check): New.
9708         (build_conditional_expr): Use it.
9709         (build_binary_op): Likewise.
9710
9711 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
9712
9713         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9714
9715         PR debug/43150
9716         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9717         bounds even for -O+.
9718         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9719         expr needs to have DECL_NAME set.
9720
9721 2010-02-24  Nick Clifton  <nickc@redhat.com>
9722
9723         * config/mep/mep.c: Include gimple.h.
9724         (mep_function_uses_sp): Delete unused function.
9725         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9726         parameters.  Use unsigned integers to count args.  Return a
9727         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
9728
9729 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9730
9731         PR target/43107
9732         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9733         greater or equal to nelt instead of 2 * nelt.
9734         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9735         with nelt - 1.
9736
9737 2010-02-23  Jason Merrill  <jason@redhat.com>
9738
9739         PR debug/42800
9740         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9741         in cfun->local_decls even if they have register types.
9742
9743         PR c++/42837
9744         * stor-layout.c (place_field): Don't warn about unnecessary
9745         DECL_PACKED if the type is packed.
9746
9747 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9748
9749         PR target/43139
9750         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9751         GOTOFF relocs, even when the base reg isn't pic pointer.
9752
9753 2010-02-23  Michael Matz  <matz@suse.de>
9754
9755         PR debug/43077
9756         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9757         (expand_gimple_basic_block): Generate and use debug temps if there
9758         are debug uses left after the last real use of TERed ssa names.
9759         Unlink debug immediate uses when they are expanded.
9760
9761 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9762
9763         PR 43123
9764         * config/i386/i386.c (override_options): Reorganise to provide
9765         better error messages.
9766
9767 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9768
9769         PR middle-end/43083
9770         * graphite-scop-detection.c (create_single_exit_edge): Move
9771         the call to find_single_exit_edge to....
9772         (create_sese_edges): ...here.  Don't handle multiple edges
9773         exiting the function.
9774         (build_graphite_scops): Don't handle multiple edges
9775         exiting the function.
9776
9777 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9778
9779         PR middle-end/43097
9780         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9781         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9782
9783 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9784
9785         PR middle-end/43026
9786         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9787
9788 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9789
9790         PR c++/43126
9791         * c-typeck.c (convert_arguments): Print declaration location.
9792         * c-common.c (validate_nargs): Rename as
9793         builtin_function_validate_nargs.
9794         (check_builtin_function_arguments): Update.
9795
9796 2010-02-22  Richard Guenther  <rguenther@suse.de>
9797
9798         PR lto/43045
9799         * tree-inline.c (declare_return_variable): Use the type of
9800         the call stmt lhs if available.
9801
9802 2010-02-22  Duncan Sands  <baldrick@free.fr>
9803
9804         * passes.c (register_pass): Always consider all pass lists when
9805         ref_pass_instance_number is zero.
9806
9807 2010-02-22  Richard Guenther  <rguenther@suse.de>
9808
9809         PR tree-optimization/42749
9810         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9811         parameter.  Do arithmetic in the original type.
9812         (update_accumulator_with_ops): Likewise.
9813         (adjust_accumulator_values): Adjust.
9814
9815 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9816
9817         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9818         (QI to BLKmode splitter): New splitter.
9819
9820 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
9821
9822         * config/i386/i386.c (initial_ix86_tune_features): Turn on
9823         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9824
9825 2010-02-22  Richard Guenther  <rguenther@suse.de>
9826
9827         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9828
9829 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
9830
9831         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9832         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9833         ($(T)crti.o, $(T)crtn.o): Remove rules.
9834
9835 2010-02-21  Tobias Burnus  <burnus@net-b.de>
9836
9837         PR fortran/35259
9838         * doc/invoke.texi (-fassociative-math): Document that this
9839         option is automatically enabled for Fortran.
9840
9841 2010-02-20  David S. Miller  <davem@davemloft.net>
9842
9843         * configure.ac: Test if linker and assembler properly support
9844         GOTDATA_OP relocations.
9845         * configure: Rebuild.
9846         * config.in: Likewise.
9847         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9848         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9849         (movsi_high_pic): Likewise.
9850         (movdi_lo_sum_pic): Likewise.
9851         (movdi_high_pic): Likewise.
9852         (movsi_pic_gotdata_op): New pattern.
9853         (movdi_pic_gotdata_op): Likewise.
9854         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9855         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9856
9857 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
9858
9859         PR target/43067
9860         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9861         attribute to ssemul.
9862         (xop_mulv2div2di3_high): Ditto.
9863
9864 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9865
9866         PR c++/35669
9867         * c.opt (Wconversion-null): New option.
9868         * doc/invoke.texi (Wconversion-null): Document.
9869
9870 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9871
9872         * common.opt (Wlarger-than-): Add Undocumented.
9873
9874 2010-02-19  Mike Stump  <mikestump@comcast.net>
9875
9876         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
9877
9878 2010-02-19  Jason Merrill  <jason@redhat.com>
9879
9880         PR target/40332
9881         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
9882         * configure: Likewise.
9883
9884 2010-02-20  Alan Modra  <amodra@gmail.com>
9885
9886         PR middle-end/42344
9887         * cgraph.h (cgraph_make_decl_local): Declare.
9888         * cgraph.c (cgraph_make_decl_local): New function.
9889         (cgraph_make_node_local): Use it.
9890         * cgraphunit.c (cgraph_function_versioning): Likewise.
9891         * ipa.c (function_and_variable_visibility): Likewise.
9892
9893 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9894
9895         PR bootstrap/43121
9896         * except.c (sjlj_emit_function_enter): Don't call
9897         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
9898         directly.
9899         * rtl.h (add_reg_br_prob_note): Remove prototype.
9900
9901 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9902
9903         PR 41779
9904         * c-common.c (conversion_warning): Remove widening conversions
9905         before checking the conversion of integers to reals.
9906
9907 2010-02-19  Mike Stump  <mikestump@comcast.net>
9908
9909         PR middle-end/43125
9910         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
9911
9912         PR objc/43061
9913         * cgraphunit.c (process_function_and_variable_attributes): Check
9914         DECL_PRESERVE_P instead of looking up attribute "used".
9915         * ipa-pure-const.c (check_decl): Likewise.
9916         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
9917         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
9918         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
9919         instead of attribute "used".
9920         * config/sol2-c.c (solaris_pragma_init): Likewise.
9921         (solaris_pragma_fini): Likewise.
9922
9923 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9924
9925         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
9926         Use XCNEW instead of xcalloc.
9927         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
9928         XNEW instead of xmalloc.
9929         (get_fields): Use XNEWVEC instead of xmalloc.
9930
9931         PR debug/43084
9932         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
9933         populate vars array.
9934         (create_new_general_access): For debug stmts just reset value.
9935         (get_stmt_accesses): For accesses within debug stmts just record them
9936         using add_access_to_acc_sites instead of preventing the peeling or
9937         counting them as accesses.
9938
9939         PR middle-end/42233
9940         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
9941
9942 2010-02-19  Richard Guenther  <rguenther@suse.de>
9943
9944         PR tree-optimization/42916
9945         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
9946         instructions.
9947
9948 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
9949
9950         * configure.ac: Replace all uses of changequote in macro arguments
9951         with proper quoting.
9952
9953 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9954
9955         PR middle-end/42233
9956         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
9957
9958 2010-02-19  Richard Guenther  <rguenther@suse.de>
9959
9960         PR tree-optimization/42944
9961         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
9962         test for aliasing with errno.
9963
9964 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9965
9966         PR middle-end/42233
9967         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
9968         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
9969         * dojump.c: Include output.h.
9970         (inv): New inline function.
9971         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
9972         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
9973         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
9974         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
9975         argument, pass it down to other calls.
9976         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
9977         add REG_BR_PROB note to the conditional jump.
9978         * cfgexpand.c (add_reg_br_prob_note): Removed.
9979         (expand_gimple_cond): Don't call it, add the probability
9980         as last argument to jumpif_1/jumpifnot_1.
9981         * Makefile.in (dojump.o): Depend on output.h.
9982         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
9983         callers.
9984         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
9985         * stmt.c (do_jump_if_equal): Likewise.
9986         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
9987         * loop-unswitch.c (compare_and_jump_seq): Likewise.
9988         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
9989         Likewise.
9990         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
9991         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
9992         jumpifnot_1 callers.
9993         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
9994         callers.
9995         (store_expr): Adjust jumpifnot caller.
9996         (store_constructor): Adjust jumpif caller.
9997
9998         PR middle-end/42233
9999         * gimplify.c (gimple_boolify): For __builtin_expect call
10000         gimple_boolify also on its first argument.
10001
10002 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
10003
10004         * configure.ac (gnu-unique-object): Wrap regexps using [] in
10005         changequote block.
10006         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
10007         * configure: Regenerated.
10008
10009 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10010
10011         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
10012         lang_hooks.types_compatible_p instead of comptypes.
10013
10014 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
10015
10016         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
10017         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
10018         if __prefer_thumb__ is defined.
10019
10020 2010-02-18  Martin Jambor  <mjambor@suse.cz>
10021
10022         PR tree-optimization/43066
10023         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
10024         array with zero-sized element type.
10025
10026 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
10027
10028         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
10029         rtx, allocate struct var_loc_node here and return it to the
10030         caller, and only if it is actually needed.
10031         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
10032         move it earlier and return immediately if it returns NULL.
10033
10034 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
10035
10036         * config/sparc/gas.h: New file.  Restore
10037         TARGET_ASM_NAMED_SECTION to its ELF default.
10038         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
10039         check !HAVE_GNU_AS.
10040         * config/sparc/sparc.c (sparc_elf_asm_named_section):
10041         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
10042         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
10043         after sparc/sysv4.h.
10044
10045 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
10046
10047         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
10048
10049 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
10050
10051         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
10052         patterns from predicated pattern.
10053
10054 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
10055
10056         PR target/43103
10057         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
10058         for insn mnemonic suffix.
10059
10060 2010-02-17  Richard Guenther  <rguenther@suse.de>
10061
10062         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
10063         to loop PHI nodes.
10064
10065 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
10066
10067         PR debug/42918
10068         * caller-save.c (save_call_clobbered_regs): If BB ends with
10069         a DEBUG_INSN, move any notes in between last real insn and the last
10070         DEBUG_INSN after the last DEBUG_INSN.
10071
10072 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
10073
10074         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
10075         Fix return type.  Fix argument type.  Explain meaning of return value.
10076
10077 2010-02-16  Richard Guenther  <rguenther@suse.de>
10078
10079         PR tree-optimization/41043
10080         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
10081         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
10082         statements ...
10083         (vrp_visit_phi_node): ... but only for loop PHI nodes.
10084
10085 2010-02-16  Ira Rosen  <irar@il.ibm.com>
10086
10087         PR tree-optimization/43074
10088         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
10089         * tree-vect-loop.c (vect_analyze_loop_operations): Add
10090         vectorizable cycles in hybrid SLP check.
10091         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
10092
10093 2010-02-16  Richard Guenther  <rguenther@suse.de>
10094
10095         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
10096         (true_dependence): If memrefs_conflict_p computes must-alias
10097         trust it.  Move TBAA check after offset-based disambiguation.
10098         (canon_true_dependence): Likewise.
10099
10100 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
10101
10102         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
10103         * doc/invoke.texi: Document it.
10104         * var-tracking.c: Include toplev.h and params.h.
10105         (vt_find_locations): Return bool indicating success.  Compute
10106         hash sizes unconditionally.  Check new parameter, report.
10107         (variable_tracking_main_1): Check vt_find_locations results and
10108         retry.  Renamed from...
10109         (variable_tracking_main): ... this.  New wrapper to preserve
10110         flag_var_tracking_assignments.
10111         * Makefile.in (var-tracking.o): Adjust dependencies.
10112
10113 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
10114             Jakub Jelinek <jakub@redhat.com>
10115
10116         PR target/42854
10117         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
10118         if weak_import attribute is present.
10119         * config/darwin.c (machopic_select_section): Likewise.
10120
10121 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
10122
10123         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
10124         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
10125         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
10126         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
10127
10128         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
10129         types.
10130
10131         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
10132         Fix argument types.
10133
10134         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
10135         Rewrite text to refer to the names.
10136
10137 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
10138
10139         * config/i386/i386-builtin-types.def
10140         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
10141         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
10142         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
10143         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
10144         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
10145         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
10146         IX86_BUILTIN_VPERMIL2PS256.
10147         (MULTI_ARG_4_DF2_DI_I): Defined.
10148         (MULTI_ARG_4_DF2_DI_I1): Defined.
10149         (MULTI_ARG_4_SF2_SI_I): Defined.
10150         (MULTI_ARG_4_SF2_SI_I1): Defined.
10151         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
10152         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
10153         __builtin_ia32_vpermil2ps256.
10154         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10155         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10156         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
10157         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10158         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10159         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
10160         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
10161         CODE_FOR_xop_vpermil2v8sf3.
10162         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
10163         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
10164         * config/i386/xopintrin.h (_mm_permute2_pd): New.
10165         (_mm256_permute2_pd): New.
10166         (_mm_permute2_ps): New.
10167         (_mm256_permute2_ps): New.
10168
10169 2010-02-15  Nick Clifton  <nickc@redhat.com>
10170
10171         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
10172         boolean parameters.  Use emit_jump_insn when emitting a pop
10173         instruction containing a return insn.
10174         (push): Use 'true' rather than '1' as second parameter to F.
10175         (h8300_expand_prologue): Likewise.
10176         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
10177         (h8300_expand_epilogue): Likewise.
10178
10179 2010-02-15  Richard Guenther  <rguenther@suse.de>
10180
10181         PR middle-end/43068
10182         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
10183         if that is zero.
10184
10185 2010-02-15  Nick Clifton  <nickc@redhat.com>
10186
10187         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
10188         delta.
10189
10190 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
10191
10192         * intl.c (fake_ngettext): New function.
10193         * intl.h (fake_ngettext): Declare.
10194         (ngettext): Define macro.
10195         * collect2.c (notice_translated): New function.
10196         (main): Use notice_translated and ngettext.
10197         * collect2.h (notice_translated): Declare.
10198
10199 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10200
10201         * reorg.c (delete_computation): Comment fixes.
10202         * caller-save.c (setup_save_areas): Idem.
10203         * sel-sched-dump.c (dump_lv_set): Idem.
10204         * rtl.def: Idem.
10205
10206 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10207
10208         * config/s390/s390.c (s390_sched_init): New function.
10209         (TARGET_SCHED_INIT): Target hook defined.
10210
10211 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
10212             Jack Howarth  <howarth@bromo.med.uc.edu>
10213             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10214
10215         PR target/42982
10216         Partial revert of unintended change in fix for PR41605.
10217         * config/darwin.h: Fix typo.
10218         * config/darwin9.h: Same.
10219
10220 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
10221
10222         * c-pch.c (pch_init): Clear v.
10223
10224 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10225
10226         PR middle-end/42930
10227         * graphite-scop-detection.c (graphite_can_represent_scev): Call
10228         graphite_can_represent_init for MULT_EXPR.
10229
10230 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10231
10232         PR middle-end/42914
10233         PR middle-end/42530
10234         * graphite-sese-to-poly.c (remove_phi): New.
10235         (translate_scalar_reduction_to_array): Call remove_phi.
10236
10237 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10238
10239         PR middle-end/42771
10240         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10241         * graphite-clast-to-gimple.h (gloog): Update declaration.
10242         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10243         * graphite-poly.h (struct poly_bb): Add missing comments.
10244         (struct scop): Add poly_scop_p field.
10245         (POLY_SCOP_P): New.
10246         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10247         * graphite.c (graphite_transform_loops): Build the polyhedral
10248         representation for each scop before code generation.
10249         * sese.c (rename_variables_in_operand): Removed.
10250         (rename_variables_in_expr): Return the renamed expression.
10251         (rename_sese_parameters): New.
10252         * sese.h (rename_sese_parameters): Declared.
10253
10254 2010-02-11  Richard Guenther  <rguenther@suse.de>
10255
10256         PR tree-optimization/42998
10257         * tree-ssa-pre.c (create_expression_by_pieces): Treat
10258         POINTER_PLUS_EXPR properly.
10259
10260 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10261             Changpeng Fang  <changpeng.fang@amd.com>
10262
10263         PR middle-end/40886
10264         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10265         the cost of an IV candidate when the IV is used in a test against zero.
10266
10267         * gcc.dg/tree-ssa/ivopts-3.c: New.
10268
10269 2010-02-11  Richard Guenther  <rguenther@suse.de>
10270
10271         PR lto/41664
10272         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10273         pointer-vs-decl case by swapping refs.  Handle some cases
10274         of pointer-vs-decl disambiguations more conservatively.
10275         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10276         to false after expanding.
10277
10278 2010-02-11  Richard Guenther  <rguenther@suse.de>
10279
10280         PR driver/43021
10281         * gcc.c (process_command): Handle LTO file@offset case more
10282         appropriately.
10283
10284 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
10285
10286         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10287         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
10288         of DEBUG_INSNs.
10289         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10290
10291         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10292         if MEM's mode size isn't DWARF2_ADDR_SIZE.
10293         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10294         Optimize eq/ne comparisons when both arguments are known to be
10295         zero-extended.
10296         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10297         Don't mask operands unnecessarily if they are known to be already
10298         zero-extended.
10299
10300 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
10301
10302         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10303         instead of loop.
10304
10305 2010-02-10  Richard Guenther  <rguenther@suse.de>
10306
10307         PR tree-optimization/43017
10308         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10309         for wrapping signed arithmetic.
10310
10311 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
10312
10313         PR debug/43010
10314         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10315         if no debug info should be emitted for it.
10316
10317 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10318
10319         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10320         note when flag_exceptions is set.
10321
10322 2010-02-10  Duncan Sands  <baldrick@free.fr>
10323
10324         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10325
10326 2010-02-10  Richard Guenther  <rguenther@suse.de>
10327
10328         PR c/43007
10329         * tree.c (get_unwidened): Handle constants.
10330         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10331
10332 2010-02-10  Martin Jambor  <mjambor@suse.cz>
10333
10334         PR lto/42985
10335         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10336         check for variable argument counts independently.
10337
10338 2010-02-10  Christian Bruel  <christian.bruel@st.com>
10339
10340         PR target/42841
10341         * config/sh/sh.c (find_barrier): Increase length for non delayed
10342         conditional branches.
10343
10344 2010-02-10  Christian Bruel  <christian.bruel@st.com>
10345
10346         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10347
10348 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
10349
10350         * builtins.c (set_builtin_user_assembler_name): Also handle
10351         ffs if int is smaller than word.
10352
10353 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
10354
10355         PR middle-end/42973
10356         * ira-conflicts.c (get_dup): Remove.
10357         (process_reg_shuffles): Add new parameter.  Use it as an
10358         additional guard for copy generation.
10359         (add_insn_allocno_copies): Rewrite.
10360
10361 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
10362
10363         * common.opt (fsched2-use-traces): Preserved for backward
10364         compatibility.
10365         * doc/invoke.texi: Remove the documentation about option
10366         -fsched2-use-traces.
10367         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10368         flag_sched2_use_traces.
10369         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10370         the backward compatibility flag section.
10371
10372 2010-02-09  Richard Guenther  <rguenther@suse.de>
10373
10374         PR tree-optimization/43008
10375         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10376         make HEAP variables initialized from global memory if they
10377         are not known builtin functions.
10378         (find_func_aliases): Adjust.
10379
10380 2010-02-09  Richard Guenther  <rguenther@suse.de>
10381
10382         PR tree-optimization/43000
10383         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10384         arithmetic manually.
10385
10386 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
10387
10388         PR tree-optimization/42931
10389         * tree-loop-linear.c (try_interchange_loops): Don't call
10390         double_int_mul if estimated_loop_iterations failed.
10391
10392 2010-02-08  Martin Jambor  <mjambor@suse.cz>
10393
10394         PR middle-end/42898
10395         * tree-sra.c (build_accesses_from_assign): Do not mark in
10396         should_scalarize_away_bitmap if stmt has volatile ops.
10397         (sra_modify_assign): Do not process assigns piecemeal if if stmt
10398         has volatile ops.
10399
10400 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
10401
10402         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
10403
10404 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
10405
10406         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
10407         before the pattern.
10408
10409 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
10410
10411         PR middle-end/42946
10412         * df-core.c (df_finish_pass): Change type of saved_flags to int.
10413
10414 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
10415
10416         PR middle-end/42988
10417         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
10418         to unknown_dependence.
10419         (graphite_legal_transform_dr): Handle the unknown_dependence.
10420         (graphite_carried_dependence_level_k): Same.
10421
10422 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
10423
10424         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10425
10426 2010-02-07  Richard Guenther  <rguenther@suse.de>
10427
10428         PR middle-end/42991
10429         * expr.c (get_inner_reference): Always initialize *pbitsize.
10430
10431 2010-02-07  Richard Guenther  <rguenther@suse.de>
10432
10433         PR middle-end/42956
10434         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10435         new ARRAY_REFs on variable size element or minimal index arrays.
10436         Complete.
10437         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10438         gimple_fold_indirect_ref.
10439
10440 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
10441
10442         PR target/42957
10443         * arm.c (arm_override_options): Just return if the user has specified
10444         an invalid fpu name.
10445
10446 2010-02-03  Jason Merrill  <jason@redhat.com>
10447
10448         PR c++/42870
10449         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10450         i386_pe_maybe_record_exported_symbol.
10451
10452 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
10453
10454         PR target/42924
10455         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10456         (pa_delegitimize_address): New function.
10457
10458 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
10459
10460         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10461         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10462
10463 2010-02-05  Richard Guenther  <rguenther@suse.de>
10464
10465         PR lto/42762
10466         * lto-streamer-in.c (get_resolution): Deal with references
10467         to undefined functions.
10468
10469 2010-02-05  Richard Guenther  <rguenther@suse.de>
10470
10471         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10472         (fold_const_aggregate_ref): Likewise.
10473         (ccp_fold_stmt): Substitute loads.
10474         (maybe_fold_reference): Verify types before substituting.
10475         Unshare properly.
10476         (fold_gimple_assign): Unshare properly.
10477         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10478
10479 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
10480
10481         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10482         for rs6000_gen_cell_microcode.
10483
10484 2010-02-04  Richard Guenther  <rguenther@suse.de>
10485
10486         PR rtl-optimization/42952
10487         * dse.c (const_or_frame_p): Remove MEM handling.
10488
10489 2010-02-04  Nick Clifton  <nickc@redhat.com>
10490
10491         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10492         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10493         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10494         (mn10300_asm_output_mi_thunk): New function.
10495         (mn10300_can_output_mu_thunk): New function.
10496         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10497         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
10498         (FUNCTION_ARG): Delete incorrect comment.
10499
10500 2010-02-03  Jason Merrill  <jason@redhat.com>
10501
10502         PR c++/40138
10503         * fold-const.c (operand_equal_p): Handle erroneous types.
10504
10505 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10506
10507         * config/h8300/h8300.md (can_delay): Fix attibute condition.
10508
10509 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
10510
10511         PR rtl-optimization/42941
10512         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10513         of xmalloc.
10514
10515 2010-02-03  Jason Merrill  <jason@redhat.com>
10516
10517         PR c++/35652
10518         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10519
10520 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
10521
10522         PR debug/42896
10523         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
10524         (cselib_reset_table): Renamed from...
10525         (cselib_reset_table_with_next_value): ... this.
10526         (cselib_get_next_uid): Renamed from...
10527         (cselib_get_next_unknown_value): ... this.
10528         * cselib.c (next_uid): Renamed from...
10529         (next_unknown_value): ... this.
10530         (cselib_clear_table): Adjust.
10531         (cselib_reset_table): Adjust.  Renamed from...
10532         (cselib_reset_table_with_next_value): ... this.
10533         (cselib_get_next_uid): Adjust.  Renamed from...
10534         (cselib_get_next_unknown_value): ... this.
10535         (get_value_hash): Use hash.
10536         (cselib_hash_rtx): Likewise.
10537         (new_cselib_val): Adjust.  Set and dump uid.
10538         (cselib_lookup_mem): Pass next_uid as hash.
10539         (cselib_subst_to_values): Likewise.
10540         (cselib_log_lookup): Dump uid.
10541         (cselib_lookup): Pass next_uid as hash.  Adjust.
10542         (cselib_process_insn): Adjust.
10543         (cselib_init): Initialize next_uid.
10544         (cselib_finish): Adjust.
10545         (dump_cselib_table): Likewise.
10546         * dse.c (canon_address): Dump value uid.
10547         * print-rtl.c (print_rtx): Print value uid.
10548         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10549         (dvuid): New type.
10550         (dv_uid): New function, sort of renamed from...
10551         (dv_htab_hash): ... this, reimplemented in terms of it and...
10552         (dv_uid2hash): ... this.  New.
10553         (variable_htab_eq): Drop excess assertions.
10554         (tie_break_pointers): Removed.
10555         (canon_value_cmp): Compare uids.
10556         (variable_post_merge_New_vals): Print uids.
10557         (vt_add_function_parameters): Adjust.
10558         (vt_initialize): Reset table.  Adjust.
10559
10560 2010-02-03  Richard Guenther  <rguenther@suse.de>
10561
10562         PR tree-optimization/42944
10563         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10564         (call_may_clobber_ref_p_1): Likewise.  Properly handle
10565         malloc and calloc clobbering errno.
10566
10567 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
10568
10569         * doc/invoke.texi: Fix name of sched1 dump.
10570
10571         * opts.c (decode_options): Set flag_tree_switch_conversion
10572         only conditionally on optimize >= 2.
10573
10574         * gcse.c: Assorted comment fixes in pass description.
10575
10576 2010-02-03  Anthony Green  <green@moxielogic.com>
10577
10578         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10579         nop padding in order to maintain alignment of storage location of
10580         target function address.
10581         (moxie_trampoline_init): Store target function address at newly
10582         aligned location.
10583         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10584         to 32.
10585         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10586
10587 2010-02-03  Richard Guenther  <rguenther@suse.de>
10588
10589         PR middle-end/42927
10590         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10591
10592 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10593
10594         * config.gcc: Reenable check for obsolete targets.
10595         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10596         mips-sgi-irix6.[0-4]*.
10597
10598 2010-02-02  Nick Clifton  <nickc@redhat.com>
10599
10600         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10601         constant size of 4 as being the same as 0.
10602         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10603         can take values in the range 0..4.
10604
10605 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
10606
10607         PR java/41991
10608         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10609         as _darwin10_Unwind_FindEnclosingFunction().
10610         * libgcc-libsystem.ver: New.
10611
10612 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
10613
10614         PR target/41399
10615         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10616         implicitly set registers.
10617
10618 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
10619
10620         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10621         (arm_override_options): Allow automatic selection of the thread
10622         pointer register if thumb2.
10623         (legitimize_pic_address): Improve code sequences for Thumb2.
10624         (arm_call_tls_get_addr): Likewise.
10625         (legitimize_tls_address): Likewise.
10626         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
10627         (pic_load_addr_32bit): ... this.  New named pattern.
10628         * thumb2.md (pic_load_addr_thumb2): Delete.
10629         (pic_load_dot_plus_four): Delete.
10630         (tls_load_dot_plus_four): New named pattern.
10631
10632 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10633
10634         PR libgomp/29986
10635         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10636         Document fix for TLS bug.
10637
10638 2010-01-31  Richard Guenther  <rguenther@suse.de>
10639
10640         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10641         conservatively correct.
10642
10643 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10644
10645         PR target/42850
10646         Revert:
10647         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10648
10649         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10650
10651 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10652
10653         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10654
10655 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
10656
10657         * config.gcc: Adjust order of makefile fragments for mingw targets.
10658
10659 2010-01-31  Richard Guenther  <rguenther@suse.de>
10660
10661         PR middle-end/42898
10662         * gimplify.c (gimplify_init_constructor): For volatile LHS
10663         initialize a temporary.
10664
10665 2010-01-31  Matthias Klose  <doko@ubuntu.com>
10666
10667         * configure.ac: Fix __stack_chk_fail check for cross builds configured
10668         --with-headers
10669         * configure: Regenerate.
10670
10671 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
10672
10673         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10674         the same alias set and their sizes different constantness.
10675         (aliasing_component_refs_p): Revert 2009-10-24 change.
10676
10677 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10678
10679         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10680         unused.
10681
10682 2010-01-29  Richard Guenther  <rguenther@suse.de>
10683
10684         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10685         Assert we successfully updated the call.
10686
10687 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
10688
10689         PR rtl-optimization/42889
10690         * df.h (df_set_bb_dirty_nonlr): New prototype.
10691         * df-core.c (df_set_bb_dirty_nonlr): New function.
10692         * df-scan.c (df_insn_rescan): Call it instead of
10693         df_set_bb_dirty for DEBUG_INSNs.
10694
10695 2010-01-29  Richard Guenther  <rguenther@suse.de>
10696
10697         PR middle-end/37448
10698         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10699         quadratic behavior in most cases.
10700
10701 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
10702
10703         PR target/42891
10704         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10705         in the call to gen_x86_movsicc_0_m1.
10706
10707 2010-01-28  Richard Guenther  <rguenther@suse.de>
10708
10709         PR tree-optimization/42871
10710         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10711
10712 2010-01-28  Richard Guenther  <rguenther@suse.de>
10713
10714         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10715         into call arguments.
10716
10717 2010-01-28  Richard Guenther  <rguenther@suse.de>
10718
10719         PR middle-end/42883
10720         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10721         the forwarder if the destination is an EH landing pad.
10722
10723 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
10724
10725         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10726         block list passed to gimple_duplicate_sese_tail.
10727         (parallelize_loops): Avoid parallelization when the function
10728         has_nonlocal_label.
10729         Avoid parallelization when the preheader is IRREDUCIBLE.
10730         Try to optimize when estimated_loop_iterations_int is unresolved.
10731         Add the loop's location to the dump file.
10732         * tree-cfg.c (add_phi_args_after_redirect): Remove.
10733         (gimple_duplicate_sese_tail): Remove the check for the latch.
10734         Redirect nexits to the exit block.
10735         Remove handling of the incoming edges to the latch.
10736         Redirect the backedge from the copied latch to the exit bb.
10737
10738 2010-01-28  Michael Matz  <matz@suse.de>
10739
10740         PR target/42881
10741         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10742         Wrap force_reg into a sequence, emit it before user.
10743
10744 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
10745
10746         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10747         (arm_rev): New.
10748         (arm_legacy_rev): Likewise.
10749         (thumb_legacy_rev): Likewise.
10750
10751 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10752
10753         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10754         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
10755         on MEM's address failed, try avoid_constant_pool_reference and
10756         recurse if it returned something different.
10757         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10758         address, try avoid_constant_pool_reference and recurse if it
10759         returned something different.
10760         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10761         address and avoid_constant_pool_reference returned something
10762         different, don't set have_address.
10763
10764 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
10765
10766         PR debug/42861
10767         * var-tracking.c (val_store): Add modified argument, obey it.
10768         Adjust callers.
10769         (count_uses): Move down logging of main.
10770         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10771         don't need resolution.
10772         (emit_notes_in_bb): Likewise.
10773
10774 2010-01-27  Richard Guenther  <rguenther@suse.de>
10775
10776         PR middle-end/42878
10777         * tree-inline.c (remap_decl): Delay remapping of SSA name
10778         default definitions until we need them.
10779
10780 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10781
10782         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10783         (rs6000_delegitimize_address): New function.
10784
10785         * config/s390/s390.c (s390_delegitimize_address): Call
10786         delegitimize_mem_from_attrs.
10787
10788         PR middle-end/42874
10789         * tree-inline.c (cannot_copy_type_1): Removed.
10790         (copy_forbidden): Don't forbid copying of functions containing
10791         records/unions with variable length fields.
10792
10793 2010-01-27  Christian Bruel  <christian.bruel@st.com>
10794
10795         Revert:
10796         PR target/42841
10797         * config/sh/sh.c (find_barrier): Increase length for non delayed
10798         conditional branches.
10799
10800 2010-01-27  Matthias Klose  <doko@ubuntu.com>
10801
10802         * configure.ac (gnu-unique-object): Fix ldd version check.
10803         * configure: Regenerate.
10804
10805 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10806
10807         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10808         HAVE_GNU_AS value.
10809         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10810         Test for HAVE_GNU_AS value.
10811
10812 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10813
10814         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10815         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10816         INT64_TYPE): Define.
10817         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10818         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10819         INT_LEAST64_TYPE): Define.
10820         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10821         UINT_LEAST64_TYPE): Define.
10822         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10823         INT_FAST64_TYPE): Define.
10824         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10825         UINT_FAST64_TYPE): Define.
10826         (INTMAX_TYPE, UINTMAX_TYPE): Define.
10827         (INTPTR_TYPE, UINTPTR_TYPE): Define.
10828         (SIG_ATOMIC_TYPE): Define.
10829
10830 2010-01-26  Richard Guenther  <rguenther@suse.de>
10831
10832         * df-scan.c (df_scan_set_bb_info): Remove assert.
10833         (df_insn_rescan_debug_internal): Merge asserts.
10834         (df_install_ref): Likewise.
10835         (df_mark_reg): Use bitmap_set_range.
10836         (df_hard_reg_used_p): Remove assert.
10837         (df_hard_reg_used_count): Likewise.
10838
10839 2010-01-26  Richard Guenther  <rguenther@suse.de>
10840
10841         PR rtl-optimization/42685
10842         * web.c (web_main): Ignore DEBUG_INSNs.
10843
10844 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
10845
10846         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10847
10848         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10849         Fix types of fndecl and arglist parameters.
10850
10851 2010-01-26  Richard Guenther  <rguenther@suse.de>
10852
10853         PR middle-end/42806
10854         * tree-eh.c (unsplit_eh): Skip debug insns.
10855
10856 2010-01-26  Richard Guenther  <rguenther@suse.de>
10857
10858         PR tree-optimization/42250
10859         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10860
10861 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
10862
10863         PR fortran/42866
10864         * omp-low.c (expand_omp_sections): Only use single_pred if
10865         l2_bb is single_pred_p.
10866
10867 2010-01-25  Christian Bruel  <christian.bruel@st.com>
10868
10869         PR target/42841
10870         * config/sh/sh.c (find_barrier): Increase length for non delayed
10871         conditional branches.
10872         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10873
10874 2010-01-24  David S. Miller  <davem@davemloft.net>
10875
10876         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
10877         define if not using GAS.
10878         * config/sparc/sparc.c (sparc_elf_asm_named_section):
10879         Likewise.  Delete SECTION_MERGE code, which is only applicable
10880         when using GAS.
10881
10882 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
10883
10884         PR c++/42748
10885         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
10886         mangling of va_list in system headers.
10887
10888 2010-01-23  Toon Moene  <toon@moene.org>
10889
10890         * tree-predcom.c (combine_chains): Return NULL, not false.
10891
10892 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
10893
10894         * tree-loop-distribution.c (distribute_loop): Fix declaration and
10895         initialization of variable res to agree with return type.
10896
10897 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
10898
10899         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
10900         * tree-sra.c: Add include of expr.h.
10901
10902 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
10903
10904         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
10905         insert the debug stmt on the single non-EH edge from the stmt.
10906
10907 2010-01-22  Richard Henderson  <rth@redhat.com>
10908
10909         PR tree-opt/42833
10910         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
10911         the RHS until after generate_subtree_copies has insertted its
10912         code before the current statement.
10913
10914 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
10915
10916         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
10917
10918         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
10919
10920 2010-01-21  Martin Jambor  <mjambor@suse.cz>
10921
10922         PR tree-optimization/42585
10923         * tree-sra.c (struct access): New field grp_total_scalarization.
10924         (dump_access): Dump the new field.
10925         (should_scalarize_away_bitmap): New variable.
10926         (cannot_scalarize_away_bitmap): Likewise.
10927         (sra_initialize): Allocate new bitmaps.
10928         (sra_deinitialize): Free new bitmaps.
10929         (create_access_1): New function.
10930         (create_access): Parts moved to create_access_1.
10931         (type_consists_of_records_p): New function.
10932         (completely_scalarize_record): Likewise.
10933         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
10934         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
10935         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
10936         access.
10937         (analyze_all_variable_accesses): Completely scalarize small eligible
10938         records.
10939
10940 2010-01-21  Martin Jambor  <mjambor@suse.cz>
10941
10942         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
10943
10944 2010-01-21  Andrew Haley  <aph@redhat.com>
10945
10946         * gcc.c (process_command): Move lang_specific_driver before
10947         setting cc_libexec_prefix.
10948
10949 2010-01-21  Richard Guenther  <rguenther@suse.de>
10950
10951         PR middle-end/19988
10952         * fold-const.c (negate_expr_p): Pretend only negative
10953         real constants are easily negatable.
10954
10955 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
10956             Jason Merrill  <jason@redhat.com>
10957
10958         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
10959         (TYPE_TRANSPARENT_AGGR): this, for union and record.
10960         * calls.c (initialize argument_information): Handle it.
10961         * c-common.c (handle_transparent_union_attribute): Use new name.
10962         * c-decl.c (finish_struct): Ditto.
10963         * c-typeck.c (type_lists_compatible_p): Ditto.
10964         (convert_for_assignment): Use new name and also handle record.
10965         * function.c (aggregate_value_p): Handle it.
10966         (pass_by_reference): Ditto.
10967         (assign_parm_data_types): Ditto.
10968         * print-tree.c (print_node): Ditto.
10969         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
10970         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
10971         * tree.c (first_field): New fn.
10972
10973 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
10974
10975         PR target/42818
10976         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
10977         even when linking statically, for now.
10978
10979 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
10980
10981         PR debug/42715
10982         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
10983         without a cselib val.
10984         (count_uses): Accept MO_VAL_SET with no val on stores.
10985         (add_stores): Likewise.
10986
10987 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10988
10989         * var-tracking.c (check_value_val): Add a compile time assertion.
10990         (dv_is_decl_p): Simplify.
10991         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
10992         gcc_assert if ENABLE_CHECKING.
10993
10994 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
10995
10996         PR debug/42782
10997         * var-tracking.c: Include tree-flow.h.
10998         (mem_dies_at_call): New.
10999         (dataflow_set_preserve_mem_locs): Use it.
11000         (dataflow_set_remove_mem_locs): Likewise.
11001         (dump_var): Renamed from dump_variable.  Adjust all callers.
11002         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
11003         * Makefile.in (var-tracking.o): Adjust deps.
11004
11005 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
11006
11007         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
11008
11009 2010-01-20  Richard Guenther  <rguenther@suse.de>
11010
11011         PR tree-optimization/42717
11012         * tree-ssa-dce.c (get_live_post_dom): Remove.
11013         (forward_edge_to_pdom): Take an arbitrary edge to copy
11014         degenerate PHI args from.
11015         (remove_dead_stmt): Use the first post-dominator even if it
11016         does not contain live statements as redirection destination.
11017
11018 2010-01-20  Richard Guenther  <rguenther@suse.de>
11019
11020         * tree-inline.c (estimate_num_insns): Handle EH builtins.
11021
11022 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11023
11024         * sel-sched.c (create_speculation_check): Remove set but not used
11025         variable twin.
11026         (try_transformation_cache): Remove set but not used variable ds.
11027         (calculate_privileged_insns): Remove set but not used variables
11028         cur_insn and min_spec_insn.
11029         (find_best_expr): Remove set but not used variable avail_n.
11030         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
11031         variable e.
11032         * cgraphunit.c (assemble_thunk): Remove set but not used variable
11033         false_label.
11034         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
11035         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
11036         new_scop_exit_edge.
11037
11038 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
11039
11040         PR bootstrap/42786
11041         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
11042         cpu types.  Add support for *-sse3 cpu types.
11043         (x86_64-*-*): Ditto.
11044
11045 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11046
11047         PR middle-end/42803
11048         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
11049         argument, call initializer_constant_valid_p_1 instead of
11050         initializer_constant_valid_p, pass CACHE to it, return NULL
11051         immediately if first call returns NULL.
11052         (initializer_constant_valid_p_1): New function.
11053         (initializer_constant_valid_p): Use it.
11054
11055 2010-01-20  Thomas Quinot  <quinot@adacore.com>
11056
11057         * tree.def (PLACEHOLDER_EXPR): Fix comment.
11058
11059 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11060
11061         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
11062         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
11063         (loc_list_from_tree): Don't handle unsigned division.  Handle
11064         signed modulo using DW_OP_{over,over,div,mul,minus}.
11065         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
11066         modulo instead of signed.
11067
11068 2010-01-20  DJ Delorie  <dj@redhat.com>
11069
11070         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
11071         (Fpa): Pass it
11072         (h8300_emit_stack_adjustment): Propogate it.
11073         (push): Pass it.
11074         (h8300_expand_prologue): Likewise.
11075         (h8300_expand_epilogue): Likewise.
11076
11077 2010-01-19  Michael Matz  <matz@suse.de>
11078
11079         PR tree-optimization/41783
11080         * tree-data-ref.c (toplevel): Include flags.h.
11081         (dump_data_dependence_relation):  Also dump the inputs if the
11082         result will be unknown.
11083         (split_constant_offset_1): Look through some conversions.
11084         * tree-predcom.c (determine_roots_comp): Restart a new chain if
11085         the offset from last element is too large.
11086         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
11087         (reassociate_to_the_same_stmt): Handle vector registers.
11088         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
11089         (e.g. conversions).
11090         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
11091         wide_prolog_niters argument, emit widening instructions.
11092         (vect_do_peeling_for_alignment): Adjust caller, use widened
11093         variant of the iteration cound.
11094         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
11095
11096 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11097
11098         PR target/38697
11099         * config/arm/neon-testgen.m (emit_automatics): New parameter
11100         features. Adjust for Fixed_return_reg feature.
11101         (test_intrinsic): Call emit_automatics with new feature.
11102         * config/arm/neon.ml: Update copyright years.
11103         (features): New Fixed_return_reg feature.
11104         (ops): Update feature for Vget_low.
11105
11106 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
11107
11108         PR tree-optimization/42719
11109         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
11110         stmt uses.
11111
11112         PR debug/42728
11113         * fwprop.c (all_uses_available_at): Return false if def_set dest
11114         is a REG that is used in def_insn.
11115
11116 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
11117
11118         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
11119
11120         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
11121         Add argument names.
11122
11123         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
11124
11125         * target.h (struct gcc_target) <secondary_reload>: Change type
11126         of last argument to secondary_reload_info *.
11127
11128 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
11129
11130         PR target/42774
11131         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
11132         memory references with unaligned offsets.  Remove CQImode handling.
11133         (unaligned_memory_operand): Return 1 for memory references with
11134         unaligned offsets.  Remove CQImode handling.
11135
11136 2010-01-18  Richard Guenther  <rguenther@suse.de>
11137
11138         PR middle-end/39954
11139         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
11140         builtin calls.
11141
11142 2010-01-18  Richard Guenther  <rguenther@suse.de>
11143
11144         PR tree-optimization/42781
11145         * tree-ssa-structalias.c (find_what_var_points_to): Skip
11146         restrict processing only if the original variable was artificial.
11147
11148 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
11149
11150         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
11151         find number of popped argument bytes.
11152
11153         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
11154         Fix the text that describes the return value for invalid insns.
11155
11156         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
11157
11158         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
11159         Clarify what 'cost of the -dependence' is.  Fix quoting.
11160
11161         * toplev.c (default_get_pch_validity): Rename argument to "sz".
11162         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
11163
11164 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
11165
11166         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11167         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
11168
11169 2010-01-17  Richard Guenther  <rguenther@suse.de>
11170
11171         PR middle-end/42248
11172         * function.c (split_complex_args): Take a VEC to modify.
11173         (assign_parms_augmented_arg_list): Build a VEC instead of
11174         a chain of PARM_DECLs.
11175         (assign_parms_unsplit_complex): Take a VEC of arguments.
11176         Do not fixup unmodified parms.
11177         (assign_parms): Deal with the VEC.
11178         (gimplify_parameters): Likewise.
11179
11180 2010-01-17  Richard Guenther  <rguenther@suse.de>
11181
11182         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
11183         node existence check.
11184         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
11185         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
11186         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
11187         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
11188         (gimple_execute_on_growing_pred): Likewise.
11189
11190 2010-01-17  Richard Guenther  <rguenther@suse.de>
11191
11192         PR tree-optimization/42773
11193         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
11194         (compute_antic_aux): Likewise.
11195         (compute_partial_antic_aux): Likewise.
11196
11197 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
11198
11199         PR debug/42767
11200         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
11201         and US_TRUNCATE.
11202
11203 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
11204
11205         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11206         appearance.
11207
11208         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11209         Fix markup for strict argument.
11210
11211         (TARGET_SCHED_REORDER2): Fix argument types.
11212
11213         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11214         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11215
11216         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11217         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11218
11219         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11220         Add argument name.
11221
11222         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11223         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11224         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11225         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11226         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11227
11228         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11229
11230         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11231
11232         (TARGET_ASM_RELOC_RW_MASK): Add return type.
11233         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11234
11235         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11236
11237         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11238         Use prototype.
11239
11240         (TARGET_ASM_NAMED_SECTION): Fix argument list.
11241
11242         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11243         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11244
11245         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11246
11247         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11248
11249         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11250         referring to it.  Fix language.
11251
11252         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11253
11254         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11255
11256         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11257
11258         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11259
11260         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11261         '@var{stream}.  Remove stray 'and'.
11262
11263         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11264
11265         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11266
11267         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11268
11269         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11270         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11271
11272         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11273         Fix description of return value.
11274         Rename argument "sz" to "len."
11275
11276         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11277         Clarify meaning of 'true' return value.
11278
11279         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11280
11281         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11282         rep_mode versus mode_rep.
11283
11284         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11285
11286         (TARGET_BUILTIN_DECL): Fix name.
11287
11288         (TARGET_COMMUTATIVE_P): Fix type of first argument.
11289
11290         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11291
11292         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11293
11294         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11295
11296         (TARGET_RELAXED_ORDERING): Use @deftypevr.
11297
11298         (TARGET_GET_DRAP_RTX): Note that this is a hook.
11299         Clarify language.
11300
11301         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11302         Rename argument tm_fn to md_fn.
11303
11304         (TARGET_OPTION_PRINT): Fix argument list.
11305
11306 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
11307
11308         PR target/42664
11309         * config/i386/i386.c (ix86_fixup_binary_operands):
11310         Revert FMA4 fixup of operands.
11311
11312 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11313
11314         PR gcc/42525
11315         * Makefile.in (write_entries_to_file, install-plugin):
11316         Use \012 instead of \n with tr.
11317
11318 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
11319
11320         * configure.ac (HAVE_AS_REF): New C macro.
11321         * configure: Regenerate.
11322         * config.in: Likewise.
11323         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11324         if HAVE_AS_REF.
11325         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11326         if HAVE_AS_REF.
11327
11328 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
11329
11330         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11331
11332         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11333
11334         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11335
11336         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11337
11338         (TARGET_IN_SMALL_DATA_P): Fix argument type.
11339
11340         (TARGET_BINDS_LOCAL_P): Fix argument type.
11341
11342         (TARGET_ASM_FILE_END): Use prototype.
11343
11344         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11345
11346         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11347
11348         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11349
11350         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11351
11352         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11353         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11354
11355         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11356         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11357
11358         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11359         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11360         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11361         (TARGET_ADDR_SPACE_CONVERT): Likewise.
11362
11363         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11364
11365         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11366
11367         (TARGET_INIT_BUILTINS): Use prototype.
11368
11369         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11370         Put 'const char *' in braces.  Fix parameter types.
11371         (TARGET_INVALID_CONVERSION): Fix parameter types.
11372         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11373         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11374
11375         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11376         Fix argument type.
11377
11378         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11379
11380         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11381
11382 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
11383
11384         * doc/tm.texi (TARGET_HELP): Fix return type.
11385
11386         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11387         in braces.  Fix argument types.
11388
11389         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11390
11391         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
11392
11393         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
11394
11395         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
11396         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
11397
11398         (TARGET_MANGLE_TYPE): Fix argument types.
11399
11400         (TARGET_IRA_COVER_CLASSES): Use prototype.
11401
11402         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
11403
11404         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
11405
11406         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
11407
11408         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
11409
11410         (TARGET_CALLEE_COPIES): Fix argument types.
11411
11412         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
11413
11414         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
11415
11416         (TARGET_FUNCTION_VALUE): Fix argument types.
11417
11418         (TARGET_RETURN_IN_MSB): Fix argument type.
11419
11420         (TARGET_RETURN_IN_MEMORY): Fix argument types.
11421
11422         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11423
11424         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11425
11426         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11427         agree with return type.
11428
11429         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11430
11431 2010-01-15  Jing Yu  <jingyu@google.com>
11432
11433         PR rtl-optimization/42691
11434         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11435         a pseudo to a constant and are merged, and adjust comments.
11436
11437 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
11438
11439         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11440
11441 2010-01-15  Richard Guenther  <rguenther@suse.de>
11442
11443         PR middle-end/42739
11444         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11445         labels of computed or non-local gotos to the destination.
11446         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11447         landing pad label is the first label.
11448
11449 2010-01-15  Richard Guenther  <rguenther@suse.de>
11450
11451         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11452
11453 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11454
11455         PR target/42747
11456         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11457         to allow generation of the xssqrtdp instruction on power7.
11458         (sqrtdf2_fpr): Ditto.
11459
11460 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11461
11462         PR middle-end/42674
11463         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11464         functions with noreturn attribute.
11465
11466         PR c++/42608
11467         * varasm.c (declare_weak): Add weak attribute to decl if it
11468         doesn't have one already.
11469         (assemble_external): Only add decls to weak_decls if they also
11470         have weak attribute.
11471
11472 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
11473
11474         * var-tracking.c (var_reg_delete): Don't delete the association
11475         between REGs and values or one-part variables if the register
11476         isn't clobbered.
11477
11478 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11479
11480         PR debug/42657
11481         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11482         because its first operand is a non-localized variable.
11483
11484 2010-01-14  Martin Jambor  <mjambor@suse.cz>
11485
11486         PR tree-optimization/42706
11487         * tree-sra.c (encountered_recursive_call): New variable.
11488         (encountered_unchangable_recursive_call): Likewise.
11489         (sra_initialize): Initialize both new variables.
11490         (callsite_has_enough_arguments_p): New function.
11491         (scan_function): Call decl and flags check only for IPA-SRA, check
11492         whether there is a recursive call and whether it has enough arguments.
11493         (all_callers_have_enough_arguments_p): New function.
11494         (convert_callers): Look for recursive calls only when
11495         encountered_recursive_call is set.
11496         (ipa_early_sra): Bail out either if
11497         !all_callers_have_enough_arguments_p or
11498         encountered_unchangable_recursive_call.
11499
11500 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11501
11502         * sel-sched.c: Add 2010 to copyright years.
11503         * sel-sched-ir.c: Likewise.
11504         * sel-sched-ir.h: Likewise.
11505
11506 2010-01-14  Martin Jambor  <mjambor@suse.cz>
11507
11508         PR tree-optimization/42714
11509         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11510         constructors specially.
11511
11512 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11513
11514         * config/i386/drivers-i386.c (detect_caches_intel):
11515         Add l2sizekb parameter and fill in.
11516         (host_detect_local_cpu): Add l2sizekb, fill in.
11517         Add Atom small cache heuristic.
11518
11519 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11520
11521         * config/i386/drivers-i386.c (detect_caches_cpuid4):
11522         Add level3 parameter and fill in.
11523         (detect_caches_intel): Handle level3 cache.
11524
11525 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11526
11527         * config/i386/drivers-i386.c (host_detect_local_cpu):
11528         Fix core duo detection.
11529
11530 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11531
11532         * config/i386/drivers-i386.c (host_detect_local_cpu):
11533         Fix Atom detection.
11534
11535 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11536
11537         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11538         (rs6000_variable_issue_1): this.  Use...
11539         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
11540
11541 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11542
11543         * sel-sched-ir.c (sel_restore_other_notes): Rename to
11544         sel_restore_notes.  Update all callers.  Call reemit_notes
11545         for all insns.
11546
11547 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11548
11549         PR rtl-optimization/42246
11550         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11551         loops.
11552
11553 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11554
11555         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11556         all successors is the same as number of successors in current region.
11557
11558 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11559
11560         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11561         to rename is not separable.  Otherwise check that its LHS is not NULL.
11562
11563 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11564
11565         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
11566
11567 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11568
11569         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11570         available registers when failed to discover LHS register class.
11571         Fix indentation.  Update comment.
11572
11573 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11574             Alexander Monakov  <amonakov@ispras.ru>
11575
11576         PR rtl-optimization/42389
11577         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11578         to can_issue_more.
11579         (advance_state_on_fence): Likewise.
11580         (sel_target_adjust_priority): Print debug output only when
11581         sched_verbose >= 4, not 2.
11582         (get_expr_cost): Do not issue all unique insns on the next cycle.
11583         (fill_insns): Initialize can_issue_more from the value saved
11584         with the fence.
11585         * sel-sched-ir.c (flist_add): New parameter issue_more.
11586         Init FENCE_ISSUE_MORE with it.
11587         (merge_fences): Likewise.
11588         (init_fences): Update call to flist_add.
11589         (add_to_fences, add_clean_fence_to_fences)
11590         (add_dirty_fence_to_fences): Likewise.
11591         (move_fence_to_fences): Update call to merge_fences.
11592         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11593         sched groups.
11594         * sel-sched-ir.h (struct _fence): New field issue_more.
11595         (FENCE_ISSUE_MORE): New accessor macro.
11596
11597 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11598
11599         PR rtl-optimization/42388
11600         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11601         that have no predecessors nor successors.  Do not call move_bb_info
11602         for empty blocks outside of current region.
11603
11604 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11605
11606         PR rtl-optimization/42294
11607         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11608         * sel-sched.c (move_exprs_to_boundary): Transitively add all
11609         originators' originators.
11610
11611 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11612
11613         PR rtl-optimization/39453
11614         PR rtl-optimization/42246
11615         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11616         for pipelining_p.
11617         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11618
11619 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11620             Alexander Monakov  <amonakov@ispras.ru>
11621
11622         PR middle-end/42245
11623         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
11624         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
11625         argument.  Update all callers.
11626         (tidy_control_flow): ... and here.  Recompute topological order
11627         of basic blocks in region if necessary.
11628         (sel_redirect_edge_and_branch): Change return type.  Return true
11629         if topological order might have been invalidated.
11630         (purge_empty_blocks): Export and move from...
11631         * sel-sched.c (purge_empty_blocks): ... here.
11632         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11633         (maybe_tidy_empty_bb): Delete prototype.
11634         (purge_empty_blocks): Declare.
11635
11636 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
11637
11638         PR rtl-optimization/42249
11639         * sel-sched.c (try_replace_dest_reg): When chosen register
11640         and original register is the same, do not bail out early, but
11641         still check all original insns for validity of replacing destination
11642         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11643         in this case.
11644
11645 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11646
11647         PR c/42721
11648         Port from no-undefined-overflow branch:
11649         2009-03-09  Richard Guenther  <rguenther@suse.de>
11650
11651         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11652
11653 2010-01-14  Richard Guenther  <rguenther@suse.de>
11654
11655         PR lto/42665
11656         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11657
11658 2010-01-14  Ira Rosen  <irar@il.ibm.com>
11659
11660         PR tree-optimization/42709
11661         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11662         as scalar type in creation of constant vector operand.
11663
11664 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11665
11666         PR testsuite/42414
11667         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11668         (check-parallel-%): Match `testsuite' directory component only
11669         at the end.
11670
11671 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
11672
11673         PR translation/39521
11674         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11675         strings with _().
11676
11677 2010-01-13  Richard Guenther  <rguenther@suse.de>
11678
11679         PR tree-optimization/42730
11680         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11681         offset zero.
11682
11683 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
11684
11685         PR target/pr42542
11686         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11687         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11688         them signed.
11689
11690 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
11691
11692         * config/bfin/libgcc-bfin.ver: Regenerate based on current
11693         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
11694         ___umulsi3_highpart.
11695
11696         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11697         rather than schedule_insns if the pass is enabled.
11698
11699 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11700
11701         PR tree-optimization/42704
11702         * tree-sra.c (sra_modify_assign): Do not delete assignments to
11703         SSA_NAMEs.
11704
11705 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11706
11707         PR tree-optimization/42703
11708         * tree-sra.c (analyze_access_subtree): Check that we can build a
11709         reference to the original data within the aggregate.
11710
11711 2010-01-13  Richard Guenther  <rguenther@suse.de>
11712
11713         PR tree-optimization/42705
11714         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11715
11716 2010-01-13  Richard Guenther  <rguenther@suse.de>
11717
11718         PR middle-end/42716
11719         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11720
11721 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
11722
11723         PR debug/41371
11724         * var-tracking.c (values_to_unmark): New variable.
11725         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11726         values_to_unmark vector.  Moved body to...
11727         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
11728         instead queue it into values_to_unmark vector.
11729         (vt_find_locations): Free values_to_unmark vector.
11730
11731 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
11732
11733         * config/s390/s390.c (override_options): Set
11734         default of max-pending-list-length to 256
11735
11736 2010-01-13  Richard Guenther  <rguenther@suse.de>
11737
11738         PR lto/42678
11739         * tree-pass.h (PROP_gimple_lcx): New.
11740         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11741         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11742         before the final cleanup_eh.
11743         (dump_properties): Dump PROP_gimple_lcx.
11744         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11745         (tree_lower_complex_O0): Remove.
11746         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11747         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
11748         tree_lower_complex, schedule TODO_update_ssa.
11749         * lto-streamer-out.c (output_function): Stream the functions
11750         properties.
11751         * lto-streamer-in.c (input_function): Likewise.
11752         (lto_read_body): Do not override them here.
11753
11754 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
11755
11756         PR c/42708
11757         * c-typeck.c (build_c_cast): Fold value cast to union type before
11758         wrapping it in a CONSTRUCTOR.
11759
11760 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11761
11762         PR rtl-optimization/42699
11763         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11764         involved.
11765
11766 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11767
11768         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11769         SUBTARGET_WARN_UNUSED_SPEC): Move ...
11770         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11771         SUBTARGET_WARN_UNUSED_SPEC): ... here
11772         * config/mips/iris5.h (LIBGCC_SPEC): Define.
11773
11774 2010-01-12  Julian Brown  <julian@codesourcery.com>
11775
11776         * config/arm/neon-schedgen.ml (Utils): Don't try to
11777         open missing module.
11778         (find_with_result): New.
11779
11780 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11781
11782         PR debug/42662
11783         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11784         sharing when canonicalizing ({lt,ge}u (plus a b) b).
11785
11786         PR tree-optimization/42645
11787         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
11788         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11789         decl_map, set processing_debug_stmt to -1 and return name without
11790         any remapping.
11791
11792 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
11793
11794         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11795         binutils version, and reword target configuration description.
11796
11797 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
11798
11799         * config/avr/avr.h (LINKER_NAME): Remove.
11800
11801 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
11802
11803         PR target/42416
11804         * config/rs6000/rs6000.c (rs6000_override_options): On targets
11805         that support VSX, warn for -mno-altivec if vsx is not disabled,
11806         and disable vsx.
11807
11808 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
11809             Shujing Zhao  <pearly.zhao@oracle.com>
11810
11811         PR translation/42469
11812         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11813         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11814         character between option name and help text.
11815         * c.opt (imultilib): Likewise.
11816
11817 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
11818
11819         * lto-streamer-out.c (output_unreferenced_globals): Output static
11820         variables.
11821
11822 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
11823
11824         PR rtl-optimization/42621
11825         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11826         optimizing for size.
11827         (duplicate_computed_gotos): Remove now-redundant check.
11828
11829 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
11830
11831         PR target/37454
11832         * configure.ac: Save and restore LDFLAGS and LIBS
11833         * configure: Regenerate.
11834
11835 2010-01-10  Richard Guenther  <rguenther@suse.de>
11836
11837         PR middle-end/42667
11838         * builtins.c (fold_builtin_strlen): Add type argument and
11839         convert the resulting length to it.
11840         (fold_builtin_1): Adjust.
11841
11842 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
11843
11844         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11845         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11846         1 insn.
11847         (num_insns_constant_wide): Adjust for that change.
11848
11849 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11850
11851         PR debug/42631
11852         * web.c (union_defs): Add used argument, to combine uses of
11853         uninitialized regs.
11854         (entry_register): Adjust type and tests of used argument.
11855         (web_main): Widen used for new use.  Pass it to union_defs.
11856         * df.h (union_defs): Adjust prototype.
11857
11858 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11859
11860         PR debug/42630
11861         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11862         uses in new incoming argument.  Free body.
11863         (reset_debug_uses_in_loop): New.
11864         (analyze_insn_to_expand_var): Call the latter if the former found
11865         anything.  Fix whitespace.  Reject invalid dest overlaps before
11866         going through all insns in the loop.
11867
11868 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11869
11870         PR debug/42629
11871         * haifa-sched.c (dying_use_p): Debug insns don't count.
11872
11873 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11874
11875         PR middle-end/42363
11876         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
11877         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
11878         (verify_gimple_call): Reject LHS in noreturn calls.
11879
11880 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11881
11882         PR debug/42604
11883         PR debug/42395
11884         * tree-vect-loop-manip.c (adjust_info): New type.
11885         (adjust_vec): New pointer to vector.
11886         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
11887         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
11888         (slpeel_update_phis_for_duplicate_loop): Use them.
11889         (slpeel_update_phi_nodes_for_guard1): Likewise.
11890         (slpeel_update_phi_nodes_for_guard2): Likewise.
11891         (slpeel_tree_peel_loop_to_edge): Likewise.
11892         (vect_update_ivs_after_vectorizer): Likewise.
11893
11894 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11895
11896         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
11897         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11898
11899 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11900
11901         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
11902         bogus uninitialized warning.
11903
11904 2010-01-09  Richard Guenther  <rguenther@suse.de>
11905
11906         PR middle-end/42512
11907         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
11908         the evolution is compatible with the initial condition.
11909
11910 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
11911
11912         * gcc.c (process_command): Update copyright notice dates.
11913         * gcov.c (print_version): Likewise.
11914         * gcov-dump.c (print_version): Likewise.
11915         * mips-tfile.c (main): Likewise.
11916         * mips-tdump.c (main): Likewise.
11917
11918 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
11919
11920         PR target/41885
11921         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
11922         (rotlhi3): Delete.
11923         (rotlhi3_8): Delete.
11924         (rotlsi3): Delete.
11925         (rotlsi3_8): Delete.
11926         (rotlsi3_16): Delete.
11927         (rotlsi3_24): Delete.
11928         (rotl<mode>3): New.
11929         (*rotw<mode>3): New.
11930         (*rotb<mode>3): New.
11931         * config/avr/avr.c (avr_rotate_bytes): New function.
11932         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
11933
11934 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
11935
11936         PR target/37454
11937         * configure.ac: Modify -rdynamic check.
11938         * configure: Regenerate.
11939
11940 2010-01-08  DJ Delorie  <dj@redhat.com>
11941
11942         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
11943         register popping order.
11944
11945 2010-01-08  Richard Guenther  <rguenther@suse.de>
11946
11947         PR lto/42528
11948         * c.opt (fsigned-char): Also let LTO handle this option.
11949         (funsigned-char): Likewise.
11950
11951 2010-01-07  Richard Guenther  <rguenther@suse.de>
11952
11953         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
11954         (gimple_op): Likewise.
11955         (gimple_op_ptr): Likewise.
11956         (gimple_assign_set_lhs): Remove gcc_assert.
11957         (gimple_assign_set_rhs1): Likewise.
11958         (gimple_assign_set_rhs2): Likewise.
11959         (gimple_call_set_lhs): Likewise.
11960         (gimple_call_set_fn): Likewise.
11961         (gimple_call_set_fndecl): Likewise.
11962         (gimple_call_fndecl): Likewise.
11963         (gimple_call_return_type): Likewise.
11964         (gimple_call_set_chain): Likewise.
11965         (gimple_call_num_args): Likewise.
11966         (gimple_call_set_arg): Likewise.
11967         (gimple_cond_set_code): Likewise.
11968         (gimple_cond_set_lhs): Likewise.
11969         (gimple_cond_set_rhs): Likewise.
11970         (gimple_cond_set_true_label): Likewise.
11971         (gimple_cond_set_false_label): Likewise.
11972         (gimple_label_set_label): Likewise.
11973         (gimple_goto_set_dest): Likewise.
11974         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
11975         (gimple_debug_bind_get_value): Likewise.
11976         (gimple_debug_bind_get_value_ptr): Likewise.
11977         (gimple_debug_bind_set_var): Likewise.
11978         (gimple_debug_bind_set_value): Likewise.
11979         (gimple_debug_bind_reset_value): Likewise.
11980         (gimple_debug_bind_has_value_p): Likewise.
11981         (gimple_return_retval_ptr): Remove gcc_assert.
11982         (gimple_return_retval): Likewise.
11983         (gimple_return_set_retval): Likewise.
11984         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
11985         (safe_referenced_var_iterator): Remove.
11986         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
11987         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
11988         (fill_referenced_var_vec): Remove.
11989         (first_readonly_imm_use): Remove redundant gcc_assert.
11990         (phi_arg_index_from_use): Combine gcc_asserts.
11991         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
11992         (first_imm_use_stmt): Remove redundant gcc_assert.
11993         * tree-cfg.c (verify_gimple_call): Verify function and chain
11994         operands.  Verify arguments.
11995         (verify_types_in_gimple_stmt): Verify condition code and labels.
11996
11997 2010-01-07  Richard Guenther  <rguenther@suse.de>
11998
11999         PR tree-optimization/42641
12000         * sese.c (rename_map_elt_info): Use the SSA name version, do
12001         not hash pointers.
12002
12003 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
12004
12005         PR tree-optimization/42625
12006         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
12007         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
12008
12009 2010-01-07  Duncan Sands  <baldrick@free.fr>
12010
12011         * Makefile.in (PLUGIN_HEADERS): Add version.h.
12012
12013 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
12014
12015         PR target/42511
12016         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
12017         note itself is not function_invariant_p.
12018
12019 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
12020
12021         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
12022         Do not add the DF_NOTE problem.
12023         * store-motion.c (execute_rtl_store_motion): Likewise.
12024
12025 2010-01-07  Martin Jambor  <mjambor@suse.cz>
12026
12027         PR tree-optimization/42157
12028         * tree-sra.c (compare_access_positions): Stabilize sort if both
12029         accesses have integer types, return zero immediately if they are the
12030         same.
12031
12032 2010-01-06  Richard Henderson  <rth@redhat.com>
12033
12034         PR middle-end/41883
12035         * haifa-sched.c (add_to_note_list): Merge into ...
12036         (concat_note_lists): ... here, and ...
12037         (unlink_other_notes, rm_other_notes): Merge into...
12038         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
12039         NOTE_INSN_EPILOGUE_BEG.
12040
12041 2010-01-06  Richard Guenther  <rguenther@suse.de>
12042
12043         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
12044         not inline regular functions into always-inline functions.
12045
12046 2010-01-06  Nick Clifton  <nickc@redhat.com>
12047
12048         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
12049         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
12050         used together.
12051         (OVERRIDE_OPTIONS): Delete.
12052         (OPTIMIZATION_OPTIONS): Define.
12053         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
12054         * config/rx/rx.c (rx_handle_option): Issue an error message if
12055         -mcpu=rx200 and -fpu are used together.
12056         (rx_set_optimization_options): New function.  Issue an error
12057         message if an optimization attribute attempts to reset the FPU/
12058         math optimization pairing.
12059         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
12060         * config/rx/rx.opt: Set the default to 32-bit doubles.
12061         * config/rx/t-rx: Add multilibs for -nofpu option.
12062         * doc/invoke.texi: Update documentation of RX options.
12063
12064 2010-01-06  Richard Guenther  <rguenther@suse.de>
12065
12066         * tree-ssa-pre.c (name_to_id): New global.
12067         (alloc_expression_id): Simplify SSA name handling.
12068         (lookup_expression_id): Likewise.
12069         (init_pre): Zero name_to_id.
12070         (fini_pre): Free it.
12071
12072 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
12073
12074         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
12075
12076 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12077
12078         PR target/42542
12079         * config/i386/sse.md (smaxv2di3): New.
12080         (umaxv2di3): Likewise.
12081         (sminv2di3): Likewise.
12082         (uminv2di3): Likewise.
12083
12084 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
12085
12086         PR target/42564
12087         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
12088         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
12089         (legitimize_tls_address): Likewise.
12090         (sparc_tls_referenced_p): Likewise.
12091         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
12092         and adjust calls to legitimize_pic_address.
12093         (legitimate_constant_p) Use sparc_tls_referenced_p.
12094         (legitimate_pic_operand_p): Likewise.
12095         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
12096         (sparc_tls_symbol_ref_1): Delete.
12097         (sparc_tls_referenced_p): Make static, recognize specific patterns.
12098         (legitimize_tls_address): Make static, handle CONST patterns.
12099         (legitimize_pic_address): Make static, remove unused parameter and
12100         adjust recursive calls.
12101         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
12102         and adjust call to legitimize_pic_address.
12103         (sparc_output_mi_thunk): Likewise.
12104
12105 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
12106             H.J. Lu  <hongjiu.lu@intel.com>
12107
12108         PR target/42542
12109         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
12110         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
12111         operands to make them signed.
12112
12113         Revert:
12114         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12115
12116         PR target/42542
12117         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12118         GTU to GT for V4SI and V2DI.
12119
12120         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12121         (umin<mode>3): Removed.
12122         (uminv8hi3): New.
12123         (uminv4si3): Likewise.
12124
12125 2010-01-05  Martin Jambor  <mjambor@suse.cz>
12126
12127         PR tree-optimization/42462
12128         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
12129         current_function_decl to helper functions and macros.
12130
12131 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12132
12133         PR bootstrap/41771
12134         * flags.h: Don't include real.h.
12135         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
12136         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
12137         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
12138         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
12139         * dominance.c: Update copyright.
12140         * gimple.c (walk_gimple_op): Remove inline.
12141         * tree-ssa-reassoc.c: Include real.h.
12142         * Makefile.in (FLAGS_H): Remove $(REAL_H).
12143         (tree-ssa-reassoc.o): Depend on $(REAL_H).
12144
12145 2010-01-05  Nick Clifton  <nickc@redhat.com>
12146
12147         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
12148         register to push into the stack frame when the accumulator has to
12149         be saved during interrupts.
12150
12151 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
12152
12153         * doc/invoke.texi: Remove the documentation about option
12154         -Wunreachable-code.
12155         * common.opt (Wunreachable-code):  Preserved for backward
12156         compatibility.
12157         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
12158         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
12159         the backward compatibility flag section.
12160
12161 2010-01-05  Richard Guenther  <rguenther@suse.de>
12162
12163         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
12164
12165 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
12166
12167         PR other/42611
12168         * cfgexpand.c (expand_one_var): Diagnose too large variables.
12169
12170         PR tree-optimization/42508
12171         * tree-sra.c (convert_callers): Check for recursive call
12172         by comparing cgraph nodes instead of decls.
12173         (modify_function): Call ipa_modify_formal_parameters also
12174         on all same_body aliases.
12175
12176         * cgraphunit.c (cgraph_materialize_all_clones): Compare
12177         cgraph nodes when checking for same_body aliases.
12178
12179 2010-01-05  Richard Guenther  <rguenther@suse.de>
12180
12181         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
12182         allocation and lookup.
12183         (get_or_alloc_expr_for_constant): Likewise.
12184         (phi_translate): Sink allocation.
12185
12186 2010-01-04  Richard Guenther  <rguenther@suse.de>
12187
12188         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
12189         a new entry only if needed.
12190         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
12191         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
12192         hashtable lookup.
12193         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
12194         the result array.
12195         (phi_translate): Handle CONSTANTs early.
12196
12197 2010-01-04  Martin Jambor  <mjambor@suse.cz>
12198
12199         PR tree-optimization/42398
12200         * tree-sra.c (struct access): Removed flag grp_different_types.
12201         (dump_access): Do not dump the removed flag.
12202         (sort_and_splice_var_accesses): Do not set the removed flag.
12203         (sra_modify_expr): Check for type compatibility directly.
12204
12205 2010-01-04  Martin Jambor  <mjambor@suse.cz>
12206
12207         PR tree-optimization/42366
12208         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12209         edges with variable number of parameters.
12210         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12211         flag instead of asserting it.
12212         (ipa_read_node_info): Read uses_analysis_done flag.
12213
12214 2010-01-04  Richard Guenther  <rguenther@suse.de>
12215
12216         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12217         iterative_hash_* as intended.
12218         (vn_reference_compute_hash): Likewise.  Simplify hashing
12219         SSA names.
12220         (vn_reference_lookup_2): Likewise.
12221         (vn_nary_op_compute_hash): Likewise.
12222         (vn_phi_compute_hash): Likewise.
12223         (expressions_equal_p): Remove strange code.
12224         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12225         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
12226         (bitmap_insert_into_set_1): Take value-id as parameter.
12227         (add_to_value): Pass it.
12228         (bitmap_insert_into_set): Likewise.
12229         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
12230
12231 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
12232
12233         PR driver/42442
12234         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12235         (do_self_spec): For switches with SWITCH_IGNORE set set also
12236         SWITCH_IGNORE_PERMANENTLY.
12237         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12238         of SWITCH_IGNORE.
12239
12240 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
12241
12242         * lto-streamer-out.c (output_unreferenced_globals): Output the full
12243         tree of an unreferenced global var.
12244
12245 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12246
12247         PR target/42542
12248         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12249         GTU to GT for V4SI and V2DI.
12250
12251         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12252         (umin<mode>3): Removed.
12253         (uminv8hi3): New.
12254         (uminv4si3): Likewise.
12255
12256 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12257
12258         PR lto/42581
12259         * collect2.c (main): Turn on trace in collect2 if -v is passed
12260         to gcc with LTO.
12261
12262 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
12263
12264         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
12265         description of expression operand.
12266
12267 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
12268
12269         * configure.ac: Add install-html to target_list for Make-hooks.
12270         * configure: Regenerate.
12271         * fortran/Make-lang.in (F95_HTMLFILES): New.
12272         (fortran.html): Use it.
12273         (fortran.install-html): New.
12274         * Makefile.in (install-html): Add lang.install-html.
12275         * java/Make-lang.in (JAVA_HTMLFILES): New.
12276         (java.html): Use it.
12277         (java.install-html): New.
12278         * objc/Make-lang.in (objc.install-html): New.
12279         * objcp/Make-lang.in (obj-c++.install-html): New.
12280         * cp/Make-lang.in (c++.install-html): New.
12281         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12282         * lto/Make-lang.in (lto.install-html): New.
12283
12284 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12285
12286         PR lto/42520
12287         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12288
12289 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
12290
12291         PR rtl-optimization/41862
12292         * store-motion.c (store_killed_in_insn, compute_store_table,
12293         remove_reachable_equiv_notes, replace_store_insn,
12294         build_store_vectors): Ignore all DEBUG_INSNs.
12295
12296 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12297
12298         PR lto/41564
12299         * common.opt: Add dumpdir.
12300
12301         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12302         isn't specified.
12303         (option_map): Add --dumpdir.
12304
12305         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12306
12307         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12308
12309         * opts.c (decode_options): Try dump_dir_name first if
12310         dump_base_name isn't an absolute path.
12311         (common_handle_option): Handle OPT_dumpdir.
12312
12313         * toplev.c (dump_dir_name): New.
12314         (print_switch_values): Also ignore -dumpdir.
12315
12316         * toplev.h (dump_dir_name): New.
12317
12318 2010-01-03  Richard Guenther  <rguenther@suse.de>
12319
12320         PR tree-optimization/42589
12321         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12322         double-word expansion of bswap32.
12323
12324 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
12325
12326         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12327         with BLOCK_FOR_INSN.
12328         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12329         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12330         noce_process_if_block): Likewise.
12331         * gcse.c (compute_local_properties, insert_expr_in_table,
12332         insert_set_in_table, canon_list_insert, find_avail_set,
12333         pre_insert_copy_insn): Likewise.
12334
12335         * basic-block.h (BLOCK_NUM): Move from here...
12336         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12337
12338 2010-01-03  Richard Guenther  <rguenther@suse.de>
12339
12340         PR tree-optimization/42438
12341         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12342         contains_may_not_return_call flag.
12343         (BB_MAY_NOTRETURN): New.
12344         (valid_in_sets): Trapping nary operations are not valid
12345         in blocks that may not return.
12346         (insert_into_preds_of_block): Remove check for trapping expressions.
12347         (compute_avail): Compute also BB_MAY_NOTRETURN.
12348
12349 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
12350
12351         * doc/invoke.texi: Add 2010 to copyright years.
12352
12353 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
12354
12355         * config/sparc/sparc.c: Fix formatting nits.
12356
12357 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
12358             Alexander Monakov  <amonakov@ispras.ru>
12359
12360         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12361
12362 2010-01-02  Richard Guenther  <rguenther@suse.de>
12363
12364         PR middle-end/42577
12365         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12366         (simplify_switch_using_ranges): Mark to be removed edges
12367         as non-executable.
12368
12369 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12370
12371         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12372
12373         * collect2.c (scan_libraries): Add missing argument in call to
12374         scan_prog_file.
12375
12376 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
12377
12378         PR target/42448
12379         * config/alpha/predicates.md (aligned_memory_operand): Return false
12380         for CQImode.
12381         (unaligned_memory_operand): Return true for CQImode.
12382         * config/alpha/alpha.c (get_aligned_mem): Assert that location
12383         doesn not cross aligned SImode word boundary.
12384
12385 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
12386
12387         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12388         Remove.
12389         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12390         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
12391
12392 2010-01-02  Richard Guenther  <rguenther@suse.de>
12393
12394         PR lto/41597
12395         * toplev.c (compile_file): Emit LTO marker properly.  Change
12396         it to __gnu_lto_v1.
12397         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
12398
12399 2010-01-01  Richard Guenther  <rguenther@suse.de>
12400
12401         PR debug/42455
12402         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
12403
12404 2010-01-01  Richard Guenther  <rguenther@suse.de>
12405
12406         PR c/42570
12407         * c-decl.c (grokdeclarator): For zero-size arrays force
12408         structural equality checks as layout_type does.
12409
12410 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
12411
12412         * builtins.c: Update copyright to 2010.
12413
12414 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
12415
12416         PR lto/42531
12417         * lto-streamer-out.c (produce_asm): Revert the last change.
12418         (copy_function): Likewise.
12419
12420         * lto-streamer.c (lto_get_section_name): Skip any leading
12421         asterisk in name.
12422
12423 2010-01-01  Richard Guenther  <rguenther@suse.de>
12424
12425         PR middle-end/42559
12426         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12427         for LABEL_DECLs.
12428
12429 \f
12430 Copyright (C) 2010 Free Software Foundation, Inc.
12431
12432 Copying and distribution of this file, with or without modification,
12433 are permitted in any medium without royalty provided the copyright
12434 notice and this notice are preserved.