Move changelog entry to correct ChangeLog.
[official-gcc.git] / gcc / ChangeLog
blob6660479a9842cc4d9c3608b786f337a2f7d27d34
1 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
3         * config/arm/t-linux-androideabi: New.
4         * config.gcc (arm*-*-linux-androideabi): Include multilib configuration.
6 2010-06-01  Jan Hubicka  <jh@suse.cz>
8         * tree-inline.c (estimate_num_insns): For stdarg functions look
9         into call statement to count cost of argument passing.
11 2010-06-01  Kai Tietz
13         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
14         argument for fprintf.
15         (ix86_output_addr_diff_elt): Likewise.
16         (x86_function_profiler): Likewise.
17         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix
18         for x64 no-underscore.
19         (LPREFIX): Likewise.
20         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
22 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
24         PR target/44338
25         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
26         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
27         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
28         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
29         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
30         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
31         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
32         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
33         TARGET_FUSED_MADD.
35 2010-05-31  Jan Hubicka  <jh@suse.cz>
37         * tree.h (tree_range_check_failed): Declare noreturn.
39 2010-05-31  Jan Hubicka  <jh@suse.cz>
41         * gimple.c (gimple_call_builtin_p): New function.
42         * gimple.h (gimple_call_builtin_p): Declare.
43         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
44         to exit.
45         (execute_warn_function_return): BUILT_IN_RETURN is return.
46         (split_critical_edges): Return edges are not critical.
47         (is_ctrl_altering_stmt): Builtin_in_return is altering.
48         (gimple_verify_flow_info): Handle built_in_return.
49         (execute_warn_function_return): Handle built_in_return.
50         * ipa-pure-const.c (check_call): Ignore builtin_return.
52 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
54         PR middle-end/44337
55         * expr.c (expand_assignment): Don't store anything for out-of-bounds
56         array accesses with non-MEM.
58         PR tree-optimization/44182
59         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
60         newly needs to end a bb is followed by debug stmts, instead return
61         true from the function at the end.
62         (maybe_move_debug_stmts_to_successors): New function.
63         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
65 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
67         PR target/44161
68         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
69         flag_pic.
71 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
73         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
74         for nested functions in non-optimized compilation.
76 2010-05-31  Richard Guenther  <rguenther@suse.de>
78         * tree-ssa-structalias.c (find_func_aliases): Handle
79         BUILT_IN_RETURN.
81 2010-05-30  Jan Hubicka  <jh@suse.cz>
83         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
85 2010-05-30  Richard Guenther  <rguenther@suse.de>
87         PR lto/42975
88         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
89         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
90         no longer needed.
92 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
94         * config/darwin.c (output_objc_section_asm_op): Add comment.
95         (name_needs_quotes): Add '_' to list of valid comment chars.
96         (machopic_output_function_base_name): Remove unneeded quotes.
97         (darwin_encode_section_info): Adjust asm whitespace.
98         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
99         (ASM_OUTPUT_LOCAL): Ditto.
100         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
101         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
102         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
103         
104 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
106         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
107         RS6000_OUTPUT_BASENAME unconditionally.
108         (rs6000_output_function_epilogue): Likewise.
110 2010-05-30  Jan Hubicka  <jh@suse.cz>
112         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
113         nodes.
115 2010-05-30  Richard Guenther  <rguenther@suse.de>
117         * tree-cfg.c (verify_gimple_assign_single): Implement
118         verification for COND_EXPR rhs.
120 2010-05-30  Jan Hubicka  <jh@suse.cz>
122         * cgraph.h (cgraph_dump_file): Declare.
123         * cgraphunit.c (cgraph_dump_file): Export.
124         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less
125         verbose.
127 2010-05-30  Jan Hubicka  <jh@suse.cz>
129         * dwarf2out.c (reference_to_unused,
130         premark_types_used_by_global_vars_helper): Avoid creation of new
131         varpool nodes.
133 2010-05-30  Jan Hubicka  <jh@suse.cz>
135         * cgraph.h (cgraph_node_cannot_return,
136         cgraph_edge_cannot_lead_to_return): New functions.
137         * cgraph.c (cgraph_node_cannot_return,
138         cgraph_edge_cannot_lead_to_return): Use them.
139         * ipa-pure-const.c (pure_const_names): New static var.
140         (check_call): Handle calls not leading to return.
141         (pure_const_read_summary): Dump info read.
142         (propagate): Dump info about propagation process; ignore side
143         effects of functions not leading to exit; fix handling of
144         pure functions.
146 2010-05-30  Jan Hubicka  <jh@suse.cz>
148         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
149         for tail call epilogues.
151 2010-05-30  Jan Hubicka  <jh@suse.cz>
153         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
154         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
155         dump files.
157 2010-05-29  Jan Hubicka  <jh@suse.cz>
159         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
160         node; remove references in node we no longer keep in cgrpah but need
161         body of.
163 2010-05-29  Jan Hubicka  <jh@suse.cz>
165         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
167 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
169         PR target/44165
170         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
172 2010-05-29  Jan Hubicka  <jh@suse.cz>
174         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
175         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
176         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
177         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
178         debug_names_replaced_by, debug_update_ssa): Likewise.   
179         * sbitmap.c (debug_sbitmap): Likewise.
180         * genrecog.c (debug_decision, debug_decision_list): Likewise.
181         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
182         debug_tree_chain): Likewise.
183         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
184         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
185         * optabs.c  (debug_optab_libfuncs): Likewise.
186         (verify_loop_closed_ssa): Likewise.
187         * value-prof.c (verify_histograms): Likewise.
188         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
189         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
190         * cfghooks.c (verify_flow_info): Likewise.
191         * fold-const.c (debug_fold_checksum): Likewise.
192         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
193         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
194         Likewise.
195         * omega.c (debug_omega_problem): Likewise.
196         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
197         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
198         * dominance.c (verify_dominators, debug_dominance_info,
199         debug_dominance_tree): Likewise.
200         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
201         * df_regno_debug, df_ref_debug,
202         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
203         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
204         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
205         * sel-sched.c (debug_state): Likewise.
206         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
207         Likewise.
208         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
209         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
210         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
211         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
212         Likewise.
213         * c-pretty-print.c (debug_c_tree): Likewise.
214         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
215         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
216         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
217         * ebitmap.c (debug_ebitmap): Likewise.
218         * function.c (debug_find_var_in_block_tree): Likewise.
219         * print-rtl.c (debug_rtx): Likewise.
220         (debug_rtx_count): Likewise.
221         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
222         * stor-layout.c (debug_rli): Likewise.
223         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
224         * tree-data-ref.c (debug_data_references,
225         debug_data_dependence_relations, debug_data_reference,
226         debug_data_dependence_relation, debug_rdg_vertex,
227         debug_rdg_component, debug_rdg): Likewise.
228         * tree-affine.c (debug_aff): Likewise.
229         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
230         Likewise.
231         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
232         * emit-rtl.c (verify_rtl_sharing): Likewise.
233         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
234         debug_value_expressions): Likewise.
235         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
236         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
237         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
238         * cfglayout.c (verify_insn_chain): Likewise.
239         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
240         debug_clast_stmt, debug_generated_program): Likewise.
241         * ggc-page.c (debug_print_page_list): Likewise.
242         * tree-ssa-ter.c (debug_ter): Likewise.
243         * graphite-dependences.c (debug_pddr): Likewise.
244         * sched-deps.c (debug_ds): Likewise.
245         * tree-ssa.c (verify_ssa): Likewise.
246         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
247         debug_scattering_functions, debug_iteration_domains, debug_pdr,
248         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
249         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
250         * tree-inline.c (debug_find_tree): Likewise.
251         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
252         debug_ppl_powerset_matrix): Likewise.
253         * var-tracking.c (debug_dv): Likewise.
254         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
255         * cfgloop.c (verify_loop_structure): Likewise.
256         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
257         * c-common.c (verify_sequence_points): Likewise.
258         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
259         debug_candidates, debug_rgn_dependencies): Likewise.
260         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
261         * debug_constraint_graph, debug_solution_for_var,
262         debug_sa_points_to_info): Likewise.
263         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
264         Likewie.
265         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
266         debug_loops, debug_loop, debug_loop_num): Likewise.
267         * passes.c (debug_pass): Likewise.
268         (dump_properties): Likewise; add cfglayout property.
269         (debug_properties): Likewise.
270         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
271         * varpool.c (debug_varpool): Likewise.
272         * regcprop.c (debug_value_data): Likewise.
273         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
274         debug_immediate_uses_for): Likewise.
276 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
278         PR bootstrap/44315
279         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
280         Filter out insn-flags.h.
282 2010-05-29  Jan Hubicka  <jh@suse.cz>
284         * cgraph.h (struct varpool_node_set_def,
285         struct cgraph_node_set_def): Remove unused AUX pointer.
286         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
287         VEC_empty macro.
289 2010-05-29  Jan Hubicka  <jh@suse.cz>
291         PR middle-end/44324
292         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
294 2010-05-29  Richard Guenther  <rguenther@suse.de>
296         * lto-streamer.c (cached_bp): New global variable.
297         (bitpack_create): Return the cached bitpack, if available.
298         (bitpack_delete): Clear and cache the bitpack, if appropriate.
299         (bp_pack_value): Remove redundant asserts.
301 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
303         PR middle-end/44306
304         * tree-if-conv.c (is_true_predicate): New.
305         (is_predicated): Use is_true_predicate.
306         (add_to_predicate_list): Same.  Do not use unshare_expr.
307         (add_to_dst_predicate_list): Same.
309 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
311         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
312         field on edges.
313         (predicate_bbs): Same.
314         (clean_predicate_lists): Same.
315         (find_phi_replacement_condition): Do not AND the predicate from
316         edge->aux.
318 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
320         PR bootstrap/44315
321         * Makefile.in (build/gencondmd.o): Add a missing `\'.
323 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
325         PR target/44261
326         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
327         (negdf2): Adjust expander pattern and use negdf2_slow.
328         (negsf2): Likewise.
330 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
332         * basic-block.h (struct control_flow_graph): Move last_label_uid field
333         up.
334         * df.h (struct df_base_ref): Move regno field up.
335         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
336         * expr.h (struct separate_ops): Move location field up.
337         * optabs.h (struct optab_d): Move libcall_basename field down.
338         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
339         * config/i386/i386.h (struct machine_function): Convert call_abi field
340         into a bitfield.  Move cfa field to the end of the structure.
342 2010-05-29  Jan Hubicka  <jh@suse.cz>
344         * varpool.c (varpool_get_node): Fix lookup.
346 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
348         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
349         RTL specific prototypes with #ifdef RTX_CODE.
350         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
351         * config/spu/t-spu-elf: Fix dependencies.
353         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
355 2010-05-29  Mike Stump  <mikestump@comcast.net>
357         PR bootstrap/44315
358         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
359         TM_H when building to avoid dependency loops.
361 2010-05-29  Jan Hubicka  <jh@suse.cz>
363         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
364         refs and body; not the whole node for masters of materialized
365         clones.
367 2010-05-29  Mike Stump  <mikestump@comcast.net>
369         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
371 2010-05-29  Jan Hubicka  <jh@suse.cz>
373         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
374         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
375         use of clone_function_name.
376         * cgraph.h (cgraph_create_virtual_clone, 
377         cgraph_function_versioning): update prototypes.
378         (clone_function_name): Declare.
379         * ipa-cp.c (ipcp_insert_stage): Update call of
380         cgraph_create_virtual_clone.
381         * omp-low.c (create_omp_child_function_name): Use
382         cgraph_create_virtual_clone.
383         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
384         (cgraph_function_versioning): Take SUFFIX argument; produce new name
385         and make decl local.
387 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
389         * vec.h: Include statistics.h
390         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
391         with VEC_H.
393 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
395         * c-lex.c: Do not include c-tree.h.
396         * c-pretty-print.c: Likewise.
397         * c-opts.c: Likewise.
398         * c-gimplify.c: Likewise.
399         * c-common.c: Likewise.
400         * c-dump.c: Likewise.  Include c-common.h.
402 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
404         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
405         before including diagnostic-core.h.
406         (c_cpp_error): New prototype moved from c-tree.h.
407         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
408         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
409         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
410         (c_cpp_error): Prototype moved to c-common.h.
411         * Makefile.in: Update dependency for C_COMMON_H.
413 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
415         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
416         * c-common.c (c_register_addr_space): Remove here.
417         * c-decl.c (c_register_addr_space): Re-add here.
419 2010-05-28  Mike Stump  <mikestump@comcast.net>
421         * config/darwin-c.c: Remove c-tree.h include.
423 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
425         * gcc.c: Include diagnostic.h.
426         (error_count): Remove.  All users changed to use errorcount.
427         (programname): Remove.  All users changed to use progname.
428         (fancy_abort, internal_error, fatal_error, error, warning, inform,
429         fnotice): Remove.
430         (execute): Don't include "Internal error" and bug reporting
431         information in argument of internal_error call.
432         (process_command): Don't increment error_count after calling
433         perror_with_name.
434         (input_filename): Rename to gcc_input_filename.  All users
435         changed.
436         (main): Call diagnostic_initialize.  Register delete_temp_files
437         with atexit.  Use seen_error to test for errors.
438         * gcc.h: Include diagnostic-core.h.
439         (fatal_error, error, warning): Remove.
440         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
441         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
442         (gcc.o): Update dependencies.
444 2010-05-28  Jeff Law  <law@redhat.com>
446         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
447         functions.
448         * ira.h (ira_bad_reload_regno): Declare
449         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
451         * ira-color.c (update_curr_costs): Free updated hard reg costs.
452         (ira_reassign_conflict_allocnos): Remove bogus asserts.
453         (allocno_reload_assign): Likewise.
455 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
457         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
458         build1_stat.
460 2010-05-28  Richard Guenther  <rguenther@suse.de>
462         PR lto/44312
463         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
464         Stream fixed-point constants mode.
465         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
466         and TYPE_PRECISION.
467         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
468         Stream fixed-point constants mode.
469         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
470         and TYPE_PRECISION.
472 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
474         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
475         only place it was called from.
476         (number_of_latch_executions): Do not return chrec_dont_know when the
477         may_be_zero is a runtime condition: instead, return a COND_EXPR
478         including the may_be_zero condition.
479         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
480         of nb_iterations.
481         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
482         COND_EXPRs.
484 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
486         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
487         generate COND_EXPRs for degenerate_phi_result.
489 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
491         PR middle-end/44293
492         * tree-if-conv.c (if_convertible_loop_p): Check the
493         if-convertibility of phi nodes in non predicated BBs.
495 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
497         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
499 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
501         PR driver/15303
502         * gcc.c (inform, warning, inform): New functions.
503         (fatal_ice): Rename to internal_error; change cmsgid parameter to
504         gmsgid.  All callers changed.
505         (notice): Rename to fnotice; add parameter fp.  All callers
506         changed.
507         (fatal_error): Rename to fatal_signal.  All users changed.
508         (fatal): Rename to fatal_error; change cmsgid parameter to
509         gmsgid.  All callers changed.
510         (process_command): Use warning instead of error for warnings.
511         (end_going_arg): Don't use _() around argument of error.
512         (do_spec_1): Use inform for message from %n specs.  Use warning
513         instead of error for warnings.
514         (main): Use inform for comparison messages.  Use warning for
515         message about unused linker input.
516         (error): Increment error_count.  Print "error: ".
517         * gcc.h (fatal): Change to fatal_error.
518         (warning): Declare.
519         * config/darwin-driver.c (darwin_default_min_version): Use warning
520         instead of fprintf for warnings.
521         * cppspec.c (lang_specific_driver): Use fatal_error instead of
522         fatal.
524 2010-05-28  Julian Brown  <julian@codesourcery.com>
526         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
527         (*thumb2_addsi3_compare0_scratch): New.
528         * config/arm/constraints.md (Pv): New.
529         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
530         for ARM mode only.
531         (*addsi3_compare0_scratch): Likewise.
533 2010-05-28  Jan Hubicka  <jh@suse.cz>
535         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
536         check.
537         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
538         only on local statics.
540 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
542         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
544 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
546         PR bootstrap/44314
547         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
548         (OPTION_GLIBC): Define.
550 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
552         PR debug/41048
553         * dwarf2out.c (double_int_type_size_in_bits): New function.
554         (round_up_to_align): Change first argument and return value to
555         double_int.
556         (field_byte_offset): Work internally on double_ints.
558         PR target/43636
559         * builtins.c (expand_movstr): Use a temporary pseudo instead
560         of target even when target is not NULL and not const0_rtx, but
561         fails movstr predicate.
562         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
564 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
566         * final.c (rest_of_clean_state): Use %m in errors instead of
567         strerror (errno).
568         * gengtype.c (read_input_list, close_output_files): Use xstrerror
569         instead of strerror.
570         * toplev.c (process_options): Use %m in errors instead of strerror
571         (errno).
572         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
573         (errno).
575 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
577         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
578         (ix86_canonical_va_list_type): Make static.  Add declaration.
579         (ix86_enum_va_list): Make static.  Reindent.
580         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
581         (ix86_canonical_va_list_type): Ditto.
582         (ix86_enum_va_list): Ditto.
584 2010-05-28  Richard Guenther  <rguenther@suse.de>
586         * lto-wrapper.c (run_gcc): With -save-temps generate a
587         user-visible ltrans filename.  Fixup ltrans unit numbering.
589 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
591         * c-common.c (c_common_nodes_and_builtins): Replace use
592         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
593         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
594         to ix86_enum_va_list.
595         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
596         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
597         (TARGET_ENUM_VA_LIST_P): Add hook description.
598         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
599         * target.h (gcc_target): Add enum_va_list hook.
601         PR bootstrap/44299
602         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
603         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
604         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
606 2010-05-28  Alan Modra  <amodra@gmail.com>
608         PR target/44266
609         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
610         emit_library_call machinery to set up __tls_get_addr calls.
612 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
614         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
616 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
618         Revert fix for PR c++/44188
619         * c-common.c (is_typedef_decl): Revert the moving of  this
620         definition ...
621         * tree.c (is_typedef_decl): ... here.
622         (typdef_variant_p): Revert the moving of this  definition
623         here from gcc/cp/tree.c.
624         * c-common.h (is_typedef_decl): Revert the moving of this
625         declaration ...
626         * tree.h (is_typedef_decl): ... here.
627         (typedef_variant_p): Revert the moving of this  declaration here
628         from gcc/cp/cp-tree.h
629         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
630         (gen_tagged_type_die): Revert the splitting out of ...
631         (gen_type_die_with_usage): ... this function. Revert the anonymous
632         tagged type handling.
633         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
634         typedefs naming anonymous tagged types.
636 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
638         * config/rs6000/rs6000-modes.def (PSImode): Delete.
640 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
642         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
643         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
644         throughout.
645         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
646         "xer" to "ca".
647         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
648         XER_REGS to CA_REGS throughout.
649         * config/rs6000/rs6000.h: Same.
650         (ADDITIONAL_REGISTER_NAMES): Add "xer".
651         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
652         that mode_iterator "P" is the size for arithmetic carries as well.
653         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
655 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
657         PR bootstrap/44255
658         * combine.c (struct rtx_subst_pair): Define unconditionally.
659         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
660         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
661         Call make_compound_operation on pair->to.
662         (propagate_for_debug): Don't call make_compound_operation here.
663         Always use simplify_replace_fn_rtx.
665 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
667         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
668         * config/xtensa/xtensa.c (override_options): Check
669           TARGET_FORCE_NO_PIC and set flag_pic.
670         * config/xtensa/xtensa.opt: Document -mforce-no-pic
672 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
674         PR bootstrap/44299
675         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
676         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
678 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
680         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
681         toplev.h.
682         * diagnostic.c: Don't include toplev.h.
683         (progname): Define.  Moved from toplev.c.
684         (seen_error): New function.
685         * diagnostic.h: Include diagnostic-core.h.
686         (diagnostic_t, emit_diagnostic): Don't declare here.
687         * toplev.c (progname): Move to toplev.c.
688         (emit_debug_global_declarations, compile_file, finalize,
689         do_compile, toplev_main): Use seen_error.
690         * toplev.h: Include diagnostic-core.h.
691         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
692         internal_error, warning, warning_at, error, error_n, error_at,
693         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
694         verbatim, fnotice, progname): Move to diagnostic-core.h.
695         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
696         (expand_builtin_expect): Use seen_error.
697         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
698         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
699         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
700         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
701         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
702         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
703         errorcount for errors.
704         * c-opts.c (c_common_finish): Use seen_error.
705         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
706         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
707         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
708         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
709         (get_coverage_counts): Use seen_error.
710         * dwarf2out.c (dwarf2out_finish): Use seen_error.
711         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
712         gimplify_body): Use seen_error.
713         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
714         * ipa-pure-const.c (gate_pure_const): Use seen_error.
715         * ipa-reference.c (gate_reference): Use seen_error.
716         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
717         * lambda-code.c: Include diagnostic-core.h instead of
718         diagnostic.h.
719         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
720         * lto-compress.c: Include diagnostic-core.h instead of
721         diagnostic.h.
722         * lto-section-in.c: Include diagnostic-core.h instead of
723         diagnostic.h.
724         * lto-streamer-out.c: Include diagnostic-core.h instead of
725         diagnostic.h.
726         * lto-streamer.c: Include diagnostic-core.h instead of
727         diagnostic.h.
728         (gate_lto_out): Use seen_error.
729         * matrix-reorg.c: Include diagnostic-core.h instead of
730         diagnostic.h.
731         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
732         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
733         (gate_expand_omp, lower_omp_1): Use seen_error.
734         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
735         (rest_of_decl_compilation, rest_of_type_compilation,
736         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
737         * tree-cfg.c (label_to_block_fn): Use seen_error.
738         * tree-inline.c (optimize_inline_calls): Use seen_error.
739         * tree-mudflap.c (mudflap_finish_file): Use
740         seen_error.
741         * tree-optimize.c (gate_all_optimizations,
742         gate_all_early_local_passes, gate_all_early_optimizations): Use
743         seen_error.
744         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
745         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
746         (varpool_remove_unreferenced_decls,
747         varpool_assemble_pending_decls): Use seen_error.
748         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
749         (TOPLEV_H, DIAGNOSTIC_H): Update.
750         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
751         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
752         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
753         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
754         coverage.o, lambda-code.o): Update dependencies.
756 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
758         PR c++/44188
759         * c-common.c (is_typedef_decl): Move this definition ...
760         * tree.c (is_typedef_decl): ... here.
761         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
762         * c-common.h (is_typedef_decl): Move this declaration ...
763         * tree.h (is_typedef_decl): ... here.
764         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
765         * dwarf2out.c (is_naming_typedef_decl): New function.
766         (gen_tagged_type_die): Split out of ...
767         (gen_type_die_with_usage): ... this function. When an anonymous
768         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
769         is emitted for the typedef.
770         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
771         anonymous tagged types.
773 2010-05-27  Jason Merrill  <jason@redhat.com>
775         * print-tree.c (debug_vec_tree): New fn.
776         (print_vec_tree): New fn.
777         * tree.h: Declare them.
778         * gdbinit.in (pvt): New command.
780         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
782         * gdbinit.in (pdd): New command.
784 2010-05-27  Jan Hubicka  <jh@suse.cz>
786         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
787         (update_caller_keys): Return early if there are no callers;
788         only update fibheap when decresing the key.
789         (update_callee_keys): Avoid recursion.
790         (decide_inlining_of_small_functions): When badness does not match;
791         re-insert into fibheap.
793 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
795         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
796         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
797         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
798         (ALL_HOST_OBJS): Now a union of the above two.
799         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
800         all files in ALL_HOST_FRONTEND_OBJS.
801         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
803         * c-common.c: Pretend to be a backend file by undefining
804         IN_GCC_FRONTEND (still need rtl.h here).
806 2010-05-27  Jan Hubicka  <jh@suse.cz>
808         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
809         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
811 2010-05-27  Jan Hubicka  <jh@suse.cz>
813         * sched-ebb.c: Rename struct deps to struct deps_desc.
814         * ddg.c: Likewise.
815         * sel-sched-ir.c: Likewise.
816         * sched-deps.c: Likewise.
817         * sched-int.h: Likewise.
818         * sched-rgn.c: Likewise.
820 2010-05-27  Jon Beniston <jon@beniston.com>
822         PR 43726
823         * config/lm32/lm32.h: Remove definition of 
824         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
826 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
828         PR lto/44230
829         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
831 2010-05-27  Richard Guenther  <rguenther@suse.de>
833         PR tree-optimization/44284
834         * tree-vect-stmts.c (vectorizable_assignment): Handle
835         sign-changing conversions as simple copy.
837 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
839         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
840         Bionic C library.
841         (__gthread_active_p): Check for pthread_create if compiling against
842         Bionic C library.
844 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
846         Support compilation for Android platform.  Reimplement -mandroid.
848         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
849         (*android*): Set ANDROID_DEFAULT.
850         (arm*-*-linux*): Include linux-android.h.
851         (arm*-*-eabi*): Don't include previous -mandroid implementation.
852         * config/arm/eabi.h: Remove, move Android-specific parts ...
853         * config/linux-android.h: ... here.  New file.
854         * config/arm/eabi.opt: Rename to ...
855         * config/linux-android.opt: ... this.
856         (mandroid): Allow -mno-android option.  Initialize based on
857         ANDROID_DEFAULT.
858         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
859         Move logic to corresponding LINUX_TARGET_* macros.
860         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
861         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
862         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
863         Android definitions.
864         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
865         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
866         Document.
868 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
870         Add support for Bionic C library
872         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
873         macro.
874         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
875         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
877         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
878         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
879         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
880         to support multiple C libraries.  Handle Bionic.
881         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
882         (BIONIC_DYNAMIC_LINKER64): Define.
883         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
884         Update.
885         (TARGET_HAS_SINCOS): Enable for Bionic.
887         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
888         the last option specified on command line take effect.
889         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
890         (mbionic): New.
891         (mglibc, muclibc): Update.
893         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
894         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
895         DEFAULT_LIBC.
897         * doc/invoke.texi (-mglibc, -muclibc): Update.
898         (-mbionic): Document.
900 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
902         * c-common.h (c_register_addr_space): Add prototype.
903         (ADDR_SPACE_KEYWORD): Remove.
904         * c-common.c (c_register_addr_space): New function.
905         (c_addr_space_name): Reimplement.
906         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
908         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
909         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
911         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
912         Remove TARGET_ADDR_SPACE_KEYWORDS.
914 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
916         * input.c: New file.
917         * input.h (main_input_filename): Move declaration to toplev.h.
918         * toplev.c (input_location, line_table): Move to input.c
919         * toplev.h (main_input_filename): Move declaration from input.h.
920         * tree.c (expand_location): Move to input.c.
921         * Makefile.in (OBJS-common): Add input.o.
922         (input.o): Add dependencies.
924 2010-05-27  Richard Guenther  <rguenther@suse.de>
926         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
927         for non-existant files.
928         (fork_execute): Mark args_name file as deleted.
930 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
932         PR bootstrp/44287
933         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
934         (narrow_signed_type): Likewise.
936 2010-05-26  Jan Hubicka  <jh@suse.cz>
938         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
939         edge only when checking is enabled; check using former_clone_of;
940         check inline clones too.
941         (cgraph_materialize_clone): Record former_clone_of pointer.
942         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
943         combining redirections; dump args_to_skip bitmap
944         (cgraph_materialize_all_clones): Do no redirection here.
945         * ipa-inline.c (inline_transform): Do redirection here.
946         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
947         cheking only).
949 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
951         * config/avr/avr-c.c: Do not include regs.h.
952         Include cpplib.h for cpp_define and tree.h for c-common.h.
953         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
954         * config/avr/t-avr: Fix dependencies for avr-c.o.
956 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
958         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
959         string instead of SYMBOL_REF rtx.
960         * rtl.h (set_stack_check_libfunc): Move prototype from here...
961         * libfuncs.h: ...to here.  Adjust for explow.c change.
963 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
965         * pretty-print.c: Don't include ggc.h.
966         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
967         (identifier_to_locale): Use them for allocation.
968         * pretty-print.h (identifier_to_locale_alloc,
969         identifier_to_locale_free): Declare.
970         * toplev.c (alloc_for_identifier_to_locale): New.
971         (general_init): Set identifier_to_locale_alloc and
972         identifier_to_locale_free.
973         * Makefile.in (pretty-print.o): Update dependencies.
975 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
977         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
978         pointer types if they have different alignment or mode.
980 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
982         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
983         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
984         * config/sparc/sparc-protos.h (function_value): Remove declaration.
985         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
986         sparc_function_value_regno_p): New functions.
987         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
988         TARGET_FUNCTION_VALUE_REGNO_P): Define.
989         (function_value): Rename to...
990         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
991         argument to 'outgoing'.
992         (function_arg_record_value, function_arg_union_value,
993         function_arg_vector_value): Update comment.
995 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
997         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
998         (fde_needed_for_eh_p): New predicate.
999         (output_call_frame_info): Use it throughout to decide whether FDEs
1000         are needed for EH purpose.
1001         (dwarf2out_begin_prologue): Reorder assignments.
1003 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1005         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
1006         special case loop->header.
1007         (is_predicated): New.
1008         (if_convertible_loop_p): Call it.
1010 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1012         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
1013         iterator in parameter.  Do not generate code during the analysis.
1014         (tree_if_convert_cond_stmt): Removed.
1015         (tree_if_convert_stmt): Removed.
1016         (predicate_bbs): New.
1017         (if_convertible_loop_p): Call predicate_bbs.
1018         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
1019         now contains all the analysis part.
1021 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1023         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
1024         statements in the analysis part.
1025         (tree_if_convert_stmt): Update comment.
1026         (remove_conditions_and_labels): New.
1027         (combine_blocks): Call remove_conditions_and_labels.
1028         (tree_if_conversion): Update comment.
1030 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1032         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
1033         than 2 predecessors or more than 2 successors.
1035 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1037         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
1038         of loops in which the data dependence analysis fails.
1040 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1042         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
1043         CDI_POST_DOMINATORS.
1044         (tree_if_conversion): Same.
1046 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1048         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
1050 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1052         * tree-if-conv.c: Update copyright years.  Fix comments.
1053         Fix indentation.
1055 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
1057         * builtin-types.def (BT_INT128): New primitive type.
1058         (BT_UINT128): Likewise.
1059         * c-common.c (c_common_r): Add __int128 keyword.
1060         (c_common_type_for_size): Handle __int128.
1061         (c_common_type_for_mode): Likewise.
1062         (c_common_signed_or_unsigned_type): Likewise.
1063         (c_common_nodes_and_builtins): Add builtin type
1064         if target supports 128-bit integer scalar.
1065         * c-common.h (enum rid): Add RID_INT128.
1066         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
1067         if target supports 128-bit integer scalar.
1068         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
1069         (finish_declspecs): Likewise.
1070         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
1071         (c_token_starts_declspecs): Likewise.
1072         (c_parser_declspecs): Likewise.
1073         (c_parser_attributes): Likewise.
1074         (c_parser_objc_selector): Likewise.
1075         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1076         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1077         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1078         * tree.c (make_or_reuse_type): Likewise.
1079         (make_unsigned_type): Likewise.
1080         (build_common_tree_nodes_2): Likewise.
1081         * tree.h (enum integer_type_kind): Add itk_int128 and
1082         itk_unsigned_int128.
1083         (int128_integer_type_node): New define.
1084         (int128_unsigned_type_node): New define.
1085         * doc/extend.texi: Add documentation about __int128 type.
1087 2010-05-26  Richard Guenther  <rguenther@suse.de>
1089         * tree-ssa-sccvn.c (copy_nary): Adjust.
1090         (copy_phis): Rename to ...
1091         (copy_phi): ... this.  Adjust.
1092         (copy_references): Rename to ...
1093         (copy_reference): ... this.  Adjust.
1094         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1095         result into the valid table.
1097 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1099         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1100         insn-config.h, insn-codes.h, recog.h, and optabs.h.
1102 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1104         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1106 2010-05-26  Richard Guenther  <rguenther@suse.de>
1108         * opts.c (common_handle_option): Handle OPT_Ofast.
1110 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
1112         * diagnostic.c: Don't include opts.h.
1113         (permissive_error_option): Define.
1114         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
1115         for classify_diagnostic.  Don't use memset for
1116         classify_diagnostic.  Initialize new and recently added fields.
1117         (diagnostic_classify_diagnostic): Use context->n_opts instead of
1118         N_OPTS.
1119         (diagnostic_report_diagnostic): Pass context parameter to
1120         diagnostic_report_warnings_p.  Use option_enabled and option_name
1121         hooks from context.
1122         (emit_diagnostic): Use permissive_error_option.
1123         (permerror): Likewise.
1124         * diagnostic.h: Don't include options.h.
1125         (struct diagnostic_context): Add n_opts, opt_permissive,
1126         inhibit_warnings, warn_system_headers, option_enabled and
1127         option_name fields.  Change classify_diagnostic to a pointer.
1128         * opts-diagnostic.h: New file.
1129         * opts.c: Include opts-diagnostic.h.
1130         (common_handle_option): Set global_dc fields for -Wfatal-errors,
1131         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1132         (option_name): New function.
1133         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1134         (c_common_handle_option): Set global_dc->permissive for
1135         -fpermissive.
1136         * c-common.c (c_cpp_error): Save and restore
1137         global_dc->warn_system_headers, not variable warn_system_headers.
1138         * toplev.c: Include opts-diagnostic.h.
1139         (general_init): Update call to diagnostic_initialize.  Set
1140         global_dc->show_column, global_dc->option_enabled and
1141         global_dc->option_name.
1142         (process_options): Don't set global_dc fields here.
1143         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1144         (diagnostic.o, opts.o, toplev.o): Update dependencies.
1146 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
1148         * config/picochip/picochip.md (movsi): Split a movsi from a
1149         const after reload.
1151 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1153         * ggc-zone.c: Update copyright year.
1154         (poison_region): Mark memory for Valgrind as undefined before
1155         memset () call and inaccessible afterwards.
1156         (ggc_pch_total_size): Change type of i to int.
1158 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1160         * ggc-common.c (ggc_free_overhead): Allow empty slot.
1162 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1164         * ggc-common.c: Update copyright year.
1165         (ggc_rlimit_bound): Remove prototype.  Compile only if
1166         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1167         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1168         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
1169         (ggc_min_heapsize_heuristic): Likewise.
1171 2010-05-26  Richard Guenther  <rguenther@suse.de>
1173         PR rtl-optimization/44164
1174         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1175         no-common access-path disambiguation.
1176         (indirect_ref_may_alias_decl_p): Adjust.
1177         (indirect_refs_may_alias_p): Likewise.
1178         (refs_may_alias_p_1): Likewise.
1180 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1182         * c-typeck.c: Do not include expr.h.
1184 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1186         * rtl.h (decl_default_tls_model): Move prototype from here...
1187         * output.h: ...to here.
1188         * c-decl.c: Do not include rtl.h.
1189         * c-pragma.c: Likewise.
1190         * c-parser.c: Likewise.
1191         * c-gimplify.c: Likewise.  And also not hard-reg-set.
1192         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
1193         FIXME note for it.  Add a FIXME note for expr.h.
1194         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1195         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1196         defined.
1198 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
1200         PR target/44199
1201         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1202         or total_size is larger than red zone size for non-V4 ABI, emit a
1203         stack_tie resp. frame_tie insn before stack pointer restore.
1204         * config/rs6000/rs6000.md (frame_tie): New insn.
1206 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1208         * function.h (struct function): Add can_throw_non_call_exceptions bit.
1209         * lto-streamer-in.c (input_function): Stream it in.
1210         * lto-streamer-out.c (output_function): Stream it out.
1211         * function.c (allocate_struct_function): Set it.
1212         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1213         for flag_non_call_exceptions.
1214         * cfgbuild.c (control_flow_insn_p): Likewise.
1215         (make_edges): Likewise.
1216         * cfgexpand.c (expand_stack_alignment): Likewise.
1217         * combine.c (distribute_notes): Likewise.
1218         * cse.c (cse_extended_basic_block): Likewise.
1219         * except.c (insn_could_throw_p): Likewise.
1220         * gcse.c (simple_mem): Likewise.
1221         * ipa-pure-const.c (check_call): Likewise.
1222         (check_stmt ): Likewise.
1223         * lower-subreg.c (lower-subreg.c): Likewise.
1224         * optabs.c (emit_libcall_block): Likewise.
1225         (prepare_cmp_insn): Likewise.
1226         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1227         * postreload.c (rest_of_handle_postreload): Likewise.
1228         * reload1.c (reload_as_needed): Likewise.
1229         (emit_input_reload_insns): Likewise.
1230         (emit_output_reload_insns): Likewise.
1231         (fixup_abnormal_edges): Likewise.
1232         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1233         * store-motion.c (find_moveable_store): Likewise.
1234         * tree-eh.c (stmt_could_throw_p): Likewise.
1235         (tree_could_throw_p): Likewise.
1236         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1237         * config/arm/arm.c (arm_expand_prologue): Likewise.
1238         (thumb1_expand_prologue): Likewise.
1239         * config/rx/rx.md (cbranchsf4): Likewise.
1240         (cmpsf): Likewise.
1241         * config/s390/s390.c (s390_emit_prologue): Likewise.
1242         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1243         (inline_forbidden_into_p): New predicate.
1244         (expand_call_inline): Use it to forbid inlining.
1245         (tree_can_inline_p): Likewise.
1247 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1249         * config/i386/i386-c.c: Do not include rtl.h.
1250         * config/i386/t-i386: Update dependencies.
1252 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1254         * attribs.c: Do not include rtl.h.
1255         * Makefile.in: Update dependencies.
1257 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
1259         * double-int.h (double_int_and): New.
1260         * combine.c (try_combine): Clean up, use double_int_* and
1261         immed_double_int_const functions.
1263 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1265         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1266         stderr to /dev/null instead of grep -q.
1267         * configure: Regenerate.
1269 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1271         * Makefile.in (EXCEPT_H): Fix typo.
1273 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
1275         * ira-build.c (update_conflict_hard_reg_costs): New.
1276         (ira_build): Call update_conflict_hard_reg_costs.
1278 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
1280         PR debug/41371
1281         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
1282         ENABLE_CHECKING.
1283         (intersect_loc_chains): Walk the s2var's loc_chain together
1284         with s1node chain as long as the locations are equal, don't
1285         call find_loc_in_1pdv in that case.
1287         PR debug/42801
1288         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
1289         (copy_bind_expr): ... instead of here.
1290         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
1291         if the block hasn't been remapped.
1292         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
1293         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1295 2010-05-25  Richard Guenther  <rguenther@suse.de>
1297         PR middle-end/44069
1298         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1299         out-of-bounds array accesses.
1301 2010-05-25  Richard Guenther  <rguenther@suse.de>
1303         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1304         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1305         (run_gcc): Re-organize to make cleanup easier.
1307 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1309         * config/s390/s390.c (optimization_options): Fix and move the
1310         flag_prefetch_loop_arrays override ...
1311         (override_options): ... here.
1313 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
1315         * diagnostic.c: Don't include plugin.h.
1316         (diagnostic_report_diagnostic): Don't handle plugins specially
1317         here.  Pass context to internal_error callback.
1318         * diagnostic.h (struct diagnostic_context): Add context parameter
1319         to internal_error callback.
1320         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1321         * plugin.h (struct diagnostic_context): Declare.
1322         (warn_if_plugins, plugins_internal_error_function): Declare.
1323         * toplev.c (general_init): Set global_dc->internal_error.
1324         * Makefile.in (diagnostic.o): Update dependencies.
1326 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
1328         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1329         * config/rs6000/t-darwin64: New.
1330         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1331         build crt2.
1333 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
1335         PR 44203
1336         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1337         match the original (and intended) behaviour before r159557.  This
1338         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1339         in two ways.
1341 2010-05-25  Richard Guenther  <rguenther@suse.de>
1343         * doc/invoke.texi: Document -Ofast.
1344         * target.h (struct gcc_target): Add handle_ofast.
1345         * target-def.h (TARGET_HANDLE_OFAST): Add.
1346         (TARGET_INITIALIZER): Adjust.
1347         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
1348         * common.opt (Ofast): Add.
1350 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
1352         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1353         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1355 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
1357         PR target/43610
1358         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1359         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
1360         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
1361         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1363 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
1365         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1366         DW_OP_minus with negated offset instead of DW_OP_plus.
1367         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1369 2010-05-25  Wei Guozhi  <carrot@google.com>
1371         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1372         tst instruction and a new alternative.
1373         * config/arm/constraints.md (Pu): New constraint.
1375 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
1377         * function.c (assign_stack_local_1): Initialize variable
1378         to avoid warning when bootstrapping at -O3.
1380 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
1382         * configure.ac (all_lang_makefiles): Remove everything related to it.
1383         * configure: Regenerate.
1384         * Makefile.in: Fix reference to ada Make-lang.in.
1385         Remove support for LANG_MAKEFILES.
1387 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
1388             Sandra Loosemore  <sandra@codesourcery.com>
1390         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1391         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1392         description.  Add arm_neon_fp16_ok.
1393         (Add Options): Add arm_neon and arm_neon_fp16.
1395 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
1397         * diagnostic.c: Don't include flags.h.
1398         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1399         context parameters.  Check flags in the context passed as a parameter.
1400         (diagnostic_build_prefix): Add context parameter.  Check
1401         show_column flag in context.
1402         (diagnostic_action_after_output): Check fatal_errors flag in context.
1403         (diagnostic_report_current_module): Check show_column flag in context.
1404         (default_diagnostic_starter): Update call to
1405         diagnostic_build_prefix.
1406         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1407         (emit_diagnostic): Pass context to permissive_error_kind.
1408         (permerror): Pass context to permissive_error_kind.
1409         * diagnostic.h (struct diagnostic_context): Add show_column,
1410         pedantic_errors, permissive and fatal_errors fields.
1411         (diagnostic_build_prefix): Update prototype.
1412         * langhooks.c
1413         * toplev.c (process_options): Set flags in global_dc from
1414         flag_show_column, flag_pedantic_errors, flag_permissive,
1415         flag_fatal_errors.
1416         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1417         to diagnostic_build_prefix.
1418         * Makefile.in (diagnostic.o): Update dependencies.
1420 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1422         * config/i386/ia32intrin.h (__crc32q): Define only if
1423         __SSE4_2__ is defined.
1425 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
1427         PR target/44132
1428         PR middle-end/43602
1429         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1430         DECL_VISIBILITY_SPECIFIED.
1431         (emutls_decl): Set DECL_PRESERVE_P and copy
1432         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1433         (emutls_finalize_control_var): New callback.
1434         (emutls_finish): Finalize emutls control variables.
1435         * toplev.c (compile_file): Move the call to emutls_finish ()
1436         before varpool_assemble_pending_decls ().
1438 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
1440         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1441         added to the preprocessor condition.
1443 2010-05-24  Paul Brook  <paul@codesourcery.com>
1445         * gengtype-lex.l: Add HARD_REG_SET.
1446         * expr.c (expand_expr_real_1): Record writes to hard registers.
1447         * function.c (rtl_data): Add asm_clobbers.
1448         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1449         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1450         Use crtl->asm_clobbers.
1452 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1454         * doc/makefile.texi (Makefile): Mention stages 'profile'
1455         and 'feedback' for profiledbootstrap.
1457 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1459         PR target/44245
1460         * config/i386/i386.c (def_builtin): Properly check
1461         OPTION_MASK_ISA_64BIT.
1463 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
1465         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1466         typedefs with different but compatible types.  Allow duplicate
1467         typedefs with the same type except for pedantic non-C1X, but give
1468         warning for variably modified types.
1469         * c-typeck.c (tagged_types_tu_compatible_p,
1470         function_types_compatible_p, type_lists_compatible_p,
1471         comptypes_internal): Add parameter different_types_p; set
1472         *different_types_p for different but compatible types.  All
1473         callers changed.
1474         (comptypes_check_different_types): New.
1475         * c-tree.h (comptypes_check_different_types): Declare.
1477 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1479         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
1480         * jump.c: Include basic-block.h.
1481         * profile.c: Likewise.
1482         * tree-profile.c: Likewise.
1483         * coverage.c: Likewise.
1484         * basic-block.h (optimize_function_for_size_p): Move to function.h.
1485         (optimize_function_for_speed_p): Likewise.
1486         * function.h (optimize_function_for_size_p,
1487         optimize_function_for_speed_p): Moved here from basic-block.h.
1488         * Makefile.in: Update dependencies.
1490 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1492         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1493         before calling make; allow override through $MAKE.
1494         * doc/invoke.texi (Optimize Options): Document override.
1496 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
1498         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1499         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1500         (rs6000_mode_dependent_address_ptr): Make static.
1501         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1502         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1503         Remove.
1505 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
1507         PR target/43869
1508         * config/i386/i386.c: Make sure that the correct regparm is passed.
1510 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1512         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1513         * sbitmap.c: ...to here to internalize sbitmap element access.
1514         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1515         Explain why basic-block.h is included.
1516         * function.h: Include tm.h for CUMULATIVE_ARGS.
1517         * Makefile.in: Update dependencies.
1519 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1521         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1522         New core types.
1523         * sbitmap.h (struct sbitmap_def): Do not typedef here.
1524         * sbitmap.c: Include sbitmap.h.
1525         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1526         hard-reg-set.h.  Split everything related to regsets out from here...
1527         * regset.h: ...to here.  New file.
1528         * df.h: Include regset.h and sbitmap.h.
1529         * tree-flow.h: Likewise.
1530         * cfgloop.h: Likewise.
1531         * except.h: Do not include sbitmap.h.  Include hashtab.h.
1532         * cgraph.h: Include vec.h and function.h.
1533         * reload.h (struct insn_chain): Change types of live_throughout
1534         and dead_or_set from regset_head to bitmap_head.
1535         (compute_use_by_pseudos): Be defined also if regset.h is not included.
1536         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1537         spilled_regs from regset_head to bitmap_head to avoid dependency
1538         in regset.h.
1539         * sel-sched-ir.h: Include regset.h.
1540         * reload.c: Include df.h before reload.h.
1541         * caller-save.c: Likewise.
1542         * reload1.c: Likewise.
1543         * ira.c: Likewise.
1544         (mark_elimination): Update type of r to bitmap, consistent with
1545         DF_LR_IN.
1546         * dominance.c: Include bitmap.h.
1547         * modulo-sched.c: Include df.h.
1548         * cfganal.c: Include bitmap.h and sbitmap.h.
1549         * cfgbuild.c: Include sbitmap.h.
1550         * lcm.c: Include sbitmap.h.
1551         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1552         * domwalk.c: Include sbitmap.h, exclude ggc.h.
1553         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1554         * cselib.c: Include bitmap.h.
1555         * tree-optimize.c: Include regset.h.
1556         * stmt.c: Include bitmap.h.
1557         * Makefile.in: Update dependencies.
1559 2010-05-22  Jan Hubicka  <jh@suse.cz>
1561         * cgraph.h (struct varpool_node): Add same_comdat_group.
1562         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1563         pointer.
1564         (output_varpool): Update call of lto_output_varpool_node.
1565         (input_varpool): Read same_comdat_group pointer.
1566         (input_varpool_1): Fixup same_comdat_group pointer.
1567         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1568         group is needed, all are.
1569         * varpool.c (varpool_remove_node): Remove node from same comdat group
1570         linklist too.
1571         (varpool_analyze_pending_decls): Walk same comdat groups.
1573 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
1575         * rtl.h (union rtunion_def): Remove rt_bit member.
1576         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1577         * print-rtl (print_rtx): Do not print the member.
1578         * gengtype.c (adjust_field_rtx_def): Do not handle it.
1579         * gengenrtl.c (type_from_format): Likewise.
1580         (accessor_from_format): Likewise.
1582 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
1584         * dbgcnt.c: Include toplev.h instead of errors.h.
1585         * ira-emit.c: Don't include errors.h.
1586         * ira.c: Include toplev.h instead of errors.h.
1587         * lto-compress.c: Include toplev.h instead of errors.h.
1588         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1589         ira.o, dbgcnt.o): Update dependencies.
1591 2010-05-22  Richard Guenther  <rguenther@suse.de>
1593         * gimple.c (gimple_types_compatible_p): Check type qualifications
1594         before merging pointer to complete and pointer to incomplete type.
1595         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1596         we use our own resolution algorithm.  The gold linker plugin
1597         doesn't do the job we want it to do here.
1599 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
1601         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1602         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1603         (sparc_mode_dependent_address_p): New function.
1605 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1607         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1609         * timevar.c: Do not include any core headers.
1610         (timevar_print): De-i18n-ize.
1611         (print_time): Likewise.
1612         * timevar.h (timevar_push, timevar_pop): Make inline functions.
1614 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
1616         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1617         langhooks-def.h.
1618         (diagnostic_initialize): Initialize x_data not last_function.
1619         (diagnostic_report_current_function): Move to tree-diagnostic.c.
1620         (default_diagnostic_starter): Call
1621         diagnostic_report_current_module not
1622         diagnostic_report_current_function.
1623         (diagnostic_report_diagnostic): Initialize x_data not
1624         abstract_origin.
1625         (verbatim): Likewise.
1626         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1627         x_data.
1628         (struct diagnostic_context): Change last_function to x_data.
1629         (diagnostic_auxiliary_data): Replace with
1630         diagnostic_context_auxiliary_data and
1631         diagnostic_info_auxiliary_data.
1632         (diagnostic_last_function_changed, diagnostic_set_last_function,
1633         diagnostic_report_current_function): Move to tree-diagnostic.h.
1634         (print_declaration, dump_generic_node, print_generic_stmt,
1635         print_generic_stmt_indented, print_generic_expr,
1636         print_generic_decl, debug_c_tree, dump_omp_clauses,
1637         print_call_name, debug_generic_expr, debug_generic_stmt,
1638         debug_tree_chain, default_tree_printer): Move to
1639         tree-pretty-print.h.
1640         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1641         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1642         gimple-pretty-print.h.
1643         * pretty-print.c: Don't include tree.h
1644         (pp_base_format): Don't handle %K here.
1645         (pp_base_tree_identifier): Move to tree-pretty-print.c.
1646         * pretty-print.h (text_info): Change abstract_origin to x_data.
1647         (pp_tree_identifier, pp_unsupported_tree,
1648         pp_base_tree_identifier): Move to tree-pretty-print.h.
1649         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1650         tree-pretty-print.h: New files.
1651         * tree-pretty-print.c: Include tree-pretty-print.h.
1652         (percent_K_format): New.  Moved from pretty-print.c.
1653         (pp_base_tree_identifier): Move from pretty-print.c.
1654         * c-objc-common.c: Include tree-pretty-print.h.
1655         (c_tree_printer): Handle %K here.
1656         * langhooks.c: Include tree-diagnostic.h.
1657         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1658         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1659         (default_tree_printer): Handle %K using percent_K_format.
1660         (general_init): Use default_tree_diagnostic_starter.
1661         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1662         (free_lang_data): Use default_tree_diagnostic_starter.
1663         * c-pretty-print.c: Include tree-pretty-print.h.
1664         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1665         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1666         * dwarf2out.c: Include tree-pretty-print.h.
1667         * except.c: Include tree-pretty-print.h.
1668         * gimple-pretty-print.c: Include tree-pretty-print.h and
1669         gimple-pretty-print.h.
1670         * gimplify.c: Include tree-pretty-print.h.
1671         * graphite-poly.c: Include tree-pretty-print.h and
1672         gimple-pretty-print.h.
1673         * ipa-cp.c: Include tree-pretty-print.h.
1674         * ipa-inline.c: Include gimple-pretty-print.h.
1675         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1676         * ipa-pure-const.c: Include gimple-pretty-print.h.
1677         * ipa-struct-reorg.c: Include tree-pretty-print.h and
1678         gimple-pretty-print.h.
1679         * ipa-type-escape.c: Include tree-pretty-print.h.
1680         * print-rtl.c: Include tree-pretty-print.h.
1681         * print-tree.c: Include gimple-pretty-print.h.
1682         * sese.c: Include tree-pretty-print.h.
1683         * tree-affine.c: Include tree-pretty-print.h.
1684         * tree-browser.c: Include tree-pretty-print.h.
1685         * tree-call-cdce.c: Include gimple-pretty-print.h.
1686         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1687         * tree-chrec.c: Include tree-pretty-print.h.
1688         * tree-data-ref.c: Include tree-pretty-print.h and
1689         gimple-pretty-print.h.
1690         * tree-dfa.c: Include tree-pretty-print.h.
1691         * tree-if-conv.c: Include tree-pretty-print.h and
1692         gimple-pretty-print.h.
1693         * tree-inline.c: Include tree-pretty-print.h.
1694         * tree-into-ssa.c: Include tree-pretty-print.h and
1695         gimple-pretty-print.h.
1696         * tree-nrv.c: Include tree-pretty-print.h.
1697         * tree-object-size.c: Include tree-pretty-print.h and
1698         gimple-pretty-print.h.
1699         * tree-outof-ssa.c: Include tree-pretty-print.h and
1700         gimple-pretty-print.h.
1701         * tree-parloops.c: Include tree-pretty-print.h and
1702         gimple-pretty-print.h.
1703         * tree-predcom.c: Include tree-pretty-print.h and
1704         gimple-pretty-print.h.
1705         * tree-scalar-evolution.c: Include tree-pretty-print.h and
1706         gimple-pretty-print.h.
1707         * tree-sra.c: Include tree-pretty-print.h.
1708         * tree-ssa-address.c: Include tree-pretty-print.h.
1709         * tree-ssa-alias.c: Include tree-pretty-print.h.
1710         * tree-ssa-ccp.c: Include tree-pretty-print.h and
1711         gimple-pretty-print.h.
1712         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1713         * tree-ssa-copy.c: Include tree-pretty-print.h and
1714         gimple-pretty-print.h.
1715         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1716         * tree-ssa-dce.c: Include tree-pretty-print.h and
1717         gimple-pretty-print.h.
1718         * tree-ssa-dom.c: Include tree-pretty-print.h and
1719         gimple-pretty-print.h.
1720         * tree-ssa-dse.c: Include gimple-pretty-print.h.
1721         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1722         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1723         * tree-ssa-live.c: Include tree-pretty-print.h and
1724         gimple-pretty-print.h.
1725         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1726         gimple-pretty-print.h.
1727         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1728         gimple-pretty-print.h.
1729         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1730         gimple-pretty-print.h.
1731         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1732         gimple-pretty-print.h.
1733         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1734         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1735         * tree-ssa-operands.c: Include tree-pretty-print.h and
1736         gimple-pretty-print.h.
1737         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1738         gimple-pretty-print.h.
1739         * tree-ssa-pre.c: Include tree-pretty-print.h and
1740         gimple-pretty-print.h.
1741         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1742         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1743         gimple-pretty-print.h.
1744         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1745         gimple-pretty-print.h.
1746         * tree-ssa-sink.c: Include gimple-pretty-print.h.
1747         * tree-ssa-ter.c: Include tree-pretty-print.h and
1748         gimple-pretty-print.h.
1749         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
1750         * tree-ssa.c: Include tree-pretty-print.h and
1751         gimple-pretty-print.h.
1752         * tree-stdarg.c: Include gimple-pretty-print.h.
1753         * tree-switch-conversion.c: Include gimple-pretty-print.h.
1754         * tree-tailcall.c: Include tree-pretty-print.h and
1755         gimple-pretty-print.h.
1756         * tree-vect-data-refs.c: Include tree-pretty-print.h and
1757         gimple-pretty-print.h.
1758         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
1759         gimple-pretty-print.h.
1760         * tree-vect-loop.c: Include tree-pretty-print.h and
1761         gimple-pretty-print.h.
1762         * tree-vect-patterns.c: Include gimple-pretty-print.h.
1763         * tree-vect-slp.c: Include tree-pretty-print.h and
1764         gimple-pretty-print.h.
1765         * tree-vect-stmts.c: Include tree-pretty-print.h and
1766         gimple-pretty-print.h.
1767         * tree-vectorizer.c: Include tree-pretty-print.h.
1768         * tree-vrp.c: Include tree-pretty-print.h and
1769         gimple-pretty-print.h.
1770         * value-prof.c: Include tree-pretty-print.h and
1771         gimple-pretty-print.h.
1772         * var-tracking.c: Include tree-pretty-print.h.
1773         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
1774         (tree-diagnostic.o): New dependencies.
1775         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
1776         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
1777         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
1778         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
1779         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
1780         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
1781         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1782         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
1783         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
1784         tree-ssa-address.o, tree-ssa-loop-niter.o,
1785         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
1786         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
1787         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
1788         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
1789         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
1790         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
1791         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
1792         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
1793         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
1794         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
1795         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
1796         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
1797         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
1798         tree-switch-conversion.o, var-tracking.o, value-prof.o,
1799         cfgexpand.o, pretty-print.o): Update dependencies.
1801 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
1803         * tree-ssa-structalias.c: Remove tm_p.h from include.
1805 2010-05-21  Jeff Law  <law@redhat.com>
1807         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
1809 2010-05-21  Jason Merrill  <jason@redhat.com>
1811         * tree-eh.c (cleanup_is_dead_in): New.
1812         (lower_try_finally): Don't generate a dead cleanup region.
1813         (lower_cleanup): Likewise.
1815 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
1817         PR debug/44223
1818         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
1819         unchain each use from the cyclic next_regno_use chain first.
1821 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1823         * real: Do not include gmp.h, mpfr.h, and mpc.h.
1824         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
1825         (real_value_negate, real_value_abs): New prototypes.
1826         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
1827         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
1828         new include file for interface between MPFR and REAL_VALUE_TYPE.
1829         * real.c: Include realmpfr.h.
1830         (real_arithmetic2): Remove legacy function.
1831         (real_value_negate): New.
1832         (real_value_abs): New.
1833         (mfpr_from_real, real_from_mpfr): Move from here...
1834         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
1835         * builtins.c: Include realmpfr.h.
1836         * fold-const.c: Include realmpfr.h.
1837         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
1838         (fold_negate_const): Likewise.
1839         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
1840         * toplev.c: Include realmpfr.h.
1841         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
1842         and real_value_negate.
1843         * fixed-value.c (check_real_for_fixed_mode): Likewise.
1844         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
1845         (vfp3_const_double_index): Likewise.
1846         (arm_print_operand): Likewise.
1847         * Makefile.in: Update dependencies.
1849 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1851         * config/s390/s390.c (override_options): Increase the default
1852         of max-completely-peel-times.
1854 2010-05-21  Julian Brown  <julian@codesourcery.com>
1855             Mark Mitchell  <mark@codesourcery.com>
1857         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
1858         sibling calls for Thumb-1.
1859         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
1860         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
1861         Thumb-2.
1862         (*call_insn, *call_value_insn): Don't use for Thumb-2.
1863         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
1864         for Thumb-2.
1865         (return): New expander.
1866         (*arm_return): New name for ARM return insn.
1867         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
1869 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
1871         * config.gcc (sparc64-*-rtems*): New target.
1873 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
1875         * tree.c (build_function_decl_skip_args): Fix grammar.
1876         (build_function_type_list_1): Fix typos, adjust formatting.
1878 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
1880         * tree.h: Include real.h and fixed-value.h as basic datatypes.
1881         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
1882         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
1883         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
1884         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
1885         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
1886         tree-pretty-print.c, tree-loop-distribution.c,
1887         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
1888         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
1889         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
1890         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
1891         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
1892         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
1893         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
1894         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
1895         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
1896         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
1897         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
1898         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
1899         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
1900         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
1901         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
1902         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
1903         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
1904         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
1905         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
1906         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
1907         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
1908         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
1909         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
1910         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
1911         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
1912         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
1913         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
1914         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
1915         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
1916         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
1917         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
1918         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
1919         config/score/score7.c, config/score/score.c, config/arm/arm.c,
1920         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
1921         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
1922         config/bfin/bfin.c: Clean up redundant includes.
1923         * Makefile.in: Update accordingly.
1925 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
1927         PR middle-end/44204
1928         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
1929         statement has no arguments.
1931 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
1933         PR/44139
1934         * varasm.c (emutls_decl): Merge attributes to new decl.
1936 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
1938         PR middle-end/44101
1939         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
1940         around the uniquized constructor if its type requires a conversion.
1942 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
1944         PR debug/44205
1945         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
1946         at -O0 goto_locus of any of the incoming edges differs from
1947         goto_locus of outgoing edge, or gimple_location of any of the
1948         labels differs.
1950 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
1952         * ira.c (ira_non_ordered_class_hard_regs): Define.
1953         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
1954         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
1955         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
1956         cost of unaligned hard regs when allocating multi-reg pseudos.
1958 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
1960         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
1961         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
1962         for TARGET_NO_FLOAT.
1963         * config/mips/mips.c (mips_file_start): Expand conditional expression
1964         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
1965         (mips_override_options): Move -mno-float override -msoft-float and
1966         -mhard-float.
1967         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
1968         Condition(TARGET_SUPPORTS_NO_FLOAT).
1969         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
1970         __mips_no_float here.
1971         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
1972         (TARGET_SUPPORTS_NO_FLOAT): Define.
1973         * config/mips/sdemtk.opt: Delete.
1975 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
1977         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
1979 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
1981         PR target/43733
1982         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
1983         * configure: Regenerate.
1984         * config.in: Regenerate.
1985         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
1986         instead of sahf only for 64bit targets.
1988 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
1990         PR debug/44178
1991         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
1992         setup_ref_regs for DEBUG_INSNs.
1994 2010-05-20  Jan Hubicka  <jh@suse.cz>
1996         PR middle-end/44197
1997         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
1999 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2001         PR bootstrap/43870
2002         * df-scan.c (df_ref_compare): Stabilize sort.
2004 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
2006         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
2007         argument.  Don't use DW_OP_piece if offset is non-zero,
2008         put offset into second DW_OP_bit_piece argument.
2009         (dw_sra_loc_expr): Adjust callers.  For memory expressions
2010         compute offset.
2012 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
2014         PR target/44202
2015         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
2016         settings for 16-bit-constant "addo" alternative.
2018 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
2020         * config/mips/mips-dsp.md (add<DSPV:mode>3,
2021         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
2023         PR target/43764
2024         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
2025         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
2026         Use it.
2028 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
2030         * diagnostic.c (FLOAT, FFS): Don't undefine.
2031         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
2032         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
2033         include ordering.
2035 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2037         * combine.c (propagate_for_debug): Call make_compound_operation
2038         on the source value.
2039         (try_combine): When implementing a split chosen by find_split_point,
2040         either copy i2src or set it to null.  Assert that i2src is not null
2041         before substituting into CALL_INSN_FUNCTION_USAGE.
2043 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
2045         * double-int.h (double_int_ior): New function.
2046         * tree.h (build_int_cst_wide_type): Remove.
2047         * tree.c (build_int_cst_wide_type): Remove.
2048         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
2049         of build_int_cst_wide_type.
2050         * stor-layout.c (set_sizetype): (Ditto.).
2051         * dojump.c (do_jump): Use build_int_cstu instead of
2052         build_int_cst_wide_type.
2054 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2056         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
2057         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
2058         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
2059         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
2060         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
2061         propagate the 'data' argument to copy_tree_r.
2062         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
2063         Propagate 'data' argument to walk_tree.
2064         (copy_if_shared): New function.
2065         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
2066         (unmark_visited): New function.
2067         (unshare_body): Call copy_if_shared instead of doing it manually.
2068         (unvisit_body): Call unmark_visited instead of doing it manually.
2070 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
2072         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
2073         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
2074         * hooks.c: Likewise.
2075         * target-def.h (TARGET_FOLD_BUILTIN): Define to
2076         hook_tree_tree_int_treep_bool_null.
2077         * target.h (struct gcc_target): Update signature of fold_builtin
2078         field.
2079         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2080         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2081         instead of the call expression.
2082         (fold_builtin_call_array): Pass n and argarray directly.
2083         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2084         consing a list.
2085         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
2086         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
2087         `i' and use it in place of `arity'.
2088         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2089         Dereference `args' directly.
2090         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2092 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2094         * doc/sourcebuild.texi (Effective-Target Keywords): Document
2095         3dnow, sse3, sse2.
2096         (Directives): Document optional dg-require-effective-target
2097         selector.
2099 2010-05-19  Richard Guenther  <rguenther@suse.de>
2101         PR lto/44196
2102         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2104 2010-05-19  Richard Guenther  <rguenther@suse.de>
2106         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2107         * common.opt (fwhopr=): New.
2108         * opts.c (common_handle_option): Handle OPT_fwhopr.
2109         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2110         * collect2.c (main): Match -fwhopr*.
2111         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2112         Execute ltrans stage in parallel when jobs is bigger than 1.
2114 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2116         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2117         pentiumpro on Solaris 8/x86 with Sun as.
2118         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2119         hidden alias bug.
2120         (gcc_cv_as_ix86_quad): Check for .quad directive.
2121         * configure: Regenerate.
2122         * config.in: Regenerate.
2123         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2125 2010-05-19  Martin Jambor  <mjambor@suse.cz>
2127         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2128         also for indirect edges.  Actual printing moved...
2129         (ipa_print_node_jump_functions_for_edge): ...here.
2130         (ipa_compute_jump_functions): Renamed to
2131         ipa_compute_jump_functions_for_edge and made static.
2132         (ipa_compute_jump_functions): New function.
2133         (make_edge_direct_to_target): Check if the number of arguments on
2134         the newly direct edge is the same as the number of parametrs of
2135         the callee.
2136         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2137         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
2138         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2139         analysis functions unconditionally, call the new
2140         ipa_analyze_params_uses on the node instead of every edge.
2142 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2144         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2145         to tree.
2146         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
2147         also checks for a constant int vs.  non-constant but
2148         loop-invariant steps.
2149         (find_or_create_group): Change the sort algorithm to only consider
2150         steps that are constant ints.
2151         (idx_analyze_ref): Adopt code to handle a tree instead of a
2152         HOST_WIDE_INT for step.
2153         (gather_memory_references_ref): Handle tree instead of int and be
2154         prepared to see a NULL_TREE.
2155         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2156         prefetches if the step cannot be calculated at compile time.
2157         (issue_prefetch_ref): Issue prefetches for non-constant but
2158         loop-invariant steps.
2160 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2162         Revert:
2163         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2165         * tree.h (build_call_list): Remove.
2166         * tree.c (build_call_list): Remove.
2168 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2170         * tree.h (build_call_list): Remove.
2171         * tree.c (build_call_list): Remove.
2173 2010-05-18  Jan Hubicka  <jh@suse.cz>
2175         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2177 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
2179         PR rtl-optimization/43332
2180         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2182 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
2184         * tree.h (build_int_cstu): Implement as static inline.
2185         * tree.c (build_int_cstu): Remove function.
2186         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2187         sign extended.
2189 2010-05-18  Richard Guenther  <rguenther@suse.de>
2191         PR lto/44143
2192         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
2193         (debug): Initialize from -save-temps.
2194         (collect_execute): Print command-line when verbose.
2195         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
2196         for ltrans invocation.  Produce -dumpbase flag again.
2197         (process_args): Remove.
2198         (main): Simplify.
2199         * collect2.c (maybe_run_lto_and_relink): Only pass object
2200         files to lto-wrapper.
2201         * gcc.c (LINK_COMMAND_SPEC): Likewise.
2203 2010-05-18  Jan Hubicka  <jh@suse.cz>
2205         * opts.c (decode_options): Do not disable whopr at ipa_cp.
2206         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2208 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
2210         PR lto/44184
2211         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2212         in a GIMPLE_ASM.
2213         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2214         in a GIMPLE_ASM.
2216 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
2218         PR debug/41371
2219         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2220         rtx_equal_p inline.
2222 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
2224         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2225         lto-macho as lto_binary_reader.
2227         * darwin.c (darwin_asm_named_section): Do not add assembler comment
2228         after .section directive; just print it before the directive instead.
2230 2010-05-17  Jan Hubicka  <jh@suse.cz>
2232         * cgraph.c (cgraph_create_virtual_clone): Only check
2233         versionable_function_p when not in wpa and checking is enabled.
2234         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2235         there are no more functions to materialize.
2237 2010-05-17  Jan Hubicka  <jh@suse.cz>
2239         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2240         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2241         New functions.
2242         (output_cgraph): Call output_cgraph_opt_summary.
2243         (input_cgrpah): Call input_cgraph_opt_summary.
2244         (output_cgraph_opt_summary_p, output_node_opt_summary,
2245         input_node_opt_summary, input_cgraph_opt_section): New functions.
2246         * lto-section-in.c (lto_section_name): Add cgraphopt.
2247         * tree-inline.c (tree_function_versioning): Handle parm_num.
2248         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2249         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2251 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
2253         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2254         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2255         the insn to prefetch ratio heuristic to loops with known trip count.
2257 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
2259         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2260         (schedule_prefetches): Do not generate a prefetch if the unroll factor
2261         is far from what is required by the prefetch.
2263 2010-05-17  Jan Hubicka  <jh@suse.cz>
2265         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
2266         (ipcp_estimate_growth): Likewise.
2267         (ipcp_const_param_count): Likewise.
2268         (ipcp_insert_stage): Likewise.
2269         * ipa-prop.c (visit_load_for_mod_analysis): New function.
2270         (visit_store_addr_for_mod_analysis): Set used flag.
2271         (ipa_detect_param_modifications): Set used flag for SSE params;
2272         update use of walk_stmt_load_store_addr_ops.
2273         (ipa_print_node_params): Print used flag.
2274         (ipa_write_node_info): Stream used flag.
2275         (ipa_read_node_info): Likewise.
2276         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
2277         (ipa_is_param_used): New function.
2278         (lto_ipa_fixup_call_notes): Remove unused declaration.
2280 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2282         PR target/44074
2283         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
2284         * configure: Regenerate.
2285         * config.in: Regenerate.
2286         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
2287         !HAVE_AS_IX86_REP_LOCK_PREFIX.
2288         Don't emit whitespace.
2289         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
2290         (*rep_movsi): Likewise.
2291         (*rep_movsi_rex64): Likewise.
2292         (*rep_movqi): Likewise.
2293         (*rep_movqi_rex64): Likewise.
2294         (*rep_stosdi_rex64): Likewise.
2295         (*rep_stossi): Likewise.
2296         (*rep_stossi_rex64): Likewise.
2297         (*rep_stosqi): Likewise.
2298         (*rep_stosqi_rex64): Likewise.
2299         (*cmpstrnqi_nz_1): Use {%;} after repz.
2300         (*cmpstrnqi_nz_rex_1): Likewise.
2301         (*cmpstrnqi_1): Likewise.
2302         (*cmpstrnqi_rex_1): Likewise.
2303         (*strlenqi_1): Use {%;} after repnz.
2304         (*strlenqi_rex_1): Likewise.
2305         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2306         (*sync_compare_and_swap<mode>): Likewise.
2307         (sync_double_compare_and_swap<mode>): Likewise.
2308         (*sync_double_compare_and_swapdi_pic): Likewise.
2309         (sync_old_add<mode>): Likewise.
2310         (sync_add<mode>): Likewise.
2311         (sync_sub<mode>): Likewise.
2312         (sync_<code><mode>): Likewise.
2314 2010-05-17  Martin Jambor  <mjambor@suse.cz>
2316         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2317         otr_token and polymorphic.
2318         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2319         (cgraph_clone_edge): Copy the above fields.
2320         * tree.c (get_binfo_at_offset): New function.
2321         * tree.h (get_binfo_at_offset): Declare.
2322         * ipa-prop.h (enum jump_func_type): Added known_type jump function
2323         type, reordered items, updated comments.
2324         (union jump_func_value): Added base_type field, reordered fields.
2325         (enum ipa_lattice_type): Moved down in the file.
2326         (struct ipa_param_descriptor): New field polymorphic.
2327         (ipa_is_param_polymorphic): New function.
2328         * ipa-prop.c: Include gimple.h and gimple-fold.h.
2329         (ipa_print_node_jump_functions): Print known type jump functions.
2330         (compute_complex_pass_through): Renamed to...
2331         (compute_complex_assign_jump_func): this.
2332         (compute_complex_ancestor_jump_func): New function.
2333         (compute_known_type_jump_func): Likewise.
2334         (compute_scalar_jump_functions): Create known type and complex ancestor
2335         jump functions.
2336         (ipa_note_param_call): New parameter polymorphic, set the corresponding
2337         flag in the call note accordingly.
2338         (ipa_analyze_call_uses): Renamed to...
2339         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
2340         variable var only in the block where it is used.
2341         (ipa_analyze_virtual_call_uses): New function.
2342         (ipa_analyze_call_uses): Likewise.
2343         (combine_known_type_and_ancestor_jfs): Likewise.
2344         (update_jump_functions_after_inlining): Implemented handling of a
2345         number of new jump function types combination.
2346         (print_edge_addition_message): Removed.
2347         (make_edge_direct_to_target): New function.
2348         (try_make_edge_direct_simple_call): Likewise.
2349         (try_make_edge_direct_virtual_call): Likewise.
2350         (update_call_notes_after_inlining): Renamed to...
2351         (update_indirect_edges_after_inlining): this.  Moved edge creation for
2352         indirect calls to try_make_edge_direct_simple_call, also calls
2353         try_make_edge_direct_virtual_call for virtual calls.
2354         (ipa_print_node_params): Changed the header message.
2355         (ipa_write_jump_function): Stream also known type jump functions.
2356         (ipa_read_jump_function): Likewise.
2357         (ipa_write_indirect_edge_info): Stream new fields in
2358         cgraph_indirect_call_info.
2359         (ipa_read_indirect_edge_info): Likewise.
2360         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2361         GIMPLE_FOLD_H.
2363 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2365         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2367 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
2369         * tree.h (CALL_EXPR_ARGS): Delete.
2370         (call_expr_arglist): Delete.
2371         * tree.c (call_expr_arglist): Delete.
2372         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2373         targetm.fold_builtin.
2374         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2375         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2376         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2377         arglist parameter.  Use CALL_EXPR_ARG.
2378         (picochip_expand_builtin_3op): Likewise.
2379         (picochip_expand_builtin_2opvoid): Likewise.
2380         (picochip_expand_array_get): Likewise.
2381         (picochip_expand_array_put): Likewise.
2382         (picochip_expand_array_testport): Likewise.
2383         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
2384         rather than arglist.
2385         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2386         CALL_EXPR_ARGS.
2387         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2388         than TREE_VALUE and TREE_CHAIN.
2389         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2390         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2391         the arglist.
2393 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2395         PR bootstrap/42347
2396         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2397         to have no fallthru edge.
2399         PR middle-end/44102
2400         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2401         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2402         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2403         add BARRIER after previous bb if needed.
2405 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
2407         * tree.c (build_function_type_list_1): Remove bogus assert condition.
2409 2010-05-17  Alan Modra  <amodra@gmail.com>
2411         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2412         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
2413         with copy_reg rtx param.
2414         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2415         Correct cases where code for ABI_V4 did not initialise the reg
2416         used to access frame.  Also leave frame_reg_rtx as sp for large
2417         frames that save no regs.
2419 2010-05-17  Martin Jambor  <mjambor@suse.cz>
2421         PR middle-end/44133
2422         * tree-sra.c (create_access_replacement): New parameter rename, mark
2423         the replaement for renaming only when it is true.
2424         (get_access_replacement): Pass true in the rename parameter of
2425         create_access_replacement.
2426         (get_unrenamed_access_replacement): New function.
2427         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2428         replacement declaration from it.
2430 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
2432         * function.c (try_fit_stack_local, add_frame_space): New static
2433         functions.
2434         (assign_stack_local_1): Use them.  Look for opportunities to use
2435         space previously wasted on alignment.
2436         * function.h (struct frame_space): New.
2437         (struct rtl_data): Add FRAME_SPACE_LIST member.
2438         * reload1.c (something_was_spilled): New static variable.
2439         (alter_reg): Set it.
2440         (reload): Test it in addition to testing if the frame size changed.
2442 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
2444         * config/s390/s390.c: Define sane prefetch settings and activate
2445         flag_prefetch_loop_arrays on -O3.
2446         * config/s390/s390.h: Declare that read can use write prefetch.
2448 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2450         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2451         build.
2453 2010-05-16  Jan Hubicka  <jh@suse.cz>
2455         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2456         function body; do not check stdarg field of struct function.
2458 2010-05-16  Jan Hubicka  <jh@suse.cz>
2460         * cgraph.c (dump_cgraph_node): Dump versionable flag.
2461         * cgraph.h (cgraph_local_info): Add versionable flag.
2462         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2463         (ipcp_versionable_function_p): Use it.
2464         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2465         versionable flag.
2467 2010-05-16  Jan Hubicka  <jh@suse.cz>
2469         * cgraph.c (cgraph_clone_node): Take decl argument and insert
2470         clone into hash when it is different from orig.
2471         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2472         * cgraph.h (cgraph_clone_node): Update prototype.
2473         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2474         (lto_cgraph_encoder_delete): Delete body map.
2475         (lto_cgraph_encoder_size): Move to header.
2476         (lto_cgraph_encoder_encode_body_p,
2477         lto_set_cgraph_encoder_encode_body): New.
2478         (lto_output_node): Do not take written_decls argument; output clone_of
2479         pointer.
2480         (add_node_to): Add include_body_argument; call
2481         lto_set_cgraph_encoder_encode_body on master of the clone.
2482         (add_references): Update use of add_node_to.
2483         (compute_ltrans_boundary): Likewise.
2484         (output_cgraph): Do not create written_decls bitmap.
2485         (input_node): Take nodes argument; stream in clone_of correctly.
2486         (input_cgraph_1): Update use of input_node.
2487         * lto-streamer-out.c (lto_output): Use encoder info to decide
2488         what bodies to output.
2489         * ipa-inline.c (cgraph_clone_inlined_nodes,
2490         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2491         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2492         (lto_cgraph_encoder_size): Define here.
2493         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2494         Declare.
2496 2010-05-16  Richard Guenther  <rguenther@suse.de>
2498         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2499         -fipa-type-escape.
2500         * ipa-type-escape.c (gate_type_escape_vars): Run when
2501         -fipa-struct-reorg runs.
2502         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2503         * common.opt (fipa-type-escape): Remove.
2505 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2507         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2508         (decode_options): Likewise.
2509         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2511 2010-05-16  Jan Hubicka  <jh@suse.cz>
2513         * ipa.c (function_and_variable_visibility): Also bring local all
2514         aliases.
2516 2010-05-16  Richard Guenther  <rguenther@suse.de>
2518         * alias.c (nonoverlapping_memrefs_p): Remove use of
2519         IPA type-escape information.
2521 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
2523         * c-common.c (c_common_reswords): Add _Static_assert for C.
2524         * c-parser.c (c_token_starts_declaration,
2525         c_parser_next_token_starts_declaration,
2526         c_parser_static_assert_declaration_no_semi,
2527         c_parser_static_assert_declaration): New.
2528         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2529         Handle static assertions if static_assert_ok.
2530         (c_parser_external_declaration, c_parser_declaration_or_fndef,
2531         c_parser_compound_statement_nostart, c_parser_label,
2532         c_parser_for_statement, c_parser_objc_methodprotolist,
2533         c_parser_omp_for_loop): All callers of
2534         c_parser_declaration_or_fndef changed.
2535         (c_parser_struct_declaration): Handle static assertions.
2536         (c_parser_compound_statement_nostart): Use
2537         c_parser_next_token_starts_declaration and
2538         c_token_starts_declaration to detect start of declarations.
2539         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2540         Likewise.
2542 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
2544         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2545         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2546         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2547         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2548         (mmix_function_outgoing_value): Rename to...
2549         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2550         (mmix_function_value_regno_p): Make static.
2551         (mmix_libcall_value): New function.
2552         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2553         mmix_function_value_regno_p): Remove declaration.
2555 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2557         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2558         BUILT_IN_ALLOCA if stack checking is enabled.
2560 2010-05-16  Richard Guenther  <rguenther@suse.de>
2562         * var-tracking.c (vars_copy_1): Inline ...
2563         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2564         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
2565         (variable_merge_over_cur): Adjust.  Merge asserts.
2566         (variable_merge_over_src): Likewise.
2567         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2568         (variable_post_merge_new_vals): Merge asserts.
2569         (variable_post_merge_perm_vals): Likewise.
2570         (find_mem_expr_in_1pdv): Likewise.
2571         (dataflow_set_different_value): Remove.
2572         (onepart_variable_different_p): Merge asserts.
2573         (variable_different_p): Likewise.
2574         (dataflow_set_different_1): Inline ...
2575         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
2576         (emit_notes_for_differences_1): Merge asserts.
2578 2010-05-16  Richard Guenther  <rguenther@suse.de>
2580         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2581         * optabs.c (libfunc_decl_hash): Likewise.
2582         * varasm.c (emutls_decl): Likewise.
2584 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
2586         * c-decl.c: Don't include gimple.h.
2587         (merge_decls): Do not copy gimple_body.
2589 2010-05-15  Jason Merrill  <jason@redhat.com>
2591         * c.opt: Add -fnothrow-opt.
2593 2010-05-15  Jan Hubicka  <jh@suse.cz>
2595         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2596         analyzed.
2597         * passes.c (ipa_write_summaries): Write all analyzed nodes.
2599 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
2601         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2602         * Makefile.in: Add it.
2603         Fix all other Makefile dependencies for changes below.
2604         * tree.h: Include it instead of defining VEC primitives here.
2605         * gimple.h: Likewise.
2606         * rtl.h: Likewise.
2607         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2608         * except.h: Include vecir.h, break dependence on tree.h.
2610         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2611         Move from here...
2612         * tree-iterator.c: ...to here.
2613         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
2615         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
2616         tm_p.h.
2617         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2618         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2619         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2620         tree-mudflap.h, and target.h.
2621         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2622         predict.h, tree-inline.h, gimple.h, and langhooks.h.
2623         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2624         Add FIXME for why gimple.h is still included (should be unnecessary
2625         since GCC 4.5 gimplification unit-at-a-time).
2626         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2627         * c-pragma.c: Add FIXME for why function.h needs to be included just
2628         for cfun, at front-end level.
2629         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2630         Do not include ggc.h, but include vecprim.h for VEC(char).
2631         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2632         Explain why target.h is included.
2633         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2634         Explain why gimple.h is included.
2635         * c-ppoutput.c: Do not include tm.h.
2636         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
2637         * c-parses.c: Explain why rtl.h is included, and that this (and only
2638         this) is also why tm.h must be included.
2639         Do not include except.h.
2640         * c-lang.c: Do not include ggc.h.
2642 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
2644         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2646 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
2648         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2649         unions by default if those structs and unions have no tags.  Do
2650         not condition anonymous struct and unions handling on flag_iso.
2651         Allow anonymous structs and unions for C1X.
2652         (finish_struct): Do not diagnose lack of named fields when
2653         anonymous structs and unions present for C1X.  Accept flexible
2654         array members in structure with anonymous structs or unions but no
2655         directly named fields.
2656         * doc/extend.texi (Unnamed Fields): Update.
2658 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
2660         * gimple.h (compare_field_offset): Rename into...
2661         (gimple_compare_field_offset): ...this.
2662         * gimple.c (compare_field_offset): Rename into...
2663         (gimple_compare_field_offset): ...this.  Compare the full access if
2664         the offset is self-referential.
2665         (gimple_types_compatible_p): Adjust for above renaming.
2666         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
2667         DECL_NONADDRESSABLE_P flag of fields before merging them.
2669 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
2671         * tree.h (ctor_to_list): Delete.
2672         * tree.c (ctor_to_list): Delete.
2674 2010-05-15  Jan Hubicka  <jh@suse.cz>
2676         * ipa-reference.c: Include toplev.h
2677         (is_proper_for_analysis): Only add to all_module_statics
2678         if it is allocated.
2679         (write_node_summary_p, stream_out_bitmap,
2680         ipa_reference_write_optimization_summary,
2681         ipa_reference_read_optimization_summary): New.
2682         (struct ipa_opt_pass_d pass_ipa_reference): Add
2683         optimization summary streaming.
2684         * lto-cgraph.c (referenced_from_this_partition_p,
2685         reachable_from_this_partition_p): New functions.
2686         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2687         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2688         * opts.c (decode_options): Enable ipa_reference.
2689         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2690         * lto-streamer.h (referenced_from_this_partition_p,
2691         reachable_from_this_partition_p): Declare.
2693 2010-05-15  Richard Guenther  <rguenther@suse.de>
2695         PR tree-optimization/44038
2696         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2697         taking the address of a V_C_E of a constant.
2699 2010-05-14  Jan Hubicka  <jh@suse.cz>
2701         * tree.h (memory_identifier_string): Remove.
2702         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2703         (ipa_reference_global_vars_info_d): Remove statics_not_read and
2704         statics_not_written.
2705         (ipa_reference_optimization_summary_d): New structure.
2706         (ipa_reference_optimization_summary_t): New type and vector.
2707         (ipa_reference_vars_info_d): Embedd structures instead of using
2708         pointers.
2709         (reference_vars_to_consider): Remove out of GGC space.
2710         (module_statics_escape): Remove.
2711         (global_info_obstack): Rename to ...
2712         (optimization_summary_obstack): ... this one.
2713         (initialization_status_t): Remove.
2714         (memory_identifier_string): Remove.
2715         (get_reference_vars_info): Fix indenting.
2716         (set_reference_vars_info): Likewise.
2717         (get_reference_optimization_summary): New.
2718         (set_reference_optimization_summary): New.
2719         (get_global_reference_vars_info): Remove.
2720         (ipa_reference_get_read_global): Remove.
2721         (ipa_reference_get_written_global): Remove.
2722         (ipa_reference_get_not_read_global): Update.
2723         (ipa_reference_get_not_written_global): Update.
2724         (is_proper_for_analysis): Outlaw addressable.
2725         (propagate_bits): Update for new datastructures.
2726         (analyze_variable): Remove.
2727         (init_function_info): Update for new datastructures.
2728         (clean_function_local_data): Remove.
2729         (clean_function): Remove.
2730         (copy_global_bitmap): Use optimizations_summary_obstack.
2731         (duplicate_node_data): Duplicate optimization summary only.
2732         (remove_node_data): Remove optimization summary only.
2733         (generate_summary): Do not analyze variables; do not compute
2734         module_statics_escape; do not prune solutions by it.
2735         (read_write_all_from_decl): Fix typos in comments.
2736         (propagate): Doscover readonly and nonaddressable first;
2737         update for new datastructures; share global bitmaps.
2738         * ipa-reference.h (ipa_reference_get_read_global,
2739         ipa_reference_get_written_global): Remove.
2740         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2741         * Makefile.in: Remove ipa-refereference from GT files.
2743 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
2745         PR debug/44112
2746         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
2747         for all SYMBOL_REF_DECLs.
2749 2010-05-14  Jan Hubicka  <jh@suse.cz>
2751         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
2752         (varpool_all_refs_explicit_p): New inline function.
2753         * ipa-reference.c: Update comment.
2754         (module_statics_written): Remove.
2755         (get_static_decl): Remove.
2756         (ipa_init): Do not initialize module_statics_written.
2757         (analyze_function): Likewise.
2758         (generate_summary): Likewise; do not compute module_statics_readonly
2759         and do not update variable flags.
2760         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
2761         * ipa.c: Inlucde flags.h
2762         (cgraph_local_node_p): New.
2763         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
2764         promote functions to local.
2765         (ipa_discover_readonly_nonaddressable_vars): New function.
2766         (function_and_variable_visibility): Use cgraph_local_node_p.
2767         * varpool.c (varpool_finalize_decl): Set force_output for
2768         DECL_PRESERVE_P vars.
2770 2010-05-14  Jan Hubicka  <jh@suse.cz>
2772         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
2774 2010-05-14  Richard Guenther  <rguenther@suse.de>
2776         PR tree-optimization/44119
2777         * tree-ssa-pre.c (eliminate): Properly mark replacement of
2778         a PHI node necessary.
2780 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2782         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
2784 2010-05-14  Jason Merrill  <jason@redhat.com>
2786         PR c++/44127
2787         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
2788         (gimple_call_set_nothrow): New.
2789         * gimple.c (gimple_build_call_from_tree): Call it.
2790         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
2792         PR c++/44127
2793         * gimplify.c (gimplify_seq_add_stmt): No longer static.
2794         * gimple.h: Declare it.
2795         * gimple.c (gimple_build_eh_filter): No ops.
2797 2010-05-14  Jan Hubicka  <jh@suse.cz>
2799         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
2800         nodes already in queue.
2801         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
2802         re-enqueueing node.
2804 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
2806         PR debug/44136
2807         * cfgexpand.c (expand_debug_expr): If non-memory op0
2808         has BLKmode, return NULL.
2810 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
2812         * config.gcc: Add support for --with-cpu option for bdver1.
2813         * config/i386/i386.h (TARGET_BDVER1): New macro.
2814         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
2815         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2816         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
2817         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2818         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
2819         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
2820         (processor_type): Add PROCESSOR_BDVER1.
2821         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
2822         processor_type in config/i386/i386.h.
2823         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
2824         movaps <reg, reg> instead of movapd <reg, reg> when replacing
2825         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
2826         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
2827         to emit packed xor instead of packed double/packed integer
2828         xor for SSE and AVX when moving a zero value.
2829         * config/i386/sse.md: Add check for
2830         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
2831         movapd/movdqa for SSE and AVX.
2832         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
2833         single logical operations i.e and, or and xor instead of packed double
2834         logical operations for SSE and AVX.
2835         * config/i386/i386-c.c (ix86_target_macros_internal):
2836         Add PROCESSOR_BDVER1.
2837         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
2838         (has_fma4, has_xop): New.
2839         * config/i386/i386.c (bdver1_cost): New variable.
2840         (m_BDVER1): New macro.
2841         (m_AMD_MULTIPLE): Add m_BDVER1.
2842         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
2843         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
2844         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
2845         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
2846         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
2847         x86_tune_sse_partial_reg_dependency,
2848         x86_tune_sse_unaligned_load_optimal,
2849         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
2850         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
2851         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
2852         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
2853         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
2854         Enable/disable for bdver1.
2855         (processor_target_table): Add bdver1_cost.
2856         (cpu_names): Add bdver1.
2857         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
2858          processor_alias_table.
2859         (ix86_expand_vector_move_misalign): Change.
2860         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
2861         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
2862         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
2863         of movupd/movdqu for SSE and AVX.
2864         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
2865         (ix86_tune_adjust_cost): Add code for bdver1.
2866         (standard_sse_constant_opcode): Add check for
2867         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
2868         of packed double xor for SSE and AVX.
2870 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
2872         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
2873         result to unsigned.
2875 2010-05-14  Tristan Gingold  <gingold@adacore.com>
2877         * toplev.c (default_debug_hooks): Remove this variable.
2878         (process_options): Remove assignments to default_debug_hooks.
2880 2010-05-14  Martin Jambor  <mjambor@suse.cz>
2882         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
2883         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
2884         * langhooks.h (struct lang_hooks_for_decls): Removed field
2885         fold_obj_type_ref.
2886         * tree.c (free_lang_data): Remove assignment to
2887         lang_hooks.fold_obj_type_ref.
2888         * tree.def (OBJ_TYPE_REF): Update comment.
2890 2010-05-14  Richard Guenther  <rguenther@suse.de>
2892         PR tree-optimization/44124
2893         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
2895 2010-05-14  Alan Modra  <amodra@gmail.com>
2897         PR target/44075
2898         * config/rs6000/rs6000.c (struct machine_function): Reorder
2899         fields for better packing.  Add lr_save_state.
2900         (rs6000_ra_ever_killed): Return lr_save_state if set.
2901         (rs6000_emit_eh_reg_restore): Set lr_save_state.
2903 2010-05-13  Jan Hubicka  <jh@suse.cz>
2905         * varpool.c (decide_is_variable_needed): Drop code checking
2906         TREE_SYMBOL_REFERENCED.
2908 2010-05-13  Jan Hubicka  <jh@suse.cz>
2910         * final.c (output_addr_const): Do not call mark_decl_referenced.
2911         * cgraphunit.c (process_function_and_variable_attributes): Use
2912         mark_needed_node dirrectly.
2913         (assemble_thunk): Do not call mark_decl_referenced.
2915 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
2917         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
2919 2010-05-13  Jeff Law  <law@redhat.com>
2921         * ira-conflicts.c (print_allocno_conflicts): New function broken out
2922         from...
2923         (print_conflicts): Call print_allocno_conflicts.
2925 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
2927         PR debug/44104
2928         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
2929         if it is NULL.
2931 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
2933         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
2934         t-mingw-w64 or t-mingw-w32 for multilib configuration.
2935         * config/i386/t-mingw-w32: New.
2936         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
2938 2010-05-13  Martin Jambor  <mjambor@suse.cz>
2940         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
2941         gimple-fold.c).
2942         * gimple-fold.c (get_base_binfo_for_type): New function.
2943         (gimple_get_relevant_ref_binfo): Likewise.
2944         (gimple_fold_obj_type_ref_known_binfo): Likewise.
2945         (gimple_fold_obj_type_ref): Likewise.
2946         (fold_gimple_call): Simplify condition for folding virtual calls
2947         and call gimple_fold_obj_type_ref.
2948         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
2949         (gimple_fold_obj_type_ref_known_binfo): Likewise.
2951 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
2953         * config/rs6000/rs6000-protos.h
2954         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
2955         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
2956         (rs6000_debug_mode_dependent_address)
2957         (rs6000_mode_dependent_address_ptr): Likewise.
2959 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
2961         PR debug/43983
2962         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
2963         by SRA.
2964         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
2965         * tree-sra.c (create_access_replacement): Call unshare_expr before
2966         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
2967         * dwarf2out.c: Include tree-flow.h.
2968         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
2969         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
2970         Handle DW_OP_bit_piece.
2971         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
2972         construct_piece_list, adjust_piece_list): New functions.
2973         (add_var_loc_to_decl): Handle SRA optimized variables.
2974         Adjust for var_loc_note to loc field renaming.
2975         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
2976         in VAR_LOCATION note.
2977         (new_loc_descr_op_bit_piece): New function.
2978         (dw_sra_loc_expr): New function.
2979         (dw_loc_list): Use it.  Don't handle the last range after the
2980         loop, handle it inside of the loop.  Adjust for var_loc_note
2981         to loc field renaming.
2982         (add_location_or_const_value_attribute): Only special case
2983         single entry loc lists if loc is NOTE_P.  Adjust for
2984         var_loc_note to loc field renaming.
2985         (dwarf2out_var_location): Don't set newloc->var_loc_note
2986         and newloc->next here.
2988 2010-05-12  Jan Hubicka  <jh@suse.cz>
2990         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
2991         flag.
2992         * cgraph.h (cgraph_only_called_directly_p,
2993         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
2994         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
2995         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
2996         (assemble
2997         * ipa.c (cgraph_remove_unreachable_nodes): Use
2998         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
2999         flags.
3000         * tree-inline.c (copy_bb): Check address_taken flag.
3001         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
3002         externally_visible flag.
3004 2010-05-12  Jason Merrill  <jason@redhat.com>
3006         PR bootstrap/44048
3007         PR target/44099
3008         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
3009         * sdbout.c (plain_type_1): Likewise.
3010         * dwarf2out.c (is_base_type): Likewise.
3011         (gen_type_die_with_usage): Likewise.  Generate
3012         DW_TAG_unspecified_type for any LANG_TYPE.
3014 2010-05-12  Jan Hubicka  <jh@suse.cz>
3016         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
3017         indrect edges too.
3018         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
3019         (cgraph_clone_edge): Update.
3020         (cgraph_node_remove_callees): Remove indirect calls too.
3021         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
3022         (cgraph_create_indirect_edge): Update prototype.
3023         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
3024         is_proper_for_analysis.
3025         (add_new_function, visited_nodes, function_insertion_hook_holder,
3026         get_local_reference_vars_info, mark_address_taken, mark_address,
3027         mark_load, mark_store, check_asm_memory_clobber, check_call,
3028         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
3029         (ipa_init): Do not initialize visited_nodes;
3030         function_insertion_hook_holder.
3031         (analyze_variable): Rewrite.
3032         (analyze_function): Rewrite.
3033         (copy_local_bitmap): Remove.
3034         (duplicate_node_dat): Do not duplicate local info.
3035         (generate_summary): Simplify to only walk cgraph.
3036         (write_node_summary_p, ipa_reference_write_summary,
3037         ipa_reference_read_summary): Remove.
3038         (propagate): Do not remove function insertion;
3039         generate summary.
3040         (pass_ipa_reference): NULLify summary handling fields.
3041         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
3042         (input_edge): Input ecf_flags.
3043         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
3044         (update_indirect_edges_after_inlining): Ignore edges with unknown
3045         param.
3047 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
3049         * implicit-zee.c: New file.
3050         * tree-pass.h (pass_implicit_zee): Declare.
3051         * passes.c (init_optimization_passes): Add zee pass.
3052         * common.opt (fzee): New flag.
3053         * timevar.def (TV_ZEE): Define.
3054         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
3055         and beyond.
3056         * Makefile.in (implicit-zee.o): Add new build file.
3058 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3059             Nathan Froyd  <froydnj@codesourcery.com>
3061         * c-common.c (sync_resolve_params): Remove write-only variable.
3063 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
3065         * target.h (struct gcc_target): Add mode_dependent_address_p field.
3066         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3067         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
3068         * targhooks.c (default_mode_dependent_address_p): New function.
3069         * targhooks.h (default_mode_dependent_address_p): Declare function.
3070         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3071         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
3072         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
3073         target hook. Change return type to bool.
3074         * recog.h (mode_dependent_address_p): Change return type to bool.
3076 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3077             Nathan Froyd  <froydnj@codesourcery.com>
3079         * tree-mudflap.c (build_function_type_0, build_function_type_1,
3080         build_function_type_2, build_function_type_3): Remove.
3081         (mudflap_init): Use build_function_type_list.
3083 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3084             Nathan Froyd  <froydnj@codesourcery.com>
3086         * coverage.c (build_fn_info_value): Call build_constructor instead of
3087         build_constructor_from_list.
3088         (build_ctr_info_value): Likewise.
3089         (build_gcov_info): Likewise.
3091 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
3093         * tree.c (build_constructor): Compute TREE_CONSTANT for the
3094         resultant constructor.
3095         (build_constructor_single): Don't set TREE_CONSTANT.
3096         (build_constructor_from_list): Don't compute TREE_CONSTANT.
3098 2010-05-12  Jan Hubicka  <jh@suse.cz>
3100         * cgraph.h (struct varpool_node): Add aux.
3101         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3102         * varpool.c (varpool_remove_node): Do not remove initializer.
3103         (varpool_reset_queue): Export.
3104         (varpool_finalize_decl): Volatile vars are forced to be output.
3105         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3106         replaced decl.
3107         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3108         process_references, varpool_can_remove_if_no_refs): New functions.
3109         (cgraph_remove_unreachable_nodes): Handle variables too.
3111 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
3113         PR target/44088
3114         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3116 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
3118         PR middle-end/44085
3119         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3120         change value of ORT_TASK.
3121         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3122         (omp_notice_threadprivate_variable): New function.
3123         (omp_notice_variable): Call it for threadprivate variables.
3124         If enclosing ctx is a task, print enclosing task rather than
3125         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
3126         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3127         if task has untied clause.
3129         PR debug/42278
3130         * dwarf2out.c (base_type_die): Don't add name attribute here.
3131         (modified_type_die): Instead of sizetype use
3132         its underlying original type.  If a DW_TAG_base_type doesn't
3133         have name added, add __unknown__.
3134         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3135         always call force_type_die instead.
3137 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
3139         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3140         for __stack_chk_guard.
3142 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
3144         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3145         don't call start_source_file debug hook here...
3146         (finish_options): ... but here, after outputting predefined and
3147         command line defines and undefs.
3149         PR middle-end/44071
3150         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3151         no fallthru edge.
3152         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3153         optimizing away empty bb with no successors, move over its
3154         footer chain to fallthru predecessor.
3155         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3156         (rtl_split_edge): For asm goto call patch_jump_insn even if
3157         splitting fallthru edge.
3159         PR c++/44059
3160         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3161         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3162         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3163         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3164         on DW.ref.* decls.
3166         PR c++/44062
3167         * c-parser.c (c_parser_expression): Mark LHS of a comma
3168         expression as read if it is a decl, handled component or
3169         COMPOUND_EXPR with that on the RHS.
3170         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3171         if it is a decl or handled component.
3173 2010-05-11  Jan Hubicka  <jh@suse.cz>
3175         * lto-symtab.c (lto_symtab_free): New function.
3176         * lto-streamer.h (lto_symtab_free): Declare.
3178 2010-05-11  Jan Hubicka  <jh@suse.cz>
3180         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3181         that if function is needed it is reachable.
3182         (lto_output_node): See if it the function is reachable or referenced.
3183         (output_cgraph): Update call of lto_output_node.
3184         * lto-streamer.h (reachable_from_other_partition_p): Declare.
3186 2010-05-11  Jan Hubicka  <jh@suse.cz>
3188         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3189         Mark as used.
3191 2010-05-11  Jan Hubicka  <jh@suse.cz>
3193         PR tree-optimize/44063
3194         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3195         queue.
3196         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3197         limits.
3198         (estimate_function_body_sizes): Compute sizes even when disregarding.
3200 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
3202         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3204 2010-05-11  Jan Hubicka  <jh@suse.cz>
3206         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3207         into every boundary.
3209 2010-05-11  Jan Hubicka  <jh@suse.cz>
3211         * matrix-reorg.c (matrix_reorg): Rebuild edges.
3213 2010-05-11  Jan Hubicka  <jh@suse.cz>
3215         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3216         lto_streamer_cache_delete): Put nodes into heap.
3217         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3218         heap.
3220 2010-05-11  Jan Hubicka  <jh@suse.cz>
3222         * cgraphbuild.c (cgraph_rebuild_references): New.
3223         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3224         out extern inlines.
3225         * cgraph.h (cgraph_rebuild_references): Declare.
3226         * tree-inline.c (tree_function_versioning): Use it.
3227         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3229 2010-05-11  Jan Hubicka  <jh@suse.cz>
3231         * cgraph.c: Include ipa-utils.h
3232         (cgraph_create_virtual_clone): Update references.
3233         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3235 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
3237         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3238         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3239         cache size.
3241 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
3243         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3245 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
3247         * gcc.c (execute): For -### don't quote arguments that
3248         contain just alphanumerics and _/-. characters.
3249         * doc/invoke.texi: Document that change for -###.
3251         PR debug/44023
3252         * df-problems.c (struct dead_debug): Add to_rescan field.
3253         (dead_debug_init): Clear to_rescan field.
3254         (dead_debug_finish): Rescan all debug insns in to_rescan
3255         bitmap and free the bitmap.
3256         (dead_debug_insert_before): Instead of rescanning debug insns
3257         immediately queue their rescanning until dead_debug_finish.
3258         (df_note_bb_compute): After dead_debug_add do continue instead
3259         of break.
3261 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
3263         PR debug/44028
3264         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
3265         clear also INSN_REG_USE_LIST.
3267 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3269         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
3271 2010-05-10  Jan Hubicka  <jh@suse.cz>
3273         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
3274         commited change.
3276 2010-05-10  Jan Hubicka  <jh@suse.cz>
3278         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
3279         Allocate encoders.
3280         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
3281         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
3282         (lto_streamer_cache_create): Init alloc pool.
3283         (lto_streamer_cache_delete): Free alloc pool.
3284         * lto-streamer.h: Include alloc pool.
3285         (lto_streamer_cache_d): Use alloc pool.
3286         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
3288 2010-05-10  Jan Hubicka  <jh@suse.cz>
3290         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
3291         * cgraphbuild.c: Include except.h
3292         (record_type_list, record_eh_tables): New function.
3293         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3295 2010-05-10  Jan Hubicka  <jh@suse.cz>
3297         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3298         __frame_dummy_init_array_entry, force_to_data): Attribute as used
3299         rather than unused.
3301 2010-05-10  Michael Matz  <matz@suse.de>
3303         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3304         (can_reassociate_p): Use FLOAT_TYPE_P.
3305         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3306         (vect_force_simple_reduction): ... this.
3307         * tree-parloops.c (gather_scalar_reductions): Use
3308         vect_force_simple_reduction.
3309         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3310         vect_is_simple_reduction, add modify argument, if true rewrite
3311         "a-b" into "a+(-b)".
3312         (vect_is_simple_reduction, vect_force_simple_reduction): New
3313         functions.
3314         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3316 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3317             Vladimir Makarov  <vmakarov@redhat.com>
3319         PR rtl-optimization/44012
3320         * ira-build.c (remove_unnecessary_allocnos): Nullify
3321         regno_allocno_map of the removed allocno.
3323 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3325         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3326         to /dev/null.
3327         * configure: Regenerate.
3329 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3331         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3332         unused.
3333         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3334         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3335         support in Sun ld.
3336         * configure: Regenerate.
3338 2010-05-10  Richard Guenther  <rguenther@suse.de>
3340         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3341         marked if the entry identifier is marked.
3343 2010-05-10  Richard Guenther  <rguenther@suse.de>
3345         * c-common.c (struct c_common_attributes): Add fnspec attribute.
3346         (handle_fnspec_attribute): New function.
3347         * gimple.h (gimple_call_return_flags): Declare.
3348         (gimple_call_arg_flags): Likewise.
3349         * gimple.c (gimple_call_arg_flags): New function.
3350         (gimple_call_return_flags): Likewise.
3351         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3352         New argument flags.
3353         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3354         return value flags.
3355         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3356         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3357         main work to ...
3358         (make_heapvar_for): ... this new function.
3359         (handle_rhs_call): Handle fnspec attribute argument specifiers.
3360         (handle_lhs_call): Likewise.
3361         (find_func_aliases): Adjust.
3363 2010-05-10  Richard Guenther  <rguenther@suse.de>
3365         PR tree-optimization/44050
3366         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3368 2010-05-10  Wei Guozhi  <carrot@google.com>
3370         PR target/42879
3371         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3373 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
3375         PR c/10676
3376         * c-typeck.c (lookup_field): Take a type directly.  Update
3377         recursive calls.
3378         (build_component_ref): Update call to lookup_field.
3379         (set_init_label): Use lookup_field to find initialized field.
3380         Handle returned list of fields like a sequence of designators.
3382 2010-05-09  Richard Guenther  <rguenther@suse.de>
3384         PR middle-end/44024
3385         * fold-const.c (tree_single_nonzero_warnv_p): Properly
3386         handle &FUNCTION_DECL.
3388 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
3390         PR c/4784
3391         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
3392         structures and unions recursively.
3393         (detect_field_duplicates): Move duplicate detection with a hash to
3394         detect_field_duplicates_hash.  Always use a hash if anonymous
3395         structures or unions are present.
3396         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3397         give errors.
3399 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3401         PR target/44046
3402         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3403         detect Atom, Core 2 and Core i7.
3405 2010-05-09  Richard Guenther  <rguenther@suse.de>
3407         * gcc.c (store_arg): Handle temporary file deletion for
3408         joined arguments.
3410 2010-05-09  Richard Guenther  <rguenther@suse.de>
3412         PR middle-end/44043
3413         * ipa-inline.c (estimate_function_body_sizes): Return after
3414         disregarding inline limits.
3416 2010-05-09  Richard Guenther  <rguenther@suse.de>
3418         * gcc.c (store_arg): Revert last change.
3420 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
3422         PR middle-end/28685
3423         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3424         (optimize_ops_list): Call it.
3426 2010-05-08  Richard Guenther  <rguenther@suse.de>
3428         PR tree-optimization/44030
3429         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
3430         NECESSARY flag if we propagate from a inserted expression.
3432 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3434         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3435         domain types as equal if they are both PLACEHOLDER_EXPRs.
3437 2010-05-08  Richard Guenther  <rguenther@suse.de>
3439         * lto-wrapper.c (run_gcc): Remove linker output from
3440         command line for LTRANS invocation.
3442 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3444         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3445         lto-macho as lto_binary_reader.
3446         * target.h (struct gcc_target): New hooks lto_start and lto_end.
3447         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3448         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3449         in lto_start and lto_end calls.
3450         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
3451         magic numbers.
3452         (scan_prog_file): Update is_elf_or_coff call.
3453         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3455         * collect2.c (main): Fix enum comparison.
3457         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3458         Add prototypes.
3459         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3460         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
3461         and TARGET_ASM_LTO_END.
3462         * darwin.c: Include obstack.h and lto-streamer.h.
3463         (lto_section_names_offset, lto_section_names_obstack,
3464         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3465         global variables.
3466         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3467         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
3468         to a temporary file.
3469         (darwin_asm_lto_end): New function.  Restore asm_out_file.
3470         (darwin_asm_named_section): For LTO sections, replace the name with
3471         the offset of the section name in a string table, and build this
3472         table.
3473         (darwin_file_start): Initialize global vars for LTO support.
3474         (darwin_file_end): If output to asm_out_file was redirected, append it
3475         to the proper asm_out_file here.  Add the section names section.
3477 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3479         * c-pragma.c (pending_weak_d, pending_weak): New.
3480         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3481         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3482         handle_pragma_weak): Update the uses of pending_weaks.
3484 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3486         PR documentation/44016
3487         * doc/standards.texi (Standards): Link to unversioned
3488         cxx0x_status.html page.
3490 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
3492         PR target/43708
3493         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3494         in addition to TREE_USED, to avoid "set but unused" warnings.
3496 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3498         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3499         (is_loop_prefetching_profitable): Do not insert prefetches
3500         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3501         times the prefetch ahead distance.
3503 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3505         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3506         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3507         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3508         the unroll_factor.
3510 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3512         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3513         a diagnostic info when the insn-to-mem ratio is too small.
3515 2010-05-07  Richard Guenther <rguenther@suse.de>
3517         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3518         the linker plugin.
3519         (store_arg): Queue temp_filename for deletion instead of
3520         the whole argument.
3522 2010-05-07  Richard Guenther  <rguenther@suse.de>
3524         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3525         (run_gcc): Handle LTRANS phase invocation.
3526         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3528 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
3530         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3531         this is also meaningful on PARM_DECLs and RESULT_DECLs.
3533 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3535         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3537 2010-05-07  Richard Guenther  <rguenther@suse.de>
3539         PR tree-optimization/44020
3540         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3541         code when PRE is not yet initialized.
3543 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3545         * config/mips/dbxmdebug.h: Remove.
3546         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3548 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
3550         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3551         with null pointer and also warn about ordered comparison of zero with
3552         pointer if -Wextra.
3554 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3556         * graphite-blocking.c
3557         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3558         * graphite-clast-to-gimple.c
3559         (clast_to_gcc_expression): Same.
3560         (precision_for_value): Same.
3561         (precision_for_interval): Same.
3562         (gcc_type_for_interval): Same.
3563         (graphite_create_new_guard): Same.
3564         (compute_bounds_for_level): Same.
3565         (graphite_create_new_loop_guard): Same.
3566         * graphite-interchange.c
3567         (build_linearized_memory_access): Same.
3568         (pdr_stride_in_loop): Same.
3569         (memory_strides_in_loop_1): Same.
3570         (memory_strides_in_loop): Same.
3571         (extend_scattering): Same.
3572         (psct_scattering_dim_for_loop_depth): Same.
3573         (pbb_number_of_iterations): Same.
3574         * graphite-poly.h
3575         (debug_iteration_domains): Same.
3576         * graphite-ppl.c
3577         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3578         (ppl_set_inhomogeneous_gmp): Same.
3579         (ppl_strip_loop): Same.
3580         (ppl_lexico_compare_linear_expressions): Same.
3581         (ppl_read_polyhedron_matrix): Same.
3582         (ppl_max_for_le_pointset): Same.
3583         * graphite-ppl.h
3584         (ppl_read_polyhedron_matrix): Same.
3585         (tree_int_to_gmp): Same.
3586         (gmp_cst_to_tree): Same.
3587         (ppl_set_inhomogeneous): Same.
3588         (ppl_set_inhomogeneous_tree): Same.
3589         (ppl_set_coef): Same.
3590         (ppl_set_coef_tree): Same.
3591         * graphite-sese-to-poly.c
3592         (build_pbb_scattering_polyhedrons): Same.
3593         (build_scop_scattering): Same.
3594         (scan_tree_for_params_right_scev): Same.
3595         (scan_tree_for_params): Same.
3596         (find_params_in_bb): Same.
3597         (find_scop_parameters): Same.
3598         (add_upper_bounds_from_estimated_nit): Same.
3599         (build_loop_iteration_domains): Same.
3600         (add_condition_to_domain): Same.
3601         (pdr_add_memory_accesses): Same.
3603 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3605         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3606         CLooG's value_* macros to their respective mpz_* counterparts.
3607         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3608         (graphite_create_new_loop_guard): Same.
3609         * graphite-interchange.c (build_linearized_memory_access): Same.
3610         (pdr_stride_in_loop): Same.
3611         (memory_strides_in_loop_1): Same.
3612         (1st_interchange_profitable_p): Same.
3613         * graphite-poly.c (extend_scattering): Same.
3614         (psct_scattering_dim_for_loop_depth): Same.
3615         (pbb_number_of_iterations): Same.
3616         (pbb_number_of_iterations_at_time): Same.
3617         * graphite-poly.h (new_1st_loop): Same.
3618         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3619         (oppose_constraint): Same.
3620         (insert_constraint_into_matrix): Same.
3621         (ppl_set_inhomogeneous_gmp): Same.
3622         (ppl_set_coef_gmp): Same.
3623         (ppl_strip_loop): Same.
3624         (ppl_lexico_compare_linear_expressions): Same.
3625         (ppl_max_for_le_pointset): Same.
3626         (ppl_min_for_le_pointset): Same.
3627         (ppl_build_realtion): Same.
3628         * graphite-ppl.h (gmp_cst_to_tree): Same.
3629         (ppl_set_inhomogeneous): Same.
3630         (ppl_set_inhomogeneous_tree): Same.
3631         (ppl_set_coef): Same.
3632         (ppl_set_coef_tree): Same.
3633         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3634         (build_scop_scattering): Same.
3635         (add_value_to_dim): Same.
3636         (scan_tree_for_params_right_scev): Same.
3637         (scan_tree_for_params_int): Same.
3638         (scan_tree_for_params): Same.
3639         (find_params_in_bb): Same.
3640         (find_scop_parameters): Same.
3641         (add_upper_bounds_from_estimated_nit): Same.
3642         (build_loop_iteration_domains): Same.
3643         (create_linear_expr_from_tree): Same.
3644         (add_condition_to_domain): Same.
3645         (pdr_add_memory_accesses): Same.
3647 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
3648             Jason Merrill  <jason@redhat.com>
3650         * c-common.c (c_common_reswords): Add nullptr.
3651         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
3652         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3653         (gen_type_die_with_usage): Likewise.
3654         * dbxout.c (dbxout_type): Likewise.
3655         * sdbout.c (plain_type_1): Likewise.
3657 2010-05-06  Jason Merrill  <jason@redhat.com>
3659         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3660         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
3661         ret appropriately.
3662         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3664         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3665         stripping WITH_SIZE_EXPR.
3666         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3667         change.
3669 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3671         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3672         list of obsolete configurations.
3673         Disabled check for obsolete configurations.
3674         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3675         Removed support for previous versions.
3676         * config/mips/iris.h: Removed.
3677         * config/mips/iris5.h: Removed.
3678         * config/mips/iris6.h: Merged old iris.h contents.
3679         (TARGET_IRIX): Removed.
3680         (DRIVER_SELF_SPECS): Removed mabi=32.
3681         (IDENT_ASM_OP): Removed undef.
3682         (STARTFILE_SPEC): Removed mabi=32.
3683         (ENDFILE_SPEC): Likewise.
3684         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3685         (MACHINE_TYPE): Update for IRIX 6.5.
3686         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3687         TARGET_IRIX by TARGET_IRIX6.
3688         (mips_file_start): Likewise.
3689         (mips_output_external): Remove IRIX 5/6 O32 support.
3690         (mips_output_function_prologue): Likewise.
3691         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3692         TARGET_IRIX6.
3693         (TARGET_CPU_CPP_BUILTINS): Likewise.
3694         (TARGET_IRIX): Removed.
3695         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3696         (MULTILIB_DIRNAMES): Removed 32.
3697         (MULTILIB_OSDIRNAMES): Removed ../lib.
3698         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3699         (Specific, mips-sgi-irix5): Document removal.
3700         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3701         Remove references to older IRIX 6 releases and the O32 ABI.
3703 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
3705         PR bootstrap/43994
3706         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3707         instead of DF_REF_REAL_REG.
3709 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
3711         PR target/43888
3712         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3713         handling to still return true for x64 targets.
3715 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3717         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3719 2010-05-06  Jan Hubicka  <jh@suse.cz>
3721         PR tree-optimization/43791
3722         * ipa-inline.c (update_caller_keys): Remove bogus
3723         disregard_inline_limits check.
3725 2010-05-06  Michael Matz  <matz@suse.de>
3727         PR tree-optimization/43984
3728         * tree-ssa-pre.c (inserted_phi_names): Remove.
3729         (inserted_exprs): Change to bitmap.
3730         (create_expression_by_pieces): Set bits, don't append to vector.
3731         (insert_into_preds_of_block): Don't handle inserted_phi_names.
3732         (eliminate): Don't look at inserted_phi_names, remove deleted
3733         insns from inserted_exprs.
3734         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3735         (init_pre, fini_pre): Allocate and free bitmaps.
3736         (execute_pre): Insert insns on edges before elimination.
3738 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
3740         * tree.c (initializer_zerop): Handle STRING_CST.
3742 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3744         PR 40989
3745         * doc/invoke.texi (Wimplicit): Document as C only.
3746         * opts.c (common_handle_option): Add argument kind.
3747         (handle_option): Rename as read_cmdline_option. Factor out code to...
3748         (handle_option): ... here. New.
3749         (handle_options): Rename as read_cmdline_options.
3750         (decode_options): Update call.
3751         (set_option): Use option index instead of option pointer. Classify
3752         diagnostics correctly.
3753         (enable_warning_as_error): Call handle_option.
3754         * opts.h (set_option): Update declaration.
3755         (handle_option): Declare.
3756         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
3757         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
3758         * c-opts.c (set_Wimplicit): Delete.
3759         (c_family_lang_mask): New static constant.
3760         (c_common_handle_option): Add argument kind. Use handle_option
3761         instead of set_Wimplicit.
3762         (c_common_post_options): warn_implicit and warn_implicit_int
3763         are disabled by default.
3764         * c-common.c (warn_implicit): Do not define here.
3765         * c-common.h (warn_implicit): Do not declare here.
3766         (c_common_handle_option): Update declaration.
3767         * lto-opts.c (lto_reissue_options): Update call to set_option.
3769 2010-05-06  Richard Guenther  <rguenther@suse.de>
3771         PR tree-optimization/43571
3772         * domwalk.c (walk_dominator_tree): Walk the dominator
3773         sons in more optimal order.
3775 2010-05-06  Richard Guenther  <rguenther@suse.de>
3777         PR tree-optimization/43934
3778         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
3779         (stmt_cost): Likewise.
3780         (extract_true_false_args_from_phi): New helper.
3781         (determine_max_movement): For PHI nodes verify we can hoist them
3782         and compute their cost.
3783         (determine_invariantness_stmt): Handle PHI nodes.
3784         (move_computations_stmt): Likewise.  Hoist PHI nodes in
3785         if-converted form using COND_EXPRs.
3786         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
3787         (tree_ssa_lim): Likewise.
3788         * tree-flow.h (tree_ssa_lim): Adjust prototype.
3789         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
3791 2010-05-06  Richard Guenther  <rguenther@suse.de>
3793         PR tree-optimization/43987
3794         * tree-ssa-structalias.c (could_have_pointers): For possibly
3795         address-taken variables force pointers to be recorded.
3796         (create_variable_info_for_1): Likewise.
3797         (push_fields_onto_fieldstack): Pass in wheter all fields
3798         must have pointers.
3799         (find_func_aliases): Query types instead of vars whether
3800         they contain pointers where appropriate.
3802 2010-05-06  Jan Hubicka  <jh@suse.cz>
3804         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
3805         (record_reference, mark_address, mark_load, mark_store): Record
3806         references.
3807         (record_references_in_initializer): Update call of record_references.
3808         (rebuild_cgraph_edges): Remove all references before rebuiding.
3809         * cgraph.c (cgraph_create_node): Clear ref list.
3810         (cgraph_remove_node): Remove references.
3811         (dump_cgraph_node): Dump references.
3812         (cgraph_clone_node): Clone references.
3813         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
3814         (struct cgraph_node, varpool_node): Add ref_lst.
3815         * ipa-ref.c: New file.
3816         * ipa-ref.h: New file.
3817         * ipa-ref-inline.h: New file.
3818         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
3819         (referenced_from_other_partition_p): New function.
3820         (lto_output_varpool_node): Take set arugment; call
3821         referenced_from_other_partition.
3822         (lto_output_ref): New.
3823         (add_references): New.
3824         (output_refs): New.
3825         (output_cgraph): Compute boundary based on references; output refs.
3826         (output_varpool): Accept cgraph_node_set argument.
3827         (input_ref): New.
3828         (input_refs): New.
3829         (input_cgraph): Call input_refs.
3830         * lto-section-in.c (lto_section_name): Add refs.
3831         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
3832         (ipa-ref.o): New file.
3833         * varpool.c (varpool_node): Clear ipa ref list.
3834         (varpool_remove_node): Remove references.
3835         (dump_varpool_node): Dump references.
3836         (varpool_assemble_decl): Only compile finalized ones.
3837         (varpool_extra_name_alias): Initialize ref list.
3838         * lto-streamer.c (lto-get_section_name): Add .refs section.
3839         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
3840         (referenced_from_other_partition_p): Declared.
3842 2010-05-06  Ira Rosen  <irar@il.ibm.com>
3844         PR tree-optimization/43901
3845         * tree-vect-stmts.c (vectorizable_call): Assert that vector
3846         type is not NULL if it's transformation phase, and return
3847         FALSE if it's analysis.
3848         (vectorizable_conversion, vectorizable_operation,
3849         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
3851 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
3853         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3854         Delete.
3855         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3856         New define.
3857         * config/mips/mips-protos.h
3858         (mips_small_register_classes_for_mode_p): Delete prototype.
3860 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
3862         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
3863         * config/arm/arm.c (multiple_operation_profitable_p,
3864         compute_offset_order): New static functions.
3865         (load_multiple_sequence, store_multiple_sequence): Use them.
3866         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
3867         memory offsets, not register numbers.
3868         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
3870 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
3872         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
3873         (get_pending_sizes, put_pending_size, put_pending_sizes):
3874         Update the uses of pending_sizes.
3875         * c-decl.c (store_parm_decls): Likewise.
3876         * c-tree.h (struct c_arg_info): Likewise.
3877         * tree.h: Update the prototype for get_pending_sizes and
3878         put_pending_sizes.
3880 2010-05-05  Jason Merrill  <jason@redhat.com>
3882         PR debug/43370
3883         * c-common.c (handle_aligned_attribute): Respect
3884         ATTR_FLAG_TYPE_IN_PLACE.
3886         PR testsuite/43758
3887         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
3888         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3889         (TARGET_INITIALIZER): Use it.
3890         * c-common.c (attribute_takes_identifier_p): Call it.
3891         * c-common.h: Update prototype.
3892         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
3893         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3895 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
3897         PR debug/43950
3898         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
3899         DW_ID_down_case for Fortran compilation units.
3901 2010-05-05  Jan Hubicka  <jh@suse.cz>
3903         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
3904         handle aliases.
3906 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
3908         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
3909         a variable-sized RESULT_DECL.
3911 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
3913         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
3915 2010-05-05  Jason Merrill  <jason@redhat.com>
3917         PR c++/43787
3918         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
3919         returns GS_OK.
3920         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
3922 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
3923             Jakub Jelinek  <jakub@redhat.com>
3925         PR debug/43478
3926         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
3927         (dead_debug_init, dead_debug_finish): New functions.
3928         (dead_debug_add, dead_debug_insert_before): Likewise.
3929         (df_note_bb_compute): Initialize a dead_debug object, add dead
3930         debug uses to it, insert debug bind insns before death insns,
3931         reset debug insns that refer to pending uses at the end.
3932         * rtl.h (make_debug_expr_from_rtl): New prototype.
3933         * varasm.c (make_debug_expr_from_rtl): New function.
3935 2010-05-05  Jan Hubicka  <jh@suse.cz>
3937         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
3938         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
3939         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
3940         lto_varpool_encoder_deref, lto_varpool_encoder_size,
3941         lto_varpool_encoder_encode_initializer_p,
3942         lto_set_varpool_encoder_encode_initializer): New functions.
3943         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
3944         call output_varpool.
3945         (input_varpool_node): Do not always set analyzed.
3946         (input_cgraph_1): Return vector of cgraph nodes.
3947         (input_varpool_1): Return vector of varpools.
3948         (input_cgraph): Free the vectors.
3949         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3950         output only initializers needed.
3951         (lto_output): Only call output_cgraph.
3952         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
3953         * lto-section-out.c (lto_new_out_decl_state): Initialize
3954         state->varpool_node_encoder.
3955         * lto-streamer.h (lto_varpool_encoder_d): New.
3956         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
3957         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
3958         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
3959         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
3960         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
3961         Declare.
3962         (output_varpool, input_varpool): Remove declarations.
3964 2010-05-05  Jan Hubicka  <jh@suse.cz>
3966         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
3967         with body can prevail.
3969 2010-05-05  Jan Hubicka  <jh@suse.cz>
3971         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
3972         size.
3974 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3976         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
3978         * gengtype.h (erro_at_line): Constify pos argument.
3980         * gengtype.c: Include hashtab.h.
3981         (enum gc_used): Document GC_MAYBE_POINTED_TO.
3982         (error_at_line): Constify pos argument.
3983         (do_typedef): Initialize p->opt field.
3984         (get_file_gtfilename): Fix comment typo.
3985         (struct walk_type_data): Constify line field.
3986         (get_output_file_for_structure): New function.
3987         (write_local_func_for_structure): Constify orig_s argument.
3988         Use get_output_file_for_structure.
3989         (write_func_for_structure): Use get_output_file_for_structure.
3990         (INDENT): New define.
3991         (dump_pair, dump_type, dump_type_list, dump_typekind)
3992         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
3993         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
3994         functions.
3995         (seen_types): New variable.
3996         (main): New variable do_dump.  Process "-d" command line option.
3997         Call dump_everything if dump requested.
3999 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
4001         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
4002         in a temporary instead of invoking the macro multiple times.
4003         (track_expr_p): Likewise.
4005 2010-05-04  Neil Vachharajani <nvachhar@google.com>
4007         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
4008         per new semantics.
4009         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
4010         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
4011         conditions for printing notes.
4012         * common.opt (-Wcoverage-mismatch): Allow negative, default to
4013         true, update documentation.
4014         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
4016 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
4018         PR c/43981
4019         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
4020         on dimen.
4022 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4024         PR target/43799
4025         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
4026         (*sse_prologue_save_insn1): Likewise.
4027         (SSE prologue save splitter): Likewise.
4029 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4031         * tree.c (free_lang_data_in_one_sizepos): New inline function.
4032         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
4033         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
4034         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
4035         all decls.  Call it on DECL_FIELD_OFFSET of fields.
4036         (find_decls_types_r): Follow DECL_VALUE_EXPR.
4037         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
4039 2010-05-04  Martin Jambor  <mjambor@suse.cz>
4041         * tree-sra.c (build_access_from_expr_1): The first parameter type
4042         changed to simple tree.
4043         (build_access_from_expr): Likewise, gsi parameter was eliminated.
4044         (scan_assign_result): Renamed to assignment_mod_result, enum elements
4045         renamed as well.
4046         (build_accesses_from_assign): Removed all parameters except for a
4047         simple gimple statement.  Now returns a simple bool.
4048         (scan_function): All non-analysis parts moved to separate functions
4049         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
4050         parameters and updated both callers.
4051         (sra_modify_expr): Removed parameter data.
4052         (sra_modify_function_body): New function.
4053         (perform_intra_sra): Call sra_modify_function_body to modify the
4054         function body.
4055         (replace_removed_params_ssa_names): Parameter data changed into
4056         adjustments vector.
4057         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
4058         changed the parameter dont_convert to convert with the opposite
4059         meaning.
4060         (sra_ipa_modify_assign): Parameter data changed into adjustments
4061         vector, return value changed to bool.
4062         (ipa_sra_modify_function_body): New function.
4063         (sra_ipa_reset_debug_stmts): Updated a comment.
4064         (modify_function): Use ipa_sra_modify_function_body to modify function
4065         body.
4067 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4069         PR middle-end/43671
4070         * alias.c (true_dependence): Handle the same VALUE in x and mem.
4071         (canon_true_dependence): Likewise.
4072         (write_dependence_p): Likewise.
4074 2010-05-04  Jan Hubicka  <jh@suse.cz>
4076         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4077         * cgraphbuild.c: Include ipa-utils.h
4078         (record_reference_ctx): New struct.
4079         (record_reference): Simplify to work on initializers; not statements.
4080         (mark_address, mark_load, mark_store): New.
4081         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4082         walk PHI nodes too.
4083         (record_references_in_initializer): Update use of record_reference.
4084         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4085         walk PHI nodes too.
4087 2010-05-04  Jan Hubicka  <jh@suse.cz>
4089         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4090         node will be removed anyway.
4091         (lto_varpool_replace_node): Allow also unanalyzed nodes;
4092         relink aliases of node into prevailing node.
4093         * varpool.c (varpool_remove_node): Remove aliases properly;
4094         when removing node, remove all its aliases too; remove DECL_INITIAL
4095         of removed node; ggc_free the varpool node.
4097 2010-05-04  Richard Guenther  <rguenther@suse.de>
4099         PR tree-optimization/43879
4100         * tree-ssa-structalias.c (alias_get_name): Use
4101         DECL_ASSEMBLER_NAME if available.
4102         (create_function_info_for): Return the varinfo node.
4103         (ipa_pta_execute): Associate same-body aliases and extra names
4104         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
4106 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4108         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4110 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
4112         PR bootstrap/43964
4113         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4114         only if HONOR_REG_ALLOC_ORDER is not defined.
4116 2010-05-04  Richard Guenther  <rguenther@suse.de>
4118         PR tree-optimization/43949
4119         * tree-vrp.c (extract_range_from_binary_expr): Only handle
4120         TRUNC_MOD_EXPR.
4122 2010-04-26  Jason Merrill  <jason@redhat.com>
4124         * c.opt (-fstrict-enums): New.
4125         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4127 2010-05-03  David Ung <davidu@mips.com>
4128             James E. Wilson  <wilson@codesourcery.com>
4130         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4131         emit the trap instruction before the divide for TUNE_74K.
4133 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
4135         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4136         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4137         based on the above, for new target hook.
4139         * hooks.c (hook_bool_mode_true): New generic hook.
4140         * hooks.h (hook_bool_mode_true): Add prototype.
4142         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4143         target hook.
4144         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4145         target hook, set to hook_bool_mode_false.
4146         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4147         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4148         with targetm.small_register_classes_for_mode_p.
4149         (find_reusable_reload): Likewise.
4150         (combine_reloads): Likewise.
4151         * reload1.c (reload_as_needed): Likewise.
4152         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4153         * ifcvt.c (noce_process_if_block, check_cond_move_block,
4154         dead_or_predicable): Likewise.
4155         * regmove.c (optimize_reg_copy_1): Likewise.
4156         * calls.c (prepare_call_address): Likewise.
4157         (precompute_register_parameters): Likewise.
4159         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4160         hook definition.
4161         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4162         implementation of the hook that considers all register classes
4163         small except for SH64.
4164         (sh_override_options): Use the new hook.
4165         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4166         Add prototype.
4168         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4169         hook definition.
4170         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4171         implementation of the hook that considers all register classes
4172         small for THUMB1.
4173         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4174         Add prototype.
4176         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4177         hook definition.
4178         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4179         implementation of the hook that considers all register classes
4180         small for MIPS16.
4181         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4182         Add prototype.
4184         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4185         hook definition.
4186         * config/m32c/m32c.h: Likewise.
4187         * config/pdp11/pdp11.h: Likewise.
4188         * config/avr/avr.h: Likewise.
4189         * config/xtensa/xtensa.h: Likewise.
4190         * config/m68hc11/m68hc11.h: Likewise.
4191         * config/mn10300/mn10300.h: Likewise.
4192         * config/mcore/mcore.h: Likewise.
4193         * config/h8300/h8300.h: Likewise.
4194         * config/bfin/bfin.h: Likewise.
4196         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4197         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4199 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
4201         * double-int.h (tree_to_double_int): Remove macro.
4202         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4203         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4204         (tree_to_double_int): New function.
4205         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4206         Move ...
4207         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4209 2010-05-03  Richard Guenther  <rguenther@suse.de>
4211         PR tree-optimization/43971
4212         * tree-ssa-structalias.c (get_constraint_for_1): Fix
4213         constraints in the !flag_delete_null_pointer_checks case.
4215 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
4217         PR debug/43972
4218         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4219         result mode matches original rtl mode.
4221 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
4223         PR target/43888
4224         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4226 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4228         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4229         when processing flag options.
4231 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4233         * gcov-iov.c (main): Change format string placeholder
4234         from %#08x to 0x%08x.
4235         * genchecksum.c (dosum): Change format string placeholder
4236         from %#02x to 0x%02x.
4238 2010-05-02  Richard Guenther  <rguenther@suse.de>
4240         PR tree-optimization/43879
4241         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4243 2010-05-02  Bruno Haible  <bruno@clisp.org>
4245         * doc/extend.texi (Function Attributes): Fix a typo.
4247 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4249         Revert:
4250         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4251         placeholder from 0x%x to %#x.
4252         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4253         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4254         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4255         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4256         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4257         * config/i386/i386.c (ix86_target_string): Ditto.
4258         * config/i386/i386.c (output_pic_addr_const): Ditto.
4259         (print_operand): Ditto.
4261 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4263         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
4264         placeholder from 0x%x to %#x.
4265         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
4266         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
4267         (ASM_OUTPUT_DEBUG_DATA): Ditto.
4268         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
4269         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
4270         * optc-gen.awk: Ditto.
4271         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
4272         (HOST_WIDE_INT_PRINT_HEX): Ditto.
4273         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
4274         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4276 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
4278         * target.h (struct calls): Add function_value_regno_p field.
4279         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4280         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
4281         * targhooks.c (default_function_value_regno_p): New function.
4282         * targhooks.h (default_function_value_regno_p): Declare function.
4283         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
4284         * builtins.c. (apply_result_size): (Ditto.).
4285         * combine.c. (likely_spilled_retval_p): (Ditto.).
4286         * mode-switching.c. Include 'target.h'.
4287         (create_pre_exit): Use function_value_regno_p hook.
4288         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
4289         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
4290         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
4292         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
4293         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4294         (ix86_function_value_regno_p): Declare as static, change argument
4295         type to const unsigned int.
4296         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4298 2010-05-01  Richard Guenther  <rguenther@suse.de>
4300         PR tree-optimization/43949
4301         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4302         types.
4303         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4305 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
4307         * rtl.h (CONST_DOUBLE_P): Define.
4308         (rtx_to_double_int): Declare.
4309         * emit-rtl.c (rtx_to_double_int): New function.
4310         * dwarf2out.c (insert_double): New function.
4311         (loc_descriptor, add_const_value_attribute): Clean up, use
4312         rtx_to_double_int and insert_double functions.
4314 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
4316         * doc/extend.texi (Inline): Add missing return keyword to examples.
4317         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4318         "command-line".
4320 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
4322         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4323         the variable part of the offset as well.  Use highest_pow2_factor for
4324         all alignment checks.
4326 2010-04-30  Richard Guenther  <rguenther@suse.de>
4328         PR tree-optimization/43879
4329         * tree-ssa-structalias.c (type_could_have_pointers): Functions
4330         can have pointers.
4332 2010-04-30  Jan Hubicka  <jh@suse.cz>
4334         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4335         varpool.
4336         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4338 2010-04-30  Jan Hubicka  <jh@suse.cz>
4340         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4341         New.
4342         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4343         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4344         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4345         cgraph_node_set_needs_ltrans_p): Remove.
4347 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
4349         * sdbout.c: Include vec.h, do not include varray.h.
4350         (deferred_global_decls, sdbout_global_decl,
4351         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4352         * toplev.c: Do not include varray.h.
4353         (dump_memory_report): Do not dump VARRAY statistics.
4354         * gengtype.c (open_base_file): Ignore varray.h.
4355         * Makefile.in: Update for abovementioned changes.
4356         Remove all traces of varray.c and varray.h.
4357         * varray.c: Remove file.
4358         * varray.h: Remove file.
4360 2010-04-30  Jan Hubicka  <jh@suse.cz>
4362         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4363         references.
4365 2010-04-30  Jan Hubicka  <jh@suse.cz>
4367         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4368         needed.
4370 2010-04-30  Richard Guenther  <rguenther@suse.de>
4372         * tree-ssa-structalias.c (get_constraint_for_1): Generate
4373         constraints for CONSTRUCTOR.
4375 2010-04-30  Richard Guenther  <rguenther@suse.de>
4377         PR lto/43946
4378         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4379         first after all lowering passes.
4381 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
4383         * toplev.c: Include varray.h for statistics dumping.
4384         * tree.h: Do not declare varray_head_tag.
4385         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4386         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4387         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4388         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4389         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4390         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4391         c-common.c, c-common.h, reg-stack.c, basic-block.h,
4392         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4393         include varray.h.
4394         * Makefile.in: Update for abovementioned changes.
4396 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
4398         PR debug/43942
4399         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4401 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
4403         * config/picochip/picochip.c (picochip_legitimize_address): Define.
4404         Use this function to do machine-specific conversion.
4405         (picochip_legitimize_reload_address): Likewise.
4406         (picochip_legitimate_address_p): Check valid base register only if
4407         strict.
4408         (picochip_check_conditional_copy): Check for modw only if opnd is
4409         register.
4410         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4411         to call the function in c.
4412         * config/picochip/picochip-protos.h
4413         (picochip_legitimize_reload_address): Define.
4414         * config/picochip/picochip.md (supported_compare1): Define.
4416 2010-04-30  Jan Hubicka  <jh@suse.cz>
4418         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4419         (cgraph_global_info): Remove inlined.
4420         (LTO_cgraph_tag_names): Remove.
4421         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4422         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4423         simplify cgraph tags and document.
4424         (lto_output_node): Use only LTO_cgraph_unavail_node and
4425         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4426         for_functions_valid, global info, process and output flags.
4427         (input_overwrite_node): Initialize estimated stack size and
4428         estimated growth.  Do not read flags we no longer store.
4429         (input_node): Likewise do not read info no longer stored.
4430         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4431         flag.
4433 2010-04-30  Richard Guenther  <rguenther@suse.de>
4435         PR tree-optimization/43879
4436         * tree-ssa-structalias.c (get_constraint_for_1): Properly
4437         handle non-zero initializers.
4439 2010-04-30  Richard Guenther  <rguenther@suse.de>
4441         * builtins.c (fold_builtin_1): Delete free (0).
4443 2010-04-29  Jan Hubicka  <jh@suse.cz>
4445         * gengtype.c (open_base_files): Add lto-streamer.h
4446         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4447         (pass_ipa_cp): GGC collect.
4448         * toplev. (compile_file): Do not output symbols.
4449         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4450         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4451         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4452         * lto-section-in.c: Include ggc.h
4453         (lto_new_in_decl_state): Alloc in GGC.
4454         (lto_delete_in_decl_state): Likewise.
4455         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4456         Collect.
4458 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4460         PR target/42895
4461         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4462         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
4463         (HONOR_REG_ALLOC_ORDER): Describe new macro.
4464         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4465         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4466         account only if HONOR_REG_ALLOC_ORDER is not defined.
4467         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4468         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4470 2010-04-29  Jon Grant  <04@jguk.org>
4472         * collect2.c (vflag): Change type from int to bool.
4473         (debug): Likewise.
4474         (helpflag): New global bool.
4475         (main): Set vflag and debug with boolean, not integer truth values.
4476         Accept new "--help" option and output usage text if found.
4477         * collect2.h (vflag): Update prototype.
4478         (debug): Likewise.
4480 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4482         PR bootstrap/43936
4483         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4485 2010-04-29  Richard Guenther  <rguenther@suse.de>
4487         PR bootstrap/43935
4488         * plugin.h (invoke_plugin_callbacks): Annotate arguments
4489         with ATTRIBUTE_UNUSED.
4491 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4493         PR target/43921
4494         * config/i386/i386.c (get_some_local_dynamic_name): Replace
4495         INSN_P with NONDEBUG_INSN_P.
4496         (distance_non_agu_define): Likewise.
4497         (distance_agu_use): Likewise.
4499 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4501         From Dominique d'Humieres <dominiq@lps.ens.fr>
4502         PR bootstrap/43858
4503         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4504         test_set.
4506 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
4508         * plugin.h (invoke_plugin_callbacks): New inline function.
4509         * plugin.c (flag_plugin_added): New global flag.
4510         (add_new_plugin): Initialize above flag.
4511         (invoke_plugin_callbacks): Rename to ...
4512         (invoke_plugin_callbacks_full): ... this.
4514 2010-04-28  Jan Hubicka  <jh@suse.cz>
4516         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4517         (lto_varpool_replace_node): New.
4518         (lto_symtab_resolve_symbols): Resolve varpool nodes.
4519         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4520         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4521         * cgraph.h (varpool_node_ptr): New type.
4522         (varpool_node_ptr): New vector.
4523         (varpool_node_set_def): New structure.
4524         (varpool_node_set): New type.
4525         (varpool_node_set): New vector.
4526         (varpool_node_set_element_def): New structure.
4527         (varpool_node_set_element, const_varpool_node_set_element): New types.
4528         (varpool_node_set_iterator): New type.
4529         (varpool_node): Add prev pointers, add used_from_other_partition,
4530         in_other_partition.
4531         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4532         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4533         varpool_get_node, varpool_remove_node): Declare.
4534         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4535         varpool_node_set_size): New inlines.
4536         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4537         * tree-pass.h (varpool_node_set_def): Forward declare.
4538         (ipa_opt_pass_d): Summary writting takes vnode sets too.
4539         (ipa_write_optimization_summaries): Update prototype.
4540         * ipa-cp.c (ipcp_write_summary): Update.
4541         * ipa-reference.c (ipa_reference_write_summary): Update.
4542         * lto-cgraph.c (lto_output_varpool_node): New static function.
4543         (output_varpool): New function.
4544         (input_varpool_node): New static function.
4545         (input_varpool_1): New function.
4546         (input_cgraph): Input varpool.
4547         * ipa-pure-const.c (pure_const_write_summary): Update.
4548         * lto-streamer-out.c (lto_output): Update, output varpool too.
4549         (write_global_stream): Kill WPA hack.
4550         (produce_asm_for_decls): Update.
4551         (output_alias_pair_p): Handle variables.
4552         (output_unreferenced_globals): Output only needed partition of varpool.
4553         * ipa-inline.c (inline_write_summary): Update.
4554         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4555         cgraph.
4556         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4557         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4558         varpool_node_set_new, varpool_node_set_add,
4559         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4560         debug_varpool_node_set): New functions.
4561         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4562         (execute_one_pass): Process new decls too.
4563         (ipa_write_summaries_2): Pass around vsets.
4564         (ipa_write_summaries_1): Likewise.
4565         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4566         to add.
4567         (ipa_write_optimization_summaries_1): Pass around vsets.
4568         (ipa_write_optimization_summaries): Likewise.
4569         * varpool.c (varpool_get_node): New.
4570         (varpool_node): Update doubly linked lists.
4571         (varpool_remove_node): New.
4572         (dump_varpool_node): More dumping.
4573         (varpool_enqueue_needed_node): Update doubly linked lists.
4574         (decide_is_variable_needed): Kill ltrans hack.
4575         (varpool_finalize_decl): Kill lto hack.
4576         (varpool_assemble_decl): Skip decls in other partitions.
4577         (varpool_assemble_pending_decls): Update doubly linkes lists.
4578         (varpool_empty_needed_queue): Likewise.
4579         (varpool_extra_name_alias): Likewise.
4580         * lto-streamer.c (lto_get_section_name): Add vars section.
4581         * lto-streamer.h (lto_section_type): Update.
4582         (output_varpool, input_varpool): Declare.
4584 2010-04-28  Mike Stump  <mikestump@comcast.net>
4586         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4588 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4590         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4591         record or union type with RECORD_OR_UNION_TYPE_P predicate.
4592         (lto_input_ts_type_tree_pointers): Likewise.
4593         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4594         (lto_output_ts_type_tree_pointers): Likewise.
4596 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4598         Uniquization of constants at the Tree level
4599         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4600         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4601         bit to the end.
4602         (tree_output_constant_def): Declare.
4603         * gimplify.c (gimplify_init_constructor): When using block copy, first
4604         uniquize the constant constructor on the RHS.
4605         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4606         DECL_IN_CONSTANT_POOL flag.
4607         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4608         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4609         constant pool.
4610         (assemble_variable): Deal with symbols belonging to the tree constant
4611         pool.
4612         (get_constant_section): Add ALIGN parameter and simplify.
4613         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4614         (assemble_constant_contents): Use the expression of the VAR_DECL.
4615         (output_constant_def_contents): Use the alignment of the VAR_DECL.
4616         (tree_output_constant_def): New global function.
4617         (mark_constant): Use the expression of the VAR_DECL.
4618         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4619         its expression.
4620         (output_object_block): Likewise and assemble the expression.
4622 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
4624         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4625         hash_tree, eq_tree): New tree hash table.
4626         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4627         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4628         lto_orig_address_remove): Reimplement.
4630 2010-04-28  Xinliang David Li  <davidxl@google.com>
4632         PR c/42643
4633         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4634         (compute_uninit_opnds_pos): New function.
4635         (is_non_loop_exit_postdominating): New function.
4636         (compute_control_dep_chain): New function.
4637         (find_pdom): New function.
4638         (convert_control_dep_chain_into_preds): New function.
4639         (find_predicates): New function.
4640         (find_control_equiv_block): New function.
4641         (collect_phi_def_edges): New function.
4642         (find_def_preds): New function.
4643         (find_dom): New function.
4644         (dump_predicates): New function.
4645         (get_cmp_code): New function.
4646         (is_value_included_in): New function.
4647         (find_matching_predicate_in_rest_chains): New function.
4648         (use_pred_not_overlap_with_undef_path_pred): New function.
4649         (is_use_properly_guarded): New function.
4650         (normalize_cond_1): New function.
4651         (is_and_or_or): New function.
4652         (normalize_cond): New function.
4653         (is_gcond_subset_of): New function.
4654         (is_subset_of_any): New function.
4655         (is_or_set_subset_of): New function.
4656         (is_and_set_subset_of): New function.
4657         (is_norm_cond_subset_of): New function.
4658         (is_pred_expr_subset_of): New function.
4659         (is_pred_chain_subset_of): New function.
4660         (is_included_in): New function.
4661         (is_superset_of): New function.
4662         (find_uninit_use): New function.
4663         (warn_uninitialized_phi): New function.
4664         (compute_possibly_undefined_names): New function.
4665         (ssa_undefined_value_p): New function.
4666         (execute_late_warn_uninitialized): New function.
4667         * tree-ssa.c (ssa_undefined_value_p): Removed.
4668         (warn_uninit): Changed to extern.
4669         (warn_uninitialized_phi): Removed.
4670         (warn_uninitialized_vars): Changed to extern.
4671         (execute_late_warn_uninitialized): Removed
4672         * tree-flow.h: Add new prototypes.
4673         * timevar.def: Add new time variable.
4674         * Makefile.in: Add new build file.
4676 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
4678         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4679         type if available.
4681 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4683         PR target/22224
4684         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4686 2010-04-28  Martin Jambor  <mjambor@suse.cz>
4688         * cgraph.h (struct cgraph_node): New field indirect_calls.
4689         (struct cgraph_indirect_call_info): New type.
4690         (struct cgraph_edge): Removed field indirect_call. New fields
4691         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4692         (cgraph_create_indirect_edge): Declare.
4693         (cgraph_make_edge_direct): Likewise.
4694         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4695         * ipa-prop.h (struct ipa_param_call_note): Removed.
4696         (struct ipa_node_params): Removed field param_calls.
4697         (ipa_create_all_structures_for_iinln): Declare.
4698         * cgraph.c: Described indirect edges and uids in initial comment.
4699         (cgraph_add_edge_to_call_site_hash): New function.
4700         (cgraph_edge): Search also among the indirect edges, use
4701         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4702         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4703         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4704         site hash.
4705         (initialize_inline_failed): Assign a reason to indirect edges.
4706         (cgraph_create_edge_1): New function.
4707         (cgraph_create_edge): Moved some functionality to
4708         cgraph_create_edge_1.
4709         (cgraph_create_indirect_edge): New function.
4710         (cgraph_edge_remove_callee): Add an assert checking for
4711         non-indirectness.
4712         (cgraph_edge_remove_caller): Special-case indirect edges.
4713         (cgraph_remove_edge): Likewise.
4714         (cgraph_set_edge_callee): New function.
4715         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4716         (cgraph_make_edge_direct): New function.
4717         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4718         the declaration of the call statement matches.
4719         (cgraph_node_remove_callees): Special-case indirect edges.
4720         (cgraph_clone_edge): Likewise.
4721         (cgraph_clone_node): Clone also the indirect edges.
4722         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4723         indirect_call, dump count of indirect_calls edges.
4724         * ipa-prop.c (iinlining_processed_edges): New variable.
4725         (ipa_note_param_call): Create indirect edges instead of
4726         creating notes.  New parameter node.
4727         (ipa_analyze_call_uses): New parameter node, pass it on to
4728         ipa_note_param_call.
4729         (ipa_analyze_stmt_uses): Likewise.
4730         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4731         (print_edge_addition_message): Work on edges rather than on notes.
4732         (update_call_notes_after_inlining): Likewise, renamed to
4733         update_indirect_edges_after_inlining.
4734         (ipa_create_all_structures_for_iinln): New function.
4735         (ipa_free_node_params_substructures): Do not free notes.
4736         (ipa_edge_duplication_hook): Propagate bits within
4737         iinlining_processed_edges bitmap.
4738         (ipa_node_duplication_hook): Do not duplicate notes.
4739         (free_all_ipa_structures_after_ipa_cp): Renamed to
4740         ipa_free_all_structures_after_ipa_cp.
4741         (free_all_ipa_structures_after_iinln): Renamed to
4742         ipa_free_all_structures_after_iinln.
4743         (ipa_write_param_call_note): Removed.
4744         (ipa_read_param_call_note): Removed.
4745         (ipa_write_indirect_edge_info): New function.
4746         (ipa_read_indirect_edge_info): Likewise.
4747         (ipa_write_node_info): Do not stream notes, do stream information
4748         in indirect edges.
4749         (ipa_read_node_info): Likewise.
4750         (lto_ipa_fixup_call_notes): Removed.
4751         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
4752         * ipa-inline.c (pass_ipa_inline): Likewise.
4753         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
4754         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
4755         * tree-inline.c (copy_bb): Removed an unnecessary double check for
4756         is_gimple_call.
4757         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
4758         edges.
4759         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
4760         (output_cgraph): Stream also indirect edges.
4761         (lto_output_edge): Added capability to stream indirect edges.
4762         (input_edge): Likewise.
4763         (input_cgraph_1): Likewise.
4764         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
4765         of indirect edges.
4767 2010-04-28  Richard Guenther  <rguenther@suse.de>
4769         PR tree-optimization/43879
4770         PR tree-optimization/43909
4771         * tree-ssa-structalias.c (struct variable_info): Add
4772         only_restrict_pointers flag.
4773         (new_var_info): Initialize it.  Increment stats.total_vars here.
4774         (create_function_info_for): Do not increment stats.total_vars here.
4775         (get_function_part_constraint): Fix build with C++.
4776         (insert_into_field_list): Remove.
4777         (push_fields_onto_fieldstack): Properly merge fields.
4778         (create_variable_info_for): Split and simplify.
4779         (create_variable_info_for_1): New piece.
4780         (intra_create_variable_infos): Properly make restrict constraints
4781         from parameters.
4783 2010-04-28  Richard Guenther  <rguenther@suse.de>
4785         PR c++/43880
4786         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
4788 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4789             Jan Hubicka <hubicka@ucw.cz>
4791         * doc/invoke.texi (-Wsuggest-attribute=const,
4792         -Wsuggest-attribute=pure): Document.
4793         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
4794         (function_always_visible_to_compiler_p,
4795         suggest_attribute, warn_function_pure, warn_function_const):
4796         New functions.
4797         (check_call): Improve debug info.
4798         (analyze_function): Do not check availability.
4799         (add_new_function): Check availability.
4800         (propagate): Output warnings.
4801         (skip_function_for_local_pure_const): New function.
4802         (local_pure_const): Use it; output warnings.
4803         * common.opt (Wsuggest-attribute=const,
4804         Wsuggest-attribute=pure): New.
4806 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
4808         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
4809         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
4810         or DW_CFA_def_cfa_offset{,_sf}.
4812 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4814         * tree.h: Fix truncated long macros.
4816 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
4818         * collect2.c (TARGET_64BIT): Redefine to target's default.
4819         * tlink.c: Likewise.
4820         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
4821         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
4822         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
4823         for underscoring __USER_LABEL_PREFIX__.
4824         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
4825         (SUB_LINK_ENTRY32): New.
4826         (SUB_LINK_ENTRY64): New.
4827         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
4828         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
4829         (SUB_LINK_ENTRY64): New.
4830         (SUB_LINK_ENTRY): New.
4831         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
4832         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
4833         x64 target is choosen.
4834         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
4835         * configure: Regenerated.
4836         * configure.ac (leading-mingw64-underscores): Option added.
4838 2010-04-27  Jan Hubicka  <jh@suse.cz>
4840         * doc/invoke.texi (-fipa-profile): Document.
4841         * opts.c (decode_options): Enable ipa-profile at -O1.
4842         * timevar.def (TV_IPA_PROFILE): Define.
4843         * common.opt (fipa-profile): Add.
4844         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
4845         flag for clones.
4846         (cgraph_propagate_frequency): Handle only local ones.
4847         * tree-pass.h (pass_ipa_profile): Declare.
4848         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
4849         (pass_ipa_profile): Use TV_IPA_PROFILE.
4850         * ipa.c (ipa_profile): New function.
4851         (gate_ipa_profile): Likewise.
4852         (pass_ipa_profile): New global variable.
4853         * passes.c (pass_ipa_profile): New.
4855 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
4857         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
4859 2010-04-27  Martin Jambor  <mjambor@suse.cz>
4861         PR middle-end/43812
4862         * ipa.c (dissolve_same_comdat_group_list): New function.
4863         (function_and_variable_visibility): Call
4864         dissolve_same_comdat_group_list when comdat group contains external or
4865         newly local nodes.
4866         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
4867         lists are circular and that they contain only DECL_ONE_ONLY nodes.
4869 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4871         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
4872         (const_hash_1) <VECTOR_CST>: New case.
4873         (compare_constant) <VECTOR_CST>: Likewise.
4874         <ADDR_EXPR>: Deal with LABEL_REFs.
4875         (copy_constant) <VECTOR_CST>: New case.
4877 2010-04-27  Jan Hubicka  <jh@suse.cz>
4879         * cgraph.c (cgraph_propagate_frequency): New function.
4880         * cgraph.h (cgraph_propagate_frequency): Declare.
4881         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
4882         cgraph_propagate_frequency.
4884 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
4886         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
4888 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
4890         PR target/40657
4891         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
4892         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
4893         here to determine which regs to push and how much stack to reserve.
4895 2010-04-27  Jie Zhang  <jie@codesourcery.com>
4897         * doc/gimple.texi (gimple_statement_with_ops): Remove
4898         addresses_taken field.
4899         (gimple_statement_with_memory_ops): Likewise.
4901 2010-04-27  Jan Hubicka  <jh@suse.cz>
4903         * tree-inline.c (eni_inlining_weights): Remove.
4904         (estimate_num_insns): Special case more builtins.
4906 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
4908         PR c/32207
4909         * c-typeck.c (build_binary_op): Move forward check for comparison
4910         pointer with null pointer constant and adjust the diagnostic message.
4912 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
4914         PR lto/42776
4915         * configure.ac (gcc_cv_as_section_has_align): Set if installed
4916         binutils supports extended .section directive needed by LTO, or
4917         warn if older binutils found.
4918         (LTO_BINARY_READER): New AC_SUBST'd variable.
4919         (LTO_USE_LIBELF): Likewise.
4920         * gcc/config.gcc (lto_binary_reader): New target-specific configure
4921         variable.
4922         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
4923         (LTO_USE_LIBELF): Likewise.
4924         * configure: Regenerate.
4926         * collect2.c (is_elf): Rename from this ...
4927         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
4928          object files in addition to ELF-formatted ones.
4929         (scan_prog_file): Caller updated.  Also allow for LTO info marker
4930         symbol to be prefixed or not by an extra underscore.
4932         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
4933         * config/i386/winnt.c: Also #include lto-streamer.h
4934         (i386_pe_asm_named_section): Specify 1-byte section alignment for
4935         LTO named sections.
4936         (i386_pe_asm_output_aligned_decl_common): Add comment.
4937         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
4939 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
4941         PR target/43889
4942         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
4943         Add missing earlyclobber for second alternative.
4945 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
4947         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
4948         bits for artificial defs at the top of the block.
4949         * fwprop.c (single_def_use_enter_block): Don't call it.
4951 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
4953         PR 43715
4954         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
4955         instead of "$gcc_cv_objdump -T".
4956         Use "-undefined dynamic_lookup" on darwin.
4957         * gcc/configure: Regenerate.
4959 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
4961         PR c/43893
4962         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
4964 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
4966         * c-parser.c (struct c_token): Move location field up.
4967         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
4968         (struct c_declspecs): Convert typespec_word, storage_class, and
4969         default_int_p into bitfields.
4970         (struct c_declarator): Move loc field up.
4972 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
4974         * cfgloop.h (struct loop): Move can_be_parallel field up.
4975         * ipa-prop.h (struct ip_node_params): Move bitfields up.
4976         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
4977         down.
4978         (struct iv_cand): Convert pos field into a bitfield.
4979         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
4980         field up.
4981         (struct _stmt_vec_info): Shuffle fields for better packing.
4983 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
4985         * varasm.c (IN_NAMED_SECTION): Remove guard.
4986         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
4987         (IN_NAMED_SECTION_P): ...this.
4988         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
4989         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4991 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
4993         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
4994         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
4995         of shadowing it.  Fix comments.
4997 2010-04-26  Jan Hubicka  <jh@suse.cz>
4999         * cgraph.c (cgraph_create_node): Set node frequency to normal.
5000         (cgraph_clone_node): Copy function frequency.
5001         * cgraph.h (node_frequency): New enum
5002         (struct cgraph_node): Add.
5003         * final.c (rest_of_clean_state): Update.
5004         * lto-cgraph.c (lto_output_node): Output node frequency.
5005         (input_overwrite_node): Input node frequency.
5006         * tre-ssa-loop-ivopts (computation_cost): Update.
5007         * lto-streamer-out.c (output_function): Do not output function
5008         frequency.
5009         * predict.c (maybe_hot_frequency_p): Update and handle functions
5010         executed once.
5011         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
5012         attribute lookup.
5013         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
5014         (compute_function_frequency): Set noreturn functions to be executed
5015         once.
5016         (choose_function_section): Update.
5017         * lto-streamer-in.c (input_function): Do not input function frequency.
5018         * function.c (allocate_struct_function): Do not initialize function
5019         frequency.
5020         * function.h (function_frequency): Remove.
5021         (struct function): Remove function frequency.
5022         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
5023         (try_update): Update.
5024         * tree-inline.c (initialize_cfun): Do not update function frequency.
5025         * passes.c (pass_init_dump_file): Update.
5026         * i386.c (ix86_compute_frame_layout): Update.
5027         (ix86_pad_returns): Update.
5029 2010-04-26  Jie Zhang  <jie@codesourcery.com>
5031         PR tree-optimization/43833
5032         * tree-vrp.c (range_int_cst_p): New.
5033         (range_int_cst_singleton_p): New.
5034         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
5035         when both operands are constants.  Use range_int_cst_p in
5036         BIT_IOR_EXPR case.
5038 2010-04-26  Jan Hubicka  <jh@suse.cz>
5040         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
5042 2010-04-26  Richard Guenther  <rguenther@suse.de>
5044         PR lto/43080
5045         * gimple.c (gimple_decl_printable_name): Deal gracefully
5046         with a NULL DECL_NAME.
5048 2010-04-26  Richard Guenther  <rguenther@suse.de>
5050         PR lto/42425
5051         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
5052         if emitting debug information and it is either a function
5053         or a namespace decl.
5055 2010-04-26  Ira Rosen  <irar@il.ibm.com>
5057         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
5058         determine if the statement is vectorizable, and a macro to access it.
5059         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5060         Skip statements that can't be vectorized. If the analysis fails,
5061         mark the statement as unvectorizable if vectorizing basic block.
5062         (vect_compute_data_refs_alignment): Likewise.
5063         (vect_verify_datarefs_alignment): Skip statements marked as
5064         unvectorizable. Add print.
5065         (vect_analyze_group_access): Skip statements that can't be
5066         vectorized. If the analysis fails, mark the statement as
5067         unvectorizable if vectorizing basic block.
5068         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
5069         * tree-vect-stmts.c (vectorizable_store): Fix the number of
5070         generated stmts for SLP.
5071         (new_stmt_vec_info): Initialize the new field.
5072         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
5073         statements marked as unvectorizable.
5075 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
5077         * c-common.c (flag_isoc1x): New.
5078         (flag_isoc99): Update comment.
5079         * c-common.h (flag_isoc1x): New.
5080         (flag_isoc99): Update comment.
5081         * c-cppbuiltin.c (builtin_define_float_constants): Also define
5082         __<type>_DECIMAL_DIG__.
5083         * c-opts.c (set_std_c1x): New.
5084         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5085         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5086         * c.opt (-std=c1x, -std=gnu1x): New options.
5087         * doc/cpp.texi: Mention -std=c1x.
5088         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5089         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5090         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5091         * doc/standards.texi: Mention C1X.
5092         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5093         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5094         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5095         Define for C1X.
5097 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
5099         * config/i386/gmon-sol2.c (_mcleanup): Change format string
5100         placeholder from 0x%x to %#x.
5101         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5102         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5103         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5104         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5105         * config/i386/i386.c (ix86_target_string): Ditto.
5106         (output_pic_addr_const): Ditto.
5107         (print_operand): Ditto.
5109 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
5111         * combine.c (find_split_point): Add third argument.  Use it
5112         to find nested multiply-accumulate instructions.  Adjust calls.
5113         (try_combine): Adjust call to find_split_point.
5115 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
5117         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5119 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
5121         PR tree-optimization/41442
5122         * fold-const.c (merge_truthop_with_opposite_arm): New function.
5123         (fold_binary_loc): Call it.
5125 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5127         * toplev.c (general_init): Set default for fdiagnostics-show-option.
5128         * opts.c (common_handle_option): Allow disabling it.
5129         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5131 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5133         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5134         between modes if both types are integral.
5136 2010-04-23  Richard Guenther  <rguenther@suse.de>
5138         PR tree-optimization/43572
5139         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5141 2010-04-23  Richard Guenther  <rguenther@suse.de>
5143         PR lto/43455
5144         * tree-inline.c (tree_can_inline_p): Also check compatibility
5145         of return types.
5147 2010-04-23  Martin Jambor  <mjambor@suse.cz>
5149         PR tree-optimization/43846
5150         * tree-sra.c (struct access): New flag grp_assignment_read.
5151         (build_accesses_from_assign): Set grp_assignment_read.
5152         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5153         (enum mark_read_status): New type.
5154         (analyze_access_subtree): Propagate grp_assignment_read, create
5155         accesses also if both direct_read and root->grp_assignment_read.
5157 2010-04-23  Martin Jambor  <mjambor@suse.cz>
5159         PR middle-end/43835
5160         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5161         function does not have type attributes.
5163 2010-04-23  Richard Guenther  <rguenther@suse.de>
5165         PR lto/42653
5166         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5167         of FUNCTION_DECLs.
5169 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5171         * sese.h (create_if_region_on_edge): Remove.
5173         * sese.c (create_if_region_on_edge): Make static.
5175         * tree-inline.c: Do not include ggc.h.
5177         * expr.c: Do not include ggc.h.
5179         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5180         dependencies.
5182 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5184         PR target/43744
5185         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5186         in the middle of insns for casesi_worker_2.
5188 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
5190         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5192 2010-04-22  Ira Rosen  <irar@il.ibm.com>
5194         PR tree-optimization/43842
5195         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5196         loop unrolling in update of exit phis. Fix comment.
5197         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5198         least two reduction statements in the loop before starting SLP
5199         analysis.
5201 2010-04-22  Nick Clifton  <nickc@redhat.com>
5203         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5205 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
5207         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5208         to simplify a + ~a.
5210 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5212         * tree-parloops.c (loop_parallel_p): New argument
5213         parloop_obstack.  Pass it down.
5214         (parallelize_loops): New variable parloop_obstack.  Initialize it,
5215         pass it down, free it.
5217         * tree-loop-linear.c (linear_transform_loops): Pass down
5218         lambda_obstack.
5220         * tree-data-ref.h (lambda_compute_access_matrices): New argument
5221         of type struct obstack *.
5223         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5224         scratch_obstack.  Initialize it, pass down, free it.
5226         * lambda.h (lambda_loop_new): Remove.
5227         (lambda_matrix_new, lambda_matrix_inverse)
5228         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5229         argument of type struct obstack *.
5231         * lambda-trans.c (lambda_trans_matrix_new): New argument
5232         lambda_obstack.  Pass it down, use obstack allocation for ret.
5233         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
5234         it down.
5236         * lambda-mat.c (lambda_matrix_get_column)
5237         (lambda_matrix_project_to_null): Remove.
5238         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
5239         allocation for mat.
5240         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5241         lambda_obstack.
5243         * lambda-code.c (lambda_loop_new): New function.
5244         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5245         (lambda_compute_auxillary_space, lambda_compute_target_space)
5246         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5247         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5248         (build_access_matrix): New argument lambda_obstack.  Use obstack
5249         allocation for am.
5250         (lambda_compute_step_signs, lambda_compute_access_matrices): New
5251         argument lambda_obstack.  Pass it down.
5253 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5255         * optabs.h (expand_widening_mult): Declare.
5257 2010-04-22  Richard Guenther  <rguenther@suse.de>
5259         PR tree-optimization/43845
5260         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5261         lookup the CALL_EXPR function and arguments.
5263 2010-04-22  Nick Clifton  <nickc@redhat.com>
5265         * config/stormy16/stormy16.c
5266         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
5267         * config/stormy16/stormy16.h: Tidy up formatting.
5268         (DONT_USE_BUILTIN_SETJMP): Remove definition.
5269         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
5270         (ineqbranchsi): Delete pattern.
5271         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
5272         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
5273         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
5274         stormy16-lib2-ucmpsi2.c.
5276 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5278         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
5279         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
5280         extra set merge_set_noclobber, and use it to relax the final test
5281         slightly.
5282         * df.h (df_simulate_find_noclobber_defs): Declare.
5283         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
5284         conditional defs.
5285         (df_simulate_find_noclobber_defs): New function.
5287 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
5289         * config/i386/i386.md: Use {} around multi-line preparation statements.
5291 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5293         * c-tree.h (push_init_level, pop_init_level, set_init_index)
5294         (process_init_element): New argument of type struct obstack *.
5296         * c-typeck.c (push_init_level, pop_init_level, set_designator)
5297         (set_init_index, set_init_label, set_nonincremental_init)
5298         (set_nonincremental_init_from_string, find_init_member)
5299         (output_init_element, output_pending_init_elements)
5300         (process_init_element): New argument braced_init_obstack.  Pass it
5301         down.
5302         (push_range_stack, add_pending_init): New argument
5303         braced_init_obstack.  Use obstack allocation.
5305         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5306         braced_init_obstack.  Pass it down.
5307         (c_parser_braced_init): New variables ret, braced_init_obstack.
5308         Initialize obstack, pass it down and finally free it.
5310 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5312         PR middle-end/29274
5313         * tree-pass.h (pass_optimize_widening_mul): Declare.
5314         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5315         gate_optimize_widening_mul): New static functions.
5316         (pass_optimize_widening_mul): New.
5317         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5318         <case MULT_EXPR>: Remove support for widening multiplies.
5319         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5320         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5321         simplify_gen_unary rather than directly building extensions.
5322         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5323         WIDEN_MULT_EXPR.
5324         * expmed.c (expand_widening_mult): New function.
5325         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5327 2010-04-21  Jan Hubicka  <jh@suse.cz>
5329         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5330         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5331         * lto-wpa-fixup.c: Remove.
5332         * Makefile.in (lto-wpa-fixup.o): Remove.
5333         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5334         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5335         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5337 2010-04-21  Jan Hubicka  <jh@suse.cz>
5339         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5340         add write_optimization_summary, read_optimization_summary.
5341         (ipa_write_summaries_of_cgraph_node_set): Remove.
5342         (ipa_write_optimization_summaries): Declare.
5343         (ipa_read_optimization_summaries): Declare.
5344         * ipa-cp.c (pass_ipa_cp): Update.
5345         * ipa-reference.c (pass_ipa_reference): Update.
5346         * ipa-pure-const.c (pass_ipa_pure_const): Update.
5347         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5348         Update.
5349         * ipa-inline.c (pass_ipa_inline): Update.
5350         * ipa.c (pass_ipa_whole_program): Update.
5351         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5352         * passes.c (ipa_write_summaries_1): Do not test wpa.
5353         (ipa_write_optimization_summaries_1): New.
5354         (ipa_write_optimization_summaries): New.
5355         (ipa_read_summaries): Do not test ltrans.
5356         (ipa_read_optimization_summaries_1): New.
5357         (ipa_read_optimization_summaries): New.
5359 2010-04-21  Jan Hubicka  <jh@suse.cz>
5361         * lto-cgraph.c (lto_output_node): Do not output comdat groups
5362         for boundary nodes.
5363         (output_cgraph): Do not arrange comdat groups for boundary nodes.
5365 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5367         PR debug/40040
5368         * dwarf2out.c (add_name_and_src_coords_attributes): Add
5369         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5371 2010-04-21  Jan Hubicka  <jh@suse.cz>
5373         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5375 2010-04-21  Jan Hubicka  <jh@suse.cz>
5377         * varpool.c (decide_is_variable_needed): Variable is always needed
5378         during ltrans.
5380 2010-04-21  Jan Hubicka  <jh@suse.cz>
5382         * opts.c (decode_options): Enable pure-const pass for whopr.
5384 2010-04-21  Jan Hubicka  <jh@suse.cz>
5386         * cgraph.c (dump_cgraph_node): Dump also assembler name.
5387         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5388         at WPA dumping.
5389         (cgraph_decide_inlining): Do not expect callee to be removed in all
5390         cases.
5392 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
5394         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5396 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5398         * config/i386/i386.md (x86_shrd): Add athlon_decode and
5399         amdfam10_decode attributes.
5401 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5403         PR middle-end/43570
5404         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5405         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5406         (lower_copyprivate_clauses): Use private var in outer
5407         context instead of original var.  Make sure the types
5408         are correct for VLAs.
5410 2010-04-21  Richard Guenther  <rguenther@suse.de>
5412         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5413         to non-pointer objects.
5415 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5417         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
5418         last chain entry if it starts with the still current label.
5419         (add_location_or_const_value_attribute): Check that
5420         loc_list->first->next is NULL instead of comparing ->first with ->last.
5421         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5422         to add_var_loc_to_decl.
5424         * dwarf2out.c (output_call_frame_info): For dw_cie_version
5425         >= 4 add also address size and segment size fields into CIE header.
5427         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5428         long as address size is the same as sizeof (void *) and
5429         segment size is 0.
5430         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
5431         address size or segment size is unexpected, return DW_EH_PE_omit.
5432         (classify_object_over_fdes): If get_cie_encoding returned
5433         DW_EH_PE_omit, return -1.
5434         (init_object): If classify_object_over_fdes returned -1,
5435         pretend there were no FDEs at all.
5437 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5439         * config/i386/i386.md (bswap<mode>2): Macroize expander from
5440         bswap{si,di}2 using SWI48 mode iterator.
5441         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5442         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
5443         set modrm attribute of bswap insn to 0 and remove length attribute.
5444         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5445         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
5446         set mode attribute to <MODE> and remove length attribute.
5448 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
5450         PR rtl-optimization/43520
5451         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5452         zero available registers.
5454 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5456         * builtins.c (fold_builtin_cproj): Fold more cases.
5458 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5460         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5461         (fold_builtin_1): Fold builtin cproj.
5462         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5463         Use ATTR_CONST_NOTHROW_LIST.
5465 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
5467         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5468         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
5469         ffsi2_no_cmove for !TARGET_CMOVE.
5470         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
5471         (ffssi2): Remove expander.
5472         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5473         mode iterator.
5474         (ctz<mode>2): Ditto from ctz{si,di}2.
5475         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5476         mode iterator.
5477         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5478         mode iterator.
5480 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5482         * dwarf2out.c (AT_linkage_name): Define.
5483         (clone_as_declaration): Handle DW_AT_linkage_name.
5484         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5485         of DW_AT_MIPS_linkage_name.
5486         (move_linkage_attr): Likewise.
5487         (dwarf2out_finish): Likewise.
5489 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
5491         PR middle-end/41952
5492         * fold-const.c (fold_comparison): New folding rule.
5494 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
5496         * double-int.h (double_int_setbit): Declare.
5497         * double-int.c (double_int_setbit): New function.
5498         * rtl.h (immed_double_int_const): Declare.
5499         * emit-rtl.c (immed_double_int_const): New function.
5500         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5501         and immed_double_int_const functions.
5502         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5503         expand_copysign_bit):  (Ditto.).
5504         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5505         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5506         * dojump.c (prefer_and_bit_test): (Ditto.).
5507         * expr.c (convert_modes, reduce_to_bit_field_precision,
5508         const_vector_from_tree): (Ditto.).
5509         * expmed.c (mask_rtx, lshift_value): (Ditto.).
5511 2010-04-20  Jan Hubicka  <jh@suse.cz>
5513         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5514         (dump_cgraph_node): Dump new flags.
5515         * cgraph.h (struct cgraph_node): Add flags
5516         reachable_from_other_partition and in_other_partition.
5517         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5518         other partition can not be removed.
5519         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5520         the other partition must be output; silence sanity checking on
5521         leaking functions bodies from other paritition.
5522         * lto-cgraph.c (reachable_from_other_partition_p): New function.
5523         (lto_output_node): Output new flags; do not sanity check that inline
5524         clones are output; drop lto_forced_extern_inline_p code; do not mock
5525         visibility flags at partition boundaries.
5526         (add_node_to): New function.
5527         (output_cgraph): Use it to sort functions so masters appear before
5528         clones.
5529         (input_overwrite_node): Input new flags.
5530         * passes.c (ipa_write_summaries): Do not call
5531         lto_new_extern_inline_states.
5532         * lto-section-out.c (forced_extern_inline,
5533         lto_new_extern_inline_states lto_delete_extern_inline_states,
5534         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5535         * lto-streamer.h (lto_new_extern_inline_states,
5536         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5537         lto_forced_extern_inline_p): Kill.
5539 2010-04-20  Richard Guenther  <rguenther@suse.de>
5541         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5542         from vars that can have pointers.
5543         (process_constraint): Dump useless constraints.
5545 2010-04-20  Richard Guenther  <rguenther@suse.de>
5547         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5548         (dump_sa_points_to_info): Remove asserts.
5549         (init_base_vars): nothing_id isn't an escape point nor does it
5550         have pointers.
5552 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5554         * tree.h (TYPE_REF_IS_RVALUE): Define.
5555         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5556         should_move_die_to_comdat, prune_unused_types_walk): Handle
5557         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5558         (modified_type_die, gen_reference_type_die): Emit
5559         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5560         if TYPE_REF_IS_RVALUE and -gdwarf-4.
5562 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5564         PR target/43635
5565         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5566         calls for -fpic -m31 if they have been sibcall optimized.
5568 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
5570         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5571         ar.lc fixed and call-used.
5573         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5575 2010-04-19  Jan Hubicka  <jh@suse.cz>
5577         * opts.c (decode_options): Disable whpr incompatible passes.
5578         * lto/lto.c (lto_1_to_1_map): Skip clones.
5579         (read_cgraph_and_symbols): Do not mark everything as needed.
5580         (do_whole_program_analysis): Do map only after optimizing;
5581         set proper cgraph_state; use passmanager.
5583 2010-04-19  DJ Delorie  <dj@redhat.com>
5585         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5586         POINTER_PLUS_EXPR and fix them.
5588 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
5590         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5591         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5592         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5593         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5594         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5595         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5596         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5597         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5598         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5599         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5600         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5602 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
5604         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5605         (check_cond_move_block): Likewise.
5606         (cond_move_process_if_block): Likewise.
5607         (noce_find_if_block): Improve formatting.
5608         (find_if_header): Pass 0 to memset and tweak conditions.
5609         (cond_exec_find_if_block): Fix long lines and tweak conditions.
5611 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5613         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5614         for -gdwarf-4.
5616         PR middle-end/43337
5617         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5618         with non-local decl doesn't need chain.
5620 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5622         * ira-color.c (allocno_reload_assign): Avoid accumulating
5623         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5625 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5627         * gimple.h (create_tmp_reg): Declare.
5628         * gimplify.c (create_tmp_reg): New function.
5629         (gimplify_return_expr): Use create_tmp_reg.
5630         (gimplify_omp_atomic): Likewise.
5631         (gimple_regimplify_operands): Likewise.
5632         * tree-dfa.c (make_rename_temp): Likewise.
5633         * tree-predcom.c (predcom_tmp_var): Likewise.
5634         (reassociate_to_the_same_stmt): Likewise.
5635         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5636         (get_replaced_param_substitute): Likewise.
5637         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5638         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5639         * tree-ssa-pre.c (get_representative_for): Likewise.
5640         (create_expression_by_pieces): Likewise.
5641         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5642         (create_tailcall_accumulator): Likewise.
5644 2010-04-19  Martin Jambor  <mjambor@suse.cz>
5646         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5647         new_stmt.
5648         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5650 2010-04-19  Richard Guenther  <rguenther@suse.de>
5652         PR tree-optimization/43796
5653         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5654         from SCEV in the lattice.
5655         (vrp_visit_phi_node): Dump change.
5657 2010-04-19  Richard Guenther  <rguenther@suse.de>
5659         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5660         * configure: Re-generated.
5662 2010-04-19  Richard Guenther  <rguenther@suse.de>
5664         PR tree-optimization/43783
5665         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5666         constant ARRAY_REF operands two and three if possible.
5668 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
5670         PR target/43766
5671         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5673 2010-04-19  Jie Zhang  <jie@codesourcery.com>
5675         PR target/43662
5676         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5678 2010-04-19  Ira Rosen  <irar@il.ibm.com>
5680         PR tree-optimization/37027
5681         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5682         and macro to access it.
5683         (vectorizable_reduction): Add argument.
5684         (vect_get_slp_defs): Likewise.
5685         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5686         statements for possible use in SLP.
5687         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5688         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5689         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5690         add new argument.
5691         (vectorizable_reduction): Likewise.
5692         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5693         vect_get_slp_defs.
5694         (vectorizable_type_demotion, vectorizable_type_promotion,
5695         vectorizable_store): Likewise.
5696         (vect_analyze_stmt): Update call to vectorizable_reduction.
5697         (vect_transform_stmt): Likewise.
5698         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5699         (vect_build_slp_tree): Fix indentation. Check that there are no loads
5700         from different interleaving chains in same node.
5701         (vect_slp_rearrange_stmts): New function.
5702         (vect_supported_load_permutation_p): Allow load permutations for
5703         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5704         inside SLP nodes if necessary.
5705         (vect_analyze_slp_instance): Handle reductions.
5706         (vect_analyze_slp): Try to build SLP instances originating from groups
5707         of reductions.
5708         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5709         (vect_get_constant_vectors): Create initial vectors for reductions
5710         according to reduction code. Add new argument.
5711         (vect_get_slp_defs): Add new argument, pass it to
5712         vect_get_constant_vectors.
5713         (vect_schedule_slp_instance): Remove SLP tree root statements.
5715 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
5717         * tree.h (ENUM_IS_SCOPED): Define.
5718         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5719         for ENUM_IS_SCOPED enums.
5721 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5723         * fold-const.c (fold_comparison): Use ssizetype.
5724         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5725         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5726         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5727         * tree-object-size.c (compute_object_sizes): Use size_type_node.
5729         * tree.h (initialize_sizetypes): Remove parameter.
5730         (build_common_tree_nodes): Remove second parameter.
5731         * stor-layout.c (initialize_sizetypes): Remove parameter.
5732         Always create an unsigned type.
5733         (set_sizetype): Assert that the passed type is unsigned and simplify.
5734         * tree.c (build_common_tree_nodes): Remove second parameter.
5735         Adjust call to initialize_sizetypes.
5736         * c-decl.c (c_init_decl_processing): Remove second argument in call to
5737         build_common_tree_nodes.
5739 2010-04-18  Matthias Klose  <doko@ubuntu.com>
5741         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5743 2010-04-18  Ira Rosen  <irar@il.ibm.com>
5745         PR tree-optimization/43771
5746         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
5747         load permutation doesn't have gaps.
5749 2010-04-18  Jan Hubicka  <jh@suse.cz>
5751         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
5752         (sse_prologue_save_insn expander): Use new pattern.
5753         (sse_prologue_save_insn1): New pattern and splitter.
5754         (sse_prologue_save_insn): Update to deal also with 64bit aligned
5755         blocks.
5756         * i386.c (setup_incoming_varargs_64): Do not compute jump
5757         destination here.
5758         (ix86_gimplify_va_arg): Update alignment needed.
5759         (ix86_local_alignment): Do not align all local arrays to 128bit.
5761 2010-04-17  Jan Hubicka  <jh@suse.cz>
5763         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
5765 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5767         * arm.md (negdi2): Remove redundant code to force values into a
5768         register.
5770 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5772         * arm/bpabi.S: Add EABI alignment attributes to objects.
5773         * arm/bpabi-v6m.S: Likewise.
5774         * arm/crti.asm: Likewise.
5775         * arm/crtn.asm: Likewise.
5776         * arm/lib1funcs.asm: Likewise.
5777         * arm/libunwind.S: Likewise.
5779 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
5781         * arm-protos.h (tune_params): New structure.
5782         * arm.c (current_tune): New variable.
5783         (arm_constant_limit): Delete.
5784         (struct processors): Add pointer to the tune parameters.
5785         (arm_slowmul_tune): New tuning option.
5786         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
5787         (all_cores): Adjust to pick up the tuning model.
5788         (arm_constant_limit): New function.
5789         (arm_override_options): Select the appropriate tuning model.  Delete
5790         initialization of arm_const_limit.
5791         (arm_split_constant): Use the new constant-limit model.
5792         (arm_rtx_costs): Pick up the current tuning model.
5793         * arm.md (is_strongarm, is_xscale): Delete.
5794         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
5795         for Xscale variant architectures.
5796         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
5798 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5800         * config/arm/arm.c (arm_gen_constant): Remove unused variable
5801         can_shift.
5802         (arm_rtx_costs_1): Remove unused variable extra_cost.
5803         (arm_unwind_emit_set): Use variable offset.
5804         (thumb1_output_casesi): Remove unused variable flags.
5806 2010-04-16  Jeff Law  <law@redhat.com>
5808         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
5809         needing assignment rather than doing a two-phase assignment.  Remove
5810         unused variable 'm'.
5812 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5814         PR bootstrap/43767
5815         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
5817 2010-04-16  Doug Kwan  <dougkwan@google.com>
5819         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
5820         (next_operand_entry_id): New static variable.
5821         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
5822         (add_to_ops_vec): Assigned unique ID to operand entry.
5823         (struct oecount_s): New field ID.
5824         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
5825         (undistribute_ops_list): Assign unique IDs to oecounts.
5826         (init_reassoc): reset next_operand_entry_id.
5828 2010-04-16  Doug Kwan  <dougkwan@google.com>
5830         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
5831         missing left parenthesis.
5833 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
5835         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
5836         *btdi_rex64 using SWI48 mode iterator.
5837         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
5838         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
5839         *jcc_btdi_mask_rex64.
5841 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
5843         * double-int.h (tree_to_double_int): Convert to macro.
5844         * double-int.c (tree_to_double_int): Remove.
5846 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5848         PR debug/43762
5849         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
5850         with want_address 2 and in case a single element list might be
5851         possible, call it again with want_address 0.
5853 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
5855         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
5856         case 'W' print operands for HI mode.
5857         * config/h8300/h8300.h (Y0, Y2) : New constraints.
5858         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
5859         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
5860         * config/h8300/predicate.md (bit_register_indirect_operand): New.
5862         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
5864         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
5865         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
5866         #xx:3 and #xx:4 mode.
5868         * config/h8300/h8300.md (inverted load with HImode dest): Add
5869         support for H8300SX.
5871         * config/h8300/predicate.md (bit_operand): Allow immediate values that
5872         satisfy 'U' constraint.
5874 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5876         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
5877         * configure: Regenerate.
5878         * config.in: Regenerate.
5879         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
5880         works.
5882 2010-04-16  Richard Guenther  <rguenther@suse.de>
5884         * tree.h (struct tree_decl_minimal): Move pt_uid ...
5885         (struct tree_decl_common): ... here.
5886         (DECL_PT_UID): Adjust.
5887         (SET_DECL_PT_UID): Likewise.
5888         (DECL_PT_UID_SET_P): Likewise.
5890 2010-04-16  Richard Guenther  <rguenther@suse.de>
5892         PR tree-optimization/43572
5893         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
5894         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
5895         * tree-flow.h (is_call_clobbered): Remove.
5896         * tree-flow-inline.h (is_call_clobbered): Likewise.
5897         * tree-dfa.c (dump_variable): Do not dump call clobber state.
5898         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
5899         (execute_return_slot_opt): Adjust.
5900         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
5901         check for call clobbered vars here.
5902         (find_tail_calls): Move tailcall verification to the
5903         proper place.
5905 2010-04-16  Diego Novillo  <dnovillo@google.com>
5907         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
5909 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5911         PR target/40603
5912         * config/arm/arm.md (cbranchqi4): New pattern.
5913         * config/arm/predicates.md (const0_operand,
5914         cbranchqi4_comparison_operator): New predicates.
5916 2010-04-16  Richard Guenther  <rguenther@suse.de>
5918         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
5919         (dump_gimple_stmt): Likewise.
5921 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5923         * recog.h (struct recog_data): New field is_operator.
5924         (struct insn_operand_data): New field is_operator.
5925         * recog.c (extract_insn): Set recog_data.is_operator.
5926         * genoutput.c (output_operand_data): Emit code to set the
5927         is_operator field.
5928         * reload.c (find_reloads): Use it rather than testing for an
5929         empty constraint string.
5931         PR target/41514
5932         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
5933         If the previous insn is a cbranchsi4_insn with the same arguments,
5934         omit the compare instruction.
5936         * config/arm/arm.md (addsi3_cbranch): If destination is a high
5937         register, inputs must be low registers and we need a low register
5938         scratch.  Handle alternative 2 like alternative 3.
5940 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
5942         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
5943         don't call get_addr on both.  If one expression is a VALUE and
5944         the other a REG, check VALUE's locs if the REG isn't among them.
5946 2010-04-16  Christian Bruel  <christian.bruel@st.com>
5948         * config/sh/sh.h (sh_frame_pointer_required): New function.
5949         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
5950         (flag_omit_frame_pointer) Set.
5951         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
5952         (rounded_frame_size): Adjust size with outgoing_args_size.
5953         (sh_set_return_address): Must return from stack pointer.
5954         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
5955         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
5956         (ACCUMULATE_OUTGOING_ARGS): Define.
5957         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
5958         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
5960 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
5962         PR target/43471
5963         * config/sh/sh.c (sh_legitimize_reload_address): Use
5964         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
5965         Remove a unneeded check for offset_base.
5967 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5969         * configure: Regenerated.
5971 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5973         * config/s390/s390.c (s390_call_save_register_used): Switch back
5974         to HARD_REGNO_NREGS.
5976 2010-04-15  Richard Guenther  <rguenther@suse.de>
5978         * alias.c (alias_set_subset_of): Handle alias-set zero
5979         child properly.
5981 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
5982             Julian Brown  <julian@codesourcery.com>
5984         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
5985         alternatives according to use of high and low regs.
5986         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5987         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
5988         optimizing for size on Thumb-2.
5990 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
5992         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
5994 2010-04-15  Richard Guenther  <rguenther@suse.de>
5996         * tree-ssa-structalias.c (struct variable_info): Add
5997         is_fn_info flag.
5998         (new_var_info): Initialize it.
5999         (dump_constraints): Support printing last added constraints.
6000         (debug_constraints): Adjust.
6001         (dump_constraint_graph): Likewise.
6002         (make_heapvar_for): Check for NULL cfun.
6003         (get_function_part_constraint): New function.
6004         (get_fi_for_callee): Likewise.
6005         (find_func_aliases): Properly implement IPA PTA constraints.
6006         (process_ipa_clobber): New function.
6007         (find_func_clobbers): Likewise.
6008         (insert_into_field_list_sorted): Remove.
6009         (create_function_info_for): Properly allocate vars for IPA mode.
6010         Do not use insert_into_field_list_sorted.
6011         (create_variable_info_for): Properly generate constraints for
6012         global vars in IPA mode.
6013         (dump_solution_for_var): Always dump the solution.
6014         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
6015         (find_what_var_points_to): Adjust.
6016         (pt_solution_set): Change.
6017         (pt_solution_ior_into): New function.
6018         (pt_solution_empty_p): Export.
6019         (pt_solution_includes_global): Adjust.
6020         (pt_solution_includes_1): Likewise.
6021         (pt_solutions_intersect_1): Likewise.
6022         (dump_sa_points_to_info): Check some invariants.
6023         (solve_constraints): Move constraint dumping ...
6024         (compute_points_to_sets): ... here.
6025         (ipa_pta_execute): ... and here.
6026         (compute_may_aliases): Do not re-compute points-to info
6027         locally if IPA info is available.
6028         (ipa_escaped_pt): New global var.
6029         (ipa_pta_execute): Properly implement IPA PTA.
6030         * tree-into-ssa.c (dump_decl_set): Support dumping
6031         decls not in referenced-vars.
6032         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
6033         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
6034         (dump_points_to_solution): Likewise.
6035         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
6036         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
6037         (remap_gimple_stmt): Reset call clobber/use information if necessary.
6038         (copy_decl_to_var): Copy DECL_PT_UID.
6039         (copy_result_decl_to_var): Likewise.
6040         * tree.c (make_node_stat): Initialize DECL_PT_UID.
6041         (copy_node_stat): Copy it.
6042         * tree.h (DECL_PT_UID): New macro.
6043         (SET_DECL_PT_UID): Likewise.
6044         (DECL_PT_UID_SET_P): Likewise.
6045         (struct tree_decl_minimal): Add pt_uid member.
6046         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
6047         (pt_solution_empty_p): Declare.
6048         (pt_solution_set): Adjust.
6049         (ipa_escaped_pt): Declare.
6050         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
6051         * gimple-pretty-print.c (pp_points_to_solution): New function.
6052         (dump_gimple_call): Dump call clobber/use information.
6053         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
6054         * tree-pass.h (TDF_ALIAS): New dump option.
6055         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
6056         * doc/invoke.texi (-fipa-pta): Update documentation.
6058 2010-04-15  Richard Guenther  <rguenther@suse.de>
6060         * Makefile.in (OBJS-common): Add gimple-fold.o.
6061         (gimple-fold.o): New rule.
6062         * tree.h (maybe_fold_offset_to_reference,
6063         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
6064         prototypes ...
6065         * gimple.h: ... here.
6066         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
6067         may_propagate_address_into_dereference): Move prototypes ...
6068         * gimple.h: ... here.
6069         * tree-ssa-ccp.c (get_symbol_constant_value,
6070         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
6071         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
6072         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
6073         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
6074         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6075         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6076         gimplify_and_update_call_from_tree): Move ...
6077         * gimple-fold.c: ... here.  New file.
6078         (ccp_fold_builtin): Rename to ...
6079         (gimple_fold_builtin): ... this.
6080         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6082 2010-04-15  Richard Guenther  <rguenther@suse.de>
6084         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6085         fit_double_type, force_fit_type_double, add_double_with_sign,
6086         neg_double, mul_double_with_sign, lshift_double, rshift_double,
6087         lrotate_double, rrotate_double, div_and_round_double): Move ...
6088         * double-int.c: ... here.
6089         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6090         add_double, neg_double, mul_double_with_sign, mul_double,
6091         lshift_double, rshift_double, lrotate_double, rrotate_double,
6092         div_and_round_double): Move prototypes ...
6093         * double-int.h: ... here.
6095 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
6097         PR target/43742
6098         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
6099         matching constraints to ensure inputs match the output.
6101 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6103         PR target/43742
6104         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6105         in an input-only operand.
6107 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
6109         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6110         (double_int_not, double_int_lshift, double_int_rshift): Declare.
6111         (double_int_negative_p): Convert to static inline function.
6112         * double-int.c (double_int_lshift, double_int_lshift): New functions.
6113         (double_int_negative_p): Remove.
6114         * tree.h (lshift_double, rshift_double):
6115         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6116         * fold-const.c (fold_convert_const_int_from_real,
6117         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6118         (lshift_double): Change type of arith argument to bool.
6119         (rshift_double): Change type of arith argument to bool. Correct
6120         comment.
6121         * expmed.c (mask_rtx, lshift_value): (Ditto.).
6123 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
6125         PR target/21803
6126         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6127         at the start and end of the then/else blocks, and omit them from the
6128         conversion.
6129         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
6130         argument; all callers changed.  Pass zero to old_insns_match_p instead.
6131         (flow_find_head_matching_sequence): New function.
6132         (old_insns_match_p): Check REG_EH_REGION notes for calls.
6133         * basic-block.h (flow_find_cross_jump,
6134         flow_find_head_matching_sequence): Declare functions.
6136 2010-04-14  Jason Merrill  <jason@redhat.com>
6138         PR c++/36625
6139         * c-common.c (attribute_takes_identifier_p): New fn.
6140         * c-common.h: Declare it.
6142 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6144         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6145         splitter condition.
6146         (*udivmod<mode>4): Ditto.
6148 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6150         * config/i386/i386.md (maxmin_int): Rename code attribute from
6151         maxminiprefix and update all users.
6152         (maxmin_float): Ditto from maxminfprefix.
6153         (logic): Ditto from logicprefix.
6154         (absneg_mnemonic): Ditto from absnegprefix.
6155         * config/i386/mmx.md: Update all users of maxminiprefix,
6156         maxminfprefix and logicprefix for rename.
6157         * config/i386/sse.md: Ditto.
6158         * config/i386/sync.md (sync_<code><mode>): Update for
6159         logicprefix rename.
6161 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6163         PR 42966
6164         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6165         warnings converted to errors.
6167 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6169         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6170         used insn_type variable.
6171         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6172         to avoid set-but-not-used warning.
6174 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6176         * df-core.c (df_ref_debug): Change format string placeholder
6177         from 0x%x to %#x.
6178         * dwarf2asm.c (dw2_asm_output_data_raw,
6179         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6180         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6181         * dwarf2out.c (output_cfi, output_cfi_directive,
6182         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6183         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6184         Ditto.
6185         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6186         * print-rtl.c (print_rtx): Ditto.
6188 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6190         PR middle-end/42694
6191         * builtins.c (expand_builtin_pow_root): New function to expand pow
6192         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6193         series of sqrt and cbrt calls under -ffast-math.
6194         (expand_builtin_pow): Call it.
6196 2010-04-14  Michael Matz  <matz@suse.de>
6198         PR tree-optimization/42963
6199         * tree-cfg.c (touched_switch_bbs): New static variable.
6200         (group_case_labels_stmt): New function broken out from ...
6201         (group_case_labels): ... here, use the above.
6202         (start_recording_case_labels): Allocate touched_switch_bbs.
6203         (end_recording_case_labels): Deallocate it, call
6204         group_case_labels_stmt.
6205         (gimple_redirect_edge_and_branch): Remember index of affected BB.
6207 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6209         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6210         from insn template.
6212 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6214         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6216 2010-04-13  Jan Hubicka  <jh@suse.cz>
6218         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6219         of optimized out static functions.
6220         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6221         cost computation.  Also sanity check for overflows.
6222         (update_caller_keys): Update cgraph_edge_badness call; properly
6223         update fibheap and sanity check that it is up to date.
6224         (add_new_edges_to_heap): Update cgraph_edge_badness.
6225         (cgraph_decide_inlining_of_small_function): Likewise;
6226         add sanity checking that badness in heap is up to date;
6227         improve dumping of reason; Update badness of calls to the
6228         offline copy of function currently inlined; dump badness
6229         of functions not inlined because of unit growth limits.
6231 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6233         PR middle-end/32628
6234         * c-common.c (pointer_int_sum): Disregard overflow that occured only
6235         because of sign-extension change when converting to sizetype here...
6236         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6238         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6239         the folding to constants.  Remove redundant final conversion.
6240         (fold_binary) <associate>: Do not associate if the re-association of
6241         constants alone overflows.
6242         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6243         to the end of the list.
6244         (multiple_of_p) <COND_EXPR>: New case.
6246 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6248         * opt-functions.awk (opt_sanitized_name): New.
6249         (opt_enum): New.
6250         * optc-gen.awk: Use it
6251         * opth-gen.awk: Use it.
6253 2010-04-13  Martin Jambor  <mjambor@suse.cz>
6255         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6256         (sra_modify_assign): Delete stmts loading dead data even if racc has no
6257         children.  Call replace_uses_with_default_def_ssa_name to handle
6258         SSA_NAES on lhs.
6260 2010-04-13  Michael Matz  <matz@suse.de>
6262         PR middle-end/43730
6263         * builtins.c (expand_builtin_interclass_mathfn): Also create
6264         a register if the predicate doesn't match.
6266 2010-04-13  Diego Novillo  <dnovillo@google.com>
6268         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
6269         * c-pch.c: Include timevar.h.
6270         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
6271         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
6272         * ggc-common.c: Include timevar.h.
6273         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
6274         * timevar.def (TV_PCH_SAVE): Define.
6275         (TV_PCH_CPP_SAVE): Define.
6276         (TV_PCH_PTR_REALLOC): Define.
6277         (TV_PCH_PTR_SORT): Define.
6278         (TV_PCH_RESTORE): Define.
6279         (TV_PCH_CPP_RESTORE): Define.
6281 2010-04-13  Michael Matz  <matz@suse.de>
6283         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
6284         into MINUS_EXPRs.
6285         (can_reassociate_p): New function.
6286         (break_up_subtract_bb, reassociate_bb): Use it.
6288 2010-04-13  Richard Guenther  <rguenther@suse.de>
6290         PR bootstrap/43737
6291         * builtins.c (c_readstr): Fix assert.
6293 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
6295         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6296         when generating cltd insn.
6298         (*ashl<mode>3_1): Remove special handling for register operand 2.
6299         (*ashlsi3_1_zext): Ditto.
6300         (*ashlhi3_1): Ditto.
6301         (*ashlhi3_1_lea): Ditto.
6302         (*ashlqi3_1): Ditto.
6303         (*ashlqi3_1_lea): Ditto.
6304         (*<shiftrt_insn><mode>3_1): Ditto.
6305         (*<shiftrt_insn>si3_1_zext): Ditto.
6306         (*<shiftrt_insn>qi3_1_slp): Ditto.
6307         (*<rotate_insn><mode>3_1): Ditto.
6308         (*<rotate_insn>si3_1_zext): Ditto.
6309         (*<rotate_insn>qi3_1_slp): Ditto.
6311 2010-04-13  Richard Guenther  <rguenther@suse.de>
6313         * tree-ssa-structalias.c (callused_id): Remove.
6314         (call_stmt_vars): New.
6315         (get_call_vi): Likewise.
6316         (lookup_call_use_vi): Likewise.
6317         (lookup_call_clobber_vi): Likewise.
6318         (get_call_use_vi): Likewise.
6319         (get_call_clobber_vi): Likewise.
6320         (make_transitive_closure_constraints): Likewise.
6321         (handle_const_call): Adjust to do per-call call-used handling.
6322         (handle_pure_call): Likewise.
6323         (find_what_var_points_to): Remove general callused handling.
6324         (init_base_vars): Likewise.
6325         (init_alias_vars): Initialize call_stmt_vars.
6326         (compute_points_to_sets): Process call-used and call-clobbered
6327         vars for call statements.
6328         (delete_points_to_sets): Free call_stmt_vars.
6330 2010-04-13  Richard Guenther  <rguenther@suse.de>
6332         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6333         Only add RW dependence for dependence distance zero.
6334         Adjust maximal vectorization factor according to dependences.
6335         Move alignment handling ...
6336         (vect_find_same_alignment_drs): ... here.  New function.
6337         (vect_analyze_data_ref_dependences): Adjust.
6338         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6339         (vect_analyze_data_refs): Adjust minimal vectorization factor
6340         according to data references.
6341         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6342         dependences before determining the vectorization factor.
6343         Analyze alignment after determining the vectorization factor.
6344         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6345         dependences before alignment.
6346         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6347         Adjust prototype.
6348         (vect_analyze_data_refs): Likewise.
6349         (MAX_VECTORIZATION_FACTOR): New define.
6351 2010-04-13  Duncan Sands  <baldrick@free.fr>
6353         * except.h (lang_eh_type_covers): Remove.
6354         * except.c (lang_eh_type_covers): Likewise.
6356 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6357             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6359         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6360         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6361         UNITS_PER_LONG where it is ABI relevant.
6362         (s390_return_addr_rtx): Likewise.
6363         (s390_back_chain_rtx): Likewise.
6364         (s390_frame_area): Likewise.
6365         (s390_frame_info): Likewise.
6366         (s390_initial_elimination_offset): Likewise.
6367         (save_gprs): Likewise.
6368         (s390_emit_prologue): Likewise.
6369         (s390_emit_epilogue): Likewise.
6370         (s390_function_arg_advance): Likewise.
6371         (s390_function_arg): Likewise.
6372         (s390_va_start): Likewise.
6373         (s390_gimplify_va_arg): Likewise.
6374         (s390_function_profiler): Likewise.
6375         (s390_optimize_prologue): Likewise.
6376         (s390_rtx_costs): Likewise.
6377         (s390_secondary_reload): Likewise.
6378         (s390_promote_function_mode): Likewise.
6379         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6380         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6381         registers available.
6382         (s390_unwind_word_mode): New function.
6383         (s390_function_value): Split 64 bit values into register pair if
6384         used as return value.
6385         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6386         function call parameters.  Handle parallels.
6387         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6388         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6389         (DWARF_CIE_DATA_ALIGNMENT): New macro.
6390         (s390_expand_setmem): Remove unused variable src_addr.
6391         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6392         deal with 64 bit registers.
6393         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6394         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6395         (UNITS_PER_LONG): New macro.
6396         * libjava/include/s390-signal.h: Define extended ucontext
6397         structure containing the upper halfs of the 64 bit registers.
6399 2010-04-13  Simon Baldwin  <simonb@google.com>
6401         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6403 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6405         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6406         rvalue on the RHS if the LHS is of a non-renamable type.
6407         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6409 2010-04-13  Matthias Klose  <doko@ubuntu.com>
6411         * gcc.c (cc1_options): Handle -iplugindir before processing
6412         the cc1 spec. Only add -iplugindir once.
6413         (cpp_unique_options): Add -iplugindir option if -fplugin* options
6414         found.
6415         * common.opt (iplugindir): Remove `Separate' property, initialize.
6416         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6417         option.
6418         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6419         (distclean): Remove plugin dir.
6420         * doc/invoke.texi: Document -iplugindir.
6422 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
6424         * doc/plugins.texi (Loading Plugins): Document short
6425         -fplugin=foo option.
6426         (Plugin API): Mention default_plugin_dir_name function.
6428         * gcc.c (find_file_spec_function): Add new declaration.
6429         (static_spec_func): Use it for "find-file".
6430         (find_file_spec_function): Add new function.
6431         (cc1_options): Add -iplugindir option if -fplugin* options found.
6433         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6435         * plugin.c (add_new_plugin): Updated comment, and handle short
6436         plugin name.
6437         (default_plugin_dir_name): Added new function.
6439         * common.opt (iplugindir): New option to set the plugin directory.
6441 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
6443         * config/i386/i386.md (any_rotate): New code iterator.
6444         (rotate_insn): New code attribute.
6445         (rotate): Ditto.
6446         (SWIM124): New mode iterator.
6447         (<rotate_insn>ti3): New expander.
6448         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6449         any_rotate code iterator.
6450         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6451         using any_rotate code iterator and SWIM124 mode iterator.
6452         (ix86_rotlti3): New insn_and_split pattern.
6453         (ix86_rotrti3): Ditto.
6454         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6455         ix86_rotl{di,ti}3 patterns.
6456         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6457         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6458         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6459         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6460         code iterator and SWI mode iterator.
6461         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6462         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6463         code iterator.
6464         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6465         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6466         (bswap rotatert splitter): Add splitter.
6467         (bswap splitter): Macroize splitter using any_rotate code iterator.
6468         Add insn predicate to split only for TARGET_USE_XCHGB or when
6469         optimizing function for size.
6471 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6473         * config/pa/pa.c (emit_move_sequence): Remove use of
6474         deleted variable flag_argument_noalias.
6476 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6478         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6479         configurations.
6480         Add to unsupported targets list.
6481         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6482         sparc*-sun-solaris2.[567]* from target lists.
6483         * configure: Regenerate.
6484         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6485         removal.
6486         Remove Solaris 7 patch references.
6487         (Specific, sparc-sun-solaris2.7): Removed.
6488         (sparc-sun-solaris2*): Update Solaris 7 example.
6489         (sparc64-*-solaris2*): Likewise.
6491 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6493         * config.build (alpha*-dec-osf4*): Remove.
6494         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6495         of obsolete configurations.
6496         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6497         support.
6498         * config/alpha/t-osf4: Renamed to ...
6499         * config/alpha/t-osf5: ... this.
6500         * config/alpha/osf.h: Renamed to ...
6501         * config/alpha/osf5.h: ... this.
6502         Merged old osf5.h contents.
6503         Update comments.
6504         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6505         (EXTRA_SPECS): Removed.
6506         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6507         reflect removal of Tru64 UNIX V4.0/V5.0 support.
6508         Document that.
6510 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6512         * doc/contrib.texi (Contributors, Rainer Orth): Update.
6514 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
6516         PR/43702
6517         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6518         __thiscall convention.
6520 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6522         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6523         orig_base.
6524         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6526 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6528         * function.c (assign_parms_initialize_all): Add unused attribute
6529         to fntype.
6531 2010-04-12  Richard Guenther  <rguenther@suse.de>
6533         * gsstruct.def (GSS_CALL): New.
6534         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6535         * gimple.h: Include tree-ssa-alias.h.
6536         (struct gimple_statement_call): New.
6537         (union gimple_statement_struct_d): Add gimple_call member.
6538         (gimple_call_reset_alias_info): Declare.
6539         (gimple_call_use_set): New function.
6540         (gimple_call_clobber_set): Likewise.
6541         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6542         * gimple.c (gimple_call_reset_alias_info): New function.
6543         (gimple_build_call_1): Call it.
6544         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6545         * tree-inline.c (remap_gimple_stmt): Likewise.
6546         (expand_call_inline): Remove callused handling.
6547         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6548         * tree-dfa.c (dump_variable): Likewise.
6549         * tree-parloops.c (parallelize_loops): Likewise.
6550         * tree-ssa.c (init_tree_ssa): Likewise.
6551         (delete_tree_ssa): Likewise.
6552         * tree-flow-inline.h (is_call_used): Remove.
6553         * tree-flow.h (struct gimple_df): Remove callused member.
6554         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6555         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6556         (ref_maybe_used_by_call_p_1): Simplify.
6557         (call_may_clobber_ref_p_1): Likewise.
6558         * tree-ssa-structalias.c (compute_points_to_sets): Set
6559         the call stmt used and clobbered sets.
6560         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6561         (find_tail_calls): Verify the tail call.
6563 2010-04-12  Richard Guenther  <rguenther@suse.de>
6565         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6566         single-iteration always-inline inlining.
6567         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6568         (cgraph_decide_inlining): Do not handle always-inline specially.
6569         (try_inline): Remove always-inline cycle detection special case.
6570         Do not recurse on always-inlines.
6571         (cgraph_early_inlining): Do not iterate if not optimizing.
6572         (cgraph_gate_early_inlining): remove.
6573         (pass_early_inline): Run unconditionally.
6574         (gate_cgraph_decide_inlining): New function.
6575         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
6576         not inlining or optimizing.
6577         (cgraph_decide_inlining_of_small_functions): Also consider
6578         always-inline functions.
6579         (cgraph_default_inline_p): Return true for nodes which should
6580         disregard inline limits.
6581         (estimate_function_body_sizes): Assume zero size and time for
6582         nodes which are marked as disregarding inline limits.
6583         (cgraph_decide_recursive_inlining): Do not perform recursive
6584         inlining on always-inline nodes.
6586 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
6588         PR bootstrap/43699
6589         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6590         for exprs satisfying handled_component_p.
6592 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
6594         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6595         non-constant aggregate elements.
6597         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6598         is a real initialization.
6600 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
6602         PR c/36774
6603         * c-decl.c (start_function): Move forward check for nested function.
6605 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
6607         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6608         * config/sh/sh.c: Include reload.h.
6609         (sh_legitimize_reload_address): New.
6610         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6611         sh_legitimize_reload_address.
6613 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6615         * config/sh/sh.md (*movqi_pop): New insn pattern.
6616         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6618 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6620         * config/i386/i386.md (any_shiftrt): New code iterator.
6621         (shiftrt_insn): New code attribute.
6622         (shiftrt): Ditto.
6623         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6624         using any_shiftrt code iterator.
6625         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6626         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6627         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6628         pattern from corresponding peephole2 patterns.
6629         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6630         using any_shiftrt code iterator.
6631         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6632         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6633         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6634         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6635         *{ashr,lshr}<mode>3_cmp_zext.
6636         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6638 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6640         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6641         scratch register.
6642         (*lshr<mode>3_cconly): Ditto.
6644 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
6646         * config/i386/i386.md (lshr<mode>3): Macroize expander from
6647         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6648         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6649         pattern from *lshr{di,ti}3_1 and corresponding splitters using
6650         DWI mode iterator.
6651         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6652         from corresponding peephole2 patterns.
6653         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6654         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6655         and *lshrdi3_1_rex64 using SWI mode iterator.
6656         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6657         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6658         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6659         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6660         and *lshrdi3_cmp_rex64 using SWI mode iterator.
6661         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6662         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6663         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6664         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6665         SWI mode iterator.
6667 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
6669         * config/i386/i386.md (ashr<mode>3): Macroize expander from
6670         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6671         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6672         pattern from *ashr{di,ti}3_1 and corresponding splitters using
6673         DWI mode iterator.
6674         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6675         from corresponding peephole2 patterns.
6676         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6677         (ashrsi3_cvt): Rename from ashrsi3_31.
6678         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6679         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6680         and x86_64_shift_adj_3 using SWI48 mode iterator.
6681         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6682         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6683         and *ashrdi3_1_rex64 using SWI mode iterator.
6684         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6685         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6686         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6687         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6688         and *ashrdi3_cmp_rex64 using SWI mode iterator.
6689         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6690         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6691         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6692         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6693         SWI mode iterator.
6694         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6695         * config/i386/i386.c (ix86_split_ashr): Update for renamed
6696         x86_shift<mode>_adj_3 expanders.
6698 2010-04-10  Wei Guozhi  <carrot@google.com>
6700         PR target/42601
6701         * config/arm/arm.c (arm_pic_static_addr): New function.
6702         (legitimize_pic_address): Call arm_pic_static_addr when it detects
6703         a static symbol.
6704         (arm_output_addr_const_extra): Output expression for new pattern.
6705         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6707 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
6709         * ira-costs.c (record_reg_classes): Ignore alternatives that are
6710         not enabled.
6712         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6713         * web.c: Include "insn-config.h" and "recog.h".
6714         (union_match_dups): New function.
6715         (web_main): Call it.
6716         (union_defs): Don't try to recognize match_dups.
6718         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6719         if doing so would replace the entire pattern.
6721 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
6723         PR target/43707
6724         PR target/43709
6725         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6726         and splitter pattern.  Change splitter operand 1 predicate to
6727         nonmemory_operand.
6729 2010-04-09  Martin Jambor  <mjambor@suse.cz>
6731         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6732         lattices are addresses of CONST_DECLs with the same initial value.
6733         (ipcp_print_all_lattices): Print values of CONST_DECLs.
6734         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6736 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
6737             Bernd Schmidt  <bernds@codesourcery.com>
6739         * loop-invariant.c (replace_uses): New static function.
6740         (move_invariant_reg): Use it to ensure we can replace the uses.
6742 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
6744         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
6745         function template.
6746         (picochip_override_options): Enable section anchors only above -O1.
6747         (picochip_reorg): Fixed a couple of build warnings.
6749 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6751         * configure.ac (plugin -rdynamic test): Log result.
6752         * configure: Regenerate.
6753         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
6754         (RDYNAMIC_SPEC): Define.
6755         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
6757 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6759         * configure.ac: Determine Sun ld version numbers.
6760         (comdat_group): Restrict GNU ld version checks to gld.
6761         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
6762         (enable_comdat): Support --enable-comdat.
6763         * configure: Regenerate.
6764         * doc/install.texi (Configuration): Document --enable-comdat.
6766 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6768         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
6769         * config/sol2-gld.h: ... here.
6770         * config.gcc (sparc*-*-solaris2*): Reflect this.
6771         (i[34567]86-*-solaris2*): Use it.
6773 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
6775         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
6776         setup_clocks_p.
6777         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
6779 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6781         PR 42965
6782         * diagnostic.c (diagnostic_initialize): Initialize
6783         some_warnings_are_errors.
6784         (diagnostic_finish): New.
6785         (diagnostic_action_after_output): Call it before exiting.
6786         (diagnostic_report_diagnostic): Do not print message here. Set
6787         some_warnings_are_errors.
6788         * diagnostic.h (diagnostic_context): Delete
6789         issue_warnings_are_errors_message. Add some_warnings_are_errors.
6790         (diagnostic_finish): Declare.
6791         * toplev.c (toplev_main): Call it before exit.
6793 2010-04-09  Jason Merrill  <jason@redhat.com>
6795         PR c++/42623
6796         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
6797         for incomplete type.
6799         PR c++/41788
6800         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
6801         based on a warning flag.
6803 2010-04-09  Richard Guenther  <rguenther@suse.de>
6805         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
6807 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
6809         PR bootstrap/43684
6810         * varasm.c (default_assemble_visibility): Wrap vars that are
6811         set, but unused, by targets without GAS.
6812         * config/rs6000/rs6000.c (paired_emit_vector_compare):
6813         Remove set, but unused, vars.
6814         (rs6000_legitimize_tls_address): Likewise.
6815         (altivec_expand_dst_builtin): Likewise.
6816         * config/darwin.c (machopic_classify_symbol): Likewise.
6817         (machopic_indirection_name): Likewise.
6819 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
6821         * config/i386/i386.md (DWI): New mode iterator.
6822         (S): New mode attribute.
6823         (shift_operand): Ditto.
6824         (shift_immediate_operand): Ditto.
6825         (ashl_input_operand): Ditto.
6826         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
6827         using SDWIM mode iterator.
6828         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
6829         pattern from *ashl{di,ti}3_1 and corresponding splitters using
6830         DWI mode iterator.
6831         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
6832         from corresponding peephole2 patterns.
6833         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
6834         and x86_64_shift_adj_1 using SWI48 mode iterator.
6835         (x86_shift<mode>_adj_2): Ditto.
6836         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
6837         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
6838         using SWI48 mode iterator.
6839         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
6840         *ashldi3_cmp_rex64 using SWI mode iterator.
6841         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
6842         *ashldi3_cconly_rex64 using SWI mode iterator.
6843         * config/i386/i386.c (ix86_split_ashl): Update for renamed
6844         x86_shift<mode>_adj_{1,2}.
6845         (ix86_split_ashr): Ditto.
6846         (ix86_split_lshr): Ditto.
6848 2010-04-09  Richard Guenther  <rguenther@suse.de>
6850         * target.h (builtin_conversion): Pass in input and output types.
6851         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
6852         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
6853         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
6854         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
6856         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
6857         Handle AVX modes.
6858         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
6860 2010-04-09  Richard Guenther  <rguenther@suse.de>
6862         PR target/43152
6863         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
6865 2010-04-09  Richard Guenther  <rguenther@suse.de>
6867         * tree-vectorizer.h (struct _stmt_vec_info): Document
6868         that vectype is the type of the LHS.
6869         (supportable_widening_operation, supportable_narrowing_operation):
6870         Get both input and output vector types as arguments.
6871         (vect_is_simple_use_1): Declare.
6872         (get_same_sized_vectype): Likewise.
6873         * tree-vect-loop.c (vect_determine_vectorization_factor):
6874         Set STMT_VINFO_VECTYPE to the vector type of the def.
6875         (vectorizable_reduction): Adjust.
6876         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
6877         Adjust.  Specify the output vector type.
6878         (vect_pattern_recog_1): Adjust.
6879         * tree-vect-stmts.c (get_same_sized_vectype): New function.
6880         (vectorizable_call): Adjust.
6881         (vectorizable_conversion): Likewise.
6882         (vectorizable_operation): Likewise.
6883         (vectorizable_type_demotion): Likewise.
6884         (vectorizable_type_promotion): Likewise.
6885         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
6886         the def.
6887         (vect_is_simple_use_1): New function.
6888         (supportable_widening_operation): Get both input and output
6889         vector types.
6890         (supportable_narrowing_operation): Likewise.
6891         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
6893 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
6895         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
6896         __thiscall and _thiscall as predefined macros.
6897         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
6898         thiscall attribute handling.
6899         (ix86_comp_type_attributes): Likewise.
6900         (ix86_function_regparm): Likewise.
6901         (ix86_return_pops_args): Likewise.
6902         (init_cumulative_args): Likewise.
6903         (find_drap_reg): Likewise.
6904         (ix86_static_chain): Likewise.
6905         (x86_this_parameter): Likewise.
6906         (x86_output_mi_thunk): Likewise.
6907         (ix86_attribute_table): Add description for thiscall attribute.
6908         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
6909         * doc/extend.texi: Add documentation for thiscall.
6911 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6913         PR c++/28584
6914         * c.opt (Wint-to-pointer-cast): Available in C++.
6915         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
6917 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6919         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
6920         * calls.c (expand_call): Pass the function type to aggregate_value_p.
6921         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
6922         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
6923         function type instead.  Reorder and simplify checks.
6925         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
6927 2010-04-08  Jing Yu  <jingyu@google.com>
6928             Zdenek Dvorak  <ook@ucw.cz>
6930         PR tree-optimization/42720
6931         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
6932         loop unswitch conditions here from ...
6933         (tree_unswitch_single_loop): ... here.
6935 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
6937         * tree-if-conv.c: Fix comments and simplify logic.
6939 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
6941         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
6942         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
6943         (main_tree_if_conversion): Update call to tree_if_conversion.
6945 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6947         PR 42485
6948         * doc/invoke.texi (-b,-V): Delete.
6949         * doc/tm.texi: Do not mention -b.
6950         * gcc.c (display_help): Delete -b and -V.
6951         (process_command): Delete -b and -V.
6952         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
6954 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
6955             Wolfgang Gellerich  <gellerich@de.ibm.com>
6957         Implement target hook for loop unrolling
6958         * target.h (loop_unroll_adjust): Add a new target hook function.
6959         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
6960         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
6961         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
6962         (s390_loop_unroll_adjust): Implement the new target hook for s390.
6963         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
6964         target hook.
6965         (decide_unroll_stupid): Likewise.
6967 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6969         PR target/43643
6970         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
6972 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6974         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
6975         (Specific, *-*-solaris2*): Likewise.
6976         Don't prefer Sun as over GNU as.
6978 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
6980         * config/s390/s390.c (override_options): Adjust the z10 defaults
6981         for max-unroll-times, max-completely-peeled-insns
6982         and max-completely-peel-times.
6984 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6986         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
6987         instructions for z10.
6988         (s390_expand_setmem): Likewise.
6989         (s390_expand_cmpmem): Likewise.
6991 2010-04-08  Richard Guenther  <rguenther@suse.de>
6993         PR tree-optimization/43679
6994         * tree-ssa-pre.c (eliminate): Only propagate copies.
6996 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
6998         PR bootstrap/43681
6999         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
7000         set but not used variable warning.
7002 2010-04-08  Wei Guozhi  <carrot@google.com>
7004         PR target/41653
7005         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
7006         (arm_size_rtx_costs): Call the new function when optimized for size.
7008 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
7010         PR debug/43670
7011         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
7012         op0 is not a MEM, just return NULL instead of assertion
7013         failure.
7014         (discover_nonconstant_array_refs): Don't walk debug stmts.
7016 2010-04-08  Doug Kwan  <dougkwan@google.com>
7018         * configure.ac: Recognize gold and do not use its version number
7019         to test ld features.
7020         * configure: Regenerate.
7022 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
7024         PR middle-end/40815
7025         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
7026         (negate_value): Move code to push elements to broken_up_substracts ...
7027         (eliminate_plus_minus_pair): ... here.  Push operands that have no
7028         negative pair to plus_negates.
7029         (repropagate_negates, init_reassoc, fini_reassoc): Update.
7031 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7033         * doc/install.texi (Configuration): Move description of
7034         --enable-lto, --with-libelf*, --enable-gold from Java section to
7035         general section.
7037         * doc/generic.texi (Working with declarations)
7038         (Function Properties, C and C++ Trees): Fix typos.
7039         * doc/sourcebuild.texi (Top Level): Likewise.
7041 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
7043         PR c/18624
7044         * tree.h (DECL_READ_P): Define.
7045         (struct tree_decl_common): Add decl_read_flag.
7046         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
7047         a set but not used warning.
7048         (merge_decls): Merge DECL_READ_P flag.
7049         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
7050         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
7051         * c-common.c (handle_used_attribute, handle_unused_attribute):
7052         Likewise.
7053         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
7054         New prototypes.
7055         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
7056         New functions.
7057         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
7058         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
7059         c_parser_binary_expression, c_parser_cast_expression,
7060         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
7061         Call default_function_array_read_conversion instead of
7062         default_function_array_conversion where needed.
7063         (c_parser_unary_expression, c_parser_conditional_expression,
7064         c_parser_postfix_expression_after_primary, c_parser_initelt):
7065         Likewise.  Call mark_exp_read where needed.
7066         (c_parser_statement_after_labels, c_parser_asm_operands,
7067         c_parser_typeof_specifier, c_parser_sizeof_expression,
7068         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
7069         where needed.
7070         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
7071         New.
7072         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
7073         (warn_unused_but_set_parameter): Default to warn_unused
7074         && extra_warnings.
7075         * doc/invoke.texi: Document -Wunused-but-set-variable and
7076         -Wunused-but-set-parameter.
7078         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7079         used count variable.
7080         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7081         when operandN variables aren't used in the body of the expander
7082         or splitter.
7083         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7084         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7085         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7086         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7087         FOR_EACH_IMM_USE_ON_STMT): Likewise.
7088         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7089         * tree.c (PROCESS_ARG): Likewise.
7091 2010-04-07  Simon Baldwin  <simonb@google.com>
7093         * diagnostic.h (diagnostic_override_option_index): New macro to
7094         set a diagnostic's option_index.
7095         * c-tree.h (c_cpp_error): Add warning reason argument.
7096         * opts.c (_warning_as_error_callback): New.
7097         (register_warning_as_error_callback): Store callback for
7098         warnings enabled via enable_warning_as_error.
7099         (enable_warning_as_error): Call callback, minor code tidy.
7100         * opts.h (register_warning_as_error_callback): Declare.
7101         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7102         response to -Werror=.
7103         (c_common_init_options): Register warning_as_error_callback in opts.c.
7104         * common.opt: Add -Wno-cpp option.
7105         * c-common.c (struct reason_option_codes_t): Map cpp warning
7106         reason codes to gcc option indexes.
7107         * (c_option_controlling_cpp_error): New function, lookup the gcc
7108         option index for a cpp warning reason code.
7109         * (c_cpp_error): Add warning reason argument, call
7110         c_option_controlling_cpp_error for diagnostic_override_option_index.
7111         * doc/invoke.texi: Document -Wno-cpp.
7113 2010-04-07  Richard Guenther  <rguenther@suse.de>
7115         * ipa-reference.c (mark_load): Use get_base_address.
7116         (mark_store): Likewise.
7118         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7119         inserting GIMPLE_NOPs into the IL.
7120         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7121         Explicitly strip handled components and indirect references.
7123         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7124         folding address expressions.
7125         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7126         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7127         operand_equal_p to compare decls.
7128         (ptr_deref_may_alias_decl_p): Likewise.
7129         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7130         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7131         Handle reversed comparison ops.
7132         * tree-sra.c (asm_visit_addr): Use get_base_address.
7133         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7134         * ipa-reference.c (mark_address): Use get_base_address.
7136 2010-04-07  Richard Guenther  <rguenther@suse.de>
7138         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7139         Propagate constants everywhere.
7141 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
7143         PR debug/43516
7144         * tree.c (MAX_INT_CACHED_PREC): Define.
7145         (nonstandard_integer_type_cache): New array.
7146         (build_nonstandard_integer_type): Cache results for precision
7147         <= MAX_INT_CACHED_PREC.
7149 2010-04-07  Richard Guenther  <rguenther@suse.de>
7151         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7152         -fargument-noalias-global, -fargument-noalias-anything): Remove.
7153         * common.opt: Likewise.
7154         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7155         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7156         (nonoverlapping_memrefs_p): Likewise.
7157         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7158         * opts.c (common_handle_option): Handle OPT_fargument_alias,
7159         OPT_fargument_noalias, OPT_fargument_noalias_anything and
7160         OPT_fargument_noalias_global for backward compatibility.
7162 2010-04-07  Richard Guenther  <rguenther@suse.de>
7164         PR tree-optimization/43270
7165         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7166         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7167         * tree-ssa-pre.c (phi_translate_1): Adjust.
7168         (fully_constant_expression): Split out vn_reference handling to ...
7169         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7170         Fold reads from constant strings.
7171         (vn_reference_lookup): Handle fully constant references.
7172         (vn_reference_lookup_pieces): Likewise.
7173         * Makefile.in (expmed.o-warn): Add -Wno-error.
7175 2010-04-07  Martin Jambor  <mjambor@suse.cz>
7177         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7179 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
7181         PR driver/41594
7182         * gcc.c: Add -static-libstdc++ to list of recognized options.
7184 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7186         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7188 2010-04-07  Richard Guenther  <rguenther@suse.de>
7190         PR middle-end/42617
7191         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7192         bases build simple mem attributes to retain points-to information.
7194 2010-04-07  Richard Guenther  <rguenther@suse.de>
7196         PR middle-end/42617
7197         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7198         preserve points-to related information.
7200 2010-04-07  Richard Guenther  <rguenther@suse.de>
7202         PR middle-end/42617
7203         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7204         discard plain indirect references.
7205         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7206         * tree.c (tree_nop_conversion): Likewise.
7208 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
7210         PR debug/43628
7211         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7213 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
7215         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7216         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7218 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7220         * tree-if-conv.c: Fix indentation and comments.
7222 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7224         * tree-if-conv.c: Sort static functions in topological order.
7226 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7228         * tree-if-conv.c: Fix indentation and comments.
7230 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7232         PR middle-end/43519
7233         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7234         lang_hooks.types.type_for_size instead of
7235         build_nonstandard_integer_type.
7236         When converting an unsigned type to signed, double its precision.
7237         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7238         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7239         (graphite_create_new_loop_guard): When ub + 1 wraps around,
7240         use lb <= ub.
7242 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7244         PR middle-end/43519
7245         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7246         POINTER_PLUS_EXPR for pointer types.
7248 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7250         PR middle-end/43519
7251         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7252         * graphite-clast-to-gimple.c: Include langhooks.h.
7253         (max_signed_precision_type): New.
7254         (max_precision_type): Takes two types as arguments.
7255         (precision_for_value): New.
7256         (precision_for_interval): New.
7257         (gcc_type_for_interval): New.
7258         (gcc_type_for_value): New.
7259         (gcc_type_for_clast_term): New.
7260         (gcc_type_for_clast_red): New.
7261         (gcc_type_for_clast_bin): New.
7262         (gcc_type_for_clast_expr): Split up into several functions.
7263         (gcc_type_for_clast_eq): Rewritten.
7264         (compute_bounds_for_level): New.
7265         (compute_type_for_level_1): New.
7266         (compute_type_for_level): New.
7267         (gcc_type_for_cloog_iv): Removed.
7268         (gcc_type_for_iv_of_clast_loop): Rewritten.
7269         (graphite_create_new_loop): Compute the lower and upper bound types
7270         with gcc_type_for_clast_expr.
7271         (graphite_create_new_loop_guard): Same.
7272         (find_cloog_iv_in_expr): Removed.
7273         (compute_cloog_iv_types_1): Removed.
7274         (compute_cloog_iv_types): Removed.
7275         (gloog): Do not call compute_cloog_iv_types.
7276         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
7277         GBB_CLOOG_IV_TYPES.
7278         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
7279         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
7280         (GBB_CLOOG_IV_TYPES): Removed.
7282 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7284         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
7285         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
7286         (detect_commutative_reduction): Same.
7288 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7290         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
7291         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
7292         argument.
7293         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7294         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7295         (rewrite_commutative_reductions_out_of_ssa): Same.
7296         * passes.c (execute_function_todo): Call verify_ssa for every pass
7297         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
7298         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7299         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7300         with an extra argument.
7301         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
7302         verify_ssa only when the extra argument is true.
7303         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7304         with an extra argument.
7305         (tree_transform_and_unroll_loop): Same.
7307 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7309         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7310         for all the passes of the LNO having LOOP_CLOSED_SSA.
7311         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7312         * tree-loop-distribution.c (pass_loop_distribution): Same.
7313         * tree-pass.h (TODO_verify_loops): Removed.
7314         * tree-ssa-loop.c (pass_tree_loop_init): Same.
7315         (pass_lim): Same.
7316         (pass_tree_unswitch): Same.
7317         (pass_predcom): Same.
7318         (pass_vectorize): Same.
7319         (pass_linear_transform): Same.
7320         (pass_graphite_transforms): Same.
7321         (pass_iv_canon): Same.
7322         (pass_complete_unroll): Same.
7323         (pass_complete_unrolli): Same.
7324         (pass_parallelize_loops): Same.
7325         (pass_loop_prefetch): Same.
7326         (pass_iv_optimize): Same.
7328 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
7330         PR middle-end/32824
7331         * passes.c (init_optimization_passes): Move pass_lim before
7332         pass_copy_prop and pass_dce_loop.
7334 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
7336         PR target/43667
7337         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7338         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7339         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7340         MULTI_* defines for 4 argument vpermil2p* builtins.
7342 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
7344         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7345         * config/i386/i386.c (x86_maybe_negate_const_int): New.
7346         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7347         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7348         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7349         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7350         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7351         Use x86_maybe_negate_const_int to output insn mnemonic.
7352         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
7353         check from instruction predicate.  Update comments.
7354         * config/i386/sync.md (sync_add<mode>): Use
7355         x86_maybe_negate_const_int to output insn mnemonic.
7357 2010-04-06  Jan Hubicka  <jh@suse.cz>
7359         PR tree-optimization/42906
7360         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7361         IGNORE_SELF argument.  Set visited_control_parents for fully
7362         processed BBs.
7363         (find_obviously_necessary_stmts): Update call of
7364         mark_control_dependent_edges_necessary.
7365         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
7367 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
7369         * config/i386/i386.md: Remove comment about 'e' and 'E'
7370         operand modifier.
7372 2010-04-06  Richard Guenther  <rguenther@suse.de>
7374         PR tree-optimization/43627
7375         * tree-vrp.c (extract_range_from_unary_expr): Widenings
7376         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7377         not varying.
7379 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
7381         * BASE-VER: Change to 4.6.0.
7383         PR target/43638
7384         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7385         handling.
7387 2010-04-06  Richard Guenther  <rguenther@suse.de>
7389         PR middle-end/43661
7390         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7392 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7394         * doc/invoke.texi (Optimize Options): Document that LTO
7395         won't remove object access purely due to incompatible
7396         declarations.
7398 2010-04-04  Matthias Klose  <doko@ubuntu.com>
7400         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7401         Initialize variable.
7403 2010-04-03  Richard Guenther  <rguenther@suse.de>
7405         PR middle-end/42509
7406         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7407         require a non-NULL MEM_OFFSET.
7409 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
7411         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7412         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7413         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7414         config/alpha/predicates.md, config/arm/arm.md,
7415         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7416         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7417         config/darwin9.h, config/darwin.c, config/darwin.h,
7418         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7419         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7420         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7421         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7422         config/mips/mips.md, config/mn10300/mn10300.c,
7423         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7424         config/rs6000/aix.h, config/rs6000/dfp.md,
7425         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7426         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7427         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7428         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7429         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7430         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7431         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7432         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7433         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7434         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7435         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7436         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7437         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7438         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7439         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7440         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7441         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7442         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7443         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7444         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7445         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7446         opt-functions.awk, opth-gen.awk, params.def, passes.c,
7447         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7448         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7449         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7450         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7451         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7452         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7453         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7454         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7455         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7456         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7457         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7458         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7459         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7460         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7462 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7464         PR other/43620
7465         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7466         * aclocal.m4: Regenerate.
7468 2010-04-02  Richard Guenther  <rguenther@suse.de>
7470         PR tree-optimization/43629
7471         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7472         if we have seen a constant value.
7474 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
7476         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7478 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
7480         PR target/43469
7481         * arm.c (legitimize_tls_address): Adjust call to
7482         gen_tls_load_dot_plus_four.
7483         (arm_note_pic_base): New function.
7484         (arm_cannot_copy_insn_p): Use it.
7485         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7486         constraint.
7488 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7490         PR bootstrap/43531
7492         Revert:
7493         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7495         * Makefile.in ($(out_object_file)): Depend on
7496         gt-$(basename $(notdir $(out_file))).h.
7498 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
7500         * config.gcc (lm32-*-rtems*): Add t-lm32.
7502 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
7504         * config.gcc: Add lm32-*-rtems*.
7505         * config/lm32/rtems.h: New file.
7507 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
7509         PR target/42609
7510         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7512 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
7514         * dwarf2out.c (output_compilation_unit_header): For
7515         -gdwarf-4 use version 4 instead of version 3.
7516         (output_line_info): For version 4 and above emit additional
7517         maximum ops per insn header field.
7518         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7520         * dwarf2out.c (is_c_family, is_java): Remove.
7521         (lower_bound_default): New function.
7522         (add_bound_info, gen_descr_array_type_die): Use it.
7524 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
7526         PR debug/43325
7527         * dwarf2out.c (gen_variable_die): Allow debug info for variable
7528         re-declaration when it happens in a function.
7530 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
7532         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7533         (cgraph_remove_function_insertion_hook): Same.
7534         (cgraph_call_function_insertion_hooks): Same.
7536 2010-04-01  Richard Guenther  <rguenther@suse.de>
7538         PR middle-end/43614
7539         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7540         and TREE_THIS_VOLATILE.
7541         (copy_ref_info): Likewise.
7542         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7543         * tree.c (build6_stat): Ignore side-effects of all but arg5
7544         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
7545         TARGET_MEM_REF.
7547 2010-04-01  Richard Guenther  <rguenther@suse.de>
7549         PR tree-optimization/43607
7550         * ipa-type-escape.c (check_call): Do not access non-existing
7551         arguments.
7553 2010-04-01  Richard Guenther  <rguenther@suse.de>
7555         PR middle-end/43602
7556         Revert
7557         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
7558                     Jack Howarth <howarth@bromo.med.uc.edu>
7560         * tree-profile.c (tree_init_ic_make_global_vars): Make static
7561         variables TLS.
7563 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7565         * doc/install.texi (Prerequisites): Document libelf usability on
7566         IRIX 5/6 and Solaris 2.
7567         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7568         Update GNU as, GNU ld requirements.
7569         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7570         Document Sun Studio compiler download.
7571         Update and simplify as, ld recommendations.
7572         (Specific, *-*-solaris2.7): Note obsoletion, removal.
7574 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7576         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7577         with_tune_32 to pentium4.
7579 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
7581         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7583 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7585         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7586         obsoletion, removal.
7587         Update IDO URL.
7588         Document GNU as requirement.
7589         Update configure requirements.
7590         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7591         Recomment IRIX 6.5.18+.
7592         Document IDF/IDL requirement.
7593         Document GNU as requirement.
7594         Document GNU ld bootstrap failure.
7595         Remove freeware.sgi.com reference.
7597 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7599         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7600         UNIX V4.0, V5.0 obsoletion, removal.
7601         Remove --with-gc=simple reference.
7602         Update VM requirements during bootstrap.
7603         Remove -oldas bootstrap description.
7604         Update binutils reference.
7605         Remove comparison failure note.
7607 2010-03-31  Richard Guenther  <rguenther@suse.de>
7608             Zdenek Dvorak  <ook@ucw.cz>
7609             Sebastian Pop  <sebastian.pop@amd.com>
7611         PR middle-end/43464
7612         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7613         with multiple arguments.
7614         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7616 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7618         * graphite-dependences.c (print_pddr): Call print_pdr with an
7619         extra argument.
7620         * graphite-poly.c (debug_pdr): Add an extra argument for the
7621         verbosity level.
7622         (print_pdr): Same.
7623         (print_pbb_domain): Same.
7624         (print_pbb): Same.
7625         (print_scop_context): Same.
7626         (print_scop): Same.
7627         (print_cloog): Same.
7628         (debug_pbb_domain): Same.
7629         (debug_pbb): Same.
7630         (print_pdrs): Same.
7631         (debug_pdrs): Same.
7632         (debug_scop_context): Same.
7633         (debug_scop): Same.
7634         (debug_cloog): Same.
7635         (print_scop_params): Same.
7636         (debug_scop_params): Same.
7637         (print_iteration_domain): Same.
7638         (print_iteration_domains): Same.
7639         (debug_iteration_domain): Same.
7640         (debug_iteration_domains): Same.
7641         (print_scattering_function): Same.
7642         (print_scattering_functions): Same.
7643         (debug_scattering_function): Same.
7644         (debug_scattering_functions): Same.
7645         * graphite-poly.h (debug_pdr): Update declaration.
7646         (print_pdr): Same.
7647         (print_pbb_domain): Same.
7648         (print_pbb): Same.
7649         (print_scop_context): Same.
7650         (print_scop): Same.
7651         (print_cloog): Same.
7652         (debug_pbb_domain): Same.
7653         (debug_pbb): Same.
7654         (print_pdrs): Same.
7655         (debug_pdrs): Same.
7656         (debug_scop_context): Same.
7657         (debug_scop): Same.
7658         (debug_cloog): Same.
7659         (print_scop_params): Same.
7660         (debug_scop_params): Same.
7661         (print_iteration_domain): Same.
7662         (print_iteration_domains): Same.
7663         (debug_iteration_domain): Same.
7664         (debug_iteration_domains): Same.
7665         (print_scattering_function): Same.
7666         (print_scattering_functions): Same.
7667         (debug_scattering_function): Same.
7668         (debug_scattering_functions): Same.
7670 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7672         * graphite-poly.c (print_scattering_function_1): New.
7673         (print_scattering_function): Call it.
7674         (print_scop_params): Remove spaces at the end of lines.
7675         (print_cloog): New.
7676         (debug_cloog): New.
7677         * graphite-poly.h (print_cloog): Declared.
7678         (debug_cloog): Declared.
7680 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7682         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7683         in loop->header.
7684         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7685         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7686         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7687         to switch between adding the IV bump in loop->latch or in loop->header.
7689 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
7691         * graphite-poly.c (print_scattering_function): Pretty print following
7692         the scoplib format.
7693         (print_pdr): Same.
7694         (print_pbb_domain): Same.
7695         (dump_gbb_cases): Same.
7696         (dump_gbb_conditions): Same.
7697         (print_pdrs): Same.
7698         (print_pbb): Same.
7699         (print_scop_params): Same.
7700         (print_scop_context): Same.
7701         (print_scop): Same.
7702         (print_pbb_body): New.
7703         (lst_indent_to): New.
7704         (print_lst): Start new lines with a #.
7705         * graphite-poly.h (pbb_bb): New.
7706         (pbb_index): Use pbb_bb.
7707         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7708         disjuncts.
7709         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7711 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
7713         * dwarf2out.c (size_of_die): For -gdwarf-4 use
7714         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7715         and 0 instead of 1 for dw_val_class_flag.
7716         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7717         dw_val_class_range_list, dw_val_class_loc_list,
7718         dw_val_class_lineptr and dw_val_class_macptr, use
7719         DW_FORM_flag_present for dw_val_class_flag and
7720         DW_FORM_exprloc for dw_val_class_loc.
7721         (output_die): For -gdwarf-4 print dw_val_class_loc
7722         size as uleb128 instead of 1 or 2 bytes and don't print
7723         anything for dw_val_class_flag.
7725         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7726         instead of cselib_lookup following by tweaking locs->setting_insn.
7728         PR bootstrap/43596
7729         * cselib.c (cselib_process_insn): Clear cselib_current_insn
7730         even before returning from label, setjmp call or volatile asm
7731         handling.
7733 2010-03-31  Richard Guenther  <rguenther@suse.de>
7735         PR middle-end/43600
7736         * cgraphunit.c (cgraph_output_in_order): Do not allocate
7737         temporary data on stack.
7739 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7741         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7742         (PUSHSECTION_ASM_OP): Remove.
7743         (POPSECTION_ASM_OP): Remove.
7744         (PUSHSECTION_FORMAT): Remove.
7745         * config/sol2.h (PUSHSECTION_FORMAT): Define.
7746         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
7747         * config/sol2.c (solaris_output_init_fini): Use it.
7749 2010-03-31  Jie Zhang  <jie@codesourcery.com>
7751         PR 43574
7752         * opt-functions.awk (var_type_struct): Use signed char type
7753         for simple variables.
7755 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7757         * config/sol2.c: Include output.h.
7758         (solaris_assemble_visibility): New function.
7759         * config/t-sol2 (sol2.o): Add output.h dependency.
7760         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
7761         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
7762         Redefine.
7764 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
7766         PR target/43580
7767         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
7768         V2SImode or XFmode on PRE_DEC.
7770         PR debug/43557
7771         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
7772         BLKmode.
7774 2010-03-31  Jie Zhang  <jie@codesourcery.com>
7776         PR 43562
7777         * reload.h (caller_save_initialized_p): Declare.
7778         * toplev.c (backend_init_target): Don't call
7779         init_caller_save but set caller_save_initialized_p to false.
7780         * caller-save.c (caller_save_initialized_p): Define.
7781         (init_caller_save): Check caller_save_initialized_p.
7782         * ira.c (ira): Call init_caller_save if flag_caller_saves.
7784 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7786         PR target/39048
7787         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
7788         and soft-fp/t-softfp to tmake_file.
7789         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
7790         (LIBGCC2_TF_CEXT): Define.
7791         (TF_SIZE): Define.
7793 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
7795         PR debug/42977
7796         * cselib.c (n_useless_values): Document handling of debug locs.
7797         (n_useless_debug_values, n_debug_values): New variables.
7798         (new_elt_loc_list): Don't add to debug values, keep count.
7799         (promote_debug_loc): New.
7800         (cselib_reset_table): Zero new variables.
7801         (entry_and_rtx_equal_p): Promote debug locs.
7802         (discard_useless_locs): Increment n_useless_debug_values for
7803         debug values.
7804         (remove_useless_values): Adjust n_useless_values and n_debug_values
7805         with n_useless_debug_values.
7806         (add_mem_for_addr): Promote debug locs.
7807         (cselib_lookup_mem): Likewise.
7808         (cselib_lookup_addr): Renamed to...
7809         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
7810         (cselib_log_lookup): ... this.  Turn into...
7811         (cselib_lookup_addr): ... new wrapper.
7812         (cselib_lookup_from_insn): New.
7813         (cselib_invalidate_regno): Increment n_useless_debug_values for
7814         debug values.
7815         (cselib_invalidate_mem): Likewise.
7816         (cselib_process_insn): Take n_deleted and n_debug_values into
7817         account to guard remove_useless_value call.
7818         (cselib_finish): Zero n_useless_debug_values.
7819         * cselib.h (cselib_lookup_from_insn): Declare.
7820         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
7821         (sched_analyze_2): Likewise.
7823 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
7825         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
7826         functions.
7827         (adjust_mems): Replace narrowing SUBREG of expression containing
7828         just PLUS, MINUS, MULT and ASHIFT of registers and constants
7829         with operations in the narrower mode.
7831         PR debug/43593
7832         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
7833         regs_invalidated_by_call instead all call_used_reg_set registers.
7835 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
7837         PR middle-end/43430
7838         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
7839         pointer comparisons with types_compatible_p.
7840         * tree-vect-stmts.c (vectorizable_call): Same.
7841         (vectorizable_condition): Same.
7843 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7845         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
7846         stack check if the mask would be zero.
7848 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
7849             Jack Howarth <howarth@bromo.med.uc.edu>
7851         * tree-profile.c (tree_init_ic_make_global_vars): Make static
7852         variables TLS.
7854 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
7856         PR other/25232
7857         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
7858         and __unordtf2.
7859         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
7860         Include ___unordxf2 and ___unordtf2.
7861         * config/i386/libgcc-glibc.ver: Do not define inheritance from
7862         GCC_4.4.0 here.
7864 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
7866         * config/lm32/t-lm32: New file.
7867         * config.gcc: Use the above file when targetting lm32.
7869 2010-03-28  Duncan Sands  <baldrick@free.fr>
7871         * Makefile.in (PLUGIN_HEADERS): Add except.h.
7873 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
7875         PR middle-end/43431
7876         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
7877         Improve vectorization cost model diagnostic.
7879 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
7881         PR middle-end/43436
7882         * tree-vect-data-refs.c (vect_analyze_data_refs): When
7883         compute_data_dependences_for_loop returns false, early exit
7884         and output an extra diagnostic for the failed data reference
7885         analysis.
7887 2010-03-29  Richard Guenther  <rguenther@suse.de>
7889         PR tree-optimization/43560
7890         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
7891         (can_sm_ref_p): Treat stores to readonly locations as trapping.
7893 2010-03-29  Jie Zhang  <jie@codesourcery.com>
7895         PR 43564
7896         * toplev.c (process_options): Set optimization_default_node
7897         and optimization_current_node.
7898         * opts.c (decode_options): Don't set optimization_default_node
7899         and optimization_current_node.
7901 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
7903         * config/rtems.h: Abandon -qrtems_debug.
7905 2010-03-28  Jan Hubicka  <jh@suse.cz>
7907         PR tree-optimization/43505
7908         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
7909         map should not be copied.
7911 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7913         PR middle-end/41674
7914         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
7915         cdtors, set DECL_PRESERVE_P.
7916         * ipa.c (cgraph_externally_visible_p): Return true if declaration
7917         should be preseved.
7919 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
7921         PR tree-optimization/43528
7922         * stor-layout.c (place_field): Check that constant fits into
7923         unsigned HWI when skipping calculation of MS bitfield layout.
7925 2010-03-27  Jan Hubicka  <jh@suse.cz>
7927         PR middle-end/43391
7928         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
7929         notice_global_symbol work.
7931 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
7933         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
7934         instead of dwarf2out_decl.
7935         (struct var_loc_node): Remove section_label field.
7936         (dwarf2out_function_decl): New function.
7937         (dwarf2out_var_location): Don't set section_label field.
7938         (dwarf2out_begin_function): Don't empty decl_loc_table here.
7940 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7942         PR tree-optimization/43544
7943         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7944         First argument for builtin vectorized function hook is now a
7945         tree to be able to distinguish between machine specific and
7946         standard builtins.
7947         * targhooks.c (default_builtin_vectorized_function): Ditto.
7948         * targhooks.h (default_builtin_vectorized_function): Ditto.
7949         * target.h (struct gcc_target): Ditto.
7950         * tree-vect-stmts.c (vectorizable_function): Ditto.
7951         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
7952         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7953         Ditto.
7955 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
7957         PR c/43381
7958         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
7959         nested binding iff it is a FUNCTION_DECL.
7960         (store_parm_decls_newstyle): Pass nested=true to bind for
7961         FUNCTION_DECLs amongst parameters.
7963 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
7965         * var-tracking.c (vt_expand_loc_callback): Don't run
7966         cselib_expand_value_rtx_cb in dummy mode if
7967         cselib_dummy_expand_value_rtx_cb returned false.
7969         * var-tracking.c (emit_note_insn_var_location): For one part
7970         notes with offset 0, don't add EXPR_LIST around the location.
7971         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
7972         add_location_or_const_value_attribute): Adjust for that change.
7974         PR debug/43540
7975         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
7976         into first operand and location into second.
7977         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
7978         dw_cfi_oprnd_loc for DW_CFA_expression.
7979         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
7980         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
7981         assume first argument is regnum and second argument is location.
7983 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
7985         PR target/42113
7986         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
7987         of scratch register to DImode.  Split to DImode comparison operator.
7988         Use SImode subreg of scratch register in the multiplication.
7989         (*cmp_sadd_sidi): Ditto.
7990         (*cmp_ssub_si): Ditto.
7991         (*cmp_ssub_sidi): Ditto.
7993 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
7995         PR target/43524
7996         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
7997         Remove invalid assert and wrong comment.
7999 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
8001         PR debug/43516
8002         * flags.h (final_insns_dump_p): New extern.
8003         * final.c (final_insns_dump_p): New variable.
8004         (rest_of_clean_state): Set it before -fdump-final-insns=
8005         dumping, clear afterwards.
8006         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
8007         MEM_ALIAS_SET on MEMs.
8009 2010-03-26  David S. Miller  <davem@davemloft.net>
8011         * configure.ac: Fix sparc GOTDATA_OP bug check.
8012         * configure: Rebuild.
8014 2010-03-26  Alan Modra  <amodra@gmail.com>
8016         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
8018 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8020         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
8021         TLS_SECTION_ASM_FLAG.
8023 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
8025         PR bootstrap/43511
8026         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
8027         Clear first_function_block_is_cold.
8029         PR c/43385
8030         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
8031         argument if the argument is truth_value_p.
8033 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8035         * config/rs6000/constraints.md: Update copyright year for my changes.
8037         PR target/43484
8038         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
8039         used in reg+reg addressing, swap registers.
8041 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
8043         PR debug/43293
8044         * target.h (struct gcc_target): Add code_end hook.
8045         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
8046         if not yet defined.
8047         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
8048         * toplev.c (compile_file): Call targetm.asm_out.code_end
8049         hook before unwind info/debug info output.
8050         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
8051         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
8052         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8053         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
8054         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8055         * config/i386/i386.c (ix86_file_end): Renamed to...
8056         (ix86_code_end): ... this.  Make static.  Don't call
8057         file_end_indicate_exec_stack.  Emit unwind info using
8058         final_start_function/final_end_function.
8059         (darwin_x86_file_end): Remove.
8060         (TARGET_ASM_CODE_END): Define.
8061         * config/i386/i386.h (TARGET_ASM_FILE_END,
8062         NEED_INDICATE_EXEC_STACK): Don't define.
8063         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
8064         (TARGET_ASM_FILE_END): Define to darwin_file_end.
8065         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
8066         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
8068         PR target/43498
8069         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
8070         at the beginning and final_end_function at the end.
8071         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8073 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8075         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8076         and Sun as TLS syntax.
8077         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8078         * configure: Regenerate.
8079         * config.in: Regenerate.
8080         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8081         (default_elf_asm_named_section): Use it.
8082         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8083         (i386_output_dwarf_dtprel): Likewise.
8084         (output_addr_const_extra): Likewise.
8085         (output_pic_addr_const): Lowercase @GOTTPOFF.
8086         (output_addr_const_extra): Likewise.
8087         (output_pic_addr_const): Lowercase @GOTNTPOFF.
8088         (output_addr_const_extra): Likewise.
8089         (output_pic_addr_const): Lowercase @INDNTPOFF.
8090         (output_addr_const_extra): Likewise.
8091         (output_pic_addr_const): Lowercase @NTPOFF.
8092         (output_addr_const_extra): Likewise.
8093         (output_pic_addr_const): Lowercase @TPOFF.
8094         (output_addr_const_extra): Likewise.
8095         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8096         (*tls_global_dynamic_64): Likewise.
8097         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8098         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8100         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8101         (ASM_OUTPUT_TLS_COMMON): Use it.
8102         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8104         PR target/38118
8105         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8106         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8107         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8108         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8109         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8110         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8112 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8114         * config/i386/i386.c (override_options): Don't accept
8115         -mtls-dialect=sun any longer.
8116         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8117         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8118         (*tls_local_dynamic_base_32_sun): Likewise.
8119         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8121 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
8123         PR debug/43508
8124         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8125         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8127         PR debug/43479
8128         * ira.c (adjust_cleared_regs): New function.
8129         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8131         PR debug/19192
8132         PR debug/43479
8133         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8134         from gimple_block.
8135         * expr.c (expand_expr_real): Restore previous
8136         curr_insn_source_location and curr_insn_block after
8137         expand_expr_real_1 call.
8138         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8139         instead of expand_expr_real_1.
8141 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
8143         PR rtl-optimization/43413
8144         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8145         hard regs too.
8147 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
8149         PR target/43348
8150         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8151         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8153 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8155         * config/i386/i386.c (ix86_target_string): Add -mfma.
8156         Fix a typo in comment.
8158 2010-03-22  Mike Stump  <mikestump@comcast.net>
8160         PR target/23071
8161         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8162         Don't overly align based upon packed packed fields.
8164 2010-03-22  Jason Merrill  <jason@redhat.com>
8166         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8167         Use () rather than [], and move before the element type.
8169 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8171         * doc/configfiles.texi (Configuration Files): Removed
8172         fixinc/Makefile*, intl/Makefile.*.
8173         * doc/makefile.texi: Fixed markup. Abstract from version
8174         control system used.
8175         (Makefile): Removed obsolete gcc/java/parse.y example.
8176         * doc/sourcebuild.texi: Likewise.
8177         (Top Level): Added config, gnattools, libdecnumber, libgcc,
8178         libgomp, libssp.  Removed fastjar.
8179         (Miscellaneous Docs): Clarify location.
8180         Added COPYING3, COPYING3.LIB.
8181         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8183 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8185         PR target/38085
8186         * config/i386/i386.c (x86_function_profiler)
8187         [!NO_PROFILE_COUNTERS]: Fix typo.
8188         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8189         instead of callq.
8191 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
8192             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8194         * doc/sourcebuild.texi (Test Directives): Split into six
8195         subsections, with most of the current text in new subsections
8196         Directives, Selectors, and Final Actions.
8197         (Directives): Split list of test directives into multiple
8198         subsubsections.
8199         (Selectors): Describe use and syntax of selectors.
8200         (Effective-Target Keywords): Describe all existing keywords.
8201         (Add Options): Describe features for dg-add-options.
8202         (Require Support): Describe variants of dg-require-support.
8203         (Final Actions): Describe commands to use in dg-final.
8205 2010-03-22  Michael Matz  <matz@suse.de>
8207         PR middle-end/43475
8208         * recog.c (validate_replace_rtx_group): Replace also in
8209         REG_EQUAL and REG_EQUIV notes.
8211 2010-03-22  Richard Guenther  <rguenther@suse.de>
8213         PR tree-optimization/43390
8214         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8215         sure vector extracts are type correct.
8217 2010-03-22  Richard Guenther  <rguenther@suse.de>
8219         PR middle-end/40106
8220         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8221         x * sqrt (x) even when optimizing for size if the target
8222         has native support for sqrt.
8224 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
8226         * varasm.c (make_decl_rtl_for_debug): Also clear
8227         flag_mudflap for the duration of make_decl_rtl call.
8229         PR debug/43443
8230         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8231         locs from preserved VALUEs.
8233 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8235         PR middle-end/42718
8236         * pa.md (movmemsi): Set align to one if zero.
8237         (movmemdi): Likewise.
8239 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
8241         PR target/42321
8242         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8243         with their corresponding prologue pushes.
8245 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
8247         PR target/43156
8248         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8249         at the begining or end.
8250         (spu_expand_epilogue): Likewise.
8252 2010-03-20  Richard Guenther  <rguenther@suse.de>
8254         PR rtl-optimization/43438
8255         * combine.c (make_extraction): Properly zero-/sign-extend an
8256         extraction of the low part of a CONST_INT.  Also handle
8257         CONST_DOUBLE.
8259 2010-03-19  Mike Stump  <mikestump@comcast.net>
8261         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8262         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
8263         (override_options): Use SUBTARGET32_DEFAULT_CPU.
8265 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
8267         PR c/43211
8268         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
8269         an error.
8271 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
8273         PR rtl-optimization/42258
8274         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
8275         use that may match DEF.
8277         PR target/40697
8278         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
8279         the cost of loading the constant rather than assuming
8280         COSTS_N_INSNS (1).
8281         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
8282         outer code is AND, do the same tests as the andsi3 expander and
8283         return COSTS_N_INSNS (1) if and is cheap.
8285         * optabs.c (avoid_expensive_constant): Fix formatting.
8287 2010-03-19  Michael Matz  <matz@suse.de>
8289         PR c++/43116
8290         * attribs.c (decl_attributes): When rebuilding a function pointer
8291         type use the same qualifiers as the original pointer type.
8293 2010-03-19  Martin Jambor  <mjambor@suse.cz>
8295         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8296         and is_gimple_ip_invariant_address.
8298 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8300         Revert
8301         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8303         * config/arm/arm.c (arm_override_options): Turn off
8304         flag_dwarf2_cfi_asm for AAPCS variants.
8306 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8308         PR target/43399
8309         * config/arm/arm.c (emit_multi_reg_push): Update comments.
8310         Use PRE_MODIFY instead of PRE_DEC.
8311         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8312         (vfp_emit_fstmd): Likewise.
8314 2010-03-19  Michael Matz  <matz@suse.de>
8316         PR target/43305
8317         * builtins.c (expand_builtin_interclass_mathfn,
8318         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8319         if that fails.
8321 2010-03-19  Richard Guenther  <rguenther@suse.de>
8323         PR tree-optimization/43415
8324         * tree-ssa-pre.c (phi_translate): Split out worker to ...
8325         (phi_translate_1): ... this.
8326         (phi_translate): Move all caching here.  Cache all NARY
8327         and REFERENCE translations.
8329 2010-03-19  David S. Miller  <davem@davemloft.net>
8331         With help from Eric Botcazou.
8332         * config/sparc/sparc.c: Include dwarf2out.h.
8333         (emit_pic_helper): Delete.
8334         (pic_helper_symbol_name): Delete.
8335         (pic_helper_emitted_p): Delete.
8336         (pic_helper_needed): New.
8337         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8338         (get_pc_thunk_name): New.
8339         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
8340         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8341         Set pic_helper_needed to true.  Don't call emit_pic_helper.
8342         (sparc_expand_prologue): Update load_pic_register call.
8343         (sparc_output_mi_thunk): Likewise.
8344         (sparc_file_end): Emit a hidden comdat symbol for the PIC
8345         thunk if possible.  Output CFI information as needed.
8347 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8348             Jack Howarth <howarth@bromo.med.uc.edu>
8350         PR target/36399
8351         * config/i386/i386.h: Fix ABI on darwin x86-32.
8353 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
8355         * tree.h: Declare make_decl_rtl_for_debug.
8356         * varasm.c (make_decl_rtl_for_debug): New.
8357         * dwarf2out.c (rtl_for_decl_location): Call it.
8358         * cfgexpand.c (expand_debug_expr): Call it.
8360 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
8362         PR bootstrap/43399
8363         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8364         mem_mode.
8366         PR bootstrap/43403
8367         * var-tracking.c (vt_init_cfa_base): Do nothing if
8368         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8370 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
8372         PR debug/42873
8373         * var-tracking.c (canonicalize_vars_star): New.
8374         (dataflow_post_merge_adjust): Use it.
8376 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
8378         PR debug/43058
8379         * var-tracking.c (non_suitable_const): New function.
8380         (add_uses): For DEBUG_INSNs with constants, don't record any
8381         value, instead just the constant value itself.
8382         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8383         is not VAR_LOC_UNKNOWN_P, set var to the constant.
8384         (emit_notes_in_bb): Likewise.
8385         (emit_note_insn_var_location): For onepart variables if
8386         cur_loc is a VOIDmode constant, use DECL_MODE.
8388 2010-03-18  Martin Jambor  <mjambor@suse.cz>
8390         PR middle-end/42450
8391         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8392         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8393         all non-clones.  Moved call redirection...
8394         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8395         (cgraph_materialize_all_clones): Dispose of all
8396         combined_args_to_skip bitmaps.
8397         (verify_cgraph_node): Do not check for edges pointing to wrong
8398         nodes in inline clones.
8399         * tree-inline.c (copy_bb): Call
8400         cgraph_redirect_edge_call_stmt_to_callee.
8401         * ipa.c (cgraph_remove_unreachable_nodes): Call
8402         cgraph_node_remove_callees even when there are used clones.
8404 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8406         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8408 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8410         PR target/43383
8411         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8412         for 32bit.
8414 2010-03-18  Michael Matz  <matz@suse.de>
8416         PR middle-end/43419
8417         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8418         into sqrt(x) if we need to preserve signed zeros.
8420 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
8421             Eric Botcazou  <ebotcazou@adacore.com>
8423         PR rtl-optimization/43360
8424         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8425         note if we don't know its invariant status.
8427 2010-03-18  Michael Matz  <matz@suse.de>
8429         PR tree-optimization/43402
8430         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8431         PHI chains of ssa names registered for update.
8433 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
8435         PR target/42427
8436         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8437         non-offsettable and pre_modify update addressing.
8438         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8439         and "2" alternatives "#".
8440         (*movdd_softfloat32): Make all alternatives "#";
8441         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8442         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8443         (*movdf_softfloat32): Make all alternatives "#";
8444         (movdi): Use the new DIFD mode iterator to create a common splitter
8445         for movdi, movdf and movdd patterns.
8447 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
8449         * common.opt (dumpdir): Remove redundant tab.
8451 2010-03-17  Martin Jambor  <mjambor@suse.cz>
8453         PR tree-optimization/43347
8454         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8455         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8457 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
8459         PR rtl-optimization/42216
8460         * regrename.c (create_new_chain): New function, broken out from...
8461         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
8462         appending a use to an empty chain.
8463         (build_def_use): Remove previous changes that convert OP_INOUT to
8464         OP_OUT operands; instead detect the case where an OP_INOUT operand
8465         uses a previously untracked register and create an empty chain for it.
8467 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8469         * doc/extend.texi (Function Attributes): Rewrite unfinished
8470         sentence in ms_abi documentation.
8472 2010-03-17  Alan Modra  <amodra@gmail.com>
8474         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8475         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8476         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8477         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8479 2010-03-16  Richard Henderson  <rth@redhat.com>
8481         PR middle-end/43365
8482         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8483         (lower_try_finally): Save and restore eh_seq around the expansion
8484         of the try-finally.
8486 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8488         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8489         statements before splitting block.
8491 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8493         * doc/sourcebuild.texi (Testsuites): Fix markup.
8494         Use pathnames relative to gcc/testsuite.
8495         (Test Directives): Move description of how timeout is determined.
8496         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8497         (C Tests): Correct gcc.misc-tests directory.
8498         Framework tests now live in gcc.test-framework.
8500 2010-03-16  Richard Guenther  <rguenther@suse.de>
8502         PR middle-end/43379
8503         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8504         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8506 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8507             Alexandre Oliva  <aoliva@redhat.com>
8509         PR tree-optimization/42917
8510         * lambda-code.c (remove_iv): Skip debug statements.
8511         (lambda_loopnest_to_gcc_loopnest): Likewise.
8512         (not_interesting_stmt): Debug statements are not interesting.
8514 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
8516         PR debug/43051
8517         PR debug/43092
8518         * cselib.c (cselib_preserve_constants,
8519         cfa_base_preserved_val): New static variables.
8520         (preserve_only_constants): New function.
8521         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8522         clear its REG_VALUES.  If cselib_preserve_constants, don't
8523         empty the whole hash table, but preserve there VALUEs with constants,
8524         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8525         (cselib_preserve_cfa_base_value): New function.
8526         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8527         (cselib_init): Change argument to int bitfield.  Set
8528         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8529         is in it.
8530         (cselib_finish): Clear cselib_preserve_constants and
8531         cfa_base_preserved_val.
8532         * cselib.h (enum cselib_record_what): New enum.
8533         (cselib_init): Change argument to int.
8534         (cselib_preserve_cfa_base_value): New prototype.
8535         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8536         * dse.c (dse_step1): Likewise.
8537         * cfgcleanup.c (thread_jump): Likewise.
8538         * sched-deps.c (sched_analyze): Likewise.
8539         * gcse.c (local_cprop_pass): Likewise.
8540         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8541         If FN is non-NULL, call the callback always and whenever it returns
8542         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
8543         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8544         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8545         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8546         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8547         * var-tracking.c: Include recog.h.
8548         (bb_stack_adjust_offset): Remove.
8549         (vt_stack_adjustments): Don't call it, instead just gather the
8550         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8551         (adjust_stack_reference): Remove.
8552         (compute_cfa_pointer): New function.
8553         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8554         (struct adjust_mem_data): New type.
8555         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8556         functions.
8557         (get_address_mode): New function.
8558         (replace_expr_with_values): Use it.
8559         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8560         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
8561         (adjust_sets): Remove.
8562         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8563         Use get_address_mode.
8564         (get_adjusted_src): Remove.
8565         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
8566         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
8567         (add_with_sets): Don't call adjust_sets.
8568         (fp_setter, vt_init_cfa_base): New functions.
8569         (vt_initialize): Change return type to bool.  Move most of pool etc.
8570         initialization to the beginning of the function from end.  Pass
8571         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8572         If !frame_pointer_needed, call vt_stack_adjustment before mos
8573         vector is filled, call vt_init_cfa_base if argp/framep has been
8574         eliminated to sp.  If frame_pointer_needed and argp/framep has
8575         been eliminated to hard frame pointer, set
8576         hard_frame_pointer_adjustment and call vt_init_cfa_base after
8577         encountering fp setter in the prologue.  For MO_ADJUST, call
8578         log_op_type before pusing the op into mos vector, not afterwards.
8579         Call adjust_insn before cselib_process_insn/add_with_sets,
8580         call cancel_changes (0) afterwards.
8581         (variable_tracking_main_1): Adjust for vt_initialize calling
8582         vt_stack_adjustments and returning whether it succeeded or not.
8584 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
8586         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8587         debug statements.
8589 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
8591         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8592         has been set.
8593         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8594         drap_reg has not been set.
8596 2010-03-15  Michael Matz  <matz@suse.de>
8598         PR middle-end/43300
8599         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8600         use it to expand block copies.
8601         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8602         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8603         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8605 2010-03-15  Richard Guenther  <rguenther@suse.de>
8607         PR tree-optimization/43367
8608         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8609         elimination check.
8611 2010-03-15  Richard Guenther  <rguenther@suse.de>
8613         PR tree-optimization/43317
8614         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8616 2010-03-15  Martin Jambor  <mjambor@suse.cz>
8618         PR tree-optimization/43141
8619         * tree-sra.c (create_abstract_origin): New function.
8620         (modify_function): Call create_abstract_origin.
8622 2010-03-15  Chris Demetriou  <cgd@google.com>
8624         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8625         wasn't copied.
8627 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8629         PR middle-end/43354
8630         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8631         call insert_out_of_ssa_copy for default definitions.
8633 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8635         * graphite-clast-to-gimple.c (my_long_long): Defined.
8636         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8637         * graphite-sese-to-poly.c (my_long_long): Defined.
8638         (scop_ivs_can_be_represented): Use it.
8640 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8642         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8643         graphite-max-bbs-per-function, and loop-block-tile-size.
8644         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8645         with "maximum".
8646         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8648 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8650         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8651         forward declaration.
8652         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8653         (add_upper_bounds_from_estimated_nit): New.
8654         (build_loop_iteration_domains): Use it.
8656 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8658         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8660 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8662         PR middle-end/43306
8663         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8664         should be an INTEGER_CST.  Also handle CASE_CONVERT.
8666 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8668         * graphite.c (graphite_initialize): To bound the number of bbs per
8669         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8670         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8671         * doc/invoke.texi: Document it.
8673 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8675         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8676         * graphite-sese-to-poly.h (build_poly_scop): Same.
8678 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
8680         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8681         the number of parameters in the scop.  Use as an upper bound
8682         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8683         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8684         * doc/invoke.texi: Document it.
8686 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
8688         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8689         * doc/c-tree.texi: Remove.
8690         * doc/generic.texi: Merge c-tree.texi here.
8691         * doc/gccint.texi (Trees): Remove menu entry.
8692         (c-tree.texi): Remove @include.
8693         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8694         * doc/languages.texi (Reading RTL): Ditto.
8696 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
8698         PR target/42869
8699         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8701 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8703         PR middle-end/42431
8704         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8705         code added to work around reload clobbering CONST insns.
8707 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
8709         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8710         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8711         (cselib_preserve_only_values): Remove retain argument, don't
8712         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8713         * cselib.h (cselib_preserve_only_values): Remove retain argument.
8714         * var-tracking.c (micro_operation): Move insn field before union.
8715         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8716         (struct variable_tracking_info_def): Remove n_mos field, change
8717         mos into a vector of micro_operations.
8718         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8719         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8720         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8721         changing into a vector.
8722         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
8723         come before all other uops generated by add_stores.
8724         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8725         argument removal.
8726         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
8727         a vector.  Run just one pass over the bbs instead of separate counting
8728         and computation phase.
8729         (vt_finalize): Free VTI (bb)->mos vector instead of array.
8731         PR debug/43329
8732         * tree-inline.c (remap_decls): Put old_var rather than origin_var
8733         into *nonlocalized_list vector.
8734         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8735         even if origin is non-NULL.
8736         (gen_variable_die): Likewise.
8737         (process_scope_var): Don't change origin.
8738         (gen_decl_die): Likewise.
8739         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8740         before adding new edges instead of after it, fix moving over
8741         debug stmts.
8743 2010-03-11  David S. Miller  <davem@davemloft.net>
8745         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
8746         of four.
8747         * configure: Rebuild.
8749 2010-03-11  Martin Jambor  <mjambor@suse.cz>
8751         PR tree-optimization/43257
8752         * tree.c (assign_assembler_name_if_neeeded): New function.
8753         (free_lang_data_in_cgraph): Assembler name assignment moved to the
8754         above new function.
8755         * tree.h (assign_assembler_name_if_neeeded): Declare.
8756         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
8757         the function if needed.
8759 2010-03-11  Chris Demetriou  <cgd@google.com>
8761         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
8762         include/stdint-gcc.h, and include/stdint.h world-readable.
8764 2010-03-11  Richard Guenther  <rguenther@suse.de>
8766         PR tree-optimization/43255
8767         * tree-vrp.c (process_assert_insertions_for): Do not insert
8768         asserts for trivial conditions.
8770 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8772         PR tree-optimization/43280
8773         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
8774         generation.  Move calculation of size out of the if branch.
8775         (find_bswap): Modify compare number generation.
8777 2010-03-11  Richard Guenther  <rguenther@suse.de>
8779         PR lto/43200
8780         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
8781         (input_gimple_stmt): Fixup handled component types during
8782         operand read.  Also fix up decls in ADDR_EXPRs.
8784 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
8786         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
8787         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
8789 2010-03-10  Jan Hubicka  <jh@suse.cz>
8791         PR c/43288
8792         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
8793         * varasm.c (get_variable_section): Don't do that here...
8794         (make_decl_rtl): ... and here.
8795         (do_assemble_alias): Produce decl RTL.
8796         (assemble_alias): Likewise.
8798 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
8800         PR debug/43290
8801         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
8802         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
8803         of fde->vdrap_reg.
8804         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
8805         (based_loc_descr): Only express drap or vdrap regno based expressions
8806         using DW_OP_fbreg when not optimizing.
8807         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
8808         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
8809         REG_CFA_SET_VDRAP note.
8811 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
8813         PR tree-optimization/43236
8814         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
8815         error in calculation of base address in reverse iteration case.
8816         (generate_builtin): Take number of latch executions if the statement
8817         is in the latch.
8819 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
8821         PR middle-end/42859
8822         * tree-eh.c: Include pointer-set.h.
8823         (lower_eh_dispatch): Filter out duplicate case labels and
8824         remove the unneeded edge when the label is unused.  Return
8825         true when some edges are removed.
8826         (execute_lower_eh_dispatch): When any lowering resulted in
8827         removing an edge, also delete unreachable blocks.
8829 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
8831         PR bootstrap/43287
8832         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8833         UNSPEC_MACHOPIC_OFFSET.
8835 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
8837         PR target/43294
8838         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8839         (m68k_delegitimize_address): New function.
8841 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
8843         PR debug/43299
8844         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
8846         PR debug/43299
8847         * var-tracking.c (adjust_sets): New function.
8848         (count_with_sets, add_with_sets): Use it.
8849         (get_adjusted_src): New inline function.
8850         (add_stores): Use it.
8852         PR debug/43304
8853         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
8854         call cselib_dummy_expand_value_rtx_cb instead of
8855         cselib_expand_value_rtx_cb.
8857         PR debug/43293
8858         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
8859         * config/i386/i386.c: Include debug.h and dwarf2out.h.
8860         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
8861         and .cfi_endproc around the pic thunks.
8862         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
8863         all queued unwind info register saves are saved before the call.
8864         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
8865         considered as sp-=4 for unwind info and the pop as sp+=4 which
8866         also clobbers dest, but doesn't actually restore it.
8868         PR debug/43290
8869         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
8870         RTX_FRAME_RELATED_P.
8872 2010-03-09  Jie Zhang  <jie@codesourcery.com>
8874         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
8875         whitespaces in output template.
8877 2010-03-09  Jie Zhang  <jie@codesourcery.com>
8879         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
8880         out array boundary.
8882 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
8884         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
8885         builtins.exp in a separate job.
8887 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8889         * graphite-sese-to-poly.c (add_param_constraints): Use
8890         lower_bound_in_type and upper_bound_in_type.
8892 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8894         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
8895         instead of unsigned_type_node.
8897 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8898             Reza Yazdani  <reza.yazdani@amd.com>
8900         PR middle-end/43065
8901         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
8902         on pointer type parameters.
8904 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
8906         PR middle-end/42644
8907         PR middle-end/42130
8908         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
8909         handle conversions from pointer to integers.
8910         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
8911         induction variable, to be able to work with code generated by CLooG.
8912         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
8913         (build_poly_scop): Bail out if we cannot codegen a loop.
8915 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
8917         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
8918         code generation with gloog_error.
8920 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8922         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
8923         Call fold_convert on all the returned values.
8924         (expand_scalar_variables_expr): Pass to
8925         expand_scalar_variables_ssa_name the type of the resulting expression.
8927 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8929         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
8930         ppl_min_for_le_pointset.
8931         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
8932         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
8934 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8936         * graphite-dependences.c (map_into_dep_poly): Removed.
8937         (dependence_polyhedron_1): Use combine_context_id_scat.
8939 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8941         * graphite-poly.h (struct poly_scattering): Add layout documentation.
8942         (struct poly_bb): Same.
8943         (combine_context_id_scat): New.
8945 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8947         PR middle-end/42326
8948         * sese.c (name_defined_in_loop_p): Return false for default
8949         definitions.
8951 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8953         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
8954         and clean up the logic.
8956 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
8958         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
8959         early return.
8961 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
8963         * var-tracking.c (remove_cselib_value_chains): Define only for
8964         ENABLE_CHECKING.
8965         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
8966         delete_slot_part, emit_notes_for_differences_1): Don't call
8967         remove_cselib_value_chains here.
8968         (set_slot_part, emit_notes_for_differences_2): Don't call
8969         add_cselib_value_chains here.
8970         (preserved_values): New vector.
8971         (preserve_value): New function.
8972         (add_uses, add_stores, vt_add_function_parameters): Use it
8973         instead of cselib_preserve_value.
8974         (changed_values_stack): New vector.
8975         (check_changed_vars_0): New function.
8976         (check_changed_vars_1, check_changed_vars_2): Use it.
8977         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
8978         changed_values_stack VALUEs.
8979         (vt_emit_notes): For all preserved_values call
8980         add_cselib_value_chains.  If ENABLE_CHECKING call
8981         remove_cselib_value_chains before verifying value_chains is empty.
8982         Initialize and free changed_values_stack.
8983         (vt_initialize): Initialize preserved_values.
8984         (vt_finalize): Free preserved_values.
8986 2010-03-08  Richard Guenther  <rguenther@suse.de>
8988         PR tree-optimization/43269
8989         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
8990         region detection.
8992 2010-03-08  Martin Jambor  <mjambor@suse.cz>
8994         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
8995         (ipa_is_param_called): Removed.
8996         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
8997         (ipa_print_node_params): Do not print the called flag.
8998         (ipa_write_node_info): Do not stream the called flag.
8999         (ipa_read_node_info): Likewise.
9001 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
9003         PR debug/43176
9004         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
9005         * cselib.c (struct expand_value_data): Add dummy field.
9006         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
9007         dummy to false.
9008         (cselib_dummy_expand_value_rtx_cb): New function.
9009         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
9010         any rtl.
9011         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
9012         * var-tracking.c: Include pointer-set.h.
9013         (variable): Change n_var_parts to char from int.  Add
9014         cur_loc_changed and in_changed_variables fields.
9015         (variable_canonicalize): Remove.
9016         (shared_var_p): New inline function.
9017         (unshare_variable): Maintain cur_loc_changed and
9018         in_changed_variables fields.  If var was in changed_variables,
9019         replace it there with new_var.  Just copy cur_loc instead of
9020         resetting it to something else.
9021         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
9022         (dataflow_set_union): Don't call variable_canonicalize.
9023         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
9024         of their DEBUG_EXPR_TREE_DECLs.
9025         (canonicalize_loc_order_check): Verify that cur_loc is NULL
9026         and in_changed_variables and cur_loc_changed is false.
9027         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
9028         and cur_loc_changed.  Don't update cur_loc here.
9029         (variable_merge_over_src): Don't call variable_canonicalize.
9030         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
9031         removing loc that is equal to cur_loc, clear cur_loc,
9032         set cur_loc_changed and ensure variable_was_changed is called.
9033         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
9034         compare pointers in cur_loc check, if it is equal to loc,
9035         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
9036         (variable_different_p): Remove compare_current_location argument,
9037         don't compare cur_loc.
9038         (dataflow_set_different_1): Adjust variable_different_p caller.
9039         (variable_was_changed): If dv had some var in changed_variables
9040         already, reset in_changed_variables flag for it and propagate
9041         cur_loc_changed over to the new variable.  On empty var
9042         always set cur_loc_changed.  Set in_changed_variables on whatever
9043         var is added to changed_variables.
9044         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
9045         Use shared_var_p.  When removing loc that is equal to cur_loc,
9046         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
9047         end, don't set it to something else, just call variable_was_changed.
9048         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
9049         loc being removed, clear cur_loc and set cur_loc_changed.
9050         Set cur_loc_changed if all locations have been removed.
9051         (struct expand_loc_callback_data): New type.
9052         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
9053         allocated.  Always create SUBREGs if simplify_subreg failed.
9054         Prefer to use cur_loc, when that fails and still in
9055         changed_variables (and seen first time) recompute it.  Set
9056         cur_loc_changed of variables which had to change cur_loc and
9057         compute elcd->cur_loc_changed if any of the subexpressions used
9058         had to change cur_loc.
9059         (vt_expand_loc): Adjust to pass arguments in
9060         expand_loc_callback_data structure.
9061         (vt_expand_loc_dummy): New function.
9062         (emitted_notes): New variable.
9063         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
9064         that weren't used for any other decl in current
9065         emit_notes_for_changes call call vt_expand_loc_dummy to update
9066         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
9067         first loc_chain location if NULL before.  Always use just
9068         cur_loc instead of first loc_chain location.  When cur_loc_changed
9069         is false, when not --enable-checking=rtl just don't emit any note.
9070         When rtl checking, compute the note and assert it is the same
9071         as previous note.  Clear cur_loc_changed and in_changed_variables
9072         at the end before removing from changed_variables.
9073         (check_changed_vars_3): New function.
9074         (emit_notes_for_changes): Traverse changed_vars to call
9075         check_changed_vars_3 on each changed var.
9076         (emit_notes_for_differences_1): Clear cur_loc_changed and
9077         in_changed_variables.  Recompute cur_loc of new_var.
9078         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9079         (vt_emit_notes): Initialize and destroy emitted_notes.
9081 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9083         PR rtl-optimization/42220
9084         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9085         Use verify_reg_tracked to determine if we should use OP_OUT rather
9086         than OP_INOUT.
9087         (build_def_use): If we see an in-out operand for a register that we
9088         know nothing about, treat is an output if possible, fail the block if
9089         not.
9091 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
9093         PR debug/42897
9094         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9095         permanently.
9097 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
9099         PR debug/42897
9100         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9101         uses of relevant DEFs that are dead outside the loop too.
9103 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
9105         * var-tracking.c (dataflow_set_merge): Swap src and src2.
9106         Reverted:
9107         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
9108         PR debug/41371
9109         * var-tracking.c (values_to_unmark): New variable.
9110         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9111         values_to_unmark vector.  Moved body to...
9112         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
9113         instead queue it into values_to_unmark vector.
9114         (vt_find_locations): Free values_to_unmark vector.
9116 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
9118         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9119         (site.exp): Export them when plugins are enabled.
9121 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
9123         PR middle-end/42326
9124         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9125         that contain scevs.
9126         (chrec_fold_multiply): Same.
9128 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
9130         PR c/43248
9131         * c-decl.c (build_compound_literal): Return early if init is
9132         an error_mark_node.
9134 2010-03-04  Martin Jambor  <mjambor@suse.cz>
9136         PR tree-optimization/43164
9137         PR tree-optimization/43191
9138         * tree-sra.c (type_consists_of_records_p): Reject records with
9139         zero-size bit-fields at the end.
9141 2010-03-04  Mike Stump  <mikestump@comcast.net>
9143         * Makefile.in (TAGS): Remove *.y.
9145 2010-03-04  Richard Guenther  <rguenther@suse.de>
9147         PR tree-optimization/40761
9148         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9149         in reverse order.
9150         (my_rev_post_order_compute): New function.
9151         (init_pre): Call it.
9153 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9155         PR middle-end/43209
9156         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9157         decrease the cost of an IV candidate when the cost is infinite.
9159 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9161         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9162         Use '3DNow!' for the extension of that name, ensure normal space
9163         after the string.
9164         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9166 2010-03-03  Jeff Law  <law@redhat.com>
9168         * PR middle-end/32693
9169         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9170         than gen_rtx_SUBREG.
9171         (extract_bit_field_1): Likewise.
9173 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
9175         * doc/sourcebuild.texi (Test directives): Document that arguments
9176         include-opts and exclude-opts are now optional for dg-skip-if,
9177         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9179 2010-03-03  Jason Merrill  <jason@redhat.com>
9181         PR c++/12909
9182         * cgraph.h (varpool_node): Add extra_name field.
9183         * varpool.c (varpool_extra_name_alias): New.
9184         (varpool_assemble_decl): Emit extra name aliases.
9185         (varpool_mark_needed_node): Look past an extra name alias.
9186         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9187         * lto-streamer-in.c (lto_input_tree): Read it.
9188         * lto-streamer-out.c (output_unreferenced_globals): Write it.
9190 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
9192         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9193         (sparc*-*-solaris2*): ...this.
9195 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
9197         PR debug/43229
9198         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9199         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
9200         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9201         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9203         PR debug/43237
9204         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9205         fallthrough to default handling, just with want_address 0 instead of 2.
9206         For single element lists, add_AT_loc directly, otherwise create an
9207         artificial variable DIE and stick location list to it.
9209         PR debug/43177
9210         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9211         (VAL_EXPR_HAS_REVERSE): Define.
9212         (reverse_op): New function.
9213         (add_stores): For reversible operations add an extra MO_VAL_USE.
9215 2010-03-02  Jason Merrill  <jason@redhat.com>
9217         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9219 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
9221         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9222         (sparc64-*-linux*): Likewise.
9223         (sparc64-*-solaris2*): Include assembler files before linker ones.
9224         (sparc-*-solaris2*): Simplify and reorder to match previous case.
9225         * config/sparc/gas.h: Delete.
9226         * config/sparc/sol2-64.h: Add copyright notice.
9227         * config/sparc/sol2-gas-bi.h: Likewise.
9228         * config/sparc/sol2-gld.h: Likewise.
9229         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9230         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9231         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9232         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9233         (sparc_elf_asm_named_section): Rename into...
9234         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
9236 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
9238         * config/alpha/alpha.c (override_options): Fix -mtune error message.
9240 2010-03-02  Jeff Law  <law@redhat.com>
9242         PR middle-end/42431
9243         * reload1.c (rtx_p, substitute_stack): Declare.
9244         (substitute): Record addresses of changed rtxs.
9245         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9246         Restore the original rtx when complete.
9247         (reload): Free subsitute_stack when complete.
9249 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
9251         * doc/gccint.texi (menu): Add Testsuites as a chapter.
9252         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9253         new chapter.
9254         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9255         LTO Testing, gcov Testing, profopt Testing, compat Testing,
9256         Torture Tests): Change from subsection to section.
9258 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
9259             Steven Bosscher  <steven@gcc.gnu.org>
9261         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
9262         instead of bb.
9264 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
9266         PR middle-end/42640
9267         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
9268         the assignment from the new induction variable to the assignment
9269         of the value from the original loop PHI function.
9271 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
9272             Daniel Jacobowitz  <dan@codesourcery.com>
9274         * doc/sourcebuild.texi (Test directives): Clarify options to
9275         dg-skip-if.
9277 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9279         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
9280         Disable cfi directives unless GCC and gas agree on using read-only
9281         .eh_frame sections for 64-bit.
9282         * configure: Regenerate.
9284 2010-03-01  Richard Guenther  <rguenther@suse.de>
9286         PR tree-optimization/43220
9287         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
9288         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
9290 2010-03-01  Richard Guenther  <rguenther@suse.de>
9291             Martin Jambor  <mjambor@suse.cz>
9293         PR middle-end/41250
9294         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9295         gimplified parameters.
9297 2010-03-01  Christian Bruel  <christian.bruel@st.com>
9299         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9301 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9303         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9305 2010-03-01  Richard Guenther  <rguenther@suse.de>
9307         PR middle-end/43213
9308         * expr.c (expand_assignment): Use the alias-oracle to tell
9309         if the rhs aliases the result decl.
9311 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9313         PR pch/14940
9314         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9315         to sol_gt_pch_get_address.
9316         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9317         64-bit, SPARC and x86.
9318         (sol_gt_pch_get_address): New function.
9320 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
9322         * toplev.h (inform_n, error_n): Declare.
9323         * diagnostic.c (inform_n, error_n): New function.
9325 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
9327         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9328         has no rtl yet when processing local_decls, queue it and recheck
9329         if deferred stack allocation hasn't assigned it rtl.
9331 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
9333         * config/sh/sh.c (unspec_bbr_uid): New.
9334         (gen_block_redirect): Use it instead of INSN_UID.
9335         (gen_far_branch): Likewise.
9337 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
9339         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9340         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9342 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9344         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9345         (Warning Options): -Wno-conversion-null is valid for
9346         Objective-C++ as well.
9347         * doc/tm.texi (Named Address Spaces): Likewise.
9348         * doc/plugins.texi (Plugins): Replace TABs with spaces.
9349         * doc/tree-ssa.texi (Tree SSA): Likewise.
9351 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9353         PR bootstrap/43202
9354         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9355         by default.  Don't set the default arch for
9356         i[34567]86-*-darwin*|x86_64-*-darwin*.
9358 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9360         PR bootstrap/43202
9361         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9362         default.  Set the default 32bit/64bit archs with $with_arch
9363         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9365 2010-02-27  Richard Guenther  <rguenther@suse.de>
9367         PR tree-optimization/43186
9368         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9369         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9370         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9371         unroller iterations.
9373 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9375         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9376         required and i[34567]86-*-* targets don't support 64bit ISA.
9378 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
9380         PR ada/43096
9381         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9382         the same alias set.
9384 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
9386         * config.gcc: Set the default arch at least to Prescott for
9387         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9388         if SSE math is enabled.
9390 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9392         * diagnostic.c (diagnostic_initialize): Update.
9393         (diagnostic_report_diagnostic): Test inhibit_notes_p for
9394         informative notes.
9395         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9396         (diagnostic_inhibit_notes): New.
9397         * toplev.c (process_options): inhibit notes with -fcompare-debug.
9399 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9401         PR c/20631
9402         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9403         * doc/standards.texi: Likewise.
9404         * doc/extend.texi: Likewise.
9405         * doc/trouble.texi: Likewise.
9406         * doc/cppopts.texi: Likewise.
9407         * doc/install.texi: Likewise.
9408         * c.opt (std=c90,std=gnu90): New options.
9409         * c-opts.c (c_common_handle_option): Handle them.
9411 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9413         PR c/24577
9414         * c-decl.c (undeclared_variable): Use an informative note.
9416 2010-02-26  Richard Guenther  <rguenther@suse.de>
9418         PR tree-optimization/43186
9419         * gimple.h (gimple_fold): Remove.
9420         * gimple.c (gimple_fold): Remove.  Inline into single user ...
9421         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9422         Try harder for conditions.
9424 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9426         PR debug/43190
9427         * function.c (used_types_insert): Don't skip through named pointer
9428         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
9429         and it is different from the main variant's type.
9431 2010-02-26  Nick Clifton  <nickc@redhat.com>
9433         * config/rx/rx.md (sminsi3): Remove bogus alternative.
9435 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
9437         * config.gcc: Support --with-fpmath=sse for x86.
9439         * config/i386/ssemath.h: New.
9441         * doc/install.texi (--with-fpmath=sse): Documented.
9443 2010-02-26  Richard Guenther  <rguenther@suse.de>
9445         PR tree-optimization/43188
9446         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9447         vector types of over-aligned element type.
9449 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
9451         PR target/43175
9452         * config/i386/i386.c (expand_vec_perm_blend): Use correct
9453         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
9455 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9457         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9459 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9461         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9462         * var-tracking.c: Include diagnostic.h.
9463         (debug_dv): New function.
9464         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9466         PR debug/43160
9467         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9468         (add_value_chain, add_value_chains, remove_value_chain,
9469         remove_value_chains): Handle DEBUG_EXPRs.
9470         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9472         PR debug/43161
9473         * regcprop.c (struct queued_debug_insn_change): New type.
9474         (struct value_data_entry): Add debug_insn_changes field.
9475         (struct value_data): Add n_debug_insn_changes field.
9476         (debug_insn_changes_pool): New variable.
9477         (free_debug_insn_changes, apply_debug_insn_changes,
9478         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9479         (kill_value_one_regno): Call free_debug_insn_changes if needed.
9480         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9481         fields.
9482         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9483         changes for them.
9484         (copyprop_hardreg_forward_1): Don't call apply_change_group for
9485         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
9486         changes, call cprop_find_used_regs via note_stores.
9487         (copyprop_hardreg_forward): When copying vd from predecessor
9488         which has any queued DEBUG_INSN changes, make sure the pointers are
9489         cleared.  At the end call df_analyze and then if there are any
9490         DEBUG_INSN changes queued at the end of some basic block for still
9491         live registers, apply them.
9492         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9494 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
9496         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9497         (arm*-*-*): Ditto.
9499 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
9501         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9502         targets.  Set the default with_cpu/with_arch from arch/cpu.
9503         Allow x86-64 and native for with_cpu/with_arch.
9505 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
9507         * ebitmap.c: Change calls to verify_popcount with calls to
9508         sbitmap_verify_popcount.
9509         (ebitmap_clear_bit): Fixed map->cacheindex test and
9510         map>cache update when bit clearing results in an empty
9511         element.
9513 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
9515         PR target/43154
9516         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9517         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9518         and support both V2DF and V2DI modes.
9519         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9520         support both V2DF and V2DI modes.
9521         (general): Delete trailing whitespace from a few patterns.
9523         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9524         V2DF/V2DI interleave high/low builtins.
9526         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9527         new VSX builtins.
9529         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9530         interleave high/low functions.
9532 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9534         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9535         #pragma extern_prefix.
9537 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
9539         PR debug/43166
9540         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9541         BLKmode, assert op0 is a MEM and just adjust its mode.
9543         PR debug/43165
9544         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9545         if bitpos isn't multiple of mode's bitsize.
9547 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9549         * c.opt (-ftemplate-depth=): New.
9550         (-ftemplate-depth-): Deprecate.
9551         * optc-gen.awk: Handle -ftemplate-depth=.
9552         * opth-gen.awk: Likewise.
9553         * c-opts.c (c_common_handle_option): Likewise.
9554         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9556 2010-02-24  Jason Merrill  <jason@redhat.com>
9558         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9560 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9562         * cfg.c (alloc_aux_for_block): Remove inline.
9563         (alloc_aux_for_edge): Likewise.
9565 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9567         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9569 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9571         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9572         * config/i386/sol2-gas.h: New file.
9573         * config.gcc (i[34567]86-*-solaris2*): Use it.
9575 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9577         PR c/43128
9578         * c-typeck.c (ep_convert_and_check): New.
9579         (build_conditional_expr): Use it.
9580         (build_binary_op): Likewise.
9582 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
9584         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9586         PR debug/43150
9587         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9588         bounds even for -O+.
9589         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9590         expr needs to have DECL_NAME set.
9592 2010-02-24  Nick Clifton  <nickc@redhat.com>
9594         * config/mep/mep.c: Include gimple.h.
9595         (mep_function_uses_sp): Delete unused function.
9596         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9597         parameters.  Use unsigned integers to count args.  Return a
9598         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
9600 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9602         PR target/43107
9603         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9604         greater or equal to nelt instead of 2 * nelt.
9605         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9606         with nelt - 1.
9608 2010-02-23  Jason Merrill  <jason@redhat.com>
9610         PR debug/42800
9611         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9612         in cfun->local_decls even if they have register types.
9614         PR c++/42837
9615         * stor-layout.c (place_field): Don't warn about unnecessary
9616         DECL_PACKED if the type is packed.
9618 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
9620         PR target/43139
9621         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9622         GOTOFF relocs, even when the base reg isn't pic pointer.
9624 2010-02-23  Michael Matz  <matz@suse.de>
9626         PR debug/43077
9627         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9628         (expand_gimple_basic_block): Generate and use debug temps if there
9629         are debug uses left after the last real use of TERed ssa names.
9630         Unlink debug immediate uses when they are expanded.
9632 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9634         PR 43123
9635         * config/i386/i386.c (override_options): Reorganise to provide
9636         better error messages.
9638 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9640         PR middle-end/43083
9641         * graphite-scop-detection.c (create_single_exit_edge): Move
9642         the call to find_single_exit_edge to....
9643         (create_sese_edges): ...here.  Don't handle multiple edges
9644         exiting the function.
9645         (build_graphite_scops): Don't handle multiple edges
9646         exiting the function.
9648 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9650         PR middle-end/43097
9651         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9652         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9654 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9656         PR middle-end/43026
9657         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9659 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9661         PR c++/43126
9662         * c-typeck.c (convert_arguments): Print declaration location.
9663         * c-common.c (validate_nargs): Rename as
9664         builtin_function_validate_nargs.
9665         (check_builtin_function_arguments): Update.
9667 2010-02-22  Richard Guenther  <rguenther@suse.de>
9669         PR lto/43045
9670         * tree-inline.c (declare_return_variable): Use the type of
9671         the call stmt lhs if available.
9673 2010-02-22  Duncan Sands  <baldrick@free.fr>
9675         * passes.c (register_pass): Always consider all pass lists when
9676         ref_pass_instance_number is zero.
9678 2010-02-22  Richard Guenther  <rguenther@suse.de>
9680         PR tree-optimization/42749
9681         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9682         parameter.  Do arithmetic in the original type.
9683         (update_accumulator_with_ops): Likewise.
9684         (adjust_accumulator_values): Adjust.
9686 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9688         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9689         (QI to BLKmode splitter): New splitter.
9691 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
9693         * config/i386/i386.c (initial_ix86_tune_features): Turn on
9694         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9696 2010-02-22  Richard Guenther  <rguenther@suse.de>
9698         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9700 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
9702         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9703         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9704         ($(T)crti.o, $(T)crtn.o): Remove rules.
9706 2010-02-21  Tobias Burnus  <burnus@net-b.de>
9708         PR fortran/35259
9709         * doc/invoke.texi (-fassociative-math): Document that this
9710         option is automatically enabled for Fortran.
9712 2010-02-20  David S. Miller  <davem@davemloft.net>
9714         * configure.ac: Test if linker and assembler properly support
9715         GOTDATA_OP relocations.
9716         * configure: Rebuild.
9717         * config.in: Likewise.
9718         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9719         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9720         (movsi_high_pic): Likewise.
9721         (movdi_lo_sum_pic): Likewise.
9722         (movdi_high_pic): Likewise.
9723         (movsi_pic_gotdata_op): New pattern.
9724         (movdi_pic_gotdata_op): Likewise.
9725         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9726         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9728 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
9730         PR target/43067
9731         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9732         attribute to ssemul.
9733         (xop_mulv2div2di3_high): Ditto.
9735 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9737         PR c++/35669
9738         * c.opt (Wconversion-null): New option.
9739         * doc/invoke.texi (Wconversion-null): Document.
9741 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9743         * common.opt (Wlarger-than-): Add Undocumented.
9745 2010-02-19  Mike Stump  <mikestump@comcast.net>
9747         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
9749 2010-02-19  Jason Merrill  <jason@redhat.com>
9751         PR target/40332
9752         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
9753         * configure: Likewise.
9755 2010-02-20  Alan Modra  <amodra@gmail.com>
9757         PR middle-end/42344
9758         * cgraph.h (cgraph_make_decl_local): Declare.
9759         * cgraph.c (cgraph_make_decl_local): New function.
9760         (cgraph_make_node_local): Use it.
9761         * cgraphunit.c (cgraph_function_versioning): Likewise.
9762         * ipa.c (function_and_variable_visibility): Likewise.
9764 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9766         PR bootstrap/43121
9767         * except.c (sjlj_emit_function_enter): Don't call
9768         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
9769         directly.
9770         * rtl.h (add_reg_br_prob_note): Remove prototype.
9772 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9774         PR 41779
9775         * c-common.c (conversion_warning): Remove widening conversions
9776         before checking the conversion of integers to reals.
9778 2010-02-19  Mike Stump  <mikestump@comcast.net>
9780         PR middle-end/43125
9781         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
9783         PR objc/43061
9784         * cgraphunit.c (process_function_and_variable_attributes): Check
9785         DECL_PRESERVE_P instead of looking up attribute "used".
9786         * ipa-pure-const.c (check_decl): Likewise.
9787         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
9788         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
9789         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
9790         instead of attribute "used".
9791         * config/sol2-c.c (solaris_pragma_init): Likewise.
9792         (solaris_pragma_fini): Likewise.
9794 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9796         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
9797         Use XCNEW instead of xcalloc.
9798         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
9799         XNEW instead of xmalloc.
9800         (get_fields): Use XNEWVEC instead of xmalloc.
9802         PR debug/43084
9803         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
9804         populate vars array.
9805         (create_new_general_access): For debug stmts just reset value.
9806         (get_stmt_accesses): For accesses within debug stmts just record them
9807         using add_access_to_acc_sites instead of preventing the peeling or
9808         counting them as accesses.
9810         PR middle-end/42233
9811         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
9813 2010-02-19  Richard Guenther  <rguenther@suse.de>
9815         PR tree-optimization/42916
9816         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
9817         instructions.
9819 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
9821         * configure.ac: Replace all uses of changequote in macro arguments
9822         with proper quoting.
9824 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9826         PR middle-end/42233
9827         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
9829 2010-02-19  Richard Guenther  <rguenther@suse.de>
9831         PR tree-optimization/42944
9832         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
9833         test for aliasing with errno.
9835 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
9837         PR middle-end/42233
9838         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
9839         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
9840         * dojump.c: Include output.h.
9841         (inv): New inline function.
9842         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
9843         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
9844         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
9845         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
9846         argument, pass it down to other calls.
9847         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
9848         add REG_BR_PROB note to the conditional jump.
9849         * cfgexpand.c (add_reg_br_prob_note): Removed.
9850         (expand_gimple_cond): Don't call it, add the probability
9851         as last argument to jumpif_1/jumpifnot_1.
9852         * Makefile.in (dojump.o): Depend on output.h.
9853         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
9854         callers.
9855         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
9856         * stmt.c (do_jump_if_equal): Likewise.
9857         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
9858         * loop-unswitch.c (compare_and_jump_seq): Likewise.
9859         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
9860         Likewise.
9861         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
9862         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
9863         jumpifnot_1 callers.
9864         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
9865         callers.
9866         (store_expr): Adjust jumpifnot caller.
9867         (store_constructor): Adjust jumpif caller.
9869         PR middle-end/42233
9870         * gimplify.c (gimple_boolify): For __builtin_expect call
9871         gimple_boolify also on its first argument.
9873 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
9875         * configure.ac (gnu-unique-object): Wrap regexps using [] in
9876         changequote block.
9877         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
9878         * configure: Regenerated.
9880 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9882         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
9883         lang_hooks.types_compatible_p instead of comptypes.
9885 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
9887         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
9888         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
9889         if __prefer_thumb__ is defined.
9891 2010-02-18  Martin Jambor  <mjambor@suse.cz>
9893         PR tree-optimization/43066
9894         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
9895         array with zero-sized element type.
9897 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
9899         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
9900         rtx, allocate struct var_loc_node here and return it to the
9901         caller, and only if it is actually needed.
9902         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
9903         move it earlier and return immediately if it returns NULL.
9905 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
9907         * config/sparc/gas.h: New file.  Restore
9908         TARGET_ASM_NAMED_SECTION to its ELF default.
9909         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
9910         check !HAVE_GNU_AS.
9911         * config/sparc/sparc.c (sparc_elf_asm_named_section):
9912         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
9913         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
9914         after sparc/sysv4.h.
9916 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
9918         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
9920 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
9922         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
9923         patterns from predicated pattern.
9925 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
9927         PR target/43103
9928         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
9929         for insn mnemonic suffix.
9931 2010-02-17  Richard Guenther  <rguenther@suse.de>
9933         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
9934         to loop PHI nodes.
9936 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
9938         PR debug/42918
9939         * caller-save.c (save_call_clobbered_regs): If BB ends with
9940         a DEBUG_INSN, move any notes in between last real insn and the last
9941         DEBUG_INSN after the last DEBUG_INSN.
9943 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
9945         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
9946         Fix return type.  Fix argument type.  Explain meaning of return value.
9948 2010-02-16  Richard Guenther  <rguenther@suse.de>
9950         PR tree-optimization/41043
9951         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
9952         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
9953         statements ...
9954         (vrp_visit_phi_node): ... but only for loop PHI nodes.
9956 2010-02-16  Ira Rosen  <irar@il.ibm.com>
9958         PR tree-optimization/43074
9959         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
9960         * tree-vect-loop.c (vect_analyze_loop_operations): Add
9961         vectorizable cycles in hybrid SLP check.
9962         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
9964 2010-02-16  Richard Guenther  <rguenther@suse.de>
9966         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
9967         (true_dependence): If memrefs_conflict_p computes must-alias
9968         trust it.  Move TBAA check after offset-based disambiguation.
9969         (canon_true_dependence): Likewise.
9971 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
9973         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
9974         * doc/invoke.texi: Document it.
9975         * var-tracking.c: Include toplev.h and params.h.
9976         (vt_find_locations): Return bool indicating success.  Compute
9977         hash sizes unconditionally.  Check new parameter, report.
9978         (variable_tracking_main_1): Check vt_find_locations results and
9979         retry.  Renamed from...
9980         (variable_tracking_main): ... this.  New wrapper to preserve
9981         flag_var_tracking_assignments.
9982         * Makefile.in (var-tracking.o): Adjust dependencies.
9984 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
9985             Jakub Jelinek <jakub@redhat.com>
9987         PR target/42854
9988         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
9989         if weak_import attribute is present.
9990         * config/darwin.c (machopic_select_section): Likewise.
9992 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
9994         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
9995         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
9996         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
9997         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
9999         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
10000         types.
10002         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
10003         Fix argument types.
10005         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
10006         Rewrite text to refer to the names.
10008 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
10010         * config/i386/i386-builtin-types.def
10011         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
10012         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
10013         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
10014         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
10015         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
10016         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
10017         IX86_BUILTIN_VPERMIL2PS256.
10018         (MULTI_ARG_4_DF2_DI_I): Defined.
10019         (MULTI_ARG_4_DF2_DI_I1): Defined.
10020         (MULTI_ARG_4_SF2_SI_I): Defined.
10021         (MULTI_ARG_4_SF2_SI_I1): Defined.
10022         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
10023         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
10024         __builtin_ia32_vpermil2ps256.
10025         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10026         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10027         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
10028         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10029         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10030         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
10031         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
10032         CODE_FOR_xop_vpermil2v8sf3.
10033         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
10034         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
10035         * config/i386/xopintrin.h (_mm_permute2_pd): New.
10036         (_mm256_permute2_pd): New.
10037         (_mm_permute2_ps): New.
10038         (_mm256_permute2_ps): New.
10040 2010-02-15  Nick Clifton  <nickc@redhat.com>
10042         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
10043         boolean parameters.  Use emit_jump_insn when emitting a pop
10044         instruction containing a return insn.
10045         (push): Use 'true' rather than '1' as second parameter to F.
10046         (h8300_expand_prologue): Likewise.
10047         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
10048         (h8300_expand_epilogue): Likewise.
10050 2010-02-15  Richard Guenther  <rguenther@suse.de>
10052         PR middle-end/43068
10053         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
10054         if that is zero.
10056 2010-02-15  Nick Clifton  <nickc@redhat.com>
10058         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
10059         delta.
10061 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
10063         * intl.c (fake_ngettext): New function.
10064         * intl.h (fake_ngettext): Declare.
10065         (ngettext): Define macro.
10066         * collect2.c (notice_translated): New function.
10067         (main): Use notice_translated and ngettext.
10068         * collect2.h (notice_translated): Declare.
10070 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10072         * reorg.c (delete_computation): Comment fixes.
10073         * caller-save.c (setup_save_areas): Idem.
10074         * sel-sched-dump.c (dump_lv_set): Idem.
10075         * rtl.def: Idem.
10077 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10079         * config/s390/s390.c (s390_sched_init): New function.
10080         (TARGET_SCHED_INIT): Target hook defined.
10082 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
10083             Jack Howarth  <howarth@bromo.med.uc.edu>
10084             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10086         PR target/42982
10087         Partial revert of unintended change in fix for PR41605.
10088         * config/darwin.h: Fix typo.
10089         * config/darwin9.h: Same.
10091 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
10093         * c-pch.c (pch_init): Clear v.
10095 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10097         PR middle-end/42930
10098         * graphite-scop-detection.c (graphite_can_represent_scev): Call
10099         graphite_can_represent_init for MULT_EXPR.
10101 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10103         PR middle-end/42914
10104         PR middle-end/42530
10105         * graphite-sese-to-poly.c (remove_phi): New.
10106         (translate_scalar_reduction_to_array): Call remove_phi.
10108 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10110         PR middle-end/42771
10111         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10112         * graphite-clast-to-gimple.h (gloog): Update declaration.
10113         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10114         * graphite-poly.h (struct poly_bb): Add missing comments.
10115         (struct scop): Add poly_scop_p field.
10116         (POLY_SCOP_P): New.
10117         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10118         * graphite.c (graphite_transform_loops): Build the polyhedral
10119         representation for each scop before code generation.
10120         * sese.c (rename_variables_in_operand): Removed.
10121         (rename_variables_in_expr): Return the renamed expression.
10122         (rename_sese_parameters): New.
10123         * sese.h (rename_sese_parameters): Declared.
10125 2010-02-11  Richard Guenther  <rguenther@suse.de>
10127         PR tree-optimization/42998
10128         * tree-ssa-pre.c (create_expression_by_pieces): Treat
10129         POINTER_PLUS_EXPR properly.
10131 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10132             Changpeng Fang  <changpeng.fang@amd.com>
10134         PR middle-end/40886
10135         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10136         the cost of an IV candidate when the IV is used in a test against zero.
10138         * gcc.dg/tree-ssa/ivopts-3.c: New.
10140 2010-02-11  Richard Guenther  <rguenther@suse.de>
10142         PR lto/41664
10143         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10144         pointer-vs-decl case by swapping refs.  Handle some cases
10145         of pointer-vs-decl disambiguations more conservatively.
10146         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10147         to false after expanding.
10149 2010-02-11  Richard Guenther  <rguenther@suse.de>
10151         PR driver/43021
10152         * gcc.c (process_command): Handle LTO file@offset case more
10153         appropriately.
10155 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
10157         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10158         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
10159         of DEBUG_INSNs.
10160         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10162         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10163         if MEM's mode size isn't DWARF2_ADDR_SIZE.
10164         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10165         Optimize eq/ne comparisons when both arguments are known to be
10166         zero-extended.
10167         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10168         Don't mask operands unnecessarily if they are known to be already
10169         zero-extended.
10171 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
10173         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10174         instead of loop.
10176 2010-02-10  Richard Guenther  <rguenther@suse.de>
10178         PR tree-optimization/43017
10179         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10180         for wrapping signed arithmetic.
10182 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
10184         PR debug/43010
10185         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10186         if no debug info should be emitted for it.
10188 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10190         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10191         note when flag_exceptions is set.
10193 2010-02-10  Duncan Sands  <baldrick@free.fr>
10195         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10197 2010-02-10  Richard Guenther  <rguenther@suse.de>
10199         PR c/43007
10200         * tree.c (get_unwidened): Handle constants.
10201         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10203 2010-02-10  Martin Jambor  <mjambor@suse.cz>
10205         PR lto/42985
10206         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10207         check for variable argument counts independently.
10209 2010-02-10  Christian Bruel  <christian.bruel@st.com>
10211         PR target/42841
10212         * config/sh/sh.c (find_barrier): Increase length for non delayed
10213         conditional branches.
10215 2010-02-10  Christian Bruel  <christian.bruel@st.com>
10217         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10219 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
10221         * builtins.c (set_builtin_user_assembler_name): Also handle
10222         ffs if int is smaller than word.
10224 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
10226         PR middle-end/42973
10227         * ira-conflicts.c (get_dup): Remove.
10228         (process_reg_shuffles): Add new parameter.  Use it as an
10229         additional guard for copy generation.
10230         (add_insn_allocno_copies): Rewrite.
10232 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
10234         * common.opt (fsched2-use-traces): Preserved for backward
10235         compatibility.
10236         * doc/invoke.texi: Remove the documentation about option
10237         -fsched2-use-traces.
10238         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10239         flag_sched2_use_traces.
10240         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10241         the backward compatibility flag section.
10243 2010-02-09  Richard Guenther  <rguenther@suse.de>
10245         PR tree-optimization/43008
10246         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10247         make HEAP variables initialized from global memory if they
10248         are not known builtin functions.
10249         (find_func_aliases): Adjust.
10251 2010-02-09  Richard Guenther  <rguenther@suse.de>
10253         PR tree-optimization/43000
10254         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10255         arithmetic manually.
10257 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
10259         PR tree-optimization/42931
10260         * tree-loop-linear.c (try_interchange_loops): Don't call
10261         double_int_mul if estimated_loop_iterations failed.
10263 2010-02-08  Martin Jambor  <mjambor@suse.cz>
10265         PR middle-end/42898
10266         * tree-sra.c (build_accesses_from_assign): Do not mark in
10267         should_scalarize_away_bitmap if stmt has volatile ops.
10268         (sra_modify_assign): Do not process assigns piecemeal if if stmt
10269         has volatile ops.
10271 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
10273         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
10275 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
10277         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
10278         before the pattern.
10280 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
10282         PR middle-end/42946
10283         * df-core.c (df_finish_pass): Change type of saved_flags to int.
10285 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
10287         PR middle-end/42988
10288         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
10289         to unknown_dependence.
10290         (graphite_legal_transform_dr): Handle the unknown_dependence.
10291         (graphite_carried_dependence_level_k): Same.
10293 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
10295         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10297 2010-02-07  Richard Guenther  <rguenther@suse.de>
10299         PR middle-end/42991
10300         * expr.c (get_inner_reference): Always initialize *pbitsize.
10302 2010-02-07  Richard Guenther  <rguenther@suse.de>
10304         PR middle-end/42956
10305         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10306         new ARRAY_REFs on variable size element or minimal index arrays.
10307         Complete.
10308         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10309         gimple_fold_indirect_ref.
10311 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
10313         PR target/42957
10314         * arm.c (arm_override_options): Just return if the user has specified
10315         an invalid fpu name.
10317 2010-02-03  Jason Merrill  <jason@redhat.com>
10319         PR c++/42870
10320         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10321         i386_pe_maybe_record_exported_symbol.
10323 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
10325         PR target/42924
10326         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10327         (pa_delegitimize_address): New function.
10329 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
10331         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10332         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10334 2010-02-05  Richard Guenther  <rguenther@suse.de>
10336         PR lto/42762
10337         * lto-streamer-in.c (get_resolution): Deal with references
10338         to undefined functions.
10340 2010-02-05  Richard Guenther  <rguenther@suse.de>
10342         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10343         (fold_const_aggregate_ref): Likewise.
10344         (ccp_fold_stmt): Substitute loads.
10345         (maybe_fold_reference): Verify types before substituting.
10346         Unshare properly.
10347         (fold_gimple_assign): Unshare properly.
10348         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10350 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
10352         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10353         for rs6000_gen_cell_microcode.
10355 2010-02-04  Richard Guenther  <rguenther@suse.de>
10357         PR rtl-optimization/42952
10358         * dse.c (const_or_frame_p): Remove MEM handling.
10360 2010-02-04  Nick Clifton  <nickc@redhat.com>
10362         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10363         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10364         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10365         (mn10300_asm_output_mi_thunk): New function.
10366         (mn10300_can_output_mu_thunk): New function.
10367         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10368         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
10369         (FUNCTION_ARG): Delete incorrect comment.
10371 2010-02-03  Jason Merrill  <jason@redhat.com>
10373         PR c++/40138
10374         * fold-const.c (operand_equal_p): Handle erroneous types.
10376 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10378         * config/h8300/h8300.md (can_delay): Fix attibute condition.
10380 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
10382         PR rtl-optimization/42941
10383         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10384         of xmalloc.
10386 2010-02-03  Jason Merrill  <jason@redhat.com>
10388         PR c++/35652
10389         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10391 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
10393         PR debug/42896
10394         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
10395         (cselib_reset_table): Renamed from...
10396         (cselib_reset_table_with_next_value): ... this.
10397         (cselib_get_next_uid): Renamed from...
10398         (cselib_get_next_unknown_value): ... this.
10399         * cselib.c (next_uid): Renamed from...
10400         (next_unknown_value): ... this.
10401         (cselib_clear_table): Adjust.
10402         (cselib_reset_table): Adjust.  Renamed from...
10403         (cselib_reset_table_with_next_value): ... this.
10404         (cselib_get_next_uid): Adjust.  Renamed from...
10405         (cselib_get_next_unknown_value): ... this.
10406         (get_value_hash): Use hash.
10407         (cselib_hash_rtx): Likewise.
10408         (new_cselib_val): Adjust.  Set and dump uid.
10409         (cselib_lookup_mem): Pass next_uid as hash.
10410         (cselib_subst_to_values): Likewise.
10411         (cselib_log_lookup): Dump uid.
10412         (cselib_lookup): Pass next_uid as hash.  Adjust.
10413         (cselib_process_insn): Adjust.
10414         (cselib_init): Initialize next_uid.
10415         (cselib_finish): Adjust.
10416         (dump_cselib_table): Likewise.
10417         * dse.c (canon_address): Dump value uid.
10418         * print-rtl.c (print_rtx): Print value uid.
10419         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10420         (dvuid): New type.
10421         (dv_uid): New function, sort of renamed from...
10422         (dv_htab_hash): ... this, reimplemented in terms of it and...
10423         (dv_uid2hash): ... this.  New.
10424         (variable_htab_eq): Drop excess assertions.
10425         (tie_break_pointers): Removed.
10426         (canon_value_cmp): Compare uids.
10427         (variable_post_merge_New_vals): Print uids.
10428         (vt_add_function_parameters): Adjust.
10429         (vt_initialize): Reset table.  Adjust.
10431 2010-02-03  Richard Guenther  <rguenther@suse.de>
10433         PR tree-optimization/42944
10434         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10435         (call_may_clobber_ref_p_1): Likewise.  Properly handle
10436         malloc and calloc clobbering errno.
10438 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
10440         * doc/invoke.texi: Fix name of sched1 dump.
10442         * opts.c (decode_options): Set flag_tree_switch_conversion
10443         only conditionally on optimize >= 2.
10445         * gcse.c: Assorted comment fixes in pass description.
10447 2010-02-03  Anthony Green  <green@moxielogic.com>
10449         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10450         nop padding in order to maintain alignment of storage location of
10451         target function address.
10452         (moxie_trampoline_init): Store target function address at newly
10453         aligned location.
10454         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10455         to 32.
10456         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10458 2010-02-03  Richard Guenther  <rguenther@suse.de>
10460         PR middle-end/42927
10461         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10463 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10465         * config.gcc: Reenable check for obsolete targets.
10466         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10467         mips-sgi-irix6.[0-4]*.
10469 2010-02-02  Nick Clifton  <nickc@redhat.com>
10471         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10472         constant size of 4 as being the same as 0.
10473         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10474         can take values in the range 0..4.
10476 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
10478         PR java/41991
10479         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10480         as _darwin10_Unwind_FindEnclosingFunction().
10481         * libgcc-libsystem.ver: New.
10483 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
10485         PR target/41399
10486         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10487         implicitly set registers.
10489 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
10491         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10492         (arm_override_options): Allow automatic selection of the thread
10493         pointer register if thumb2.
10494         (legitimize_pic_address): Improve code sequences for Thumb2.
10495         (arm_call_tls_get_addr): Likewise.
10496         (legitimize_tls_address): Likewise.
10497         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
10498         (pic_load_addr_32bit): ... this.  New named pattern.
10499         * thumb2.md (pic_load_addr_thumb2): Delete.
10500         (pic_load_dot_plus_four): Delete.
10501         (tls_load_dot_plus_four): New named pattern.
10503 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10505         PR libgomp/29986
10506         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10507         Document fix for TLS bug.
10509 2010-01-31  Richard Guenther  <rguenther@suse.de>
10511         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10512         conservatively correct.
10514 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10516         PR target/42850
10517         Revert:
10518         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10520         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10522 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10524         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10526 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
10528         * config.gcc: Adjust order of makefile fragments for mingw targets.
10530 2010-01-31  Richard Guenther  <rguenther@suse.de>
10532         PR middle-end/42898
10533         * gimplify.c (gimplify_init_constructor): For volatile LHS
10534         initialize a temporary.
10536 2010-01-31  Matthias Klose  <doko@ubuntu.com>
10538         * configure.ac: Fix __stack_chk_fail check for cross builds configured
10539         --with-headers
10540         * configure: Regenerate.
10542 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
10544         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10545         the same alias set and their sizes different constantness.
10546         (aliasing_component_refs_p): Revert 2009-10-24 change.
10548 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10550         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10551         unused.
10553 2010-01-29  Richard Guenther  <rguenther@suse.de>
10555         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10556         Assert we successfully updated the call.
10558 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
10560         PR rtl-optimization/42889
10561         * df.h (df_set_bb_dirty_nonlr): New prototype.
10562         * df-core.c (df_set_bb_dirty_nonlr): New function.
10563         * df-scan.c (df_insn_rescan): Call it instead of
10564         df_set_bb_dirty for DEBUG_INSNs.
10566 2010-01-29  Richard Guenther  <rguenther@suse.de>
10568         PR middle-end/37448
10569         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10570         quadratic behavior in most cases.
10572 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
10574         PR target/42891
10575         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10576         in the call to gen_x86_movsicc_0_m1.
10578 2010-01-28  Richard Guenther  <rguenther@suse.de>
10580         PR tree-optimization/42871
10581         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10583 2010-01-28  Richard Guenther  <rguenther@suse.de>
10585         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10586         into call arguments.
10588 2010-01-28  Richard Guenther  <rguenther@suse.de>
10590         PR middle-end/42883
10591         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10592         the forwarder if the destination is an EH landing pad.
10594 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
10596         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10597         block list passed to gimple_duplicate_sese_tail.
10598         (parallelize_loops): Avoid parallelization when the function
10599         has_nonlocal_label.
10600         Avoid parallelization when the preheader is IRREDUCIBLE.
10601         Try to optimize when estimated_loop_iterations_int is unresolved.
10602         Add the loop's location to the dump file.
10603         * tree-cfg.c (add_phi_args_after_redirect): Remove.
10604         (gimple_duplicate_sese_tail): Remove the check for the latch.
10605         Redirect nexits to the exit block.
10606         Remove handling of the incoming edges to the latch.
10607         Redirect the backedge from the copied latch to the exit bb.
10609 2010-01-28  Michael Matz  <matz@suse.de>
10611         PR target/42881
10612         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10613         Wrap force_reg into a sequence, emit it before user.
10615 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
10617         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10618         (arm_rev): New.
10619         (arm_legacy_rev): Likewise.
10620         (thumb_legacy_rev): Likewise.
10622 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10624         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10625         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
10626         on MEM's address failed, try avoid_constant_pool_reference and
10627         recurse if it returned something different.
10628         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10629         address, try avoid_constant_pool_reference and recurse if it
10630         returned something different.
10631         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10632         address and avoid_constant_pool_reference returned something
10633         different, don't set have_address.
10635 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
10637         PR debug/42861
10638         * var-tracking.c (val_store): Add modified argument, obey it.
10639         Adjust callers.
10640         (count_uses): Move down logging of main.
10641         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10642         don't need resolution.
10643         (emit_notes_in_bb): Likewise.
10645 2010-01-27  Richard Guenther  <rguenther@suse.de>
10647         PR middle-end/42878
10648         * tree-inline.c (remap_decl): Delay remapping of SSA name
10649         default definitions until we need them.
10651 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
10653         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10654         (rs6000_delegitimize_address): New function.
10656         * config/s390/s390.c (s390_delegitimize_address): Call
10657         delegitimize_mem_from_attrs.
10659         PR middle-end/42874
10660         * tree-inline.c (cannot_copy_type_1): Removed.
10661         (copy_forbidden): Don't forbid copying of functions containing
10662         records/unions with variable length fields.
10664 2010-01-27  Christian Bruel  <christian.bruel@st.com>
10666         Revert:
10667         PR target/42841
10668         * config/sh/sh.c (find_barrier): Increase length for non delayed
10669         conditional branches.
10671 2010-01-27  Matthias Klose  <doko@ubuntu.com>
10673         * configure.ac (gnu-unique-object): Fix ldd version check.
10674         * configure: Regenerate.
10676 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10678         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10679         HAVE_GNU_AS value.
10680         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10681         Test for HAVE_GNU_AS value.
10683 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10685         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10686         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10687         INT64_TYPE): Define.
10688         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10689         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10690         INT_LEAST64_TYPE): Define.
10691         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10692         UINT_LEAST64_TYPE): Define.
10693         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10694         INT_FAST64_TYPE): Define.
10695         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10696         UINT_FAST64_TYPE): Define.
10697         (INTMAX_TYPE, UINTMAX_TYPE): Define.
10698         (INTPTR_TYPE, UINTPTR_TYPE): Define.
10699         (SIG_ATOMIC_TYPE): Define.
10701 2010-01-26  Richard Guenther  <rguenther@suse.de>
10703         * df-scan.c (df_scan_set_bb_info): Remove assert.
10704         (df_insn_rescan_debug_internal): Merge asserts.
10705         (df_install_ref): Likewise.
10706         (df_mark_reg): Use bitmap_set_range.
10707         (df_hard_reg_used_p): Remove assert.
10708         (df_hard_reg_used_count): Likewise.
10710 2010-01-26  Richard Guenther  <rguenther@suse.de>
10712         PR rtl-optimization/42685
10713         * web.c (web_main): Ignore DEBUG_INSNs.
10715 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
10717         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10719         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10720         Fix types of fndecl and arglist parameters.
10722 2010-01-26  Richard Guenther  <rguenther@suse.de>
10724         PR middle-end/42806
10725         * tree-eh.c (unsplit_eh): Skip debug insns.
10727 2010-01-26  Richard Guenther  <rguenther@suse.de>
10729         PR tree-optimization/42250
10730         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10732 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
10734         PR fortran/42866
10735         * omp-low.c (expand_omp_sections): Only use single_pred if
10736         l2_bb is single_pred_p.
10738 2010-01-25  Christian Bruel  <christian.bruel@st.com>
10740         PR target/42841
10741         * config/sh/sh.c (find_barrier): Increase length for non delayed
10742         conditional branches.
10743         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10745 2010-01-24  David S. Miller  <davem@davemloft.net>
10747         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
10748         define if not using GAS.
10749         * config/sparc/sparc.c (sparc_elf_asm_named_section):
10750         Likewise.  Delete SECTION_MERGE code, which is only applicable
10751         when using GAS.
10753 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
10755         PR c++/42748
10756         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
10757         mangling of va_list in system headers.
10759 2010-01-23  Toon Moene  <toon@moene.org>
10761         * tree-predcom.c (combine_chains): Return NULL, not false.
10763 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
10765         * tree-loop-distribution.c (distribute_loop): Fix declaration and
10766         initialization of variable res to agree with return type.
10768 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
10770         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
10771         * tree-sra.c: Add include of expr.h.
10773 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
10775         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
10776         insert the debug stmt on the single non-EH edge from the stmt.
10778 2010-01-22  Richard Henderson  <rth@redhat.com>
10780         PR tree-opt/42833
10781         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
10782         the RHS until after generate_subtree_copies has insertted its
10783         code before the current statement.
10785 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
10787         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
10789         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
10791 2010-01-21  Martin Jambor  <mjambor@suse.cz>
10793         PR tree-optimization/42585
10794         * tree-sra.c (struct access): New field grp_total_scalarization.
10795         (dump_access): Dump the new field.
10796         (should_scalarize_away_bitmap): New variable.
10797         (cannot_scalarize_away_bitmap): Likewise.
10798         (sra_initialize): Allocate new bitmaps.
10799         (sra_deinitialize): Free new bitmaps.
10800         (create_access_1): New function.
10801         (create_access): Parts moved to create_access_1.
10802         (type_consists_of_records_p): New function.
10803         (completely_scalarize_record): Likewise.
10804         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
10805         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
10806         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
10807         access.
10808         (analyze_all_variable_accesses): Completely scalarize small eligible
10809         records.
10811 2010-01-21  Martin Jambor  <mjambor@suse.cz>
10813         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
10815 2010-01-21  Andrew Haley  <aph@redhat.com>
10817         * gcc.c (process_command): Move lang_specific_driver before
10818         setting cc_libexec_prefix.
10820 2010-01-21  Richard Guenther  <rguenther@suse.de>
10822         PR middle-end/19988
10823         * fold-const.c (negate_expr_p): Pretend only negative
10824         real constants are easily negatable.
10826 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
10827             Jason Merrill  <jason@redhat.com>
10829         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
10830         (TYPE_TRANSPARENT_AGGR): this, for union and record.
10831         * calls.c (initialize argument_information): Handle it.
10832         * c-common.c (handle_transparent_union_attribute): Use new name.
10833         * c-decl.c (finish_struct): Ditto.
10834         * c-typeck.c (type_lists_compatible_p): Ditto.
10835         (convert_for_assignment): Use new name and also handle record.
10836         * function.c (aggregate_value_p): Handle it.
10837         (pass_by_reference): Ditto.
10838         (assign_parm_data_types): Ditto.
10839         * print-tree.c (print_node): Ditto.
10840         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
10841         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
10842         * tree.c (first_field): New fn.
10844 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
10846         PR target/42818
10847         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
10848         even when linking statically, for now.
10850 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
10852         PR debug/42715
10853         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
10854         without a cselib val.
10855         (count_uses): Accept MO_VAL_SET with no val on stores.
10856         (add_stores): Likewise.
10858 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10860         * var-tracking.c (check_value_val): Add a compile time assertion.
10861         (dv_is_decl_p): Simplify.
10862         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
10863         gcc_assert if ENABLE_CHECKING.
10865 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
10867         PR debug/42782
10868         * var-tracking.c: Include tree-flow.h.
10869         (mem_dies_at_call): New.
10870         (dataflow_set_preserve_mem_locs): Use it.
10871         (dataflow_set_remove_mem_locs): Likewise.
10872         (dump_var): Renamed from dump_variable.  Adjust all callers.
10873         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
10874         * Makefile.in (var-tracking.o): Adjust deps.
10876 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
10878         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
10880 2010-01-20  Richard Guenther  <rguenther@suse.de>
10882         PR tree-optimization/42717
10883         * tree-ssa-dce.c (get_live_post_dom): Remove.
10884         (forward_edge_to_pdom): Take an arbitrary edge to copy
10885         degenerate PHI args from.
10886         (remove_dead_stmt): Use the first post-dominator even if it
10887         does not contain live statements as redirection destination.
10889 2010-01-20  Richard Guenther  <rguenther@suse.de>
10891         * tree-inline.c (estimate_num_insns): Handle EH builtins.
10893 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10895         * sel-sched.c (create_speculation_check): Remove set but not used
10896         variable twin.
10897         (try_transformation_cache): Remove set but not used variable ds.
10898         (calculate_privileged_insns): Remove set but not used variables
10899         cur_insn and min_spec_insn.
10900         (find_best_expr): Remove set but not used variable avail_n.
10901         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
10902         variable e.
10903         * cgraphunit.c (assemble_thunk): Remove set but not used variable
10904         false_label.
10905         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
10906         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
10907         new_scop_exit_edge.
10909 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
10911         PR bootstrap/42786
10912         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
10913         cpu types.  Add support for *-sse3 cpu types.
10914         (x86_64-*-*): Ditto.
10916 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10918         PR middle-end/42803
10919         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
10920         argument, call initializer_constant_valid_p_1 instead of
10921         initializer_constant_valid_p, pass CACHE to it, return NULL
10922         immediately if first call returns NULL.
10923         (initializer_constant_valid_p_1): New function.
10924         (initializer_constant_valid_p): Use it.
10926 2010-01-20  Thomas Quinot  <quinot@adacore.com>
10928         * tree.def (PLACEHOLDER_EXPR): Fix comment.
10930 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
10932         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
10933         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
10934         (loc_list_from_tree): Don't handle unsigned division.  Handle
10935         signed modulo using DW_OP_{over,over,div,mul,minus}.
10936         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
10937         modulo instead of signed.
10939 2010-01-20  DJ Delorie  <dj@redhat.com>
10941         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
10942         (Fpa): Pass it
10943         (h8300_emit_stack_adjustment): Propogate it.
10944         (push): Pass it.
10945         (h8300_expand_prologue): Likewise.
10946         (h8300_expand_epilogue): Likewise.
10948 2010-01-19  Michael Matz  <matz@suse.de>
10950         PR tree-optimization/41783
10951         * tree-data-ref.c (toplevel): Include flags.h.
10952         (dump_data_dependence_relation):  Also dump the inputs if the
10953         result will be unknown.
10954         (split_constant_offset_1): Look through some conversions.
10955         * tree-predcom.c (determine_roots_comp): Restart a new chain if
10956         the offset from last element is too large.
10957         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
10958         (reassociate_to_the_same_stmt): Handle vector registers.
10959         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
10960         (e.g. conversions).
10961         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
10962         wide_prolog_niters argument, emit widening instructions.
10963         (vect_do_peeling_for_alignment): Adjust caller, use widened
10964         variant of the iteration cound.
10965         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
10967 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10969         PR target/38697
10970         * config/arm/neon-testgen.m (emit_automatics): New parameter
10971         features. Adjust for Fixed_return_reg feature.
10972         (test_intrinsic): Call emit_automatics with new feature.
10973         * config/arm/neon.ml: Update copyright years.
10974         (features): New Fixed_return_reg feature.
10975         (ops): Update feature for Vget_low.
10977 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
10979         PR tree-optimization/42719
10980         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
10981         stmt uses.
10983         PR debug/42728
10984         * fwprop.c (all_uses_available_at): Return false if def_set dest
10985         is a REG that is used in def_insn.
10987 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
10989         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
10991         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
10992         Add argument names.
10994         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
10996         * target.h (struct gcc_target) <secondary_reload>: Change type
10997         of last argument to secondary_reload_info *.
10999 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
11001         PR target/42774
11002         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
11003         memory references with unaligned offsets.  Remove CQImode handling.
11004         (unaligned_memory_operand): Return 1 for memory references with
11005         unaligned offsets.  Remove CQImode handling.
11007 2010-01-18  Richard Guenther  <rguenther@suse.de>
11009         PR middle-end/39954
11010         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
11011         builtin calls.
11013 2010-01-18  Richard Guenther  <rguenther@suse.de>
11015         PR tree-optimization/42781
11016         * tree-ssa-structalias.c (find_what_var_points_to): Skip
11017         restrict processing only if the original variable was artificial.
11019 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
11021         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
11022         find number of popped argument bytes.
11024         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
11025         Fix the text that describes the return value for invalid insns.
11027         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
11029         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
11030         Clarify what 'cost of the -dependence' is.  Fix quoting.
11032         * toplev.c (default_get_pch_validity): Rename argument to "sz".
11033         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
11035 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
11037         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11038         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
11040 2010-01-17  Richard Guenther  <rguenther@suse.de>
11042         PR middle-end/42248
11043         * function.c (split_complex_args): Take a VEC to modify.
11044         (assign_parms_augmented_arg_list): Build a VEC instead of
11045         a chain of PARM_DECLs.
11046         (assign_parms_unsplit_complex): Take a VEC of arguments.
11047         Do not fixup unmodified parms.
11048         (assign_parms): Deal with the VEC.
11049         (gimplify_parameters): Likewise.
11051 2010-01-17  Richard Guenther  <rguenther@suse.de>
11053         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
11054         node existence check.
11055         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
11056         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
11057         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
11058         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
11059         (gimple_execute_on_growing_pred): Likewise.
11061 2010-01-17  Richard Guenther  <rguenther@suse.de>
11063         PR tree-optimization/42773
11064         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
11065         (compute_antic_aux): Likewise.
11066         (compute_partial_antic_aux): Likewise.
11068 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
11070         PR debug/42767
11071         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
11072         and US_TRUNCATE.
11074 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
11076         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11077         appearance.
11079         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11080         Fix markup for strict argument.
11082         (TARGET_SCHED_REORDER2): Fix argument types.
11084         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11085         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11087         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11088         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11090         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11091         Add argument name.
11093         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11094         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11095         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11096         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11097         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11099         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11101         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11103         (TARGET_ASM_RELOC_RW_MASK): Add return type.
11104         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11106         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11108         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11109         Use prototype.
11111         (TARGET_ASM_NAMED_SECTION): Fix argument list.
11113         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11114         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11116         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11118         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11120         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11121         referring to it.  Fix language.
11123         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11125         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11127         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11129         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11131         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11132         '@var{stream}.  Remove stray 'and'.
11134         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11136         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11138         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11140         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11141         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11143         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11144         Fix description of return value.
11145         Rename argument "sz" to "len."
11147         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11148         Clarify meaning of 'true' return value.
11150         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11152         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11153         rep_mode versus mode_rep.
11155         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11157         (TARGET_BUILTIN_DECL): Fix name.
11159         (TARGET_COMMUTATIVE_P): Fix type of first argument.
11161         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11163         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11165         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11167         (TARGET_RELAXED_ORDERING): Use @deftypevr.
11169         (TARGET_GET_DRAP_RTX): Note that this is a hook.
11170         Clarify language.
11172         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11173         Rename argument tm_fn to md_fn.
11175         (TARGET_OPTION_PRINT): Fix argument list.
11177 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
11179         PR target/42664
11180         * config/i386/i386.c (ix86_fixup_binary_operands):
11181         Revert FMA4 fixup of operands.
11183 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11185         PR gcc/42525
11186         * Makefile.in (write_entries_to_file, install-plugin):
11187         Use \012 instead of \n with tr.
11189 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
11191         * configure.ac (HAVE_AS_REF): New C macro.
11192         * configure: Regenerate.
11193         * config.in: Likewise.
11194         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11195         if HAVE_AS_REF.
11196         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11197         if HAVE_AS_REF.
11199 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
11201         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11203         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11205         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11207         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11209         (TARGET_IN_SMALL_DATA_P): Fix argument type.
11211         (TARGET_BINDS_LOCAL_P): Fix argument type.
11213         (TARGET_ASM_FILE_END): Use prototype.
11215         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11217         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11219         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11221         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11223         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11224         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11226         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11227         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11229         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11230         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11231         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11232         (TARGET_ADDR_SPACE_CONVERT): Likewise.
11234         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11236         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11238         (TARGET_INIT_BUILTINS): Use prototype.
11240         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11241         Put 'const char *' in braces.  Fix parameter types.
11242         (TARGET_INVALID_CONVERSION): Fix parameter types.
11243         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11244         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11246         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11247         Fix argument type.
11249         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11251         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11253 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
11255         * doc/tm.texi (TARGET_HELP): Fix return type.
11257         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11258         in braces.  Fix argument types.
11260         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11262         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
11264         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
11266         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
11267         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
11269         (TARGET_MANGLE_TYPE): Fix argument types.
11271         (TARGET_IRA_COVER_CLASSES): Use prototype.
11273         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
11275         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
11277         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
11279         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
11281         (TARGET_CALLEE_COPIES): Fix argument types.
11283         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
11285         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
11287         (TARGET_FUNCTION_VALUE): Fix argument types.
11289         (TARGET_RETURN_IN_MSB): Fix argument type.
11291         (TARGET_RETURN_IN_MEMORY): Fix argument types.
11293         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11295         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11297         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11298         agree with return type.
11300         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11302 2010-01-15  Jing Yu  <jingyu@google.com>
11304         PR rtl-optimization/42691
11305         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11306         a pseudo to a constant and are merged, and adjust comments.
11308 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
11310         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11312 2010-01-15  Richard Guenther  <rguenther@suse.de>
11314         PR middle-end/42739
11315         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11316         labels of computed or non-local gotos to the destination.
11317         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11318         landing pad label is the first label.
11320 2010-01-15  Richard Guenther  <rguenther@suse.de>
11322         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11324 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11326         PR target/42747
11327         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11328         to allow generation of the xssqrtdp instruction on power7.
11329         (sqrtdf2_fpr): Ditto.
11331 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11333         PR middle-end/42674
11334         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11335         functions with noreturn attribute.
11337         PR c++/42608
11338         * varasm.c (declare_weak): Add weak attribute to decl if it
11339         doesn't have one already.
11340         (assemble_external): Only add decls to weak_decls if they also
11341         have weak attribute.
11343 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
11345         * var-tracking.c (var_reg_delete): Don't delete the association
11346         between REGs and values or one-part variables if the register
11347         isn't clobbered.
11349 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11351         PR debug/42657
11352         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11353         because its first operand is a non-localized variable.
11355 2010-01-14  Martin Jambor  <mjambor@suse.cz>
11357         PR tree-optimization/42706
11358         * tree-sra.c (encountered_recursive_call): New variable.
11359         (encountered_unchangable_recursive_call): Likewise.
11360         (sra_initialize): Initialize both new variables.
11361         (callsite_has_enough_arguments_p): New function.
11362         (scan_function): Call decl and flags check only for IPA-SRA, check
11363         whether there is a recursive call and whether it has enough arguments.
11364         (all_callers_have_enough_arguments_p): New function.
11365         (convert_callers): Look for recursive calls only when
11366         encountered_recursive_call is set.
11367         (ipa_early_sra): Bail out either if
11368         !all_callers_have_enough_arguments_p or
11369         encountered_unchangable_recursive_call.
11371 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11373         * sel-sched.c: Add 2010 to copyright years.
11374         * sel-sched-ir.c: Likewise.
11375         * sel-sched-ir.h: Likewise.
11377 2010-01-14  Martin Jambor  <mjambor@suse.cz>
11379         PR tree-optimization/42714
11380         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11381         constructors specially.
11383 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11385         * config/i386/drivers-i386.c (detect_caches_intel):
11386         Add l2sizekb parameter and fill in.
11387         (host_detect_local_cpu): Add l2sizekb, fill in.
11388         Add Atom small cache heuristic.
11390 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11392         * config/i386/drivers-i386.c (detect_caches_cpuid4):
11393         Add level3 parameter and fill in.
11394         (detect_caches_intel): Handle level3 cache.
11396 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11398         * config/i386/drivers-i386.c (host_detect_local_cpu):
11399         Fix core duo detection.
11401 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11403         * config/i386/drivers-i386.c (host_detect_local_cpu):
11404         Fix Atom detection.
11406 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11408         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11409         (rs6000_variable_issue_1): this.  Use...
11410         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
11412 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11414         * sel-sched-ir.c (sel_restore_other_notes): Rename to
11415         sel_restore_notes.  Update all callers.  Call reemit_notes
11416         for all insns.
11418 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11420         PR rtl-optimization/42246
11421         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11422         loops.
11424 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11426         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11427         all successors is the same as number of successors in current region.
11429 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11431         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11432         to rename is not separable.  Otherwise check that its LHS is not NULL.
11434 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11436         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
11438 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11440         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11441         available registers when failed to discover LHS register class.
11442         Fix indentation.  Update comment.
11444 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11445             Alexander Monakov  <amonakov@ispras.ru>
11447         PR rtl-optimization/42389
11448         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11449         to can_issue_more.
11450         (advance_state_on_fence): Likewise.
11451         (sel_target_adjust_priority): Print debug output only when
11452         sched_verbose >= 4, not 2.
11453         (get_expr_cost): Do not issue all unique insns on the next cycle.
11454         (fill_insns): Initialize can_issue_more from the value saved
11455         with the fence.
11456         * sel-sched-ir.c (flist_add): New parameter issue_more.
11457         Init FENCE_ISSUE_MORE with it.
11458         (merge_fences): Likewise.
11459         (init_fences): Update call to flist_add.
11460         (add_to_fences, add_clean_fence_to_fences)
11461         (add_dirty_fence_to_fences): Likewise.
11462         (move_fence_to_fences): Update call to merge_fences.
11463         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11464         sched groups.
11465         * sel-sched-ir.h (struct _fence): New field issue_more.
11466         (FENCE_ISSUE_MORE): New accessor macro.
11468 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11470         PR rtl-optimization/42388
11471         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11472         that have no predecessors nor successors.  Do not call move_bb_info
11473         for empty blocks outside of current region.
11475 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11477         PR rtl-optimization/42294
11478         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11479         * sel-sched.c (move_exprs_to_boundary): Transitively add all
11480         originators' originators.
11482 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11484         PR rtl-optimization/39453
11485         PR rtl-optimization/42246
11486         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11487         for pipelining_p.
11488         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11490 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11491             Alexander Monakov  <amonakov@ispras.ru>
11493         PR middle-end/42245
11494         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
11495         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
11496         argument.  Update all callers.
11497         (tidy_control_flow): ... and here.  Recompute topological order
11498         of basic blocks in region if necessary.
11499         (sel_redirect_edge_and_branch): Change return type.  Return true
11500         if topological order might have been invalidated.
11501         (purge_empty_blocks): Export and move from...
11502         * sel-sched.c (purge_empty_blocks): ... here.
11503         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11504         (maybe_tidy_empty_bb): Delete prototype.
11505         (purge_empty_blocks): Declare.
11507 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
11509         PR rtl-optimization/42249
11510         * sel-sched.c (try_replace_dest_reg): When chosen register
11511         and original register is the same, do not bail out early, but
11512         still check all original insns for validity of replacing destination
11513         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11514         in this case.
11516 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11518         PR c/42721
11519         Port from no-undefined-overflow branch:
11520         2009-03-09  Richard Guenther  <rguenther@suse.de>
11522         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11524 2010-01-14  Richard Guenther  <rguenther@suse.de>
11526         PR lto/42665
11527         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11529 2010-01-14  Ira Rosen  <irar@il.ibm.com>
11531         PR tree-optimization/42709
11532         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11533         as scalar type in creation of constant vector operand.
11535 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11537         PR testsuite/42414
11538         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11539         (check-parallel-%): Match `testsuite' directory component only
11540         at the end.
11542 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
11544         PR translation/39521
11545         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11546         strings with _().
11548 2010-01-13  Richard Guenther  <rguenther@suse.de>
11550         PR tree-optimization/42730
11551         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11552         offset zero.
11554 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
11556         PR target/pr42542
11557         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11558         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11559         them signed.
11561 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
11563         * config/bfin/libgcc-bfin.ver: Regenerate based on current
11564         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
11565         ___umulsi3_highpart.
11567         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11568         rather than schedule_insns if the pass is enabled.
11570 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11572         PR tree-optimization/42704
11573         * tree-sra.c (sra_modify_assign): Do not delete assignments to
11574         SSA_NAMEs.
11576 2010-01-13  Martin Jambor  <mjambor@suse.cz>
11578         PR tree-optimization/42703
11579         * tree-sra.c (analyze_access_subtree): Check that we can build a
11580         reference to the original data within the aggregate.
11582 2010-01-13  Richard Guenther  <rguenther@suse.de>
11584         PR tree-optimization/42705
11585         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11587 2010-01-13  Richard Guenther  <rguenther@suse.de>
11589         PR middle-end/42716
11590         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11592 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
11594         PR debug/41371
11595         * var-tracking.c (values_to_unmark): New variable.
11596         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11597         values_to_unmark vector.  Moved body to...
11598         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
11599         instead queue it into values_to_unmark vector.
11600         (vt_find_locations): Free values_to_unmark vector.
11602 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
11604         * config/s390/s390.c (override_options): Set
11605         default of max-pending-list-length to 256
11607 2010-01-13  Richard Guenther  <rguenther@suse.de>
11609         PR lto/42678
11610         * tree-pass.h (PROP_gimple_lcx): New.
11611         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11612         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11613         before the final cleanup_eh.
11614         (dump_properties): Dump PROP_gimple_lcx.
11615         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11616         (tree_lower_complex_O0): Remove.
11617         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11618         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
11619         tree_lower_complex, schedule TODO_update_ssa.
11620         * lto-streamer-out.c (output_function): Stream the functions
11621         properties.
11622         * lto-streamer-in.c (input_function): Likewise.
11623         (lto_read_body): Do not override them here.
11625 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
11627         PR c/42708
11628         * c-typeck.c (build_c_cast): Fold value cast to union type before
11629         wrapping it in a CONSTRUCTOR.
11631 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11633         PR rtl-optimization/42699
11634         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11635         involved.
11637 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11639         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11640         SUBTARGET_WARN_UNUSED_SPEC): Move ...
11641         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11642         SUBTARGET_WARN_UNUSED_SPEC): ... here
11643         * config/mips/iris5.h (LIBGCC_SPEC): Define.
11645 2010-01-12  Julian Brown  <julian@codesourcery.com>
11647         * config/arm/neon-schedgen.ml (Utils): Don't try to
11648         open missing module.
11649         (find_with_result): New.
11651 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
11653         PR debug/42662
11654         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11655         sharing when canonicalizing ({lt,ge}u (plus a b) b).
11657         PR tree-optimization/42645
11658         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
11659         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11660         decl_map, set processing_debug_stmt to -1 and return name without
11661         any remapping.
11663 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
11665         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11666         binutils version, and reword target configuration description.
11668 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
11670         * config/avr/avr.h (LINKER_NAME): Remove.
11672 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
11674         PR target/42416
11675         * config/rs6000/rs6000.c (rs6000_override_options): On targets
11676         that support VSX, warn for -mno-altivec if vsx is not disabled,
11677         and disable vsx.
11679 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
11680             Shujing Zhao  <pearly.zhao@oracle.com>
11682         PR translation/42469
11683         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11684         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11685         character between option name and help text.
11686         * c.opt (imultilib): Likewise.
11688 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
11690         * lto-streamer-out.c (output_unreferenced_globals): Output static
11691         variables.
11693 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
11695         PR rtl-optimization/42621
11696         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11697         optimizing for size.
11698         (duplicate_computed_gotos): Remove now-redundant check.
11700 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
11702         PR target/37454
11703         * configure.ac: Save and restore LDFLAGS and LIBS
11704         * configure: Regenerate.
11706 2010-01-10  Richard Guenther  <rguenther@suse.de>
11708         PR middle-end/42667
11709         * builtins.c (fold_builtin_strlen): Add type argument and
11710         convert the resulting length to it.
11711         (fold_builtin_1): Adjust.
11713 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
11715         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11716         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11717         1 insn.
11718         (num_insns_constant_wide): Adjust for that change.
11720 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11722         PR debug/42631
11723         * web.c (union_defs): Add used argument, to combine uses of
11724         uninitialized regs.
11725         (entry_register): Adjust type and tests of used argument.
11726         (web_main): Widen used for new use.  Pass it to union_defs.
11727         * df.h (union_defs): Adjust prototype.
11729 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11731         PR debug/42630
11732         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11733         uses in new incoming argument.  Free body.
11734         (reset_debug_uses_in_loop): New.
11735         (analyze_insn_to_expand_var): Call the latter if the former found
11736         anything.  Fix whitespace.  Reject invalid dest overlaps before
11737         going through all insns in the loop.
11739 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11741         PR debug/42629
11742         * haifa-sched.c (dying_use_p): Debug insns don't count.
11744 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11746         PR middle-end/42363
11747         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
11748         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
11749         (verify_gimple_call): Reject LHS in noreturn calls.
11751 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11753         PR debug/42604
11754         PR debug/42395
11755         * tree-vect-loop-manip.c (adjust_info): New type.
11756         (adjust_vec): New pointer to vector.
11757         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
11758         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
11759         (slpeel_update_phis_for_duplicate_loop): Use them.
11760         (slpeel_update_phi_nodes_for_guard1): Likewise.
11761         (slpeel_update_phi_nodes_for_guard2): Likewise.
11762         (slpeel_tree_peel_loop_to_edge): Likewise.
11763         (vect_update_ivs_after_vectorizer): Likewise.
11765 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11767         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
11768         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11770 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
11772         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
11773         bogus uninitialized warning.
11775 2010-01-09  Richard Guenther  <rguenther@suse.de>
11777         PR middle-end/42512
11778         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
11779         the evolution is compatible with the initial condition.
11781 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
11783         * gcc.c (process_command): Update copyright notice dates.
11784         * gcov.c (print_version): Likewise.
11785         * gcov-dump.c (print_version): Likewise.
11786         * mips-tfile.c (main): Likewise.
11787         * mips-tdump.c (main): Likewise.
11789 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
11791         PR target/41885
11792         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
11793         (rotlhi3): Delete.
11794         (rotlhi3_8): Delete.
11795         (rotlsi3): Delete.
11796         (rotlsi3_8): Delete.
11797         (rotlsi3_16): Delete.
11798         (rotlsi3_24): Delete.
11799         (rotl<mode>3): New.
11800         (*rotw<mode>3): New.
11801         (*rotb<mode>3): New.
11802         * config/avr/avr.c (avr_rotate_bytes): New function.
11803         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
11805 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
11807         PR target/37454
11808         * configure.ac: Modify -rdynamic check.
11809         * configure: Regenerate.
11811 2010-01-08  DJ Delorie  <dj@redhat.com>
11813         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
11814         register popping order.
11816 2010-01-08  Richard Guenther  <rguenther@suse.de>
11818         PR lto/42528
11819         * c.opt (fsigned-char): Also let LTO handle this option.
11820         (funsigned-char): Likewise.
11822 2010-01-07  Richard Guenther  <rguenther@suse.de>
11824         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
11825         (gimple_op): Likewise.
11826         (gimple_op_ptr): Likewise.
11827         (gimple_assign_set_lhs): Remove gcc_assert.
11828         (gimple_assign_set_rhs1): Likewise.
11829         (gimple_assign_set_rhs2): Likewise.
11830         (gimple_call_set_lhs): Likewise.
11831         (gimple_call_set_fn): Likewise.
11832         (gimple_call_set_fndecl): Likewise.
11833         (gimple_call_fndecl): Likewise.
11834         (gimple_call_return_type): Likewise.
11835         (gimple_call_set_chain): Likewise.
11836         (gimple_call_num_args): Likewise.
11837         (gimple_call_set_arg): Likewise.
11838         (gimple_cond_set_code): Likewise.
11839         (gimple_cond_set_lhs): Likewise.
11840         (gimple_cond_set_rhs): Likewise.
11841         (gimple_cond_set_true_label): Likewise.
11842         (gimple_cond_set_false_label): Likewise.
11843         (gimple_label_set_label): Likewise.
11844         (gimple_goto_set_dest): Likewise.
11845         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
11846         (gimple_debug_bind_get_value): Likewise.
11847         (gimple_debug_bind_get_value_ptr): Likewise.
11848         (gimple_debug_bind_set_var): Likewise.
11849         (gimple_debug_bind_set_value): Likewise.
11850         (gimple_debug_bind_reset_value): Likewise.
11851         (gimple_debug_bind_has_value_p): Likewise.
11852         (gimple_return_retval_ptr): Remove gcc_assert.
11853         (gimple_return_retval): Likewise.
11854         (gimple_return_set_retval): Likewise.
11855         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
11856         (safe_referenced_var_iterator): Remove.
11857         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
11858         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
11859         (fill_referenced_var_vec): Remove.
11860         (first_readonly_imm_use): Remove redundant gcc_assert.
11861         (phi_arg_index_from_use): Combine gcc_asserts.
11862         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
11863         (first_imm_use_stmt): Remove redundant gcc_assert.
11864         * tree-cfg.c (verify_gimple_call): Verify function and chain
11865         operands.  Verify arguments.
11866         (verify_types_in_gimple_stmt): Verify condition code and labels.
11868 2010-01-07  Richard Guenther  <rguenther@suse.de>
11870         PR tree-optimization/42641
11871         * sese.c (rename_map_elt_info): Use the SSA name version, do
11872         not hash pointers.
11874 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
11876         PR tree-optimization/42625
11877         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
11878         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
11880 2010-01-07  Duncan Sands  <baldrick@free.fr>
11882         * Makefile.in (PLUGIN_HEADERS): Add version.h.
11884 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
11886         PR target/42511
11887         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
11888         note itself is not function_invariant_p.
11890 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
11892         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
11893         Do not add the DF_NOTE problem.
11894         * store-motion.c (execute_rtl_store_motion): Likewise.
11896 2010-01-07  Martin Jambor  <mjambor@suse.cz>
11898         PR tree-optimization/42157
11899         * tree-sra.c (compare_access_positions): Stabilize sort if both
11900         accesses have integer types, return zero immediately if they are the
11901         same.
11903 2010-01-06  Richard Henderson  <rth@redhat.com>
11905         PR middle-end/41883
11906         * haifa-sched.c (add_to_note_list): Merge into ...
11907         (concat_note_lists): ... here, and ...
11908         (unlink_other_notes, rm_other_notes): Merge into...
11909         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
11910         NOTE_INSN_EPILOGUE_BEG.
11912 2010-01-06  Richard Guenther  <rguenther@suse.de>
11914         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
11915         not inline regular functions into always-inline functions.
11917 2010-01-06  Nick Clifton  <nickc@redhat.com>
11919         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
11920         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
11921         used together.
11922         (OVERRIDE_OPTIONS): Delete.
11923         (OPTIMIZATION_OPTIONS): Define.
11924         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
11925         * config/rx/rx.c (rx_handle_option): Issue an error message if
11926         -mcpu=rx200 and -fpu are used together.
11927         (rx_set_optimization_options): New function.  Issue an error
11928         message if an optimization attribute attempts to reset the FPU/
11929         math optimization pairing.
11930         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
11931         * config/rx/rx.opt: Set the default to 32-bit doubles.
11932         * config/rx/t-rx: Add multilibs for -nofpu option.
11933         * doc/invoke.texi: Update documentation of RX options.
11935 2010-01-06  Richard Guenther  <rguenther@suse.de>
11937         * tree-ssa-pre.c (name_to_id): New global.
11938         (alloc_expression_id): Simplify SSA name handling.
11939         (lookup_expression_id): Likewise.
11940         (init_pre): Zero name_to_id.
11941         (fini_pre): Free it.
11943 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
11945         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
11947 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
11949         PR target/42542
11950         * config/i386/sse.md (smaxv2di3): New.
11951         (umaxv2di3): Likewise.
11952         (sminv2di3): Likewise.
11953         (uminv2di3): Likewise.
11955 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11957         PR target/42564
11958         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
11959         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
11960         (legitimize_tls_address): Likewise.
11961         (sparc_tls_referenced_p): Likewise.
11962         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
11963         and adjust calls to legitimize_pic_address.
11964         (legitimate_constant_p) Use sparc_tls_referenced_p.
11965         (legitimate_pic_operand_p): Likewise.
11966         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
11967         (sparc_tls_symbol_ref_1): Delete.
11968         (sparc_tls_referenced_p): Make static, recognize specific patterns.
11969         (legitimize_tls_address): Make static, handle CONST patterns.
11970         (legitimize_pic_address): Make static, remove unused parameter and
11971         adjust recursive calls.
11972         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
11973         and adjust call to legitimize_pic_address.
11974         (sparc_output_mi_thunk): Likewise.
11976 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
11977             H.J. Lu  <hongjiu.lu@intel.com>
11979         PR target/42542
11980         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
11981         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
11982         operands to make them signed.
11984         Revert:
11985         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11987         PR target/42542
11988         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11989         GTU to GT for V4SI and V2DI.
11991         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11992         (umin<mode>3): Removed.
11993         (uminv8hi3): New.
11994         (uminv4si3): Likewise.
11996 2010-01-05  Martin Jambor  <mjambor@suse.cz>
11998         PR tree-optimization/42462
11999         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
12000         current_function_decl to helper functions and macros.
12002 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12004         PR bootstrap/41771
12005         * flags.h: Don't include real.h.
12006         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
12007         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
12008         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
12009         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
12010         * dominance.c: Update copyright.
12011         * gimple.c (walk_gimple_op): Remove inline.
12012         * tree-ssa-reassoc.c: Include real.h.
12013         * Makefile.in (FLAGS_H): Remove $(REAL_H).
12014         (tree-ssa-reassoc.o): Depend on $(REAL_H).
12016 2010-01-05  Nick Clifton  <nickc@redhat.com>
12018         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
12019         register to push into the stack frame when the accumulator has to
12020         be saved during interrupts.
12022 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
12024         * doc/invoke.texi: Remove the documentation about option
12025         -Wunreachable-code.
12026         * common.opt (Wunreachable-code):  Preserved for backward
12027         compatibility.
12028         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
12029         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
12030         the backward compatibility flag section.
12032 2010-01-05  Richard Guenther  <rguenther@suse.de>
12034         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
12036 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
12038         PR other/42611
12039         * cfgexpand.c (expand_one_var): Diagnose too large variables.
12041         PR tree-optimization/42508
12042         * tree-sra.c (convert_callers): Check for recursive call
12043         by comparing cgraph nodes instead of decls.
12044         (modify_function): Call ipa_modify_formal_parameters also
12045         on all same_body aliases.
12047         * cgraphunit.c (cgraph_materialize_all_clones): Compare
12048         cgraph nodes when checking for same_body aliases.
12050 2010-01-05  Richard Guenther  <rguenther@suse.de>
12052         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
12053         allocation and lookup.
12054         (get_or_alloc_expr_for_constant): Likewise.
12055         (phi_translate): Sink allocation.
12057 2010-01-04  Richard Guenther  <rguenther@suse.de>
12059         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
12060         a new entry only if needed.
12061         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
12062         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
12063         hashtable lookup.
12064         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
12065         the result array.
12066         (phi_translate): Handle CONSTANTs early.
12068 2010-01-04  Martin Jambor  <mjambor@suse.cz>
12070         PR tree-optimization/42398
12071         * tree-sra.c (struct access): Removed flag grp_different_types.
12072         (dump_access): Do not dump the removed flag.
12073         (sort_and_splice_var_accesses): Do not set the removed flag.
12074         (sra_modify_expr): Check for type compatibility directly.
12076 2010-01-04  Martin Jambor  <mjambor@suse.cz>
12078         PR tree-optimization/42366
12079         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12080         edges with variable number of parameters.
12081         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12082         flag instead of asserting it.
12083         (ipa_read_node_info): Read uses_analysis_done flag.
12085 2010-01-04  Richard Guenther  <rguenther@suse.de>
12087         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12088         iterative_hash_* as intended.
12089         (vn_reference_compute_hash): Likewise.  Simplify hashing
12090         SSA names.
12091         (vn_reference_lookup_2): Likewise.
12092         (vn_nary_op_compute_hash): Likewise.
12093         (vn_phi_compute_hash): Likewise.
12094         (expressions_equal_p): Remove strange code.
12095         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12096         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
12097         (bitmap_insert_into_set_1): Take value-id as parameter.
12098         (add_to_value): Pass it.
12099         (bitmap_insert_into_set): Likewise.
12100         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
12102 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
12104         PR driver/42442
12105         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12106         (do_self_spec): For switches with SWITCH_IGNORE set set also
12107         SWITCH_IGNORE_PERMANENTLY.
12108         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12109         of SWITCH_IGNORE.
12111 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
12113         * lto-streamer-out.c (output_unreferenced_globals): Output the full
12114         tree of an unreferenced global var.
12116 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12118         PR target/42542
12119         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12120         GTU to GT for V4SI and V2DI.
12122         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12123         (umin<mode>3): Removed.
12124         (uminv8hi3): New.
12125         (uminv4si3): Likewise.
12127 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12129         PR lto/42581
12130         * collect2.c (main): Turn on trace in collect2 if -v is passed
12131         to gcc with LTO.
12133 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
12135         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
12136         description of expression operand.
12138 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
12140         * configure.ac: Add install-html to target_list for Make-hooks.
12141         * configure: Regenerate.
12142         * fortran/Make-lang.in (F95_HTMLFILES): New.
12143         (fortran.html): Use it.
12144         (fortran.install-html): New.
12145         * Makefile.in (install-html): Add lang.install-html.
12146         * java/Make-lang.in (JAVA_HTMLFILES): New.
12147         (java.html): Use it.
12148         (java.install-html): New.
12149         * objc/Make-lang.in (objc.install-html): New.
12150         * objcp/Make-lang.in (obj-c++.install-html): New.
12151         * cp/Make-lang.in (c++.install-html): New.
12152         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12153         * lto/Make-lang.in (lto.install-html): New.
12155 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12157         PR lto/42520
12158         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12160 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
12162         PR rtl-optimization/41862
12163         * store-motion.c (store_killed_in_insn, compute_store_table,
12164         remove_reachable_equiv_notes, replace_store_insn,
12165         build_store_vectors): Ignore all DEBUG_INSNs.
12167 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12169         PR lto/41564
12170         * common.opt: Add dumpdir.
12172         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12173         isn't specified.
12174         (option_map): Add --dumpdir.
12176         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12178         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12180         * opts.c (decode_options): Try dump_dir_name first if
12181         dump_base_name isn't an absolute path.
12182         (common_handle_option): Handle OPT_dumpdir.
12184         * toplev.c (dump_dir_name): New.
12185         (print_switch_values): Also ignore -dumpdir.
12187         * toplev.h (dump_dir_name): New.
12189 2010-01-03  Richard Guenther  <rguenther@suse.de>
12191         PR tree-optimization/42589
12192         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12193         double-word expansion of bswap32.
12195 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
12197         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12198         with BLOCK_FOR_INSN.
12199         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12200         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12201         noce_process_if_block): Likewise.
12202         * gcse.c (compute_local_properties, insert_expr_in_table,
12203         insert_set_in_table, canon_list_insert, find_avail_set,
12204         pre_insert_copy_insn): Likewise.
12206         * basic-block.h (BLOCK_NUM): Move from here...
12207         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12209 2010-01-03  Richard Guenther  <rguenther@suse.de>
12211         PR tree-optimization/42438
12212         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12213         contains_may_not_return_call flag.
12214         (BB_MAY_NOTRETURN): New.
12215         (valid_in_sets): Trapping nary operations are not valid
12216         in blocks that may not return.
12217         (insert_into_preds_of_block): Remove check for trapping expressions.
12218         (compute_avail): Compute also BB_MAY_NOTRETURN.
12220 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
12222         * doc/invoke.texi: Add 2010 to copyright years.
12224 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
12226         * config/sparc/sparc.c: Fix formatting nits.
12228 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
12229             Alexander Monakov  <amonakov@ispras.ru>
12231         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12233 2010-01-02  Richard Guenther  <rguenther@suse.de>
12235         PR middle-end/42577
12236         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12237         (simplify_switch_using_ranges): Mark to be removed edges
12238         as non-executable.
12240 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12242         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12244         * collect2.c (scan_libraries): Add missing argument in call to
12245         scan_prog_file.
12247 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
12249         PR target/42448
12250         * config/alpha/predicates.md (aligned_memory_operand): Return false
12251         for CQImode.
12252         (unaligned_memory_operand): Return true for CQImode.
12253         * config/alpha/alpha.c (get_aligned_mem): Assert that location
12254         doesn not cross aligned SImode word boundary.
12256 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
12258         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12259         Remove.
12260         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12261         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
12263 2010-01-02  Richard Guenther  <rguenther@suse.de>
12265         PR lto/41597
12266         * toplev.c (compile_file): Emit LTO marker properly.  Change
12267         it to __gnu_lto_v1.
12268         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
12270 2010-01-01  Richard Guenther  <rguenther@suse.de>
12272         PR debug/42455
12273         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
12275 2010-01-01  Richard Guenther  <rguenther@suse.de>
12277         PR c/42570
12278         * c-decl.c (grokdeclarator): For zero-size arrays force
12279         structural equality checks as layout_type does.
12281 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
12283         * builtins.c: Update copyright to 2010.
12285 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
12287         PR lto/42531
12288         * lto-streamer-out.c (produce_asm): Revert the last change.
12289         (copy_function): Likewise.
12291         * lto-streamer.c (lto_get_section_name): Skip any leading
12292         asterisk in name.
12294 2010-01-01  Richard Guenther  <rguenther@suse.de>
12296         PR middle-end/42559
12297         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12298         for LABEL_DECLs.
12301 Copyright (C) 2010 Free Software Foundation, Inc.
12303 Copying and distribution of this file, with or without modification,
12304 are permitted in any medium without royalty provided the copyright
12305 notice and this notice are preserved.