1 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
3 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
4 for nested functions in non-optimized compilation.
6 2010-05-31 Richard Guenther <rguenther@suse.de>
8 * tree-ssa-structalias.c (find_func_aliases): Handle
11 2010-05-30 Jan Hubicka <jh@suse.cz>
13 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
15 2010-05-30 Richard Guenther <rguenther@suse.de>
18 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
19 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
22 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
24 * config/darwin.c (output_objc_section_asm_op): Add comment.
25 (name_needs_quotes): Add '_' to list of valid comment chars.
26 (machopic_output_function_base_name): Remove unneeded quotes.
27 (darwin_encode_section_info): Adjust asm whitespace.
28 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
29 (ASM_OUTPUT_LOCAL): Ditto.
30 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
31 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
32 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
34 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
36 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
37 RS6000_OUTPUT_BASENAME unconditionally.
38 (rs6000_output_function_epilogue): Likewise.
40 2010-05-30 Jan Hubicka <jh@suse.cz>
42 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
45 2010-05-30 Richard Guenther <rguenther@suse.de>
47 * tree-cfg.c (verify_gimple_assign_single): Implement
48 verification for COND_EXPR rhs.
50 2010-05-30 Jan Hubicka <jh@suse.cz>
52 * cgraph.h (cgraph_dump_file): Declare.
53 * cgraphunit.c (cgraph_dump_file): Export.
54 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less
57 2010-05-30 Jan Hubicka <jh@suse.cz>
59 * dwarf2out.c (reference_to_unused,
60 premark_types_used_by_global_vars_helper): Avoid creation of new
63 2010-05-30 Jan Hubicka <jh@suse.cz>
65 * cgraph.h (cgraph_node_cannot_return,
66 cgraph_edge_cannot_lead_to_return): New functions.
67 * cgraph.c (cgraph_node_cannot_return,
68 cgraph_edge_cannot_lead_to_return): Use them.
69 * ipa-pure-const.c (pure_const_names): New static var.
70 (check_call): Handle calls not leading to return.
71 (pure_const_read_summary): Dump info read.
72 (propagate): Dump info about propagation process; ignore side
73 effects of functions not leading to exit; fix handling of
76 2010-05-30 Jan Hubicka <jh@suse.cz>
78 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
79 for tail call epilogues.
81 2010-05-30 Jan Hubicka <jh@suse.cz>
83 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
84 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
87 2010-05-29 Jan Hubicka <jh@suse.cz>
89 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
90 node; remove references in node we no longer keep in cgrpah but need
93 2010-05-29 Jan Hubicka <jh@suse.cz>
95 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
97 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
100 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
102 2010-05-29 Jan Hubicka <jh@suse.cz>
104 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
105 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
106 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
107 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
108 debug_names_replaced_by, debug_update_ssa): Likewise.
109 * sbitmap.c (debug_sbitmap): Likewise.
110 * genrecog.c (debug_decision, debug_decision_list): Likewise.
111 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
112 debug_tree_chain): Likewise.
113 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
114 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
115 * optabs.c (debug_optab_libfuncs): Likewise.
116 (verify_loop_closed_ssa): Likewise.
117 * value-prof.c (verify_histograms): Likewise.
118 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
119 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
120 * cfghooks.c (verify_flow_info): Likewise.
121 * fold-const.c (debug_fold_checksum): Likewise.
122 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
123 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
125 * omega.c (debug_omega_problem): Likewise.
126 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
127 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
128 * dominance.c (verify_dominators, debug_dominance_info,
129 debug_dominance_tree): Likewise.
130 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
131 * df_regno_debug, df_ref_debug,
132 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
133 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
134 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
135 * sel-sched.c (debug_state): Likewise.
136 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
138 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
139 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
140 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
141 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
143 * c-pretty-print.c (debug_c_tree): Likewise.
144 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
145 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
146 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
147 * ebitmap.c (debug_ebitmap): Likewise.
148 * function.c (debug_find_var_in_block_tree): Likewise.
149 * print-rtl.c (debug_rtx): Likewise.
150 (debug_rtx_count): Likewise.
151 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
152 * stor-layout.c (debug_rli): Likewise.
153 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
154 * tree-data-ref.c (debug_data_references,
155 debug_data_dependence_relations, debug_data_reference,
156 debug_data_dependence_relation, debug_rdg_vertex,
157 debug_rdg_component, debug_rdg): Likewise.
158 * tree-affine.c (debug_aff): Likewise.
159 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
161 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
162 * emit-rtl.c (verify_rtl_sharing): Likewise.
163 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
164 debug_value_expressions): Likewise.
165 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
166 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
167 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
168 * cfglayout.c (verify_insn_chain): Likewise.
169 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
170 debug_clast_stmt, debug_generated_program): Likewise.
171 * ggc-page.c (debug_print_page_list): Likewise.
172 * tree-ssa-ter.c (debug_ter): Likewise.
173 * graphite-dependences.c (debug_pddr): Likewise.
174 * sched-deps.c (debug_ds): Likewise.
175 * tree-ssa.c (verify_ssa): Likewise.
176 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
177 debug_scattering_functions, debug_iteration_domains, debug_pdr,
178 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
179 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
180 * tree-inline.c (debug_find_tree): Likewise.
181 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
182 debug_ppl_powerset_matrix): Likewise.
183 * var-tracking.c (debug_dv): Likewise.
184 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
185 * cfgloop.c (verify_loop_structure): Likewise.
186 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
187 * c-common.c (verify_sequence_points): Likewise.
188 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
189 debug_candidates, debug_rgn_dependencies): Likewise.
190 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
191 * debug_constraint_graph, debug_solution_for_var,
192 debug_sa_points_to_info): Likewise.
193 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
195 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
196 debug_loops, debug_loop, debug_loop_num): Likewise.
197 * passes.c (debug_pass): Likewise.
198 (dump_properties): Likewise; add cfglayout property.
199 (debug_properties): Likewise.
200 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
201 * varpool.c (debug_varpool): Likewise.
202 * regcprop.c (debug_value_data): Likewise.
203 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
204 debug_immediate_uses_for): Likewise.
206 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
209 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
210 Filter out insn-flags.h.
212 2010-05-29 Jan Hubicka <jh@suse.cz>
214 * cgraph.h (struct varpool_node_set_def,
215 struct cgraph_node_set_def): Remove unused AUX pointer.
216 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
219 2010-05-29 Jan Hubicka <jh@suse.cz>
222 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
224 2010-05-29 Richard Guenther <rguenther@suse.de>
226 * lto-streamer.c (cached_bp): New global variable.
227 (bitpack_create): Return the cached bitpack, if available.
228 (bitpack_delete): Clear and cache the bitpack, if appropriate.
229 (bp_pack_value): Remove redundant asserts.
231 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
234 * tree-if-conv.c (is_true_predicate): New.
235 (is_predicated): Use is_true_predicate.
236 (add_to_predicate_list): Same. Do not use unshare_expr.
237 (add_to_dst_predicate_list): Same.
239 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
241 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
243 (predicate_bbs): Same.
244 (clean_predicate_lists): Same.
245 (find_phi_replacement_condition): Do not AND the predicate from
248 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
251 * Makefile.in (build/gencondmd.o): Add a missing `\'.
253 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
256 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
257 (negdf2): Adjust expander pattern and use negdf2_slow.
260 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
262 * basic-block.h (struct control_flow_graph): Move last_label_uid field
264 * df.h (struct df_base_ref): Move regno field up.
265 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
266 * expr.h (struct separate_ops): Move location field up.
267 * optabs.h (struct optab_d): Move libcall_basename field down.
268 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
269 * config/i386/i386.h (struct machine_function): Convert call_abi field
270 into a bitfield. Move cfa field to the end of the structure.
272 2010-05-29 Jan Hubicka <jh@suse.cz>
274 * varpool.c (varpool_get_node): Fix lookup.
276 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
278 * config/spu/spu-protos.h: Do not include rtl.h. Protect
279 RTL specific prototypes with #ifdef RTX_CODE.
280 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
281 * config/spu/t-spu-elf: Fix dependencies.
283 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
285 2010-05-29 Mike Stump <mikestump@comcast.net>
288 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
289 TM_H when building to avoid dependency loops.
291 2010-05-29 Jan Hubicka <jh@suse.cz>
293 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
294 refs and body; not the whole node for masters of materialized
297 2010-05-29 Mike Stump <mikestump@comcast.net>
299 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
301 2010-05-29 Jan Hubicka <jh@suse.cz>
303 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
304 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
305 use of clone_function_name.
306 * cgraph.h (cgraph_create_virtual_clone,
307 cgraph_function_versioning): update prototypes.
308 (clone_function_name): Declare.
309 * ipa-cp.c (ipcp_insert_stage): Update call of
310 cgraph_create_virtual_clone.
311 * omp-low.c (create_omp_child_function_name): Use
312 cgraph_create_virtual_clone.
313 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
314 (cgraph_function_versioning): Take SUFFIX argument; produce new name
317 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
319 * vec.h: Include statistics.h
320 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
323 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
325 * c-lex.c: Do not include c-tree.h.
326 * c-pretty-print.c: Likewise.
327 * c-opts.c: Likewise.
328 * c-gimplify.c: Likewise.
329 * c-common.c: Likewise.
330 * c-dump.c: Likewise. Include c-common.h.
332 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
334 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
335 before including diagnostic-core.h.
336 (c_cpp_error): New prototype moved from c-tree.h.
337 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
338 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
339 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
340 (c_cpp_error): Prototype moved to c-common.h.
341 * Makefile.in: Update dependency for C_COMMON_H.
343 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
345 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
346 * c-common.c (c_register_addr_space): Remove here.
347 * c-decl.c (c_register_addr_space): Re-add here.
349 2010-05-28 Mike Stump <mikestump@comcast.net>
351 * config/darwin-c.c: Remove c-tree.h include.
353 2010-05-28 Joseph Myers <joseph@codesourcery.com>
355 * gcc.c: Include diagnostic.h.
356 (error_count): Remove. All users changed to use errorcount.
357 (programname): Remove. All users changed to use progname.
358 (fancy_abort, internal_error, fatal_error, error, warning, inform,
360 (execute): Don't include "Internal error" and bug reporting
361 information in argument of internal_error call.
362 (process_command): Don't increment error_count after calling
364 (input_filename): Rename to gcc_input_filename. All users
366 (main): Call diagnostic_initialize. Register delete_temp_files
367 with atexit. Use seen_error to test for errors.
368 * gcc.h: Include diagnostic-core.h.
369 (fatal_error, error, warning): Remove.
370 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
371 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
372 (gcc.o): Update dependencies.
374 2010-05-28 Jeff Law <law@redhat.com>
376 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
378 * ira.h (ira_bad_reload_regno): Declare
379 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
381 * ira-color.c (update_curr_costs): Free updated hard reg costs.
382 (ira_reassign_conflict_allocnos): Remove bogus asserts.
383 (allocno_reload_assign): Likewise.
385 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
387 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
390 2010-05-28 Richard Guenther <rguenther@suse.de>
393 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
394 Stream fixed-point constants mode.
395 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
397 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
398 Stream fixed-point constants mode.
399 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
402 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
404 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
405 only place it was called from.
406 (number_of_latch_executions): Do not return chrec_dont_know when the
407 may_be_zero is a runtime condition: instead, return a COND_EXPR
408 including the may_be_zero condition.
409 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
411 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
414 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
416 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
417 generate COND_EXPRs for degenerate_phi_result.
419 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
422 * tree-if-conv.c (if_convertible_loop_p): Check the
423 if-convertibility of phi nodes in non predicated BBs.
425 2010-05-28 Joseph Myers <joseph@codesourcery.com>
427 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
429 2010-05-28 Joseph Myers <joseph@codesourcery.com>
432 * gcc.c (inform, warning, inform): New functions.
433 (fatal_ice): Rename to internal_error; change cmsgid parameter to
434 gmsgid. All callers changed.
435 (notice): Rename to fnotice; add parameter fp. All callers
437 (fatal_error): Rename to fatal_signal. All users changed.
438 (fatal): Rename to fatal_error; change cmsgid parameter to
439 gmsgid. All callers changed.
440 (process_command): Use warning instead of error for warnings.
441 (end_going_arg): Don't use _() around argument of error.
442 (do_spec_1): Use inform for message from %n specs. Use warning
443 instead of error for warnings.
444 (main): Use inform for comparison messages. Use warning for
445 message about unused linker input.
446 (error): Increment error_count. Print "error: ".
447 * gcc.h (fatal): Change to fatal_error.
449 * config/darwin-driver.c (darwin_default_min_version): Use warning
450 instead of fprintf for warnings.
451 * cppspec.c (lang_specific_driver): Use fatal_error instead of
454 2010-05-28 Julian Brown <julian@codesourcery.com>
456 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
457 (*thumb2_addsi3_compare0_scratch): New.
458 * config/arm/constraints.md (Pv): New.
459 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
461 (*addsi3_compare0_scratch): Likewise.
463 2010-05-28 Jan Hubicka <jh@suse.cz>
465 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
467 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
468 only on local statics.
470 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
472 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
474 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
477 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
478 (OPTION_GLIBC): Define.
480 2010-05-28 Jakub Jelinek <jakub@redhat.com>
483 * dwarf2out.c (double_int_type_size_in_bits): New function.
484 (round_up_to_align): Change first argument and return value to
486 (field_byte_offset): Work internally on double_ints.
489 * builtins.c (expand_movstr): Use a temporary pseudo instead
490 of target even when target is not NULL and not const0_rtx, but
491 fails movstr predicate.
492 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
494 2010-05-28 Joseph Myers <joseph@codesourcery.com>
496 * final.c (rest_of_clean_state): Use %m in errors instead of
498 * gengtype.c (read_input_list, close_output_files): Use xstrerror
500 * toplev.c (process_options): Use %m in errors instead of strerror
502 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
505 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
507 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
508 (ix86_canonical_va_list_type): Make static. Add declaration.
509 (ix86_enum_va_list): Make static. Reindent.
510 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
511 (ix86_canonical_va_list_type): Ditto.
512 (ix86_enum_va_list): Ditto.
514 2010-05-28 Richard Guenther <rguenther@suse.de>
516 * lto-wrapper.c (run_gcc): With -save-temps generate a
517 user-visible ltrans filename. Fixup ltrans unit numbering.
519 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
521 * c-common.c (c_common_nodes_and_builtins): Replace use
522 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
523 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
524 to ix86_enum_va_list.
525 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
526 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
527 (TARGET_ENUM_VA_LIST_P): Add hook description.
528 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
529 * target.h (gcc_target): Add enum_va_list hook.
532 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
533 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
534 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
536 2010-05-28 Alan Modra <amodra@gmail.com>
539 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
540 emit_library_call machinery to set up __tls_get_addr calls.
542 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
544 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
546 2010-05-28 Dodji Seketeli <dodji@redhat.com>
548 Revert fix for PR c++/44188
549 * c-common.c (is_typedef_decl): Revert the moving of this
551 * tree.c (is_typedef_decl): ... here.
552 (typdef_variant_p): Revert the moving of this definition
553 here from gcc/cp/tree.c.
554 * c-common.h (is_typedef_decl): Revert the moving of this
556 * tree.h (is_typedef_decl): ... here.
557 (typedef_variant_p): Revert the moving of this declaration here
558 from gcc/cp/cp-tree.h
559 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
560 (gen_tagged_type_die): Revert the splitting out of ...
561 (gen_type_die_with_usage): ... this function. Revert the anonymous
562 tagged type handling.
563 (gen_typedef_die): Revert emitting DW_TAG_typedef for
564 typedefs naming anonymous tagged types.
566 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
568 * config/rs6000/rs6000-modes.def (PSImode): Delete.
570 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
572 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
573 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
575 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
577 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
578 XER_REGS to CA_REGS throughout.
579 * config/rs6000/rs6000.h: Same.
580 (ADDITIONAL_REGISTER_NAMES): Add "xer".
581 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
582 that mode_iterator "P" is the size for arithmetic carries as well.
583 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
585 2010-05-28 Jakub Jelinek <jakub@redhat.com>
588 * combine.c (struct rtx_subst_pair): Define unconditionally.
589 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
590 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
591 Call make_compound_operation on pair->to.
592 (propagate_for_debug): Don't call make_compound_operation here.
593 Always use simplify_replace_fn_rtx.
595 2010-05-27 Sterling Augustine <sterling@tensilica.com>
597 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
598 * config/xtensa/xtensa.c (override_options): Check
599 TARGET_FORCE_NO_PIC and set flag_pic.
600 * config/xtensa/xtensa.opt: Document -mforce-no-pic
602 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
605 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
606 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
608 2010-05-27 Joseph Myers <joseph@codesourcery.com>
610 * diagnostic-core.h: New. Contents moved from diagnostic.h and
612 * diagnostic.c: Don't include toplev.h.
613 (progname): Define. Moved from toplev.c.
614 (seen_error): New function.
615 * diagnostic.h: Include diagnostic-core.h.
616 (diagnostic_t, emit_diagnostic): Don't declare here.
617 * toplev.c (progname): Move to toplev.c.
618 (emit_debug_global_declarations, compile_file, finalize,
619 do_compile, toplev_main): Use seen_error.
620 * toplev.h: Include diagnostic-core.h.
621 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
622 internal_error, warning, warning_at, error, error_n, error_at,
623 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
624 verbatim, fnotice, progname): Move to diagnostic-core.h.
625 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
626 (expand_builtin_expect): Use seen_error.
627 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
628 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
629 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
630 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
631 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
632 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
633 errorcount for errors.
634 * c-opts.c (c_common_finish): Use seen_error.
635 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
636 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
637 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
638 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
639 (get_coverage_counts): Use seen_error.
640 * dwarf2out.c (dwarf2out_finish): Use seen_error.
641 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
642 gimplify_body): Use seen_error.
643 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
644 * ipa-pure-const.c (gate_pure_const): Use seen_error.
645 * ipa-reference.c (gate_reference): Use seen_error.
646 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
647 * lambda-code.c: Include diagnostic-core.h instead of
649 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
650 * lto-compress.c: Include diagnostic-core.h instead of
652 * lto-section-in.c: Include diagnostic-core.h instead of
654 * lto-streamer-out.c: Include diagnostic-core.h instead of
656 * lto-streamer.c: Include diagnostic-core.h instead of
658 (gate_lto_out): Use seen_error.
659 * matrix-reorg.c: Include diagnostic-core.h instead of
661 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
662 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
663 (gate_expand_omp, lower_omp_1): Use seen_error.
664 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
665 (rest_of_decl_compilation, rest_of_type_compilation,
666 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
667 * tree-cfg.c (label_to_block_fn): Use seen_error.
668 * tree-inline.c (optimize_inline_calls): Use seen_error.
669 * tree-mudflap.c (mudflap_finish_file): Use
671 * tree-optimize.c (gate_all_optimizations,
672 gate_all_early_local_passes, gate_all_early_optimizations): Use
674 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
675 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
676 (varpool_remove_unreferenced_decls,
677 varpool_assemble_pending_decls): Use seen_error.
678 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
679 (TOPLEV_H, DIAGNOSTIC_H): Update.
680 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
681 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
682 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
683 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
684 coverage.o, lambda-code.o): Update dependencies.
686 2010-05-25 Dodji Seketeli <dodji@redhat.com>
689 * c-common.c (is_typedef_decl): Move this definition ...
690 * tree.c (is_typedef_decl): ... here.
691 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
692 * c-common.h (is_typedef_decl): Move this declaration ...
693 * tree.h (is_typedef_decl): ... here.
694 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
695 * dwarf2out.c (is_naming_typedef_decl): New function.
696 (gen_tagged_type_die): Split out of ...
697 (gen_type_die_with_usage): ... this function. When an anonymous
698 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
699 is emitted for the typedef.
700 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
701 anonymous tagged types.
703 2010-05-27 Jason Merrill <jason@redhat.com>
705 * print-tree.c (debug_vec_tree): New fn.
706 (print_vec_tree): New fn.
707 * tree.h: Declare them.
708 * gdbinit.in (pvt): New command.
710 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
712 * gdbinit.in (pdd): New command.
714 2010-05-27 Jan Hubicka <jh@suse.cz>
716 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
717 (update_caller_keys): Return early if there are no callers;
718 only update fibheap when decresing the key.
719 (update_callee_keys): Avoid recursion.
720 (decide_inlining_of_small_functions): When badness does not match;
721 re-insert into fibheap.
723 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
725 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
726 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
727 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
728 (ALL_HOST_OBJS): Now a union of the above two.
729 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
730 all files in ALL_HOST_FRONTEND_OBJS.
731 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
733 * c-common.c: Pretend to be a backend file by undefining
734 IN_GCC_FRONTEND (still need rtl.h here).
736 2010-05-27 Jan Hubicka <jh@suse.cz>
738 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
739 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
741 2010-05-27 Jan Hubicka <jh@suse.cz>
743 * sched-ebb.c: Rename struct deps to struct deps_desc.
745 * sel-sched-ir.c: Likewise.
746 * sched-deps.c: Likewise.
747 * sched-int.h: Likewise.
748 * sched-rgn.c: Likewise.
750 2010-05-27 Jon Beniston <jon@beniston.com>
753 * config/lm32/lm32.h: Remove definition of
754 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
756 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
759 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
761 2010-05-27 Richard Guenther <rguenther@suse.de>
763 PR tree-optimization/44284
764 * tree-vect-stmts.c (vectorizable_assignment): Handle
765 sign-changing conversions as simple copy.
767 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
769 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
771 (__gthread_active_p): Check for pthread_create if compiling against
774 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
776 Support compilation for Android platform. Reimplement -mandroid.
778 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
779 (*android*): Set ANDROID_DEFAULT.
780 (arm*-*-linux*): Include linux-android.h.
781 (arm*-*-eabi*): Don't include previous -mandroid implementation.
782 * config/arm/eabi.h: Remove, move Android-specific parts ...
783 * config/linux-android.h: ... here. New file.
784 * config/arm/eabi.opt: Rename to ...
785 * config/linux-android.opt: ... this.
786 (mandroid): Allow -mno-android option. Initialize based on
788 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
789 Move logic to corresponding LINUX_TARGET_* macros.
790 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
791 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
792 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
794 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
795 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
798 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
800 Add support for Bionic C library
802 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
804 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
805 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
807 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
808 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
809 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
810 to support multiple C libraries. Handle Bionic.
811 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
812 (BIONIC_DYNAMIC_LINKER64): Define.
813 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
815 (TARGET_HAS_SINCOS): Enable for Bionic.
817 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
818 the last option specified on command line take effect.
819 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
821 (mglibc, muclibc): Update.
823 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
824 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
827 * doc/invoke.texi (-mglibc, -muclibc): Update.
828 (-mbionic): Document.
830 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
832 * c-common.h (c_register_addr_space): Add prototype.
833 (ADDR_SPACE_KEYWORD): Remove.
834 * c-common.c (c_register_addr_space): New function.
835 (c_addr_space_name): Reimplement.
836 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
838 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
839 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
841 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
842 Remove TARGET_ADDR_SPACE_KEYWORDS.
844 2010-05-27 Joseph Myers <joseph@codesourcery.com>
847 * input.h (main_input_filename): Move declaration to toplev.h.
848 * toplev.c (input_location, line_table): Move to input.c
849 * toplev.h (main_input_filename): Move declaration from input.h.
850 * tree.c (expand_location): Move to input.c.
851 * Makefile.in (OBJS-common): Add input.o.
852 (input.o): Add dependencies.
854 2010-05-27 Richard Guenther <rguenther@suse.de>
856 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
857 for non-existant files.
858 (fork_execute): Mark args_name file as deleted.
860 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
863 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
864 (narrow_signed_type): Likewise.
866 2010-05-26 Jan Hubicka <jh@suse.cz>
868 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
869 edge only when checking is enabled; check using former_clone_of;
870 check inline clones too.
871 (cgraph_materialize_clone): Record former_clone_of pointer.
872 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
873 combining redirections; dump args_to_skip bitmap
874 (cgraph_materialize_all_clones): Do no redirection here.
875 * ipa-inline.c (inline_transform): Do redirection here.
876 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
879 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
881 * config/avr/avr-c.c: Do not include regs.h.
882 Include cpplib.h for cpp_define and tree.h for c-common.h.
883 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
884 * config/avr/t-avr: Fix dependencies for avr-c.o.
886 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
888 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
889 string instead of SYMBOL_REF rtx.
890 * rtl.h (set_stack_check_libfunc): Move prototype from here...
891 * libfuncs.h: ...to here. Adjust for explow.c change.
893 2010-05-26 Joseph Myers <joseph@codesourcery.com>
895 * pretty-print.c: Don't include ggc.h.
896 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
897 (identifier_to_locale): Use them for allocation.
898 * pretty-print.h (identifier_to_locale_alloc,
899 identifier_to_locale_free): Declare.
900 * toplev.c (alloc_for_identifier_to_locale): New.
901 (general_init): Set identifier_to_locale_alloc and
902 identifier_to_locale_free.
903 * Makefile.in (pretty-print.o): Update dependencies.
905 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
907 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
908 pointer types if they have different alignment or mode.
910 2010-05-26 Anatoly Sokolov <aesok@post.ru>
912 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
913 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
914 * config/sparc/sparc-protos.h (function_value): Remove declaration.
915 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
916 sparc_function_value_regno_p): New functions.
917 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
918 TARGET_FUNCTION_VALUE_REGNO_P): Define.
919 (function_value): Rename to...
920 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
921 argument to 'outgoing'.
922 (function_arg_record_value, function_arg_union_value,
923 function_arg_vector_value): Update comment.
925 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
927 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
928 (fde_needed_for_eh_p): New predicate.
929 (output_call_frame_info): Use it throughout to decide whether FDEs
930 are needed for EH purpose.
931 (dwarf2out_begin_prologue): Reorder assignments.
933 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
935 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
936 special case loop->header.
937 (is_predicated): New.
938 (if_convertible_loop_p): Call it.
940 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
942 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
943 iterator in parameter. Do not generate code during the analysis.
944 (tree_if_convert_cond_stmt): Removed.
945 (tree_if_convert_stmt): Removed.
946 (predicate_bbs): New.
947 (if_convertible_loop_p): Call predicate_bbs.
948 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
949 now contains all the analysis part.
951 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
953 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
954 statements in the analysis part.
955 (tree_if_convert_stmt): Update comment.
956 (remove_conditions_and_labels): New.
957 (combine_blocks): Call remove_conditions_and_labels.
958 (tree_if_conversion): Update comment.
960 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
962 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
963 than 2 predecessors or more than 2 successors.
965 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
967 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
968 of loops in which the data dependence analysis fails.
970 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
972 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
974 (tree_if_conversion): Same.
976 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
978 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
980 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
982 * tree-if-conv.c: Update copyright years. Fix comments.
985 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
987 * builtin-types.def (BT_INT128): New primitive type.
988 (BT_UINT128): Likewise.
989 * c-common.c (c_common_r): Add __int128 keyword.
990 (c_common_type_for_size): Handle __int128.
991 (c_common_type_for_mode): Likewise.
992 (c_common_signed_or_unsigned_type): Likewise.
993 (c_common_nodes_and_builtins): Add builtin type
994 if target supports 128-bit integer scalar.
995 * c-common.h (enum rid): Add RID_INT128.
996 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
997 if target supports 128-bit integer scalar.
998 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
999 (finish_declspecs): Likewise.
1000 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
1001 (c_token_starts_declspecs): Likewise.
1002 (c_parser_declspecs): Likewise.
1003 (c_parser_attributes): Likewise.
1004 (c_parser_objc_selector): Likewise.
1005 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1006 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1007 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1008 * tree.c (make_or_reuse_type): Likewise.
1009 (make_unsigned_type): Likewise.
1010 (build_common_tree_nodes_2): Likewise.
1011 * tree.h (enum integer_type_kind): Add itk_int128 and
1012 itk_unsigned_int128.
1013 (int128_integer_type_node): New define.
1014 (int128_unsigned_type_node): New define.
1015 * doc/extend.texi: Add documentation about __int128 type.
1017 2010-05-26 Richard Guenther <rguenther@suse.de>
1019 * tree-ssa-sccvn.c (copy_nary): Adjust.
1020 (copy_phis): Rename to ...
1021 (copy_phi): ... this. Adjust.
1022 (copy_references): Rename to ...
1023 (copy_reference): ... this. Adjust.
1024 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1025 result into the valid table.
1027 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1029 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1030 insn-config.h, insn-codes.h, recog.h, and optabs.h.
1032 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1034 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1036 2010-05-26 Richard Guenther <rguenther@suse.de>
1038 * opts.c (common_handle_option): Handle OPT_Ofast.
1040 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1042 * diagnostic.c: Don't include opts.h.
1043 (permissive_error_option): Define.
1044 (diagnostic_initialize): Take n_opts parameter. Allocate memory
1045 for classify_diagnostic. Don't use memset for
1046 classify_diagnostic. Initialize new and recently added fields.
1047 (diagnostic_classify_diagnostic): Use context->n_opts instead of
1049 (diagnostic_report_diagnostic): Pass context parameter to
1050 diagnostic_report_warnings_p. Use option_enabled and option_name
1052 (emit_diagnostic): Use permissive_error_option.
1053 (permerror): Likewise.
1054 * diagnostic.h: Don't include options.h.
1055 (struct diagnostic_context): Add n_opts, opt_permissive,
1056 inhibit_warnings, warn_system_headers, option_enabled and
1057 option_name fields. Change classify_diagnostic to a pointer.
1058 * opts-diagnostic.h: New file.
1059 * opts.c: Include opts-diagnostic.h.
1060 (common_handle_option): Set global_dc fields for -Wfatal-errors,
1061 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1062 (option_name): New function.
1063 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1064 (c_common_handle_option): Set global_dc->permissive for
1066 * c-common.c (c_cpp_error): Save and restore
1067 global_dc->warn_system_headers, not variable warn_system_headers.
1068 * toplev.c: Include opts-diagnostic.h.
1069 (general_init): Update call to diagnostic_initialize. Set
1070 global_dc->show_column, global_dc->option_enabled and
1071 global_dc->option_name.
1072 (process_options): Don't set global_dc fields here.
1073 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1074 (diagnostic.o, opts.o, toplev.o): Update dependencies.
1076 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
1078 * config/picochip/picochip.md (movsi): Split a movsi from a
1081 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1083 * ggc-zone.c: Update copyright year.
1084 (poison_region): Mark memory for Valgrind as undefined before
1085 memset () call and inaccessible afterwards.
1086 (ggc_pch_total_size): Change type of i to int.
1088 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1090 * ggc-common.c (ggc_free_overhead): Allow empty slot.
1092 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1094 * ggc-common.c: Update copyright year.
1095 (ggc_rlimit_bound): Remove prototype. Compile only if
1096 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1097 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1098 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
1099 (ggc_min_heapsize_heuristic): Likewise.
1101 2010-05-26 Richard Guenther <rguenther@suse.de>
1103 PR rtl-optimization/44164
1104 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1105 no-common access-path disambiguation.
1106 (indirect_ref_may_alias_decl_p): Adjust.
1107 (indirect_refs_may_alias_p): Likewise.
1108 (refs_may_alias_p_1): Likewise.
1110 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1112 * c-typeck.c: Do not include expr.h.
1114 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1116 * rtl.h (decl_default_tls_model): Move prototype from here...
1117 * output.h: ...to here.
1118 * c-decl.c: Do not include rtl.h.
1119 * c-pragma.c: Likewise.
1120 * c-parser.c: Likewise.
1121 * c-gimplify.c: Likewise. And also not hard-reg-set.
1122 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
1123 FIXME note for it. Add a FIXME note for expr.h.
1124 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1125 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1128 2010-05-26 Jakub Jelinek <jakub@redhat.com>
1131 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1132 or total_size is larger than red zone size for non-V4 ABI, emit a
1133 stack_tie resp. frame_tie insn before stack pointer restore.
1134 * config/rs6000/rs6000.md (frame_tie): New insn.
1136 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
1138 * function.h (struct function): Add can_throw_non_call_exceptions bit.
1139 * lto-streamer-in.c (input_function): Stream it in.
1140 * lto-streamer-out.c (output_function): Stream it out.
1141 * function.c (allocate_struct_function): Set it.
1142 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1143 for flag_non_call_exceptions.
1144 * cfgbuild.c (control_flow_insn_p): Likewise.
1145 (make_edges): Likewise.
1146 * cfgexpand.c (expand_stack_alignment): Likewise.
1147 * combine.c (distribute_notes): Likewise.
1148 * cse.c (cse_extended_basic_block): Likewise.
1149 * except.c (insn_could_throw_p): Likewise.
1150 * gcse.c (simple_mem): Likewise.
1151 * ipa-pure-const.c (check_call): Likewise.
1152 (check_stmt ): Likewise.
1153 * lower-subreg.c (lower-subreg.c): Likewise.
1154 * optabs.c (emit_libcall_block): Likewise.
1155 (prepare_cmp_insn): Likewise.
1156 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1157 * postreload.c (rest_of_handle_postreload): Likewise.
1158 * reload1.c (reload_as_needed): Likewise.
1159 (emit_input_reload_insns): Likewise.
1160 (emit_output_reload_insns): Likewise.
1161 (fixup_abnormal_edges): Likewise.
1162 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1163 * store-motion.c (find_moveable_store): Likewise.
1164 * tree-eh.c (stmt_could_throw_p): Likewise.
1165 (tree_could_throw_p): Likewise.
1166 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1167 * config/arm/arm.c (arm_expand_prologue): Likewise.
1168 (thumb1_expand_prologue): Likewise.
1169 * config/rx/rx.md (cbranchsf4): Likewise.
1171 * config/s390/s390.c (s390_emit_prologue): Likewise.
1172 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1173 (inline_forbidden_into_p): New predicate.
1174 (expand_call_inline): Use it to forbid inlining.
1175 (tree_can_inline_p): Likewise.
1177 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1179 * config/i386/i386-c.c: Do not include rtl.h.
1180 * config/i386/t-i386: Update dependencies.
1182 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1184 * attribs.c: Do not include rtl.h.
1185 * Makefile.in: Update dependencies.
1187 2010-05-25 Anatoly Sokolov <aesok@post.ru>
1189 * double-int.h (double_int_and): New.
1190 * combine.c (try_combine): Clean up, use double_int_* and
1191 immed_double_int_const functions.
1193 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1195 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1196 stderr to /dev/null instead of grep -q.
1197 * configure: Regenerate.
1199 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1201 * Makefile.in (EXCEPT_H): Fix typo.
1203 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
1205 * ira-build.c (update_conflict_hard_reg_costs): New.
1206 (ira_build): Call update_conflict_hard_reg_costs.
1208 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1211 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
1213 (intersect_loc_chains): Walk the s2var's loc_chain together
1214 with s1node chain as long as the locations are equal, don't
1215 call find_loc_in_1pdv in that case.
1218 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
1219 (copy_bind_expr): ... instead of here.
1220 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
1221 if the block hasn't been remapped.
1222 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
1223 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1225 2010-05-25 Richard Guenther <rguenther@suse.de>
1228 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1229 out-of-bounds array accesses.
1231 2010-05-25 Richard Guenther <rguenther@suse.de>
1233 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1234 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1235 (run_gcc): Re-organize to make cleanup easier.
1237 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1239 * config/s390/s390.c (optimization_options): Fix and move the
1240 flag_prefetch_loop_arrays override ...
1241 (override_options): ... here.
1243 2010-05-25 Joseph Myers <joseph@codesourcery.com>
1245 * diagnostic.c: Don't include plugin.h.
1246 (diagnostic_report_diagnostic): Don't handle plugins specially
1247 here. Pass context to internal_error callback.
1248 * diagnostic.h (struct diagnostic_context): Add context parameter
1249 to internal_error callback.
1250 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1251 * plugin.h (struct diagnostic_context): Declare.
1252 (warn_if_plugins, plugins_internal_error_function): Declare.
1253 * toplev.c (general_init): Set global_dc->internal_error.
1254 * Makefile.in (diagnostic.o): Update dependencies.
1256 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
1258 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1259 * config/rs6000/t-darwin64: New.
1260 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1263 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
1266 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1267 match the original (and intended) behaviour before r159557. This
1268 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1271 2010-05-25 Richard Guenther <rguenther@suse.de>
1273 * doc/invoke.texi: Document -Ofast.
1274 * target.h (struct gcc_target): Add handle_ofast.
1275 * target-def.h (TARGET_HANDLE_OFAST): Add.
1276 (TARGET_INITIALIZER): Adjust.
1277 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
1278 * common.opt (Ofast): Add.
1280 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1282 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1283 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1285 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1288 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1289 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
1290 false_rtx. Use false_rtx to compute the correct *ptest for reversed
1291 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1293 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1295 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1296 DW_OP_minus with negated offset instead of DW_OP_plus.
1297 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1299 2010-05-25 Wei Guozhi <carrot@google.com>
1301 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1302 tst instruction and a new alternative.
1303 * config/arm/constraints.md (Pu): New constraint.
1305 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
1307 * function.c (assign_stack_local_1): Initialize variable
1308 to avoid warning when bootstrapping at -O3.
1310 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
1312 * configure.ac (all_lang_makefiles): Remove everything related to it.
1313 * configure: Regenerate.
1314 * Makefile.in: Fix reference to ada Make-lang.in.
1315 Remove support for LANG_MAKEFILES.
1317 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
1318 Sandra Loosemore <sandra@codesourcery.com>
1320 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1321 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1322 description. Add arm_neon_fp16_ok.
1323 (Add Options): Add arm_neon and arm_neon_fp16.
1325 2010-05-24 Joseph Myers <joseph@codesourcery.com>
1327 * diagnostic.c: Don't include flags.h.
1328 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1329 context parameters. Check flags in the context passed as a parameter.
1330 (diagnostic_build_prefix): Add context parameter. Check
1331 show_column flag in context.
1332 (diagnostic_action_after_output): Check fatal_errors flag in context.
1333 (diagnostic_report_current_module): Check show_column flag in context.
1334 (default_diagnostic_starter): Update call to
1335 diagnostic_build_prefix.
1336 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1337 (emit_diagnostic): Pass context to permissive_error_kind.
1338 (permerror): Pass context to permissive_error_kind.
1339 * diagnostic.h (struct diagnostic_context): Add show_column,
1340 pedantic_errors, permissive and fatal_errors fields.
1341 (diagnostic_build_prefix): Update prototype.
1343 * toplev.c (process_options): Set flags in global_dc from
1344 flag_show_column, flag_pedantic_errors, flag_permissive,
1346 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1347 to diagnostic_build_prefix.
1348 * Makefile.in (diagnostic.o): Update dependencies.
1350 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
1352 * config/i386/ia32intrin.h (__crc32q): Define only if
1353 __SSE4_2__ is defined.
1355 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
1359 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1360 DECL_VISIBILITY_SPECIFIED.
1361 (emutls_decl): Set DECL_PRESERVE_P and copy
1362 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1363 (emutls_finalize_control_var): New callback.
1364 (emutls_finish): Finalize emutls control variables.
1365 * toplev.c (compile_file): Move the call to emutls_finish ()
1366 before varpool_assemble_pending_decls ().
1368 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
1370 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1371 added to the preprocessor condition.
1373 2010-05-24 Paul Brook <paul@codesourcery.com>
1375 * gengtype-lex.l: Add HARD_REG_SET.
1376 * expr.c (expand_expr_real_1): Record writes to hard registers.
1377 * function.c (rtl_data): Add asm_clobbers.
1378 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1379 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1380 Use crtl->asm_clobbers.
1382 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1384 * doc/makefile.texi (Makefile): Mention stages 'profile'
1385 and 'feedback' for profiledbootstrap.
1387 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
1390 * config/i386/i386.c (def_builtin): Properly check
1391 OPTION_MASK_ISA_64BIT.
1393 2010-05-23 Joseph Myers <joseph@codesourcery.com>
1395 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1396 typedefs with different but compatible types. Allow duplicate
1397 typedefs with the same type except for pedantic non-C1X, but give
1398 warning for variably modified types.
1399 * c-typeck.c (tagged_types_tu_compatible_p,
1400 function_types_compatible_p, type_lists_compatible_p,
1401 comptypes_internal): Add parameter different_types_p; set
1402 *different_types_p for different but compatible types. All
1404 (comptypes_check_different_types): New.
1405 * c-tree.h (comptypes_check_different_types): Declare.
1407 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1409 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
1410 * jump.c: Include basic-block.h.
1411 * profile.c: Likewise.
1412 * tree-profile.c: Likewise.
1413 * coverage.c: Likewise.
1414 * basic-block.h (optimize_function_for_size_p): Move to function.h.
1415 (optimize_function_for_speed_p): Likewise.
1416 * function.h (optimize_function_for_size_p,
1417 optimize_function_for_speed_p): Moved here from basic-block.h.
1418 * Makefile.in: Update dependencies.
1420 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1422 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1423 before calling make; allow override through $MAKE.
1424 * doc/invoke.texi (Optimize Options): Document override.
1426 2010-05-23 Anatoly Sokolov <aesok@post.ru>
1428 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1429 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1430 (rs6000_mode_dependent_address_ptr): Make static.
1431 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1432 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1435 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
1438 * config/i386/i386.c: Make sure that the correct regparm is passed.
1440 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
1442 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
1443 * sbitmap.c: ...to here to internalize sbitmap element access.
1444 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
1445 Explain why basic-block.h is included.
1446 * function.h: Include tm.h for CUMULATIVE_ARGS.
1447 * Makefile.in: Update dependencies.
1449 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1451 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
1453 * sbitmap.h (struct sbitmap_def): Do not typedef here.
1454 * sbitmap.c: Include sbitmap.h.
1455 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
1456 hard-reg-set.h. Split everything related to regsets out from here...
1457 * regset.h: ...to here. New file.
1458 * df.h: Include regset.h and sbitmap.h.
1459 * tree-flow.h: Likewise.
1460 * cfgloop.h: Likewise.
1461 * except.h: Do not include sbitmap.h. Include hashtab.h.
1462 * cgraph.h: Include vec.h and function.h.
1463 * reload.h (struct insn_chain): Change types of live_throughout
1464 and dead_or_set from regset_head to bitmap_head.
1465 (compute_use_by_pseudos): Be defined also if regset.h is not included.
1466 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
1467 spilled_regs from regset_head to bitmap_head to avoid dependency
1469 * sel-sched-ir.h: Include regset.h.
1470 * reload.c: Include df.h before reload.h.
1471 * caller-save.c: Likewise.
1472 * reload1.c: Likewise.
1474 (mark_elimination): Update type of r to bitmap, consistent with
1476 * dominance.c: Include bitmap.h.
1477 * modulo-sched.c: Include df.h.
1478 * cfganal.c: Include bitmap.h and sbitmap.h.
1479 * cfgbuild.c: Include sbitmap.h.
1480 * lcm.c: Include sbitmap.h.
1481 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
1482 * domwalk.c: Include sbitmap.h, exclude ggc.h.
1483 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
1484 * cselib.c: Include bitmap.h.
1485 * tree-optimize.c: Include regset.h.
1486 * stmt.c: Include bitmap.h.
1487 * Makefile.in: Update dependencies.
1489 2010-05-22 Jan Hubicka <jh@suse.cz>
1491 * cgraph.h (struct varpool_node): Add same_comdat_group.
1492 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
1494 (output_varpool): Update call of lto_output_varpool_node.
1495 (input_varpool): Read same_comdat_group pointer.
1496 (input_varpool_1): Fixup same_comdat_group pointer.
1497 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
1498 group is needed, all are.
1499 * varpool.c (varpool_remove_node): Remove node from same comdat group
1501 (varpool_analyze_pending_decls): Walk same comdat groups.
1503 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
1505 * rtl.h (union rtunion_def): Remove rt_bit member.
1506 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
1507 * print-rtl (print_rtx): Do not print the member.
1508 * gengtype.c (adjust_field_rtx_def): Do not handle it.
1509 * gengenrtl.c (type_from_format): Likewise.
1510 (accessor_from_format): Likewise.
1512 2010-05-22 Joseph Myers <joseph@codesourcery.com>
1514 * dbgcnt.c: Include toplev.h instead of errors.h.
1515 * ira-emit.c: Don't include errors.h.
1516 * ira.c: Include toplev.h instead of errors.h.
1517 * lto-compress.c: Include toplev.h instead of errors.h.
1518 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
1519 ira.o, dbgcnt.o): Update dependencies.
1521 2010-05-22 Richard Guenther <rguenther@suse.de>
1523 * gimple.c (gimple_types_compatible_p): Check type qualifications
1524 before merging pointer to complete and pointer to incomplete type.
1525 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1526 we use our own resolution algorithm. The gold linker plugin
1527 doesn't do the job we want it to do here.
1529 2010-05-22 Anatoly Sokolov <aesok@post.ru>
1531 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1532 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1533 (sparc_mode_dependent_address_p): New function.
1535 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1537 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
1539 * timevar.c: Do not include any core headers.
1540 (timevar_print): De-i18n-ize.
1541 (print_time): Likewise.
1542 * timevar.h (timevar_push, timevar_pop): Make inline functions.
1544 2010-05-21 Joseph Myers <joseph@codesourcery.com>
1546 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
1548 (diagnostic_initialize): Initialize x_data not last_function.
1549 (diagnostic_report_current_function): Move to tree-diagnostic.c.
1550 (default_diagnostic_starter): Call
1551 diagnostic_report_current_module not
1552 diagnostic_report_current_function.
1553 (diagnostic_report_diagnostic): Initialize x_data not
1555 (verbatim): Likewise.
1556 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
1558 (struct diagnostic_context): Change last_function to x_data.
1559 (diagnostic_auxiliary_data): Replace with
1560 diagnostic_context_auxiliary_data and
1561 diagnostic_info_auxiliary_data.
1562 (diagnostic_last_function_changed, diagnostic_set_last_function,
1563 diagnostic_report_current_function): Move to tree-diagnostic.h.
1564 (print_declaration, dump_generic_node, print_generic_stmt,
1565 print_generic_stmt_indented, print_generic_expr,
1566 print_generic_decl, debug_c_tree, dump_omp_clauses,
1567 print_call_name, debug_generic_expr, debug_generic_stmt,
1568 debug_tree_chain, default_tree_printer): Move to
1569 tree-pretty-print.h.
1570 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
1571 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
1572 gimple-pretty-print.h.
1573 * pretty-print.c: Don't include tree.h
1574 (pp_base_format): Don't handle %K here.
1575 (pp_base_tree_identifier): Move to tree-pretty-print.c.
1576 * pretty-print.h (text_info): Change abstract_origin to x_data.
1577 (pp_tree_identifier, pp_unsupported_tree,
1578 pp_base_tree_identifier): Move to tree-pretty-print.h.
1579 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
1580 tree-pretty-print.h: New files.
1581 * tree-pretty-print.c: Include tree-pretty-print.h.
1582 (percent_K_format): New. Moved from pretty-print.c.
1583 (pp_base_tree_identifier): Move from pretty-print.c.
1584 * c-objc-common.c: Include tree-pretty-print.h.
1585 (c_tree_printer): Handle %K here.
1586 * langhooks.c: Include tree-diagnostic.h.
1587 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
1588 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
1589 (default_tree_printer): Handle %K using percent_K_format.
1590 (general_init): Use default_tree_diagnostic_starter.
1591 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
1592 (free_lang_data): Use default_tree_diagnostic_starter.
1593 * c-pretty-print.c: Include tree-pretty-print.h.
1594 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1595 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1596 * dwarf2out.c: Include tree-pretty-print.h.
1597 * except.c: Include tree-pretty-print.h.
1598 * gimple-pretty-print.c: Include tree-pretty-print.h and
1599 gimple-pretty-print.h.
1600 * gimplify.c: Include tree-pretty-print.h.
1601 * graphite-poly.c: Include tree-pretty-print.h and
1602 gimple-pretty-print.h.
1603 * ipa-cp.c: Include tree-pretty-print.h.
1604 * ipa-inline.c: Include gimple-pretty-print.h.
1605 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1606 * ipa-pure-const.c: Include gimple-pretty-print.h.
1607 * ipa-struct-reorg.c: Include tree-pretty-print.h and
1608 gimple-pretty-print.h.
1609 * ipa-type-escape.c: Include tree-pretty-print.h.
1610 * print-rtl.c: Include tree-pretty-print.h.
1611 * print-tree.c: Include gimple-pretty-print.h.
1612 * sese.c: Include tree-pretty-print.h.
1613 * tree-affine.c: Include tree-pretty-print.h.
1614 * tree-browser.c: Include tree-pretty-print.h.
1615 * tree-call-cdce.c: Include gimple-pretty-print.h.
1616 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
1617 * tree-chrec.c: Include tree-pretty-print.h.
1618 * tree-data-ref.c: Include tree-pretty-print.h and
1619 gimple-pretty-print.h.
1620 * tree-dfa.c: Include tree-pretty-print.h.
1621 * tree-if-conv.c: Include tree-pretty-print.h and
1622 gimple-pretty-print.h.
1623 * tree-inline.c: Include tree-pretty-print.h.
1624 * tree-into-ssa.c: Include tree-pretty-print.h and
1625 gimple-pretty-print.h.
1626 * tree-nrv.c: Include tree-pretty-print.h.
1627 * tree-object-size.c: Include tree-pretty-print.h and
1628 gimple-pretty-print.h.
1629 * tree-outof-ssa.c: Include tree-pretty-print.h and
1630 gimple-pretty-print.h.
1631 * tree-parloops.c: Include tree-pretty-print.h and
1632 gimple-pretty-print.h.
1633 * tree-predcom.c: Include tree-pretty-print.h and
1634 gimple-pretty-print.h.
1635 * tree-scalar-evolution.c: Include tree-pretty-print.h and
1636 gimple-pretty-print.h.
1637 * tree-sra.c: Include tree-pretty-print.h.
1638 * tree-ssa-address.c: Include tree-pretty-print.h.
1639 * tree-ssa-alias.c: Include tree-pretty-print.h.
1640 * tree-ssa-ccp.c: Include tree-pretty-print.h and
1641 gimple-pretty-print.h.
1642 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
1643 * tree-ssa-copy.c: Include tree-pretty-print.h and
1644 gimple-pretty-print.h.
1645 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
1646 * tree-ssa-dce.c: Include tree-pretty-print.h and
1647 gimple-pretty-print.h.
1648 * tree-ssa-dom.c: Include tree-pretty-print.h and
1649 gimple-pretty-print.h.
1650 * tree-ssa-dse.c: Include gimple-pretty-print.h.
1651 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
1652 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
1653 * tree-ssa-live.c: Include tree-pretty-print.h and
1654 gimple-pretty-print.h.
1655 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
1656 gimple-pretty-print.h.
1657 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
1658 gimple-pretty-print.h.
1659 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
1660 gimple-pretty-print.h.
1661 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
1662 gimple-pretty-print.h.
1663 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
1664 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
1665 * tree-ssa-operands.c: Include tree-pretty-print.h and
1666 gimple-pretty-print.h.
1667 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
1668 gimple-pretty-print.h.
1669 * tree-ssa-pre.c: Include tree-pretty-print.h and
1670 gimple-pretty-print.h.
1671 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
1672 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
1673 gimple-pretty-print.h.
1674 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
1675 gimple-pretty-print.h.
1676 * tree-ssa-sink.c: Include gimple-pretty-print.h.
1677 * tree-ssa-ter.c: Include tree-pretty-print.h and
1678 gimple-pretty-print.h.
1679 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
1680 * tree-ssa.c: Include tree-pretty-print.h and
1681 gimple-pretty-print.h.
1682 * tree-stdarg.c: Include gimple-pretty-print.h.
1683 * tree-switch-conversion.c: Include gimple-pretty-print.h.
1684 * tree-tailcall.c: Include tree-pretty-print.h and
1685 gimple-pretty-print.h.
1686 * tree-vect-data-refs.c: Include tree-pretty-print.h and
1687 gimple-pretty-print.h.
1688 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
1689 gimple-pretty-print.h.
1690 * tree-vect-loop.c: Include tree-pretty-print.h and
1691 gimple-pretty-print.h.
1692 * tree-vect-patterns.c: Include gimple-pretty-print.h.
1693 * tree-vect-slp.c: Include tree-pretty-print.h and
1694 gimple-pretty-print.h.
1695 * tree-vect-stmts.c: Include tree-pretty-print.h and
1696 gimple-pretty-print.h.
1697 * tree-vectorizer.c: Include tree-pretty-print.h.
1698 * tree-vrp.c: Include tree-pretty-print.h and
1699 gimple-pretty-print.h.
1700 * value-prof.c: Include tree-pretty-print.h and
1701 gimple-pretty-print.h.
1702 * var-tracking.c: Include tree-pretty-print.h.
1703 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
1704 (tree-diagnostic.o): New dependencies.
1705 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
1706 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
1707 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
1708 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
1709 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
1710 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
1711 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
1712 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
1713 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
1714 tree-ssa-address.o, tree-ssa-loop-niter.o,
1715 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
1716 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
1717 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
1718 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
1719 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
1720 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
1721 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
1722 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
1723 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
1724 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
1725 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
1726 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
1727 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
1728 tree-switch-conversion.o, var-tracking.o, value-prof.o,
1729 cfgexpand.o, pretty-print.o): Update dependencies.
1731 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
1733 * tree-ssa-structalias.c: Remove tm_p.h from include.
1735 2010-05-21 Jeff Law <law@redhat.com>
1737 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
1739 2010-05-21 Jason Merrill <jason@redhat.com>
1741 * tree-eh.c (cleanup_is_dead_in): New.
1742 (lower_try_finally): Don't generate a dead cleanup region.
1743 (lower_cleanup): Likewise.
1745 2010-05-21 Jakub Jelinek <jakub@redhat.com>
1748 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
1749 unchain each use from the cyclic next_regno_use chain first.
1751 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1753 * real: Do not include gmp.h, mpfr.h, and mpc.h.
1754 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
1755 (real_value_negate, real_value_abs): New prototypes.
1756 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
1757 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
1758 new include file for interface between MPFR and REAL_VALUE_TYPE.
1759 * real.c: Include realmpfr.h.
1760 (real_arithmetic2): Remove legacy function.
1761 (real_value_negate): New.
1762 (real_value_abs): New.
1763 (mfpr_from_real, real_from_mpfr): Move from here...
1764 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
1765 * builtins.c: Include realmpfr.h.
1766 * fold-const.c: Include realmpfr.h.
1767 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
1768 (fold_negate_const): Likewise.
1769 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
1770 * toplev.c: Include realmpfr.h.
1771 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
1772 and real_value_negate.
1773 * fixed-value.c (check_real_for_fixed_mode): Likewise.
1774 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
1775 (vfp3_const_double_index): Likewise.
1776 (arm_print_operand): Likewise.
1777 * Makefile.in: Update dependencies.
1779 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1781 * config/s390/s390.c (override_options): Increase the default
1782 of max-completely-peel-times.
1784 2010-05-21 Julian Brown <julian@codesourcery.com>
1785 Mark Mitchell <mark@codesourcery.com>
1787 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
1788 sibling calls for Thumb-1.
1789 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
1790 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
1792 (*call_insn, *call_value_insn): Don't use for Thumb-2.
1793 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
1795 (return): New expander.
1796 (*arm_return): New name for ARM return insn.
1797 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
1799 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
1801 * config.gcc (sparc64-*-rtems*): New target.
1803 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
1805 * tree.c (build_function_decl_skip_args): Fix grammar.
1806 (build_function_type_list_1): Fix typos, adjust formatting.
1808 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
1810 * tree.h: Include real.h and fixed-value.h as basic datatypes.
1811 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
1812 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
1813 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
1814 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
1815 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
1816 tree-pretty-print.c, tree-loop-distribution.c,
1817 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
1818 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
1819 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
1820 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
1821 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
1822 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
1823 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
1824 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
1825 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
1826 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
1827 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
1828 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
1829 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
1830 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
1831 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
1832 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
1833 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
1834 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
1835 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
1836 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
1837 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
1838 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
1839 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
1840 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
1841 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
1842 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
1843 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
1844 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
1845 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
1846 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
1847 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
1848 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
1849 config/score/score7.c, config/score/score.c, config/arm/arm.c,
1850 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
1851 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
1852 config/bfin/bfin.c: Clean up redundant includes.
1853 * Makefile.in: Update accordingly.
1855 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
1858 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
1859 statement has no arguments.
1861 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
1864 * varasm.c (emutls_decl): Merge attributes to new decl.
1866 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
1869 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
1870 around the uniquized constructor if its type requires a conversion.
1872 2010-05-21 Jakub Jelinek <jakub@redhat.com>
1875 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
1876 at -O0 goto_locus of any of the incoming edges differs from
1877 goto_locus of outgoing edge, or gimple_location of any of the
1880 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
1882 * ira.c (ira_non_ordered_class_hard_regs): Define.
1883 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
1884 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
1885 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
1886 cost of unaligned hard regs when allocating multi-reg pseudos.
1888 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
1890 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
1891 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
1892 for TARGET_NO_FLOAT.
1893 * config/mips/mips.c (mips_file_start): Expand conditional expression
1894 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
1895 (mips_override_options): Move -mno-float override -msoft-float and
1897 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
1898 Condition(TARGET_SUPPORTS_NO_FLOAT).
1899 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
1900 __mips_no_float here.
1901 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
1902 (TARGET_SUPPORTS_NO_FLOAT): Define.
1903 * config/mips/sdemtk.opt: Delete.
1905 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
1907 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
1909 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
1912 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
1913 * configure: Regenerate.
1914 * config.in: Regenerate.
1915 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
1916 instead of sahf only for 64bit targets.
1918 2010-05-20 Jakub Jelinek <jakub@redhat.com>
1921 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
1922 setup_ref_regs for DEBUG_INSNs.
1924 2010-05-20 Jan Hubicka <jh@suse.cz>
1927 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
1929 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1932 * df-scan.c (df_ref_compare): Stabilize sort.
1934 2010-05-20 Jakub Jelinek <jakub@redhat.com>
1936 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
1937 argument. Don't use DW_OP_piece if offset is non-zero,
1938 put offset into second DW_OP_bit_piece argument.
1939 (dw_sra_loc_expr): Adjust callers. For memory expressions
1942 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
1945 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
1946 settings for 16-bit-constant "addo" alternative.
1948 2010-05-19 James E. Wilson <wilson@codesourcery.com>
1950 * config/mips/mips-dsp.md (add<DSPV:mode>3,
1951 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
1954 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
1955 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
1958 2010-05-19 Joseph Myers <joseph@codesourcery.com>
1960 * diagnostic.c (FLOAT, FFS): Don't undefine.
1961 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
1962 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
1965 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1967 * combine.c (propagate_for_debug): Call make_compound_operation
1968 on the source value.
1969 (try_combine): When implementing a split chosen by find_split_point,
1970 either copy i2src or set it to null. Assert that i2src is not null
1971 before substituting into CALL_INSN_FUNCTION_USAGE.
1973 2010-05-19 Anatoly Sokolov <aesok@post.ru>
1975 * double-int.h (double_int_ior): New function.
1976 * tree.h (build_int_cst_wide_type): Remove.
1977 * tree.c (build_int_cst_wide_type): Remove.
1978 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
1979 of build_int_cst_wide_type.
1980 * stor-layout.c (set_sizetype): (Ditto.).
1981 * dojump.c (do_jump): Use build_int_cstu instead of
1982 build_int_cst_wide_type.
1984 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
1986 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
1987 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
1988 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
1989 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
1990 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
1991 propagate the 'data' argument to copy_tree_r.
1992 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
1993 Propagate 'data' argument to walk_tree.
1994 (copy_if_shared): New function.
1995 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
1996 (unmark_visited): New function.
1997 (unshare_body): Call copy_if_shared instead of doing it manually.
1998 (unvisit_body): Call unmark_visited instead of doing it manually.
2000 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
2002 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
2003 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
2004 * hooks.c: Likewise.
2005 * target-def.h (TARGET_FOLD_BUILTIN): Define to
2006 hook_tree_tree_int_treep_bool_null.
2007 * target.h (struct gcc_target): Update signature of fold_builtin
2009 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2010 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2011 instead of the call expression.
2012 (fold_builtin_call_array): Pass n and argarray directly.
2013 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2015 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
2016 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
2017 `i' and use it in place of `arity'.
2018 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2019 Dereference `args' directly.
2020 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2022 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2024 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2026 (Directives): Document optional dg-require-effective-target
2029 2010-05-19 Richard Guenther <rguenther@suse.de>
2032 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2034 2010-05-19 Richard Guenther <rguenther@suse.de>
2036 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2037 * common.opt (fwhopr=): New.
2038 * opts.c (common_handle_option): Handle OPT_fwhopr.
2039 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2040 * collect2.c (main): Match -fwhopr*.
2041 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2042 Execute ltrans stage in parallel when jobs is bigger than 1.
2044 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2046 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2047 pentiumpro on Solaris 8/x86 with Sun as.
2048 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2050 (gcc_cv_as_ix86_quad): Check for .quad directive.
2051 * configure: Regenerate.
2052 * config.in: Regenerate.
2053 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2055 2010-05-19 Martin Jambor <mjambor@suse.cz>
2057 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2058 also for indirect edges. Actual printing moved...
2059 (ipa_print_node_jump_functions_for_edge): ...here.
2060 (ipa_compute_jump_functions): Renamed to
2061 ipa_compute_jump_functions_for_edge and made static.
2062 (ipa_compute_jump_functions): New function.
2063 (make_edge_direct_to_target): Check if the number of arguments on
2064 the newly direct edge is the same as the number of parametrs of
2066 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2067 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
2068 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2069 analysis functions unconditionally, call the new
2070 ipa_analyze_params_uses on the node instead of every edge.
2072 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
2074 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2076 (dump_mem_ref): Adopt debug code to handle a tree as step. This
2077 also checks for a constant int vs. non-constant but
2078 loop-invariant steps.
2079 (find_or_create_group): Change the sort algorithm to only consider
2080 steps that are constant ints.
2081 (idx_analyze_ref): Adopt code to handle a tree instead of a
2082 HOST_WIDE_INT for step.
2083 (gather_memory_references_ref): Handle tree instead of int and be
2084 prepared to see a NULL_TREE.
2085 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2086 prefetches if the step cannot be calculated at compile time.
2087 (issue_prefetch_ref): Issue prefetches for non-constant but
2088 loop-invariant steps.
2090 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2093 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2095 * tree.h (build_call_list): Remove.
2096 * tree.c (build_call_list): Remove.
2098 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2100 * tree.h (build_call_list): Remove.
2101 * tree.c (build_call_list): Remove.
2103 2010-05-18 Jan Hubicka <jh@suse.cz>
2105 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2107 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
2109 PR rtl-optimization/43332
2110 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2112 2010-05-18 Anatoly Sokolov <aesok@post.ru>
2114 * tree.h (build_int_cstu): Implement as static inline.
2115 * tree.c (build_int_cstu): Remove function.
2116 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2119 2010-05-18 Richard Guenther <rguenther@suse.de>
2122 * lto-wrapper.c (verbose): New variable. Initialize from -v.
2123 (debug): Initialize from -save-temps.
2124 (collect_execute): Print command-line when verbose.
2125 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
2126 for ltrans invocation. Produce -dumpbase flag again.
2127 (process_args): Remove.
2129 * collect2.c (maybe_run_lto_and_relink): Only pass object
2130 files to lto-wrapper.
2131 * gcc.c (LINK_COMMAND_SPEC): Likewise.
2133 2010-05-18 Jan Hubicka <jh@suse.cz>
2135 * opts.c (decode_options): Do not disable whopr at ipa_cp.
2136 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2138 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2141 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2143 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2146 2010-05-18 Jakub Jelinek <jakub@redhat.com>
2149 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2152 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2154 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2155 lto-macho as lto_binary_reader.
2157 * darwin.c (darwin_asm_named_section): Do not add assembler comment
2158 after .section directive; just print it before the directive instead.
2160 2010-05-17 Jan Hubicka <jh@suse.cz>
2162 * cgraph.c (cgraph_create_virtual_clone): Only check
2163 versionable_function_p when not in wpa and checking is enabled.
2164 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2165 there are no more functions to materialize.
2167 2010-05-17 Jan Hubicka <jh@suse.cz>
2169 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2170 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2172 (output_cgraph): Call output_cgraph_opt_summary.
2173 (input_cgrpah): Call input_cgraph_opt_summary.
2174 (output_cgraph_opt_summary_p, output_node_opt_summary,
2175 input_node_opt_summary, input_cgraph_opt_section): New functions.
2176 * lto-section-in.c (lto_section_name): Add cgraphopt.
2177 * tree-inline.c (tree_function_versioning): Handle parm_num.
2178 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2179 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2181 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2183 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2184 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2185 the insn to prefetch ratio heuristic to loops with known trip count.
2187 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2189 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2190 (schedule_prefetches): Do not generate a prefetch if the unroll factor
2191 is far from what is required by the prefetch.
2193 2010-05-17 Jan Hubicka <jh@suse.cz>
2195 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
2196 (ipcp_estimate_growth): Likewise.
2197 (ipcp_const_param_count): Likewise.
2198 (ipcp_insert_stage): Likewise.
2199 * ipa-prop.c (visit_load_for_mod_analysis): New function.
2200 (visit_store_addr_for_mod_analysis): Set used flag.
2201 (ipa_detect_param_modifications): Set used flag for SSE params;
2202 update use of walk_stmt_load_store_addr_ops.
2203 (ipa_print_node_params): Print used flag.
2204 (ipa_write_node_info): Stream used flag.
2205 (ipa_read_node_info): Likewise.
2206 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
2207 (ipa_is_param_used): New function.
2208 (lto_ipa_fixup_call_notes): Remove unused declaration.
2210 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2213 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
2214 * configure: Regenerate.
2215 * config.in: Regenerate.
2216 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
2217 !HAVE_AS_IX86_REP_LOCK_PREFIX.
2218 Don't emit whitespace.
2219 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
2220 (*rep_movsi): Likewise.
2221 (*rep_movsi_rex64): Likewise.
2222 (*rep_movqi): Likewise.
2223 (*rep_movqi_rex64): Likewise.
2224 (*rep_stosdi_rex64): Likewise.
2225 (*rep_stossi): Likewise.
2226 (*rep_stossi_rex64): Likewise.
2227 (*rep_stosqi): Likewise.
2228 (*rep_stosqi_rex64): Likewise.
2229 (*cmpstrnqi_nz_1): Use {%;} after repz.
2230 (*cmpstrnqi_nz_rex_1): Likewise.
2231 (*cmpstrnqi_1): Likewise.
2232 (*cmpstrnqi_rex_1): Likewise.
2233 (*strlenqi_1): Use {%;} after repnz.
2234 (*strlenqi_rex_1): Likewise.
2235 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2236 (*sync_compare_and_swap<mode>): Likewise.
2237 (sync_double_compare_and_swap<mode>): Likewise.
2238 (*sync_double_compare_and_swapdi_pic): Likewise.
2239 (sync_old_add<mode>): Likewise.
2240 (sync_add<mode>): Likewise.
2241 (sync_sub<mode>): Likewise.
2242 (sync_<code><mode>): Likewise.
2244 2010-05-17 Martin Jambor <mjambor@suse.cz>
2246 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2247 otr_token and polymorphic.
2248 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2249 (cgraph_clone_edge): Copy the above fields.
2250 * tree.c (get_binfo_at_offset): New function.
2251 * tree.h (get_binfo_at_offset): Declare.
2252 * ipa-prop.h (enum jump_func_type): Added known_type jump function
2253 type, reordered items, updated comments.
2254 (union jump_func_value): Added base_type field, reordered fields.
2255 (enum ipa_lattice_type): Moved down in the file.
2256 (struct ipa_param_descriptor): New field polymorphic.
2257 (ipa_is_param_polymorphic): New function.
2258 * ipa-prop.c: Include gimple.h and gimple-fold.h.
2259 (ipa_print_node_jump_functions): Print known type jump functions.
2260 (compute_complex_pass_through): Renamed to...
2261 (compute_complex_assign_jump_func): this.
2262 (compute_complex_ancestor_jump_func): New function.
2263 (compute_known_type_jump_func): Likewise.
2264 (compute_scalar_jump_functions): Create known type and complex ancestor
2266 (ipa_note_param_call): New parameter polymorphic, set the corresponding
2267 flag in the call note accordingly.
2268 (ipa_analyze_call_uses): Renamed to...
2269 (ipa_analyze_indirect_call_uses): this. New parameter target, define
2270 variable var only in the block where it is used.
2271 (ipa_analyze_virtual_call_uses): New function.
2272 (ipa_analyze_call_uses): Likewise.
2273 (combine_known_type_and_ancestor_jfs): Likewise.
2274 (update_jump_functions_after_inlining): Implemented handling of a
2275 number of new jump function types combination.
2276 (print_edge_addition_message): Removed.
2277 (make_edge_direct_to_target): New function.
2278 (try_make_edge_direct_simple_call): Likewise.
2279 (try_make_edge_direct_virtual_call): Likewise.
2280 (update_call_notes_after_inlining): Renamed to...
2281 (update_indirect_edges_after_inlining): this. Moved edge creation for
2282 indirect calls to try_make_edge_direct_simple_call, also calls
2283 try_make_edge_direct_virtual_call for virtual calls.
2284 (ipa_print_node_params): Changed the header message.
2285 (ipa_write_jump_function): Stream also known type jump functions.
2286 (ipa_read_jump_function): Likewise.
2287 (ipa_write_indirect_edge_info): Stream new fields in
2288 cgraph_indirect_call_info.
2289 (ipa_read_indirect_edge_info): Likewise.
2290 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2293 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2295 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2297 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2299 * tree.h (CALL_EXPR_ARGS): Delete.
2300 (call_expr_arglist): Delete.
2301 * tree.c (call_expr_arglist): Delete.
2302 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2303 targetm.fold_builtin.
2304 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2305 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2306 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2307 arglist parameter. Use CALL_EXPR_ARG.
2308 (picochip_expand_builtin_3op): Likewise.
2309 (picochip_expand_builtin_2opvoid): Likewise.
2310 (picochip_expand_array_get): Likewise.
2311 (picochip_expand_array_put): Likewise.
2312 (picochip_expand_array_testport): Likewise.
2313 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
2314 rather than arglist.
2315 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2317 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2318 than TREE_VALUE and TREE_CHAIN.
2319 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2320 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2323 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2326 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2327 to have no fallthru edge.
2330 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2331 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2332 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2333 add BARRIER after previous bb if needed.
2335 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2337 * tree.c (build_function_type_list_1): Remove bogus assert condition.
2339 2010-05-17 Alan Modra <amodra@gmail.com>
2341 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2342 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
2343 with copy_reg rtx param.
2344 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2345 Correct cases where code for ABI_V4 did not initialise the reg
2346 used to access frame. Also leave frame_reg_rtx as sp for large
2347 frames that save no regs.
2349 2010-05-17 Martin Jambor <mjambor@suse.cz>
2352 * tree-sra.c (create_access_replacement): New parameter rename, mark
2353 the replaement for renaming only when it is true.
2354 (get_access_replacement): Pass true in the rename parameter of
2355 create_access_replacement.
2356 (get_unrenamed_access_replacement): New function.
2357 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2358 replacement declaration from it.
2360 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
2362 * function.c (try_fit_stack_local, add_frame_space): New static
2364 (assign_stack_local_1): Use them. Look for opportunities to use
2365 space previously wasted on alignment.
2366 * function.h (struct frame_space): New.
2367 (struct rtl_data): Add FRAME_SPACE_LIST member.
2368 * reload1.c (something_was_spilled): New static variable.
2369 (alter_reg): Set it.
2370 (reload): Test it in addition to testing if the frame size changed.
2372 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
2374 * config/s390/s390.c: Define sane prefetch settings and activate
2375 flag_prefetch_loop_arrays on -O3.
2376 * config/s390/s390.h: Declare that read can use write prefetch.
2378 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2380 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2383 2010-05-16 Jan Hubicka <jh@suse.cz>
2385 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2386 function body; do not check stdarg field of struct function.
2388 2010-05-16 Jan Hubicka <jh@suse.cz>
2390 * cgraph.c (dump_cgraph_node): Dump versionable flag.
2391 * cgraph.h (cgraph_local_info): Add versionable flag.
2392 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2393 (ipcp_versionable_function_p): Use it.
2394 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2397 2010-05-16 Jan Hubicka <jh@suse.cz>
2399 * cgraph.c (cgraph_clone_node): Take decl argument and insert
2400 clone into hash when it is different from orig.
2401 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2402 * cgraph.h (cgraph_clone_node): Update prototype.
2403 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2404 (lto_cgraph_encoder_delete): Delete body map.
2405 (lto_cgraph_encoder_size): Move to header.
2406 (lto_cgraph_encoder_encode_body_p,
2407 lto_set_cgraph_encoder_encode_body): New.
2408 (lto_output_node): Do not take written_decls argument; output clone_of
2410 (add_node_to): Add include_body_argument; call
2411 lto_set_cgraph_encoder_encode_body on master of the clone.
2412 (add_references): Update use of add_node_to.
2413 (compute_ltrans_boundary): Likewise.
2414 (output_cgraph): Do not create written_decls bitmap.
2415 (input_node): Take nodes argument; stream in clone_of correctly.
2416 (input_cgraph_1): Update use of input_node.
2417 * lto-streamer-out.c (lto_output): Use encoder info to decide
2418 what bodies to output.
2419 * ipa-inline.c (cgraph_clone_inlined_nodes,
2420 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2421 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2422 (lto_cgraph_encoder_size): Define here.
2423 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2426 2010-05-16 Richard Guenther <rguenther@suse.de>
2428 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2430 * ipa-type-escape.c (gate_type_escape_vars): Run when
2431 -fipa-struct-reorg runs.
2432 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2433 * common.opt (fipa-type-escape): Remove.
2435 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2437 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2438 (decode_options): Likewise.
2439 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2441 2010-05-16 Jan Hubicka <jh@suse.cz>
2443 * ipa.c (function_and_variable_visibility): Also bring local all
2446 2010-05-16 Richard Guenther <rguenther@suse.de>
2448 * alias.c (nonoverlapping_memrefs_p): Remove use of
2449 IPA type-escape information.
2451 2010-05-16 Joseph Myers <joseph@codesourcery.com>
2453 * c-common.c (c_common_reswords): Add _Static_assert for C.
2454 * c-parser.c (c_token_starts_declaration,
2455 c_parser_next_token_starts_declaration,
2456 c_parser_static_assert_declaration_no_semi,
2457 c_parser_static_assert_declaration): New.
2458 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
2459 Handle static assertions if static_assert_ok.
2460 (c_parser_external_declaration, c_parser_declaration_or_fndef,
2461 c_parser_compound_statement_nostart, c_parser_label,
2462 c_parser_for_statement, c_parser_objc_methodprotolist,
2463 c_parser_omp_for_loop): All callers of
2464 c_parser_declaration_or_fndef changed.
2465 (c_parser_struct_declaration): Handle static assertions.
2466 (c_parser_compound_statement_nostart): Use
2467 c_parser_next_token_starts_declaration and
2468 c_token_starts_declaration to detect start of declarations.
2469 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
2472 2010-05-16 Anatoly Sokolov <aesok@post.ru>
2474 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2475 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2476 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2477 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2478 (mmix_function_outgoing_value): Rename to...
2479 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
2480 (mmix_function_value_regno_p): Make static.
2481 (mmix_libcall_value): New function.
2482 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
2483 mmix_function_value_regno_p): Remove declaration.
2485 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
2487 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
2488 BUILT_IN_ALLOCA if stack checking is enabled.
2490 2010-05-16 Richard Guenther <rguenther@suse.de>
2492 * var-tracking.c (vars_copy_1): Inline ...
2493 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
2494 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
2495 (variable_merge_over_cur): Adjust. Merge asserts.
2496 (variable_merge_over_src): Likewise.
2497 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
2498 (variable_post_merge_new_vals): Merge asserts.
2499 (variable_post_merge_perm_vals): Likewise.
2500 (find_mem_expr_in_1pdv): Likewise.
2501 (dataflow_set_different_value): Remove.
2502 (onepart_variable_different_p): Merge asserts.
2503 (variable_different_p): Likewise.
2504 (dataflow_set_different_1): Inline ...
2505 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
2506 (emit_notes_for_differences_1): Merge asserts.
2508 2010-05-16 Richard Guenther <rguenther@suse.de>
2510 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
2511 * optabs.c (libfunc_decl_hash): Likewise.
2512 * varasm.c (emutls_decl): Likewise.
2514 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
2516 * c-decl.c: Don't include gimple.h.
2517 (merge_decls): Do not copy gimple_body.
2519 2010-05-15 Jason Merrill <jason@redhat.com>
2521 * c.opt: Add -fnothrow-opt.
2523 2010-05-15 Jan Hubicka <jh@suse.cz>
2525 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
2527 * passes.c (ipa_write_summaries): Write all analyzed nodes.
2529 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
2531 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
2532 * Makefile.in: Add it.
2533 Fix all other Makefile dependencies for changes below.
2534 * tree.h: Include it instead of defining VEC primitives here.
2535 * gimple.h: Likewise.
2537 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
2538 * except.h: Include vecir.h, break dependence on tree.h.
2540 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
2542 * tree-iterator.c: ...to here.
2543 * tree-iterator.h: Fix file introduction comment. Add extern markers.
2545 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
2547 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
2548 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
2549 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
2550 tree-mudflap.h, and target.h.
2551 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
2552 predict.h, tree-inline.h, gimple.h, and langhooks.h.
2553 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
2554 Add FIXME for why gimple.h is still included (should be unnecessary
2555 since GCC 4.5 gimplification unit-at-a-time).
2556 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
2557 * c-pragma.c: Add FIXME for why function.h needs to be included just
2558 for cfun, at front-end level.
2559 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
2560 Do not include ggc.h, but include vecprim.h for VEC(char).
2561 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
2562 Explain why target.h is included.
2563 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
2564 Explain why gimple.h is included.
2565 * c-ppoutput.c: Do not include tm.h.
2566 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
2567 * c-parses.c: Explain why rtl.h is included, and that this (and only
2568 this) is also why tm.h must be included.
2569 Do not include except.h.
2570 * c-lang.c: Do not include ggc.h.
2572 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
2574 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
2576 2010-05-15 Joseph Myers <joseph@codesourcery.com>
2578 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
2579 unions by default if those structs and unions have no tags. Do
2580 not condition anonymous struct and unions handling on flag_iso.
2581 Allow anonymous structs and unions for C1X.
2582 (finish_struct): Do not diagnose lack of named fields when
2583 anonymous structs and unions present for C1X. Accept flexible
2584 array members in structure with anonymous structs or unions but no
2585 directly named fields.
2586 * doc/extend.texi (Unnamed Fields): Update.
2588 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
2590 * gimple.h (compare_field_offset): Rename into...
2591 (gimple_compare_field_offset): ...this.
2592 * gimple.c (compare_field_offset): Rename into...
2593 (gimple_compare_field_offset): ...this. Compare the full access if
2594 the offset is self-referential.
2595 (gimple_types_compatible_p): Adjust for above renaming.
2596 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
2597 DECL_NONADDRESSABLE_P flag of fields before merging them.
2599 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
2601 * tree.h (ctor_to_list): Delete.
2602 * tree.c (ctor_to_list): Delete.
2604 2010-05-15 Jan Hubicka <jh@suse.cz>
2606 * ipa-reference.c: Include toplev.h
2607 (is_proper_for_analysis): Only add to all_module_statics
2609 (write_node_summary_p, stream_out_bitmap,
2610 ipa_reference_write_optimization_summary,
2611 ipa_reference_read_optimization_summary): New.
2612 (struct ipa_opt_pass_d pass_ipa_reference): Add
2613 optimization summary streaming.
2614 * lto-cgraph.c (referenced_from_this_partition_p,
2615 reachable_from_this_partition_p): New functions.
2616 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2617 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
2618 * opts.c (decode_options): Enable ipa_reference.
2619 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
2620 * lto-streamer.h (referenced_from_this_partition_p,
2621 reachable_from_this_partition_p): Declare.
2623 2010-05-15 Richard Guenther <rguenther@suse.de>
2625 PR tree-optimization/44038
2626 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
2627 taking the address of a V_C_E of a constant.
2629 2010-05-14 Jan Hubicka <jh@suse.cz>
2631 * tree.h (memory_identifier_string): Remove.
2632 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
2633 (ipa_reference_global_vars_info_d): Remove statics_not_read and
2634 statics_not_written.
2635 (ipa_reference_optimization_summary_d): New structure.
2636 (ipa_reference_optimization_summary_t): New type and vector.
2637 (ipa_reference_vars_info_d): Embedd structures instead of using
2639 (reference_vars_to_consider): Remove out of GGC space.
2640 (module_statics_escape): Remove.
2641 (global_info_obstack): Rename to ...
2642 (optimization_summary_obstack): ... this one.
2643 (initialization_status_t): Remove.
2644 (memory_identifier_string): Remove.
2645 (get_reference_vars_info): Fix indenting.
2646 (set_reference_vars_info): Likewise.
2647 (get_reference_optimization_summary): New.
2648 (set_reference_optimization_summary): New.
2649 (get_global_reference_vars_info): Remove.
2650 (ipa_reference_get_read_global): Remove.
2651 (ipa_reference_get_written_global): Remove.
2652 (ipa_reference_get_not_read_global): Update.
2653 (ipa_reference_get_not_written_global): Update.
2654 (is_proper_for_analysis): Outlaw addressable.
2655 (propagate_bits): Update for new datastructures.
2656 (analyze_variable): Remove.
2657 (init_function_info): Update for new datastructures.
2658 (clean_function_local_data): Remove.
2659 (clean_function): Remove.
2660 (copy_global_bitmap): Use optimizations_summary_obstack.
2661 (duplicate_node_data): Duplicate optimization summary only.
2662 (remove_node_data): Remove optimization summary only.
2663 (generate_summary): Do not analyze variables; do not compute
2664 module_statics_escape; do not prune solutions by it.
2665 (read_write_all_from_decl): Fix typos in comments.
2666 (propagate): Doscover readonly and nonaddressable first;
2667 update for new datastructures; share global bitmaps.
2668 * ipa-reference.h (ipa_reference_get_read_global,
2669 ipa_reference_get_written_global): Remove.
2670 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
2671 * Makefile.in: Remove ipa-refereference from GT files.
2673 2010-05-14 Jakub Jelinek <jakub@redhat.com>
2676 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
2677 for all SYMBOL_REF_DECLs.
2679 2010-05-14 Jan Hubicka <jh@suse.cz>
2681 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
2682 (varpool_all_refs_explicit_p): New inline function.
2683 * ipa-reference.c: Update comment.
2684 (module_statics_written): Remove.
2685 (get_static_decl): Remove.
2686 (ipa_init): Do not initialize module_statics_written.
2687 (analyze_function): Likewise.
2688 (generate_summary): Likewise; do not compute module_statics_readonly
2689 and do not update variable flags.
2690 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
2691 * ipa.c: Inlucde flags.h
2692 (cgraph_local_node_p): New.
2693 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
2694 promote functions to local.
2695 (ipa_discover_readonly_nonaddressable_vars): New function.
2696 (function_and_variable_visibility): Use cgraph_local_node_p.
2697 * varpool.c (varpool_finalize_decl): Set force_output for
2698 DECL_PRESERVE_P vars.
2700 2010-05-14 Jan Hubicka <jh@suse.cz>
2702 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
2704 2010-05-14 Richard Guenther <rguenther@suse.de>
2706 PR tree-optimization/44119
2707 * tree-ssa-pre.c (eliminate): Properly mark replacement of
2708 a PHI node necessary.
2710 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
2712 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
2714 2010-05-14 Jason Merrill <jason@redhat.com>
2717 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
2718 (gimple_call_set_nothrow): New.
2719 * gimple.c (gimple_build_call_from_tree): Call it.
2720 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
2723 * gimplify.c (gimplify_seq_add_stmt): No longer static.
2724 * gimple.h: Declare it.
2725 * gimple.c (gimple_build_eh_filter): No ops.
2727 2010-05-14 Jan Hubicka <jh@suse.cz>
2729 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
2730 nodes already in queue.
2731 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
2734 2010-05-14 Jakub Jelinek <jakub@redhat.com>
2737 * cfgexpand.c (expand_debug_expr): If non-memory op0
2738 has BLKmode, return NULL.
2740 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
2742 * config.gcc: Add support for --with-cpu option for bdver1.
2743 * config/i386/i386.h (TARGET_BDVER1): New macro.
2744 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
2745 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2746 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
2747 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
2748 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
2749 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
2750 (processor_type): Add PROCESSOR_BDVER1.
2751 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
2752 processor_type in config/i386/i386.h.
2753 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
2754 movaps <reg, reg> instead of movapd <reg, reg> when replacing
2755 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
2756 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
2757 to emit packed xor instead of packed double/packed integer
2758 xor for SSE and AVX when moving a zero value.
2759 * config/i386/sse.md: Add check for
2760 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
2761 movapd/movdqa for SSE and AVX.
2762 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
2763 single logical operations i.e and, or and xor instead of packed double
2764 logical operations for SSE and AVX.
2765 * config/i386/i386-c.c (ix86_target_macros_internal):
2766 Add PROCESSOR_BDVER1.
2767 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
2768 (has_fma4, has_xop): New.
2769 * config/i386/i386.c (bdver1_cost): New variable.
2770 (m_BDVER1): New macro.
2771 (m_AMD_MULTIPLE): Add m_BDVER1.
2772 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
2773 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
2774 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
2775 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
2776 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
2777 x86_tune_sse_partial_reg_dependency,
2778 x86_tune_sse_unaligned_load_optimal,
2779 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
2780 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
2781 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
2782 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
2783 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
2784 Enable/disable for bdver1.
2785 (processor_target_table): Add bdver1_cost.
2786 (cpu_names): Add bdver1.
2787 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
2788 processor_alias_table.
2789 (ix86_expand_vector_move_misalign): Change.
2790 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
2791 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
2792 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
2793 of movupd/movdqu for SSE and AVX.
2794 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
2795 (ix86_tune_adjust_cost): Add code for bdver1.
2796 (standard_sse_constant_opcode): Add check for
2797 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
2798 of packed double xor for SSE and AVX.
2800 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
2802 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
2805 2010-05-14 Tristan Gingold <gingold@adacore.com>
2807 * toplev.c (default_debug_hooks): Remove this variable.
2808 (process_options): Remove assignments to default_debug_hooks.
2810 2010-05-14 Martin Jambor <mjambor@suse.cz>
2812 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
2813 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
2814 * langhooks.h (struct lang_hooks_for_decls): Removed field
2816 * tree.c (free_lang_data): Remove assignment to
2817 lang_hooks.fold_obj_type_ref.
2818 * tree.def (OBJ_TYPE_REF): Update comment.
2820 2010-05-14 Richard Guenther <rguenther@suse.de>
2822 PR tree-optimization/44124
2823 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
2825 2010-05-14 Alan Modra <amodra@gmail.com>
2828 * config/rs6000/rs6000.c (struct machine_function): Reorder
2829 fields for better packing. Add lr_save_state.
2830 (rs6000_ra_ever_killed): Return lr_save_state if set.
2831 (rs6000_emit_eh_reg_restore): Set lr_save_state.
2833 2010-05-13 Jan Hubicka <jh@suse.cz>
2835 * varpool.c (decide_is_variable_needed): Drop code checking
2836 TREE_SYMBOL_REFERENCED.
2838 2010-05-13 Jan Hubicka <jh@suse.cz>
2840 * final.c (output_addr_const): Do not call mark_decl_referenced.
2841 * cgraphunit.c (process_function_and_variable_attributes): Use
2842 mark_needed_node dirrectly.
2843 (assemble_thunk): Do not call mark_decl_referenced.
2845 2010-05-13 Anatoly Sokolov <aesok@post.ru>
2847 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
2849 2010-05-13 Jeff Law <law@redhat.com>
2851 * ira-conflicts.c (print_allocno_conflicts): New function broken out
2853 (print_conflicts): Call print_allocno_conflicts.
2855 2010-05-13 Jakub Jelinek <jakub@redhat.com>
2858 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
2861 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
2863 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
2864 t-mingw-w64 or t-mingw-w32 for multilib configuration.
2865 * config/i386/t-mingw-w32: New.
2866 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
2868 2010-05-13 Martin Jambor <mjambor@suse.cz>
2870 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
2872 * gimple-fold.c (get_base_binfo_for_type): New function.
2873 (gimple_get_relevant_ref_binfo): Likewise.
2874 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2875 (gimple_fold_obj_type_ref): Likewise.
2876 (fold_gimple_call): Simplify condition for folding virtual calls
2877 and call gimple_fold_obj_type_ref.
2878 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
2879 (gimple_fold_obj_type_ref_known_binfo): Likewise.
2881 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
2883 * config/rs6000/rs6000-protos.h
2884 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
2885 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
2886 (rs6000_debug_mode_dependent_address)
2887 (rs6000_mode_dependent_address_ptr): Likewise.
2889 2010-05-13 Jakub Jelinek <jakub@redhat.com>
2892 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
2894 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
2895 * tree-sra.c (create_access_replacement): Call unshare_expr before
2896 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
2897 * dwarf2out.c: Include tree-flow.h.
2898 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
2899 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
2900 Handle DW_OP_bit_piece.
2901 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
2902 construct_piece_list, adjust_piece_list): New functions.
2903 (add_var_loc_to_decl): Handle SRA optimized variables.
2904 Adjust for var_loc_note to loc field renaming.
2905 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
2906 in VAR_LOCATION note.
2907 (new_loc_descr_op_bit_piece): New function.
2908 (dw_sra_loc_expr): New function.
2909 (dw_loc_list): Use it. Don't handle the last range after the
2910 loop, handle it inside of the loop. Adjust for var_loc_note
2911 to loc field renaming.
2912 (add_location_or_const_value_attribute): Only special case
2913 single entry loc lists if loc is NOTE_P. Adjust for
2914 var_loc_note to loc field renaming.
2915 (dwarf2out_var_location): Don't set newloc->var_loc_note
2916 and newloc->next here.
2918 2010-05-12 Jan Hubicka <jh@suse.cz>
2920 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
2922 * cgraph.h (cgraph_only_called_directly_p,
2923 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
2924 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
2925 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
2927 * ipa.c (cgraph_remove_unreachable_nodes): Use
2928 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
2930 * tree-inline.c (copy_bb): Check address_taken flag.
2931 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
2932 externally_visible flag.
2934 2010-05-12 Jason Merrill <jason@redhat.com>
2938 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
2939 * sdbout.c (plain_type_1): Likewise.
2940 * dwarf2out.c (is_base_type): Likewise.
2941 (gen_type_die_with_usage): Likewise. Generate
2942 DW_TAG_unspecified_type for any LANG_TYPE.
2944 2010-05-12 Jan Hubicka <jh@suse.cz>
2946 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
2948 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
2949 (cgraph_clone_edge): Update.
2950 (cgraph_node_remove_callees): Remove indirect calls too.
2951 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
2952 (cgraph_create_indirect_edge): Update prototype.
2953 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
2954 is_proper_for_analysis.
2955 (add_new_function, visited_nodes, function_insertion_hook_holder,
2956 get_local_reference_vars_info, mark_address_taken, mark_address,
2957 mark_load, mark_store, check_asm_memory_clobber, check_call,
2958 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
2959 (ipa_init): Do not initialize visited_nodes;
2960 function_insertion_hook_holder.
2961 (analyze_variable): Rewrite.
2962 (analyze_function): Rewrite.
2963 (copy_local_bitmap): Remove.
2964 (duplicate_node_dat): Do not duplicate local info.
2965 (generate_summary): Simplify to only walk cgraph.
2966 (write_node_summary_p, ipa_reference_write_summary,
2967 ipa_reference_read_summary): Remove.
2968 (propagate): Do not remove function insertion;
2970 (pass_ipa_reference): NULLify summary handling fields.
2971 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
2972 (input_edge): Input ecf_flags.
2973 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
2974 (update_indirect_edges_after_inlining): Ignore edges with unknown
2977 2010-05-12 Sriraman Tallam <tmsriram@google.com>
2979 * implicit-zee.c: New file.
2980 * tree-pass.h (pass_implicit_zee): Declare.
2981 * passes.c (init_optimization_passes): Add zee pass.
2982 * common.opt (fzee): New flag.
2983 * timevar.def (TV_ZEE): Define.
2984 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
2986 * Makefile.in (implicit-zee.o): Add new build file.
2988 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2989 Nathan Froyd <froydnj@codesourcery.com>
2991 * c-common.c (sync_resolve_params): Remove write-only variable.
2993 2010-05-12 Anatoly Sokolov <aesok@post.ru>
2995 * target.h (struct gcc_target): Add mode_dependent_address_p field.
2996 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
2997 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
2998 * targhooks.c (default_mode_dependent_address_p): New function.
2999 * targhooks.h (default_mode_dependent_address_p): Declare function.
3000 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3001 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
3002 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
3003 target hook. Change return type to bool.
3004 * recog.h (mode_dependent_address_p): Change return type to bool.
3006 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3007 Nathan Froyd <froydnj@codesourcery.com>
3009 * tree-mudflap.c (build_function_type_0, build_function_type_1,
3010 build_function_type_2, build_function_type_3): Remove.
3011 (mudflap_init): Use build_function_type_list.
3013 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3014 Nathan Froyd <froydnj@codesourcery.com>
3016 * coverage.c (build_fn_info_value): Call build_constructor instead of
3017 build_constructor_from_list.
3018 (build_ctr_info_value): Likewise.
3019 (build_gcov_info): Likewise.
3021 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
3023 * tree.c (build_constructor): Compute TREE_CONSTANT for the
3024 resultant constructor.
3025 (build_constructor_single): Don't set TREE_CONSTANT.
3026 (build_constructor_from_list): Don't compute TREE_CONSTANT.
3028 2010-05-12 Jan Hubicka <jh@suse.cz>
3030 * cgraph.h (struct varpool_node): Add aux.
3031 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3032 * varpool.c (varpool_remove_node): Do not remove initializer.
3033 (varpool_reset_queue): Export.
3034 (varpool_finalize_decl): Volatile vars are forced to be output.
3035 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3037 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3038 process_references, varpool_can_remove_if_no_refs): New functions.
3039 (cgraph_remove_unreachable_nodes): Handle variables too.
3041 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
3044 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3046 2010-05-12 Jakub Jelinek <jakub@redhat.com>
3049 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3050 change value of ORT_TASK.
3051 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3052 (omp_notice_threadprivate_variable): New function.
3053 (omp_notice_variable): Call it for threadprivate variables.
3054 If enclosing ctx is a task, print enclosing task rather than
3055 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
3056 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3057 if task has untied clause.
3060 * dwarf2out.c (base_type_die): Don't add name attribute here.
3061 (modified_type_die): Instead of sizetype use
3062 its underlying original type. If a DW_TAG_base_type doesn't
3063 have name added, add __unknown__.
3064 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3065 always call force_type_die instead.
3067 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
3069 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3070 for __stack_chk_guard.
3072 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3074 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3075 don't call start_source_file debug hook here...
3076 (finish_options): ... but here, after outputting predefined and
3077 command line defines and undefs.
3080 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3082 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3083 optimizing away empty bb with no successors, move over its
3084 footer chain to fallthru predecessor.
3085 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3086 (rtl_split_edge): For asm goto call patch_jump_insn even if
3087 splitting fallthru edge.
3090 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3091 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3092 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3093 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3097 * c-parser.c (c_parser_expression): Mark LHS of a comma
3098 expression as read if it is a decl, handled component or
3099 COMPOUND_EXPR with that on the RHS.
3100 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3101 if it is a decl or handled component.
3103 2010-05-11 Jan Hubicka <jh@suse.cz>
3105 * lto-symtab.c (lto_symtab_free): New function.
3106 * lto-streamer.h (lto_symtab_free): Declare.
3108 2010-05-11 Jan Hubicka <jh@suse.cz>
3110 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3111 that if function is needed it is reachable.
3112 (lto_output_node): See if it the function is reachable or referenced.
3113 (output_cgraph): Update call of lto_output_node.
3114 * lto-streamer.h (reachable_from_other_partition_p): Declare.
3116 2010-05-11 Jan Hubicka <jh@suse.cz>
3118 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3121 2010-05-11 Jan Hubicka <jh@suse.cz>
3123 PR tree-optimize/44063
3124 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3126 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3128 (estimate_function_body_sizes): Compute sizes even when disregarding.
3130 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
3132 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3134 2010-05-11 Jan Hubicka <jh@suse.cz>
3136 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3137 into every boundary.
3139 2010-05-11 Jan Hubicka <jh@suse.cz>
3141 * matrix-reorg.c (matrix_reorg): Rebuild edges.
3143 2010-05-11 Jan Hubicka <jh@suse.cz>
3145 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3146 lto_streamer_cache_delete): Put nodes into heap.
3147 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3150 2010-05-11 Jan Hubicka <jh@suse.cz>
3152 * cgraphbuild.c (cgraph_rebuild_references): New.
3153 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3155 * cgraph.h (cgraph_rebuild_references): Declare.
3156 * tree-inline.c (tree_function_versioning): Use it.
3157 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3159 2010-05-11 Jan Hubicka <jh@suse.cz>
3161 * cgraph.c: Include ipa-utils.h
3162 (cgraph_create_virtual_clone): Update references.
3163 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3165 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3167 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3168 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3171 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3173 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3175 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3177 * gcc.c (execute): For -### don't quote arguments that
3178 contain just alphanumerics and _/-. characters.
3179 * doc/invoke.texi: Document that change for -###.
3182 * df-problems.c (struct dead_debug): Add to_rescan field.
3183 (dead_debug_init): Clear to_rescan field.
3184 (dead_debug_finish): Rescan all debug insns in to_rescan
3185 bitmap and free the bitmap.
3186 (dead_debug_insert_before): Instead of rescanning debug insns
3187 immediately queue their rescanning until dead_debug_finish.
3188 (df_note_bb_compute): After dead_debug_add do continue instead
3191 2010-05-10 Jakub Jelinek <jakub@redhat.com>
3194 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
3195 clear also INSN_REG_USE_LIST.
3197 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3199 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
3201 2010-05-10 Jan Hubicka <jh@suse.cz>
3203 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
3206 2010-05-10 Jan Hubicka <jh@suse.cz>
3208 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
3210 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
3211 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
3212 (lto_streamer_cache_create): Init alloc pool.
3213 (lto_streamer_cache_delete): Free alloc pool.
3214 * lto-streamer.h: Include alloc pool.
3215 (lto_streamer_cache_d): Use alloc pool.
3216 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
3218 2010-05-10 Jan Hubicka <jh@suse.cz>
3220 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
3221 * cgraphbuild.c: Include except.h
3222 (record_type_list, record_eh_tables): New function.
3223 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3225 2010-05-10 Jan Hubicka <jh@suse.cz>
3227 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3228 __frame_dummy_init_array_entry, force_to_data): Attribute as used
3231 2010-05-10 Michael Matz <matz@suse.de>
3233 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3234 (can_reassociate_p): Use FLOAT_TYPE_P.
3235 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3236 (vect_force_simple_reduction): ... this.
3237 * tree-parloops.c (gather_scalar_reductions): Use
3238 vect_force_simple_reduction.
3239 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3240 vect_is_simple_reduction, add modify argument, if true rewrite
3241 "a-b" into "a+(-b)".
3242 (vect_is_simple_reduction, vect_force_simple_reduction): New
3244 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3246 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
3247 Vladimir Makarov <vmakarov@redhat.com>
3249 PR rtl-optimization/44012
3250 * ira-build.c (remove_unnecessary_allocnos): Nullify
3251 regno_allocno_map of the removed allocno.
3253 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3255 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3257 * configure: Regenerate.
3259 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3261 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3263 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3264 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3266 * configure: Regenerate.
3268 2010-05-10 Richard Guenther <rguenther@suse.de>
3270 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3271 marked if the entry identifier is marked.
3273 2010-05-10 Richard Guenther <rguenther@suse.de>
3275 * c-common.c (struct c_common_attributes): Add fnspec attribute.
3276 (handle_fnspec_attribute): New function.
3277 * gimple.h (gimple_call_return_flags): Declare.
3278 (gimple_call_arg_flags): Likewise.
3279 * gimple.c (gimple_call_arg_flags): New function.
3280 (gimple_call_return_flags): Likewise.
3281 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3283 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3285 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3286 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3288 (make_heapvar_for): ... this new function.
3289 (handle_rhs_call): Handle fnspec attribute argument specifiers.
3290 (handle_lhs_call): Likewise.
3291 (find_func_aliases): Adjust.
3293 2010-05-10 Richard Guenther <rguenther@suse.de>
3295 PR tree-optimization/44050
3296 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3298 2010-05-10 Wei Guozhi <carrot@google.com>
3301 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3303 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3306 * c-typeck.c (lookup_field): Take a type directly. Update
3308 (build_component_ref): Update call to lookup_field.
3309 (set_init_label): Use lookup_field to find initialized field.
3310 Handle returned list of fields like a sequence of designators.
3312 2010-05-09 Richard Guenther <rguenther@suse.de>
3315 * fold-const.c (tree_single_nonzero_warnv_p): Properly
3316 handle &FUNCTION_DECL.
3318 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3321 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
3322 structures and unions recursively.
3323 (detect_field_duplicates): Move duplicate detection with a hash to
3324 detect_field_duplicates_hash. Always use a hash if anonymous
3325 structures or unions are present.
3326 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3329 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
3332 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3333 detect Atom, Core 2 and Core i7.
3335 2010-05-09 Richard Guenther <rguenther@suse.de>
3337 * gcc.c (store_arg): Handle temporary file deletion for
3340 2010-05-09 Richard Guenther <rguenther@suse.de>
3343 * ipa-inline.c (estimate_function_body_sizes): Return after
3344 disregarding inline limits.
3346 2010-05-09 Richard Guenther <rguenther@suse.de>
3348 * gcc.c (store_arg): Revert last change.
3350 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
3353 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3354 (optimize_ops_list): Call it.
3356 2010-05-08 Richard Guenther <rguenther@suse.de>
3358 PR tree-optimization/44030
3359 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
3360 NECESSARY flag if we propagate from a inserted expression.
3362 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3364 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3365 domain types as equal if they are both PLACEHOLDER_EXPRs.
3367 2010-05-08 Richard Guenther <rguenther@suse.de>
3369 * lto-wrapper.c (run_gcc): Remove linker output from
3370 command line for LTRANS invocation.
3372 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3374 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3375 lto-macho as lto_binary_reader.
3376 * target.h (struct gcc_target): New hooks lto_start and lto_end.
3377 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3378 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3379 in lto_start and lto_end calls.
3380 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
3382 (scan_prog_file): Update is_elf_or_coff call.
3383 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3385 * collect2.c (main): Fix enum comparison.
3387 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3389 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3390 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
3391 and TARGET_ASM_LTO_END.
3392 * darwin.c: Include obstack.h and lto-streamer.h.
3393 (lto_section_names_offset, lto_section_names_obstack,
3394 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3396 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3397 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
3398 to a temporary file.
3399 (darwin_asm_lto_end): New function. Restore asm_out_file.
3400 (darwin_asm_named_section): For LTO sections, replace the name with
3401 the offset of the section name in a string table, and build this
3403 (darwin_file_start): Initialize global vars for LTO support.
3404 (darwin_file_end): If output to asm_out_file was redirected, append it
3405 to the proper asm_out_file here. Add the section names section.
3407 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3409 * c-pragma.c (pending_weak_d, pending_weak): New.
3410 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3411 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3412 handle_pragma_weak): Update the uses of pending_weaks.
3414 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3416 PR documentation/44016
3417 * doc/standards.texi (Standards): Link to unversioned
3418 cxx0x_status.html page.
3420 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
3423 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3424 in addition to TREE_USED, to avoid "set but unused" warnings.
3426 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3428 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3429 (is_loop_prefetching_profitable): Do not insert prefetches
3430 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3431 times the prefetch ahead distance.
3433 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3435 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3436 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3437 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3440 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
3442 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
3443 a diagnostic info when the insn-to-mem ratio is too small.
3445 2010-05-07 Richard Guenther <rguenther@suse.de>
3447 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
3449 (store_arg): Queue temp_filename for deletion instead of
3452 2010-05-07 Richard Guenther <rguenther@suse.de>
3454 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
3455 (run_gcc): Handle LTRANS phase invocation.
3456 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
3458 2010-05-07 Jakub Jelinek <jakub@redhat.com>
3460 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
3461 this is also meaningful on PARM_DECLs and RESULT_DECLs.
3463 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3465 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
3467 2010-05-07 Richard Guenther <rguenther@suse.de>
3469 PR tree-optimization/44020
3470 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
3471 code when PRE is not yet initialized.
3473 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3475 * config/mips/dbxmdebug.h: Remove.
3476 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
3478 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
3480 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
3481 with null pointer and also warn about ordered comparison of zero with
3484 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3486 * graphite-blocking.c
3487 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
3488 * graphite-clast-to-gimple.c
3489 (clast_to_gcc_expression): Same.
3490 (precision_for_value): Same.
3491 (precision_for_interval): Same.
3492 (gcc_type_for_interval): Same.
3493 (graphite_create_new_guard): Same.
3494 (compute_bounds_for_level): Same.
3495 (graphite_create_new_loop_guard): Same.
3496 * graphite-interchange.c
3497 (build_linearized_memory_access): Same.
3498 (pdr_stride_in_loop): Same.
3499 (memory_strides_in_loop_1): Same.
3500 (memory_strides_in_loop): Same.
3501 (extend_scattering): Same.
3502 (psct_scattering_dim_for_loop_depth): Same.
3503 (pbb_number_of_iterations): Same.
3505 (debug_iteration_domains): Same.
3507 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3508 (ppl_set_inhomogeneous_gmp): Same.
3509 (ppl_strip_loop): Same.
3510 (ppl_lexico_compare_linear_expressions): Same.
3511 (ppl_read_polyhedron_matrix): Same.
3512 (ppl_max_for_le_pointset): Same.
3514 (ppl_read_polyhedron_matrix): Same.
3515 (tree_int_to_gmp): Same.
3516 (gmp_cst_to_tree): Same.
3517 (ppl_set_inhomogeneous): Same.
3518 (ppl_set_inhomogeneous_tree): Same.
3519 (ppl_set_coef): Same.
3520 (ppl_set_coef_tree): Same.
3521 * graphite-sese-to-poly.c
3522 (build_pbb_scattering_polyhedrons): Same.
3523 (build_scop_scattering): Same.
3524 (scan_tree_for_params_right_scev): Same.
3525 (scan_tree_for_params): Same.
3526 (find_params_in_bb): Same.
3527 (find_scop_parameters): Same.
3528 (add_upper_bounds_from_estimated_nit): Same.
3529 (build_loop_iteration_domains): Same.
3530 (add_condition_to_domain): Same.
3531 (pdr_add_memory_accesses): Same.
3533 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3535 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
3536 CLooG's value_* macros to their respective mpz_* counterparts.
3537 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
3538 (graphite_create_new_loop_guard): Same.
3539 * graphite-interchange.c (build_linearized_memory_access): Same.
3540 (pdr_stride_in_loop): Same.
3541 (memory_strides_in_loop_1): Same.
3542 (1st_interchange_profitable_p): Same.
3543 * graphite-poly.c (extend_scattering): Same.
3544 (psct_scattering_dim_for_loop_depth): Same.
3545 (pbb_number_of_iterations): Same.
3546 (pbb_number_of_iterations_at_time): Same.
3547 * graphite-poly.h (new_1st_loop): Same.
3548 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
3549 (oppose_constraint): Same.
3550 (insert_constraint_into_matrix): Same.
3551 (ppl_set_inhomogeneous_gmp): Same.
3552 (ppl_set_coef_gmp): Same.
3553 (ppl_strip_loop): Same.
3554 (ppl_lexico_compare_linear_expressions): Same.
3555 (ppl_max_for_le_pointset): Same.
3556 (ppl_min_for_le_pointset): Same.
3557 (ppl_build_realtion): Same.
3558 * graphite-ppl.h (gmp_cst_to_tree): Same.
3559 (ppl_set_inhomogeneous): Same.
3560 (ppl_set_inhomogeneous_tree): Same.
3561 (ppl_set_coef): Same.
3562 (ppl_set_coef_tree): Same.
3563 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
3564 (build_scop_scattering): Same.
3565 (add_value_to_dim): Same.
3566 (scan_tree_for_params_right_scev): Same.
3567 (scan_tree_for_params_int): Same.
3568 (scan_tree_for_params): Same.
3569 (find_params_in_bb): Same.
3570 (find_scop_parameters): Same.
3571 (add_upper_bounds_from_estimated_nit): Same.
3572 (build_loop_iteration_domains): Same.
3573 (create_linear_expr_from_tree): Same.
3574 (add_condition_to_domain): Same.
3575 (pdr_add_memory_accesses): Same.
3577 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3578 Jason Merrill <jason@redhat.com>
3580 * c-common.c (c_common_reswords): Add nullptr.
3581 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
3582 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
3583 (gen_type_die_with_usage): Likewise.
3584 * dbxout.c (dbxout_type): Likewise.
3585 * sdbout.c (plain_type_1): Likewise.
3587 2010-05-06 Jason Merrill <jason@redhat.com>
3589 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
3590 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
3592 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
3594 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
3595 stripping WITH_SIZE_EXPR.
3596 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
3599 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3601 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
3602 list of obsolete configurations.
3603 Disabled check for obsolete configurations.
3604 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
3605 Removed support for previous versions.
3606 * config/mips/iris.h: Removed.
3607 * config/mips/iris5.h: Removed.
3608 * config/mips/iris6.h: Merged old iris.h contents.
3609 (TARGET_IRIX): Removed.
3610 (DRIVER_SELF_SPECS): Removed mabi=32.
3611 (IDENT_ASM_OP): Removed undef.
3612 (STARTFILE_SPEC): Removed mabi=32.
3613 (ENDFILE_SPEC): Likewise.
3614 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
3615 (MACHINE_TYPE): Update for IRIX 6.5.
3616 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
3617 TARGET_IRIX by TARGET_IRIX6.
3618 (mips_file_start): Likewise.
3619 (mips_output_external): Remove IRIX 5/6 O32 support.
3620 (mips_output_function_prologue): Likewise.
3621 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
3623 (TARGET_CPU_CPP_BUILTINS): Likewise.
3624 (TARGET_IRIX): Removed.
3625 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
3626 (MULTILIB_DIRNAMES): Removed 32.
3627 (MULTILIB_OSDIRNAMES): Removed ../lib.
3628 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
3629 (Specific, mips-sgi-irix5): Document removal.
3630 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
3631 Remove references to older IRIX 6 releases and the O32 ABI.
3633 2010-05-06 Jakub Jelinek <jakub@redhat.com>
3636 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
3637 instead of DF_REF_REAL_REG.
3639 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
3642 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
3643 handling to still return true for x64 targets.
3645 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3647 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
3649 2010-05-06 Jan Hubicka <jh@suse.cz>
3651 PR tree-optimization/43791
3652 * ipa-inline.c (update_caller_keys): Remove bogus
3653 disregard_inline_limits check.
3655 2010-05-06 Michael Matz <matz@suse.de>
3657 PR tree-optimization/43984
3658 * tree-ssa-pre.c (inserted_phi_names): Remove.
3659 (inserted_exprs): Change to bitmap.
3660 (create_expression_by_pieces): Set bits, don't append to vector.
3661 (insert_into_preds_of_block): Don't handle inserted_phi_names.
3662 (eliminate): Don't look at inserted_phi_names, remove deleted
3663 insns from inserted_exprs.
3664 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
3665 (init_pre, fini_pre): Allocate and free bitmaps.
3666 (execute_pre): Insert insns on edges before elimination.
3668 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
3670 * tree.c (initializer_zerop): Handle STRING_CST.
3672 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3675 * doc/invoke.texi (Wimplicit): Document as C only.
3676 * opts.c (common_handle_option): Add argument kind.
3677 (handle_option): Rename as read_cmdline_option. Factor out code to...
3678 (handle_option): ... here. New.
3679 (handle_options): Rename as read_cmdline_options.
3680 (decode_options): Update call.
3681 (set_option): Use option index instead of option pointer. Classify
3682 diagnostics correctly.
3683 (enable_warning_as_error): Call handle_option.
3684 * opts.h (set_option): Update declaration.
3685 (handle_option): Declare.
3686 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
3687 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
3688 * c-opts.c (set_Wimplicit): Delete.
3689 (c_family_lang_mask): New static constant.
3690 (c_common_handle_option): Add argument kind. Use handle_option
3691 instead of set_Wimplicit.
3692 (c_common_post_options): warn_implicit and warn_implicit_int
3693 are disabled by default.
3694 * c-common.c (warn_implicit): Do not define here.
3695 * c-common.h (warn_implicit): Do not declare here.
3696 (c_common_handle_option): Update declaration.
3697 * lto-opts.c (lto_reissue_options): Update call to set_option.
3699 2010-05-06 Richard Guenther <rguenther@suse.de>
3701 PR tree-optimization/43571
3702 * domwalk.c (walk_dominator_tree): Walk the dominator
3703 sons in more optimal order.
3705 2010-05-06 Richard Guenther <rguenther@suse.de>
3707 PR tree-optimization/43934
3708 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
3709 (stmt_cost): Likewise.
3710 (extract_true_false_args_from_phi): New helper.
3711 (determine_max_movement): For PHI nodes verify we can hoist them
3712 and compute their cost.
3713 (determine_invariantness_stmt): Handle PHI nodes.
3714 (move_computations_stmt): Likewise. Hoist PHI nodes in
3715 if-converted form using COND_EXPRs.
3716 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
3717 (tree_ssa_lim): Likewise.
3718 * tree-flow.h (tree_ssa_lim): Adjust prototype.
3719 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
3721 2010-05-06 Richard Guenther <rguenther@suse.de>
3723 PR tree-optimization/43987
3724 * tree-ssa-structalias.c (could_have_pointers): For possibly
3725 address-taken variables force pointers to be recorded.
3726 (create_variable_info_for_1): Likewise.
3727 (push_fields_onto_fieldstack): Pass in wheter all fields
3729 (find_func_aliases): Query types instead of vars whether
3730 they contain pointers where appropriate.
3732 2010-05-06 Jan Hubicka <jh@suse.cz>
3734 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
3735 (record_reference, mark_address, mark_load, mark_store): Record
3737 (record_references_in_initializer): Update call of record_references.
3738 (rebuild_cgraph_edges): Remove all references before rebuiding.
3739 * cgraph.c (cgraph_create_node): Clear ref list.
3740 (cgraph_remove_node): Remove references.
3741 (dump_cgraph_node): Dump references.
3742 (cgraph_clone_node): Clone references.
3743 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
3744 (struct cgraph_node, varpool_node): Add ref_lst.
3745 * ipa-ref.c: New file.
3746 * ipa-ref.h: New file.
3747 * ipa-ref-inline.h: New file.
3748 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
3749 (referenced_from_other_partition_p): New function.
3750 (lto_output_varpool_node): Take set arugment; call
3751 referenced_from_other_partition.
3752 (lto_output_ref): New.
3753 (add_references): New.
3755 (output_cgraph): Compute boundary based on references; output refs.
3756 (output_varpool): Accept cgraph_node_set argument.
3759 (input_cgraph): Call input_refs.
3760 * lto-section-in.c (lto_section_name): Add refs.
3761 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
3762 (ipa-ref.o): New file.
3763 * varpool.c (varpool_node): Clear ipa ref list.
3764 (varpool_remove_node): Remove references.
3765 (dump_varpool_node): Dump references.
3766 (varpool_assemble_decl): Only compile finalized ones.
3767 (varpool_extra_name_alias): Initialize ref list.
3768 * lto-streamer.c (lto-get_section_name): Add .refs section.
3769 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
3770 (referenced_from_other_partition_p): Declared.
3772 2010-05-06 Ira Rosen <irar@il.ibm.com>
3774 PR tree-optimization/43901
3775 * tree-vect-stmts.c (vectorizable_call): Assert that vector
3776 type is not NULL if it's transformation phase, and return
3777 FALSE if it's analysis.
3778 (vectorizable_conversion, vectorizable_operation,
3779 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
3781 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3783 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3785 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
3787 * config/mips/mips-protos.h
3788 (mips_small_register_classes_for_mode_p): Delete prototype.
3790 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
3792 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
3793 * config/arm/arm.c (multiple_operation_profitable_p,
3794 compute_offset_order): New static functions.
3795 (load_multiple_sequence, store_multiple_sequence): Use them.
3796 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
3797 memory offsets, not register numbers.
3798 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
3800 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
3802 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
3803 (get_pending_sizes, put_pending_size, put_pending_sizes):
3804 Update the uses of pending_sizes.
3805 * c-decl.c (store_parm_decls): Likewise.
3806 * c-tree.h (struct c_arg_info): Likewise.
3807 * tree.h: Update the prototype for get_pending_sizes and
3810 2010-05-05 Jason Merrill <jason@redhat.com>
3813 * c-common.c (handle_aligned_attribute): Respect
3814 ATTR_FLAG_TYPE_IN_PLACE.
3817 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
3818 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3819 (TARGET_INITIALIZER): Use it.
3820 * c-common.c (attribute_takes_identifier_p): Call it.
3821 * c-common.h: Update prototype.
3822 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
3823 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3825 2010-05-05 Jakub Jelinek <jakub@redhat.com>
3828 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
3829 DW_ID_down_case for Fortran compilation units.
3831 2010-05-05 Jan Hubicka <jh@suse.cz>
3833 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
3836 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
3838 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
3839 a variable-sized RESULT_DECL.
3841 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
3843 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
3845 2010-05-05 Jason Merrill <jason@redhat.com>
3848 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
3850 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
3852 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
3853 Jakub Jelinek <jakub@redhat.com>
3856 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
3857 (dead_debug_init, dead_debug_finish): New functions.
3858 (dead_debug_add, dead_debug_insert_before): Likewise.
3859 (df_note_bb_compute): Initialize a dead_debug object, add dead
3860 debug uses to it, insert debug bind insns before death insns,
3861 reset debug insns that refer to pending uses at the end.
3862 * rtl.h (make_debug_expr_from_rtl): New prototype.
3863 * varasm.c (make_debug_expr_from_rtl): New function.
3865 2010-05-05 Jan Hubicka <jh@suse.cz>
3867 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
3868 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
3869 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
3870 lto_varpool_encoder_deref, lto_varpool_encoder_size,
3871 lto_varpool_encoder_encode_initializer_p,
3872 lto_set_varpool_encoder_encode_initializer): New functions.
3873 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
3874 call output_varpool.
3875 (input_varpool_node): Do not always set analyzed.
3876 (input_cgraph_1): Return vector of cgraph nodes.
3877 (input_varpool_1): Return vector of varpools.
3878 (input_cgraph): Free the vectors.
3879 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3880 output only initializers needed.
3881 (lto_output): Only call output_cgraph.
3882 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
3883 * lto-section-out.c (lto_new_out_decl_state): Initialize
3884 state->varpool_node_encoder.
3885 * lto-streamer.h (lto_varpool_encoder_d): New.
3886 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
3887 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
3888 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
3889 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
3890 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
3892 (output_varpool, input_varpool): Remove declarations.
3894 2010-05-05 Jan Hubicka <jh@suse.cz>
3896 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
3897 with body can prevail.
3899 2010-05-05 Jan Hubicka <jh@suse.cz>
3901 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
3904 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3906 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
3908 * gengtype.h (erro_at_line): Constify pos argument.
3910 * gengtype.c: Include hashtab.h.
3911 (enum gc_used): Document GC_MAYBE_POINTED_TO.
3912 (error_at_line): Constify pos argument.
3913 (do_typedef): Initialize p->opt field.
3914 (get_file_gtfilename): Fix comment typo.
3915 (struct walk_type_data): Constify line field.
3916 (get_output_file_for_structure): New function.
3917 (write_local_func_for_structure): Constify orig_s argument.
3918 Use get_output_file_for_structure.
3919 (write_func_for_structure): Use get_output_file_for_structure.
3920 (INDENT): New define.
3921 (dump_pair, dump_type, dump_type_list, dump_typekind)
3922 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
3923 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
3925 (seen_types): New variable.
3926 (main): New variable do_dump. Process "-d" command line option.
3927 Call dump_everything if dump requested.
3929 2010-05-05 Jakub Jelinek <jakub@redhat.com>
3931 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
3932 in a temporary instead of invoking the macro multiple times.
3933 (track_expr_p): Likewise.
3935 2010-05-04 Neil Vachharajani <nvachhar@google.com>
3937 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
3939 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
3940 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
3941 conditions for printing notes.
3942 * common.opt (-Wcoverage-mismatch): Allow negative, default to
3943 true, update documentation.
3944 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
3946 2010-05-04 Jakub Jelinek <jakub@redhat.com>
3949 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
3952 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
3955 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
3956 (*sse_prologue_save_insn1): Likewise.
3957 (SSE prologue save splitter): Likewise.
3959 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
3961 * tree.c (free_lang_data_in_one_sizepos): New inline function.
3962 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
3963 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
3964 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
3965 all decls. Call it on DECL_FIELD_OFFSET of fields.
3966 (find_decls_types_r): Follow DECL_VALUE_EXPR.
3967 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
3969 2010-05-04 Martin Jambor <mjambor@suse.cz>
3971 * tree-sra.c (build_access_from_expr_1): The first parameter type
3972 changed to simple tree.
3973 (build_access_from_expr): Likewise, gsi parameter was eliminated.
3974 (scan_assign_result): Renamed to assignment_mod_result, enum elements
3976 (build_accesses_from_assign): Removed all parameters except for a
3977 simple gimple statement. Now returns a simple bool.
3978 (scan_function): All non-analysis parts moved to separate functions
3979 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
3980 parameters and updated both callers.
3981 (sra_modify_expr): Removed parameter data.
3982 (sra_modify_function_body): New function.
3983 (perform_intra_sra): Call sra_modify_function_body to modify the
3985 (replace_removed_params_ssa_names): Parameter data changed into
3987 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
3988 changed the parameter dont_convert to convert with the opposite
3990 (sra_ipa_modify_assign): Parameter data changed into adjustments
3991 vector, return value changed to bool.
3992 (ipa_sra_modify_function_body): New function.
3993 (sra_ipa_reset_debug_stmts): Updated a comment.
3994 (modify_function): Use ipa_sra_modify_function_body to modify function
3997 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
4000 * alias.c (true_dependence): Handle the same VALUE in x and mem.
4001 (canon_true_dependence): Likewise.
4002 (write_dependence_p): Likewise.
4004 2010-05-04 Jan Hubicka <jh@suse.cz>
4006 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4007 * cgraphbuild.c: Include ipa-utils.h
4008 (record_reference_ctx): New struct.
4009 (record_reference): Simplify to work on initializers; not statements.
4010 (mark_address, mark_load, mark_store): New.
4011 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4013 (record_references_in_initializer): Update use of record_reference.
4014 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4017 2010-05-04 Jan Hubicka <jh@suse.cz>
4019 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4020 node will be removed anyway.
4021 (lto_varpool_replace_node): Allow also unanalyzed nodes;
4022 relink aliases of node into prevailing node.
4023 * varpool.c (varpool_remove_node): Remove aliases properly;
4024 when removing node, remove all its aliases too; remove DECL_INITIAL
4025 of removed node; ggc_free the varpool node.
4027 2010-05-04 Richard Guenther <rguenther@suse.de>
4029 PR tree-optimization/43879
4030 * tree-ssa-structalias.c (alias_get_name): Use
4031 DECL_ASSEMBLER_NAME if available.
4032 (create_function_info_for): Return the varinfo node.
4033 (ipa_pta_execute): Associate same-body aliases and extra names
4034 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
4036 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
4038 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4040 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
4043 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4044 only if HONOR_REG_ALLOC_ORDER is not defined.
4046 2010-05-04 Richard Guenther <rguenther@suse.de>
4048 PR tree-optimization/43949
4049 * tree-vrp.c (extract_range_from_binary_expr): Only handle
4052 2010-04-26 Jason Merrill <jason@redhat.com>
4054 * c.opt (-fstrict-enums): New.
4055 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4057 2010-05-03 David Ung <davidu@mips.com>
4058 James E. Wilson <wilson@codesourcery.com>
4060 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4061 emit the trap instruction before the divide for TUNE_74K.
4063 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
4065 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4066 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4067 based on the above, for new target hook.
4069 * hooks.c (hook_bool_mode_true): New generic hook.
4070 * hooks.h (hook_bool_mode_true): Add prototype.
4072 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4074 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4075 target hook, set to hook_bool_mode_false.
4076 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4077 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4078 with targetm.small_register_classes_for_mode_p.
4079 (find_reusable_reload): Likewise.
4080 (combine_reloads): Likewise.
4081 * reload1.c (reload_as_needed): Likewise.
4082 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4083 * ifcvt.c (noce_process_if_block, check_cond_move_block,
4084 dead_or_predicable): Likewise.
4085 * regmove.c (optimize_reg_copy_1): Likewise.
4086 * calls.c (prepare_call_address): Likewise.
4087 (precompute_register_parameters): Likewise.
4089 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4091 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4092 implementation of the hook that considers all register classes
4093 small except for SH64.
4094 (sh_override_options): Use the new hook.
4095 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4098 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4100 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4101 implementation of the hook that considers all register classes
4103 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4106 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4108 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4109 implementation of the hook that considers all register classes
4111 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4114 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4116 * config/m32c/m32c.h: Likewise.
4117 * config/pdp11/pdp11.h: Likewise.
4118 * config/avr/avr.h: Likewise.
4119 * config/xtensa/xtensa.h: Likewise.
4120 * config/m68hc11/m68hc11.h: Likewise.
4121 * config/mn10300/mn10300.h: Likewise.
4122 * config/mcore/mcore.h: Likewise.
4123 * config/h8300/h8300.h: Likewise.
4124 * config/bfin/bfin.h: Likewise.
4126 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4127 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4129 2010-05-03 Anatoly Sokolov <aesok@post.ru>
4131 * double-int.h (tree_to_double_int): Remove macro.
4132 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4133 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4134 (tree_to_double_int): New function.
4135 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4137 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4139 2010-05-03 Richard Guenther <rguenther@suse.de>
4141 PR tree-optimization/43971
4142 * tree-ssa-structalias.c (get_constraint_for_1): Fix
4143 constraints in the !flag_delete_null_pointer_checks case.
4145 2010-05-03 Jakub Jelinek <jakub@redhat.com>
4148 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4149 result mode matches original rtl mode.
4151 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
4154 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4156 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4158 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4159 when processing flag options.
4161 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4163 * gcov-iov.c (main): Change format string placeholder
4164 from %#08x to 0x%08x.
4165 * genchecksum.c (dosum): Change format string placeholder
4166 from %#02x to 0x%02x.
4168 2010-05-02 Richard Guenther <rguenther@suse.de>
4170 PR tree-optimization/43879
4171 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4173 2010-05-02 Bruno Haible <bruno@clisp.org>
4175 * doc/extend.texi (Function Attributes): Fix a typo.
4177 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4180 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4181 placeholder from 0x%x to %#x.
4182 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4183 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4184 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4185 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4186 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4187 * config/i386/i386.c (ix86_target_string): Ditto.
4188 * config/i386/i386.c (output_pic_addr_const): Ditto.
4189 (print_operand): Ditto.
4191 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4193 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
4194 placeholder from 0x%x to %#x.
4195 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
4196 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
4197 (ASM_OUTPUT_DEBUG_DATA): Ditto.
4198 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
4199 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
4200 * optc-gen.awk: Ditto.
4201 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
4202 (HOST_WIDE_INT_PRINT_HEX): Ditto.
4203 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
4204 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4206 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4208 * target.h (struct calls): Add function_value_regno_p field.
4209 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4210 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
4211 * targhooks.c (default_function_value_regno_p): New function.
4212 * targhooks.h (default_function_value_regno_p): Declare function.
4213 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
4214 * builtins.c. (apply_result_size): (Ditto.).
4215 * combine.c. (likely_spilled_retval_p): (Ditto.).
4216 * mode-switching.c. Include 'target.h'.
4217 (create_pre_exit): Use function_value_regno_p hook.
4218 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
4219 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
4220 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
4222 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
4223 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4224 (ix86_function_value_regno_p): Declare as static, change argument
4225 type to const unsigned int.
4226 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4228 2010-05-01 Richard Guenther <rguenther@suse.de>
4230 PR tree-optimization/43949
4231 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4233 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4235 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4237 * rtl.h (CONST_DOUBLE_P): Define.
4238 (rtx_to_double_int): Declare.
4239 * emit-rtl.c (rtx_to_double_int): New function.
4240 * dwarf2out.c (insert_double): New function.
4241 (loc_descriptor, add_const_value_attribute): Clean up, use
4242 rtx_to_double_int and insert_double functions.
4244 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
4246 * doc/extend.texi (Inline): Add missing return keyword to examples.
4247 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4250 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
4252 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4253 the variable part of the offset as well. Use highest_pow2_factor for
4254 all alignment checks.
4256 2010-04-30 Richard Guenther <rguenther@suse.de>
4258 PR tree-optimization/43879
4259 * tree-ssa-structalias.c (type_could_have_pointers): Functions
4262 2010-04-30 Jan Hubicka <jh@suse.cz>
4264 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4266 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4268 2010-04-30 Jan Hubicka <jh@suse.cz>
4270 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4272 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4273 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4274 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4275 cgraph_node_set_needs_ltrans_p): Remove.
4277 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4279 * sdbout.c: Include vec.h, do not include varray.h.
4280 (deferred_global_decls, sdbout_global_decl,
4281 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4282 * toplev.c: Do not include varray.h.
4283 (dump_memory_report): Do not dump VARRAY statistics.
4284 * gengtype.c (open_base_file): Ignore varray.h.
4285 * Makefile.in: Update for abovementioned changes.
4286 Remove all traces of varray.c and varray.h.
4287 * varray.c: Remove file.
4288 * varray.h: Remove file.
4290 2010-04-30 Jan Hubicka <jh@suse.cz>
4292 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4295 2010-04-30 Jan Hubicka <jh@suse.cz>
4297 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4300 2010-04-30 Richard Guenther <rguenther@suse.de>
4302 * tree-ssa-structalias.c (get_constraint_for_1): Generate
4303 constraints for CONSTRUCTOR.
4305 2010-04-30 Richard Guenther <rguenther@suse.de>
4308 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4309 first after all lowering passes.
4311 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4313 * toplev.c: Include varray.h for statistics dumping.
4314 * tree.h: Do not declare varray_head_tag.
4315 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4316 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4317 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4318 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4319 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4320 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4321 c-common.c, c-common.h, reg-stack.c, basic-block.h,
4322 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4324 * Makefile.in: Update for abovementioned changes.
4326 2010-04-30 Jakub Jelinek <jakub@redhat.com>
4329 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4331 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4333 * config/picochip/picochip.c (picochip_legitimize_address): Define.
4334 Use this function to do machine-specific conversion.
4335 (picochip_legitimize_reload_address): Likewise.
4336 (picochip_legitimate_address_p): Check valid base register only if
4338 (picochip_check_conditional_copy): Check for modw only if opnd is
4340 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4341 to call the function in c.
4342 * config/picochip/picochip-protos.h
4343 (picochip_legitimize_reload_address): Define.
4344 * config/picochip/picochip.md (supported_compare1): Define.
4346 2010-04-30 Jan Hubicka <jh@suse.cz>
4348 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4349 (cgraph_global_info): Remove inlined.
4350 (LTO_cgraph_tag_names): Remove.
4351 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4352 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4353 simplify cgraph tags and document.
4354 (lto_output_node): Use only LTO_cgraph_unavail_node and
4355 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4356 for_functions_valid, global info, process and output flags.
4357 (input_overwrite_node): Initialize estimated stack size and
4358 estimated growth. Do not read flags we no longer store.
4359 (input_node): Likewise do not read info no longer stored.
4360 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4363 2010-04-30 Richard Guenther <rguenther@suse.de>
4365 PR tree-optimization/43879
4366 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4367 handle non-zero initializers.
4369 2010-04-30 Richard Guenther <rguenther@suse.de>
4371 * builtins.c (fold_builtin_1): Delete free (0).
4373 2010-04-29 Jan Hubicka <jh@suse.cz>
4375 * gengtype.c (open_base_files): Add lto-streamer.h
4376 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4377 (pass_ipa_cp): GGC collect.
4378 * toplev. (compile_file): Do not output symbols.
4379 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4380 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4381 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4382 * lto-section-in.c: Include ggc.h
4383 (lto_new_in_decl_state): Alloc in GGC.
4384 (lto_delete_in_decl_state): Likewise.
4385 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4388 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4391 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4392 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
4393 (HONOR_REG_ALLOC_ORDER): Describe new macro.
4394 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4395 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4396 account only if HONOR_REG_ALLOC_ORDER is not defined.
4397 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4398 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4400 2010-04-29 Jon Grant <04@jguk.org>
4402 * collect2.c (vflag): Change type from int to bool.
4404 (helpflag): New global bool.
4405 (main): Set vflag and debug with boolean, not integer truth values.
4406 Accept new "--help" option and output usage text if found.
4407 * collect2.h (vflag): Update prototype.
4410 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4413 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4415 2010-04-29 Richard Guenther <rguenther@suse.de>
4418 * plugin.h (invoke_plugin_callbacks): Annotate arguments
4419 with ATTRIBUTE_UNUSED.
4421 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
4424 * config/i386/i386.c (get_some_local_dynamic_name): Replace
4425 INSN_P with NONDEBUG_INSN_P.
4426 (distance_non_agu_define): Likewise.
4427 (distance_agu_use): Likewise.
4429 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
4431 From Dominique d'Humieres <dominiq@lps.ens.fr>
4433 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4436 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
4438 * plugin.h (invoke_plugin_callbacks): New inline function.
4439 * plugin.c (flag_plugin_added): New global flag.
4440 (add_new_plugin): Initialize above flag.
4441 (invoke_plugin_callbacks): Rename to ...
4442 (invoke_plugin_callbacks_full): ... this.
4444 2010-04-28 Jan Hubicka <jh@suse.cz>
4446 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
4447 (lto_varpool_replace_node): New.
4448 (lto_symtab_resolve_symbols): Resolve varpool nodes.
4449 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
4450 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
4451 * cgraph.h (varpool_node_ptr): New type.
4452 (varpool_node_ptr): New vector.
4453 (varpool_node_set_def): New structure.
4454 (varpool_node_set): New type.
4455 (varpool_node_set): New vector.
4456 (varpool_node_set_element_def): New structure.
4457 (varpool_node_set_element, const_varpool_node_set_element): New types.
4458 (varpool_node_set_iterator): New type.
4459 (varpool_node): Add prev pointers, add used_from_other_partition,
4461 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
4462 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
4463 varpool_get_node, varpool_remove_node): Declare.
4464 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
4465 varpool_node_set_size): New inlines.
4466 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
4467 * tree-pass.h (varpool_node_set_def): Forward declare.
4468 (ipa_opt_pass_d): Summary writting takes vnode sets too.
4469 (ipa_write_optimization_summaries): Update prototype.
4470 * ipa-cp.c (ipcp_write_summary): Update.
4471 * ipa-reference.c (ipa_reference_write_summary): Update.
4472 * lto-cgraph.c (lto_output_varpool_node): New static function.
4473 (output_varpool): New function.
4474 (input_varpool_node): New static function.
4475 (input_varpool_1): New function.
4476 (input_cgraph): Input varpool.
4477 * ipa-pure-const.c (pure_const_write_summary): Update.
4478 * lto-streamer-out.c (lto_output): Update, output varpool too.
4479 (write_global_stream): Kill WPA hack.
4480 (produce_asm_for_decls): Update.
4481 (output_alias_pair_p): Handle variables.
4482 (output_unreferenced_globals): Output only needed partition of varpool.
4483 * ipa-inline.c (inline_write_summary): Update.
4484 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
4486 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
4487 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
4488 varpool_node_set_new, varpool_node_set_add,
4489 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
4490 debug_varpool_node_set): New functions.
4491 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
4492 (execute_one_pass): Process new decls too.
4493 (ipa_write_summaries_2): Pass around vsets.
4494 (ipa_write_summaries_1): Likewise.
4495 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
4497 (ipa_write_optimization_summaries_1): Pass around vsets.
4498 (ipa_write_optimization_summaries): Likewise.
4499 * varpool.c (varpool_get_node): New.
4500 (varpool_node): Update doubly linked lists.
4501 (varpool_remove_node): New.
4502 (dump_varpool_node): More dumping.
4503 (varpool_enqueue_needed_node): Update doubly linked lists.
4504 (decide_is_variable_needed): Kill ltrans hack.
4505 (varpool_finalize_decl): Kill lto hack.
4506 (varpool_assemble_decl): Skip decls in other partitions.
4507 (varpool_assemble_pending_decls): Update doubly linkes lists.
4508 (varpool_empty_needed_queue): Likewise.
4509 (varpool_extra_name_alias): Likewise.
4510 * lto-streamer.c (lto_get_section_name): Add vars section.
4511 * lto-streamer.h (lto_section_type): Update.
4512 (output_varpool, input_varpool): Declare.
4514 2010-04-28 Mike Stump <mikestump@comcast.net>
4516 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
4518 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4520 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
4521 record or union type with RECORD_OR_UNION_TYPE_P predicate.
4522 (lto_input_ts_type_tree_pointers): Likewise.
4523 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
4524 (lto_output_ts_type_tree_pointers): Likewise.
4526 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4528 Uniquization of constants at the Tree level
4529 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
4530 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
4532 (tree_output_constant_def): Declare.
4533 * gimplify.c (gimplify_init_constructor): When using block copy, first
4534 uniquize the constant constructor on the RHS.
4535 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
4536 DECL_IN_CONSTANT_POOL flag.
4537 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
4538 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
4540 (assemble_variable): Deal with symbols belonging to the tree constant
4542 (get_constant_section): Add ALIGN parameter and simplify.
4543 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
4544 (assemble_constant_contents): Use the expression of the VAR_DECL.
4545 (output_constant_def_contents): Use the alignment of the VAR_DECL.
4546 (tree_output_constant_def): New global function.
4547 (mark_constant): Use the expression of the VAR_DECL.
4548 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
4550 (output_object_block): Likewise and assemble the expression.
4552 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4554 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
4555 hash_tree, eq_tree): New tree hash table.
4556 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
4557 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
4558 lto_orig_address_remove): Reimplement.
4560 2010-04-28 Xinliang David Li <davidxl@google.com>
4563 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
4564 (compute_uninit_opnds_pos): New function.
4565 (is_non_loop_exit_postdominating): New function.
4566 (compute_control_dep_chain): New function.
4567 (find_pdom): New function.
4568 (convert_control_dep_chain_into_preds): New function.
4569 (find_predicates): New function.
4570 (find_control_equiv_block): New function.
4571 (collect_phi_def_edges): New function.
4572 (find_def_preds): New function.
4573 (find_dom): New function.
4574 (dump_predicates): New function.
4575 (get_cmp_code): New function.
4576 (is_value_included_in): New function.
4577 (find_matching_predicate_in_rest_chains): New function.
4578 (use_pred_not_overlap_with_undef_path_pred): New function.
4579 (is_use_properly_guarded): New function.
4580 (normalize_cond_1): New function.
4581 (is_and_or_or): New function.
4582 (normalize_cond): New function.
4583 (is_gcond_subset_of): New function.
4584 (is_subset_of_any): New function.
4585 (is_or_set_subset_of): New function.
4586 (is_and_set_subset_of): New function.
4587 (is_norm_cond_subset_of): New function.
4588 (is_pred_expr_subset_of): New function.
4589 (is_pred_chain_subset_of): New function.
4590 (is_included_in): New function.
4591 (is_superset_of): New function.
4592 (find_uninit_use): New function.
4593 (warn_uninitialized_phi): New function.
4594 (compute_possibly_undefined_names): New function.
4595 (ssa_undefined_value_p): New function.
4596 (execute_late_warn_uninitialized): New function.
4597 * tree-ssa.c (ssa_undefined_value_p): Removed.
4598 (warn_uninit): Changed to extern.
4599 (warn_uninitialized_phi): Removed.
4600 (warn_uninitialized_vars): Changed to extern.
4601 (execute_late_warn_uninitialized): Removed
4602 * tree-flow.h: Add new prototypes.
4603 * timevar.def: Add new time variable.
4604 * Makefile.in: Add new build file.
4606 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
4608 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4611 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4614 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
4616 2010-04-28 Martin Jambor <mjambor@suse.cz>
4618 * cgraph.h (struct cgraph_node): New field indirect_calls.
4619 (struct cgraph_indirect_call_info): New type.
4620 (struct cgraph_edge): Removed field indirect_call. New fields
4621 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
4622 (cgraph_create_indirect_edge): Declare.
4623 (cgraph_make_edge_direct): Likewise.
4624 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
4625 * ipa-prop.h (struct ipa_param_call_note): Removed.
4626 (struct ipa_node_params): Removed field param_calls.
4627 (ipa_create_all_structures_for_iinln): Declare.
4628 * cgraph.c: Described indirect edges and uids in initial comment.
4629 (cgraph_add_edge_to_call_site_hash): New function.
4630 (cgraph_edge): Search also among the indirect edges, use
4631 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
4632 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
4633 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
4635 (initialize_inline_failed): Assign a reason to indirect edges.
4636 (cgraph_create_edge_1): New function.
4637 (cgraph_create_edge): Moved some functionality to
4638 cgraph_create_edge_1.
4639 (cgraph_create_indirect_edge): New function.
4640 (cgraph_edge_remove_callee): Add an assert checking for
4642 (cgraph_edge_remove_caller): Special-case indirect edges.
4643 (cgraph_remove_edge): Likewise.
4644 (cgraph_set_edge_callee): New function.
4645 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
4646 (cgraph_make_edge_direct): New function.
4647 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
4648 the declaration of the call statement matches.
4649 (cgraph_node_remove_callees): Special-case indirect edges.
4650 (cgraph_clone_edge): Likewise.
4651 (cgraph_clone_node): Clone also the indirect edges.
4652 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
4653 indirect_call, dump count of indirect_calls edges.
4654 * ipa-prop.c (iinlining_processed_edges): New variable.
4655 (ipa_note_param_call): Create indirect edges instead of
4656 creating notes. New parameter node.
4657 (ipa_analyze_call_uses): New parameter node, pass it on to
4658 ipa_note_param_call.
4659 (ipa_analyze_stmt_uses): Likewise.
4660 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
4661 (print_edge_addition_message): Work on edges rather than on notes.
4662 (update_call_notes_after_inlining): Likewise, renamed to
4663 update_indirect_edges_after_inlining.
4664 (ipa_create_all_structures_for_iinln): New function.
4665 (ipa_free_node_params_substructures): Do not free notes.
4666 (ipa_edge_duplication_hook): Propagate bits within
4667 iinlining_processed_edges bitmap.
4668 (ipa_node_duplication_hook): Do not duplicate notes.
4669 (free_all_ipa_structures_after_ipa_cp): Renamed to
4670 ipa_free_all_structures_after_ipa_cp.
4671 (free_all_ipa_structures_after_iinln): Renamed to
4672 ipa_free_all_structures_after_iinln.
4673 (ipa_write_param_call_note): Removed.
4674 (ipa_read_param_call_note): Removed.
4675 (ipa_write_indirect_edge_info): New function.
4676 (ipa_read_indirect_edge_info): Likewise.
4677 (ipa_write_node_info): Do not stream notes, do stream information
4679 (ipa_read_node_info): Likewise.
4680 (lto_ipa_fixup_call_notes): Removed.
4681 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
4682 * ipa-inline.c (pass_ipa_inline): Likewise.
4683 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
4684 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
4685 * tree-inline.c (copy_bb): Removed an unnecessary double check for
4687 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
4689 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
4690 (output_cgraph): Stream also indirect edges.
4691 (lto_output_edge): Added capability to stream indirect edges.
4692 (input_edge): Likewise.
4693 (input_cgraph_1): Likewise.
4694 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
4697 2010-04-28 Richard Guenther <rguenther@suse.de>
4699 PR tree-optimization/43879
4700 PR tree-optimization/43909
4701 * tree-ssa-structalias.c (struct variable_info): Add
4702 only_restrict_pointers flag.
4703 (new_var_info): Initialize it. Increment stats.total_vars here.
4704 (create_function_info_for): Do not increment stats.total_vars here.
4705 (get_function_part_constraint): Fix build with C++.
4706 (insert_into_field_list): Remove.
4707 (push_fields_onto_fieldstack): Properly merge fields.
4708 (create_variable_info_for): Split and simplify.
4709 (create_variable_info_for_1): New piece.
4710 (intra_create_variable_infos): Properly make restrict constraints
4713 2010-04-28 Richard Guenther <rguenther@suse.de>
4716 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
4718 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
4719 Jan Hubicka <hubicka@ucw.cz>
4721 * doc/invoke.texi (-Wsuggest-attribute=const,
4722 -Wsuggest-attribute=pure): Document.
4723 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
4724 (function_always_visible_to_compiler_p,
4725 suggest_attribute, warn_function_pure, warn_function_const):
4727 (check_call): Improve debug info.
4728 (analyze_function): Do not check availability.
4729 (add_new_function): Check availability.
4730 (propagate): Output warnings.
4731 (skip_function_for_local_pure_const): New function.
4732 (local_pure_const): Use it; output warnings.
4733 * common.opt (Wsuggest-attribute=const,
4734 Wsuggest-attribute=pure): New.
4736 2010-04-27 Jakub Jelinek <jakub@redhat.com>
4738 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
4739 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
4740 or DW_CFA_def_cfa_offset{,_sf}.
4742 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
4744 * tree.h: Fix truncated long macros.
4746 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
4748 * collect2.c (TARGET_64BIT): Redefine to target's default.
4749 * tlink.c: Likewise.
4750 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
4751 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
4752 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
4753 for underscoring __USER_LABEL_PREFIX__.
4754 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
4755 (SUB_LINK_ENTRY32): New.
4756 (SUB_LINK_ENTRY64): New.
4757 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
4758 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
4759 (SUB_LINK_ENTRY64): New.
4760 (SUB_LINK_ENTRY): New.
4761 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
4762 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
4763 x64 target is choosen.
4764 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
4765 * configure: Regenerated.
4766 * configure.ac (leading-mingw64-underscores): Option added.
4768 2010-04-27 Jan Hubicka <jh@suse.cz>
4770 * doc/invoke.texi (-fipa-profile): Document.
4771 * opts.c (decode_options): Enable ipa-profile at -O1.
4772 * timevar.def (TV_IPA_PROFILE): Define.
4773 * common.opt (fipa-profile): Add.
4774 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
4776 (cgraph_propagate_frequency): Handle only local ones.
4777 * tree-pass.h (pass_ipa_profile): Declare.
4778 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
4779 (pass_ipa_profile): Use TV_IPA_PROFILE.
4780 * ipa.c (ipa_profile): New function.
4781 (gate_ipa_profile): Likewise.
4782 (pass_ipa_profile): New global variable.
4783 * passes.c (pass_ipa_profile): New.
4785 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
4787 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
4789 2010-04-27 Martin Jambor <mjambor@suse.cz>
4792 * ipa.c (dissolve_same_comdat_group_list): New function.
4793 (function_and_variable_visibility): Call
4794 dissolve_same_comdat_group_list when comdat group contains external or
4796 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
4797 lists are circular and that they contain only DECL_ONE_ONLY nodes.
4799 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
4801 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
4802 (const_hash_1) <VECTOR_CST>: New case.
4803 (compare_constant) <VECTOR_CST>: Likewise.
4804 <ADDR_EXPR>: Deal with LABEL_REFs.
4805 (copy_constant) <VECTOR_CST>: New case.
4807 2010-04-27 Jan Hubicka <jh@suse.cz>
4809 * cgraph.c (cgraph_propagate_frequency): New function.
4810 * cgraph.h (cgraph_propagate_frequency): Declare.
4811 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
4812 cgraph_propagate_frequency.
4814 2010-04-27 Jakub Jelinek <jakub@redhat.com>
4816 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
4818 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
4821 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
4822 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
4823 here to determine which regs to push and how much stack to reserve.
4825 2010-04-27 Jie Zhang <jie@codesourcery.com>
4827 * doc/gimple.texi (gimple_statement_with_ops): Remove
4828 addresses_taken field.
4829 (gimple_statement_with_memory_ops): Likewise.
4831 2010-04-27 Jan Hubicka <jh@suse.cz>
4833 * tree-inline.c (eni_inlining_weights): Remove.
4834 (estimate_num_insns): Special case more builtins.
4836 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
4839 * c-typeck.c (build_binary_op): Move forward check for comparison
4840 pointer with null pointer constant and adjust the diagnostic message.
4842 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
4845 * configure.ac (gcc_cv_as_section_has_align): Set if installed
4846 binutils supports extended .section directive needed by LTO, or
4847 warn if older binutils found.
4848 (LTO_BINARY_READER): New AC_SUBST'd variable.
4849 (LTO_USE_LIBELF): Likewise.
4850 * gcc/config.gcc (lto_binary_reader): New target-specific configure
4852 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
4853 (LTO_USE_LIBELF): Likewise.
4854 * configure: Regenerate.
4856 * collect2.c (is_elf): Rename from this ...
4857 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
4858 object files in addition to ELF-formatted ones.
4859 (scan_prog_file): Caller updated. Also allow for LTO info marker
4860 symbol to be prefixed or not by an extra underscore.
4862 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
4863 * config/i386/winnt.c: Also #include lto-streamer.h
4864 (i386_pe_asm_named_section): Specify 1-byte section alignment for
4866 (i386_pe_asm_output_aligned_decl_common): Add comment.
4867 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
4869 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
4872 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
4873 Add missing earlyclobber for second alternative.
4875 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
4877 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
4878 bits for artificial defs at the top of the block.
4879 * fwprop.c (single_def_use_enter_block): Don't call it.
4881 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
4884 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
4885 instead of "$gcc_cv_objdump -T".
4886 Use "-undefined dynamic_lookup" on darwin.
4887 * gcc/configure: Regenerate.
4889 2010-04-26 Jakub Jelinek <jakub@redhat.com>
4892 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
4894 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
4896 * c-parser.c (struct c_token): Move location field up.
4897 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
4898 (struct c_declspecs): Convert typespec_word, storage_class, and
4899 default_int_p into bitfields.
4900 (struct c_declarator): Move loc field up.
4902 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
4904 * cfgloop.h (struct loop): Move can_be_parallel field up.
4905 * ipa-prop.h (struct ip_node_params): Move bitfields up.
4906 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
4908 (struct iv_cand): Convert pos field into a bitfield.
4909 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
4911 (struct _stmt_vec_info): Shuffle fields for better packing.
4913 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
4915 * varasm.c (IN_NAMED_SECTION): Remove guard.
4916 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
4917 (IN_NAMED_SECTION_P): ...this.
4918 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
4919 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
4921 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
4923 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
4924 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
4925 of shadowing it. Fix comments.
4927 2010-04-26 Jan Hubicka <jh@suse.cz>
4929 * cgraph.c (cgraph_create_node): Set node frequency to normal.
4930 (cgraph_clone_node): Copy function frequency.
4931 * cgraph.h (node_frequency): New enum
4932 (struct cgraph_node): Add.
4933 * final.c (rest_of_clean_state): Update.
4934 * lto-cgraph.c (lto_output_node): Output node frequency.
4935 (input_overwrite_node): Input node frequency.
4936 * tre-ssa-loop-ivopts (computation_cost): Update.
4937 * lto-streamer-out.c (output_function): Do not output function
4939 * predict.c (maybe_hot_frequency_p): Update and handle functions
4941 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
4943 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
4944 (compute_function_frequency): Set noreturn functions to be executed
4946 (choose_function_section): Update.
4947 * lto-streamer-in.c (input_function): Do not input function frequency.
4948 * function.c (allocate_struct_function): Do not initialize function
4950 * function.h (function_frequency): Remove.
4951 (struct function): Remove function frequency.
4952 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
4953 (try_update): Update.
4954 * tree-inline.c (initialize_cfun): Do not update function frequency.
4955 * passes.c (pass_init_dump_file): Update.
4956 * i386.c (ix86_compute_frame_layout): Update.
4957 (ix86_pad_returns): Update.
4959 2010-04-26 Jie Zhang <jie@codesourcery.com>
4961 PR tree-optimization/43833
4962 * tree-vrp.c (range_int_cst_p): New.
4963 (range_int_cst_singleton_p): New.
4964 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
4965 when both operands are constants. Use range_int_cst_p in
4968 2010-04-26 Jan Hubicka <jh@suse.cz>
4970 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
4972 2010-04-26 Richard Guenther <rguenther@suse.de>
4975 * gimple.c (gimple_decl_printable_name): Deal gracefully
4976 with a NULL DECL_NAME.
4978 2010-04-26 Richard Guenther <rguenther@suse.de>
4981 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
4982 if emitting debug information and it is either a function
4983 or a namespace decl.
4985 2010-04-26 Ira Rosen <irar@il.ibm.com>
4987 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
4988 determine if the statement is vectorizable, and a macro to access it.
4989 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4990 Skip statements that can't be vectorized. If the analysis fails,
4991 mark the statement as unvectorizable if vectorizing basic block.
4992 (vect_compute_data_refs_alignment): Likewise.
4993 (vect_verify_datarefs_alignment): Skip statements marked as
4994 unvectorizable. Add print.
4995 (vect_analyze_group_access): Skip statements that can't be
4996 vectorized. If the analysis fails, mark the statement as
4997 unvectorizable if vectorizing basic block.
4998 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
4999 * tree-vect-stmts.c (vectorizable_store): Fix the number of
5000 generated stmts for SLP.
5001 (new_stmt_vec_info): Initialize the new field.
5002 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
5003 statements marked as unvectorizable.
5005 2010-04-25 Joseph Myers <joseph@codesourcery.com>
5007 * c-common.c (flag_isoc1x): New.
5008 (flag_isoc99): Update comment.
5009 * c-common.h (flag_isoc1x): New.
5010 (flag_isoc99): Update comment.
5011 * c-cppbuiltin.c (builtin_define_float_constants): Also define
5012 __<type>_DECIMAL_DIG__.
5013 * c-opts.c (set_std_c1x): New.
5014 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5015 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5016 * c.opt (-std=c1x, -std=gnu1x): New options.
5017 * doc/cpp.texi: Mention -std=c1x.
5018 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5019 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5020 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5021 * doc/standards.texi: Mention C1X.
5022 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5023 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5024 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5027 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
5029 * config/i386/gmon-sol2.c (_mcleanup): Change format string
5030 placeholder from 0x%x to %#x.
5031 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5032 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5033 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5034 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5035 * config/i386/i386.c (ix86_target_string): Ditto.
5036 (output_pic_addr_const): Ditto.
5037 (print_operand): Ditto.
5039 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
5041 * combine.c (find_split_point): Add third argument. Use it
5042 to find nested multiply-accumulate instructions. Adjust calls.
5043 (try_combine): Adjust call to find_split_point.
5045 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5047 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5049 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
5051 PR tree-optimization/41442
5052 * fold-const.c (merge_truthop_with_opposite_arm): New function.
5053 (fold_binary_loc): Call it.
5055 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5057 * toplev.c (general_init): Set default for fdiagnostics-show-option.
5058 * opts.c (common_handle_option): Allow disabling it.
5059 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5061 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
5063 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5064 between modes if both types are integral.
5066 2010-04-23 Richard Guenther <rguenther@suse.de>
5068 PR tree-optimization/43572
5069 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5071 2010-04-23 Richard Guenther <rguenther@suse.de>
5074 * tree-inline.c (tree_can_inline_p): Also check compatibility
5077 2010-04-23 Martin Jambor <mjambor@suse.cz>
5079 PR tree-optimization/43846
5080 * tree-sra.c (struct access): New flag grp_assignment_read.
5081 (build_accesses_from_assign): Set grp_assignment_read.
5082 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5083 (enum mark_read_status): New type.
5084 (analyze_access_subtree): Propagate grp_assignment_read, create
5085 accesses also if both direct_read and root->grp_assignment_read.
5087 2010-04-23 Martin Jambor <mjambor@suse.cz>
5090 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5091 function does not have type attributes.
5093 2010-04-23 Richard Guenther <rguenther@suse.de>
5096 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5099 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5101 * sese.h (create_if_region_on_edge): Remove.
5103 * sese.c (create_if_region_on_edge): Make static.
5105 * tree-inline.c: Do not include ggc.h.
5107 * expr.c: Do not include ggc.h.
5109 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5112 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
5115 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5116 in the middle of insns for casesi_worker_2.
5118 2010-04-22 David Edelsohn <edelsohn@gnu.org>
5120 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5122 2010-04-22 Ira Rosen <irar@il.ibm.com>
5124 PR tree-optimization/43842
5125 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5126 loop unrolling in update of exit phis. Fix comment.
5127 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5128 least two reduction statements in the loop before starting SLP
5131 2010-04-22 Nick Clifton <nickc@redhat.com>
5133 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5135 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
5137 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5140 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5142 * tree-parloops.c (loop_parallel_p): New argument
5143 parloop_obstack. Pass it down.
5144 (parallelize_loops): New variable parloop_obstack. Initialize it,
5145 pass it down, free it.
5147 * tree-loop-linear.c (linear_transform_loops): Pass down
5150 * tree-data-ref.h (lambda_compute_access_matrices): New argument
5151 of type struct obstack *.
5153 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5154 scratch_obstack. Initialize it, pass down, free it.
5156 * lambda.h (lambda_loop_new): Remove.
5157 (lambda_matrix_new, lambda_matrix_inverse)
5158 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5159 argument of type struct obstack *.
5161 * lambda-trans.c (lambda_trans_matrix_new): New argument
5162 lambda_obstack. Pass it down, use obstack allocation for ret.
5163 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
5166 * lambda-mat.c (lambda_matrix_get_column)
5167 (lambda_matrix_project_to_null): Remove.
5168 (lambda_matrix_new): New argument lambda_obstack. Use obstack
5170 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5173 * lambda-code.c (lambda_loop_new): New function.
5174 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5175 (lambda_compute_auxillary_space, lambda_compute_target_space)
5176 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5177 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5178 (build_access_matrix): New argument lambda_obstack. Use obstack
5180 (lambda_compute_step_signs, lambda_compute_access_matrices): New
5181 argument lambda_obstack. Pass it down.
5183 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5185 * optabs.h (expand_widening_mult): Declare.
5187 2010-04-22 Richard Guenther <rguenther@suse.de>
5189 PR tree-optimization/43845
5190 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5191 lookup the CALL_EXPR function and arguments.
5193 2010-04-22 Nick Clifton <nickc@redhat.com>
5195 * config/stormy16/stormy16.c
5196 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
5197 * config/stormy16/stormy16.h: Tidy up formatting.
5198 (DONT_USE_BUILTIN_SETJMP): Remove definition.
5199 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
5200 (ineqbranchsi): Delete pattern.
5201 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
5202 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
5203 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
5204 stormy16-lib2-ucmpsi2.c.
5206 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5208 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
5209 df_simulate_find_noclobber_defs as appropriate. Keep track of an
5210 extra set merge_set_noclobber, and use it to relax the final test
5212 * df.h (df_simulate_find_noclobber_defs): Declare.
5213 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
5215 (df_simulate_find_noclobber_defs): New function.
5217 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
5219 * config/i386/i386.md: Use {} around multi-line preparation statements.
5221 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5223 * c-tree.h (push_init_level, pop_init_level, set_init_index)
5224 (process_init_element): New argument of type struct obstack *.
5226 * c-typeck.c (push_init_level, pop_init_level, set_designator)
5227 (set_init_index, set_init_label, set_nonincremental_init)
5228 (set_nonincremental_init_from_string, find_init_member)
5229 (output_init_element, output_pending_init_elements)
5230 (process_init_element): New argument braced_init_obstack. Pass it
5232 (push_range_stack, add_pending_init): New argument
5233 braced_init_obstack. Use obstack allocation.
5235 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5236 braced_init_obstack. Pass it down.
5237 (c_parser_braced_init): New variables ret, braced_init_obstack.
5238 Initialize obstack, pass it down and finally free it.
5240 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5243 * tree-pass.h (pass_optimize_widening_mul): Declare.
5244 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5245 gate_optimize_widening_mul): New static functions.
5246 (pass_optimize_widening_mul): New.
5247 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5248 <case MULT_EXPR>: Remove support for widening multiplies.
5249 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5250 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5251 simplify_gen_unary rather than directly building extensions.
5252 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5254 * expmed.c (expand_widening_mult): New function.
5255 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5257 2010-04-21 Jan Hubicka <jh@suse.cz>
5259 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5260 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5261 * lto-wpa-fixup.c: Remove.
5262 * Makefile.in (lto-wpa-fixup.o): Remove.
5263 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5264 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5265 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5267 2010-04-21 Jan Hubicka <jh@suse.cz>
5269 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5270 add write_optimization_summary, read_optimization_summary.
5271 (ipa_write_summaries_of_cgraph_node_set): Remove.
5272 (ipa_write_optimization_summaries): Declare.
5273 (ipa_read_optimization_summaries): Declare.
5274 * ipa-cp.c (pass_ipa_cp): Update.
5275 * ipa-reference.c (pass_ipa_reference): Update.
5276 * ipa-pure-const.c (pass_ipa_pure_const): Update.
5277 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5279 * ipa-inline.c (pass_ipa_inline): Update.
5280 * ipa.c (pass_ipa_whole_program): Update.
5281 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5282 * passes.c (ipa_write_summaries_1): Do not test wpa.
5283 (ipa_write_optimization_summaries_1): New.
5284 (ipa_write_optimization_summaries): New.
5285 (ipa_read_summaries): Do not test ltrans.
5286 (ipa_read_optimization_summaries_1): New.
5287 (ipa_read_optimization_summaries): New.
5289 2010-04-21 Jan Hubicka <jh@suse.cz>
5291 * lto-cgraph.c (lto_output_node): Do not output comdat groups
5293 (output_cgraph): Do not arrange comdat groups for boundary nodes.
5295 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5298 * dwarf2out.c (add_name_and_src_coords_attributes): Add
5299 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5301 2010-04-21 Jan Hubicka <jh@suse.cz>
5303 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5305 2010-04-21 Jan Hubicka <jh@suse.cz>
5307 * varpool.c (decide_is_variable_needed): Variable is always needed
5310 2010-04-21 Jan Hubicka <jh@suse.cz>
5312 * opts.c (decode_options): Enable pure-const pass for whopr.
5314 2010-04-21 Jan Hubicka <jh@suse.cz>
5316 * cgraph.c (dump_cgraph_node): Dump also assembler name.
5317 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5319 (cgraph_decide_inlining): Do not expect callee to be removed in all
5322 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
5324 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5326 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5328 * config/i386/i386.md (x86_shrd): Add athlon_decode and
5329 amdfam10_decode attributes.
5331 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5334 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5335 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5336 (lower_copyprivate_clauses): Use private var in outer
5337 context instead of original var. Make sure the types
5338 are correct for VLAs.
5340 2010-04-21 Richard Guenther <rguenther@suse.de>
5342 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5343 to non-pointer objects.
5345 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5347 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
5348 last chain entry if it starts with the still current label.
5349 (add_location_or_const_value_attribute): Check that
5350 loc_list->first->next is NULL instead of comparing ->first with ->last.
5351 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5352 to add_var_loc_to_decl.
5354 * dwarf2out.c (output_call_frame_info): For dw_cie_version
5355 >= 4 add also address size and segment size fields into CIE header.
5357 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5358 long as address size is the same as sizeof (void *) and
5360 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
5361 address size or segment size is unexpected, return DW_EH_PE_omit.
5362 (classify_object_over_fdes): If get_cie_encoding returned
5363 DW_EH_PE_omit, return -1.
5364 (init_object): If classify_object_over_fdes returned -1,
5365 pretend there were no FDEs at all.
5367 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5369 * config/i386/i386.md (bswap<mode>2): Macroize expander from
5370 bswap{si,di}2 using SWI48 mode iterator.
5371 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5372 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
5373 set modrm attribute of bswap insn to 0 and remove length attribute.
5374 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5375 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
5376 set mode attribute to <MODE> and remove length attribute.
5378 2010-04-20 James E. Wilson <wilson@codesourcery.com>
5380 PR rtl-optimization/43520
5381 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5382 zero available registers.
5384 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5386 * builtins.c (fold_builtin_cproj): Fold more cases.
5388 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5390 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5391 (fold_builtin_1): Fold builtin cproj.
5392 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5393 Use ATTR_CONST_NOTHROW_LIST.
5395 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
5397 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5398 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
5399 ffsi2_no_cmove for !TARGET_CMOVE.
5400 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
5401 (ffssi2): Remove expander.
5402 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5404 (ctz<mode>2): Ditto from ctz{si,di}2.
5405 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5407 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5410 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5412 * dwarf2out.c (AT_linkage_name): Define.
5413 (clone_as_declaration): Handle DW_AT_linkage_name.
5414 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5415 of DW_AT_MIPS_linkage_name.
5416 (move_linkage_attr): Likewise.
5417 (dwarf2out_finish): Likewise.
5419 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
5422 * fold-const.c (fold_comparison): New folding rule.
5424 2010-04-20 Anatoly Sokolov <aesok@post.ru>
5426 * double-int.h (double_int_setbit): Declare.
5427 * double-int.c (double_int_setbit): New function.
5428 * rtl.h (immed_double_int_const): Declare.
5429 * emit-rtl.c (immed_double_int_const): New function.
5430 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5431 and immed_double_int_const functions.
5432 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5433 expand_copysign_bit): (Ditto.).
5434 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5435 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5436 * dojump.c (prefer_and_bit_test): (Ditto.).
5437 * expr.c (convert_modes, reduce_to_bit_field_precision,
5438 const_vector_from_tree): (Ditto.).
5439 * expmed.c (mask_rtx, lshift_value): (Ditto.).
5441 2010-04-20 Jan Hubicka <jh@suse.cz>
5443 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
5444 (dump_cgraph_node): Dump new flags.
5445 * cgraph.h (struct cgraph_node): Add flags
5446 reachable_from_other_partition and in_other_partition.
5447 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
5448 other partition can not be removed.
5449 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
5450 the other partition must be output; silence sanity checking on
5451 leaking functions bodies from other paritition.
5452 * lto-cgraph.c (reachable_from_other_partition_p): New function.
5453 (lto_output_node): Output new flags; do not sanity check that inline
5454 clones are output; drop lto_forced_extern_inline_p code; do not mock
5455 visibility flags at partition boundaries.
5456 (add_node_to): New function.
5457 (output_cgraph): Use it to sort functions so masters appear before
5459 (input_overwrite_node): Input new flags.
5460 * passes.c (ipa_write_summaries): Do not call
5461 lto_new_extern_inline_states.
5462 * lto-section-out.c (forced_extern_inline,
5463 lto_new_extern_inline_states lto_delete_extern_inline_states,
5464 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
5465 * lto-streamer.h (lto_new_extern_inline_states,
5466 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
5467 lto_forced_extern_inline_p): Kill.
5469 2010-04-20 Richard Guenther <rguenther@suse.de>
5471 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
5472 from vars that can have pointers.
5473 (process_constraint): Dump useless constraints.
5475 2010-04-20 Richard Guenther <rguenther@suse.de>
5477 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
5478 (dump_sa_points_to_info): Remove asserts.
5479 (init_base_vars): nothing_id isn't an escape point nor does it
5482 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5484 * tree.h (TYPE_REF_IS_RVALUE): Define.
5485 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
5486 should_move_die_to_comdat, prune_unused_types_walk): Handle
5487 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
5488 (modified_type_die, gen_reference_type_die): Emit
5489 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
5490 if TYPE_REF_IS_RVALUE and -gdwarf-4.
5492 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5495 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
5496 calls for -fpic -m31 if they have been sibcall optimized.
5498 2010-04-19 James E. Wilson <wilson@codesourcery.com>
5500 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
5501 ar.lc fixed and call-used.
5503 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
5505 2010-04-19 Jan Hubicka <jh@suse.cz>
5507 * opts.c (decode_options): Disable whpr incompatible passes.
5508 * lto/lto.c (lto_1_to_1_map): Skip clones.
5509 (read_cgraph_and_symbols): Do not mark everything as needed.
5510 (do_whole_program_analysis): Do map only after optimizing;
5511 set proper cgraph_state; use passmanager.
5513 2010-04-19 DJ Delorie <dj@redhat.com>
5515 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
5516 POINTER_PLUS_EXPR and fix them.
5518 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
5520 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
5521 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
5522 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
5523 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
5524 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
5525 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
5526 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
5527 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
5528 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
5529 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
5530 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
5532 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
5534 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
5535 (check_cond_move_block): Likewise.
5536 (cond_move_process_if_block): Likewise.
5537 (noce_find_if_block): Improve formatting.
5538 (find_if_header): Pass 0 to memset and tweak conditions.
5539 (cond_exec_find_if_block): Fix long lines and tweak conditions.
5541 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5543 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
5547 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
5548 with non-local decl doesn't need chain.
5550 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
5552 * ira-color.c (allocno_reload_assign): Avoid accumulating
5553 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
5555 2010-04-19 Martin Jambor <mjambor@suse.cz>
5557 * gimple.h (create_tmp_reg): Declare.
5558 * gimplify.c (create_tmp_reg): New function.
5559 (gimplify_return_expr): Use create_tmp_reg.
5560 (gimplify_omp_atomic): Likewise.
5561 (gimple_regimplify_operands): Likewise.
5562 * tree-dfa.c (make_rename_temp): Likewise.
5563 * tree-predcom.c (predcom_tmp_var): Likewise.
5564 (reassociate_to_the_same_stmt): Likewise.
5565 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
5566 (get_replaced_param_substitute): Likewise.
5567 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
5568 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
5569 * tree-ssa-pre.c (get_representative_for): Likewise.
5570 (create_expression_by_pieces): Likewise.
5571 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
5572 (create_tailcall_accumulator): Likewise.
5574 2010-04-19 Martin Jambor <mjambor@suse.cz>
5576 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
5578 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
5580 2010-04-19 Richard Guenther <rguenther@suse.de>
5582 PR tree-optimization/43796
5583 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
5584 from SCEV in the lattice.
5585 (vrp_visit_phi_node): Dump change.
5587 2010-04-19 Richard Guenther <rguenther@suse.de>
5589 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
5590 * configure: Re-generated.
5592 2010-04-19 Richard Guenther <rguenther@suse.de>
5594 PR tree-optimization/43783
5595 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
5596 constant ARRAY_REF operands two and three if possible.
5598 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
5601 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
5603 2010-04-19 Jie Zhang <jie@codesourcery.com>
5606 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
5608 2010-04-19 Ira Rosen <irar@il.ibm.com>
5610 PR tree-optimization/37027
5611 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
5612 and macro to access it.
5613 (vectorizable_reduction): Add argument.
5614 (vect_get_slp_defs): Likewise.
5615 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
5616 statements for possible use in SLP.
5617 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
5618 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
5619 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
5621 (vectorizable_reduction): Likewise.
5622 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
5624 (vectorizable_type_demotion, vectorizable_type_promotion,
5625 vectorizable_store): Likewise.
5626 (vect_analyze_stmt): Update call to vectorizable_reduction.
5627 (vect_transform_stmt): Likewise.
5628 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
5629 (vect_build_slp_tree): Fix indentation. Check that there are no loads
5630 from different interleaving chains in same node.
5631 (vect_slp_rearrange_stmts): New function.
5632 (vect_supported_load_permutation_p): Allow load permutations for
5633 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
5634 inside SLP nodes if necessary.
5635 (vect_analyze_slp_instance): Handle reductions.
5636 (vect_analyze_slp): Try to build SLP instances originating from groups
5638 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
5639 (vect_get_constant_vectors): Create initial vectors for reductions
5640 according to reduction code. Add new argument.
5641 (vect_get_slp_defs): Add new argument, pass it to
5642 vect_get_constant_vectors.
5643 (vect_schedule_slp_instance): Remove SLP tree root statements.
5645 2010-04-19 Jakub Jelinek <jakub@redhat.com>
5647 * tree.h (ENUM_IS_SCOPED): Define.
5648 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
5649 for ENUM_IS_SCOPED enums.
5651 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
5653 * fold-const.c (fold_comparison): Use ssizetype.
5654 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5655 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
5656 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
5657 * tree-object-size.c (compute_object_sizes): Use size_type_node.
5659 * tree.h (initialize_sizetypes): Remove parameter.
5660 (build_common_tree_nodes): Remove second parameter.
5661 * stor-layout.c (initialize_sizetypes): Remove parameter.
5662 Always create an unsigned type.
5663 (set_sizetype): Assert that the passed type is unsigned and simplify.
5664 * tree.c (build_common_tree_nodes): Remove second parameter.
5665 Adjust call to initialize_sizetypes.
5666 * c-decl.c (c_init_decl_processing): Remove second argument in call to
5667 build_common_tree_nodes.
5669 2010-04-18 Matthias Klose <doko@ubuntu.com>
5671 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
5673 2010-04-18 Ira Rosen <irar@il.ibm.com>
5675 PR tree-optimization/43771
5676 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
5677 load permutation doesn't have gaps.
5679 2010-04-18 Jan Hubicka <jh@suse.cz>
5681 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
5682 (sse_prologue_save_insn expander): Use new pattern.
5683 (sse_prologue_save_insn1): New pattern and splitter.
5684 (sse_prologue_save_insn): Update to deal also with 64bit aligned
5686 * i386.c (setup_incoming_varargs_64): Do not compute jump
5688 (ix86_gimplify_va_arg): Update alignment needed.
5689 (ix86_local_alignment): Do not align all local arrays to 128bit.
5691 2010-04-17 Jan Hubicka <jh@suse.cz>
5693 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
5695 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5697 * arm.md (negdi2): Remove redundant code to force values into a
5700 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5702 * arm/bpabi.S: Add EABI alignment attributes to objects.
5703 * arm/bpabi-v6m.S: Likewise.
5704 * arm/crti.asm: Likewise.
5705 * arm/crtn.asm: Likewise.
5706 * arm/lib1funcs.asm: Likewise.
5707 * arm/libunwind.S: Likewise.
5709 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
5711 * arm-protos.h (tune_params): New structure.
5712 * arm.c (current_tune): New variable.
5713 (arm_constant_limit): Delete.
5714 (struct processors): Add pointer to the tune parameters.
5715 (arm_slowmul_tune): New tuning option.
5716 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
5717 (all_cores): Adjust to pick up the tuning model.
5718 (arm_constant_limit): New function.
5719 (arm_override_options): Select the appropriate tuning model. Delete
5720 initialization of arm_const_limit.
5721 (arm_split_constant): Use the new constant-limit model.
5722 (arm_rtx_costs): Pick up the current tuning model.
5723 * arm.md (is_strongarm, is_xscale): Delete.
5724 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
5725 for Xscale variant architectures.
5726 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
5728 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5730 * config/arm/arm.c (arm_gen_constant): Remove unused variable
5732 (arm_rtx_costs_1): Remove unused variable extra_cost.
5733 (arm_unwind_emit_set): Use variable offset.
5734 (thumb1_output_casesi): Remove unused variable flags.
5736 2010-04-16 Jeff Law <law@redhat.com>
5738 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
5739 needing assignment rather than doing a two-phase assignment. Remove
5740 unused variable 'm'.
5742 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5745 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
5747 2010-04-16 Doug Kwan <dougkwan@google.com>
5749 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
5750 (next_operand_entry_id): New static variable.
5751 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
5752 (add_to_ops_vec): Assigned unique ID to operand entry.
5753 (struct oecount_s): New field ID.
5754 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
5755 (undistribute_ops_list): Assign unique IDs to oecounts.
5756 (init_reassoc): reset next_operand_entry_id.
5758 2010-04-16 Doug Kwan <dougkwan@google.com>
5760 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
5761 missing left parenthesis.
5763 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
5765 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
5766 *btdi_rex64 using SWI48 mode iterator.
5767 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
5768 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
5769 *jcc_btdi_mask_rex64.
5771 2010-04-16 Anatoly Sokolov <aesok@post.ru>
5773 * double-int.h (tree_to_double_int): Convert to macro.
5774 * double-int.c (tree_to_double_int): Remove.
5776 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5779 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
5780 with want_address 2 and in case a single element list might be
5781 possible, call it again with want_address 0.
5783 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5785 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
5786 case 'W' print operands for HI mode.
5787 * config/h8300/h8300.h (Y0, Y2) : New constraints.
5788 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
5789 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
5790 * config/h8300/predicate.md (bit_register_indirect_operand): New.
5792 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
5794 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
5795 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
5796 #xx:3 and #xx:4 mode.
5798 * config/h8300/h8300.md (inverted load with HImode dest): Add
5799 support for H8300SX.
5801 * config/h8300/predicate.md (bit_operand): Allow immediate values that
5802 satisfy 'U' constraint.
5804 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5806 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
5807 * configure: Regenerate.
5808 * config.in: Regenerate.
5809 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
5812 2010-04-16 Richard Guenther <rguenther@suse.de>
5814 * tree.h (struct tree_decl_minimal): Move pt_uid ...
5815 (struct tree_decl_common): ... here.
5816 (DECL_PT_UID): Adjust.
5817 (SET_DECL_PT_UID): Likewise.
5818 (DECL_PT_UID_SET_P): Likewise.
5820 2010-04-16 Richard Guenther <rguenther@suse.de>
5822 PR tree-optimization/43572
5823 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
5824 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
5825 * tree-flow.h (is_call_clobbered): Remove.
5826 * tree-flow-inline.h (is_call_clobbered): Likewise.
5827 * tree-dfa.c (dump_variable): Do not dump call clobber state.
5828 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
5829 (execute_return_slot_opt): Adjust.
5830 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
5831 check for call clobbered vars here.
5832 (find_tail_calls): Move tailcall verification to the
5835 2010-04-16 Diego Novillo <dnovillo@google.com>
5837 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
5839 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
5842 * config/arm/arm.md (cbranchqi4): New pattern.
5843 * config/arm/predicates.md (const0_operand,
5844 cbranchqi4_comparison_operator): New predicates.
5846 2010-04-16 Richard Guenther <rguenther@suse.de>
5848 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
5849 (dump_gimple_stmt): Likewise.
5851 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
5853 * recog.h (struct recog_data): New field is_operator.
5854 (struct insn_operand_data): New field is_operator.
5855 * recog.c (extract_insn): Set recog_data.is_operator.
5856 * genoutput.c (output_operand_data): Emit code to set the
5858 * reload.c (find_reloads): Use it rather than testing for an
5859 empty constraint string.
5862 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
5863 If the previous insn is a cbranchsi4_insn with the same arguments,
5864 omit the compare instruction.
5866 * config/arm/arm.md (addsi3_cbranch): If destination is a high
5867 register, inputs must be low registers and we need a low register
5868 scratch. Handle alternative 2 like alternative 3.
5870 2010-04-16 Jakub Jelinek <jakub@redhat.com>
5872 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
5873 don't call get_addr on both. If one expression is a VALUE and
5874 the other a REG, check VALUE's locs if the REG isn't among them.
5876 2010-04-16 Christian Bruel <christian.bruel@st.com>
5878 * config/sh/sh.h (sh_frame_pointer_required): New function.
5879 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
5880 (flag_omit_frame_pointer) Set.
5881 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
5882 (rounded_frame_size): Adjust size with outgoing_args_size.
5883 (sh_set_return_address): Must return from stack pointer.
5884 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
5885 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
5886 (ACCUMULATE_OUTGOING_ARGS): Define.
5887 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
5888 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
5890 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
5893 * config/sh/sh.c (sh_legitimize_reload_address): Use
5894 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
5895 Remove a unneeded check for offset_base.
5897 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
5899 * configure: Regenerated.
5901 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5903 * config/s390/s390.c (s390_call_save_register_used): Switch back
5904 to HARD_REGNO_NREGS.
5906 2010-04-15 Richard Guenther <rguenther@suse.de>
5908 * alias.c (alias_set_subset_of): Handle alias-set zero
5911 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
5912 Julian Brown <julian@codesourcery.com>
5914 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
5915 alternatives according to use of high and low regs.
5916 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
5917 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
5918 optimizing for size on Thumb-2.
5920 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
5922 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
5924 2010-04-15 Richard Guenther <rguenther@suse.de>
5926 * tree-ssa-structalias.c (struct variable_info): Add
5928 (new_var_info): Initialize it.
5929 (dump_constraints): Support printing last added constraints.
5930 (debug_constraints): Adjust.
5931 (dump_constraint_graph): Likewise.
5932 (make_heapvar_for): Check for NULL cfun.
5933 (get_function_part_constraint): New function.
5934 (get_fi_for_callee): Likewise.
5935 (find_func_aliases): Properly implement IPA PTA constraints.
5936 (process_ipa_clobber): New function.
5937 (find_func_clobbers): Likewise.
5938 (insert_into_field_list_sorted): Remove.
5939 (create_function_info_for): Properly allocate vars for IPA mode.
5940 Do not use insert_into_field_list_sorted.
5941 (create_variable_info_for): Properly generate constraints for
5942 global vars in IPA mode.
5943 (dump_solution_for_var): Always dump the solution.
5944 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
5945 (find_what_var_points_to): Adjust.
5946 (pt_solution_set): Change.
5947 (pt_solution_ior_into): New function.
5948 (pt_solution_empty_p): Export.
5949 (pt_solution_includes_global): Adjust.
5950 (pt_solution_includes_1): Likewise.
5951 (pt_solutions_intersect_1): Likewise.
5952 (dump_sa_points_to_info): Check some invariants.
5953 (solve_constraints): Move constraint dumping ...
5954 (compute_points_to_sets): ... here.
5955 (ipa_pta_execute): ... and here.
5956 (compute_may_aliases): Do not re-compute points-to info
5957 locally if IPA info is available.
5958 (ipa_escaped_pt): New global var.
5959 (ipa_pta_execute): Properly implement IPA PTA.
5960 * tree-into-ssa.c (dump_decl_set): Support dumping
5961 decls not in referenced-vars.
5962 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
5963 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
5964 (dump_points_to_solution): Likewise.
5965 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
5966 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
5967 (remap_gimple_stmt): Reset call clobber/use information if necessary.
5968 (copy_decl_to_var): Copy DECL_PT_UID.
5969 (copy_result_decl_to_var): Likewise.
5970 * tree.c (make_node_stat): Initialize DECL_PT_UID.
5971 (copy_node_stat): Copy it.
5972 * tree.h (DECL_PT_UID): New macro.
5973 (SET_DECL_PT_UID): Likewise.
5974 (DECL_PT_UID_SET_P): Likewise.
5975 (struct tree_decl_minimal): Add pt_uid member.
5976 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
5977 (pt_solution_empty_p): Declare.
5978 (pt_solution_set): Adjust.
5979 (ipa_escaped_pt): Declare.
5980 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
5981 * gimple-pretty-print.c (pp_points_to_solution): New function.
5982 (dump_gimple_call): Dump call clobber/use information.
5983 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
5984 * tree-pass.h (TDF_ALIAS): New dump option.
5985 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
5986 * doc/invoke.texi (-fipa-pta): Update documentation.
5988 2010-04-15 Richard Guenther <rguenther@suse.de>
5990 * Makefile.in (OBJS-common): Add gimple-fold.o.
5991 (gimple-fold.o): New rule.
5992 * tree.h (maybe_fold_offset_to_reference,
5993 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
5995 * gimple.h: ... here.
5996 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
5997 may_propagate_address_into_dereference): Move prototypes ...
5998 * gimple.h: ... here.
5999 * tree-ssa-ccp.c (get_symbol_constant_value,
6000 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
6001 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
6002 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
6003 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
6004 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6005 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6006 gimplify_and_update_call_from_tree): Move ...
6007 * gimple-fold.c: ... here. New file.
6008 (ccp_fold_builtin): Rename to ...
6009 (gimple_fold_builtin): ... this.
6010 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6012 2010-04-15 Richard Guenther <rguenther@suse.de>
6014 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6015 fit_double_type, force_fit_type_double, add_double_with_sign,
6016 neg_double, mul_double_with_sign, lshift_double, rshift_double,
6017 lrotate_double, rrotate_double, div_and_round_double): Move ...
6018 * double-int.c: ... here.
6019 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6020 add_double, neg_double, mul_double_with_sign, mul_double,
6021 lshift_double, rshift_double, lrotate_double, rrotate_double,
6022 div_and_round_double): Move prototypes ...
6023 * double-int.h: ... here.
6025 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
6028 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
6029 matching constraints to ensure inputs match the output.
6031 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6034 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6035 in an input-only operand.
6037 2010-04-15 Anatoly Sokolov <aesok@post.ru>
6039 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6040 (double_int_not, double_int_lshift, double_int_rshift): Declare.
6041 (double_int_negative_p): Convert to static inline function.
6042 * double-int.c (double_int_lshift, double_int_lshift): New functions.
6043 (double_int_negative_p): Remove.
6044 * tree.h (lshift_double, rshift_double):
6045 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6046 * fold-const.c (fold_convert_const_int_from_real,
6047 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6048 (lshift_double): Change type of arith argument to bool.
6049 (rshift_double): Change type of arith argument to bool. Correct
6051 * expmed.c (mask_rtx, lshift_value): (Ditto.).
6053 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
6056 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6057 at the start and end of the then/else blocks, and omit them from the
6059 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
6060 argument; all callers changed. Pass zero to old_insns_match_p instead.
6061 (flow_find_head_matching_sequence): New function.
6062 (old_insns_match_p): Check REG_EH_REGION notes for calls.
6063 * basic-block.h (flow_find_cross_jump,
6064 flow_find_head_matching_sequence): Declare functions.
6066 2010-04-14 Jason Merrill <jason@redhat.com>
6069 * c-common.c (attribute_takes_identifier_p): New fn.
6070 * c-common.h: Declare it.
6072 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6074 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6076 (*udivmod<mode>4): Ditto.
6078 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6080 * config/i386/i386.md (maxmin_int): Rename code attribute from
6081 maxminiprefix and update all users.
6082 (maxmin_float): Ditto from maxminfprefix.
6083 (logic): Ditto from logicprefix.
6084 (absneg_mnemonic): Ditto from absnegprefix.
6085 * config/i386/mmx.md: Update all users of maxminiprefix,
6086 maxminfprefix and logicprefix for rename.
6087 * config/i386/sse.md: Ditto.
6088 * config/i386/sync.md (sync_<code><mode>): Update for
6091 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6094 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6095 warnings converted to errors.
6097 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6099 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6100 used insn_type variable.
6101 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6102 to avoid set-but-not-used warning.
6104 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6106 * df-core.c (df_ref_debug): Change format string placeholder
6108 * dwarf2asm.c (dw2_asm_output_data_raw,
6109 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6110 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6111 * dwarf2out.c (output_cfi, output_cfi_directive,
6112 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6113 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6115 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6116 * print-rtl.c (print_rtx): Ditto.
6118 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6121 * builtins.c (expand_builtin_pow_root): New function to expand pow
6122 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6123 series of sqrt and cbrt calls under -ffast-math.
6124 (expand_builtin_pow): Call it.
6126 2010-04-14 Michael Matz <matz@suse.de>
6128 PR tree-optimization/42963
6129 * tree-cfg.c (touched_switch_bbs): New static variable.
6130 (group_case_labels_stmt): New function broken out from ...
6131 (group_case_labels): ... here, use the above.
6132 (start_recording_case_labels): Allocate touched_switch_bbs.
6133 (end_recording_case_labels): Deallocate it, call
6134 group_case_labels_stmt.
6135 (gimple_redirect_edge_and_branch): Remember index of affected BB.
6137 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6139 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6142 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6144 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6146 2010-04-13 Jan Hubicka <jh@suse.cz>
6148 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6149 of optimized out static functions.
6150 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6151 cost computation. Also sanity check for overflows.
6152 (update_caller_keys): Update cgraph_edge_badness call; properly
6153 update fibheap and sanity check that it is up to date.
6154 (add_new_edges_to_heap): Update cgraph_edge_badness.
6155 (cgraph_decide_inlining_of_small_function): Likewise;
6156 add sanity checking that badness in heap is up to date;
6157 improve dumping of reason; Update badness of calls to the
6158 offline copy of function currently inlined; dump badness
6159 of functions not inlined because of unit growth limits.
6161 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6164 * c-common.c (pointer_int_sum): Disregard overflow that occured only
6165 because of sign-extension change when converting to sizetype here...
6166 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6168 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6169 the folding to constants. Remove redundant final conversion.
6170 (fold_binary) <associate>: Do not associate if the re-association of
6171 constants alone overflows.
6172 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6173 to the end of the list.
6174 (multiple_of_p) <COND_EXPR>: New case.
6176 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6178 * opt-functions.awk (opt_sanitized_name): New.
6180 * optc-gen.awk: Use it
6181 * opth-gen.awk: Use it.
6183 2010-04-13 Martin Jambor <mjambor@suse.cz>
6185 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6186 (sra_modify_assign): Delete stmts loading dead data even if racc has no
6187 children. Call replace_uses_with_default_def_ssa_name to handle
6190 2010-04-13 Michael Matz <matz@suse.de>
6193 * builtins.c (expand_builtin_interclass_mathfn): Also create
6194 a register if the predicate doesn't match.
6196 2010-04-13 Diego Novillo <dnovillo@google.com>
6198 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
6199 * c-pch.c: Include timevar.h.
6200 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
6201 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
6202 * ggc-common.c: Include timevar.h.
6203 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
6204 * timevar.def (TV_PCH_SAVE): Define.
6205 (TV_PCH_CPP_SAVE): Define.
6206 (TV_PCH_PTR_REALLOC): Define.
6207 (TV_PCH_PTR_SORT): Define.
6208 (TV_PCH_RESTORE): Define.
6209 (TV_PCH_CPP_RESTORE): Define.
6211 2010-04-13 Michael Matz <matz@suse.de>
6213 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
6215 (can_reassociate_p): New function.
6216 (break_up_subtract_bb, reassociate_bb): Use it.
6218 2010-04-13 Richard Guenther <rguenther@suse.de>
6221 * builtins.c (c_readstr): Fix assert.
6223 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
6225 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6226 when generating cltd insn.
6228 (*ashl<mode>3_1): Remove special handling for register operand 2.
6229 (*ashlsi3_1_zext): Ditto.
6230 (*ashlhi3_1): Ditto.
6231 (*ashlhi3_1_lea): Ditto.
6232 (*ashlqi3_1): Ditto.
6233 (*ashlqi3_1_lea): Ditto.
6234 (*<shiftrt_insn><mode>3_1): Ditto.
6235 (*<shiftrt_insn>si3_1_zext): Ditto.
6236 (*<shiftrt_insn>qi3_1_slp): Ditto.
6237 (*<rotate_insn><mode>3_1): Ditto.
6238 (*<rotate_insn>si3_1_zext): Ditto.
6239 (*<rotate_insn>qi3_1_slp): Ditto.
6241 2010-04-13 Richard Guenther <rguenther@suse.de>
6243 * tree-ssa-structalias.c (callused_id): Remove.
6244 (call_stmt_vars): New.
6245 (get_call_vi): Likewise.
6246 (lookup_call_use_vi): Likewise.
6247 (lookup_call_clobber_vi): Likewise.
6248 (get_call_use_vi): Likewise.
6249 (get_call_clobber_vi): Likewise.
6250 (make_transitive_closure_constraints): Likewise.
6251 (handle_const_call): Adjust to do per-call call-used handling.
6252 (handle_pure_call): Likewise.
6253 (find_what_var_points_to): Remove general callused handling.
6254 (init_base_vars): Likewise.
6255 (init_alias_vars): Initialize call_stmt_vars.
6256 (compute_points_to_sets): Process call-used and call-clobbered
6257 vars for call statements.
6258 (delete_points_to_sets): Free call_stmt_vars.
6260 2010-04-13 Richard Guenther <rguenther@suse.de>
6262 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6263 Only add RW dependence for dependence distance zero.
6264 Adjust maximal vectorization factor according to dependences.
6265 Move alignment handling ...
6266 (vect_find_same_alignment_drs): ... here. New function.
6267 (vect_analyze_data_ref_dependences): Adjust.
6268 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6269 (vect_analyze_data_refs): Adjust minimal vectorization factor
6270 according to data references.
6271 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6272 dependences before determining the vectorization factor.
6273 Analyze alignment after determining the vectorization factor.
6274 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6275 dependences before alignment.
6276 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6278 (vect_analyze_data_refs): Likewise.
6279 (MAX_VECTORIZATION_FACTOR): New define.
6281 2010-04-13 Duncan Sands <baldrick@free.fr>
6283 * except.h (lang_eh_type_covers): Remove.
6284 * except.c (lang_eh_type_covers): Likewise.
6286 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6287 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6289 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6290 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6291 UNITS_PER_LONG where it is ABI relevant.
6292 (s390_return_addr_rtx): Likewise.
6293 (s390_back_chain_rtx): Likewise.
6294 (s390_frame_area): Likewise.
6295 (s390_frame_info): Likewise.
6296 (s390_initial_elimination_offset): Likewise.
6297 (save_gprs): Likewise.
6298 (s390_emit_prologue): Likewise.
6299 (s390_emit_epilogue): Likewise.
6300 (s390_function_arg_advance): Likewise.
6301 (s390_function_arg): Likewise.
6302 (s390_va_start): Likewise.
6303 (s390_gimplify_va_arg): Likewise.
6304 (s390_function_profiler): Likewise.
6305 (s390_optimize_prologue): Likewise.
6306 (s390_rtx_costs): Likewise.
6307 (s390_secondary_reload): Likewise.
6308 (s390_promote_function_mode): Likewise.
6309 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6310 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6311 registers available.
6312 (s390_unwind_word_mode): New function.
6313 (s390_function_value): Split 64 bit values into register pair if
6314 used as return value.
6315 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6316 function call parameters. Handle parallels.
6317 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6318 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6319 (DWARF_CIE_DATA_ALIGNMENT): New macro.
6320 (s390_expand_setmem): Remove unused variable src_addr.
6321 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6322 deal with 64 bit registers.
6323 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6324 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6325 (UNITS_PER_LONG): New macro.
6326 * libjava/include/s390-signal.h: Define extended ucontext
6327 structure containing the upper halfs of the 64 bit registers.
6329 2010-04-13 Simon Baldwin <simonb@google.com>
6331 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6333 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6335 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6336 rvalue on the RHS if the LHS is of a non-renamable type.
6337 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6339 2010-04-13 Matthias Klose <doko@ubuntu.com>
6341 * gcc.c (cc1_options): Handle -iplugindir before processing
6342 the cc1 spec. Only add -iplugindir once.
6343 (cpp_unique_options): Add -iplugindir option if -fplugin* options
6345 * common.opt (iplugindir): Remove `Separate' property, initialize.
6346 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6348 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6349 (distclean): Remove plugin dir.
6350 * doc/invoke.texi: Document -iplugindir.
6352 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
6354 * doc/plugins.texi (Loading Plugins): Document short
6355 -fplugin=foo option.
6356 (Plugin API): Mention default_plugin_dir_name function.
6358 * gcc.c (find_file_spec_function): Add new declaration.
6359 (static_spec_func): Use it for "find-file".
6360 (find_file_spec_function): Add new function.
6361 (cc1_options): Add -iplugindir option if -fplugin* options found.
6363 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6365 * plugin.c (add_new_plugin): Updated comment, and handle short
6367 (default_plugin_dir_name): Added new function.
6369 * common.opt (iplugindir): New option to set the plugin directory.
6371 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
6373 * config/i386/i386.md (any_rotate): New code iterator.
6374 (rotate_insn): New code attribute.
6376 (SWIM124): New mode iterator.
6377 (<rotate_insn>ti3): New expander.
6378 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6379 any_rotate code iterator.
6380 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6381 using any_rotate code iterator and SWIM124 mode iterator.
6382 (ix86_rotlti3): New insn_and_split pattern.
6383 (ix86_rotrti3): Ditto.
6384 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6385 ix86_rotl{di,ti}3 patterns.
6386 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6387 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6388 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6389 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6390 code iterator and SWI mode iterator.
6391 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6392 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6394 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6395 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6396 (bswap rotatert splitter): Add splitter.
6397 (bswap splitter): Macroize splitter using any_rotate code iterator.
6398 Add insn predicate to split only for TARGET_USE_XCHGB or when
6399 optimizing function for size.
6401 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6403 * config/pa/pa.c (emit_move_sequence): Remove use of
6404 deleted variable flag_argument_noalias.
6406 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6408 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6410 Add to unsupported targets list.
6411 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6412 sparc*-sun-solaris2.[567]* from target lists.
6413 * configure: Regenerate.
6414 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6416 Remove Solaris 7 patch references.
6417 (Specific, sparc-sun-solaris2.7): Removed.
6418 (sparc-sun-solaris2*): Update Solaris 7 example.
6419 (sparc64-*-solaris2*): Likewise.
6421 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6423 * config.build (alpha*-dec-osf4*): Remove.
6424 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6425 of obsolete configurations.
6426 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6428 * config/alpha/t-osf4: Renamed to ...
6429 * config/alpha/t-osf5: ... this.
6430 * config/alpha/osf.h: Renamed to ...
6431 * config/alpha/osf5.h: ... this.
6432 Merged old osf5.h contents.
6434 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6435 (EXTRA_SPECS): Removed.
6436 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6437 reflect removal of Tru64 UNIX V4.0/V5.0 support.
6440 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6442 * doc/contrib.texi (Contributors, Rainer Orth): Update.
6444 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
6447 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
6448 __thiscall convention.
6450 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6452 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
6454 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
6456 2010-04-12 Steve Ellcey <sje@cup.hp.com>
6458 * function.c (assign_parms_initialize_all): Add unused attribute
6461 2010-04-12 Richard Guenther <rguenther@suse.de>
6463 * gsstruct.def (GSS_CALL): New.
6464 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
6465 * gimple.h: Include tree-ssa-alias.h.
6466 (struct gimple_statement_call): New.
6467 (union gimple_statement_struct_d): Add gimple_call member.
6468 (gimple_call_reset_alias_info): Declare.
6469 (gimple_call_use_set): New function.
6470 (gimple_call_clobber_set): Likewise.
6471 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
6472 * gimple.c (gimple_call_reset_alias_info): New function.
6473 (gimple_build_call_1): Call it.
6474 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6475 * tree-inline.c (remap_gimple_stmt): Likewise.
6476 (expand_call_inline): Remove callused handling.
6477 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
6478 * tree-dfa.c (dump_variable): Likewise.
6479 * tree-parloops.c (parallelize_loops): Likewise.
6480 * tree-ssa.c (init_tree_ssa): Likewise.
6481 (delete_tree_ssa): Likewise.
6482 * tree-flow-inline.h (is_call_used): Remove.
6483 * tree-flow.h (struct gimple_df): Remove callused member.
6484 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
6485 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
6486 (ref_maybe_used_by_call_p_1): Simplify.
6487 (call_may_clobber_ref_p_1): Likewise.
6488 * tree-ssa-structalias.c (compute_points_to_sets): Set
6489 the call stmt used and clobbered sets.
6490 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
6491 (find_tail_calls): Verify the tail call.
6493 2010-04-12 Richard Guenther <rguenther@suse.de>
6495 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
6496 single-iteration always-inline inlining.
6497 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
6498 (cgraph_decide_inlining): Do not handle always-inline specially.
6499 (try_inline): Remove always-inline cycle detection special case.
6500 Do not recurse on always-inlines.
6501 (cgraph_early_inlining): Do not iterate if not optimizing.
6502 (cgraph_gate_early_inlining): remove.
6503 (pass_early_inline): Run unconditionally.
6504 (gate_cgraph_decide_inlining): New function.
6505 (pass_ipa_inline): Use it. Do not run the IPA inliner if
6506 not inlining or optimizing.
6507 (cgraph_decide_inlining_of_small_functions): Also consider
6508 always-inline functions.
6509 (cgraph_default_inline_p): Return true for nodes which should
6510 disregard inline limits.
6511 (estimate_function_body_sizes): Assume zero size and time for
6512 nodes which are marked as disregarding inline limits.
6513 (cgraph_decide_recursive_inlining): Do not perform recursive
6514 inlining on always-inline nodes.
6516 2010-04-12 Jakub Jelinek <jakub@redhat.com>
6519 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
6520 for exprs satisfying handled_component_p.
6522 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
6524 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
6525 non-constant aggregate elements.
6527 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
6528 is a real initialization.
6530 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
6533 * c-decl.c (start_function): Move forward check for nested function.
6535 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
6537 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
6538 * config/sh/sh.c: Include reload.h.
6539 (sh_legitimize_reload_address): New.
6540 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
6541 sh_legitimize_reload_address.
6543 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6545 * config/sh/sh.md (*movqi_pop): New insn pattern.
6546 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
6548 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6550 * config/i386/i386.md (any_shiftrt): New code iterator.
6551 (shiftrt_insn): New code attribute.
6553 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
6554 using any_shiftrt code iterator.
6555 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
6556 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
6557 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
6558 pattern from corresponding peephole2 patterns.
6559 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
6560 using any_shiftrt code iterator.
6561 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
6562 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
6563 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
6564 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
6565 *{ashr,lshr}<mode>3_cmp_zext.
6566 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
6568 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6570 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
6572 (*lshr<mode>3_cconly): Ditto.
6574 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
6576 * config/i386/i386.md (lshr<mode>3): Macroize expander from
6577 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6578 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6579 pattern from *lshr{di,ti}3_1 and corresponding splitters using
6581 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6582 from corresponding peephole2 patterns.
6583 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
6584 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
6585 and *lshrdi3_1_rex64 using SWI mode iterator.
6586 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
6587 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
6588 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
6589 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
6590 and *lshrdi3_cmp_rex64 using SWI mode iterator.
6591 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
6592 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
6593 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
6594 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
6597 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
6599 * config/i386/i386.md (ashr<mode>3): Macroize expander from
6600 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
6601 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
6602 pattern from *ashr{di,ti}3_1 and corresponding splitters using
6604 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
6605 from corresponding peephole2 patterns.
6606 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
6607 (ashrsi3_cvt): Rename from ashrsi3_31.
6608 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
6609 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
6610 and x86_64_shift_adj_3 using SWI48 mode iterator.
6611 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
6612 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
6613 and *ashrdi3_1_rex64 using SWI mode iterator.
6614 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
6615 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
6616 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
6617 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
6618 and *ashrdi3_cmp_rex64 using SWI mode iterator.
6619 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
6620 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
6621 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
6622 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
6624 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
6625 * config/i386/i386.c (ix86_split_ashr): Update for renamed
6626 x86_shift<mode>_adj_3 expanders.
6628 2010-04-10 Wei Guozhi <carrot@google.com>
6631 * config/arm/arm.c (arm_pic_static_addr): New function.
6632 (legitimize_pic_address): Call arm_pic_static_addr when it detects
6634 (arm_output_addr_const_extra): Output expression for new pattern.
6635 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
6637 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
6639 * ira-costs.c (record_reg_classes): Ignore alternatives that are
6642 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
6643 * web.c: Include "insn-config.h" and "recog.h".
6644 (union_match_dups): New function.
6645 (web_main): Call it.
6646 (union_defs): Don't try to recognize match_dups.
6648 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
6649 if doing so would replace the entire pattern.
6651 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6655 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
6656 and splitter pattern. Change splitter operand 1 predicate to
6659 2010-04-09 Martin Jambor <mjambor@suse.cz>
6661 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
6662 lattices are addresses of CONST_DECLs with the same initial value.
6663 (ipcp_print_all_lattices): Print values of CONST_DECLs.
6664 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
6666 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
6667 Bernd Schmidt <bernds@codesourcery.com>
6669 * loop-invariant.c (replace_uses): New static function.
6670 (move_invariant_reg): Use it to ensure we can replace the uses.
6672 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
6674 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
6676 (picochip_override_options): Enable section anchors only above -O1.
6677 (picochip_reorg): Fixed a couple of build warnings.
6679 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6681 * configure.ac (plugin -rdynamic test): Log result.
6682 * configure: Regenerate.
6683 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
6684 (RDYNAMIC_SPEC): Define.
6685 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
6687 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6689 * configure.ac: Determine Sun ld version numbers.
6690 (comdat_group): Restrict GNU ld version checks to gld.
6691 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
6692 (enable_comdat): Support --enable-comdat.
6693 * configure: Regenerate.
6694 * doc/install.texi (Configuration): Document --enable-comdat.
6696 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6698 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
6699 * config/sol2-gld.h: ... here.
6700 * config.gcc (sparc*-*-solaris2*): Reflect this.
6701 (i[34567]86-*-solaris2*): Use it.
6703 2010-04-09 Steve Ellcey <sje@cup.hp.com>
6705 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
6707 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
6709 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6712 * diagnostic.c (diagnostic_initialize): Initialize
6713 some_warnings_are_errors.
6714 (diagnostic_finish): New.
6715 (diagnostic_action_after_output): Call it before exiting.
6716 (diagnostic_report_diagnostic): Do not print message here. Set
6717 some_warnings_are_errors.
6718 * diagnostic.h (diagnostic_context): Delete
6719 issue_warnings_are_errors_message. Add some_warnings_are_errors.
6720 (diagnostic_finish): Declare.
6721 * toplev.c (toplev_main): Call it before exit.
6723 2010-04-09 Jason Merrill <jason@redhat.com>
6726 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
6727 for incomplete type.
6730 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
6731 based on a warning flag.
6733 2010-04-09 Richard Guenther <rguenther@suse.de>
6735 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
6737 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
6740 * varasm.c (default_assemble_visibility): Wrap vars that are
6741 set, but unused, by targets without GAS.
6742 * config/rs6000/rs6000.c (paired_emit_vector_compare):
6743 Remove set, but unused, vars.
6744 (rs6000_legitimize_tls_address): Likewise.
6745 (altivec_expand_dst_builtin): Likewise.
6746 * config/darwin.c (machopic_classify_symbol): Likewise.
6747 (machopic_indirection_name): Likewise.
6749 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
6751 * config/i386/i386.md (DWI): New mode iterator.
6752 (S): New mode attribute.
6753 (shift_operand): Ditto.
6754 (shift_immediate_operand): Ditto.
6755 (ashl_input_operand): Ditto.
6756 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
6757 using SDWIM mode iterator.
6758 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
6759 pattern from *ashl{di,ti}3_1 and corresponding splitters using
6761 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
6762 from corresponding peephole2 patterns.
6763 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
6764 and x86_64_shift_adj_1 using SWI48 mode iterator.
6765 (x86_shift<mode>_adj_2): Ditto.
6766 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
6767 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
6768 using SWI48 mode iterator.
6769 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
6770 *ashldi3_cmp_rex64 using SWI mode iterator.
6771 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
6772 *ashldi3_cconly_rex64 using SWI mode iterator.
6773 * config/i386/i386.c (ix86_split_ashl): Update for renamed
6774 x86_shift<mode>_adj_{1,2}.
6775 (ix86_split_ashr): Ditto.
6776 (ix86_split_lshr): Ditto.
6778 2010-04-09 Richard Guenther <rguenther@suse.de>
6780 * target.h (builtin_conversion): Pass in input and output types.
6781 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
6782 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
6783 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
6784 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
6786 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
6788 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
6790 2010-04-09 Richard Guenther <rguenther@suse.de>
6793 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
6795 2010-04-09 Richard Guenther <rguenther@suse.de>
6797 * tree-vectorizer.h (struct _stmt_vec_info): Document
6798 that vectype is the type of the LHS.
6799 (supportable_widening_operation, supportable_narrowing_operation):
6800 Get both input and output vector types as arguments.
6801 (vect_is_simple_use_1): Declare.
6802 (get_same_sized_vectype): Likewise.
6803 * tree-vect-loop.c (vect_determine_vectorization_factor):
6804 Set STMT_VINFO_VECTYPE to the vector type of the def.
6805 (vectorizable_reduction): Adjust.
6806 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
6807 Adjust. Specify the output vector type.
6808 (vect_pattern_recog_1): Adjust.
6809 * tree-vect-stmts.c (get_same_sized_vectype): New function.
6810 (vectorizable_call): Adjust.
6811 (vectorizable_conversion): Likewise.
6812 (vectorizable_operation): Likewise.
6813 (vectorizable_type_demotion): Likewise.
6814 (vectorizable_type_promotion): Likewise.
6815 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
6817 (vect_is_simple_use_1): New function.
6818 (supportable_widening_operation): Get both input and output
6820 (supportable_narrowing_operation): Likewise.
6821 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
6823 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
6825 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
6826 __thiscall and _thiscall as predefined macros.
6827 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
6828 thiscall attribute handling.
6829 (ix86_comp_type_attributes): Likewise.
6830 (ix86_function_regparm): Likewise.
6831 (ix86_return_pops_args): Likewise.
6832 (init_cumulative_args): Likewise.
6833 (find_drap_reg): Likewise.
6834 (ix86_static_chain): Likewise.
6835 (x86_this_parameter): Likewise.
6836 (x86_output_mi_thunk): Likewise.
6837 (ix86_attribute_table): Add description for thiscall attribute.
6838 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
6839 * doc/extend.texi: Add documentation for thiscall.
6841 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6844 * c.opt (Wint-to-pointer-cast): Available in C++.
6845 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
6847 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
6849 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
6850 * calls.c (expand_call): Pass the function type to aggregate_value_p.
6851 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
6852 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
6853 function type instead. Reorder and simplify checks.
6855 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
6857 2010-04-08 Jing Yu <jingyu@google.com>
6858 Zdenek Dvorak <ook@ucw.cz>
6860 PR tree-optimization/42720
6861 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
6862 loop unswitch conditions here from ...
6863 (tree_unswitch_single_loop): ... here.
6865 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
6867 * tree-if-conv.c: Fix comments and simplify logic.
6869 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
6871 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
6872 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
6873 (main_tree_if_conversion): Update call to tree_if_conversion.
6875 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6878 * doc/invoke.texi (-b,-V): Delete.
6879 * doc/tm.texi: Do not mention -b.
6880 * gcc.c (display_help): Delete -b and -V.
6881 (process_command): Delete -b and -V.
6882 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
6884 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
6885 Wolfgang Gellerich <gellerich@de.ibm.com>
6887 Implement target hook for loop unrolling
6888 * target.h (loop_unroll_adjust): Add a new target hook function.
6889 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
6890 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
6891 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
6892 (s390_loop_unroll_adjust): Implement the new target hook for s390.
6893 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
6895 (decide_unroll_stupid): Likewise.
6897 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6900 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
6902 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6904 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
6905 (Specific, *-*-solaris2*): Likewise.
6906 Don't prefer Sun as over GNU as.
6908 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
6910 * config/s390/s390.c (override_options): Adjust the z10 defaults
6911 for max-unroll-times, max-completely-peeled-insns
6912 and max-completely-peel-times.
6914 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6916 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
6917 instructions for z10.
6918 (s390_expand_setmem): Likewise.
6919 (s390_expand_cmpmem): Likewise.
6921 2010-04-08 Richard Guenther <rguenther@suse.de>
6923 PR tree-optimization/43679
6924 * tree-ssa-pre.c (eliminate): Only propagate copies.
6926 2010-04-08 Jakub Jelinek <jakub@redhat.com>
6929 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
6930 set but not used variable warning.
6932 2010-04-08 Wei Guozhi <carrot@google.com>
6935 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
6936 (arm_size_rtx_costs): Call the new function when optimized for size.
6938 2010-04-08 Jakub Jelinek <jakub@redhat.com>
6941 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
6942 op0 is not a MEM, just return NULL instead of assertion
6944 (discover_nonconstant_array_refs): Don't walk debug stmts.
6946 2010-04-08 Doug Kwan <dougkwan@google.com>
6948 * configure.ac: Recognize gold and do not use its version number
6949 to test ld features.
6950 * configure: Regenerate.
6952 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
6955 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
6956 (negate_value): Move code to push elements to broken_up_substracts ...
6957 (eliminate_plus_minus_pair): ... here. Push operands that have no
6958 negative pair to plus_negates.
6959 (repropagate_negates, init_reassoc, fini_reassoc): Update.
6961 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6963 * doc/install.texi (Configuration): Move description of
6964 --enable-lto, --with-libelf*, --enable-gold from Java section to
6967 * doc/generic.texi (Working with declarations)
6968 (Function Properties, C and C++ Trees): Fix typos.
6969 * doc/sourcebuild.texi (Top Level): Likewise.
6971 2010-04-07 Jakub Jelinek <jakub@redhat.com>
6974 * tree.h (DECL_READ_P): Define.
6975 (struct tree_decl_common): Add decl_read_flag.
6976 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
6977 a set but not used warning.
6978 (merge_decls): Merge DECL_READ_P flag.
6979 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
6980 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
6981 * c-common.c (handle_used_attribute, handle_unused_attribute):
6983 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
6985 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
6987 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
6988 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
6989 c_parser_binary_expression, c_parser_cast_expression,
6990 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
6991 Call default_function_array_read_conversion instead of
6992 default_function_array_conversion where needed.
6993 (c_parser_unary_expression, c_parser_conditional_expression,
6994 c_parser_postfix_expression_after_primary, c_parser_initelt):
6995 Likewise. Call mark_exp_read where needed.
6996 (c_parser_statement_after_labels, c_parser_asm_operands,
6997 c_parser_typeof_specifier, c_parser_sizeof_expression,
6998 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
7000 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
7002 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
7003 (warn_unused_but_set_parameter): Default to warn_unused
7005 * doc/invoke.texi: Document -Wunused-but-set-variable and
7006 -Wunused-but-set-parameter.
7008 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7009 used count variable.
7010 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7011 when operandN variables aren't used in the body of the expander
7013 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7014 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7015 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7016 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7017 FOR_EACH_IMM_USE_ON_STMT): Likewise.
7018 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7019 * tree.c (PROCESS_ARG): Likewise.
7021 2010-04-07 Simon Baldwin <simonb@google.com>
7023 * diagnostic.h (diagnostic_override_option_index): New macro to
7024 set a diagnostic's option_index.
7025 * c-tree.h (c_cpp_error): Add warning reason argument.
7026 * opts.c (_warning_as_error_callback): New.
7027 (register_warning_as_error_callback): Store callback for
7028 warnings enabled via enable_warning_as_error.
7029 (enable_warning_as_error): Call callback, minor code tidy.
7030 * opts.h (register_warning_as_error_callback): Declare.
7031 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7032 response to -Werror=.
7033 (c_common_init_options): Register warning_as_error_callback in opts.c.
7034 * common.opt: Add -Wno-cpp option.
7035 * c-common.c (struct reason_option_codes_t): Map cpp warning
7036 reason codes to gcc option indexes.
7037 * (c_option_controlling_cpp_error): New function, lookup the gcc
7038 option index for a cpp warning reason code.
7039 * (c_cpp_error): Add warning reason argument, call
7040 c_option_controlling_cpp_error for diagnostic_override_option_index.
7041 * doc/invoke.texi: Document -Wno-cpp.
7043 2010-04-07 Richard Guenther <rguenther@suse.de>
7045 * ipa-reference.c (mark_load): Use get_base_address.
7046 (mark_store): Likewise.
7048 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7049 inserting GIMPLE_NOPs into the IL.
7050 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7051 Explicitly strip handled components and indirect references.
7053 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7054 folding address expressions.
7055 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7056 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7057 operand_equal_p to compare decls.
7058 (ptr_deref_may_alias_decl_p): Likewise.
7059 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7060 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7061 Handle reversed comparison ops.
7062 * tree-sra.c (asm_visit_addr): Use get_base_address.
7063 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7064 * ipa-reference.c (mark_address): Use get_base_address.
7066 2010-04-07 Richard Guenther <rguenther@suse.de>
7068 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7069 Propagate constants everywhere.
7071 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7074 * tree.c (MAX_INT_CACHED_PREC): Define.
7075 (nonstandard_integer_type_cache): New array.
7076 (build_nonstandard_integer_type): Cache results for precision
7077 <= MAX_INT_CACHED_PREC.
7079 2010-04-07 Richard Guenther <rguenther@suse.de>
7081 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7082 -fargument-noalias-global, -fargument-noalias-anything): Remove.
7083 * common.opt: Likewise.
7084 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7085 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7086 (nonoverlapping_memrefs_p): Likewise.
7087 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7088 * opts.c (common_handle_option): Handle OPT_fargument_alias,
7089 OPT_fargument_noalias, OPT_fargument_noalias_anything and
7090 OPT_fargument_noalias_global for backward compatibility.
7092 2010-04-07 Richard Guenther <rguenther@suse.de>
7094 PR tree-optimization/43270
7095 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7096 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7097 * tree-ssa-pre.c (phi_translate_1): Adjust.
7098 (fully_constant_expression): Split out vn_reference handling to ...
7099 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7100 Fold reads from constant strings.
7101 (vn_reference_lookup): Handle fully constant references.
7102 (vn_reference_lookup_pieces): Likewise.
7103 * Makefile.in (expmed.o-warn): Add -Wno-error.
7105 2010-04-07 Martin Jambor <mjambor@suse.cz>
7107 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7109 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
7112 * gcc.c: Add -static-libstdc++ to list of recognized options.
7114 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7116 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7118 2010-04-07 Richard Guenther <rguenther@suse.de>
7121 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7122 bases build simple mem attributes to retain points-to information.
7124 2010-04-07 Richard Guenther <rguenther@suse.de>
7127 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7128 preserve points-to related information.
7130 2010-04-07 Richard Guenther <rguenther@suse.de>
7133 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7134 discard plain indirect references.
7135 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7136 * tree.c (tree_nop_conversion): Likewise.
7138 2010-04-07 Dodji Seketeli <dodji@redhat.com>
7141 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7143 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
7145 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7146 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7148 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7150 * tree-if-conv.c: Fix indentation and comments.
7152 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7154 * tree-if-conv.c: Sort static functions in topological order.
7156 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7158 * tree-if-conv.c: Fix indentation and comments.
7160 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7163 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7164 lang_hooks.types.type_for_size instead of
7165 build_nonstandard_integer_type.
7166 When converting an unsigned type to signed, double its precision.
7167 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7168 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7169 (graphite_create_new_loop_guard): When ub + 1 wraps around,
7172 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7175 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7176 POINTER_PLUS_EXPR for pointer types.
7178 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7181 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7182 * graphite-clast-to-gimple.c: Include langhooks.h.
7183 (max_signed_precision_type): New.
7184 (max_precision_type): Takes two types as arguments.
7185 (precision_for_value): New.
7186 (precision_for_interval): New.
7187 (gcc_type_for_interval): New.
7188 (gcc_type_for_value): New.
7189 (gcc_type_for_clast_term): New.
7190 (gcc_type_for_clast_red): New.
7191 (gcc_type_for_clast_bin): New.
7192 (gcc_type_for_clast_expr): Split up into several functions.
7193 (gcc_type_for_clast_eq): Rewritten.
7194 (compute_bounds_for_level): New.
7195 (compute_type_for_level_1): New.
7196 (compute_type_for_level): New.
7197 (gcc_type_for_cloog_iv): Removed.
7198 (gcc_type_for_iv_of_clast_loop): Rewritten.
7199 (graphite_create_new_loop): Compute the lower and upper bound types
7200 with gcc_type_for_clast_expr.
7201 (graphite_create_new_loop_guard): Same.
7202 (find_cloog_iv_in_expr): Removed.
7203 (compute_cloog_iv_types_1): Removed.
7204 (compute_cloog_iv_types): Removed.
7205 (gloog): Do not call compute_cloog_iv_types.
7206 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
7208 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
7209 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
7210 (GBB_CLOOG_IV_TYPES): Removed.
7212 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7214 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
7215 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
7216 (detect_commutative_reduction): Same.
7218 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7220 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
7221 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
7223 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7224 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7225 (rewrite_commutative_reductions_out_of_ssa): Same.
7226 * passes.c (execute_function_todo): Call verify_ssa for every pass
7227 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
7228 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7229 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7230 with an extra argument.
7231 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
7232 verify_ssa only when the extra argument is true.
7233 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7234 with an extra argument.
7235 (tree_transform_and_unroll_loop): Same.
7237 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7239 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7240 for all the passes of the LNO having LOOP_CLOSED_SSA.
7241 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7242 * tree-loop-distribution.c (pass_loop_distribution): Same.
7243 * tree-pass.h (TODO_verify_loops): Removed.
7244 * tree-ssa-loop.c (pass_tree_loop_init): Same.
7246 (pass_tree_unswitch): Same.
7247 (pass_predcom): Same.
7248 (pass_vectorize): Same.
7249 (pass_linear_transform): Same.
7250 (pass_graphite_transforms): Same.
7251 (pass_iv_canon): Same.
7252 (pass_complete_unroll): Same.
7253 (pass_complete_unrolli): Same.
7254 (pass_parallelize_loops): Same.
7255 (pass_loop_prefetch): Same.
7256 (pass_iv_optimize): Same.
7258 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
7261 * passes.c (init_optimization_passes): Move pass_lim before
7262 pass_copy_prop and pass_dce_loop.
7264 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7267 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7268 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7269 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7270 MULTI_* defines for 4 argument vpermil2p* builtins.
7272 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7274 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7275 * config/i386/i386.c (x86_maybe_negate_const_int): New.
7276 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7277 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7278 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7279 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7280 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7281 Use x86_maybe_negate_const_int to output insn mnemonic.
7282 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
7283 check from instruction predicate. Update comments.
7284 * config/i386/sync.md (sync_add<mode>): Use
7285 x86_maybe_negate_const_int to output insn mnemonic.
7287 2010-04-06 Jan Hubicka <jh@suse.cz>
7289 PR tree-optimization/42906
7290 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7291 IGNORE_SELF argument. Set visited_control_parents for fully
7293 (find_obviously_necessary_stmts): Update call of
7294 mark_control_dependent_edges_necessary.
7295 (propagate_necessity): Likewise. Handle PHI edges more curefully.
7297 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7299 * config/i386/i386.md: Remove comment about 'e' and 'E'
7302 2010-04-06 Richard Guenther <rguenther@suse.de>
7304 PR tree-optimization/43627
7305 * tree-vrp.c (extract_range_from_unary_expr): Widenings
7306 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7309 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7311 * BASE-VER: Change to 4.6.0.
7314 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7317 2010-04-06 Richard Guenther <rguenther@suse.de>
7320 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7322 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7324 * doc/invoke.texi (Optimize Options): Document that LTO
7325 won't remove object access purely due to incompatible
7328 2010-04-04 Matthias Klose <doko@ubuntu.com>
7330 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7331 Initialize variable.
7333 2010-04-03 Richard Guenther <rguenther@suse.de>
7336 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7337 require a non-NULL MEM_OFFSET.
7339 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
7341 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7342 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7343 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7344 config/alpha/predicates.md, config/arm/arm.md,
7345 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7346 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7347 config/darwin9.h, config/darwin.c, config/darwin.h,
7348 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7349 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7350 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7351 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7352 config/mips/mips.md, config/mn10300/mn10300.c,
7353 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7354 config/rs6000/aix.h, config/rs6000/dfp.md,
7355 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7356 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7357 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7358 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7359 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7360 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7361 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7362 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7363 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7364 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7365 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7366 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7367 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7368 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7369 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7370 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7371 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7372 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7373 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7374 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7375 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7376 opt-functions.awk, opth-gen.awk, params.def, passes.c,
7377 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7378 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7379 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7380 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7381 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7382 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7383 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7384 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7385 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7386 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7387 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7388 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7389 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7390 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7392 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7395 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7396 * aclocal.m4: Regenerate.
7398 2010-04-02 Richard Guenther <rguenther@suse.de>
7400 PR tree-optimization/43629
7401 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7402 if we have seen a constant value.
7404 2010-04-02 Joseph Myers <joseph@codesourcery.com>
7406 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7408 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
7411 * arm.c (legitimize_tls_address): Adjust call to
7412 gen_tls_load_dot_plus_four.
7413 (arm_note_pic_base): New function.
7414 (arm_cannot_copy_insn_p): Use it.
7415 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7418 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7423 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7425 * Makefile.in ($(out_object_file)): Depend on
7426 gt-$(basename $(notdir $(out_file))).h.
7428 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
7430 * config.gcc (lm32-*-rtems*): Add t-lm32.
7432 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
7434 * config.gcc: Add lm32-*-rtems*.
7435 * config/lm32/rtems.h: New file.
7437 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
7440 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7442 2010-04-01 Jakub Jelinek <jakub@redhat.com>
7444 * dwarf2out.c (output_compilation_unit_header): For
7445 -gdwarf-4 use version 4 instead of version 3.
7446 (output_line_info): For version 4 and above emit additional
7447 maximum ops per insn header field.
7448 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
7450 * dwarf2out.c (is_c_family, is_java): Remove.
7451 (lower_bound_default): New function.
7452 (add_bound_info, gen_descr_array_type_die): Use it.
7454 2010-04-01 Dodji Seketeli <dodji@redhat.com>
7457 * dwarf2out.c (gen_variable_die): Allow debug info for variable
7458 re-declaration when it happens in a function.
7460 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
7462 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
7463 (cgraph_remove_function_insertion_hook): Same.
7464 (cgraph_call_function_insertion_hooks): Same.
7466 2010-04-01 Richard Guenther <rguenther@suse.de>
7469 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
7470 and TREE_THIS_VOLATILE.
7471 (copy_ref_info): Likewise.
7472 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
7473 * tree.c (build6_stat): Ignore side-effects of all but arg5
7474 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
7477 2010-04-01 Richard Guenther <rguenther@suse.de>
7479 PR tree-optimization/43607
7480 * ipa-type-escape.c (check_call): Do not access non-existing
7483 2010-04-01 Richard Guenther <rguenther@suse.de>
7487 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7488 Jack Howarth <howarth@bromo.med.uc.edu>
7490 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7493 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7495 * doc/install.texi (Prerequisites): Document libelf usability on
7496 IRIX 5/6 and Solaris 2.
7497 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
7498 Update GNU as, GNU ld requirements.
7499 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
7500 Document Sun Studio compiler download.
7501 Update and simplify as, ld recommendations.
7502 (Specific, *-*-solaris2.7): Note obsoletion, removal.
7504 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7506 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
7507 with_tune_32 to pentium4.
7509 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
7511 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
7513 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7515 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
7516 obsoletion, removal.
7518 Document GNU as requirement.
7519 Update configure requirements.
7520 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
7521 Recomment IRIX 6.5.18+.
7522 Document IDF/IDL requirement.
7523 Document GNU as requirement.
7524 Document GNU ld bootstrap failure.
7525 Remove freeware.sgi.com reference.
7527 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7529 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
7530 UNIX V4.0, V5.0 obsoletion, removal.
7531 Remove --with-gc=simple reference.
7532 Update VM requirements during bootstrap.
7533 Remove -oldas bootstrap description.
7534 Update binutils reference.
7535 Remove comparison failure note.
7537 2010-03-31 Richard Guenther <rguenther@suse.de>
7538 Zdenek Dvorak <ook@ucw.cz>
7539 Sebastian Pop <sebastian.pop@amd.com>
7542 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
7543 with multiple arguments.
7544 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
7546 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7548 * graphite-dependences.c (print_pddr): Call print_pdr with an
7550 * graphite-poly.c (debug_pdr): Add an extra argument for the
7553 (print_pbb_domain): Same.
7555 (print_scop_context): Same.
7557 (print_cloog): Same.
7558 (debug_pbb_domain): Same.
7562 (debug_scop_context): Same.
7564 (debug_cloog): Same.
7565 (print_scop_params): Same.
7566 (debug_scop_params): Same.
7567 (print_iteration_domain): Same.
7568 (print_iteration_domains): Same.
7569 (debug_iteration_domain): Same.
7570 (debug_iteration_domains): Same.
7571 (print_scattering_function): Same.
7572 (print_scattering_functions): Same.
7573 (debug_scattering_function): Same.
7574 (debug_scattering_functions): Same.
7575 * graphite-poly.h (debug_pdr): Update declaration.
7577 (print_pbb_domain): Same.
7579 (print_scop_context): Same.
7581 (print_cloog): Same.
7582 (debug_pbb_domain): Same.
7586 (debug_scop_context): Same.
7588 (debug_cloog): Same.
7589 (print_scop_params): Same.
7590 (debug_scop_params): Same.
7591 (print_iteration_domain): Same.
7592 (print_iteration_domains): Same.
7593 (debug_iteration_domain): Same.
7594 (debug_iteration_domains): Same.
7595 (print_scattering_function): Same.
7596 (print_scattering_functions): Same.
7597 (debug_scattering_function): Same.
7598 (debug_scattering_functions): Same.
7600 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7602 * graphite-poly.c (print_scattering_function_1): New.
7603 (print_scattering_function): Call it.
7604 (print_scop_params): Remove spaces at the end of lines.
7607 * graphite-poly.h (print_cloog): Declared.
7608 (debug_cloog): Declared.
7610 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7612 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
7614 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
7615 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
7616 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
7617 to switch between adding the IV bump in loop->latch or in loop->header.
7619 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
7621 * graphite-poly.c (print_scattering_function): Pretty print following
7624 (print_pbb_domain): Same.
7625 (dump_gbb_cases): Same.
7626 (dump_gbb_conditions): Same.
7629 (print_scop_params): Same.
7630 (print_scop_context): Same.
7632 (print_pbb_body): New.
7633 (lst_indent_to): New.
7634 (print_lst): Start new lines with a #.
7635 * graphite-poly.h (pbb_bb): New.
7636 (pbb_index): Use pbb_bb.
7637 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
7639 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
7641 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7643 * dwarf2out.c (size_of_die): For -gdwarf-4 use
7644 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
7645 and 0 instead of 1 for dw_val_class_flag.
7646 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
7647 dw_val_class_range_list, dw_val_class_loc_list,
7648 dw_val_class_lineptr and dw_val_class_macptr, use
7649 DW_FORM_flag_present for dw_val_class_flag and
7650 DW_FORM_exprloc for dw_val_class_loc.
7651 (output_die): For -gdwarf-4 print dw_val_class_loc
7652 size as uleb128 instead of 1 or 2 bytes and don't print
7653 anything for dw_val_class_flag.
7655 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
7656 instead of cselib_lookup following by tweaking locs->setting_insn.
7659 * cselib.c (cselib_process_insn): Clear cselib_current_insn
7660 even before returning from label, setjmp call or volatile asm
7663 2010-03-31 Richard Guenther <rguenther@suse.de>
7666 * cgraphunit.c (cgraph_output_in_order): Do not allocate
7667 temporary data on stack.
7669 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7671 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
7672 (PUSHSECTION_ASM_OP): Remove.
7673 (POPSECTION_ASM_OP): Remove.
7674 (PUSHSECTION_FORMAT): Remove.
7675 * config/sol2.h (PUSHSECTION_FORMAT): Define.
7676 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
7677 * config/sol2.c (solaris_output_init_fini): Use it.
7679 2010-03-31 Jie Zhang <jie@codesourcery.com>
7682 * opt-functions.awk (var_type_struct): Use signed char type
7683 for simple variables.
7685 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7687 * config/sol2.c: Include output.h.
7688 (solaris_assemble_visibility): New function.
7689 * config/t-sol2 (sol2.o): Add output.h dependency.
7690 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
7691 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
7694 2010-03-31 Jakub Jelinek <jakub@redhat.com>
7697 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
7698 V2SImode or XFmode on PRE_DEC.
7701 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
7704 2010-03-31 Jie Zhang <jie@codesourcery.com>
7707 * reload.h (caller_save_initialized_p): Declare.
7708 * toplev.c (backend_init_target): Don't call
7709 init_caller_save but set caller_save_initialized_p to false.
7710 * caller-save.c (caller_save_initialized_p): Define.
7711 (init_caller_save): Check caller_save_initialized_p.
7712 * ira.c (ira): Call init_caller_save if flag_caller_saves.
7714 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7717 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
7718 and soft-fp/t-softfp to tmake_file.
7719 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
7720 (LIBGCC2_TF_CEXT): Define.
7723 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
7726 * cselib.c (n_useless_values): Document handling of debug locs.
7727 (n_useless_debug_values, n_debug_values): New variables.
7728 (new_elt_loc_list): Don't add to debug values, keep count.
7729 (promote_debug_loc): New.
7730 (cselib_reset_table): Zero new variables.
7731 (entry_and_rtx_equal_p): Promote debug locs.
7732 (discard_useless_locs): Increment n_useless_debug_values for
7734 (remove_useless_values): Adjust n_useless_values and n_debug_values
7735 with n_useless_debug_values.
7736 (add_mem_for_addr): Promote debug locs.
7737 (cselib_lookup_mem): Likewise.
7738 (cselib_lookup_addr): Renamed to...
7739 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
7740 (cselib_log_lookup): ... this. Turn into...
7741 (cselib_lookup_addr): ... new wrapper.
7742 (cselib_lookup_from_insn): New.
7743 (cselib_invalidate_regno): Increment n_useless_debug_values for
7745 (cselib_invalidate_mem): Likewise.
7746 (cselib_process_insn): Take n_deleted and n_debug_values into
7747 account to guard remove_useless_value call.
7748 (cselib_finish): Zero n_useless_debug_values.
7749 * cselib.h (cselib_lookup_from_insn): Declare.
7750 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
7751 (sched_analyze_2): Likewise.
7753 2010-03-30 Jakub Jelinek <jakub@redhat.com>
7755 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
7757 (adjust_mems): Replace narrowing SUBREG of expression containing
7758 just PLUS, MINUS, MULT and ASHIFT of registers and constants
7759 with operations in the narrower mode.
7762 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
7763 regs_invalidated_by_call instead all call_used_reg_set registers.
7765 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
7768 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
7769 pointer comparisons with types_compatible_p.
7770 * tree-vect-stmts.c (vectorizable_call): Same.
7771 (vectorizable_condition): Same.
7773 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7775 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
7776 stack check if the mask would be zero.
7778 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
7779 Jack Howarth <howarth@bromo.med.uc.edu>
7781 * tree-profile.c (tree_init_ic_make_global_vars): Make static
7784 2010-03-30 Joseph Myers <joseph@codesourcery.com>
7787 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
7789 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
7790 Include ___unordxf2 and ___unordtf2.
7791 * config/i386/libgcc-glibc.ver: Do not define inheritance from
7794 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
7796 * config/lm32/t-lm32: New file.
7797 * config.gcc: Use the above file when targetting lm32.
7799 2010-03-28 Duncan Sands <baldrick@free.fr>
7801 * Makefile.in (PLUGIN_HEADERS): Add except.h.
7803 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
7806 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
7807 Improve vectorization cost model diagnostic.
7809 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
7812 * tree-vect-data-refs.c (vect_analyze_data_refs): When
7813 compute_data_dependences_for_loop returns false, early exit
7814 and output an extra diagnostic for the failed data reference
7817 2010-03-29 Richard Guenther <rguenther@suse.de>
7819 PR tree-optimization/43560
7820 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
7821 (can_sm_ref_p): Treat stores to readonly locations as trapping.
7823 2010-03-29 Jie Zhang <jie@codesourcery.com>
7826 * toplev.c (process_options): Set optimization_default_node
7827 and optimization_current_node.
7828 * opts.c (decode_options): Don't set optimization_default_node
7829 and optimization_current_node.
7831 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
7833 * config/rtems.h: Abandon -qrtems_debug.
7835 2010-03-28 Jan Hubicka <jh@suse.cz>
7837 PR tree-optimization/43505
7838 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
7839 map should not be copied.
7841 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7844 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
7845 cdtors, set DECL_PRESERVE_P.
7846 * ipa.c (cgraph_externally_visible_p): Return true if declaration
7849 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
7851 PR tree-optimization/43528
7852 * stor-layout.c (place_field): Check that constant fits into
7853 unsigned HWI when skipping calculation of MS bitfield layout.
7855 2010-03-27 Jan Hubicka <jh@suse.cz>
7858 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
7859 notice_global_symbol work.
7861 2010-03-27 Jakub Jelinek <jakub@redhat.com>
7863 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
7864 instead of dwarf2out_decl.
7865 (struct var_loc_node): Remove section_label field.
7866 (dwarf2out_function_decl): New function.
7867 (dwarf2out_var_location): Don't set section_label field.
7868 (dwarf2out_begin_function): Don't empty decl_loc_table here.
7870 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7872 PR tree-optimization/43544
7873 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
7874 First argument for builtin vectorized function hook is now a
7875 tree to be able to distinguish between machine specific and
7877 * targhooks.c (default_builtin_vectorized_function): Ditto.
7878 * targhooks.h (default_builtin_vectorized_function): Ditto.
7879 * target.h (struct gcc_target): Ditto.
7880 * tree-vect-stmts.c (vectorizable_function): Ditto.
7881 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
7882 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7885 2010-03-26 Joseph Myers <joseph@codesourcery.com>
7888 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
7889 nested binding iff it is a FUNCTION_DECL.
7890 (store_parm_decls_newstyle): Pass nested=true to bind for
7891 FUNCTION_DECLs amongst parameters.
7893 2010-03-26 Jakub Jelinek <jakub@redhat.com>
7895 * var-tracking.c (vt_expand_loc_callback): Don't run
7896 cselib_expand_value_rtx_cb in dummy mode if
7897 cselib_dummy_expand_value_rtx_cb returned false.
7899 * var-tracking.c (emit_note_insn_var_location): For one part
7900 notes with offset 0, don't add EXPR_LIST around the location.
7901 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
7902 add_location_or_const_value_attribute): Adjust for that change.
7905 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
7906 into first operand and location into second.
7907 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
7908 dw_cfi_oprnd_loc for DW_CFA_expression.
7909 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
7910 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
7911 assume first argument is regnum and second argument is location.
7913 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
7916 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
7917 of scratch register to DImode. Split to DImode comparison operator.
7918 Use SImode subreg of scratch register in the multiplication.
7919 (*cmp_sadd_sidi): Ditto.
7920 (*cmp_ssub_si): Ditto.
7921 (*cmp_ssub_sidi): Ditto.
7923 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
7926 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
7927 Remove invalid assert and wrong comment.
7929 2010-03-26 Jakub Jelinek <jakub@redhat.com>
7932 * flags.h (final_insns_dump_p): New extern.
7933 * final.c (final_insns_dump_p): New variable.
7934 (rest_of_clean_state): Set it before -fdump-final-insns=
7935 dumping, clear afterwards.
7936 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
7937 MEM_ALIAS_SET on MEMs.
7939 2010-03-26 David S. Miller <davem@davemloft.net>
7941 * configure.ac: Fix sparc GOTDATA_OP bug check.
7942 * configure: Rebuild.
7944 2010-03-26 Alan Modra <amodra@gmail.com>
7946 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
7948 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7950 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
7951 TLS_SECTION_ASM_FLAG.
7953 2010-03-25 Jakub Jelinek <jakub@redhat.com>
7956 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
7957 Clear first_function_block_is_cold.
7960 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
7961 argument if the argument is truth_value_p.
7963 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7965 * config/rs6000/constraints.md: Update copyright year for my changes.
7968 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
7969 used in reg+reg addressing, swap registers.
7971 2010-03-24 Jakub Jelinek <jakub@redhat.com>
7974 * target.h (struct gcc_target): Add code_end hook.
7975 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
7977 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
7978 * toplev.c (compile_file): Call targetm.asm_out.code_end
7979 hook before unwind info/debug info output.
7980 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
7981 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
7982 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7983 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
7984 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
7985 * config/i386/i386.c (ix86_file_end): Renamed to...
7986 (ix86_code_end): ... this. Make static. Don't call
7987 file_end_indicate_exec_stack. Emit unwind info using
7988 final_start_function/final_end_function.
7989 (darwin_x86_file_end): Remove.
7990 (TARGET_ASM_CODE_END): Define.
7991 * config/i386/i386.h (TARGET_ASM_FILE_END,
7992 NEED_INDICATE_EXEC_STACK): Don't define.
7993 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
7994 (TARGET_ASM_FILE_END): Define to darwin_file_end.
7995 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
7996 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
7999 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
8000 at the beginning and final_end_function at the end.
8001 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8003 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8005 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8006 and Sun as TLS syntax.
8007 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8008 * configure: Regenerate.
8009 * config.in: Regenerate.
8010 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8011 (default_elf_asm_named_section): Use it.
8012 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8013 (i386_output_dwarf_dtprel): Likewise.
8014 (output_addr_const_extra): Likewise.
8015 (output_pic_addr_const): Lowercase @GOTTPOFF.
8016 (output_addr_const_extra): Likewise.
8017 (output_pic_addr_const): Lowercase @GOTNTPOFF.
8018 (output_addr_const_extra): Likewise.
8019 (output_pic_addr_const): Lowercase @INDNTPOFF.
8020 (output_addr_const_extra): Likewise.
8021 (output_pic_addr_const): Lowercase @NTPOFF.
8022 (output_addr_const_extra): Likewise.
8023 (output_pic_addr_const): Lowercase @TPOFF.
8024 (output_addr_const_extra): Likewise.
8025 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8026 (*tls_global_dynamic_64): Likewise.
8027 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8028 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8030 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8031 (ASM_OUTPUT_TLS_COMMON): Use it.
8032 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8035 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8036 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8037 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8038 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8039 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8040 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8042 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8044 * config/i386/i386.c (override_options): Don't accept
8045 -mtls-dialect=sun any longer.
8046 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8047 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8048 (*tls_local_dynamic_base_32_sun): Likewise.
8049 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8051 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8054 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8055 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8058 * ira.c (adjust_cleared_regs): New function.
8059 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8063 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8065 * expr.c (expand_expr_real): Restore previous
8066 curr_insn_source_location and curr_insn_block after
8067 expand_expr_real_1 call.
8068 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8069 instead of expand_expr_real_1.
8071 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
8073 PR rtl-optimization/43413
8074 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8077 2010-03-22 James E. Wilson <wilson@codesourcery.com>
8080 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8081 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8083 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
8085 * config/i386/i386.c (ix86_target_string): Add -mfma.
8086 Fix a typo in comment.
8088 2010-03-22 Mike Stump <mikestump@comcast.net>
8091 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8092 Don't overly align based upon packed packed fields.
8094 2010-03-22 Jason Merrill <jason@redhat.com>
8096 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8097 Use () rather than [], and move before the element type.
8099 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8101 * doc/configfiles.texi (Configuration Files): Removed
8102 fixinc/Makefile*, intl/Makefile.*.
8103 * doc/makefile.texi: Fixed markup. Abstract from version
8104 control system used.
8105 (Makefile): Removed obsolete gcc/java/parse.y example.
8106 * doc/sourcebuild.texi: Likewise.
8107 (Top Level): Added config, gnattools, libdecnumber, libgcc,
8108 libgomp, libssp. Removed fastjar.
8109 (Miscellaneous Docs): Clarify location.
8110 Added COPYING3, COPYING3.LIB.
8111 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8113 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8116 * config/i386/i386.c (x86_function_profiler)
8117 [!NO_PROFILE_COUNTERS]: Fix typo.
8118 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8121 2010-03-22 Janis Johnson <janis187@us.ibm.com>
8122 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8124 * doc/sourcebuild.texi (Test Directives): Split into six
8125 subsections, with most of the current text in new subsections
8126 Directives, Selectors, and Final Actions.
8127 (Directives): Split list of test directives into multiple
8129 (Selectors): Describe use and syntax of selectors.
8130 (Effective-Target Keywords): Describe all existing keywords.
8131 (Add Options): Describe features for dg-add-options.
8132 (Require Support): Describe variants of dg-require-support.
8133 (Final Actions): Describe commands to use in dg-final.
8135 2010-03-22 Michael Matz <matz@suse.de>
8138 * recog.c (validate_replace_rtx_group): Replace also in
8139 REG_EQUAL and REG_EQUIV notes.
8141 2010-03-22 Richard Guenther <rguenther@suse.de>
8143 PR tree-optimization/43390
8144 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8145 sure vector extracts are type correct.
8147 2010-03-22 Richard Guenther <rguenther@suse.de>
8150 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8151 x * sqrt (x) even when optimizing for size if the target
8152 has native support for sqrt.
8154 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8156 * varasm.c (make_decl_rtl_for_debug): Also clear
8157 flag_mudflap for the duration of make_decl_rtl call.
8160 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8161 locs from preserved VALUEs.
8163 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8166 * pa.md (movmemsi): Set align to one if zero.
8167 (movmemdi): Likewise.
8169 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
8172 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8173 with their corresponding prologue pushes.
8175 2010-03-20 Andrew Pinski <pinskia@gmail.com>
8178 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8179 at the begining or end.
8180 (spu_expand_epilogue): Likewise.
8182 2010-03-20 Richard Guenther <rguenther@suse.de>
8184 PR rtl-optimization/43438
8185 * combine.c (make_extraction): Properly zero-/sign-extend an
8186 extraction of the low part of a CONST_INT. Also handle
8189 2010-03-19 Mike Stump <mikestump@comcast.net>
8191 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8192 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
8193 (override_options): Use SUBTARGET32_DEFAULT_CPU.
8195 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
8198 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
8201 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
8203 PR rtl-optimization/42258
8204 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
8205 use that may match DEF.
8208 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
8209 the cost of loading the constant rather than assuming
8211 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
8212 outer code is AND, do the same tests as the andsi3 expander and
8213 return COSTS_N_INSNS (1) if and is cheap.
8215 * optabs.c (avoid_expensive_constant): Fix formatting.
8217 2010-03-19 Michael Matz <matz@suse.de>
8220 * attribs.c (decl_attributes): When rebuilding a function pointer
8221 type use the same qualifiers as the original pointer type.
8223 2010-03-19 Martin Jambor <mjambor@suse.cz>
8225 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8226 and is_gimple_ip_invariant_address.
8228 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8231 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8233 * config/arm/arm.c (arm_override_options): Turn off
8234 flag_dwarf2_cfi_asm for AAPCS variants.
8236 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8239 * config/arm/arm.c (emit_multi_reg_push): Update comments.
8240 Use PRE_MODIFY instead of PRE_DEC.
8241 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8242 (vfp_emit_fstmd): Likewise.
8244 2010-03-19 Michael Matz <matz@suse.de>
8247 * builtins.c (expand_builtin_interclass_mathfn,
8248 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8251 2010-03-19 Richard Guenther <rguenther@suse.de>
8253 PR tree-optimization/43415
8254 * tree-ssa-pre.c (phi_translate): Split out worker to ...
8255 (phi_translate_1): ... this.
8256 (phi_translate): Move all caching here. Cache all NARY
8257 and REFERENCE translations.
8259 2010-03-19 David S. Miller <davem@davemloft.net>
8261 With help from Eric Botcazou.
8262 * config/sparc/sparc.c: Include dwarf2out.h.
8263 (emit_pic_helper): Delete.
8264 (pic_helper_symbol_name): Delete.
8265 (pic_helper_emitted_p): Delete.
8266 (pic_helper_needed): New.
8267 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8268 (get_pc_thunk_name): New.
8269 (load_pic_register): Remove 'delay_pic_helper' arg. Use
8270 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8271 Set pic_helper_needed to true. Don't call emit_pic_helper.
8272 (sparc_expand_prologue): Update load_pic_register call.
8273 (sparc_output_mi_thunk): Likewise.
8274 (sparc_file_end): Emit a hidden comdat symbol for the PIC
8275 thunk if possible. Output CFI information as needed.
8277 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8278 Jack Howarth <howarth@bromo.med.uc.edu>
8281 * config/i386/i386.h: Fix ABI on darwin x86-32.
8283 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
8285 * tree.h: Declare make_decl_rtl_for_debug.
8286 * varasm.c (make_decl_rtl_for_debug): New.
8287 * dwarf2out.c (rtl_for_decl_location): Call it.
8288 * cfgexpand.c (expand_debug_expr): Call it.
8290 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8293 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8297 * var-tracking.c (vt_init_cfa_base): Do nothing if
8298 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8300 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
8303 * var-tracking.c (canonicalize_vars_star): New.
8304 (dataflow_post_merge_adjust): Use it.
8306 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8309 * var-tracking.c (non_suitable_const): New function.
8310 (add_uses): For DEBUG_INSNs with constants, don't record any
8311 value, instead just the constant value itself.
8312 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8313 is not VAR_LOC_UNKNOWN_P, set var to the constant.
8314 (emit_notes_in_bb): Likewise.
8315 (emit_note_insn_var_location): For onepart variables if
8316 cur_loc is a VOIDmode constant, use DECL_MODE.
8318 2010-03-18 Martin Jambor <mjambor@suse.cz>
8321 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8322 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8323 all non-clones. Moved call redirection...
8324 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8325 (cgraph_materialize_all_clones): Dispose of all
8326 combined_args_to_skip bitmaps.
8327 (verify_cgraph_node): Do not check for edges pointing to wrong
8328 nodes in inline clones.
8329 * tree-inline.c (copy_bb): Call
8330 cgraph_redirect_edge_call_stmt_to_callee.
8331 * ipa.c (cgraph_remove_unreachable_nodes): Call
8332 cgraph_node_remove_callees even when there are used clones.
8334 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8336 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8338 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8341 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8344 2010-03-18 Michael Matz <matz@suse.de>
8347 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8348 into sqrt(x) if we need to preserve signed zeros.
8350 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
8351 Eric Botcazou <ebotcazou@adacore.com>
8353 PR rtl-optimization/43360
8354 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8355 note if we don't know its invariant status.
8357 2010-03-18 Michael Matz <matz@suse.de>
8359 PR tree-optimization/43402
8360 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8361 PHI chains of ssa names registered for update.
8363 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
8366 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8367 non-offsettable and pre_modify update addressing.
8368 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8369 and "2" alternatives "#".
8370 (*movdd_softfloat32): Make all alternatives "#";
8371 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8372 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8373 (*movdf_softfloat32): Make all alternatives "#";
8374 (movdi): Use the new DIFD mode iterator to create a common splitter
8375 for movdi, movdf and movdd patterns.
8377 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
8379 * common.opt (dumpdir): Remove redundant tab.
8381 2010-03-17 Martin Jambor <mjambor@suse.cz>
8383 PR tree-optimization/43347
8384 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8385 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8387 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
8389 PR rtl-optimization/42216
8390 * regrename.c (create_new_chain): New function, broken out from...
8391 (scan_rtx_reg): ... here. Call it. Handle the case where we are
8392 appending a use to an empty chain.
8393 (build_def_use): Remove previous changes that convert OP_INOUT to
8394 OP_OUT operands; instead detect the case where an OP_INOUT operand
8395 uses a previously untracked register and create an empty chain for it.
8397 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8399 * doc/extend.texi (Function Attributes): Rewrite unfinished
8400 sentence in ms_abi documentation.
8402 2010-03-17 Alan Modra <amodra@gmail.com>
8404 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8405 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8406 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8407 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8409 2010-03-16 Richard Henderson <rth@redhat.com>
8412 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8413 (lower_try_finally): Save and restore eh_seq around the expansion
8416 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8418 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8419 statements before splitting block.
8421 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8423 * doc/sourcebuild.texi (Testsuites): Fix markup.
8424 Use pathnames relative to gcc/testsuite.
8425 (Test Directives): Move description of how timeout is determined.
8426 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8427 (C Tests): Correct gcc.misc-tests directory.
8428 Framework tests now live in gcc.test-framework.
8430 2010-03-16 Richard Guenther <rguenther@suse.de>
8433 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8434 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8436 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
8437 Alexandre Oliva <aoliva@redhat.com>
8439 PR tree-optimization/42917
8440 * lambda-code.c (remove_iv): Skip debug statements.
8441 (lambda_loopnest_to_gcc_loopnest): Likewise.
8442 (not_interesting_stmt): Debug statements are not interesting.
8444 2010-03-16 Jakub Jelinek <jakub@redhat.com>
8448 * cselib.c (cselib_preserve_constants,
8449 cfa_base_preserved_val): New static variables.
8450 (preserve_only_constants): New function.
8451 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
8452 clear its REG_VALUES. If cselib_preserve_constants, don't
8453 empty the whole hash table, but preserve there VALUEs with constants,
8454 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
8455 (cselib_preserve_cfa_base_value): New function.
8456 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
8457 (cselib_init): Change argument to int bitfield. Set
8458 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
8460 (cselib_finish): Clear cselib_preserve_constants and
8461 cfa_base_preserved_val.
8462 * cselib.h (enum cselib_record_what): New enum.
8463 (cselib_init): Change argument to int.
8464 (cselib_preserve_cfa_base_value): New prototype.
8465 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
8466 * dse.c (dse_step1): Likewise.
8467 * cfgcleanup.c (thread_jump): Likewise.
8468 * sched-deps.c (sched_analyze): Likewise.
8469 * gcse.c (local_cprop_pass): Likewise.
8470 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
8471 If FN is non-NULL, call the callback always and whenever it returns
8472 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
8473 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
8474 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
8475 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
8476 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
8477 * var-tracking.c: Include recog.h.
8478 (bb_stack_adjust_offset): Remove.
8479 (vt_stack_adjustments): Don't call it, instead just gather the
8480 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
8481 (adjust_stack_reference): Remove.
8482 (compute_cfa_pointer): New function.
8483 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
8484 (struct adjust_mem_data): New type.
8485 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
8487 (get_address_mode): New function.
8488 (replace_expr_with_values): Use it.
8489 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
8490 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
8491 (adjust_sets): Remove.
8492 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
8493 Use get_address_mode.
8494 (get_adjusted_src): Remove.
8495 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
8496 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
8497 (add_with_sets): Don't call adjust_sets.
8498 (fp_setter, vt_init_cfa_base): New functions.
8499 (vt_initialize): Change return type to bool. Move most of pool etc.
8500 initialization to the beginning of the function from end. Pass
8501 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
8502 If !frame_pointer_needed, call vt_stack_adjustment before mos
8503 vector is filled, call vt_init_cfa_base if argp/framep has been
8504 eliminated to sp. If frame_pointer_needed and argp/framep has
8505 been eliminated to hard frame pointer, set
8506 hard_frame_pointer_adjustment and call vt_init_cfa_base after
8507 encountering fp setter in the prologue. For MO_ADJUST, call
8508 log_op_type before pusing the op into mos vector, not afterwards.
8509 Call adjust_insn before cselib_process_insn/add_with_sets,
8510 call cancel_changes (0) afterwards.
8511 (variable_tracking_main_1): Adjust for vt_initialize calling
8512 vt_stack_adjustments and returning whether it succeeded or not.
8514 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
8516 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
8519 2010-03-15 Jakub Jelinek <jakub@redhat.com>
8521 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
8523 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
8524 drap_reg has not been set.
8526 2010-03-15 Michael Matz <matz@suse.de>
8529 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
8530 use it to expand block copies.
8531 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
8532 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
8533 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
8535 2010-03-15 Richard Guenther <rguenther@suse.de>
8537 PR tree-optimization/43367
8538 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
8541 2010-03-15 Richard Guenther <rguenther@suse.de>
8543 PR tree-optimization/43317
8544 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
8546 2010-03-15 Martin Jambor <mjambor@suse.cz>
8548 PR tree-optimization/43141
8549 * tree-sra.c (create_abstract_origin): New function.
8550 (modify_function): Call create_abstract_origin.
8552 2010-03-15 Chris Demetriou <cgd@google.com>
8554 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
8557 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8560 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
8561 call insert_out_of_ssa_copy for default definitions.
8563 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8565 * graphite-clast-to-gimple.c (my_long_long): Defined.
8566 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
8567 * graphite-sese-to-poly.c (my_long_long): Defined.
8568 (scop_ivs_can_be_represented): Use it.
8570 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8572 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
8573 graphite-max-bbs-per-function, and loop-block-tile-size.
8574 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
8576 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
8578 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8580 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
8581 forward declaration.
8582 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
8583 (add_upper_bounds_from_estimated_nit): New.
8584 (build_loop_iteration_domains): Use it.
8586 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8588 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
8590 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8593 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
8594 should be an INTEGER_CST. Also handle CASE_CONVERT.
8596 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8598 * graphite.c (graphite_initialize): To bound the number of bbs per
8599 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
8600 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
8601 * doc/invoke.texi: Document it.
8603 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8605 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
8606 * graphite-sese-to-poly.h (build_poly_scop): Same.
8608 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
8610 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
8611 the number of parameters in the scop. Use as an upper bound
8612 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
8613 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
8614 * doc/invoke.texi: Document it.
8616 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
8618 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
8619 * doc/c-tree.texi: Remove.
8620 * doc/generic.texi: Merge c-tree.texi here.
8621 * doc/gccint.texi (Trees): Remove menu entry.
8622 (c-tree.texi): Remove @include.
8623 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
8624 * doc/languages.texi (Reading RTL): Ditto.
8626 2010-03-12 Steve Ellcey <sje@cup.hp.com>
8629 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
8631 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8634 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
8635 code added to work around reload clobbering CONST insns.
8637 2010-03-12 Jakub Jelinek <jakub@redhat.com>
8639 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
8640 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
8641 (cselib_preserve_only_values): Remove retain argument, don't
8642 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
8643 * cselib.h (cselib_preserve_only_values): Remove retain argument.
8644 * var-tracking.c (micro_operation): Move insn field before union.
8645 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
8646 (struct variable_tracking_info_def): Remove n_mos field, change
8647 mos into a vector of micro_operations.
8648 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
8649 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
8650 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
8651 changing into a vector.
8652 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
8653 come before all other uops generated by add_stores.
8654 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
8656 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
8657 a vector. Run just one pass over the bbs instead of separate counting
8658 and computation phase.
8659 (vt_finalize): Free VTI (bb)->mos vector instead of array.
8662 * tree-inline.c (remap_decls): Put old_var rather than origin_var
8663 into *nonlocalized_list vector.
8664 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
8665 even if origin is non-NULL.
8666 (gen_variable_die): Likewise.
8667 (process_scope_var): Don't change origin.
8668 (gen_decl_die): Likewise.
8669 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
8670 before adding new edges instead of after it, fix moving over
8673 2010-03-11 David S. Miller <davem@davemloft.net>
8675 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
8677 * configure: Rebuild.
8679 2010-03-11 Martin Jambor <mjambor@suse.cz>
8681 PR tree-optimization/43257
8682 * tree.c (assign_assembler_name_if_neeeded): New function.
8683 (free_lang_data_in_cgraph): Assembler name assignment moved to the
8685 * tree.h (assign_assembler_name_if_neeeded): Declare.
8686 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
8687 the function if needed.
8689 2010-03-11 Chris Demetriou <cgd@google.com>
8691 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
8692 include/stdint-gcc.h, and include/stdint.h world-readable.
8694 2010-03-11 Richard Guenther <rguenther@suse.de>
8696 PR tree-optimization/43255
8697 * tree-vrp.c (process_assert_insertions_for): Do not insert
8698 asserts for trivial conditions.
8700 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8702 PR tree-optimization/43280
8703 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
8704 generation. Move calculation of size out of the if branch.
8705 (find_bswap): Modify compare number generation.
8707 2010-03-11 Richard Guenther <rguenther@suse.de>
8710 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
8711 (input_gimple_stmt): Fixup handled component types during
8712 operand read. Also fix up decls in ADDR_EXPRs.
8714 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
8716 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
8717 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
8719 2010-03-10 Jan Hubicka <jh@suse.cz>
8722 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
8723 * varasm.c (get_variable_section): Don't do that here...
8724 (make_decl_rtl): ... and here.
8725 (do_assemble_alias): Produce decl RTL.
8726 (assemble_alias): Likewise.
8728 2010-03-10 Jakub Jelinek <jakub@redhat.com>
8731 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
8732 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
8734 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
8735 (based_loc_descr): Only express drap or vdrap regno based expressions
8736 using DW_OP_fbreg when not optimizing.
8737 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
8738 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
8739 REG_CFA_SET_VDRAP note.
8741 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
8743 PR tree-optimization/43236
8744 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
8745 error in calculation of base address in reverse iteration case.
8746 (generate_builtin): Take number of latch executions if the statement
8749 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
8752 * tree-eh.c: Include pointer-set.h.
8753 (lower_eh_dispatch): Filter out duplicate case labels and
8754 remove the unneeded edge when the label is unused. Return
8755 true when some edges are removed.
8756 (execute_lower_eh_dispatch): When any lowering resulted in
8757 removing an edge, also delete unreachable blocks.
8759 2010-03-10 Jakub Jelinek <jakub@redhat.com>
8762 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8763 UNSPEC_MACHOPIC_OFFSET.
8765 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
8768 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8769 (m68k_delegitimize_address): New function.
8771 2010-03-09 Jakub Jelinek <jakub@redhat.com>
8774 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
8777 * var-tracking.c (adjust_sets): New function.
8778 (count_with_sets, add_with_sets): Use it.
8779 (get_adjusted_src): New inline function.
8780 (add_stores): Use it.
8783 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
8784 call cselib_dummy_expand_value_rtx_cb instead of
8785 cselib_expand_value_rtx_cb.
8788 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
8789 * config/i386/i386.c: Include debug.h and dwarf2out.h.
8790 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
8791 and .cfi_endproc around the pic thunks.
8792 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
8793 all queued unwind info register saves are saved before the call.
8794 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
8795 considered as sp-=4 for unwind info and the pop as sp+=4 which
8796 also clobbers dest, but doesn't actually restore it.
8799 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
8800 RTX_FRAME_RELATED_P.
8802 2010-03-09 Jie Zhang <jie@codesourcery.com>
8804 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
8805 whitespaces in output template.
8807 2010-03-09 Jie Zhang <jie@codesourcery.com>
8809 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
8812 2010-03-08 Jakub Jelinek <jakub@redhat.com>
8814 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
8815 builtins.exp in a separate job.
8817 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8819 * graphite-sese-to-poly.c (add_param_constraints): Use
8820 lower_bound_in_type and upper_bound_in_type.
8822 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8824 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
8825 instead of unsigned_type_node.
8827 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8828 Reza Yazdani <reza.yazdani@amd.com>
8831 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
8832 on pointer type parameters.
8834 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8838 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
8839 handle conversions from pointer to integers.
8840 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
8841 induction variable, to be able to work with code generated by CLooG.
8842 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
8843 (build_poly_scop): Bail out if we cannot codegen a loop.
8845 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8847 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
8848 code generation with gloog_error.
8850 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8852 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
8853 Call fold_convert on all the returned values.
8854 (expand_scalar_variables_expr): Pass to
8855 expand_scalar_variables_ssa_name the type of the resulting expression.
8857 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8859 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
8860 ppl_min_for_le_pointset.
8861 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
8862 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
8864 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8866 * graphite-dependences.c (map_into_dep_poly): Removed.
8867 (dependence_polyhedron_1): Use combine_context_id_scat.
8869 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8871 * graphite-poly.h (struct poly_scattering): Add layout documentation.
8872 (struct poly_bb): Same.
8873 (combine_context_id_scat): New.
8875 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8878 * sese.c (name_defined_in_loop_p): Return false for default
8881 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8883 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
8884 and clean up the logic.
8886 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
8888 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
8891 2010-03-08 Jakub Jelinek <jakub@redhat.com>
8893 * var-tracking.c (remove_cselib_value_chains): Define only for
8895 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
8896 delete_slot_part, emit_notes_for_differences_1): Don't call
8897 remove_cselib_value_chains here.
8898 (set_slot_part, emit_notes_for_differences_2): Don't call
8899 add_cselib_value_chains here.
8900 (preserved_values): New vector.
8901 (preserve_value): New function.
8902 (add_uses, add_stores, vt_add_function_parameters): Use it
8903 instead of cselib_preserve_value.
8904 (changed_values_stack): New vector.
8905 (check_changed_vars_0): New function.
8906 (check_changed_vars_1, check_changed_vars_2): Use it.
8907 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
8908 changed_values_stack VALUEs.
8909 (vt_emit_notes): For all preserved_values call
8910 add_cselib_value_chains. If ENABLE_CHECKING call
8911 remove_cselib_value_chains before verifying value_chains is empty.
8912 Initialize and free changed_values_stack.
8913 (vt_initialize): Initialize preserved_values.
8914 (vt_finalize): Free preserved_values.
8916 2010-03-08 Richard Guenther <rguenther@suse.de>
8918 PR tree-optimization/43269
8919 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
8922 2010-03-08 Martin Jambor <mjambor@suse.cz>
8924 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
8925 (ipa_is_param_called): Removed.
8926 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
8927 (ipa_print_node_params): Do not print the called flag.
8928 (ipa_write_node_info): Do not stream the called flag.
8929 (ipa_read_node_info): Likewise.
8931 2010-03-07 Jakub Jelinek <jakub@redhat.com>
8934 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
8935 * cselib.c (struct expand_value_data): Add dummy field.
8936 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
8938 (cselib_dummy_expand_value_rtx_cb): New function.
8939 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
8941 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
8942 * var-tracking.c: Include pointer-set.h.
8943 (variable): Change n_var_parts to char from int. Add
8944 cur_loc_changed and in_changed_variables fields.
8945 (variable_canonicalize): Remove.
8946 (shared_var_p): New inline function.
8947 (unshare_variable): Maintain cur_loc_changed and
8948 in_changed_variables fields. If var was in changed_variables,
8949 replace it there with new_var. Just copy cur_loc instead of
8950 resetting it to something else.
8951 (variable_union): Don't recompute cur_loc. Use shared_var_p.
8952 (dataflow_set_union): Don't call variable_canonicalize.
8953 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
8954 of their DEBUG_EXPR_TREE_DECLs.
8955 (canonicalize_loc_order_check): Verify that cur_loc is NULL
8956 and in_changed_variables and cur_loc_changed is false.
8957 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
8958 and cur_loc_changed. Don't update cur_loc here.
8959 (variable_merge_over_src): Don't call variable_canonicalize.
8960 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
8961 removing loc that is equal to cur_loc, clear cur_loc,
8962 set cur_loc_changed and ensure variable_was_changed is called.
8963 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
8964 compare pointers in cur_loc check, if it is equal to loc,
8965 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
8966 (variable_different_p): Remove compare_current_location argument,
8967 don't compare cur_loc.
8968 (dataflow_set_different_1): Adjust variable_different_p caller.
8969 (variable_was_changed): If dv had some var in changed_variables
8970 already, reset in_changed_variables flag for it and propagate
8971 cur_loc_changed over to the new variable. On empty var
8972 always set cur_loc_changed. Set in_changed_variables on whatever
8973 var is added to changed_variables.
8974 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
8975 Use shared_var_p. When removing loc that is equal to cur_loc,
8976 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
8977 end, don't set it to something else, just call variable_was_changed.
8978 (delete_slot_part): Use shared_var_p. When cur_loc equals to
8979 loc being removed, clear cur_loc and set cur_loc_changed.
8980 Set cur_loc_changed if all locations have been removed.
8981 (struct expand_loc_callback_data): New type.
8982 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
8983 allocated. Always create SUBREGs if simplify_subreg failed.
8984 Prefer to use cur_loc, when that fails and still in
8985 changed_variables (and seen first time) recompute it. Set
8986 cur_loc_changed of variables which had to change cur_loc and
8987 compute elcd->cur_loc_changed if any of the subexpressions used
8988 had to change cur_loc.
8989 (vt_expand_loc): Adjust to pass arguments in
8990 expand_loc_callback_data structure.
8991 (vt_expand_loc_dummy): New function.
8992 (emitted_notes): New variable.
8993 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
8994 that weren't used for any other decl in current
8995 emit_notes_for_changes call call vt_expand_loc_dummy to update
8996 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
8997 first loc_chain location if NULL before. Always use just
8998 cur_loc instead of first loc_chain location. When cur_loc_changed
8999 is false, when not --enable-checking=rtl just don't emit any note.
9000 When rtl checking, compute the note and assert it is the same
9001 as previous note. Clear cur_loc_changed and in_changed_variables
9002 at the end before removing from changed_variables.
9003 (check_changed_vars_3): New function.
9004 (emit_notes_for_changes): Traverse changed_vars to call
9005 check_changed_vars_3 on each changed var.
9006 (emit_notes_for_differences_1): Clear cur_loc_changed and
9007 in_changed_variables. Recompute cur_loc of new_var.
9008 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9009 (vt_emit_notes): Initialize and destroy emitted_notes.
9011 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
9013 PR rtl-optimization/42220
9014 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9015 Use verify_reg_tracked to determine if we should use OP_OUT rather
9017 (build_def_use): If we see an in-out operand for a register that we
9018 know nothing about, treat is an output if possible, fail the block if
9021 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9024 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9027 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9030 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9031 uses of relevant DEFs that are dead outside the loop too.
9033 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9035 * var-tracking.c (dataflow_set_merge): Swap src and src2.
9037 2010-01-13 Jakub Jelinek <jakub@redhat.com>
9039 * var-tracking.c (values_to_unmark): New variable.
9040 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9041 values_to_unmark vector. Moved body to...
9042 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
9043 instead queue it into values_to_unmark vector.
9044 (vt_find_locations): Free values_to_unmark vector.
9046 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
9048 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9049 (site.exp): Export them when plugins are enabled.
9051 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
9054 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9056 (chrec_fold_multiply): Same.
9058 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
9061 * c-decl.c (build_compound_literal): Return early if init is
9064 2010-03-04 Martin Jambor <mjambor@suse.cz>
9066 PR tree-optimization/43164
9067 PR tree-optimization/43191
9068 * tree-sra.c (type_consists_of_records_p): Reject records with
9069 zero-size bit-fields at the end.
9071 2010-03-04 Mike Stump <mikestump@comcast.net>
9073 * Makefile.in (TAGS): Remove *.y.
9075 2010-03-04 Richard Guenther <rguenther@suse.de>
9077 PR tree-optimization/40761
9078 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9080 (my_rev_post_order_compute): New function.
9081 (init_pre): Call it.
9083 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
9086 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9087 decrease the cost of an IV candidate when the cost is infinite.
9089 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9091 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9092 Use '3DNow!' for the extension of that name, ensure normal space
9094 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9096 2010-03-03 Jeff Law <law@redhat.com>
9098 * PR middle-end/32693
9099 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9100 than gen_rtx_SUBREG.
9101 (extract_bit_field_1): Likewise.
9103 2010-03-03 Janis Johnson <janis187@us.ibm.com>
9105 * doc/sourcebuild.texi (Test directives): Document that arguments
9106 include-opts and exclude-opts are now optional for dg-skip-if,
9107 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9109 2010-03-03 Jason Merrill <jason@redhat.com>
9112 * cgraph.h (varpool_node): Add extra_name field.
9113 * varpool.c (varpool_extra_name_alias): New.
9114 (varpool_assemble_decl): Emit extra name aliases.
9115 (varpool_mark_needed_node): Look past an extra name alias.
9116 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9117 * lto-streamer-in.c (lto_input_tree): Read it.
9118 * lto-streamer-out.c (output_unreferenced_globals): Write it.
9120 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
9122 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9123 (sparc*-*-solaris2*): ...this.
9125 2010-03-03 Jakub Jelinek <jakub@redhat.com>
9128 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9129 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
9130 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9131 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9134 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9135 fallthrough to default handling, just with want_address 0 instead of 2.
9136 For single element lists, add_AT_loc directly, otherwise create an
9137 artificial variable DIE and stick location list to it.
9140 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9141 (VAL_EXPR_HAS_REVERSE): Define.
9142 (reverse_op): New function.
9143 (add_stores): For reversible operations add an extra MO_VAL_USE.
9145 2010-03-02 Jason Merrill <jason@redhat.com>
9147 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9149 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
9151 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9152 (sparc64-*-linux*): Likewise.
9153 (sparc64-*-solaris2*): Include assembler files before linker ones.
9154 (sparc-*-solaris2*): Simplify and reorder to match previous case.
9155 * config/sparc/gas.h: Delete.
9156 * config/sparc/sol2-64.h: Add copyright notice.
9157 * config/sparc/sol2-gas-bi.h: Likewise.
9158 * config/sparc/sol2-gld.h: Likewise.
9159 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9160 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9161 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9162 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9163 (sparc_elf_asm_named_section): Rename into...
9164 (sparc_solaris_elf_asm_named_section): ...this. Always define.
9166 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
9168 * config/alpha/alpha.c (override_options): Fix -mtune error message.
9170 2010-03-02 Jeff Law <law@redhat.com>
9173 * reload1.c (rtx_p, substitute_stack): Declare.
9174 (substitute): Record addresses of changed rtxs.
9175 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9176 Restore the original rtx when complete.
9177 (reload): Free subsitute_stack when complete.
9179 2010-03-02 Janis Johnson <janis187@us.ibm.com>
9181 * doc/gccint.texi (menu): Add Testsuites as a chapter.
9182 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9184 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9185 LTO Testing, gcov Testing, profopt Testing, compat Testing,
9186 Torture Tests): Change from subsection to section.
9188 2010-03-02 Jakub Jelinek <jakub@redhat.com>
9189 Steven Bosscher <steven@gcc.gnu.org>
9191 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
9194 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
9197 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
9198 the assignment from the new induction variable to the assignment
9199 of the value from the original loop PHI function.
9201 2010-03-01 Janis Johnson <janis187@us.ibm.com>
9202 Daniel Jacobowitz <dan@codesourcery.com>
9204 * doc/sourcebuild.texi (Test directives): Clarify options to
9207 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9209 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
9210 Disable cfi directives unless GCC and gas agree on using read-only
9211 .eh_frame sections for 64-bit.
9212 * configure: Regenerate.
9214 2010-03-01 Richard Guenther <rguenther@suse.de>
9216 PR tree-optimization/43220
9217 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
9218 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
9220 2010-03-01 Richard Guenther <rguenther@suse.de>
9221 Martin Jambor <mjambor@suse.cz>
9224 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9225 gimplified parameters.
9227 2010-03-01 Christian Bruel <christian.bruel@st.com>
9229 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9231 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9233 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9235 2010-03-01 Richard Guenther <rguenther@suse.de>
9238 * expr.c (expand_assignment): Use the alias-oracle to tell
9239 if the rhs aliases the result decl.
9241 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9244 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9245 to sol_gt_pch_get_address.
9246 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9247 64-bit, SPARC and x86.
9248 (sol_gt_pch_get_address): New function.
9250 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
9252 * toplev.h (inform_n, error_n): Declare.
9253 * diagnostic.c (inform_n, error_n): New function.
9255 2010-03-01 Jakub Jelinek <jakub@redhat.com>
9257 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9258 has no rtl yet when processing local_decls, queue it and recheck
9259 if deferred stack allocation hasn't assigned it rtl.
9261 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
9263 * config/sh/sh.c (unspec_bbr_uid): New.
9264 (gen_block_redirect): Use it instead of INSN_UID.
9265 (gen_far_branch): Likewise.
9267 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
9269 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9270 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9272 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9274 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9275 (Warning Options): -Wno-conversion-null is valid for
9276 Objective-C++ as well.
9277 * doc/tm.texi (Named Address Spaces): Likewise.
9278 * doc/plugins.texi (Plugins): Replace TABs with spaces.
9279 * doc/tree-ssa.texi (Tree SSA): Likewise.
9281 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9284 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9285 by default. Don't set the default arch for
9286 i[34567]86-*-darwin*|x86_64-*-darwin*.
9288 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9291 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9292 default. Set the default 32bit/64bit archs with $with_arch
9293 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9295 2010-02-27 Richard Guenther <rguenther@suse.de>
9297 PR tree-optimization/43186
9298 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9299 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9300 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9301 unroller iterations.
9303 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9305 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9306 required and i[34567]86-*-* targets don't support 64bit ISA.
9308 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
9311 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9314 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9316 * config.gcc: Set the default arch at least to Prescott for
9317 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9318 if SSE math is enabled.
9320 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9322 * diagnostic.c (diagnostic_initialize): Update.
9323 (diagnostic_report_diagnostic): Test inhibit_notes_p for
9325 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9326 (diagnostic_inhibit_notes): New.
9327 * toplev.c (process_options): inhibit notes with -fcompare-debug.
9329 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9332 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9333 * doc/standards.texi: Likewise.
9334 * doc/extend.texi: Likewise.
9335 * doc/trouble.texi: Likewise.
9336 * doc/cppopts.texi: Likewise.
9337 * doc/install.texi: Likewise.
9338 * c.opt (std=c90,std=gnu90): New options.
9339 * c-opts.c (c_common_handle_option): Handle them.
9341 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9344 * c-decl.c (undeclared_variable): Use an informative note.
9346 2010-02-26 Richard Guenther <rguenther@suse.de>
9348 PR tree-optimization/43186
9349 * gimple.h (gimple_fold): Remove.
9350 * gimple.c (gimple_fold): Remove. Inline into single user ...
9351 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9352 Try harder for conditions.
9354 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9357 * function.c (used_types_insert): Don't skip through named pointer
9358 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
9359 and it is different from the main variant's type.
9361 2010-02-26 Nick Clifton <nickc@redhat.com>
9363 * config/rx/rx.md (sminsi3): Remove bogus alternative.
9365 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9367 * config.gcc: Support --with-fpmath=sse for x86.
9369 * config/i386/ssemath.h: New.
9371 * doc/install.texi (--with-fpmath=sse): Documented.
9373 2010-02-26 Richard Guenther <rguenther@suse.de>
9375 PR tree-optimization/43188
9376 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9377 vector types of over-aligned element type.
9379 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
9382 * config/i386/i386.c (expand_vec_perm_blend): Use correct
9383 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
9385 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9387 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9389 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9391 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9392 * var-tracking.c: Include diagnostic.h.
9393 (debug_dv): New function.
9394 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9397 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9398 (add_value_chain, add_value_chains, remove_value_chain,
9399 remove_value_chains): Handle DEBUG_EXPRs.
9400 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9403 * regcprop.c (struct queued_debug_insn_change): New type.
9404 (struct value_data_entry): Add debug_insn_changes field.
9405 (struct value_data): Add n_debug_insn_changes field.
9406 (debug_insn_changes_pool): New variable.
9407 (free_debug_insn_changes, apply_debug_insn_changes,
9408 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9409 (kill_value_one_regno): Call free_debug_insn_changes if needed.
9410 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9412 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9414 (copyprop_hardreg_forward_1): Don't call apply_change_group for
9415 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
9416 changes, call cprop_find_used_regs via note_stores.
9417 (copyprop_hardreg_forward): When copying vd from predecessor
9418 which has any queued DEBUG_INSN changes, make sure the pointers are
9419 cleared. At the end call df_analyze and then if there are any
9420 DEBUG_INSN changes queued at the end of some basic block for still
9421 live registers, apply them.
9422 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9424 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
9426 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9429 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
9431 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9432 targets. Set the default with_cpu/with_arch from arch/cpu.
9433 Allow x86-64 and native for with_cpu/with_arch.
9435 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
9437 * ebitmap.c: Change calls to verify_popcount with calls to
9438 sbitmap_verify_popcount.
9439 (ebitmap_clear_bit): Fixed map->cacheindex test and
9440 map>cache update when bit clearing results in an empty
9443 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
9446 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
9447 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
9448 and support both V2DF and V2DI modes.
9449 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
9450 support both V2DF and V2DI modes.
9451 (general): Delete trailing whitespace from a few patterns.
9453 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9454 V2DF/V2DI interleave high/low builtins.
9456 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
9459 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
9460 interleave high/low functions.
9462 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9464 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
9465 #pragma extern_prefix.
9467 2010-02-25 Jakub Jelinek <jakub@redhat.com>
9470 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
9471 BLKmode, assert op0 is a MEM and just adjust its mode.
9474 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
9475 if bitpos isn't multiple of mode's bitsize.
9477 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9479 * c.opt (-ftemplate-depth=): New.
9480 (-ftemplate-depth-): Deprecate.
9481 * optc-gen.awk: Handle -ftemplate-depth=.
9482 * opth-gen.awk: Likewise.
9483 * c-opts.c (c_common_handle_option): Likewise.
9484 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
9486 2010-02-24 Jason Merrill <jason@redhat.com>
9488 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
9490 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9492 * cfg.c (alloc_aux_for_block): Remove inline.
9493 (alloc_aux_for_edge): Likewise.
9495 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9497 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
9499 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9501 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
9502 * config/i386/sol2-gas.h: New file.
9503 * config.gcc (i[34567]86-*-solaris2*): Use it.
9505 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9508 * c-typeck.c (ep_convert_and_check): New.
9509 (build_conditional_expr): Use it.
9510 (build_binary_op): Likewise.
9512 2010-02-24 Jakub Jelinek <jakub@redhat.com>
9514 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
9517 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
9518 bounds even for -O+.
9519 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
9520 expr needs to have DECL_NAME set.
9522 2010-02-24 Nick Clifton <nickc@redhat.com>
9524 * config/mep/mep.c: Include gimple.h.
9525 (mep_function_uses_sp): Delete unused function.
9526 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
9527 parameters. Use unsigned integers to count args. Return a
9528 NULL_RTX instead of an error_mark_node. Toidy up formatting.
9530 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9533 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
9534 greater or equal to nelt instead of 2 * nelt.
9535 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
9538 2010-02-23 Jason Merrill <jason@redhat.com>
9541 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
9542 in cfun->local_decls even if they have register types.
9545 * stor-layout.c (place_field): Don't warn about unnecessary
9546 DECL_PACKED if the type is packed.
9548 2010-02-23 Jakub Jelinek <jakub@redhat.com>
9551 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
9552 GOTOFF relocs, even when the base reg isn't pic pointer.
9554 2010-02-23 Michael Matz <matz@suse.de>
9557 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
9558 (expand_gimple_basic_block): Generate and use debug temps if there
9559 are debug uses left after the last real use of TERed ssa names.
9560 Unlink debug immediate uses when they are expanded.
9562 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9565 * config/i386/i386.c (override_options): Reorganise to provide
9566 better error messages.
9568 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9571 * graphite-scop-detection.c (create_single_exit_edge): Move
9572 the call to find_single_exit_edge to....
9573 (create_sese_edges): ...here. Don't handle multiple edges
9574 exiting the function.
9575 (build_graphite_scops): Don't handle multiple edges
9576 exiting the function.
9578 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9581 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
9582 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
9584 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
9587 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
9589 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9592 * c-typeck.c (convert_arguments): Print declaration location.
9593 * c-common.c (validate_nargs): Rename as
9594 builtin_function_validate_nargs.
9595 (check_builtin_function_arguments): Update.
9597 2010-02-22 Richard Guenther <rguenther@suse.de>
9600 * tree-inline.c (declare_return_variable): Use the type of
9601 the call stmt lhs if available.
9603 2010-02-22 Duncan Sands <baldrick@free.fr>
9605 * passes.c (register_pass): Always consider all pass lists when
9606 ref_pass_instance_number is zero.
9608 2010-02-22 Richard Guenther <rguenther@suse.de>
9610 PR tree-optimization/42749
9611 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
9612 parameter. Do arithmetic in the original type.
9613 (update_accumulator_with_ops): Likewise.
9614 (adjust_accumulator_values): Adjust.
9616 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9618 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
9619 (QI to BLKmode splitter): New splitter.
9621 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
9623 * config/i386/i386.c (initial_ix86_tune_features): Turn on
9624 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
9626 2010-02-22 Richard Guenther <rguenther@suse.de>
9628 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
9630 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
9632 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
9633 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
9634 ($(T)crti.o, $(T)crtn.o): Remove rules.
9636 2010-02-21 Tobias Burnus <burnus@net-b.de>
9639 * doc/invoke.texi (-fassociative-math): Document that this
9640 option is automatically enabled for Fortran.
9642 2010-02-20 David S. Miller <davem@davemloft.net>
9644 * configure.ac: Test if linker and assembler properly support
9645 GOTDATA_OP relocations.
9646 * configure: Rebuild.
9647 * config.in: Likewise.
9648 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
9649 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
9650 (movsi_high_pic): Likewise.
9651 (movdi_lo_sum_pic): Likewise.
9652 (movdi_high_pic): Likewise.
9653 (movsi_pic_gotdata_op): New pattern.
9654 (movdi_pic_gotdata_op): Likewise.
9655 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
9656 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
9658 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
9661 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
9662 attribute to ssemul.
9663 (xop_mulv2div2di3_high): Ditto.
9665 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9668 * c.opt (Wconversion-null): New option.
9669 * doc/invoke.texi (Wconversion-null): Document.
9671 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9673 * common.opt (Wlarger-than-): Add Undocumented.
9675 2010-02-19 Mike Stump <mikestump@comcast.net>
9677 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
9679 2010-02-19 Jason Merrill <jason@redhat.com>
9682 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
9683 * configure: Likewise.
9685 2010-02-20 Alan Modra <amodra@gmail.com>
9688 * cgraph.h (cgraph_make_decl_local): Declare.
9689 * cgraph.c (cgraph_make_decl_local): New function.
9690 (cgraph_make_node_local): Use it.
9691 * cgraphunit.c (cgraph_function_versioning): Likewise.
9692 * ipa.c (function_and_variable_visibility): Likewise.
9694 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9697 * except.c (sjlj_emit_function_enter): Don't call
9698 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
9700 * rtl.h (add_reg_br_prob_note): Remove prototype.
9702 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9705 * c-common.c (conversion_warning): Remove widening conversions
9706 before checking the conversion of integers to reals.
9708 2010-02-19 Mike Stump <mikestump@comcast.net>
9711 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
9714 * cgraphunit.c (process_function_and_variable_attributes): Check
9715 DECL_PRESERVE_P instead of looking up attribute "used".
9716 * ipa-pure-const.c (check_decl): Likewise.
9717 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
9718 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
9719 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
9720 instead of attribute "used".
9721 * config/sol2-c.c (solaris_pragma_init): Likewise.
9722 (solaris_pragma_fini): Likewise.
9724 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9726 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
9727 Use XCNEW instead of xcalloc.
9728 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
9729 XNEW instead of xmalloc.
9730 (get_fields): Use XNEWVEC instead of xmalloc.
9733 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
9734 populate vars array.
9735 (create_new_general_access): For debug stmts just reset value.
9736 (get_stmt_accesses): For accesses within debug stmts just record them
9737 using add_access_to_acc_sites instead of preventing the peeling or
9738 counting them as accesses.
9741 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
9743 2010-02-19 Richard Guenther <rguenther@suse.de>
9745 PR tree-optimization/42916
9746 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
9749 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
9751 * configure.ac: Replace all uses of changequote in macro arguments
9752 with proper quoting.
9754 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9757 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
9759 2010-02-19 Richard Guenther <rguenther@suse.de>
9761 PR tree-optimization/42944
9762 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
9763 test for aliasing with errno.
9765 2010-02-19 Jakub Jelinek <jakub@redhat.com>
9768 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
9769 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
9770 * dojump.c: Include output.h.
9771 (inv): New inline function.
9772 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
9773 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
9774 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
9775 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
9776 argument, pass it down to other calls.
9777 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
9778 add REG_BR_PROB note to the conditional jump.
9779 * cfgexpand.c (add_reg_br_prob_note): Removed.
9780 (expand_gimple_cond): Don't call it, add the probability
9781 as last argument to jumpif_1/jumpifnot_1.
9782 * Makefile.in (dojump.o): Depend on output.h.
9783 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
9785 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
9786 * stmt.c (do_jump_if_equal): Likewise.
9787 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
9788 * loop-unswitch.c (compare_and_jump_seq): Likewise.
9789 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
9791 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
9792 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
9793 jumpifnot_1 callers.
9794 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
9796 (store_expr): Adjust jumpifnot caller.
9797 (store_constructor): Adjust jumpif caller.
9800 * gimplify.c (gimple_boolify): For __builtin_expect call
9801 gimple_boolify also on its first argument.
9803 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
9805 * configure.ac (gnu-unique-object): Wrap regexps using [] in
9807 (__stack_chk_fail): Ditto. Remove quadrigraphs.
9808 * configure: Regenerated.
9810 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9812 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
9813 lang_hooks.types_compatible_p instead of comptypes.
9815 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
9817 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
9818 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
9819 if __prefer_thumb__ is defined.
9821 2010-02-18 Martin Jambor <mjambor@suse.cz>
9823 PR tree-optimization/43066
9824 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
9825 array with zero-sized element type.
9827 2010-02-18 Jakub Jelinek <jakub@redhat.com>
9829 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
9830 rtx, allocate struct var_loc_node here and return it to the
9831 caller, and only if it is actually needed.
9832 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
9833 move it earlier and return immediately if it returns NULL.
9835 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
9837 * config/sparc/gas.h: New file. Restore
9838 TARGET_ASM_NAMED_SECTION to its ELF default.
9839 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
9841 * config/sparc/sparc.c (sparc_elf_asm_named_section):
9842 Likewise. Add ATTRIBUTE_UNUSED to prototype.
9843 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
9844 after sparc/sysv4.h.
9846 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
9848 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
9850 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
9852 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
9853 patterns from predicated pattern.
9855 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
9858 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
9859 for insn mnemonic suffix.
9861 2010-02-17 Richard Guenther <rguenther@suse.de>
9863 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
9866 2010-02-17 Jakub Jelinek <jakub@redhat.com>
9869 * caller-save.c (save_call_clobbered_regs): If BB ends with
9870 a DEBUG_INSN, move any notes in between last real insn and the last
9871 DEBUG_INSN after the last DEBUG_INSN.
9873 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
9875 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
9876 Fix return type. Fix argument type. Explain meaning of return value.
9878 2010-02-16 Richard Guenther <rguenther@suse.de>
9880 PR tree-optimization/41043
9881 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
9882 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
9884 (vrp_visit_phi_node): ... but only for loop PHI nodes.
9886 2010-02-16 Ira Rosen <irar@il.ibm.com>
9888 PR tree-optimization/43074
9889 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
9890 * tree-vect-loop.c (vect_analyze_loop_operations): Add
9891 vectorizable cycles in hybrid SLP check.
9892 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
9894 2010-02-16 Richard Guenther <rguenther@suse.de>
9896 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
9897 (true_dependence): If memrefs_conflict_p computes must-alias
9898 trust it. Move TBAA check after offset-based disambiguation.
9899 (canon_true_dependence): Likewise.
9901 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
9903 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
9904 * doc/invoke.texi: Document it.
9905 * var-tracking.c: Include toplev.h and params.h.
9906 (vt_find_locations): Return bool indicating success. Compute
9907 hash sizes unconditionally. Check new parameter, report.
9908 (variable_tracking_main_1): Check vt_find_locations results and
9909 retry. Renamed from...
9910 (variable_tracking_main): ... this. New wrapper to preserve
9911 flag_var_tracking_assignments.
9912 * Makefile.in (var-tracking.o): Adjust dependencies.
9914 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
9915 Jakub Jelinek <jakub@redhat.com>
9918 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
9919 if weak_import attribute is present.
9920 * config/darwin.c (machopic_select_section): Likewise.
9922 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
9924 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
9925 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
9926 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
9927 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
9929 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
9932 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9935 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
9936 Rewrite text to refer to the names.
9938 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
9940 * config/i386/i386-builtin-types.def
9941 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
9942 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
9943 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
9944 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
9945 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
9946 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
9947 IX86_BUILTIN_VPERMIL2PS256.
9948 (MULTI_ARG_4_DF2_DI_I): Defined.
9949 (MULTI_ARG_4_DF2_DI_I1): Defined.
9950 (MULTI_ARG_4_SF2_SI_I): Defined.
9951 (MULTI_ARG_4_SF2_SI_I1): Defined.
9952 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
9953 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
9954 __builtin_ia32_vpermil2ps256.
9955 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9956 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9957 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
9958 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
9959 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
9960 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
9961 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
9962 CODE_FOR_xop_vpermil2v8sf3.
9963 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
9964 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
9965 * config/i386/xopintrin.h (_mm_permute2_pd): New.
9966 (_mm256_permute2_pd): New.
9967 (_mm_permute2_ps): New.
9968 (_mm256_permute2_ps): New.
9970 2010-02-15 Nick Clifton <nickc@redhat.com>
9972 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
9973 boolean parameters. Use emit_jump_insn when emitting a pop
9974 instruction containing a return insn.
9975 (push): Use 'true' rather than '1' as second parameter to F.
9976 (h8300_expand_prologue): Likewise.
9977 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
9978 (h8300_expand_epilogue): Likewise.
9980 2010-02-15 Richard Guenther <rguenther@suse.de>
9983 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
9986 2010-02-15 Nick Clifton <nickc@redhat.com>
9988 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
9991 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
9993 * intl.c (fake_ngettext): New function.
9994 * intl.h (fake_ngettext): Declare.
9995 (ngettext): Define macro.
9996 * collect2.c (notice_translated): New function.
9997 (main): Use notice_translated and ngettext.
9998 * collect2.h (notice_translated): Declare.
10000 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
10002 * reorg.c (delete_computation): Comment fixes.
10003 * caller-save.c (setup_save_areas): Idem.
10004 * sel-sched-dump.c (dump_lv_set): Idem.
10007 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10009 * config/s390/s390.c (s390_sched_init): New function.
10010 (TARGET_SCHED_INIT): Target hook defined.
10012 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
10013 Jack Howarth <howarth@bromo.med.uc.edu>
10014 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10017 Partial revert of unintended change in fix for PR41605.
10018 * config/darwin.h: Fix typo.
10019 * config/darwin9.h: Same.
10021 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10023 * c-pch.c (pch_init): Clear v.
10025 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10027 PR middle-end/42930
10028 * graphite-scop-detection.c (graphite_can_represent_scev): Call
10029 graphite_can_represent_init for MULT_EXPR.
10031 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10033 PR middle-end/42914
10034 PR middle-end/42530
10035 * graphite-sese-to-poly.c (remove_phi): New.
10036 (translate_scalar_reduction_to_array): Call remove_phi.
10038 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10040 PR middle-end/42771
10041 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10042 * graphite-clast-to-gimple.h (gloog): Update declaration.
10043 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10044 * graphite-poly.h (struct poly_bb): Add missing comments.
10045 (struct scop): Add poly_scop_p field.
10046 (POLY_SCOP_P): New.
10047 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10048 * graphite.c (graphite_transform_loops): Build the polyhedral
10049 representation for each scop before code generation.
10050 * sese.c (rename_variables_in_operand): Removed.
10051 (rename_variables_in_expr): Return the renamed expression.
10052 (rename_sese_parameters): New.
10053 * sese.h (rename_sese_parameters): Declared.
10055 2010-02-11 Richard Guenther <rguenther@suse.de>
10057 PR tree-optimization/42998
10058 * tree-ssa-pre.c (create_expression_by_pieces): Treat
10059 POINTER_PLUS_EXPR properly.
10061 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10062 Changpeng Fang <changpeng.fang@amd.com>
10064 PR middle-end/40886
10065 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10066 the cost of an IV candidate when the IV is used in a test against zero.
10068 * gcc.dg/tree-ssa/ivopts-3.c: New.
10070 2010-02-11 Richard Guenther <rguenther@suse.de>
10073 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10074 pointer-vs-decl case by swapping refs. Handle some cases
10075 of pointer-vs-decl disambiguations more conservatively.
10076 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10077 to false after expanding.
10079 2010-02-11 Richard Guenther <rguenther@suse.de>
10082 * gcc.c (process_command): Handle LTO file@offset case more
10085 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10087 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10088 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
10090 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10092 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10093 if MEM's mode size isn't DWARF2_ADDR_SIZE.
10094 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10095 Optimize eq/ne comparisons when both arguments are known to be
10097 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10098 Don't mask operands unnecessarily if they are known to be already
10101 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
10103 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10106 2010-02-10 Richard Guenther <rguenther@suse.de>
10108 PR tree-optimization/43017
10109 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10110 for wrapping signed arithmetic.
10112 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10115 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10116 if no debug info should be emitted for it.
10118 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
10120 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10121 note when flag_exceptions is set.
10123 2010-02-10 Duncan Sands <baldrick@free.fr>
10125 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10127 2010-02-10 Richard Guenther <rguenther@suse.de>
10130 * tree.c (get_unwidened): Handle constants.
10131 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10133 2010-02-10 Martin Jambor <mjambor@suse.cz>
10136 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10137 check for variable argument counts independently.
10139 2010-02-10 Christian Bruel <christian.bruel@st.com>
10142 * config/sh/sh.c (find_barrier): Increase length for non delayed
10143 conditional branches.
10145 2010-02-10 Christian Bruel <christian.bruel@st.com>
10147 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10149 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10151 * builtins.c (set_builtin_user_assembler_name): Also handle
10152 ffs if int is smaller than word.
10154 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
10156 PR middle-end/42973
10157 * ira-conflicts.c (get_dup): Remove.
10158 (process_reg_shuffles): Add new parameter. Use it as an
10159 additional guard for copy generation.
10160 (add_insn_allocno_copies): Rewrite.
10162 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
10164 * common.opt (fsched2-use-traces): Preserved for backward
10166 * doc/invoke.texi: Remove the documentation about option
10167 -fsched2-use-traces.
10168 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10169 flag_sched2_use_traces.
10170 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10171 the backward compatibility flag section.
10173 2010-02-09 Richard Guenther <rguenther@suse.de>
10175 PR tree-optimization/43008
10176 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10177 make HEAP variables initialized from global memory if they
10178 are not known builtin functions.
10179 (find_func_aliases): Adjust.
10181 2010-02-09 Richard Guenther <rguenther@suse.de>
10183 PR tree-optimization/43000
10184 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10185 arithmetic manually.
10187 2010-02-08 Jakub Jelinek <jakub@redhat.com>
10189 PR tree-optimization/42931
10190 * tree-loop-linear.c (try_interchange_loops): Don't call
10191 double_int_mul if estimated_loop_iterations failed.
10193 2010-02-08 Martin Jambor <mjambor@suse.cz>
10195 PR middle-end/42898
10196 * tree-sra.c (build_accesses_from_assign): Do not mark in
10197 should_scalarize_away_bitmap if stmt has volatile ops.
10198 (sra_modify_assign): Do not process assigns piecemeal if if stmt
10201 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
10203 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
10205 2010-02-07 Adam Nemet <adambnmet@gmail.com>
10207 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
10208 before the pattern.
10210 2010-02-07 Andrew Pinski <pinskia@gmail.com>
10212 PR middle-end/42946
10213 * df-core.c (df_finish_pass): Change type of saved_flags to int.
10215 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10217 PR middle-end/42988
10218 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
10219 to unknown_dependence.
10220 (graphite_legal_transform_dr): Handle the unknown_dependence.
10221 (graphite_carried_dependence_level_k): Same.
10223 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10225 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10227 2010-02-07 Richard Guenther <rguenther@suse.de>
10229 PR middle-end/42991
10230 * expr.c (get_inner_reference): Always initialize *pbitsize.
10232 2010-02-07 Richard Guenther <rguenther@suse.de>
10234 PR middle-end/42956
10235 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10236 new ARRAY_REFs on variable size element or minimal index arrays.
10238 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10239 gimple_fold_indirect_ref.
10241 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
10244 * arm.c (arm_override_options): Just return if the user has specified
10245 an invalid fpu name.
10247 2010-02-03 Jason Merrill <jason@redhat.com>
10250 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10251 i386_pe_maybe_record_exported_symbol.
10253 2010-02-05 Steve Ellcey <sje@cup.hp.com>
10256 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10257 (pa_delegitimize_address): New function.
10259 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
10261 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10262 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10264 2010-02-05 Richard Guenther <rguenther@suse.de>
10267 * lto-streamer-in.c (get_resolution): Deal with references
10268 to undefined functions.
10270 2010-02-05 Richard Guenther <rguenther@suse.de>
10272 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10273 (fold_const_aggregate_ref): Likewise.
10274 (ccp_fold_stmt): Substitute loads.
10275 (maybe_fold_reference): Verify types before substituting.
10277 (fold_gimple_assign): Unshare properly.
10278 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10280 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
10282 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10283 for rs6000_gen_cell_microcode.
10285 2010-02-04 Richard Guenther <rguenther@suse.de>
10287 PR rtl-optimization/42952
10288 * dse.c (const_or_frame_p): Remove MEM handling.
10290 2010-02-04 Nick Clifton <nickc@redhat.com>
10292 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10293 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10294 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10295 (mn10300_asm_output_mi_thunk): New function.
10296 (mn10300_can_output_mu_thunk): New function.
10297 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10298 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
10299 (FUNCTION_ARG): Delete incorrect comment.
10301 2010-02-03 Jason Merrill <jason@redhat.com>
10304 * fold-const.c (operand_equal_p): Handle erroneous types.
10306 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10308 * config/h8300/h8300.md (can_delay): Fix attibute condition.
10310 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
10312 PR rtl-optimization/42941
10313 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10316 2010-02-03 Jason Merrill <jason@redhat.com>
10319 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10321 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
10324 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
10325 (cselib_reset_table): Renamed from...
10326 (cselib_reset_table_with_next_value): ... this.
10327 (cselib_get_next_uid): Renamed from...
10328 (cselib_get_next_unknown_value): ... this.
10329 * cselib.c (next_uid): Renamed from...
10330 (next_unknown_value): ... this.
10331 (cselib_clear_table): Adjust.
10332 (cselib_reset_table): Adjust. Renamed from...
10333 (cselib_reset_table_with_next_value): ... this.
10334 (cselib_get_next_uid): Adjust. Renamed from...
10335 (cselib_get_next_unknown_value): ... this.
10336 (get_value_hash): Use hash.
10337 (cselib_hash_rtx): Likewise.
10338 (new_cselib_val): Adjust. Set and dump uid.
10339 (cselib_lookup_mem): Pass next_uid as hash.
10340 (cselib_subst_to_values): Likewise.
10341 (cselib_log_lookup): Dump uid.
10342 (cselib_lookup): Pass next_uid as hash. Adjust.
10343 (cselib_process_insn): Adjust.
10344 (cselib_init): Initialize next_uid.
10345 (cselib_finish): Adjust.
10346 (dump_cselib_table): Likewise.
10347 * dse.c (canon_address): Dump value uid.
10348 * print-rtl.c (print_rtx): Print value uid.
10349 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10351 (dv_uid): New function, sort of renamed from...
10352 (dv_htab_hash): ... this, reimplemented in terms of it and...
10353 (dv_uid2hash): ... this. New.
10354 (variable_htab_eq): Drop excess assertions.
10355 (tie_break_pointers): Removed.
10356 (canon_value_cmp): Compare uids.
10357 (variable_post_merge_New_vals): Print uids.
10358 (vt_add_function_parameters): Adjust.
10359 (vt_initialize): Reset table. Adjust.
10361 2010-02-03 Richard Guenther <rguenther@suse.de>
10363 PR tree-optimization/42944
10364 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10365 (call_may_clobber_ref_p_1): Likewise. Properly handle
10366 malloc and calloc clobbering errno.
10368 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
10370 * doc/invoke.texi: Fix name of sched1 dump.
10372 * opts.c (decode_options): Set flag_tree_switch_conversion
10373 only conditionally on optimize >= 2.
10375 * gcse.c: Assorted comment fixes in pass description.
10377 2010-02-03 Anthony Green <green@moxielogic.com>
10379 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10380 nop padding in order to maintain alignment of storage location of
10381 target function address.
10382 (moxie_trampoline_init): Store target function address at newly
10384 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10386 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10388 2010-02-03 Richard Guenther <rguenther@suse.de>
10390 PR middle-end/42927
10391 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10393 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10395 * config.gcc: Reenable check for obsolete targets.
10396 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10397 mips-sgi-irix6.[0-4]*.
10399 2010-02-02 Nick Clifton <nickc@redhat.com>
10401 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10402 constant size of 4 as being the same as 0.
10403 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10404 can take values in the range 0..4.
10406 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
10409 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10410 as _darwin10_Unwind_FindEnclosingFunction().
10411 * libgcc-libsystem.ver: New.
10413 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
10416 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10417 implicitly set registers.
10419 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
10421 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10422 (arm_override_options): Allow automatic selection of the thread
10423 pointer register if thumb2.
10424 (legitimize_pic_address): Improve code sequences for Thumb2.
10425 (arm_call_tls_get_addr): Likewise.
10426 (legitimize_tls_address): Likewise.
10427 * arm.md (pic_load_addr_arm): Delete. Replace with ...
10428 (pic_load_addr_32bit): ... this. New named pattern.
10429 * thumb2.md (pic_load_addr_thumb2): Delete.
10430 (pic_load_dot_plus_four): Delete.
10431 (tls_load_dot_plus_four): New named pattern.
10433 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10436 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10437 Document fix for TLS bug.
10439 2010-01-31 Richard Guenther <rguenther@suse.de>
10441 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10442 conservatively correct.
10444 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10448 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10450 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10452 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10454 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
10456 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
10458 * config.gcc: Adjust order of makefile fragments for mingw targets.
10460 2010-01-31 Richard Guenther <rguenther@suse.de>
10462 PR middle-end/42898
10463 * gimplify.c (gimplify_init_constructor): For volatile LHS
10464 initialize a temporary.
10466 2010-01-31 Matthias Klose <doko@ubuntu.com>
10468 * configure.ac: Fix __stack_chk_fail check for cross builds configured
10470 * configure: Regenerate.
10472 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
10474 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
10475 the same alias set and their sizes different constantness.
10476 (aliasing_component_refs_p): Revert 2009-10-24 change.
10478 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10480 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
10483 2010-01-29 Richard Guenther <rguenther@suse.de>
10485 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
10486 Assert we successfully updated the call.
10488 2010-01-29 Jakub Jelinek <jakub@redhat.com>
10490 PR rtl-optimization/42889
10491 * df.h (df_set_bb_dirty_nonlr): New prototype.
10492 * df-core.c (df_set_bb_dirty_nonlr): New function.
10493 * df-scan.c (df_insn_rescan): Call it instead of
10494 df_set_bb_dirty for DEBUG_INSNs.
10496 2010-01-29 Richard Guenther <rguenther@suse.de>
10498 PR middle-end/37448
10499 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
10500 quadratic behavior in most cases.
10502 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
10505 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
10506 in the call to gen_x86_movsicc_0_m1.
10508 2010-01-28 Richard Guenther <rguenther@suse.de>
10510 PR tree-optimization/42871
10511 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
10513 2010-01-28 Richard Guenther <rguenther@suse.de>
10515 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
10516 into call arguments.
10518 2010-01-28 Richard Guenther <rguenther@suse.de>
10520 PR middle-end/42883
10521 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
10522 the forwarder if the destination is an EH landing pad.
10524 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
10526 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
10527 block list passed to gimple_duplicate_sese_tail.
10528 (parallelize_loops): Avoid parallelization when the function
10529 has_nonlocal_label.
10530 Avoid parallelization when the preheader is IRREDUCIBLE.
10531 Try to optimize when estimated_loop_iterations_int is unresolved.
10532 Add the loop's location to the dump file.
10533 * tree-cfg.c (add_phi_args_after_redirect): Remove.
10534 (gimple_duplicate_sese_tail): Remove the check for the latch.
10535 Redirect nexits to the exit block.
10536 Remove handling of the incoming edges to the latch.
10537 Redirect the backedge from the copied latch to the exit bb.
10539 2010-01-28 Michael Matz <matz@suse.de>
10542 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
10543 Wrap force_reg into a sequence, emit it before user.
10545 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
10547 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
10549 (arm_legacy_rev): Likewise.
10550 (thumb_legacy_rev): Likewise.
10552 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10554 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
10555 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
10556 on MEM's address failed, try avoid_constant_pool_reference and
10557 recurse if it returned something different.
10558 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
10559 address, try avoid_constant_pool_reference and recurse if it
10560 returned something different.
10561 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
10562 address and avoid_constant_pool_reference returned something
10563 different, don't set have_address.
10565 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
10568 * var-tracking.c (val_store): Add modified argument, obey it.
10570 (count_uses): Move down logging of main.
10571 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
10572 don't need resolution.
10573 (emit_notes_in_bb): Likewise.
10575 2010-01-27 Richard Guenther <rguenther@suse.de>
10577 PR middle-end/42878
10578 * tree-inline.c (remap_decl): Delay remapping of SSA name
10579 default definitions until we need them.
10581 2010-01-27 Jakub Jelinek <jakub@redhat.com>
10583 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10584 (rs6000_delegitimize_address): New function.
10586 * config/s390/s390.c (s390_delegitimize_address): Call
10587 delegitimize_mem_from_attrs.
10589 PR middle-end/42874
10590 * tree-inline.c (cannot_copy_type_1): Removed.
10591 (copy_forbidden): Don't forbid copying of functions containing
10592 records/unions with variable length fields.
10594 2010-01-27 Christian Bruel <christian.bruel@st.com>
10598 * config/sh/sh.c (find_barrier): Increase length for non delayed
10599 conditional branches.
10601 2010-01-27 Matthias Klose <doko@ubuntu.com>
10603 * configure.ac (gnu-unique-object): Fix ldd version check.
10604 * configure: Regenerate.
10606 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10608 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
10610 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
10611 Test for HAVE_GNU_AS value.
10613 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10615 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
10616 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
10617 INT64_TYPE): Define.
10618 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
10619 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
10620 INT_LEAST64_TYPE): Define.
10621 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
10622 UINT_LEAST64_TYPE): Define.
10623 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
10624 INT_FAST64_TYPE): Define.
10625 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
10626 UINT_FAST64_TYPE): Define.
10627 (INTMAX_TYPE, UINTMAX_TYPE): Define.
10628 (INTPTR_TYPE, UINTPTR_TYPE): Define.
10629 (SIG_ATOMIC_TYPE): Define.
10631 2010-01-26 Richard Guenther <rguenther@suse.de>
10633 * df-scan.c (df_scan_set_bb_info): Remove assert.
10634 (df_insn_rescan_debug_internal): Merge asserts.
10635 (df_install_ref): Likewise.
10636 (df_mark_reg): Use bitmap_set_range.
10637 (df_hard_reg_used_p): Remove assert.
10638 (df_hard_reg_used_count): Likewise.
10640 2010-01-26 Richard Guenther <rguenther@suse.de>
10642 PR rtl-optimization/42685
10643 * web.c (web_main): Ignore DEBUG_INSNs.
10645 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
10647 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
10649 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
10650 Fix types of fndecl and arglist parameters.
10652 2010-01-26 Richard Guenther <rguenther@suse.de>
10654 PR middle-end/42806
10655 * tree-eh.c (unsplit_eh): Skip debug insns.
10657 2010-01-26 Richard Guenther <rguenther@suse.de>
10659 PR tree-optimization/42250
10660 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
10662 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10665 * omp-low.c (expand_omp_sections): Only use single_pred if
10666 l2_bb is single_pred_p.
10668 2010-01-25 Christian Bruel <christian.bruel@st.com>
10671 * config/sh/sh.c (find_barrier): Increase length for non delayed
10672 conditional branches.
10673 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
10675 2010-01-24 David S. Miller <davem@davemloft.net>
10677 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
10678 define if not using GAS.
10679 * config/sparc/sparc.c (sparc_elf_asm_named_section):
10680 Likewise. Delete SECTION_MERGE code, which is only applicable
10683 2010-01-24 Mark Mitchell <mark@codesourcery.com>
10686 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
10687 mangling of va_list in system headers.
10689 2010-01-23 Toon Moene <toon@moene.org>
10691 * tree-predcom.c (combine_chains): Return NULL, not false.
10693 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
10695 * tree-loop-distribution.c (distribute_loop): Fix declaration and
10696 initialization of variable res to agree with return type.
10698 2010-01-22 Steve Ellcey <sje@cup.hp.com>
10700 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
10701 * tree-sra.c: Add include of expr.h.
10703 2010-01-22 Jakub Jelinek <jakub@redhat.com>
10705 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
10706 insert the debug stmt on the single non-EH edge from the stmt.
10708 2010-01-22 Richard Henderson <rth@redhat.com>
10711 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
10712 the RHS until after generate_subtree_copies has insertted its
10713 code before the current statement.
10715 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
10717 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
10719 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
10721 2010-01-21 Martin Jambor <mjambor@suse.cz>
10723 PR tree-optimization/42585
10724 * tree-sra.c (struct access): New field grp_total_scalarization.
10725 (dump_access): Dump the new field.
10726 (should_scalarize_away_bitmap): New variable.
10727 (cannot_scalarize_away_bitmap): Likewise.
10728 (sra_initialize): Allocate new bitmaps.
10729 (sra_deinitialize): Free new bitmaps.
10730 (create_access_1): New function.
10731 (create_access): Parts moved to create_access_1.
10732 (type_consists_of_records_p): New function.
10733 (completely_scalarize_record): Likewise.
10734 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
10735 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
10736 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
10738 (analyze_all_variable_accesses): Completely scalarize small eligible
10741 2010-01-21 Martin Jambor <mjambor@suse.cz>
10743 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
10745 2010-01-21 Andrew Haley <aph@redhat.com>
10747 * gcc.c (process_command): Move lang_specific_driver before
10748 setting cc_libexec_prefix.
10750 2010-01-21 Richard Guenther <rguenther@suse.de>
10752 PR middle-end/19988
10753 * fold-const.c (negate_expr_p): Pretend only negative
10754 real constants are easily negatable.
10756 2010-01-20 Janis Johnson <janis187@us.ibm.com>
10757 Jason Merrill <jason@redhat.com>
10759 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
10760 (TYPE_TRANSPARENT_AGGR): this, for union and record.
10761 * calls.c (initialize argument_information): Handle it.
10762 * c-common.c (handle_transparent_union_attribute): Use new name.
10763 * c-decl.c (finish_struct): Ditto.
10764 * c-typeck.c (type_lists_compatible_p): Ditto.
10765 (convert_for_assignment): Use new name and also handle record.
10766 * function.c (aggregate_value_p): Handle it.
10767 (pass_by_reference): Ditto.
10768 (assign_parm_data_types): Ditto.
10769 * print-tree.c (print_node): Ditto.
10770 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
10771 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
10772 * tree.c (first_field): New fn.
10774 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
10777 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
10778 even when linking statically, for now.
10780 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
10783 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
10784 without a cselib val.
10785 (count_uses): Accept MO_VAL_SET with no val on stores.
10786 (add_stores): Likewise.
10788 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10790 * var-tracking.c (check_value_val): Add a compile time assertion.
10791 (dv_is_decl_p): Simplify.
10792 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
10793 gcc_assert if ENABLE_CHECKING.
10795 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
10798 * var-tracking.c: Include tree-flow.h.
10799 (mem_dies_at_call): New.
10800 (dataflow_set_preserve_mem_locs): Use it.
10801 (dataflow_set_remove_mem_locs): Likewise.
10802 (dump_var): Renamed from dump_variable. Adjust all callers.
10803 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
10804 * Makefile.in (var-tracking.o): Adjust deps.
10806 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
10808 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
10810 2010-01-20 Richard Guenther <rguenther@suse.de>
10812 PR tree-optimization/42717
10813 * tree-ssa-dce.c (get_live_post_dom): Remove.
10814 (forward_edge_to_pdom): Take an arbitrary edge to copy
10815 degenerate PHI args from.
10816 (remove_dead_stmt): Use the first post-dominator even if it
10817 does not contain live statements as redirection destination.
10819 2010-01-20 Richard Guenther <rguenther@suse.de>
10821 * tree-inline.c (estimate_num_insns): Handle EH builtins.
10823 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10825 * sel-sched.c (create_speculation_check): Remove set but not used
10827 (try_transformation_cache): Remove set but not used variable ds.
10828 (calculate_privileged_insns): Remove set but not used variables
10829 cur_insn and min_spec_insn.
10830 (find_best_expr): Remove set but not used variable avail_n.
10831 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
10833 * cgraphunit.c (assemble_thunk): Remove set but not used variable
10835 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
10836 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
10837 new_scop_exit_edge.
10839 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
10842 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
10843 cpu types. Add support for *-sse3 cpu types.
10844 (x86_64-*-*): Ditto.
10846 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10848 PR middle-end/42803
10849 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
10850 argument, call initializer_constant_valid_p_1 instead of
10851 initializer_constant_valid_p, pass CACHE to it, return NULL
10852 immediately if first call returns NULL.
10853 (initializer_constant_valid_p_1): New function.
10854 (initializer_constant_valid_p): Use it.
10856 2010-01-20 Thomas Quinot <quinot@adacore.com>
10858 * tree.def (PLACEHOLDER_EXPR): Fix comment.
10860 2010-01-20 Jakub Jelinek <jakub@redhat.com>
10862 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
10863 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
10864 (loc_list_from_tree): Don't handle unsigned division. Handle
10865 signed modulo using DW_OP_{over,over,div,mul,minus}.
10866 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
10867 modulo instead of signed.
10869 2010-01-20 DJ Delorie <dj@redhat.com>
10871 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
10873 (h8300_emit_stack_adjustment): Propogate it.
10875 (h8300_expand_prologue): Likewise.
10876 (h8300_expand_epilogue): Likewise.
10878 2010-01-19 Michael Matz <matz@suse.de>
10880 PR tree-optimization/41783
10881 * tree-data-ref.c (toplevel): Include flags.h.
10882 (dump_data_dependence_relation): Also dump the inputs if the
10883 result will be unknown.
10884 (split_constant_offset_1): Look through some conversions.
10885 * tree-predcom.c (determine_roots_comp): Restart a new chain if
10886 the offset from last element is too large.
10887 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
10888 (reassociate_to_the_same_stmt): Handle vector registers.
10889 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
10890 (e.g. conversions).
10891 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
10892 wide_prolog_niters argument, emit widening instructions.
10893 (vect_do_peeling_for_alignment): Adjust caller, use widened
10894 variant of the iteration cound.
10895 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
10897 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10900 * config/arm/neon-testgen.m (emit_automatics): New parameter
10901 features. Adjust for Fixed_return_reg feature.
10902 (test_intrinsic): Call emit_automatics with new feature.
10903 * config/arm/neon.ml: Update copyright years.
10904 (features): New Fixed_return_reg feature.
10905 (ops): Update feature for Vget_low.
10907 2010-01-19 Jakub Jelinek <jakub@redhat.com>
10909 PR tree-optimization/42719
10910 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
10914 * fwprop.c (all_uses_available_at): Return false if def_set dest
10915 is a REG that is used in def_insn.
10917 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
10919 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
10921 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
10922 Add argument names.
10924 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
10926 * target.h (struct gcc_target) <secondary_reload>: Change type
10927 of last argument to secondary_reload_info *.
10929 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
10932 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
10933 memory references with unaligned offsets. Remove CQImode handling.
10934 (unaligned_memory_operand): Return 1 for memory references with
10935 unaligned offsets. Remove CQImode handling.
10937 2010-01-18 Richard Guenther <rguenther@suse.de>
10939 PR middle-end/39954
10940 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
10943 2010-01-18 Richard Guenther <rguenther@suse.de>
10945 PR tree-optimization/42781
10946 * tree-ssa-structalias.c (find_what_var_points_to): Skip
10947 restrict processing only if the original variable was artificial.
10949 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
10951 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
10952 find number of popped argument bytes.
10954 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
10955 Fix the text that describes the return value for invalid insns.
10957 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
10959 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
10960 Clarify what 'cost of the -dependence' is. Fix quoting.
10962 * toplev.c (default_get_pch_validity): Rename argument to "sz".
10963 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
10965 2010-01-17 Jakub Jelinek <jakub@redhat.com>
10967 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
10968 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
10970 2010-01-17 Richard Guenther <rguenther@suse.de>
10972 PR middle-end/42248
10973 * function.c (split_complex_args): Take a VEC to modify.
10974 (assign_parms_augmented_arg_list): Build a VEC instead of
10975 a chain of PARM_DECLs.
10976 (assign_parms_unsplit_complex): Take a VEC of arguments.
10977 Do not fixup unmodified parms.
10978 (assign_parms): Deal with the VEC.
10979 (gimplify_parameters): Likewise.
10981 2010-01-17 Richard Guenther <rguenther@suse.de>
10983 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
10984 node existence check.
10985 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
10986 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
10987 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
10988 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
10989 (gimple_execute_on_growing_pred): Likewise.
10991 2010-01-17 Richard Guenther <rguenther@suse.de>
10993 PR tree-optimization/42773
10994 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
10995 (compute_antic_aux): Likewise.
10996 (compute_partial_antic_aux): Likewise.
10998 2010-01-17 Jie Zhang <jie.zhang@analog.com>
11001 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
11004 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
11006 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11009 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11010 Fix markup for strict argument.
11012 (TARGET_SCHED_REORDER2): Fix argument types.
11014 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11015 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11017 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11018 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11020 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11023 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11024 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11025 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11026 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11027 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11029 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11031 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11033 (TARGET_ASM_RELOC_RW_MASK): Add return type.
11034 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11036 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11038 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11041 (TARGET_ASM_NAMED_SECTION): Fix argument list.
11043 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11044 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11046 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11048 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11050 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11051 referring to it. Fix language.
11053 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11055 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11057 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11059 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11061 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11062 '@var{stream}. Remove stray 'and'.
11064 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11066 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11068 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11070 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11071 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11073 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11074 Fix description of return value.
11075 Rename argument "sz" to "len."
11077 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11078 Clarify meaning of 'true' return value.
11080 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11082 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11083 rep_mode versus mode_rep.
11085 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11087 (TARGET_BUILTIN_DECL): Fix name.
11089 (TARGET_COMMUTATIVE_P): Fix type of first argument.
11091 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11093 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11095 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11097 (TARGET_RELAXED_ORDERING): Use @deftypevr.
11099 (TARGET_GET_DRAP_RTX): Note that this is a hook.
11102 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11103 Rename argument tm_fn to md_fn.
11105 (TARGET_OPTION_PRINT): Fix argument list.
11107 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
11110 * config/i386/i386.c (ix86_fixup_binary_operands):
11111 Revert FMA4 fixup of operands.
11113 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11116 * Makefile.in (write_entries_to_file, install-plugin):
11117 Use \012 instead of \n with tr.
11119 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
11121 * configure.ac (HAVE_AS_REF): New C macro.
11122 * configure: Regenerate.
11123 * config.in: Likewise.
11124 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11126 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11129 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
11131 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11133 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11135 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11137 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11139 (TARGET_IN_SMALL_DATA_P): Fix argument type.
11141 (TARGET_BINDS_LOCAL_P): Fix argument type.
11143 (TARGET_ASM_FILE_END): Use prototype.
11145 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11147 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11149 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11151 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11153 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11154 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11156 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11157 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11159 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11160 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11161 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11162 (TARGET_ADDR_SPACE_CONVERT): Likewise.
11164 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11166 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11168 (TARGET_INIT_BUILTINS): Use prototype.
11170 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11171 Put 'const char *' in braces. Fix parameter types.
11172 (TARGET_INVALID_CONVERSION): Fix parameter types.
11173 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11174 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11176 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11179 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11181 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11183 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
11185 * doc/tm.texi (TARGET_HELP): Fix return type.
11187 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11188 in braces. Fix argument types.
11190 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11192 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
11194 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
11196 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
11197 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
11199 (TARGET_MANGLE_TYPE): Fix argument types.
11201 (TARGET_IRA_COVER_CLASSES): Use prototype.
11203 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
11205 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
11207 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
11209 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
11211 (TARGET_CALLEE_COPIES): Fix argument types.
11213 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
11215 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
11217 (TARGET_FUNCTION_VALUE): Fix argument types.
11219 (TARGET_RETURN_IN_MSB): Fix argument type.
11221 (TARGET_RETURN_IN_MEMORY): Fix argument types.
11223 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11225 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11227 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11228 agree with return type.
11230 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11232 2010-01-15 Jing Yu <jingyu@google.com>
11234 PR rtl-optimization/42691
11235 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11236 a pseudo to a constant and are merged, and adjust comments.
11238 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
11240 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11242 2010-01-15 Richard Guenther <rguenther@suse.de>
11244 PR middle-end/42739
11245 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11246 labels of computed or non-local gotos to the destination.
11247 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11248 landing pad label is the first label.
11250 2010-01-15 Richard Guenther <rguenther@suse.de>
11252 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11254 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11257 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11258 to allow generation of the xssqrtdp instruction on power7.
11259 (sqrtdf2_fpr): Ditto.
11261 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11263 PR middle-end/42674
11264 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11265 functions with noreturn attribute.
11268 * varasm.c (declare_weak): Add weak attribute to decl if it
11269 doesn't have one already.
11270 (assemble_external): Only add decls to weak_decls if they also
11271 have weak attribute.
11273 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
11275 * var-tracking.c (var_reg_delete): Don't delete the association
11276 between REGs and values or one-part variables if the register
11279 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11282 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11283 because its first operand is a non-localized variable.
11285 2010-01-14 Martin Jambor <mjambor@suse.cz>
11287 PR tree-optimization/42706
11288 * tree-sra.c (encountered_recursive_call): New variable.
11289 (encountered_unchangable_recursive_call): Likewise.
11290 (sra_initialize): Initialize both new variables.
11291 (callsite_has_enough_arguments_p): New function.
11292 (scan_function): Call decl and flags check only for IPA-SRA, check
11293 whether there is a recursive call and whether it has enough arguments.
11294 (all_callers_have_enough_arguments_p): New function.
11295 (convert_callers): Look for recursive calls only when
11296 encountered_recursive_call is set.
11297 (ipa_early_sra): Bail out either if
11298 !all_callers_have_enough_arguments_p or
11299 encountered_unchangable_recursive_call.
11301 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11303 * sel-sched.c: Add 2010 to copyright years.
11304 * sel-sched-ir.c: Likewise.
11305 * sel-sched-ir.h: Likewise.
11307 2010-01-14 Martin Jambor <mjambor@suse.cz>
11309 PR tree-optimization/42714
11310 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11311 constructors specially.
11313 2010-01-14 Andi Kleen <ak@linux.intel.com>
11315 * config/i386/drivers-i386.c (detect_caches_intel):
11316 Add l2sizekb parameter and fill in.
11317 (host_detect_local_cpu): Add l2sizekb, fill in.
11318 Add Atom small cache heuristic.
11320 2010-01-14 Andi Kleen <ak@linux.intel.com>
11322 * config/i386/drivers-i386.c (detect_caches_cpuid4):
11323 Add level3 parameter and fill in.
11324 (detect_caches_intel): Handle level3 cache.
11326 2010-01-14 Andi Kleen <ak@linux.intel.com>
11328 * config/i386/drivers-i386.c (host_detect_local_cpu):
11329 Fix core duo detection.
11331 2010-01-14 Andi Kleen <ak@linux.intel.com>
11333 * config/i386/drivers-i386.c (host_detect_local_cpu):
11334 Fix Atom detection.
11336 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11338 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11339 (rs6000_variable_issue_1): this. Use...
11340 (rs6000_variable_issue): here. Reimplement. Print debug info.
11342 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11344 * sel-sched-ir.c (sel_restore_other_notes): Rename to
11345 sel_restore_notes. Update all callers. Call reemit_notes
11348 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11350 PR rtl-optimization/42246
11351 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11354 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11356 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11357 all successors is the same as number of successors in current region.
11359 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11361 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11362 to rename is not separable. Otherwise check that its LHS is not NULL.
11364 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11366 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
11368 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11370 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11371 available registers when failed to discover LHS register class.
11372 Fix indentation. Update comment.
11374 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11375 Alexander Monakov <amonakov@ispras.ru>
11377 PR rtl-optimization/42389
11378 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11380 (advance_state_on_fence): Likewise.
11381 (sel_target_adjust_priority): Print debug output only when
11382 sched_verbose >= 4, not 2.
11383 (get_expr_cost): Do not issue all unique insns on the next cycle.
11384 (fill_insns): Initialize can_issue_more from the value saved
11386 * sel-sched-ir.c (flist_add): New parameter issue_more.
11387 Init FENCE_ISSUE_MORE with it.
11388 (merge_fences): Likewise.
11389 (init_fences): Update call to flist_add.
11390 (add_to_fences, add_clean_fence_to_fences)
11391 (add_dirty_fence_to_fences): Likewise.
11392 (move_fence_to_fences): Update call to merge_fences.
11393 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11395 * sel-sched-ir.h (struct _fence): New field issue_more.
11396 (FENCE_ISSUE_MORE): New accessor macro.
11398 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11400 PR rtl-optimization/42388
11401 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11402 that have no predecessors nor successors. Do not call move_bb_info
11403 for empty blocks outside of current region.
11405 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11407 PR rtl-optimization/42294
11408 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11409 * sel-sched.c (move_exprs_to_boundary): Transitively add all
11410 originators' originators.
11412 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11414 PR rtl-optimization/39453
11415 PR rtl-optimization/42246
11416 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11418 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11420 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11421 Alexander Monakov <amonakov@ispras.ru>
11423 PR middle-end/42245
11424 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
11425 (maybe_tidy_empty_bb): ... here. Make static. Add new
11426 argument. Update all callers.
11427 (tidy_control_flow): ... and here. Recompute topological order
11428 of basic blocks in region if necessary.
11429 (sel_redirect_edge_and_branch): Change return type. Return true
11430 if topological order might have been invalidated.
11431 (purge_empty_blocks): Export and move from...
11432 * sel-sched.c (purge_empty_blocks): ... here.
11433 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11434 (maybe_tidy_empty_bb): Delete prototype.
11435 (purge_empty_blocks): Declare.
11437 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11439 PR rtl-optimization/42249
11440 * sel-sched.c (try_replace_dest_reg): When chosen register
11441 and original register is the same, do not bail out early, but
11442 still check all original insns for validity of replacing destination
11443 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
11446 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11449 Port from no-undefined-overflow branch:
11450 2009-03-09 Richard Guenther <rguenther@suse.de>
11452 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
11454 2010-01-14 Richard Guenther <rguenther@suse.de>
11457 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
11459 2010-01-14 Ira Rosen <irar@il.ibm.com>
11461 PR tree-optimization/42709
11462 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
11463 as scalar type in creation of constant vector operand.
11465 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11468 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
11469 (check-parallel-%): Match `testsuite' directory component only
11472 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
11474 PR translation/39521
11475 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
11478 2010-01-13 Richard Guenther <rguenther@suse.de>
11480 PR tree-optimization/42730
11481 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
11484 2010-01-13 Steve Ellcey <sje@cup.hp.com>
11487 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
11488 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
11491 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
11493 * config/bfin/libgcc-bfin.ver: Regenerate based on current
11494 libgcc-std.ver. Add entries for ___smulsi3_highpart and
11495 ___umulsi3_highpart.
11497 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
11498 rather than schedule_insns if the pass is enabled.
11500 2010-01-13 Martin Jambor <mjambor@suse.cz>
11502 PR tree-optimization/42704
11503 * tree-sra.c (sra_modify_assign): Do not delete assignments to
11506 2010-01-13 Martin Jambor <mjambor@suse.cz>
11508 PR tree-optimization/42703
11509 * tree-sra.c (analyze_access_subtree): Check that we can build a
11510 reference to the original data within the aggregate.
11512 2010-01-13 Richard Guenther <rguenther@suse.de>
11514 PR tree-optimization/42705
11515 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
11517 2010-01-13 Richard Guenther <rguenther@suse.de>
11519 PR middle-end/42716
11520 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
11522 2010-01-13 Jakub Jelinek <jakub@redhat.com>
11525 * var-tracking.c (values_to_unmark): New variable.
11526 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
11527 values_to_unmark vector. Moved body to...
11528 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
11529 instead queue it into values_to_unmark vector.
11530 (vt_find_locations): Free values_to_unmark vector.
11532 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
11534 * config/s390/s390.c (override_options): Set
11535 default of max-pending-list-length to 256
11537 2010-01-13 Richard Guenther <rguenther@suse.de>
11540 * tree-pass.h (PROP_gimple_lcx): New.
11541 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
11542 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
11543 before the final cleanup_eh.
11544 (dump_properties): Dump PROP_gimple_lcx.
11545 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
11546 (tree_lower_complex_O0): Remove.
11547 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
11548 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
11549 tree_lower_complex, schedule TODO_update_ssa.
11550 * lto-streamer-out.c (output_function): Stream the functions
11552 * lto-streamer-in.c (input_function): Likewise.
11553 (lto_read_body): Do not override them here.
11555 2010-01-12 Joseph Myers <joseph@codesourcery.com>
11558 * c-typeck.c (build_c_cast): Fold value cast to union type before
11559 wrapping it in a CONSTRUCTOR.
11561 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11563 PR rtl-optimization/42699
11564 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
11567 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11569 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11570 SUBTARGET_WARN_UNUSED_SPEC): Move ...
11571 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
11572 SUBTARGET_WARN_UNUSED_SPEC): ... here
11573 * config/mips/iris5.h (LIBGCC_SPEC): Define.
11575 2010-01-12 Julian Brown <julian@codesourcery.com>
11577 * config/arm/neon-schedgen.ml (Utils): Don't try to
11578 open missing module.
11579 (find_with_result): New.
11581 2010-01-12 Jakub Jelinek <jakub@redhat.com>
11584 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
11585 sharing when canonicalizing ({lt,ge}u (plus a b) b).
11587 PR tree-optimization/42645
11588 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
11589 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
11590 decl_map, set processing_debug_stmt to -1 and return name without
11593 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
11595 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
11596 binutils version, and reword target configuration description.
11598 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11600 * config/avr/avr.h (LINKER_NAME): Remove.
11602 2010-01-11 Janis Johnson <janis187@us.ibm.com>
11605 * config/rs6000/rs6000.c (rs6000_override_options): On targets
11606 that support VSX, warn for -mno-altivec if vsx is not disabled,
11609 2010-01-11 Joseph Myers <joseph@codesourcery.com>
11610 Shujing Zhao <pearly.zhao@oracle.com>
11612 PR translation/42469
11613 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
11614 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
11615 character between option name and help text.
11616 * c.opt (imultilib): Likewise.
11618 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
11620 * lto-streamer-out.c (output_unreferenced_globals): Output static
11623 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
11625 PR rtl-optimization/42621
11626 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
11627 optimizing for size.
11628 (duplicate_computed_gotos): Remove now-redundant check.
11630 2010-01-10 Steve Ellcey <sje@cup.hp.com>
11633 * configure.ac: Save and restore LDFLAGS and LIBS
11634 * configure: Regenerate.
11636 2010-01-10 Richard Guenther <rguenther@suse.de>
11638 PR middle-end/42667
11639 * builtins.c (fold_builtin_strlen): Add type argument and
11640 convert the resulting length to it.
11641 (fold_builtin_1): Adjust.
11643 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11645 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
11646 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
11648 (num_insns_constant_wide): Adjust for that change.
11650 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11653 * web.c (union_defs): Add used argument, to combine uses of
11654 uninitialized regs.
11655 (entry_register): Adjust type and tests of used argument.
11656 (web_main): Widen used for new use. Pass it to union_defs.
11657 * df.h (union_defs): Adjust prototype.
11659 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11662 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
11663 uses in new incoming argument. Free body.
11664 (reset_debug_uses_in_loop): New.
11665 (analyze_insn_to_expand_var): Call the latter if the former found
11666 anything. Fix whitespace. Reject invalid dest overlaps before
11667 going through all insns in the loop.
11669 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11672 * haifa-sched.c (dying_use_p): Debug insns don't count.
11674 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11676 PR middle-end/42363
11677 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
11678 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
11679 (verify_gimple_call): Reject LHS in noreturn calls.
11681 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11685 * tree-vect-loop-manip.c (adjust_info): New type.
11686 (adjust_vec): New pointer to vector.
11687 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
11688 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
11689 (slpeel_update_phis_for_duplicate_loop): Use them.
11690 (slpeel_update_phi_nodes_for_guard1): Likewise.
11691 (slpeel_update_phi_nodes_for_guard2): Likewise.
11692 (slpeel_tree_peel_loop_to_edge): Likewise.
11693 (vect_update_ivs_after_vectorizer): Likewise.
11695 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11697 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
11698 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
11700 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
11702 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
11703 bogus uninitialized warning.
11705 2010-01-09 Richard Guenther <rguenther@suse.de>
11707 PR middle-end/42512
11708 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
11709 the evolution is compatible with the initial condition.
11711 2010-01-09 Jakub Jelinek <jakub@redhat.com>
11713 * gcc.c (process_command): Update copyright notice dates.
11714 * gcov.c (print_version): Likewise.
11715 * gcov-dump.c (print_version): Likewise.
11716 * mips-tfile.c (main): Likewise.
11717 * mips-tdump.c (main): Likewise.
11719 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
11722 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
11724 (rotlhi3_8): Delete.
11726 (rotlsi3_8): Delete.
11727 (rotlsi3_16): Delete.
11728 (rotlsi3_24): Delete.
11729 (rotl<mode>3): New.
11730 (*rotw<mode>3): New.
11731 (*rotb<mode>3): New.
11732 * config/avr/avr.c (avr_rotate_bytes): New function.
11733 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
11735 2010-01-08 Steve Ellcey <sje@cup.hp.com>
11738 * configure.ac: Modify -rdynamic check.
11739 * configure: Regenerate.
11741 2010-01-08 DJ Delorie <dj@redhat.com>
11743 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
11744 register popping order.
11746 2010-01-08 Richard Guenther <rguenther@suse.de>
11749 * c.opt (fsigned-char): Also let LTO handle this option.
11750 (funsigned-char): Likewise.
11752 2010-01-07 Richard Guenther <rguenther@suse.de>
11754 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
11755 (gimple_op): Likewise.
11756 (gimple_op_ptr): Likewise.
11757 (gimple_assign_set_lhs): Remove gcc_assert.
11758 (gimple_assign_set_rhs1): Likewise.
11759 (gimple_assign_set_rhs2): Likewise.
11760 (gimple_call_set_lhs): Likewise.
11761 (gimple_call_set_fn): Likewise.
11762 (gimple_call_set_fndecl): Likewise.
11763 (gimple_call_fndecl): Likewise.
11764 (gimple_call_return_type): Likewise.
11765 (gimple_call_set_chain): Likewise.
11766 (gimple_call_num_args): Likewise.
11767 (gimple_call_set_arg): Likewise.
11768 (gimple_cond_set_code): Likewise.
11769 (gimple_cond_set_lhs): Likewise.
11770 (gimple_cond_set_rhs): Likewise.
11771 (gimple_cond_set_true_label): Likewise.
11772 (gimple_cond_set_false_label): Likewise.
11773 (gimple_label_set_label): Likewise.
11774 (gimple_goto_set_dest): Likewise.
11775 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
11776 (gimple_debug_bind_get_value): Likewise.
11777 (gimple_debug_bind_get_value_ptr): Likewise.
11778 (gimple_debug_bind_set_var): Likewise.
11779 (gimple_debug_bind_set_value): Likewise.
11780 (gimple_debug_bind_reset_value): Likewise.
11781 (gimple_debug_bind_has_value_p): Likewise.
11782 (gimple_return_retval_ptr): Remove gcc_assert.
11783 (gimple_return_retval): Likewise.
11784 (gimple_return_set_retval): Likewise.
11785 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
11786 (safe_referenced_var_iterator): Remove.
11787 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
11788 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
11789 (fill_referenced_var_vec): Remove.
11790 (first_readonly_imm_use): Remove redundant gcc_assert.
11791 (phi_arg_index_from_use): Combine gcc_asserts.
11792 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
11793 (first_imm_use_stmt): Remove redundant gcc_assert.
11794 * tree-cfg.c (verify_gimple_call): Verify function and chain
11795 operands. Verify arguments.
11796 (verify_types_in_gimple_stmt): Verify condition code and labels.
11798 2010-01-07 Richard Guenther <rguenther@suse.de>
11800 PR tree-optimization/42641
11801 * sese.c (rename_map_elt_info): Use the SSA name version, do
11804 2010-01-07 Jakub Jelinek <jakub@redhat.com>
11806 PR tree-optimization/42625
11807 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
11808 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
11810 2010-01-07 Duncan Sands <baldrick@free.fr>
11812 * Makefile.in (PLUGIN_HEADERS): Add version.h.
11814 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
11817 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
11818 note itself is not function_invariant_p.
11820 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
11822 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
11823 Do not add the DF_NOTE problem.
11824 * store-motion.c (execute_rtl_store_motion): Likewise.
11826 2010-01-07 Martin Jambor <mjambor@suse.cz>
11828 PR tree-optimization/42157
11829 * tree-sra.c (compare_access_positions): Stabilize sort if both
11830 accesses have integer types, return zero immediately if they are the
11833 2010-01-06 Richard Henderson <rth@redhat.com>
11835 PR middle-end/41883
11836 * haifa-sched.c (add_to_note_list): Merge into ...
11837 (concat_note_lists): ... here, and ...
11838 (unlink_other_notes, rm_other_notes): Merge into...
11839 (remove_notes): ... here. Create REG_SAVE_NOTEs for
11840 NOTE_INSN_EPILOGUE_BEG.
11842 2010-01-06 Richard Guenther <rguenther@suse.de>
11844 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
11845 not inline regular functions into always-inline functions.
11847 2010-01-06 Nick Clifton <nickc@redhat.com>
11849 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
11850 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
11852 (OVERRIDE_OPTIONS): Delete.
11853 (OPTIMIZATION_OPTIONS): Define.
11854 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
11855 * config/rx/rx.c (rx_handle_option): Issue an error message if
11856 -mcpu=rx200 and -fpu are used together.
11857 (rx_set_optimization_options): New function. Issue an error
11858 message if an optimization attribute attempts to reset the FPU/
11859 math optimization pairing.
11860 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
11861 * config/rx/rx.opt: Set the default to 32-bit doubles.
11862 * config/rx/t-rx: Add multilibs for -nofpu option.
11863 * doc/invoke.texi: Update documentation of RX options.
11865 2010-01-06 Richard Guenther <rguenther@suse.de>
11867 * tree-ssa-pre.c (name_to_id): New global.
11868 (alloc_expression_id): Simplify SSA name handling.
11869 (lookup_expression_id): Likewise.
11870 (init_pre): Zero name_to_id.
11871 (fini_pre): Free it.
11873 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
11875 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
11877 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
11880 * config/i386/sse.md (smaxv2di3): New.
11881 (umaxv2di3): Likewise.
11882 (sminv2di3): Likewise.
11883 (uminv2di3): Likewise.
11885 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
11888 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
11889 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
11890 (legitimize_tls_address): Likewise.
11891 (sparc_tls_referenced_p): Likewise.
11892 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
11893 and adjust calls to legitimize_pic_address.
11894 (legitimate_constant_p) Use sparc_tls_referenced_p.
11895 (legitimate_pic_operand_p): Likewise.
11896 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
11897 (sparc_tls_symbol_ref_1): Delete.
11898 (sparc_tls_referenced_p): Make static, recognize specific patterns.
11899 (legitimize_tls_address): Make static, handle CONST patterns.
11900 (legitimize_pic_address): Make static, remove unused parameter and
11901 adjust recursive calls.
11902 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
11903 and adjust call to legitimize_pic_address.
11904 (sparc_output_mi_thunk): Likewise.
11906 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
11907 H.J. Lu <hongjiu.lu@intel.com>
11910 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
11911 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
11912 operands to make them signed.
11915 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
11918 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
11919 GTU to GT for V4SI and V2DI.
11921 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
11922 (umin<mode>3): Removed.
11924 (uminv4si3): Likewise.
11926 2010-01-05 Martin Jambor <mjambor@suse.cz>
11928 PR tree-optimization/42462
11929 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
11930 current_function_decl to helper functions and macros.
11932 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11935 * flags.h: Don't include real.h.
11936 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
11937 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
11938 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
11939 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
11940 * dominance.c: Update copyright.
11941 * gimple.c (walk_gimple_op): Remove inline.
11942 * tree-ssa-reassoc.c: Include real.h.
11943 * Makefile.in (FLAGS_H): Remove $(REAL_H).
11944 (tree-ssa-reassoc.o): Depend on $(REAL_H).
11946 2010-01-05 Nick Clifton <nickc@redhat.com>
11948 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
11949 register to push into the stack frame when the accumulator has to
11950 be saved during interrupts.
11952 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
11954 * doc/invoke.texi: Remove the documentation about option
11955 -Wunreachable-code.
11956 * common.opt (Wunreachable-code): Preserved for backward
11958 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
11959 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
11960 the backward compatibility flag section.
11962 2010-01-05 Richard Guenther <rguenther@suse.de>
11964 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
11966 2010-01-05 Jakub Jelinek <jakub@redhat.com>
11969 * cfgexpand.c (expand_one_var): Diagnose too large variables.
11971 PR tree-optimization/42508
11972 * tree-sra.c (convert_callers): Check for recursive call
11973 by comparing cgraph nodes instead of decls.
11974 (modify_function): Call ipa_modify_formal_parameters also
11975 on all same_body aliases.
11977 * cgraphunit.c (cgraph_materialize_all_clones): Compare
11978 cgraph nodes when checking for same_body aliases.
11980 2010-01-05 Richard Guenther <rguenther@suse.de>
11982 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
11983 allocation and lookup.
11984 (get_or_alloc_expr_for_constant): Likewise.
11985 (phi_translate): Sink allocation.
11987 2010-01-04 Richard Guenther <rguenther@suse.de>
11989 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
11990 a new entry only if needed.
11991 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
11992 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
11994 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
11996 (phi_translate): Handle CONSTANTs early.
11998 2010-01-04 Martin Jambor <mjambor@suse.cz>
12000 PR tree-optimization/42398
12001 * tree-sra.c (struct access): Removed flag grp_different_types.
12002 (dump_access): Do not dump the removed flag.
12003 (sort_and_splice_var_accesses): Do not set the removed flag.
12004 (sra_modify_expr): Check for type compatibility directly.
12006 2010-01-04 Martin Jambor <mjambor@suse.cz>
12008 PR tree-optimization/42366
12009 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12010 edges with variable number of parameters.
12011 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12012 flag instead of asserting it.
12013 (ipa_read_node_info): Read uses_analysis_done flag.
12015 2010-01-04 Richard Guenther <rguenther@suse.de>
12017 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12018 iterative_hash_* as intended.
12019 (vn_reference_compute_hash): Likewise. Simplify hashing
12021 (vn_reference_lookup_2): Likewise.
12022 (vn_nary_op_compute_hash): Likewise.
12023 (vn_phi_compute_hash): Likewise.
12024 (expressions_equal_p): Remove strange code.
12025 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12026 (pre_expr_hash): Likewise. Simplify hashing SSA names.
12027 (bitmap_insert_into_set_1): Take value-id as parameter.
12028 (add_to_value): Pass it.
12029 (bitmap_insert_into_set): Likewise.
12030 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
12032 2010-01-04 Jakub Jelinek <jakub@redhat.com>
12035 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12036 (do_self_spec): For switches with SWITCH_IGNORE set set also
12037 SWITCH_IGNORE_PERMANENTLY.
12038 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12041 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
12043 * lto-streamer-out.c (output_unreferenced_globals): Output the full
12044 tree of an unreferenced global var.
12046 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12049 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12050 GTU to GT for V4SI and V2DI.
12052 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12053 (umin<mode>3): Removed.
12055 (uminv4si3): Likewise.
12057 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12060 * collect2.c (main): Turn on trace in collect2 if -v is passed
12063 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
12065 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
12066 description of expression operand.
12068 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
12070 * configure.ac: Add install-html to target_list for Make-hooks.
12071 * configure: Regenerate.
12072 * fortran/Make-lang.in (F95_HTMLFILES): New.
12073 (fortran.html): Use it.
12074 (fortran.install-html): New.
12075 * Makefile.in (install-html): Add lang.install-html.
12076 * java/Make-lang.in (JAVA_HTMLFILES): New.
12077 (java.html): Use it.
12078 (java.install-html): New.
12079 * objc/Make-lang.in (objc.install-html): New.
12080 * objcp/Make-lang.in (obj-c++.install-html): New.
12081 * cp/Make-lang.in (c++.install-html): New.
12082 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12083 * lto/Make-lang.in (lto.install-html): New.
12085 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12088 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12090 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
12092 PR rtl-optimization/41862
12093 * store-motion.c (store_killed_in_insn, compute_store_table,
12094 remove_reachable_equiv_notes, replace_store_insn,
12095 build_store_vectors): Ignore all DEBUG_INSNs.
12097 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12100 * common.opt: Add dumpdir.
12102 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12104 (option_map): Add --dumpdir.
12106 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12108 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12110 * opts.c (decode_options): Try dump_dir_name first if
12111 dump_base_name isn't an absolute path.
12112 (common_handle_option): Handle OPT_dumpdir.
12114 * toplev.c (dump_dir_name): New.
12115 (print_switch_values): Also ignore -dumpdir.
12117 * toplev.h (dump_dir_name): New.
12119 2010-01-03 Richard Guenther <rguenther@suse.de>
12121 PR tree-optimization/42589
12122 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12123 double-word expansion of bswap32.
12125 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
12127 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12128 with BLOCK_FOR_INSN.
12129 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12130 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12131 noce_process_if_block): Likewise.
12132 * gcse.c (compute_local_properties, insert_expr_in_table,
12133 insert_set_in_table, canon_list_insert, find_avail_set,
12134 pre_insert_copy_insn): Likewise.
12136 * basic-block.h (BLOCK_NUM): Move from here...
12137 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12139 2010-01-03 Richard Guenther <rguenther@suse.de>
12141 PR tree-optimization/42438
12142 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12143 contains_may_not_return_call flag.
12144 (BB_MAY_NOTRETURN): New.
12145 (valid_in_sets): Trapping nary operations are not valid
12146 in blocks that may not return.
12147 (insert_into_preds_of_block): Remove check for trapping expressions.
12148 (compute_avail): Compute also BB_MAY_NOTRETURN.
12150 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
12152 * doc/invoke.texi: Add 2010 to copyright years.
12154 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
12156 * config/sparc/sparc.c: Fix formatting nits.
12158 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12159 Alexander Monakov <amonakov@ispras.ru>
12161 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12163 2010-01-02 Richard Guenther <rguenther@suse.de>
12165 PR middle-end/42577
12166 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12167 (simplify_switch_using_ranges): Mark to be removed edges
12170 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12172 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12174 * collect2.c (scan_libraries): Add missing argument in call to
12177 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
12180 * config/alpha/predicates.md (aligned_memory_operand): Return false
12182 (unaligned_memory_operand): Return true for CQImode.
12183 * config/alpha/alpha.c (get_aligned_mem): Assert that location
12184 doesn not cross aligned SImode word boundary.
12186 2010-01-02 Anatoly Sokolov <aesok@post.ru>
12188 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12190 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12191 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
12193 2010-01-02 Richard Guenther <rguenther@suse.de>
12196 * toplev.c (compile_file): Emit LTO marker properly. Change
12197 it to __gnu_lto_v1.
12198 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
12200 2010-01-01 Richard Guenther <rguenther@suse.de>
12203 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
12205 2010-01-01 Richard Guenther <rguenther@suse.de>
12208 * c-decl.c (grokdeclarator): For zero-size arrays force
12209 structural equality checks as layout_type does.
12211 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12213 * builtins.c: Update copyright to 2010.
12215 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12218 * lto-streamer-out.c (produce_asm): Revert the last change.
12219 (copy_function): Likewise.
12221 * lto-streamer.c (lto_get_section_name): Skip any leading
12224 2010-01-01 Richard Guenther <rguenther@suse.de>
12226 PR middle-end/42559
12227 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12231 Copyright (C) 2010 Free Software Foundation, Inc.
12233 Copying and distribution of this file, with or without modification,
12234 are permitted in any medium without royalty provided the copyright
12235 notice and this notice are preserved.